/* platform.css - Стили для страницы платформы */

/* Герой-секция для платформы */
.hero-platform {
    background: linear-gradient(135deg, rgba(0, 62, 83, 0.95), rgba(45, 63, 102, 0.95)), url('../images/platform-bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
}

.platform-hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.platform-hero-text h1 {
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 10px;
    background: linear-gradient(to right, #fff, #e6f2f8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.platform-tagline {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 600;
}

.platform-description {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.platform-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 30px;
}

.platform-hero-image {
    position: relative;
}

.platform-screenshot {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-10deg);
    transition: transform 0.5s ease;
}

.platform-screenshot:hover {
    transform: perspective(1000px) rotateY(0deg);
}

.screenshot-placeholder {
    height: 300px;
    background: url('../images/platform_int.jpg') center / contain no-repeat;
    background-color: #eef2f5; /* цвет заливки пустых областей */
    border-radius: 12px;
    overflow: hidden; /* гарантирует обрезание содержимого по углам */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
}


.screenshot-placeholder i {
    font-size: 80px;
    margin-bottom: 20px;
}

/* Преимущества платформы */
.platform-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 колонки на больших экранах */
    gap: 30px;
    margin-top: 40px;
}


.platform-feature {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(0, 62, 83, 0.1);
    text-align: center;
}

.platform-feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 62, 83, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--light-blue), #d4eaf0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary-color);
    font-size: 32px;
}

.platform-feature h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 22px;
    font-weight: 600;
}

.platform-feature p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== ИЗОБРАЖЕНИЯ ДЛЯ ВКЛАДОК ПЛАТФОРМЫ ===== */
.screenshot-image {
    width: 500px;
    height: 300px;                /* фиксированная высота, как было раньше */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    position: relative;
}

.screenshot-image::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* background: rgba(0, 62, 83, 0.1); */
    border-radius: 12px;
    pointer-events: none;
}

/* Индивидуальные фоны */
.screenshot-interface {
    background-image: url('../images/platform-interface.jpg');
}

.screenshot-lessons {
    background-image: url('../images/platform-lessons.jpg');
}

.screenshot-progress {
    background-image: url('../images/platform-progress.jpg');
}

.screenshot-community {
    background-image: url('../images/platform-community.jpg');
}

/* Демо платформы */
.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.demo-tab {
    background: var(--white);
    color: var(--text-dark);
    border: 2px solid rgba(0, 62, 83, 0.2);
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
}

.demo-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.demo-tab.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.demo-content {
    max-width: 1000px;
    margin: 0 auto;
}

.demo-preview {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.demo-preview.active {
    display: grid;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.demo-screenshot {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 25px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 62, 83, 0.1);
}

.demo-screenshot .screenshot-image {
    height: 300px;
}

.demo-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    justify-content: center;
}

.demo-features span {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.demo-description h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.demo-description > p {
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.6;
}

.demo-description ul {
    list-style: none;
}

.demo-description li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-light);
}

.demo-description li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Уровни курсов */
.courses-levels {
    margin-top: 40px;
}

.level-track {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    position: relative;
}

.level-track:before {
    content: '';
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 0;
}

.level-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 62, 83, 0.1);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.level-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 62, 83, 0.15);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-blue);
}

.level-header h3 {
    color: var(--primary-color);
    font-size: 24px;
    font-weight: 700;
    margin: 0;
}

.level-hours {
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.level-content h4 {
    color: var(--text-dark);
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.level-content > p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 14px;
}

.level-content ul {
    list-style: none;
    margin-top: 15px;
}

.level-content li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--text-dark);
    font-size: 14px;
}

.level-content li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 20px;
    line-height: 1;
}

/* Специализированные курсы */
.special-courses {
    margin-top: 60px;
}

.special-courses-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 40px;
    font-size: 28px;
    font-weight: 600;
}

.special-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.special-course {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 62, 83, 0.1);
    transition: var(--transition);
}

.special-course:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 62, 83, 0.1);
}

.course-icon {
    width: 70px;
    height: 70px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 28px;
}

.special-course h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 600;
}

.special-course p {
    color: var(--text-light);
    line-height: 1.5;
    font-size: 14px;
}

/* Тарифы */
.platform-pricing {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 35px 30px;
    box-shadow: var(--shadow);
    border: 2px solid rgba(0, 62, 83, 0.1);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 62, 83, 0.15);
}

.pricing-card.popular {
    border-color: var(--accent-color);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 62, 83, 0.1);
}

.pricing-header h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 600;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pricing-price .price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-price .period {
    color: var(--text-light);
    font-size: 14px;
}

.pricing-features {
    flex-grow: 1;
    margin-bottom: 30px;
}

.pricing-features .feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.pricing-features .feature i {
    color: var(--accent-color);
    margin-top: 3px;
    flex-shrink: 0;
}

.pricing-features .feature span {
    color: var(--text-dark);
    line-height: 1.5;
    font-size: 15px;
}

.pricing-button {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: block;
    margin-top: auto;
}

.pricing-button:hover {
    background: #002a3a;
    color: var(--white);
}

.pricing-note {
    background: var(--light-blue);
    border-radius: var(--border-radius);
    padding: 25px 30px;
    margin-top: 40px;
    text-align: center;
}

.pricing-note p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.pricing-note i {
    color: var(--accent-color);
}

/* Шаги */
.steps-container {
    max-width: 800px;
    margin: 40px auto 0;
    position: relative;
}

.steps-container:before {
    content: '';
    position: absolute;
    top: 40px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    z-index: 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 62, 83, 0.2);
}

.step-content h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 600;
}

.step-content p {
    color: var(--text-dark);
    line-height: 1.6;
}

/* Форма демо-доступа (старые стили остаются, добавляем новые для карточки) */
.demo-form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.demo-form-text h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: var(--white);
}

.demo-form-text ul {
    list-style: none;
    margin-top: 30px;
}

.demo-form-text li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
}

.demo-form-text i {
    color: var(--accent-color);
}

.demo-stats {
    display: flex;
    gap: 30px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--accent-color);
}

.stat-text {
    font-size: 14px;
    opacity: 0.9;
}

/* Новая карточка для бесплатного доступа */
.demo-access-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    text-align: center;
}

.demo-access-image {
    margin-bottom: 20px;
}

.demo-access-image .screenshot-image {
    height: 200px;
    border-radius: 12px;
}

.screenshot-acces-libre {
    background-image: url('../images/acces-libre.jpg'); /* замените на своё изображение */
}

.demo-access-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--white);
}

.demo-access-button {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.demo-access-button:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.demo-access-button i {
    margin-left: 5px;
}

/* FAQ */
.faq-container {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    background: var(--white);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 62, 83, 0.1);
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(0, 62, 83, 0.05);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.active {
    padding: 0 25px 20px;
    max-height: 500px;
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 992px) {
    .platform-hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .platform-hero-text h1 {
        font-size: 48px;
    }

    .platform-cta-buttons {
        justify-content: center;
    }

    .demo-preview {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .demo-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .level-track:before {
        display: none;
    }

    .steps-container:before {
        display: none;
    }

    .step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
}
@media (max-width: 992px) {
    .platform-features-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки */
    }
}
@media (max-width: 768px) {
    .platform-pricing {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }

    .demo-tabs {
        flex-direction: column;
        align-items: center;
    }

    .demo-tab {
        width: 100%;
        max-width: 300px;
    }

    .demo-stats {
        flex-direction: column;
        gap: 20px;
    }

    .special-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .platform-features-grid,
    .special-courses-grid,
    .level-track {
        grid-template-columns: 1fr;
    }

    .demo-form {
        padding: 25px;
    }

    .platform-hero-text h1 {
        font-size: 36px;
    }

    .platform-tagline {
        font-size: 20px;
    }

    .pricing-card {
        padding: 25px 20px;
    }
}



/* ===== АДАПТАЦИЯ ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    /* Переключение вкладок остаётся рабочим */
    .demo-preview {
        display: none !important; /* по умолчанию скрыты */
    }
    .demo-preview.active {
        display: grid !important;   /* показываем только активную вкладку */
        grid-template-columns: 1fr !important; /* одна колонка */
        gap: 20px !important;
    }

    /* Уменьшаем отступы и делаем изображение адаптивным */
    .demo-screenshot {
        padding: 15px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .screenshot-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important; /* сохраняем пропорции */
        background-size: cover !important;
    }

    .demo-description {
        width: 100% !important;
        padding: 0 10px !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .demo-description ul {
        padding-left: 20px !important;
        margin: 10px 0 !important;
    }

    .demo-description li {
        font-size: 14px !important;
        line-height: 1.5 !important;
        word-break: break-word !important;
        text-align: left !important;
    }
}