/* style.css - основной файл стилей темы */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Подключение шрифтов */
@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Ostrovsky';
    src: url('../fonts/Manrope.ttf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

h1, .logo, .course-title {
    font-family: 'Ostrovsky', sans-serif;
}

body {
    font-family: 'Manrope', system-ui, -apple-system, sans-serif;
    background-color: #0e0c0a;
    color: #1e1e2f;
    line-height: 1.4;
    scroll-behavior: smooth;
}

p {
	margin-bottom: 20px;
	line-height: 26px;
	color: #2c3e50; 
}

.svg-container-logo {
    text-align: center;
    margin-bottom: 10px;
}
.svg-container-logo svg {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(1px 1px 0 #FFF);
}
.fil0, .fil1 {
    fill: #6346f8;
}

/* Навигация */
.navbar {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #eaeef2;
    background: #fff;
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.3px;
    background: linear-gradient(135deg, #2c3e50, #1e2a36);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}
.nav-links a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
}
.nav-links a:hover {
    color: #1e6f5c;
}
.menu-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #2c3e50;
}

/* Адаптивное меню */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem 0;
        text-align: center;
    }
    .nav-links.active {
        display: flex;
    }
    .navbar {
        flex-wrap: wrap;
    }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 4rem;
    background: #fff;
}

/* Hero */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 3rem;
}
.hero-text {
    flex: 1;
    min-width: 260px;
}
.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #2c3e50;
}
.hero-text p {
    font-size: 1.2rem;
    color: #334155;
    margin-bottom: 2rem;
    max-width: 90%;
}
.badge-store {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}
.store-btn {
    background: #2c3e50;
    color: white;
    border: none;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}
.store-btn.light {
    background: #f1f5f9;
    color: #2c3e50;
    border: 1px solid #e2e8f0;
}
.store-btn:hover {
    background: #2d3a4e;
    transform: scale(0.98);
	color:#fff;
}
.hero-stats {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #475569;
    flex-wrap: wrap;
}
.rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f8fafc;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
}
.video-preview {
    background: #f1f5f9;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 1.5rem 0;
    aspect-ratio: 16 / 9;
}
.video-preview iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* Курс */
.course-showcase {
    background: #fff;
    border-radius: 2rem;
    box-shadow: 0 20px 35px -12px rgba(0,0,0,0.08);
    margin: 2rem 0;
    border: 1px solid #eef2f8;
    overflow: hidden;
}
.course-header {
    padding: 1.5rem 2rem 0.5rem 2rem;
}
.course-badge {
    display: inline-block;
    background: #fbd672;
    color: #2c3e50;
    border-radius: 10px;
    padding: 5px 15px;
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
}

.course-title {
	color: #6346f8;
	font-size: 3rem;
}

.horizontal-course {
    display: flex;
    flex-wrap: wrap;
    padding: 0 1.5rem 2rem 1.5rem;
    gap: 2rem;
}
.course-description-col {
    flex: 2;
    min-width: 260px;
}
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-top: 0.5rem;
}
.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    padding: 0.6rem 1rem;
    border-radius: 1.2rem;
    border: 1px solid #eef2f8;
}

.course-pricing-col {
    flex: 1.2;
    min-width: 260px;
    background: #ffffff;
    border-radius: 1.5rem;
    padding: 1.2rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.03);
    border: 1px solid #edf2f7;
    align-self: center;
}
.price-option {
    border-bottom: 1px solid #ecf3f9;
    padding: 1rem 0;
}
.price-option:last-child {
    border-bottom: none;
}
.price-title {
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 6px;
}
.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #2c3e50;
}
.btn-cart {
    background: #1e6f5c;
    border: none;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin-top: 6px;
}
.btn-cart-outline {
    background: transparent;
    border: 1px solid #cbd5e1;
    color: #1e6f5c;
}
.btn-cart:hover {
    background: #0f5243;
    transform: scale(0.97);
}
.free-badge {
    background: #e6f7ec;
    color: #2c7a4b;
    padding: 0.2rem 0.7rem;
    border-radius: 40px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}
.feature-card {
    background: #f9fafb;
    padding: 20px 15px 0 20px;
    border-radius: 1.5rem;
    border: 1px solid #edf2f7;
	margin-bottom:0px
}

/* Аккордеон FAQ */
.accordion-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 2rem 0;
}
.accordion-item {
    background-color: #f4f7fd;
    border-radius: 1.25rem;
    border: 1px solid #e9edf2;
    overflow: hidden;
}
.accordion-header {
    background-color: #ffffff;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}
.accordion-icon {
    font-size: 1.4rem;
    transition: transform 0.3s;
    color: #1e6f5c;
}
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s;
    background: white;
    padding: 0 1.5rem;
}
.accordion-content-inner {
    padding: 0 0 1.2rem 0;
    color: #334155;
}
.accordion-item.open .accordion-content {
    max-height: 280px;
}
.accordion-item.open .accordion-icon {
    transform: rotate(45deg);
}

/* Подвал */
footer {
    border-top: 1px solid #eef2f6;
    margin-top: 3rem;
    padding: 2rem;
    text-align: center;
    color: #5b6e8c;
}

@media (max-width: 720px) {
    .hero-text h1 { font-size: 2.2rem; }
    .horizontal-course { flex-direction: column; }
}

/* ============================================ */
/* КАРУСЕЛЬ СКРИНШОТОВ (стиль как в RuStore)    */
/* ============================================ */

.carousel-container {
    position: relative;
    width: 100%;
    margin: 2rem 0;
    height: 50%;
}

.screenshots-swiper {
    overflow: hidden;
    padding: 20px 0 40px;
}

/* Убираем стандартные отступы между слайдами */
.screenshots-swiper .swiper-slide {
    width: auto !important;
    margin-right: 10px !important;
}
.screenshots-swiper .swiper-wrapper {
    gap: 8px;  /* Расстояние между слайдами */
}

.screenshot-card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}
.screenshot-card:hover {
    transform: translateY(-5px);
}

.screenshot-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 400px;
    overflow: hidden;
}
@media (max-width: 640px) {
    .screenshot-image {
        width: 200px;
        height: 340px;
    }
}
.screenshot-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.screenshot-icon {
    font-size: 4rem;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.2));
}

.screenshot-caption {
    padding: 12px 16px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1e293b;
    background: #f7f6ff;
    border-top: 1px solid #f1f5f9;
}
.screenshot-caption small {
    display: block;
    font-size: 0.7rem;
    font-weight: normal;
    color: #64748b;
    margin-top: 4px;
}

/* Кнопки навигации карусели */
.carousel-nav {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #1e293b;
}
.carousel-nav:hover {
    background: #f8fafc;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.05);
}
.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}
.carousel-prev {
    left: -10px;
}
.carousel-next {
    right: -10px;
}
@media (max-width: 768px) {
    .carousel-prev {
        left: -5px;
    }
    .carousel-next {
        right: -5px;
    }
    .carousel-nav {
        width: 32px;
        height: 32px;
    }
    .carousel-nav svg {
        width: 16px;
        height: 16px;
    }
}
.carousel-nav svg {
    width: 20px;
    height: 20px;
}

/* Пагинация точками */
.swiper-pagination {
    position: relative;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 8px;
}
.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    opacity: 1;
    transition: all 0.2s ease;
    margin: 0 !important;
}
.swiper-pagination-bullet-active {
    width: 20px;
    border-radius: 4px;
    background: #6346F8;
}

/* Заголовок секции */
.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: #1e293b;
    text-align: left;
}

/* Скрываем старые элементы карусели, если они есть */
.screenshots-carousel,
.carousel-btn {
    display: none;
}

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО С ЭФФЕКТОМ "АКТИВНЫЙ БОЛЬШОЙ" */
/* ============================================ */

.modal-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
}
.modal-gallery.active {
    display: block;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
}

.modal-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1010;
}
.modal-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* Контейнер для Swiper в модалке */
.modal-swiper-container {
    width: 85%;
    max-width: 1100px;
    height: 80%;
    position: relative;
    overflow: visible;
}

.modal-swiper {
    width: 100%;
    height: 100%;
    overflow: visible !important;  /* Важно для видимости боковых слайдов */
}
.modal-swiper .swiper-wrapper {
    align-items: center;
}
.modal-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 0 !important;
}
.modal-swiper .swiper-wrapper {
    gap: 8px;
}

/* Контент внутри слайда */
.modal-slide-content {
    text-align: center;
    color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
}
.modal-slide-content img {
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.modal-icon {
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 24px;
}
.modal-icon span {
    font-size: 8rem;
}
.modal-caption {
    margin-top: 20px;
}
.modal-caption h3 {
    font-size: 1.3rem;
    margin-bottom: 6px;
    color: white;
}
.modal-caption p {
    font-size: 0.9rem;
    color: #cbd5e1;
}

/* Навигация в модальном окне */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.2s ease;
    color: white;
}
.modal-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}
.modal-prev {
    left: -60px;
}
.modal-next {
    right: -60px;
}
@media (max-width: 768px) {
    .modal-prev {
        left: -30px;
    }
    .modal-next {
        right: -30px;
    }
    .modal-nav {
        width: 36px;
        height: 36px;
    }
    .modal-swiper-container {
        width: 90%;
    }
}

/* Пагинация в модальном окне */
.modal-pagination {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 10px;
}
.modal-pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    opacity: 1;
    transition: all 0.2s ease;
}
.modal-pagination .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: white;
}

/* Счётчик слайдов */
.modal-counter {
    position: absolute;
    bottom: -40px;
    left: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 10;
}
@media (max-width: 768px) {
    .modal-counter {
        bottom: -35px;
        left: 10px;
        font-size: 12px;
    }
    .modal-pagination {
        bottom: -35px;
    }
}

.outcome-text ul {
    list-style: none;
    padding-left: 0;
    margin: 20px 0;
}

.outcome-text li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 10px;
	line-height: 28px;
}

.outcome-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #22c55e;
    font-weight: bold;
    font-size: 18px;

}

/* Родительский блок с закруглением */
.outcome-text {
  max-height: 640px;
  overflow-y: auto;
  border-radius: 24px;
  padding-right: 12px;   /* ← отступ справа, где будет скролл */
  padding: 20px;
  background: #fff;
}

/* Тонкий скроллбар */
.outcome-text::-webkit-scrollbar {
  width: 2px;            /* толщина скроллбара */
}

.outcome-text::-webkit-scrollbar-track {
  background: #f7f6ff;
  border-radius: 10px;
  margin-top: 40px;      /* отступ сверху */
  margin-bottom: 40px;   /* отступ снизу */
}

.outcome-text::-webkit-scrollbar-thumb {
  background: #9a8aeb;
  border-radius: 10px;
}

.outcome-text::-webkit-scrollbar-thumb:hover {
  background: #9a8aeb;
}

/* ============================================ */
/* БЛОК ОПЛАТЫ КАК В МАРКЕТПЛЕЙСАХ              */
/* ============================================ */

.payment-block {
    padding: 20px;
    min-width: 300px;
}

.payment-prices {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.old-price {
    font-size: 1.1rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.current-price {
    font-size: 2rem;
    font-weight: 800;
    color: #1e1e2f;
}

.payment-badge {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.installments {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #a5b4fc;
    font-size: 1rem;
    margin-bottom: 10px;
    padding: 8px 0;
}

.buy-now-btn {
    width: 100%;
    background: #6346f8;
    border: none;
    border-radius: 20px;
    padding: 14px 20px;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.buy-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(34, 197, 94, 0.4);
}

.buy-now-btn:active {
    transform: translateY(0);
}

.payment-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #94a3b8;
    flex-wrap: wrap;
    gap: 8px;
}

.guarantee, .license {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Адаптация для мобильных */
@media (max-width: 860px) {
    .course-showcase > div:first-child {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px;
    }
    
    .payment-block {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .payment-block {
        padding: 16px;
    }
    
    .current-price {
        font-size: 1.6rem;
    }
    
    .payment-footer {
        flex-direction: column;
        align-items: center;
    }
}

.installment-note {
    text-align: center;
    padding: 5px 0;
    background: #f2f2f2;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 10px 0;
}

.swiper-pagination {
	display:none!important
}

/* ============================================ */
/* МОДАЛЬНОЕ ОКНО ДЛЯ ВИДЕО */
/* ============================================ */

.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    z-index: 2001;
}

.video-modal-close {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2002;
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .video-modal-close {
        top: -45px;
        right: 0;
    }
}

.video-modal-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-modal-content video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Анимация появления */
@keyframes videoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal.active .video-modal-container {
    animation: videoFadeIn 0.3s ease;
}

#billing-fields, #payment-method {
	display:none
}

.hero-image video {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}