/* kdt.css */
/* =============
   KDT HEADER
   Самодостаточный CSS — не зависит от style.css BMC


   ============= */

html,
body {
    overflow-x: hidden !important;
}

#kdt-header,
#kdt-footer {
    max-width: 100% !important;
    overflow-x: hidden;
}
#kdt-header,
#kdt-header * {
  box-sizing: border-box;
}
#kdt-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e5e7eb;
  transition: box-shadow .25s ease, background .25s ease;
  font-family: Arial, Helvetica, sans-serif;
  
}
#kdt-header.kdt-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
}
#kdt-header .kdt-header-inner {
  width: 100%;
  max-width: 1250px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
/* Логотип */
#kdt-header .kdt-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
  color: #111827;
  text-decoration: none;
}
#kdt-header .kdt-logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #4f46e5;
  color: #fff;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .20);
}
#kdt-header .kdt-logo-text {
  font-size: 24px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.5px;
  color: #111827;
}
/* Навигация */
#kdt-header .kdt-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-left: auto;
  margin-right: auto;
}
#kdt-header .kdt-nav a {
  position: relative;
  padding: 28px 0;
  color: #475569;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: color .2s ease;
}
#kdt-header .kdt-nav a:hover,
#kdt-header .kdt-nav a.kdt-active {
  color: #4f46e5;
}
#kdt-header .kdt-nav a.kdt-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 17px;
  height: 2px;
  border-radius: 2px;
  background: #4f46e5;
}
/* Кнопки справа */
#kdt-header .kdt-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
#kdt-header .kdt-lang {
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
}
#kdt-header .kdt-divider {
  width: 1px;
  height: 24px;
  background: #e2e8f0;
}
#kdt-header .kdt-login {
  color: #334155;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s ease;
}
#kdt-header .kdt-login:hover {
  color: #4f46e5;
}
#kdt-header .kdt-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}
#kdt-header .kdt-cta:hover {
  background: #4f46e5;
  transform: translateY(-1px);
}
/* Мобильная кнопка */
#kdt-header .kdt-menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
}
#kdt-header .kdt-menu-btn:hover {
  background: #f1f5f9;
}
#kdt-header .kdt-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: #111827;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
#kdt-header .kdt-menu-btn.kdt-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#kdt-header .kdt-menu-btn.kdt-open span:nth-child(2) {
  opacity: 0;
}
#kdt-header .kdt-menu-btn.kdt-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Мобильное меню */
#kdt-header .kdt-mobile-menu {
  display: none;
  width: 100%;
  padding: 12px 24px 24px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}
#kdt-header .kdt-mobile-menu.kdt-mobile-open {
  display: flex;
  flex-direction: column;
}
#kdt-header .kdt-mobile-menu > a {
  padding: 15px 0;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
}
#kdt-header .kdt-mobile-menu > a:hover {
  color: #4f46e5;
}
#kdt-header .kdt-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}
#kdt-header .kdt-mobile-actions a {
  padding: 13px 16px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
#kdt-header .kdt-mobile-register {
  color: #4f46e5;
  background: #eef2ff;
}
#kdt-header .kdt-mobile-login {
  color: #fff;
  background: #4f46e5;
}
/* Планшет */
@media (max-width: 1100px) {
  #kdt-header .kdt-header-inner {
    padding: 0 24px;
    gap: 20px;
  }
  #kdt-header .kdt-nav {
    gap: 18px;
  }
  #kdt-header .kdt-nav a {
    font-size: 14px;
  }
  #kdt-header .kdt-cta {
    padding: 0 14px;
  }
}
/* Мобильная версия */
@media (max-width: 900px) {
  #kdt-header .kdt-header-inner {
    min-height: 68px;
    padding: 0 20px;
  }
  #kdt-header .kdt-nav,
  #kdt-header .kdt-header-actions {
    display: none;
  }
  #kdt-header .kdt-menu-btn {
    display: block;
  }
  #kdt-header .kdt-logo-text {
    font-size: 21px;
  }
  #kdt-header .kdt-logo-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }
}
/* =========================================================
   KDT HEADER — РАСТЯГИВАЕМ ДО ШИРИНЫ ЭКРАНА
   Игнорируем старый BMC .container
   ========================================================= */

#kdt-header {
    position: relative !important;
    left: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#kdt-header .kdt-header-inner {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

#kdt-header,
#kdt-header * {
    box-sizing: border-box !important;
}


/*-----------------------------------------------------------------------------------------------*/
/*<style id="kdt-footer-style">*/

#kdt-footer, #kdt-footer * { box-sizing:border-box; }
#kdt-footer {
  background:#f8fafc;
  border-top:1px solid #e2e8f0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
}
#kdt-footer .kdt-footer-inner {
  width:min(1200px,calc(100% - 32px));
  margin:0 auto;
  padding:56px 0 42px;
  display:grid;
  grid-template-columns:2fr 1fr 1fr 1.5fr;
  gap:40px;
}
#kdt-footer .kdt-footer-brand { max-width:360px; }
#kdt-footer .kdt-footer-logo {
  display:inline-block;
  margin-bottom:14px;
  color:#0f172a !important;
  font-size:24px;
  font-weight:800;
  text-decoration:none !important;
}
#kdt-footer p { color:#64748b; line-height:1.7; margin:0; }
#kdt-footer h4 { color:#0f172a; margin:0 0 16px; font-size:15px; font-weight:800; }
#kdt-footer .kdt-footer-inner > div:not(.kdt-footer-brand) a {
  display:block;
  margin:0 0 11px;
  color:#64748b !important;
  font-size:14px;
  text-decoration:none !important;
}
#kdt-footer a:hover { color:#4f46e5 !important; }
#kdt-footer .kdt-footer-bottom {
  width:min(1200px,calc(100% - 32px));
  margin:0 auto;
  padding:20px 0 24px;
  border-top:1px solid #e2e8f0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  color:#94a3b8;
  font-size:13px;
}
#kdt-footer .kdt-footer-bottom a { color:#94a3b8 !important; text-decoration:none !important; }
@media(max-width:800px) {
  #kdt-footer .kdt-footer-inner { grid-template-columns:1fr 1fr; }
  #kdt-footer .kdt-footer-brand { grid-column:1/-1; }
  #kdt-footer .kdt-footer-bottom { flex-direction:column; }
}
@media(max-width:480px) {
  #kdt-footer .kdt-footer-inner { grid-template-columns:1fr; }
  #kdt-footer .kdt-footer-brand { grid-column:auto; }
}

/* =========================================================
   FIX: УБИРАЕМ ГОРИЗОНТАЛЬНЫЙ СКРОЛЛ САЙТА
   ========================================================= */

html {
    overflow-x: clip !important;
    width: 100% !important;
}

body {
    overflow-x: clip !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Старый контейнер BMC */
#wrapper {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
}

/* Контейнеры старого шаблона */
#wrapper > .container {
    max-width: 100% !important;
    width: 100% !important;
    overflow-x: clip !important;
}

/* KDT-контент */
.kdt-about-page,
.kdt-about-page * {
    box-sizing: border-box !important;
}

.kdt-about-page {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
}