/* ==========================================================================
   OIL & GAS COURSE - ISOLATED STYLES
   Все стили защищены классами-обертками, чтобы не ломать глобальный дизайн.
   ========================================================================== */

/* ==========================================
   1. СТИЛИ ЛЭНДИНГА
   ========================================== */

.oil-landing-wrapper {
    background-color: #0f1014;
    color: #ffffff;
    font-family: 'Inter', 'Roboto', sans-serif;
    margin-top: -1px;
}

.oil-landing-wrapper .oil-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.oil-landing-wrapper .oil-hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, rgba(15,16,20,0.95) 0%, rgba(15,16,20,0.7) 50%, rgba(15,16,20,0.3) 100%), 
                url('https://images.unsplash.com/photo-1516937941344-00b4e0337589?q=80&w=2070&auto=format&fit=crop') center/cover no-repeat;
}

.oil-landing-wrapper .oil-hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.oil-landing-wrapper .oil-badge {
    display: inline-block;
    color: #f0a500;
    border: 1px solid #f0a500;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 25px;
    border-radius: 4px;
    background: rgba(240, 165, 0, 0.05);
}

.oil-landing-wrapper .oil-main-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 25px 0;
    color: #ffffff;
}

.oil-landing-wrapper .oil-hero-desc-wrapper {
    border-left: 4px solid #f0a500;
    padding-left: 20px;
    margin-bottom: 40px;
}

.oil-landing-wrapper .oil-main-desc {
    font-size: 1.2rem;
    color: #a0a4b0;
    line-height: 1.6;
    margin: 0;
}

.oil-landing-wrapper .oil-hero-buttons {
    display: flex;
    gap: 20px;
}

.oil-landing-wrapper .oil-btn-primary {
    background: #f0a500;
    color: #000000;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    border: 2px solid #f0a500;
}

.oil-landing-wrapper .oil-btn-primary:hover {
    background: #cf7500;
    border-color: #cf7500;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(240, 165, 0, 0.3);
}

.oil-landing-wrapper .oil-btn-outline {
    background: transparent;
    color: #ffffff;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.2s ease;
}

.oil-landing-wrapper .oil-btn-outline:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

/* Статистика */
.oil-landing-wrapper .oil-stats-section {
    background-color: #14161b;
    padding: 60px 0;
    border-top: 1px solid #2a2e35;
    border-bottom: 1px solid #2a2e35;
}

.oil-landing-wrapper .oil-stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 30px;
}

.oil-landing-wrapper .stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: #f0a500;
    line-height: 1;
    margin-bottom: 10px;
}

.oil-landing-wrapper .stat-text {
    font-size: 0.85rem;
    color: #94a3b8;
    letter-spacing: 1px;
    line-height: 1.5;
}

/* Программа обучения (Карточки) */
.oil-landing-wrapper .oil-curriculum-section {
    padding: 100px 0;
    background-color: #0f1014;
}

.oil-landing-wrapper .section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 60px;
}

.oil-landing-wrapper .oil-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.oil-landing-wrapper .oil-feature-card {
    background: #1b1e24;
    border: 1px solid #2a2e35;
    border-radius: 12px;
    padding: 35px 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.oil-landing-wrapper .oil-feature-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0;
    width: 100%; 
    height: 3px;
    background: #f0a500;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.oil-landing-wrapper .oil-feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
    border-color: #333842;
}

.oil-landing-wrapper .oil-feature-card:hover::before {
    transform: scaleX(1);
}

.oil-landing-wrapper .card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.oil-landing-wrapper .oil-feature-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.oil-landing-wrapper .oil-feature-card p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Нижний призыв к действию */
.oil-landing-wrapper .oil-bottom-cta {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #0f1014 0%, #14161b 100%);
    border-top: 1px solid #2a2e35;
}

.oil-landing-wrapper .oil-bottom-cta h2 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.oil-landing-wrapper .oil-bottom-cta p {
    color: #94a3b8;
    margin-bottom: 30px;
    font-size: 1.1rem;
}


/* ==========================================
   2. СТИЛИ ПЛЕЕРА
   ========================================== */

.oil-player-wrapper {
    background-color: #0f1014;
    min-height: calc(100vh - 80px);
    padding-bottom: 50px;
    font-family: 'Inter', 'Roboto', sans-serif;
}

.oil-player-wrapper .course-player-container {
    display: flex;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: flex-start;
}

/* Сайдбар */
.oil-player-wrapper .lecture-list-sidebar {
    width: 400px;
    flex-shrink: 0;
    background: #1b1e24;
    border-radius: 16px;
    padding: 25px;
    border: 1px solid #2a2e35;
}

.oil-player-wrapper .sidebar-title {
    color: #ffffff;
    font-size: 1.4rem;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 700;
    border-bottom: 2px solid #2a2e35;
    padding-bottom: 15px;
}

/* Аккордеон */
.oil-player-wrapper .lecture-accordion {
    margin-bottom: 10px;
}

.oil-player-wrapper .accordion-header {
    width: 100%;
    background: #23272f;
    color: #e2e8f0;
    border: 1px solid #333842;
    padding: 16px 20px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    font-weight: 600;
}

.oil-player-wrapper .accordion-header:hover {
    background: #2d323c;
    border-color: #4a5568;
}

.oil-player-wrapper .accordion-header.active {
    background: rgba(240, 165, 0, 0.1);
    border-color: #f0a500;
    color: #f0a500;
}

.oil-player-wrapper .accordion-header .icon-arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
}

.oil-player-wrapper .accordion-header.active .icon-arrow {
    transform: rotate(180deg);
}

.oil-player-wrapper .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    background: #14161b;
    border-radius: 0 0 10px 10px;
}

.oil-player-wrapper .accordion-inner {
    padding: 15px;
    border: 1px solid #2a2e35;
    border-top: none;
    border-radius: 0 0 10px 10px;
}

/* Контент внутри аккордеона */
.oil-player-wrapper .lecture-assets {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #2a2e35;
}

.oil-player-wrapper .doc-link {
    display: inline-block;
    margin-top: 12px;
    color: #f0a500;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.2s;
}

.oil-player-wrapper .doc-link:hover {
    color: #ffbc33;
    text-decoration: underline;
}

.oil-player-wrapper .module-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.oil-player-wrapper .module-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.oil-player-wrapper .module-link:hover {
    background: #1b1e24;
    color: #ffffff;
}

.oil-player-wrapper .module-link.active-module {
    background: #25231c;
    border-color: #f0a500;
    color: #f0a500;
    font-weight: 600;
}

.oil-player-wrapper .text-success {
    color: #22c55e !important;
}

/* Заблокированные модули */
.oil-player-wrapper .locked-module {
    opacity: 0.4;
    cursor: not-allowed;
    background: transparent !important;
}

.oil-player-wrapper .locked-module:hover {
    background: transparent !important;
    color: #94a3b8 !important;
}

/* Основная часть (Плеер) */
.oil-player-wrapper .lecture-content-main {
    flex-grow: 1;
    width: 100%;
}

.oil-player-wrapper .main-module-title {
    color: #ffffff;
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 20px;
    font-weight: 700;
}

.oil-player-wrapper .video-player-wrapper {
    background: #000000;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    border: 1px solid #2a2e35;
    position: relative;
}

.oil-player-wrapper .video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #4a5568;
}

.oil-player-wrapper .video-placeholder i {
    font-size: 4rem;
    margin-bottom: 15px;
}

.oil-player-wrapper .player-actions {
    margin-top: 30px;
    text-align: right;
}

/* Пустое состояние (Заглушка) */
.oil-player-wrapper .empty-state-card {
    background: #1b1e24;
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: #a0a4b0;
    border: 1px dashed #4a5568;
}

.oil-player-wrapper .empty-state-card i {
    font-size: 30px;
    color: #4a5568;
    margin-bottom: 0px;
}

.oil-player-wrapper .empty-state-card h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Кнопки в плеере */
.oil-player-wrapper .btn-pass-test {
    display: inline-block;
    background: linear-gradient(135deg, #f0a500, #cf7500);
    color: #000000;
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(240, 165, 0, 0.2);
}

.oil-player-wrapper .btn-pass-test:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(240, 165, 0, 0.4);
    color: #000;
}

/* Плашка успеха (зеленая) */
.oil-player-wrapper .success-module-banner {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.oil-player-wrapper .success-banner-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.oil-player-wrapper .success-banner-content i {
    font-size: 2rem;
    color: #22c55e;
}

.oil-player-wrapper .success-banner-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.oil-player-wrapper .btn-next-module {
    background: #22c55e;
    color: #0f1014;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.2);
}

.oil-player-wrapper .btn-next-module:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 197, 94, 0.4);
    color: #0f1014;
}

.oil-player-wrapper .btn-retry-small {
    background: transparent;
    border: 1px solid #4a5568;
    color: #94a3b8;
    padding: 10px 15px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.2s;
}

.oil-player-wrapper .btn-retry-small:hover {
    background: #2d323c;
    color: #fff;
}


/* ==========================================
   3. СТИЛИ ТЕСТОВ И РЕЗУЛЬТАТОВ
   ========================================== */

.oil-test-wrapper {
    background-color: #0f1014;
    min-height: calc(100vh - 80px);
    padding: 50px 20px;
    font-family: 'Inter', 'Roboto', sans-serif;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.oil-test-wrapper .test-container, 
.oil-test-wrapper .result-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

/* Шапка теста */
.oil-test-wrapper .oil-test-header {
    display: block;
    margin-bottom: 40px;
    border-bottom: 1px solid #2a2e35;
    padding-bottom: 20px;
    text-align: left;
}

.oil-test-wrapper .oil-back-link {
    display: inline-block;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 20px;
    transition: color 0.2s;
}

.oil-test-wrapper .oil-back-link:hover {
    color: #f0a500;
}

.oil-test-wrapper .oil-test-title {
    display: block;
    color: #ffffff;
    font-size: 2.2rem;
    margin: 0 0 10px 0;
    font-weight: 700;
    line-height: 1.2;
}

.oil-test-wrapper .oil-test-desc {
    display: block;
    color: #94a3b8;
    font-size: 1.05rem;
    margin: 0;
}

/* Карточка вопроса */
.oil-test-wrapper .question-card {
    background: #1b1e24;
    border: 1px solid #2a2e35;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.oil-test-wrapper .q-meta {
    font-size: 0.85rem;
    color: #f0a500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 15px;
}

.oil-test-wrapper .q-text {
    font-size: 1.3rem;
    color: #ffffff;
    margin-top: 0;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Варианты ответов */
.oil-test-wrapper .options-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oil-test-wrapper .custom-radio-label {
    cursor: pointer;
    display: block;
    margin: 0;
}

.oil-test-wrapper .hidden-radio {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.oil-test-wrapper .option-box {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: #23272f;
    border: 2px solid #333842;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.oil-test-wrapper .option-text {
    font-size: 1.05rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.oil-test-wrapper .radio-indicator {
    width: 24px;
    height: 24px;
    border: 2px solid #64748b;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.oil-test-wrapper .radio-inner-dot {
    width: 12px;
    height: 12px;
    background-color: #f0a500;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.oil-test-wrapper .custom-radio-label:hover .option-box {
    border-color: #4a5568;
    background: #2d323c;
}

.oil-test-wrapper .hidden-radio:checked ~ .option-box {
    border-color: #f0a500;
    background: rgba(240, 165, 0, 0.1);
}

.oil-test-wrapper .hidden-radio:checked ~ .option-box .radio-indicator {
    border-color: #f0a500;
}

.oil-test-wrapper .hidden-radio:checked ~ .option-box .radio-inner-dot {
    transform: scale(1);
}

.oil-test-wrapper .hidden-radio:checked ~ .option-box .option-text {
    color: #ffffff;
    font-weight: 500;
}

/* Отправка теста */
.oil-test-wrapper .submit-wrapper {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #2a2e35;
}

.oil-test-wrapper .btn-submit-test {
    background: linear-gradient(135deg, #f0a500, #cf7500);
    color: #000000;
    border: none;
    padding: 18px 50px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 10px 25px rgba(240, 165, 0, 0.25);
}

.oil-test-wrapper .btn-submit-test:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(240, 165, 0, 0.4);
}

.oil-test-wrapper .btn-submit-test i {
    margin-left: 10px;
}

/* Карточка результатов */
.oil-test-wrapper .result-card {
    background: #1b1e24;
    border: 1px solid #2a2e35;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.oil-test-wrapper .status-icon-wrapper {
    margin-bottom: 25px;
    display: inline-block;
    border-radius: 50%;
}

.oil-test-wrapper .glow-success {
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.4));
}

.oil-test-wrapper .glow-danger {
    filter: drop-shadow(0 0 20px rgba(239, 68, 68, 0.4));
}

.oil-test-wrapper .result-title {
    color: #ffffff;
    font-size: 2rem;
    margin: 0;
    font-weight: 800;
}

.oil-test-wrapper .module-subtitle {
    color: #f0a500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    margin-bottom: 30px;
    font-weight: 600;
}

.oil-test-wrapper .score-display {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 5px;
}

.oil-test-wrapper .score-number {
    font-size: 4.5rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

.oil-test-wrapper .score-divider {
    font-size: 2.5rem;
    color: #4a5568;
    font-weight: 300;
}

.oil-test-wrapper .score-total {
    font-size: 2.5rem;
    color: #94a3b8;
    font-weight: 700;
}

.oil-test-wrapper .score-percent {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
    font-weight: 500;
}

.oil-test-wrapper .result-msg-box {
    background: #23272f;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #333842;
    margin-bottom: 40px;
}

.oil-test-wrapper .action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.oil-test-wrapper .btn-continue {
    background: linear-gradient(135deg, #f0a500, #cf7500);
    color: #000;
    padding: 16px 30px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 10px 25px rgba(240, 165, 0, 0.25);
}

.oil-test-wrapper .btn-continue:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(240, 165, 0, 0.4);
    color: #000;
}

.oil-test-wrapper .btn-retry {
    background: transparent;
    color: #e2e8f0;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid #4a5568;
    transition: all 0.2s;
}

.oil-test-wrapper .btn-retry:hover {
    background: #2d323c;
    border-color: #64748b;
    color: #fff;
}


/* ==========================================
   4. ОБЩИЕ ЭФФЕКТЫ И АДАПТИВНОСТЬ
   ========================================== */

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    /* Мобильный Лэндинг */
    .oil-landing-wrapper .oil-main-title { font-size: 3rem; }
    .oil-landing-wrapper .oil-hero-buttons { flex-direction: column; }
    .oil-landing-wrapper .oil-btn-primary, 
    .oil-landing-wrapper .oil-btn-outline { text-align: center; width: 100%; }
    .oil-landing-wrapper .oil-stats-grid { flex-direction: column; gap: 40px; }
    
    /* Мобильный Плеер */
    .oil-player-wrapper .course-player-container { flex-direction: column; }
    .oil-player-wrapper .lecture-list-sidebar { width: 100%; }
    .oil-player-wrapper .player-actions { text-align: center; }
    .oil-player-wrapper .success-module-banner { flex-direction: column; text-align: center; gap: 15px; }
    .oil-player-wrapper .success-banner-content { flex-direction: column; }
    .oil-player-wrapper .success-banner-actions { flex-direction: column-reverse; width: 100%; }
    .oil-player-wrapper .btn-next-module, 
    .oil-player-wrapper .btn-retry-small { width: 100%; text-align: center; }
    
    /* Мобильные Тесты */
    .oil-test-wrapper .question-card { padding: 20px; }
    .oil-test-wrapper .oil-test-header h1 { font-size: 1.8rem; }
    .oil-test-wrapper .btn-submit-test { width: 100%; }
    .oil-test-wrapper .result-card { padding: 40px 25px; }
    .oil-test-wrapper .score-number { font-size: 3.5rem; }
}