/* ============================================================
   ТЁМНАЯ ТЕМА (Вариант C)
   Подключается поверх style.css, если тема тёмная
   ============================================================ */

body {
    background: #0a0f1c;
    color: #e2e8f0;
}

/* --- Хедер --- */
.header {
    background: rgba(2, 6, 16, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* --- Hero-переход: к тёмному, не к светлому --- */
.hero-video::after {
    background: linear-gradient(
        to bottom,
        rgba(10, 15, 28, 0) 0%,
        rgba(10, 15, 28, 0.6) 60%,
        #0a0f1c 100%
    );
}

/* --- Секция счётчиков --- */
.stats-section {
    background: #0a0f1c;
}

.stat-card {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.stat-card:hover {
    background: #1a2332;
    border-color: #334155;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.stat-ai {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.25), rgba(139, 92, 246, 0.25));
    color: #a5b4fc;
}

.stat-number {
    color: #f1f5f9;
}

.stat-label {
    color: #94a3b8;
}

/* --- Секция «Как это работает» --- */
.how-section {
    background: #0a0f1c;
}

.section-title {
    color: #f1f5f9;
}

.section-sub {
    color: #94a3b8;
}

.section-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    border-color: rgba(139, 92, 246, 0.4);
    color: #a5b4fc;
}

.how-card {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.how-card:hover {
    background: #1a2332;
    border-color: #334155;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
}

.how-num {
    color: #334155;
}

.how-icon {
    background: #1e293b;
}

.how-card h3 {
    color: #f1f5f9;
}

.how-card p {
    color: #94a3b8;
}

/* --- CTA --- */
.cta-section {
    background: #0a0f1c;
}

.cta-box {
    background: linear-gradient(135deg, #050a15 0%, #111827 60%, #1e1b4b 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.cta-box p {
    color: #94a3b8;
}

/* --- Футер --- */
.footer {
    background: #020610;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* ============================================================
   СТРАНИЦЫ (suppliers, logistics, etc.)
   ============================================================ */

/* --- Тёмная полоса-статистика --- */
.stats-strip {
    background: #050a15;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* --- Основной фон suppliers --- */
.suppliers-main {
    background: #0a0f1c;
}

/* --- Segmented control --- */
.segment {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.segment-item {
    color: #94a3b8;
}

.segment-item:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.04);
}

.segment-item.active {
    background: #10b981;
    color: #fff;
    box-shadow: 0 2px 12px rgba(16, 185, 129, 0.4);
}

/* --- Поисковая форма --- */
.search-card {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-card::before {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

.search-card-title {
    color: #f1f5f9;
}

.search-card-hint {
    color: #64748b;
}

.sf label {
    color: #64748b;
}

.sf select,
.sf input,
.search-card .sf select,
.search-card .sf input {
    background: #0a0f1c;
    border: 1.5px solid #1f2937;
    color: #e2e8f0;
    -webkit-text-fill-color: #e2e8f0;
}

.search-card .sf select option {
    background: #0a0f1c;
    color: #e2e8f0;
    -webkit-text-fill-color: #e2e8f0;
}

.sf select option,
.search-fields-4 .sf select option {
    background: #0a0f1c;
    color: #e2e8f0;
    -webkit-text-fill-color: #e2e8f0;
}

.search-card .sf select option {
    background: #0a0f1c;
    color: #e2e8f0;
    -webkit-text-fill-color: #e2e8f0;
}

.sf select:focus,
.sf input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
    background: #0f172a;
}

.sf input::placeholder {
    color: #475569;
}

/* --- Результаты --- */
.results-count {
    color: #94a3b8;
}

.results-count b {
    color: #f1f5f9;
}

.results-ai {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: #a5b4fc;
}

/* --- Карточки компаний --- */
.company-card {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.company-card:hover {
    border-color: #334155;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    background: #1a2332;
}

.cc-num {
    color: #334155;
}

.cc-title {
    color: #f1f5f9;
}

.cc-title a:hover {
    color: #10b981;
}

.tag {
    background: #1e293b;
    color: #94a3b8;
}

.tag-country {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.tag-cat {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: #a5b4fc;
}

.cc-desc {
    color: #94a3b8;
}

.btn-cc-ghost {
    background: #1e293b;
    color: #cbd5e0;
    border: 1px solid #334155;
}

.btn-cc-ghost:hover {
    background: #334155;
    color: #fff;
}

/* --- Пустое состояние --- */
.empty-panel {
    background: #111827;
    border: 1px dashed #334155;
    color: #94a3b8;
}

.empty-panel h3 {
    color: #f1f5f9;
}

.empty-panel-dark {
    background: linear-gradient(135deg, #0a0f1c 0%, #111827 60%, #1e1b4b 100%);
    border: 1px solid #1f2937;
}

/* --- Логисты (страница) --- */
.page-head {
    background: #111827;
    border: 1px solid #1f2937;
}

.page-head h1 {
    color: #f1f5f9;
}

.page-head p {
    color: #94a3b8;
}

.list {
    background: #111827;
    border: 1px solid #1f2937;
}

.list-head {
    background: #0a0f1c;
    color: #94a3b8;
    border-bottom: 1px solid #1f2937;
}

.list-row {
    border-top: 1px solid #1f2937;
}

.list-row:hover {
    background: #1a2332;
}

.col-name .company-title {
    color: #f1f5f9;
}

.col-name .company-sub {
    color: #475569;
}

.col-desc {
    color: #cbd5e0;
}

.col-country {
    color: #cbd5e0;
}

.empty {
    color: #334155;
}

/* --- Пагинация --- */
.page-btn {
    background: #10b981;
    color: #fff;
}

.page-btn:hover {
    background: #059669;
}

.page-btn.disabled {
    background: #1f2937;
    color: #475569;
}

.page-info {
    color: #94a3b8;
}

/* --- ЛК: боковое меню и панели --- */
.cab-sidebar {
    background: #111827;
    border: 1px solid #1f2937;
}

.cab-menu-item {
    color: #cbd5e0;
    border-bottom: 1px solid #1f2937;
}

.cab-menu-item:hover {
    background: #1a2332;
}

.cab-menu-item.active {
    background: #10b981;
    color: #fff;
}

.cab-menu-group {
    background: #0a0f1c;
    color: #64748b;
}

.cab-panel {
    background: #111827;
    border: 1px solid #1f2937;
}

.cab-panel-head {
    background: #10b981;
}

.cab-welcome {
    background: #111827;
    border: 1px solid #1f2937;
}

.cab-welcome h2 {
    color: #f1f5f9;
}

.cab-name {
    color: #34d399;
}

.cab-contacts {
    color: #94a3b8;
}

.cab-queries-box {
    background: #0a0f1c;
    border: 1px solid #1f2937;
}

.cab-queries-label {
    color: #64748b;
}

.cab-queries-value {
    color: #10b981;
}

.cab-table thead th {
    background: #0a0f1c;
    color: #f1f5f9;
    border-bottom: 2px solid #1f2937;
}

.cab-table tbody td {
    color: #cbd5e0;
    border-bottom: 1px solid #1f2937;
}

.cab-table tbody tr:nth-child(odd) {
    background: #0d1424;
}

.cab-table tbody tr:hover {
    background: #1a2332;
}

.sub-card {
    border: 1px solid #1f2937;
    background: #0d1424;
}

.sub-card-head {
    background: #10b981;
}

.sub-card-body {
    background: #111827;
}

.sub-row {
    border-bottom: 1px solid #1f2937;
}

.sub-row span {
    color: #94a3b8;
}

.sub-note {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
}

/* --- RFQ-форма --- */
.rfq-letter {
    background: #0a0f1c;
    border: 1px solid #1f2937;
    color: #e2e8f0;
}

.rfq-letter:focus {
    background: #0f172a;
    border-color: #10b981;
}

.btn-secondary {
    background: #1e293b;
    color: #cbd5e0;
}

.btn-secondary:hover {
    background: #334155;
}

/* --- Заглушка (placeholder) --- */
.hero {
    background: #111827;
    border: 1px solid #1f2937;
}

.hero h1 {
    color: #f1f5f9;
}

.hero p {
    color: #94a3b8;
}

/* ============================================================
   КАРТОЧКА КОМПАНИИ — тёмная тема
   ============================================================ */

.company-block {
    background: #111827;
    border: 1px solid #1f2937;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.cb-head {
    background: #0a0f1c;
    border-bottom: 1px solid #1f2937;
    color: #94a3b8;
}

.cb-body {
    color: #e2e8f0;
}

.cb-tag {
    background: #1e293b;
    color: #cbd5e0;
}

.cb-tag-purple {
    background: rgba(139, 92, 246, 0.2);
    color: #c4b5fd;
}

.contact-row {
    border-bottom: 1px solid #1f2937;
}

.cr-label {
    color: #64748b;
}

.cr-value {
    color: #e2e8f0;
}

a.cr-value:hover { color: #34d399; }

.cr-empty { color: #475569; }

.ca-ghost {
    background: #1e293b;
    color: #cbd5e0;
    border: 1px solid #334155;
}

.ca-ghost:hover {
    background: #334155;
    color: #fff;
}

/* ============================================================
   RFQ-СТРАНИЦА — тёмная тема
   ============================================================ */

.rfq-recipient {
    background: #111827;
    border: 1px solid #1f2937;
    border-left: 4px solid #10b981;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.rfq-recipient-name {
    color: #f1f5f9;
}

.rfq-recipient-label {
    color: #64748b;
}

.rr-tag {
    background: #1e293b;
    color: #cbd5e0;
}

.rr-tag-country {
    background: rgba(16, 185, 129, 0.18);
    color: #34d399;
}

.rfq-back {
    color: #94a3b8;
}

.rfq-back:hover {
    color: #34d399;
}

.rfq-hint {
    color: #64748b;
}

/* RFQ-письмо — уже темное, оставляем как есть */

/* ============================================================
   Эффект печатающегося текста — тёмная тема
   ============================================================ */

.typing-area {
    color: #e2e8f0;
    background: #0a0f1c;
    border: 1px solid #1f2937;
}

.typing-cursor {
    color: #34d399;
}

/* РФ-каскад — тёмная тема */

.sf select:disabled {
    background: #0a0f1c;
    color: #475569;
}