/* 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: 36px;
  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 {
  color: #4f46e5;
}

#kdt-header .kdt-nav a.kdt-active {
  color: #4f46e5 !important;
}
#kdt-header .kdt-nav a.kdt-active::after {
  content: none !important;
  display: none !important;
}
/ Кнопки справа /
#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: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    z-index: 10000 !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;
}
/* =========================
   FOOTER
   ========================= */

#kdt-footer,#kdt-footer *{box-sizing:border-box!important}
#kdt-footer{width:100%!important;max-width:100%!important;margin:0!important;background:#f8fafc!important;border-top:1px solid #e2e8f0!important;color:#0f172a;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important}
#kdt-footer .kdt-footer-inner{
  width:min(1200px,calc(100% - 64px))!important;margin:0 auto!important;padding:64px 0 56px!important;
  display:grid!important;
  grid-template-columns:minmax(290px,2.1fr) minmax(130px,1fr) minmax(130px,1fr) minmax(140px,1fr) minmax(160px,1.15fr)!important;
  column-gap:52px!important;row-gap:48px!important;align-items:start!important;
}
#kdt-footer .kdt-footer-brand{max-width:430px!important;min-width:0!important}
#kdt-footer .kdt-footer-logo{display:inline-flex!important;align-items:center!important;gap:9px!important;margin:0 0 22px!important;color:#0f172a!important;text-decoration:none!important}
#kdt-footer .kdt-footer-logo-icon{width:40px!important;height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;background:#4f46e5!important;color:#fff!important;border-radius:9px!important;flex:0 0 40px!important;transition:.2s!important}
#kdt-footer .kdt-footer-logo:hover .kdt-footer-logo-icon{background:#4338ca!important;transform:translateY(-1px)!important;box-shadow:0 7px 18px rgba(79,70,229,.22)!important}
#kdt-footer .kdt-footer-logo-svg{width:22px!important;height:22px!important;stroke-width:2!important}
#kdt-footer .kdt-footer-logo-text{font-size:24px!important;line-height:1!important;font-weight:800!important;letter-spacing:-.5px!important;color:#0f172a!important}
#kdt-footer .kdt-footer-description{max-width:430px!important;margin:0!important;color:#64748b!important;font-size:16px!important;line-height:1.6!important}
#kdt-footer .kdt-footer-socials{display:flex!important;align-items:center!important;gap:16px!important;margin-top:28px!important}
#kdt-footer .kdt-footer-social{width:40px!important;height:40px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;border:1px solid #dbe3ef!important;border-radius:50%!important;background:#fff!important;color:#64748b!important;text-decoration:none!important;transition:.2s!important}
#kdt-footer .kdt-footer-social span{display:block!important;width:15px!important;height:15px!important;border-radius:2px!important;background:currentColor!important}
#kdt-footer .kdt-footer-social:hover{background:#4f46e5!important;border-color:#4f46e5!important;color:#fff!important;transform:translateY(-1px)!important;box-shadow:0 7px 16px rgba(79,70,229,.20)!important}
#kdt-footer .kdt-footer-contact{margin-top:48px!important;max-width:560px!important}
#kdt-footer .kdt-footer-contact h4,#kdt-footer .kdt-footer-column h4{margin:4px 0 22px!important;color:#0f172a!important;font-size:15px!important;line-height:1.2!important;font-weight:800!important}
#kdt-footer .kdt-footer-contact h4{margin-top:0!important}
#kdt-footer .kdt-footer-contact-item{display:flex!important;align-items:flex-start!important;gap:11px!important;margin:0 0 18px!important;color:#7183a0!important;font-size:14px!important;line-height:1.5!important;text-decoration:none!important;transition:color .2s ease!important}
#kdt-footer .kdt-footer-contact-item i,#kdt-footer .kdt-footer-contact-item svg{width:19px!important;height:19px!important;flex:0 0 19px!important;margin-top:1px!important;color:#6366f1!important;stroke-width:1.8!important}
#kdt-footer .kdt-footer-contact-item:hover{color:#4f46e5!important}
#kdt-footer .kdt-footer-column{min-width:0!important}
#kdt-footer .kdt-footer-column a{display:block!important;width:fit-content!important;margin:0 0 18px!important;color:#7183a0!important;font-size:14px!important;line-height:1.35!important;text-decoration:none!important;transition:color .2s ease,transform .2s ease!important}
#kdt-footer .kdt-footer-column a:hover{color:#4f46e5!important;transform:translateX(2px)!important}
#kdt-footer .kdt-footer-bottom{width:min(1200px,calc(100% - 64px))!important;margin:0 auto!important;padding:22px 0 30px!important;border-top:1px solid #dfe6ef!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;color:#94a3b8!important;font-size:13px!important;line-height:1.5!important}
#kdt-footer .kdt-footer-legal{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:14px!important}
#kdt-footer .kdt-footer-bottom a{color:#94a3b8!important;text-decoration:none!important;transition:color .2s ease!important}
#kdt-footer .kdt-footer-bottom a:hover{color:#4f46e5!important}
@media(max-width:1100px){
  #kdt-footer .kdt-footer-inner{grid-template-columns:minmax(250px,2fr) minmax(120px,1fr) minmax(120px,1fr) minmax(120px,1fr) minmax(140px,1fr)!important;column-gap:28px!important}
}
@media(max-width:900px){
  #kdt-footer .kdt-footer-inner{width:min(100% - 40px,720px)!important;grid-template-columns:1fr 1fr!important;column-gap:40px!important;padding:52px 0 44px!important}
  #kdt-footer .kdt-footer-brand{grid-column:1/-1!important;max-width:100%!important}
  #kdt-footer .kdt-footer-contact{margin-top:36px!important}
  #kdt-footer .kdt-footer-bottom{width:min(100% - 40px,720px)!important;align-items:flex-start!important;flex-direction:column!important;padding-bottom:24px!important}
  #kdt-footer .kdt-footer-legal{justify-content:flex-start!important}
}
@media(max-width:560px){
  #kdt-footer .kdt-footer-inner{width:min(100% - 32px,480px)!important;grid-template-columns:1fr!important;gap:36px!important;padding:44px 0 38px!important}
  #kdt-footer .kdt-footer-brand{grid-column:auto!important}
  #kdt-footer .kdt-footer-bottom{width:min(100% - 32px,480px)!important;gap:14px!important;font-size:12px!important}
  #kdt-footer .kdt-footer-legal{gap:10px!important}
}


/* =========================================================
   KDT HEADER — ТОЛЬКО FIXED
   Остальной дизайн Header не изменяется.
   ========================================================= */

#kdt-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 10000 !important;
}

/* Предыдущая версия добавляла padding-top и из-за этого
   меняла исходное расположение страницы. Убираем его. */
body {
    padding-top: 0 !important;
}


/* KDT HEADER — FINAL
   Сохраняем исходный внешний вид.
   Header находится в обычном месте сверху и
   при вертикальном скролле прилипает к верху.
*/
#kdt-header {
    position: sticky !important;
    top: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    z-index: 10000 !important;
    background: rgba(255,255,255,0.98) !important;
}

#kdt-header .kdt-mobile-menu {
    display: none !important;
}

#kdt-header .kdt-mobile-menu.kdt-mobile-open {
    display: flex !important;
    flex-direction: column !important;
}


/* =========================================================
   KDT HEADER — EXACT DESKTOP/MOBILE VISIBILITY
   Не меняет дизайн, только исправляет burger на desktop
   и сохраняет исходные размеры/раскладку.
   ========================================================= */

/* Исходная ширина Header как в твоём дизайне */
#kdt-header .kdt-header-inner {
    width: 100% !important;
    max-width: 1250px !important;
    min-height: 76px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 32px !important;
    padding-right: 32px !important;
}

/* Desktop: burger НИКОГДА не показываем */
#kdt-header .kdt-menu-btn {
    display: none !important;
}

/* Desktop: мобильное меню НИКОГДА не показываем */
#kdt-header .kdt-mobile-menu {
    display: none !important;
}

/* Только мобильные экраны */
@media (max-width: 900px) {
    #kdt-header .kdt-nav,
    #kdt-header .kdt-header-actions {
        display: none !important;
    }

    #kdt-header .kdt-menu-btn {
        display: block !important;
    }

    #kdt-header .kdt-mobile-menu {
        display: none !important;
    }

    #kdt-header .kdt-mobile-menu.kdt-mobile-open {
        display: flex !important;
        flex-direction: column !important;
    }

    #kdt-header .kdt-header-inner {
        min-height: 68px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    #kdt-header .kdt-logo-text {
        font-size: 21px !important;
    }

    #kdt-header .kdt-logo-icon {
        width: 34px !important;
        height: 34px !important;
        font-size: 18px !important;
    }
}


/* =========================================================
   KDT HEADER — SPACING FINAL
   Гарантируем расстояния через margin, а не только gap,
   чтобы стили BMC не могли сжать пункты меню.
   ========================================================= */

/* Не даём основным блокам сжиматься */
#kdt-header .kdt-logo,
#kdt-header .kdt-nav,
#kdt-header .kdt-header-actions {
    flex-shrink: 0 !important;
}

/* Сам контейнер */
#kdt-header .kdt-header-inner {
    gap: 44px !important;
}

/* Навигация */
#kdt-header .kdt-nav {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
}

#kdt-header .kdt-nav a {
    display: block !important;
    flex: 0 0 auto !important;
    margin: 0 38px 0 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    white-space: nowrap !important;
}

#kdt-header .kdt-nav a:last-child {
    margin-right: 0 !important;
}

/* Правая часть Header */
#kdt-header .kdt-header-actions {
    display: flex !important;
    align-items: center !important;
    flex: 0 0 auto !important;
    gap: 0 !important;
    white-space: nowrap !important;
}

#kdt-header .kdt-header-actions > * {
    flex: 0 0 auto !important;
}

#kdt-header .kdt-lang {
    margin-right: 12px !important;
}

#kdt-header .kdt-divider {
    margin-right: 16px !important;
}

#kdt-header .kdt-login {
    margin-right: 20px !important;
    white-space: nowrap !important;
}

#kdt-header .kdt-cta {
    min-width: 160px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    white-space: nowrap !important;
}

/* На более узком desktop уменьшаем расстояния, но не сжимаем текст */
@media (max-width: 1100px) and (min-width: 901px) {
    #kdt-header .kdt-header-inner {
        gap: 24px !important;
        padding-left: 24px !important;
        padding-right: 24px !important;
    }

    #kdt-header .kdt-nav a {
        margin-right: 20px !important;
    }

    #kdt-header .kdt-lang {
        margin-right: 8px !important;
    }

    #kdt-header .kdt-divider {
        margin-right: 12px !important;
    }

    #kdt-header .kdt-login {
        margin-right: 12px !important;
    }

    #kdt-header .kdt-cta {
        min-width: 145px !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

/* Mobile: desktop spacing не должен влиять */
@media (max-width: 900px) {
    #kdt-header .kdt-header-inner {
        gap: 0 !important;
    }
}


/* =========================================================
   KDT MOBILE BURGER — FINAL
   Точный вид как на мобильном макете:
   чистая кнопка без рамки/фона, 3 тёмные линии,
   при открытии превращаются в X.
   ========================================================= */

@media (max-width: 900px) {

    /* Сам мобильный header */
    #kdt-header .kdt-header-inner {
        min-height: 68px !important;
        height: 68px !important;
        padding: 0 18px !important;
        gap: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* Логотип */
    #kdt-header .kdt-logo {
        display: inline-flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: 0 0 auto !important;
        min-width: 0 !important;
    }

    #kdt-header .kdt-logo-icon {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
        border-radius: 10px !important;
        font-size: 20px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    #kdt-header .kdt-logo-text {
        font-size: 24px !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }

    /* Burger */
    #kdt-header .kdt-menu-btn {
        display: inline-flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;

        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;

        margin: 0 !important;
        padding: 8px !important;

        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        color: #111827 !important;

        appearance: none !important;
        -webkit-appearance: none !important;

        border-radius: 8px !important;
        cursor: pointer !important;
    }

    #kdt-header .kdt-menu-btn:hover,
    #kdt-header .kdt-menu-btn:focus,
    #kdt-header .kdt-menu-btn:active {
        background: transparent !important;
        border: 0 !important;
        outline: 0 !important;
        box-shadow: none !important;
    }

    /* Три линии */
    #kdt-header .kdt-menu-btn span {
        display: block !important;
        width: 23px !important;
        height: 2px !important;
        min-width: 23px !important;
        min-height: 2px !important;

        margin: 0 0 5px 0 !important;
        padding: 0 !important;

        background: #111827 !important;
        border: 0 !important;
        border-radius: 2px !important;

        opacity: 1 !important;
        visibility: visible !important;

        transform: none !important;
        transition:
            transform .2s ease,
            opacity .2s ease,
            background-color .2s ease !important;
    }

    #kdt-header .kdt-menu-btn span:last-child {
        margin-bottom: 0 !important;
    }

    /* Состояние X */
    #kdt-header .kdt-menu-btn.kdt-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    #kdt-header .kdt-menu-btn.kdt-open span:nth-child(2) {
        opacity: 0 !important;
    }

    #kdt-header .kdt-menu-btn.kdt-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* Мобильное меню */
    #kdt-header .kdt-mobile-menu {
        display: none !important;
        position: absolute !important;
        top: 68px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;

        padding: 12px 18px 20px !important;
        background: #ffffff !important;

        border-top: 1px solid #f1f5f9 !important;
        border-bottom: 1px solid #e2e8f0 !important;

        box-shadow: 0 10px 24px rgba(15, 23, 42, .10) !important;

        z-index: 10001 !important;
    }

    #kdt-header .kdt-mobile-menu.kdt-mobile-open {
        display: flex !important;
        flex-direction: column !important;
    }

    #kdt-header .kdt-mobile-menu > a {
        display: block !important;
        width: 100% !important;

        padding: 18px 0 !important;
        margin: 0 !important;

        border-bottom: 1px solid #f1f5f9 !important;

        color: #334155 !important;
        background: #ffffff !important;

        font-size: 16px !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;

        text-decoration: none !important;
    }

    #kdt-header .kdt-mobile-menu > a:first-child {
        color: #4f46e5 !important;
    }

    #kdt-header .kdt-mobile-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        margin-top: 18px !important;
    }

    #kdt-header .kdt-mobile-actions a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-height: 48px !important;

        padding: 13px 16px !important;
        border-radius: 8px !important;

        text-align: center !important;
        text-decoration: none !important;
        font-weight: 700 !important;
        font-size: 15px !important;
    }

    #kdt-header .kdt-mobile-register {
        color: #4f46e5 !important;
        background: #f8faff !important;
        border: 1px solid #cfd8ff !important;
    }

    #kdt-header .kdt-mobile-login {
        color: #ffffff !important;
        background: #4f46e5 !important;
        border: 1px solid #4f46e5 !important;
        box-shadow: 0 5px 12px rgba(79,70,229,.18) !important;
    }
}

/* KDT header base. Mobile state is controlled inline by kdt-header.html. */
#kdt-header, #kdt-header * { box-sizing: border-box; }

#kdt-header {
  position: sticky !important;
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 10000 !important;
  background: rgba(255,255,255,.98) !important;
}

#kdt-header .kdt-header-inner {
  width: 100% !important;
  max-width: 1250px !important;
  min-height: 76px !important;
  margin: 0 auto !important;
  padding: 0 32px !important;
}


/* =========================================================
   BMC ADMIN / EDITOR OVERLAY FIX
   KDT Header must not cover BMC editor windows/panels.
   ========================================================= */

#kdt-header {
    z-index: 100 !important;
}

#kdt-header .kdt-mobile-menu {
    z-index: 101 !important;
}
