body {
    margin: 0;
    font-family: ...;
    background: #f5f7fa;
    color: #1a2332;
    line-height: 1.5;
    overflow-x: hidden;      /* ← добавить */
    max-width: 100vw;        /* ← добавить */
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: #1a2332;
    color: #fff;
    padding: 16px 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 1px;
}

.nav a {
    color: #cbd5e0;
    text-decoration: none;
    margin-left: 20px;
}

.nav a:hover { color: #fff; }

.main {
    padding: 40px 20px;
    min-height: 60vh;
}

.hero {
    background: #fff;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: 32px;
}

.hero p { margin: 8px 0; color: #4a5568; }

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 8px;
}

.stat-label {
    color: #718096;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer {
    padding: 24px 0;
    text-align: center;
    color: #718096;
    font-size: 14px;
}

/* ===== Страница поиска ===== */

.page-head {
    background: #fff;
    border-radius: 12px;
    padding: 32px 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.page-head h1 {
    margin: 0 0 8px;
    font-size: 28px;
}

.page-head p {
    margin: 0;
    color: #4a5568;
}

.search-form {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 16px;
    align-items: end;
}

.form-field {
    display: flex;
    flex-direction: column;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-field select,
.form-field input {
    padding: 10px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
}

.form-field select:focus,
.form-field input:focus {
    outline: none;
    border-color: #1a2332;
}

.form-field-button button {
    padding: 10px 24px;
    background: #1a2332;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}

.form-field-button button:hover {
    background: #2d3a4e;
}

.hint {
    color: #718096;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.results-count {
    color: #4a5568;
    font-weight: 600;
    margin-bottom: 16px;
}

.no-results {
    color: #c53030;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
}

.company-row {
    background: #fff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 12px;
}

.company-name {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
}

.company-name a {
    color: #1a2332;
    text-decoration: none;
}

.company-name a:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

.company-meta {
    font-size: 13px;
    color: #718096;
    margin-bottom: 8px;
}

.meta-item {
    display: inline-block;
    margin-right: 12px;
    padding: 2px 8px;
    background: #edf2f7;
    border-radius: 4px;
}

.company-product {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .stats { grid-template-columns: repeat(2, 1fr); }
    .form-row { grid-template-columns: 1fr; }
}

/* Простая форма — без стран */
.form-row-simple {
    grid-template-columns: 1fr auto;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.page-btn {
    padding: 8px 20px;
    background: #1a2332;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.page-btn:hover {
    background: #2d3a4e;
}

.page-btn.disabled {
    background: #cbd5e0;
    color: #fff;
    cursor: not-allowed;
}

.page-info {
    color: #4a5568;
    font-size: 14px;
}

/* ===== Список компаний (табличный вид) ===== */

.list {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 24px;
}

.list-head,
.list-row {
    display: grid;
    grid-template-columns: 48px 1.2fr 2fr 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px 20px;
    min-height: 88px;
}

.list-head {
    background: #edf2f7;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #4a5568;
    min-height: auto;
    padding: 12px 20px;
}

.list-row {
    border-top: 1px solid #edf2f7;
    cursor: pointer;
    transition: background 0.15s;
    height: 88px;
}

.list-row:hover {
    background: #f7fafc;
}

.col-check {
    display: flex;
    justify-content: center;
    align-items: center;
}

.col-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.col-name,
.col-desc,
.col-country {
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.col-name .company-title {
    font-size: 15px;
    font-weight: 600;
    color: #1a2332;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-name .company-sub {
    font-size: 12px;
    color: #a0aec0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 2px;
}

.col-desc {
    font-size: 14px;
    color: #4a5568;
    line-height: 1.4;
}

.col-desc > span,
.col-country > span {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.col-country {
    font-size: 13px;
    color: #4a5568;
}

.empty {
    color: #cbd5e0;
    font-style: italic;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border-top: 1px solid #edf2f7;
}

.page-btn {
    padding: 8px 20px;
    background: #1a2332;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.page-btn:hover {
    background: #2d3a4e;
}

.page-btn.disabled {
    background: #cbd5e0;
    color: #fff;
    cursor: not-allowed;
}

.page-info {
    color: #4a5568;
    font-size: 14px;
}

@media (max-width: 900px) {
    .list-head { display: none; }
    .list-row {
        grid-template-columns: 40px 1fr;
        height: auto;
    }
    .col-desc, .col-country { display: none; }
}

/* ===== Навигация в шапке ===== */

.header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    flex-shrink: 0;
}

.nav {
    display: flex;
    gap: 4px;
    flex-grow: 1;
}

.nav a {
    color: #cbd5e0;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s, color 0.15s;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

.header-actions {
    flex-shrink: 0;
}

.btn-cabinet {
    display: inline-block;
    padding: 9px 18px;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
    transition: all 0.15s;
}

.btn-cabinet:hover {
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.5);
    transform: translateY(-1px);
}

.btn-cabinet.active {
    background: #357abd;
}

/* ===== Переключатель Россия / Зарубеж ===== */

.region-switch {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: #fff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    width: fit-content;
}

.region-btn {
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    transition: all 0.15s;
    white-space: nowrap;
}

.region-btn:hover {
    background: #edf2f7;
    color: #1a2332;
}

.region-btn.active {
    background: #1a2332;
    color: #fff;
}

/* Заглушка внутри страницы */
.placeholder-inline {
    background: #fff;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: #718096;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    font-size: 16px;
}

@media (max-width: 1100px) {
    .header-inner { flex-wrap: wrap; }
    .nav { order: 3; width: 100%; margin-top: 12px; flex-wrap: wrap; }
}

/* ===== ЛИЧНЫЙ КАБИНЕТ ===== */

.cab-header .header-inner {
    gap: 20px;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.user-icon {
    font-size: 18px;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.15s;
}

.logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cab-welcome {
    background: #fff;
    border-radius: 12px;
    padding: 20px 28px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    gap: 24px;
}

.cab-welcome h2 {
    margin: 0 0 6px;
    font-size: 22px;
}

.cab-name {
    color: #4a90e2;
}

.cab-contacts {
    color: #4a5568;
    font-size: 14px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cab-queries-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-width: 160px;
}

.cab-queries-label {
    color: #718096;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cab-queries-value {
    font-size: 26px;
    font-weight: 700;
    color: #1a2332;
}

/* Сетка ЛК */
.cab-main {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    padding-bottom: 40px;
}

/* Левое меню */
.cab-sidebar {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}
.cab-menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    color: #2d3748;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-bottom: 1px solid #edf2f7;
    transition: background 0.15s;
}

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

.cab-menu-item.active {
    background: #8fa8c8;
    color: #fff;
    font-weight: 600;
}

.cab-menu-item.active .cab-ico {
    filter: brightness(2);
}

.cab-ico {
    font-size: 18px;
    width: 22px;
    text-align: center;
}

.cab-menu-group {
    padding: 12px 20px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #718096;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #edf2f7;
}

/* Панель контента */
.cab-content {
    min-width: 0;
}

.cab-panel {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.cab-panel-head {
    background: #2b7bba;
    color: #fff;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cab-panel-head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.cab-badge {
    background: #fff;
    color: #2b7bba;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}

/* Таблица */
.cab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.cab-table thead th {
    background: #fff;
    color: #1a2332;
    text-align: left;
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 700;
    border-bottom: 2px solid #edf2f7;
    line-height: 1.3;
}

.cab-table tbody td {
    padding: 16px 20px;
    border-bottom: 1px solid #edf2f7;
    color: #2d3748;
}

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

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

.col-num {
    text-align: center;
    width: 140px;
}

.col-eye {
    text-align: center;
    width: 120px;
}

.eye-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: #2b7bba;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.15s;
}

.eye-btn:hover {
    background: #1e5a8e;
}

.cab-empty {
    padding: 40px;
    text-align: center;
    color: #a0aec0;
    font-style: italic;
}

/* Подписка */
.sub-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 24px;
}

.sub-card {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.sub-card-head {
    background: #2b7bba;
    color: #fff;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}

.sub-card-body {
    padding: 20px;
}

.sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    font-size: 14px;
}

.sub-row:last-child { border-bottom: none; }

.sub-row span { color: #4a5568; }

.sub-row b.blue { color: #2b7bba; font-size: 16px; }
.sub-row b.red { color: #c53030; font-size: 16px; }
.sub-row b.green { color: #2f855a; font-size: 16px; }

.sub-note {
    margin-top: 16px;
    padding: 12px 16px;
    background: #e6f4fb;
    border-radius: 8px;
    color: #2b7bba;
    font-size: 13px;
}

@media (max-width: 900px) {
    .cab-main { grid-template-columns: 1fr; }
    .sub-grid { grid-template-columns: 1fr; }
    .cab-welcome { flex-direction: column; align-items: flex-start; }
}

/* ===== RFQ-тест ===== */

.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-row .form-field,
.form-row-2 .form-field {
    display: flex;
    flex-direction: column;
}

.rfq-letter {
    width: 100%;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    padding: 20px;
    border: 1px solid #cbd5e0;
    border-radius: 10px;
    background: #f9fafb;
    resize: vertical;
    color: #1a2332;
}

.rfq-letter:focus {
    outline: none;
    border-color: #1a2332;
    background: #fff;
}

.rfq-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.rfq-hint {
    color: #718096;
    font-size: 13px;
    font-style: italic;
}

.btn-secondary {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    background: #edf2f7;
    color: #1a2332;
    transition: background 0.15s;
}

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

.error-box {
    background: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
    padding: 16px 20px;
    border-radius: 10px;
    margin-top: 20px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .form-row-2 { grid-template-columns: 1fr; }
}

/* ============================================================
   ОБНОВЛЕНИЕ ДИЗАЙНА — 2026
   ============================================================ */

:root {
    --ai-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --ai-glow: rgba(99, 102, 241, 0.35);
    --emerald: #10b981;
    --emerald-hover: #059669;
    --emerald-glow: rgba(16, 185, 129, 0.35);
    --dark: #0f172a;
    --dark-soft: #1e293b;
    --light-bg: #f8fafc;
    --border: #e2e8f0;
    --text: #1a2332;
    --text-soft: #64748b;
}

body {
    background: var(--light-bg);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: var(--text);
}

/* ===== ХЕДЕР ===== */

.header {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-mark {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

.logo-text {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -0.3px;
}

.logo-dot {
    color: #10b981;
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 4px;
    flex-grow: 1;
}

.nav a {
    color: #cbd5e0;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.15s;
}

.nav a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav a.active {
    color: #fff;
    background: rgba(16, 185, 129, 0.15);
}

.btn-cabinet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: var(--emerald);
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px var(--emerald-glow);
    transition: all 0.15s;
}

.btn-cabinet:hover {
    background: var(--emerald-hover);
    box-shadow: 0 4px 14px var(--emerald-glow);
    transform: translateY(-1px);
}

.cab-ico-sm {
    font-size: 14px;
}

/* ===== HERO С ВИДЕО ===== */

.hero-video {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    margin-top: -62px;
    padding-top: 62px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    /* Заглушка, если видео не загружено */
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #312e81 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.85) 0%,
        rgba(15, 23, 42, 0.55) 50%,
        rgba(99, 102, 241, 0.35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 60px 20px;
    max-width: 780px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.18);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #c7d2fe;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.ai-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #a78bfa;
    box-shadow: 0 0 12px #a78bfa;
    animation: ai-pulse 2s ease-in-out infinite;
}

@keyframes ai-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: 64px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin: 0 0 24px;
    color: #fff;
}

.hero-title-accent {
    background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 19px;
    line-height: 1.6;
    color: #cbd5e0;
    margin: 0 0 36px;
    max-width: 620px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-hero-primary {
    background: var(--emerald);
    color: #fff;
    box-shadow: 0 4px 20px var(--emerald-glow);
}

.btn-hero-primary:hover {
    background: var(--emerald-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px var(--emerald-glow);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

.ai-icon {
    font-size: 16px;
    filter: drop-shadow(0 0 6px rgba(167, 139, 250, 0.8));
}

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    animation: bob 2s ease-in-out infinite;
}

.hero-arrow {
    font-size: 18px;
}

@keyframes bob {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 6px); }
}

/* ===== СЧЁТЧИКИ ===== */

.stats-section {
    padding: 60px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: #fff;
    border-radius: 16px;
    padding: 26px 24px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border);
    text-align: left;
    transition: all 0.2s;
}

.stat-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.stat-ai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    color: #6366f1;
    margin-bottom: 16px;
}

.stat-number {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -1px;
}

.stat-label {
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 500;
}

/* ===== КАК ЭТО РАБОТАЕТ ===== */

.how-section {
    padding: 60px 0;
}

.section-head {
    text-align: center;
    margin-bottom: 48px;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(139, 92, 246, 0.25);
    color: #6366f1;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 18px;
}

.section-title {
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--dark);
    margin: 0 0 12px;
    line-height: 1.15;
}

.section-sub {
    color: var(--text-soft);
    font-size: 17px;
    margin: 0;
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.how-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
    position: relative;
    transition: all 0.2s;
}

.how-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
}

.how-num {
    position: absolute;
    top: 20px;
    right: 22px;
    font-size: 13px;
    font-weight: 800;
    color: #cbd5e0;
    letter-spacing: 1px;
}

.how-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 20px;
}

.how-icon.ai-gradient {
    background: var(--ai-gradient);
    box-shadow: 0 4px 16px var(--ai-glow);
}

.how-card h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 10px;
    line-height: 1.3;
}

.how-card p {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
    margin: 0;
}

/* ===== ПРИЗЫВ ===== */

.cta-section {
    padding: 40px 0 80px;
}

.cta-box {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
    border-radius: 24px;
    padding: 64px 56px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -120px;
    left: -100px;
    width: 340px;
    height: 340px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.cta-box h2 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 0 0 14px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    color: #cbd5e0;
    font-size: 17px;
    margin: 0 0 32px;
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ===== ФУТЕР ===== */

.footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 40px 0 32px;
    margin-top: 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: center;
}

.footer-logo {
    color: #fff;
    font-weight: 800;
    font-size: 17px;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.footer-logo span {
    color: var(--emerald);
}

.footer-tag {
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--emerald);
}

.footer-copy {
    text-align: right;
    font-size: 13px;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1100px) {
    .hero-title { font-size: 48px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .how-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-inner { grid-template-columns: 1fr; text-align: center; }
    .footer-copy { text-align: center; }
}

@media (max-width: 700px) {
    .hero-video { min-height: 80vh; }
    .hero-title { font-size: 36px; letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 16px; }
    .btn-hero-primary, .btn-hero-secondary { padding: 14px 24px; font-size: 15px; }
    .section-title { font-size: 28px; }
    .cta-box { padding: 40px 24px; }
    .cta-box h2 { font-size: 24px; }
    .stats, .how-grid { grid-template-columns: 1fr; }
    .header-inner { flex-wrap: wrap; }
    .nav { order: 3; width: 100%; flex-wrap: wrap; }
}

/* ===== Плавный переход hero → контент ===== */

.hero-video::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 140px;
    background: linear-gradient(
        to bottom,
        rgba(248, 250, 252, 0) 0%,
        rgba(248, 250, 252, 0.6) 60%,
        #f8fafc 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Контент — поверх градиента */
.hero-content,
.hero-scroll {
    z-index: 3;
}

/* «Листайте вниз» — выше градиента, с тенью для читаемости */
.hero-scroll {
    bottom: 50px;
    color: rgba(255, 255, 255, 0.75);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Секция со счётчиками — сразу на фоне градиента, без «прыжка» */
.stats-section {
    padding-top: 20px;
    margin-top: -30px;
    position: relative;
    z-index: 4;
}

/* ============================================================
   СТРАНИЦА ПОСТАВЩИКОВ — 2026
   ============================================================ */

/* --- Page hero (компактный заголовок страницы) --- */

.page-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
    padding: 56px 0 48px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(99, 102, 241, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #c7d2fe;
    margin-bottom: 16px;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

.page-hero-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 10px;
    line-height: 1.1;
    position: relative;
    z-index: 1;
}

.page-hero-sub {
    color: #cbd5e0;
    font-size: 16px;
    line-height: 1.55;
    margin: 0;
    max-width: 640px;
    position: relative;
    z-index: 1;
}

.suppliers-main {
    padding-bottom: 60px;
}

/* --- Segmented control --- */

.segment {
    display: inline-flex;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.segment-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-soft);
    font-size: 14px;
    font-weight: 600;
    transition: all 0.15s;
}

.segment-item:hover {
    color: var(--dark);
}

.segment-item.active {
    background: var(--dark);
    color: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}

.segment-flag {
    font-size: 16px;
}

/* --- Форма поиска --- */

.search-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 24px 28px 28px;
    margin-bottom: 28px;
}

.search-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.search-card-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
}

.search-card-hint {
    font-size: 13px;
    color: var(--text-soft);
    font-style: italic;
}

.search-fields {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 16px;
    align-items: end;
}

.sf {
    display: flex;
    flex-direction: column;
}

.sf label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-soft);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 8px;
}

.sf select,
.sf input {
    padding: 13px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    background: #fff;
    color: var(--dark);
    transition: all 0.15s;
}

.sf select:focus,
.sf input:focus {
    outline: none;
    border-color: var(--emerald);
    box-shadow: 0 0 0 4px var(--emerald-glow);
}

.btn-search {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    background: var(--emerald);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 4px 16px var(--emerald-glow);
    transition: all 0.15s;
}

.btn-search:hover {
    background: var(--emerald-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 22px var(--emerald-glow);
}

.btn-search:active {
    transform: translateY(0);
}

/* --- Результаты --- */

.results-section {
    margin-top: 8px;
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.results-count {
    color: var(--text-soft);
    font-size: 14px;
}

.results-count b {
    color: var(--dark);
}

.results-ai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6366f1;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.company-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.company-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 20px;
    align-items: center;
    transition: all 0.18s;
}

.company-card:hover {
    border-color: #cbd5e0;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.cc-num {
    font-size: 18px;
    font-weight: 800;
    color: #cbd5e0;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.cc-body {
    min-width: 0;
}

.cc-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.cc-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s;
}

.cc-title a:hover {
    color: var(--emerald);
}

.cc-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tag-country {
    background: rgba(16, 185, 129, 0.1);
    color: #047857;
}

.cc-desc {
    font-size: 14px;
    color: var(--text-soft);
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cc-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.btn-cc-ghost,
.btn-cc-primary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.15s;
}

.btn-cc-ghost {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid var(--border);
}

.btn-cc-ghost:hover {
    background: #e2e8f0;
    color: var(--dark);
}

.btn-cc-primary {
    background: var(--emerald);
    color: #fff;
    box-shadow: 0 2px 8px var(--emerald-glow);
}

.btn-cc-primary:hover {
    background: var(--emerald-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--emerald-glow);
}

/* --- Пустые состояния --- */

.empty-panel {
    background: #fff;
    border: 1px dashed var(--border);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    color: var(--text-soft);
}

.empty-panel-info {
    border-style: solid;
    border-color: transparent;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.empty-icon {
    font-size: 44px;
    margin-bottom: 14px;
    display: inline-block;
}

.empty-panel h3 {
    color: var(--dark);
    font-size: 19px;
    font-weight: 700;
    margin: 0 0 8px;
}

.empty-panel p {
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
}

/* --- Адаптив --- */

@media (max-width: 900px) {
    .page-hero-title { font-size: 32px; }
    .search-fields { grid-template-columns: 1fr; }
    .company-card { grid-template-columns: 1fr; }
    .cc-num { text-align: left; font-size: 14px; }
    .cc-actions { justify-content: flex-start; flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .search-card { padding: 20px; }
    .segment { width: 100%; }
    .segment-item { flex: 1; justify-content: center; }
}

/* ============================================================
   SUPPLIERS — вариант B (тёмные акценты, разный фон)
   ============================================================ */

/* --- Тёмная полоса-статистика --- */

.stats-strip {
    background: #0f172a;
    color: #fff;
    padding: 22px 0;
    margin-top: -2px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.stats-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(139, 92, 246, 0.08) 50%, transparent 100%);
    pointer-events: none;
}

.strip-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.strip-item {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    font-size: 14px;
}

.strip-num {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.strip-label {
    color: #94a3b8;
    font-size: 13px;
}

.strip-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.12);
}

/* --- Основной фон suppliers --- */

.suppliers-main {
    background: #eef2f7;
    padding: 32px 20px 60px;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 0;
    min-height: 40vh;
}

/* --- Поисковая форма — 4 колонки --- */

.search-fields-3 {
    display: grid;
    grid-template-columns: 1fr 1.3fr 1.5fr auto;
    gap: 14px;
    align-items: end;
}

/* --- Тег категории --- */

.tag-cat {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(139, 92, 246, 0.12));
    color: #6366f1;
    font-weight: 600;
}

/* --- Тёмное пустое состояние --- */

.empty-panel-dark {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
    border: none;
    color: #cbd5e0;
    position: relative;
    overflow: hidden;
}

.empty-panel-dark::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.empty-panel-dark::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.empty-panel-dark h3,
.empty-panel-dark p,
.empty-panel-dark .empty-icon {
    position: relative;
    z-index: 1;
}

.empty-panel-dark h3 {
    color: #fff;
}

.empty-panel-dark p {
    color: #94a3b8;
}

/* --- Результаты на сером фоне --- */

.results-section {
    margin-top: 8px;
}

/* --- Обновление формы поиска --- */

.search-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    padding: 24px 28px 28px;
    margin-bottom: 28px;
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

/* --- Адаптив --- */

@media (max-width: 1100px) {
    .search-fields-3 {
        grid-template-columns: 1fr 1fr;
    }
    .search-fields-3 .sf-btn {
        grid-column: span 2;
    }
    .search-fields-3 .sf-btn .btn-search {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 700px) {
    .search-fields-3 { grid-template-columns: 1fr; }
    .search-fields-3 .sf-btn { grid-column: auto; }
    .strip-divider { display: none; }
    .strip-inner { gap: 16px; }
}

/* ===== Кнопка переключения темы ===== */

.theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.15s;
    font-family: inherit;
    padding: 0;
    line-height: 1;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.theme-toggle:active {
    transform: scale(0.95);
}

/* ============================================================
   КАРТОЧКА КОМПАНИИ
   ============================================================ */

.company-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
    padding: 40px 0 44px;
    color: #fff;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}

.company-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.company-hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.28) 0%, transparent 70%);
    pointer-events: none;
}

.company-breadcrumb {
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.company-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.15s;
}

.company-breadcrumb a:hover { color: #10b981; }

.company-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.company-hero-left { flex: 1; min-width: 0; }

.company-hero-title {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.8px;
    line-height: 1.15;
    margin: 0 0 16px;
    color: #fff;
    word-break: break-word;
}

.company-hero-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ch-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: #cbd5e0;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.ch-tag-green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
}

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

.company-hero-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.ch-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.ch-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.ch-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.ch-btn-primary {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.ch-btn-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5);
}

/* Сетка */
.company-main {
    padding-bottom: 60px;
}

.company-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
}

.company-left, .company-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Блоки */
.company-block {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.cb-head {
    padding: 14px 20px;
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cb-body {
    padding: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: #1a2332;
}

.cb-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cb-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 8px;
    background: #edf2f7;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
}

.cb-tag-purple {
    background: rgba(139, 92, 246, 0.12);
    color: #6366f1;
}

/* Контакты */
.contact-row {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #edf2f7;
    align-items: flex-start;
}

.contact-row:last-child { border-bottom: none; }

.cr-icon {
    font-size: 18px;
    line-height: 1.4;
    flex-shrink: 0;
}

.cr-info {
    min-width: 0;
    flex: 1;
}

.cr-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.cr-value {
    font-size: 14px;
    color: #1a2332;
    font-weight: 500;
    text-decoration: none;
    word-break: break-word;
}

a.cr-value:hover { color: #10b981; }

.cr-empty {
    color: #a0aec0;
    font-style: italic;
    font-size: 14px;
    text-align: center;
    padding: 8px 0;
}

/* Действия */
.company-actions-block {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ca-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.ca-primary {
    background: #10b981;
    color: #fff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}

.ca-primary:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
}

.ca-ghost {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.ca-ghost:hover {
    background: #e2e8f0;
    color: #1a2332;
}

@media (max-width: 900px) {
    .company-grid { grid-template-columns: 1fr; }
    .company-hero-title { font-size: 28px; }
    .company-hero-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   RFQ-СТРАНИЦА — блок получателя и строки
   ============================================================ */

.rfq-main {
    padding-bottom: 60px;
}

.rfq-recipient {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #10b981;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.rfq-recipient-label {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 4px;
}

.rfq-recipient-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a2332;
    margin-bottom: 8px;
    word-break: break-word;
}

.rfq-recipient-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.rr-tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 600;
}

.rr-tag-country {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.rfq-back {
    color: #4a5568;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.15s;
}

.rfq-back:hover {
    color: #10b981;
}

.rfq-submit-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ============================================================
   RFQ — кнопки под письмом
   ============================================================ */

.rfq-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.rfq-actions .btn-secondary,
.rfq-actions .btn-search {
    padding: 11px 22px;
    font-size: 14px;
}

.rfq-hint {
    color: #718096;
    font-size: 13px;
    font-style: italic;
    flex-basis: 100%;
    margin-top: 4px;
}

/* ============================================================
   RFQ — оверлей имитации ИИ
   ============================================================ */

.ai-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 16, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}

.ai-overlay-box {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 20px;
    padding: 40px 48px;
    box-shadow: 0 20px 80px rgba(99, 102, 241, 0.3);
    text-align: center;
    max-width: 440px;
    position: relative;
    overflow: hidden;
}

.ai-overlay-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.4) 0%, transparent 70%);
    pointer-events: none;
}

.ai-spinner {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    margin: 0 auto 24px;
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.6);
    animation: ai-spin 1.6s ease-in-out infinite;
    position: relative;
}

.ai-spinner::after {
    content: '';
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: #111827;
}

@keyframes ai-spin {
    0% { transform: scale(1); }
    50% { transform: scale(1.15); }
    100% { transform: scale(1); }
}

.ai-overlay-title {
    font-size: 20px;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 24px;
    letter-spacing: -0.3px;
}

.ai-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.ai-step {
    font-size: 14px;
    color: #475569;
    padding-left: 26px;
    position: relative;
    transition: color 0.2s;
}

.ai-step::before {
    content: '○';
    position: absolute;
    left: 0;
    top: 0;
    color: #475569;
    font-weight: 700;
}

.ai-step.active {
    color: #e2e8f0;
}

.ai-step.active::before {
    content: '●';
    color: #10b981;
}

/* Light theme */
body[data-theme="light"] .ai-overlay {
    background: rgba(248, 250, 252, 0.92);
}

body[data-theme="light"] .ai-overlay-box {
    background: #fff;
    border-color: #e2e8f0;
    box-shadow: 0 20px 80px rgba(99, 102, 241, 0.2);
}

body[data-theme="light"] .ai-spinner::after {
    background: #fff;
}

body[data-theme="light"] .ai-overlay-title {
    color: #1a2332;
}

body[data-theme="light"] .ai-step {
    color: #94a3b8;
}

body[data-theme="light"] .ai-step.active {
    color: #1a2332;
}

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

.typing-area {
    position: relative;
    font-family: 'SF Mono', Consolas, 'Courier New', monospace;
    font-size: 14.5px;
    line-height: 1.65;
    color: #1a2332;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    min-height: 400px;
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-text {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.typing-cursor {
    display: inline-block;
    color: #10b981;
    font-weight: 700;
    animation: cursor-blink 1s steps(2, start) infinite;
    margin-left: 1px;
    vertical-align: baseline;
}

@keyframes cursor-blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

/* ============================================================
   РФ-ПОСТАВЩИКИ — каскадная форма
   ============================================================ */

.rf-cascade {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 20px;
}

.rf-submit-row {
    display: flex;
    justify-content: flex-end;
}

.rf-submit-row .btn-search {
    min-width: 220px;
    justify-content: center;
}

.sf select:disabled {
    background: #f1f5f9;
    color: #a0aec0;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .rf-cascade { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .rf-cascade { grid-template-columns: 1fr; }
    .rf-submit-row .btn-search { width: 100%; }
}

/* ============================================================
   МОБИЛЬНАЯ ШАПКА — исправление переполнения
   ============================================================ */

@media (max-width: 700px) {
    /* 1. Контейнер — меньше боковые отступы */
    .container {
        padding: 0 12px;
    }

    /* 2. Шапка — компактнее, меньше вертикальный padding */
    .header {
        padding: 10px 0;
    }

    .header-inner {
        gap: 8px;
        flex-wrap: wrap;
    }

    /* 3. Логотип — компактнее */
    .logo {
        gap: 6px;
    }
    .logo-mark {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
    .logo-text {
        font-size: 15px;
    }

    /* 4. Блок с кнопками — компактнее */
    .header-actions {
        flex-shrink: 1;
        display: flex;
        gap: 8px;
        align-items: center;
    }

    /* 5. Кнопка «Личный кабинет» — компактнее */
    .btn-cabinet {
        padding: 8px 12px;
        font-size: 13px;
    }
    .btn-cabinet .cab-ico-sm {
        font-size: 13px;
    }

    /* 6. Переключатель темы — меньше */
    .theme-toggle {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    /* 7. Меню — ОДНА строка с горизонтальной прокруткой */
    .nav {
        order: 3;
        width: 100%;
        flex-wrap: nowrap;          /* ЗАПРЕЩАЕМ перенос строк */
        overflow-x: auto;           /* Разрешаем скролл вбок */
        overflow-y: hidden;
        gap: 4px;
        margin-top: 6px;
        padding-bottom: 4px;        /* Чуть-чуть места под скроллбар */
        -webkit-overflow-scrolling: touch;  /* Плавный скролл на iOS */
        scrollbar-width: thin;      /* Тонкий скроллбар в Firefox */
    }

    /* Скрываем скроллбар в WebKit, но оставляем сам скролл */
    .nav::-webkit-scrollbar {
        height: 3px;
    }
    .nav::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
        border-radius: 3px;
    }

    .nav a {
        padding: 6px 12px;
        font-size: 13px;
        flex-shrink: 0;             /* Пункты НЕ сжимаются */
        white-space: nowrap;
    }
}

/* ============================================================
   ЗАСТАВКА VEDINFO (intro) — показывается один раз за сессию
   ============================================================ */
.vedinfo-intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    /* Градиент — как в hero, чтобы переход был бесшовным */
    background: radial-gradient(circle at 50% 40%, #0f1620 0%, #0a0e14 70%);
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.9s ease-out;
}

.vedinfo-intro canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Скрытое состояние — заставка растворяется */
.vedinfo-intro--hidden {
    opacity: 0;
    pointer-events: none;
}

/* ============================================================
   ФИКС: выпадающий список <select> (Chrome 135+)
   Причина: Chrome рендерит пикер через ::picker(select) и берёт
   системные цвета — отсюда тёмный текст на тёмном фоне.
   Правила аддитивные, старые не трогают.
   ============================================================ */
select {
    background-color: #fff;
    color: var(--dark);
}

select option {
    background-color: #fff;
    color: var(--dark);
}

select::picker(select) {
    background-color: #fff;
    color: var(--dark);
    border: 1px solid #e5e7eb;
}

select::picker(select) option {
    background-color: #fff;
    color: var(--dark);
}

select::picker(select) option:checked {
    background-color: #e8f0fe;
    color: var(--dark);
}

select::picker(select) option:hover {
    background-color: #e8f0fe;
    color: var(--dark);
}

