@charset "UTF-8";

/* --- БАЗОВЫЕ ПЕРЕМЕННЫЕ (Стиль M-NUR) --- */
:root {
    --primary-green: #2d6a4f;   
    --light-green: #40916c;     
    --accent-gold: #d4af37;     
    --dark-gold: #b58920;       
    --text-black: #111111;      
    --text-gray: #555555;
    --bg-light: #f4f7f5;        
    --white: #ffffff;
    --font-headers: 'Montserrat', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--text-black); line-height: 1.6; background-color: var(--white); -webkit-font-smoothing: antialiased; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3, h4 { font-family: var(--font-headers); font-weight: 700; color: var(--primary-green); line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* Кнопки */
.btn-cta { display: inline-block; padding: 12px 28px; font-family: var(--font-headers); font-weight: 700; font-size: 0.95rem; border-radius: 4px; text-align: center; cursor: pointer; border: none; transition: var(--transition); }
.gold-btn { background-color: var(--accent-gold); color: var(--text-black); }
.gold-btn:hover { background-color: var(--dark-gold); color: var(--white); }
.green-btn { background-color: var(--primary-green); color: var(--white); }
.green-btn:hover { background-color: var(--light-green); }
.outline-btn { background-color: transparent; border: 2px solid var(--accent-gold); color: var(--accent-gold); }
.outline-btn:hover { background-color: var(--accent-gold); color: var(--text-black); }
.full-width { width: 100%; }
.section-subtitle { display: inline-block; font-family: var(--font-headers); color: var(--dark-gold); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 10px; }
.section-header { text-align: center; max-width: 700px; margin: 0 auto 60px auto; }
.section-header h2 { font-size: 2.3rem; margin-bottom: 15px; }

/* Утилиты видимости */
.id-hidden { display: none !important; }

/* --- ШАПКА САЙТА --- */
.header { background-color: var(--primary-green); position: fixed; top: 0; left: 0; width: 100%; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.1); padding: 15px 0; }
.header-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; flex-direction: column; }
.logo-title { display: flex; align-items: center; }
.logo-m { font-family: var(--font-headers); font-size: 1.8rem; font-weight: 700; color: var(--accent-gold); }
.logo-nur { font-family: var(--font-headers); font-size: 1.8rem; font-weight: 700; color: var(--white); }
.logo-sub { font-size: 0.65rem; color: #cbd5e1; letter-spacing: 3px; margin-top: 1px; font-weight: bold; text-transform: uppercase; }
.nav { display: flex; gap: 25px; align-items: center; }
.nav-link { color: var(--white); font-family: var(--font-headers); font-weight: 500; font-size: 0.9rem; }
.nav-link:hover { color: var(--accent-gold); }
.header-contacts { display: flex; align-items: center; gap: 20px; }
.phone-link { color: var(--white); font-weight: 700; display: flex; align-items: center; }
.burger-menu { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 6px; }
.burger-menu span { display: block; width: 28px; height: 3px; background-color: var(--white); }

/* --- СЕКЦИИ БАННЕРА И ОПИСАНИЙ --- */
.hero-section { background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%); padding: 160px 0 80px 0; color: var(--white); }
.hero-container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 50px; align-items: center; }
.badge { display: inline-block; background-color: rgba(212, 175, 55, 0.15); border: 1px solid var(--accent-gold); color: var(--accent-gold); padding: 6px 14px; border-radius: 20px; font-size: 0.8rem; font-weight: 700; margin-bottom: 20px; }
.hero-content h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 20px; }
.hero-text { font-size: 1.1rem; color: #f1f5f9; margin-bottom: 35px; }
.hero-buttons { display: flex; gap: 20px; }
.hero-features { display: flex; flex-direction: column; gap: 20px; }
.feature-card { background-color: rgba(255,255,255,0.05); border-left: 4px solid var(--accent-gold); padding: 20px; border-radius: 0 8px 8px 0; }
.feature-card i { color: var(--accent-gold); font-size: 1.8rem; margin-bottom: 10px; }
.feature-card h3 { color: var(--white); margin-bottom: 5px; font-size: 1.2rem; }
.feature-card p { color: #e2e8f0; font-size: 0.9rem; }

.director-section { padding: 80px 0; background-color: var(--white); }
.director-container { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: center; }
.director-photo-placeholder { width: 100%; aspect-ratio: 4/5; background-color: var(--bg-light); border: 2px dashed #cbd5e1; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #94a3b8; border-radius: 8px; }
.director-photo-placeholder i { font-size: 4rem; margin-bottom: 15px; color: var(--primary-green); }
.director-speech { font-size: 1.1rem; font-style: italic; border-left: 4px solid var(--accent-gold); padding-left: 20px; margin-bottom: 30px; }
.director-sign strong { display: block; font-size: 1.2rem; color: var(--primary-green); }

.courses-section { padding: 80px 0; background-color: var(--bg-light); }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.course-card { background-color: var(--white); padding: 35px 25px; border-radius: 8px; border-top: 5px solid var(--accent-gold); box-shadow: 0 5px 20px rgba(0,0,0,0.02); }
.course-icon { width: 55px; height: 55px; background-color: rgba(45, 106, 79, 0.1); border-radius: 6px; display: flex; justify-content: center; align-items: center; margin-bottom: 20px; }
.course-icon i { color: var(--primary-green); font-size: 1.4rem; }
.course-link { font-weight: 700; color: var(--primary-green); font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }

/* --- СЕКЦИЯ ЕМТИХАНДАР (ВЫБОР КУРСА) --- */
.exams-section { padding: 80px 0; background-color: var(--white); }
.exams-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }
.exam-btn-card { background: var(--bg-light); border: 1px solid #cbd5e1; border-radius: 6px; padding: 20px; display: flex; align-items: center; text-align: left; cursor: pointer; width: 100%; transition: var(--transition); }
.exam-btn-card:hover { background: var(--white); border-color: var(--accent-gold); box-shadow: 0 6px 20px rgba(45, 106, 79, 0.08); transform: translateY(-2px); }
.exam-card-icon { width: 50px; height: 50px; background: var(--primary-green); border-radius: 6px; display: flex; justify-content: center; align-items: center; margin-right: 18px; flex-shrink: 0; }
.exam-card-icon i { color: var(--white); font-size: 1.3rem; }
.exam-btn-card:hover .exam-card-icon { background: var(--accent-gold); }
.exam-btn-card:hover .exam-card-icon i { color: var(--text-black); }
.exam-card-info { flex-grow: 1; }
.exam-card-info h3 { font-size: 1.1rem; color: var(--text-black); margin-bottom: 4px; }
.exam-card-info p { font-size: 0.85rem; color: var(--text-gray); }
.exam-card-arrow { color: #94a3b8; margin-left: 10px; }

/* --- СЕКЦИЯ ДВИЖКА ТЕСТИРОВАНИЯ --- */
.test-engine-section { padding: 40px 0 80px 0; background-color: #eef2f0; border-top: 2px solid var(--accent-gold); }
.test-container-box { background-color: var(--white); border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,0.06); padding: 40px; max-width: 900px; margin: 0 auto; }
.test-sub { color: var(--text-gray); font-size: 0.95rem; margin-bottom: 25px; }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; color: var(--primary-green); }
.form-group input { width: 100%; padding: 12px 15px; border: 1px solid #cbd5e1; border-radius: 4px; font-size: 1rem; }
.form-group input:focus { outline: 2px solid var(--primary-green); }

.test-header-status { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 15px; padding-bottom: 15px; border-bottom: 1px solid #e2e8f0; }
.quiz-info-meta h4 { color: var(--text-black); font-size: 1.05rem; }
.block-badge { display: inline-block; background: #e2e8f0; font-size: 0.75rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; margin-top: 5px; color: var(--primary-green); }
.quiz-timer-bar { font-size: 0.95rem; }

.progress-bar-total { width: 100%; height: 8px; background-color: #e2e8f0; border-radius: 4px; margin-bottom: 35px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--accent-gold), var(--primary-green)); transition: width 0.4s ease; }

.question-main-card { margin-bottom: 30px; }
.question-title-text { font-size: 1.4rem; color: var(--text-black); margin-bottom: 25px; font-weight: 500; line-height: 1.4; }

.options-vertical-list { display: flex; flex-direction: column; gap: 12px; }
.option-btn { width: 100%; text-align: left; padding: 15px 20px; background: var(--bg-light); border: 1px solid #cbd5e1; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: var(--transition); font-family: var(--font-body); display: flex; align-items: center; }
.option-btn:hover { background: #e6ede9; border-color: var(--primary-green); }

/* Подсветка ответов */
.option-btn.correct-choice { background-color: #d1e7dd !important; border-color: #0f5132 !important; color: #0f5132; font-weight: 700; }
.option-btn.wrong-choice { background-color: #f8d7da !important; border-color: #842029 !important; color: #842029; }
.option-btn:disabled { cursor: not-allowed; opacity: 0.9; }

/* Панель обоснования */
.comment-box-layout { padding: 20px; border-radius: 6px; margin-top: 30px; border-left: 5px solid; animation: fadeIn 0.3s ease; }
.comment-box-layout.pass-style { background-color: #e8f5e9; border-left-color: #2e7d32; }
.comment-box-layout.fail-style { background-color: #fbe9e7; border-left-color: #c62828; }
#comment-status-title { font-size: 1.1rem; margin-bottom: 5px; color: inherit; }
#comment-text-body { font-size: 0.95rem; color: #333333; }

/* ЭКРАН РЕЗУЛЬТАТОВ */
.success-congratulations-card { text-align: center; padding: 30px 20px; border-radius: 8px; margin-bottom: 40px; }
.success-congratulations-card.pass { background: linear-gradient(135deg, #d4f2e6 0%, #a7ebd2 100%); color: #093925; }
.success-congratulations-card.fail { background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%); color: #b71c1c; }
.trophy-icon-wrapper { font-size: 3.5rem; margin-bottom: 15px; color: var(--accent-gold); }
.success-congratulations-card h2 { color: inherit; font-size: 1.8rem; margin-bottom: 10px; }

.analytics-dashboard { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 40px; align-items: center; margin-top: 20px; }

/* Круговая CSS-Диаграмма */
.diagram-circle-widget { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.pie-chart-css { width: 180px; height: 180px; border-radius: 50%; background: conic-gradient(var(--primary-green) 0% 0%, #dc3545 0% 0%, #cbd5e1 0% 100%); display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0 10px rgba(0,0,0,0.05); }
.pie-center-hole { width: 120px; height: 120px; background-color: var(--white); border-radius: 50%; display: flex; justify-content: center; align-items: center; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
#pie-percentage-text { font-family: var(--font-headers); font-size: 1.8rem; font-weight: 700; color: var(--primary-green); }
.diagram-legends { display: flex; gap: 20px; font-size: 0.9rem; }

.detailed-metrics-list h4 { font-size: 1.1rem; margin-bottom: 15px; border-bottom: 2px solid #e2e8f0; padding-bottom: 5px; }
.metrics-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.metrics-table td { padding: 10px 5px; border-bottom: 1px solid #f1f5f9; }
.metrics-table td:first-child { color: var(--text-gray); font-weight: 500; }

/* --- СЕКЦИЯ РЕЗУЛЬТАТОВ (ТАБЛИЦА СДАВШИХ) --- */
.results-dashboard-section { padding: 80px 0; background-color: var(--white); border-top: 1px solid #cbd5e1; }
.tabs-navigation-container { display: flex; gap: 10px; border-bottom: 2px solid #e2e8f0; margin-bottom: 30px; overflow-x: auto; padding-bottom: 5px; }
.tab-nav-btn { background: none; border: none; padding: 12px 20px; font-family: var(--font-headers); font-weight: 700; font-size: 0.95rem; color: var(--text-gray); cursor: pointer; transition: var(--transition); border-bottom: 3px solid transparent; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.tab-nav-btn:hover { color: var(--primary-green); }
.tab-nav-btn.active { color: var(--primary-green); border-bottom-color: var(--primary-green); }

.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn 0.4s ease; }

.table-responsive-box { width: 100%; overflow-x: auto; box-shadow: 0 4px 15px rgba(0,0,0,0.02); border-radius: 6px; border: 1px solid #e2e8f0; }
.registry-data-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 0.95rem; background-color: var(--white); }
.registry-data-table th { background-color: var(--primary-green); color: var(--white); padding: 15px 20px; font-family: var(--font-headers); font-weight: 700; font-size: 0.9rem; }
.registry-data-table td { padding: 15px 20px; border-bottom: 1px solid #e2e8f0; line-height: 1.4; vertical-align: middle; }
.registry-data-table tr:nth-child(even) { background-color: #f8faf9; }

.badge-status { display: inline-block; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: 700; }
.badge-status.pass { background-color: #d1e7dd; color: #0f5132; }
.text-green { color: #2d6a4f; }
.text-gray { color: #777777; }
.empty-registry-text { text-align: center; padding: 40px; color: var(--text-gray); font-style: italic; }

.contacts-section { padding: 80px 0; background-color: var(--bg-light); }
.footer { background-color: #1b4332; color: #cbd5e1; padding: 30px 0; text-align: center; font-size: 0.9rem; border-top: 4px solid var(--accent-gold); }

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

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 1024px) {
    .hero-container, .director-container, .analytics-dashboard { grid-template-columns: 1fr; gap: 30px; }
    .hero-content, .diagram-circle-widget { text-align: center; }
    .hero-buttons { justify-content: center; }
}
@media (max-width: 768px) {
    .header-contacts { display: none; }
    .burger-menu { display: flex; }
    .nav { position: fixed; top: 74px; left: -100%; width: 100%; height: calc(100vh - 74px); background-color: var(--primary-green); flex-direction: column; padding-top: 40px; }
    .nav.active { left: 0; }
    .mobile-lang { display: flex; }
    .test-container-box { padding: 20px; }
    .question-title-text { font-size: 1.15rem; }
}