/* ==========================================================================
   APEX TURKEY B2B — ЧИСТЫЙ КОРПОРАТИВНЫЙ CSS
   ========================================================================== */

:root {
  --navy: #0E2A32;
  --navy-light: #1C4A55;
  --navy-dark: #071619;
  --accent: #C8672B;
  --accent-hover: #A8551F;
  --accent-soft: rgba(200, 103, 43, 0.12);
  --bg-light: #F8FAFC;
  --text-main: #1E293B;
  --text-muted: #64748B;
  --border-color: #E2E8F0;
  --font-base: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-base);
  color: var(--text-main);
  background-color: #FFFFFF;
  line-height: 1.55;
  overflow-x: hidden;
}

/* ==========================================================================
   1. TOPBAR
   ========================================================================== */
.topbar-corp {
  background-color: var(--navy-dark) !important;
  color: #94A3B8 !important;
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-link {
  color: #94A3B8 !important;
  text-decoration: none;
  transition: color 0.2s;
}

.topbar-link:hover {
  color: var(--accent) !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.lang-switch span.active {
  color: #FFFFFF !important;
  font-weight: 700;
}

.lang-switch a {
  color: #94A3B8 !important;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--accent) !important;
}

/* ==========================================================================
   2. HEADER & MENU (ЧЕТКАЯ ВЕРСТКА БЕЗ ПЕРЕКОСОВ)
   ========================================================================== */
.header-corp {
  background-color: #FFFFFF !important;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.header-corp .navbar {
  padding: 10px 0 !important;
  min-height: 76px;
}

.logo-mark {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--accent) 100%);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-mark.sm {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy) !important;
  letter-spacing: -0.5px;
  line-height: 1.1;
  white-space: nowrap;
}

.logo-sub {
  font-size: 0.62rem;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--accent) !important;
  white-space: nowrap;
}

/* Меню */
.navbar-nav {
  gap: 6px;
}

.navbar-nav .nav-link {
  color: var(--navy-light) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px !important;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--accent) !important;
}

.dropdown-menu {
  border: 1px solid var(--border-color) !important;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
}

.dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 16px;
}

.dropdown-item:hover {
  background-color: var(--bg-light);
  color: var(--accent);
}

.header-action-wrap {
  flex-shrink: 0;
}

.burger-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--navy);
  margin: 5px 0;
}

/* ==========================================================================
   3. КНОПКИ
   ========================================================================== */
.btn-corp-primary {
  background-color: var(--accent) !important;
  border: 1px solid var(--accent) !important;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-corp-primary:hover {
  background-color: var(--accent-hover) !important;
  border-color: var(--accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(200, 103, 43, 0.28);
}

.btn-corp-secondary {
  background-color: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.4) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  padding: 10px 22px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-corp-secondary:hover {
  background-color: #FFFFFF !important;
  color: var(--navy) !important;
}

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--navy) !important;
  color: var(--navy) !important;
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 6px;
  padding: 6px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-outline-navy:hover {
  background-color: var(--navy) !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   4. HERO СЕКЦИЯ (ЖЕСТКИЙ ТЕМНЫЙ ФОН И БЕЛЫЙ ЧИТАЕМЫЙ ТЕКСТ)
   ========================================================================== */
.corp-hero {
  background: linear-gradient(135deg, #0E2A32 0%, #1C4A55 100%) !important;
  color: #FFFFFF !important;
  padding: 70px 0 80px;
  position: relative;
}

.corp-meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 103, 43, 0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent);
}

.hero-heading {
  color: #FFFFFF !important;
  font-size: clamp(2.1rem, 3.8vw, 3.3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.5px;
}

.hero-desc {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Статистика внизу Hero */
.hero-stats-row {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.stat-num {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2px;
}

.stat-lbl {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Карточка формы справа */
.quote-card {
  background: #FFFFFF !important;
  color: var(--text-main) !important;
  border-radius: 16px;
  padding: 34px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.badge-time {
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.quote-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.corp-input {
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.92rem;
}

.corp-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 103, 43, 0.14);
}

/* ==========================================================================
   5. ОБЩИЕ СЕКЦИИ
   ========================================================================== */
.corp-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent);
  display: block;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.25;
  color: var(--navy);
}

.terminal-img-wrap {
  height: 360px;
  overflow: hidden;
  border-radius: 16px;
}

.terminal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.terminal-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(11, 25, 44, 0.92);
  backdrop-filter: blur(8px);
  padding: 14px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.infra-feature-card {
  padding: 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
}

.sector-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.sector-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.sector-icon {
  font-size: 2rem;
  color: var(--accent);
}

.sector-tag {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--navy-light);
  background: var(--bg-light);
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
  width: fit-content;
}

/* Таблицы */
.table-responsive {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow-x: auto;
}

.table th {
  background-color: var(--navy) !important;
  color: #FFFFFF !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 16px;
}

.table td {
  padding: 14px 16px;
  vertical-align: middle;
}

/* Калькулятор */
.calc-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: 16px;
}

/* FAQ */
.corp-accordion .accordion-button:not(.collapsed) {
  background-color: var(--bg-light);
  color: var(--accent);
  box-shadow: none;
}

/* Футер */
.corp-footer {
  background-color: var(--navy-dark) !important;
  color: rgba(255, 255, 255, 0.7);
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
}

.footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

/* ==========================================================================
   6. МОБИЛЬНАЯ ВЕРСИЯ
   ========================================================================== */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #FFFFFF;
    border-top: 1px solid var(--border-color);
    padding: 16px 0;
    margin-top: 10px;
  }

  .navbar-nav .nav-link {
    padding: 10px 0 !important;
    border-bottom: 1px solid #F1F5F9;
  }

  .header-action-wrap {
    margin-top: 14px;
  }

  .header-action-wrap .btn-corp-primary {
    width: 100%;
  }

  .corp-hero {
    padding: 45px 0 60px;
  }

  .hero-heading {
    font-size: 2.1rem;
  }

  .hero-btn-group .btn {
    width: 100%;
  }

  .terminal-img-wrap {
    height: 250px;
  }
}

@media (max-width: 575.98px) {
  .quote-card {
    padding: 22px 18px;
  }

  .hero-heading {
    font-size: 1.75rem;
  }

  .stat-num {
    font-size: 1.6rem;
  }

  .calc-card {
    padding: 20px 16px;
  }
}
/* ==========================================================================
   ФИКС КАТАЛОГА (ТАБЫ, ШАПКА КАТЕГОРИИ, ТАБЛИЦА)
   ========================================================================== */

/* 1. Жесткая фиксация кнопки в шапке */
.header-corp .btn-corp-primary {
  padding: 8px 18px !important;
  font-size: 0.88rem !important;
  line-height: 1.2 !important;
  height: 40px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  white-space: nowrap !important;
}

/* 2. Левая колонка — идеальные плашки табов */
.catalog-sidebar .nav.custom-pills {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
}

.catalog-sidebar .nav.custom-pills .nav-link {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 16px !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: #1C4A55 !important;
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 8px !important;
  text-align: left !important;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease !important;
}

.catalog-sidebar .nav.custom-pills .nav-link i {
  color: #64748B !important;
  font-size: 1rem !important;
  width: 20px !important;
  text-align: center !important;
}

/* Ховер таба */
.catalog-sidebar .nav.custom-pills .nav-link:hover {
  background-color: #F8FAFC !important;
  border-color: #C8672B !important;
  color: #C8672B !important;
}

.catalog-sidebar .nav.custom-pills .nav-link:hover i {
  color: #C8672B !important;
}

/* АКТИВНЫЙ ТАБ: темно-синий с белым текстом и оранжевой иконкой */
.catalog-sidebar .nav.custom-pills .nav-link.active {
  background-color: #0E2A32 !important;
  border-color: #0E2A32 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(11, 25, 44, 0.15) !important;
}

.catalog-sidebar .nav.custom-pills .nav-link.active i {
  color: #C8672B !important;
}

/* 3. Плашка описания категории вверху контента */
.tab-pane .category-hero-card,
.tab-pane > .border.rounded-4 {
  background-color: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
}

.tab-pane .badge-corp,
.tab-pane span.badge.bg-accent {
  background-color: #C8672B !important;
  color: #FFFFFF !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 5px 12px !important;
  border-radius: 20px !important;
  display: inline-block !important;
}

/* 4. Карточка "Подбор аналогов" слева */
.catalog-sidebar .sidebar-cta-box,
.catalog-sidebar .p-3.mt-4.rounded-3 {
  background-color: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 12px !important;
  padding: 20px !important;
}

.catalog-sidebar .sidebar-cta-box .btn,
.catalog-sidebar .p-3.mt-4.rounded-3 .btn {
  background-color: #C8672B !important;
  border-color: #C8672B !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  padding: 10px 16px !important;
}

/* 5. Шапка каталога и хлебные крошки */
.page-header {
  background-color: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
  padding: 28px 0 !important;
  margin-bottom: 24px !important;
}

/* 6. Мобильная полоса прокрутки табов */
@media (max-width: 991.98px) {
  .catalog-sidebar .nav.custom-pills {
    flex-direction: row !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch;
  }

  .catalog-sidebar .nav.custom-pills .nav-link {
    width: auto !important;
    flex: 0 0 auto !important;
    padding: 8px 14px !important;
    font-size: 0.85rem !important;
  }
}
/* ==========================================================================
   ФИКС ТЕМНЫХ СЕКЦИЙ И КАЛЬКУЛЯТОРА (INDEX & ВСЕ СТРАНИЦЫ)
   ========================================================================== */

/* 1. Принудительный темный фон для секции калькулятора и любых bg-navy блоков */
section#calculator,
section.bg-navy,
.bg-navy {
  background-color: #0E2A32 !important;
  background: #0E2A32 !important;
  color: #FFFFFF !important;
  position: relative;
  z-index: 1;
}

/* 2. Принудительная видимость заголовка и текста слева от калькулятора */
#calculator h2,
#calculator .section-heading,
section.bg-navy h2 {
  color: #FFFFFF !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  font-weight: 800;
}

#calculator p,
#calculator .text-light-70,
section.bg-navy p {
  color: rgba(255, 255, 255, 0.75) !important;
  display: block !important;
  visibility: visible !important;
}

/* 3. Информационная плашка под текстом */
#calculator .bg-white-5,
#calculator .border-white-10 {
  background-color: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 4. Белая карточка калькулятора справа */
#calculator .calc-card,
#calculator .card {
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25) !important;
  border: none !important;
}

#calculator .calc-card h5,
#calculator .card h5 {
  color: #0E2A32 !important;
}

#calculator .form-label {
  color: #0E2A32 !important;
  font-weight: 700 !important;
  font-size: 0.82rem !important;
  margin-bottom: 5px;
}

/* 5. Серая плашка с расчетом цены внутри калькулятора */
#calculator .bg-light-corp {
  background-color: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
}

#calculator #calcResultPrice {
  color: #0E2A32 !important;
}

/* ==========================================================================
   ГЛОБАЛЬНЫЙ МОБИЛЬНЫЙ ФИКС (ДЛЯ ВСЕХ СТРАНИЦ)
   ========================================================================== */
@media (max-width: 991.98px) {
  /* Запрет любого горизонтального скролла на всем сайте */
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Исправление перекоса колонок в Hero и Калькуляторе */
  .corp-hero .row,
  #calculator .row {
    flex-direction: column !important;
    gap: 32px !important;
  }

  .corp-hero .col-lg-7,
  .corp-hero .col-lg-5,
  #calculator .col-lg-5,
  #calculator .col-lg-7 {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Карточки форм на смартфонах */
  .quote-card,
  #calculator .calc-card,
  #calculator .card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }

  /* Таблицы не должны сжиматься в кашу — горизонтальный свайп */
  .table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    border: 1px solid #E2E8F0 !important;
    border-radius: 10px !important;
    margin-bottom: 20px;
  }

  .table th, .table td {
    white-space: nowrap !important;
    font-size: 0.85rem !important;
    padding: 10px 12px !important;
  }

  /* Заголовки */
  .hero-heading {
    font-size: 1.85rem !important;
    line-height: 1.2 !important;
  }

  .section-heading, h2 {
    font-size: 1.6rem !important;
    line-height: 1.25 !important;
  }
}
/* ==========================================================================
   СТИЛИ ПРЕМИАЛЬНОГО B2B ФУТЕРА
   ========================================================================== */

.corp-footer {
  background-color: #071619 !important;
  color: #94A3B8 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.92rem;
}

/* Белый логотип в подвале */
.corp-footer .logo-title {
  color: #FFFFFF !important;
}

.corp-footer .logo-sub {
  color: #C8672B !important;
}

.footer-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #94A3B8;
}

/* Карточка реквизитов (контрастная и четкая) */
.footer-legal-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
}

.legal-label {
  color: #64748B;
  display: inline-block;
  min-width: 90px;
}

.legal-value {
  color: #E2E8F0;
  font-weight: 600;
  font-family: monospace;
}

/* Кнопки соцсетей/мессенджеров */
.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #FFFFFF !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.05rem;
  transition: all 0.25s ease;
}

.footer-social-btn:hover {
  background: #C8672B;
  border-color: #C8672B;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(200, 103, 43, 0.3);
}

/* Заголовки колонок */
.footer-col-title {
  color: #FFFFFF;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: #C8672B;
  border-radius: 2px;
}

/* Ссылки меню */
.footer-menu li {
  margin-bottom: 10px;
}

.footer-link {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.footer-link:hover {
  color: #C8672B !important;
  transform: translateX(4px);
}

/* Контактный блок */
.contact-icon {
  color: #C8672B;
  font-size: 1.1rem;
}

.footer-contact-text {
  font-size: 0.85rem;
  color: #94A3B8;
  line-height: 1.45;
}

/* Нижняя строчка */
.footer-bottom {
  font-size: 0.82rem;
}

.footer-sublink {
  color: #64748B;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-sublink:hover {
  color: #C8672B;
}

.text-white-10 {
  color: rgba(255, 255, 255, 0.15);
}

/* Мобильная доработка */
@media (max-width: 767.98px) {
  .corp-footer {
    padding-top: 40px !important;
  }
  .footer-col-title {
    margin-bottom: 16px;
  }
  .footer-legal-box {
    margin-bottom: 20px;
  }
}
.terminal-badge span {
    color: #ffffffbf;
}
.footer-bottom.margin-top.pt-4.border-top.border-white-10.d-flex.flex-column.flex-md-row.justify-content-between.align-items-center.gap-3 {
    margin-top: 20px;
}
.footer-bottom.margin-top.pt-4.border-top.border-white-10.d-flex.flex-column.flex-md-row.justify-content-between.align-items-center.gap-3 a {
    color: #C8672B;
}
.footer-bottom.margin-top.pt-4.border-top.border-white-10.d-flex.flex-column.flex-md-row.justify-content-between.align-items-center.gap-3 p.center {
    margin-bottom: 0;
}