/* ============================================================
   FOUNDERS LAB — CSS ШАПКИ
   Вставить в: Site Settings → Custom CSS
   ============================================================ */
 
#fl-header,
#fl-header * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
 
body {
  padding-top: 62px !important;
}
 
/* Скрыть стандартное меню Tilda если есть */
.t-header, .t-menu, .t396__top {
  display: none !important;
}
 
/* ── ШАПКА ── */
#fl-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 99999;
  height: 62px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
 
#fl-header .h-bg {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow .3s;
}
 
/* ── ПИКСЕЛЬНАЯ ГРАНИЦА СНИЗУ ── */
#fl-header .h-border {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  display: flex;
  overflow: hidden;
}
#fl-header .h-border-accent {
  height: 100%;
  width: 80px;
  background: #2C2A7D;
  flex-shrink: 0;
  transition: background .3s, width .3s;
}
#fl-header .h-border-dots {
  flex: 1;
  height: 100%;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(44,42,125,.4) 0, rgba(44,42,125,.4) 4px,
    transparent 4px, transparent 10px
  );
}
#fl-header .h-border-end {
  width: 6px;
  height: 100%;
  background: #C64D2E;
  flex-shrink: 0;
}
 
/* ── КОНТЕЙНЕР ── */
#fl-header .h-inner {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 52px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
 
/* ── ЛОГОТИП ── */
#fl-header .h-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  height: 32px;
}
#fl-header .h-logo img {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: opacity .2s;
}
#fl-header .h-logo:hover img { opacity: .8; }
#fl-header .h-logo svg { height: 28px; width: auto; display: block; }
 
/* ── NAV ── */
#fl-header .h-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
#fl-header .h-nav > li {
  position: relative;
}
#fl-header .h-nav > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  color: #E3F1F1;
  transition: color .2s;
  white-space: nowrap;
}
#fl-header .h-nav > li > a:hover { color: #fff; }
#fl-header .h-nav > li > a.is-active { color: #fff; }
#fl-header .h-nav > li > a.is-active::after {
  content: '';
  position: absolute;
  bottom: 0; left: 12px; right: 12px;
  height: 1px;
  background: currentColor;
  opacity: .4;
}
 
/* Стрелка у пункта с подменю */
#fl-header .h-nav .has-sub > a .h-arr {
  display: inline-block;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .2s;
  opacity: .55;
  flex-shrink: 0;
}
#fl-header .h-nav .has-sub:hover > a .h-arr {
  transform: rotate(-135deg) translateY(2px);
  opacity: 1;
}
 
/* ── ВЫПАДАЮЩИЙ СПИСОК ── */
#fl-header .h-sub {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  background: rgba(10,10,10,.98);
  border: 1px solid rgba(44,42,125,.3);
  border-top: 2px solid #2C2A7D;
  list-style: none;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
  transform: translateX(-50%) translateY(-6px);
  z-index: 9999;
}
/* Мостик — чтобы мышь не выскальзывала */
#fl-header .h-sub::before {
  content: '';
  position: absolute;
  top: -8px; left: 0; right: 0;
  height: 8px;
}
#fl-header .h-nav .has-sub:hover .h-sub {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}
#fl-header .h-sub li { margin: 0; padding: 0; }
#fl-header .h-sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  color: #AEACCC;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid rgba(44,42,125,.12);
  transition: color .15s, background .15s;
  font-family: 'Inter', -apple-system, sans-serif;
}
#fl-header .h-sub li:last-child a { border-bottom: none; }
#fl-header .h-sub a:hover {
  color: #fff;
  background: rgba(44,42,125,.15);
}
#fl-header .h-sub .sub-dot {
  width: 6px; height: 6px;
  display: block;
  flex-shrink: 0;
  transition: transform .2s;
}
#fl-header .h-sub a:hover .sub-dot { transform: scale(1.5); }
 
/* ── КНОПКА CTA ── */
#fl-header .h-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .05em;
  text-decoration: none;
  background: #2C2A7D;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s;
  clip-path: polygon(
    0 0, calc(100% - 6px) 0, 100% 6px,
    100% 100%, 6px 100%, 0 calc(100% - 6px)
  );
}
#fl-header .h-cta:hover { background: #3A38A0; }
#fl-header .h-cta-dot {
  width: 5px; height: 5px;
  background: #C64D2E;
  flex-shrink: 0;
}
 
/* ── БУРГЕР ── */
#fl-header .h-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
#fl-header .h-brow { display: flex; gap: 3px; }
#fl-header .h-bpx {
  width: 5px; height: 5px;
  background: #E3F1F1;
  transition: background .3s, transform .3s, opacity .3s;
}
#fl-header .h-burger.open .h-brow:nth-child(1) .h-bpx:nth-child(1) { transform: translate(4px,4px) rotate(45deg); }
#fl-header .h-burger.open .h-brow:nth-child(1) .h-bpx:nth-child(2) { opacity: 0; }
#fl-header .h-burger.open .h-brow:nth-child(1) .h-bpx:nth-child(3) { transform: translate(-4px,4px) rotate(-45deg); }
#fl-header .h-burger.open .h-brow:nth-child(2) { opacity: 0; }
#fl-header .h-burger.open .h-brow:nth-child(3) .h-bpx:nth-child(1) { transform: translate(4px,-4px) rotate(-45deg); }
#fl-header .h-burger.open .h-brow:nth-child(3) .h-bpx:nth-child(2) { opacity: 0; }
#fl-header .h-burger.open .h-brow:nth-child(3) .h-bpx:nth-child(3) { transform: translate(-4px,-4px) rotate(45deg); }
 
/* ── МОБИЛЬНОЕ МЕНЮ ── */
#fl-mob {
  position: fixed;
  top: 62px; left: 0; right: 0;
  z-index: 99998;
  background: rgba(10,10,10,.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 16px 24px 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(-110%);
  opacity: 0;
  transition: transform .3s ease, opacity .25s ease;
}
#fl-mob.open {
  transform: translateY(0);
  opacity: 1;
}
#fl-mob a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .04em;
  text-decoration: none;
  color: #E3F1F1;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-family: 'Inter', -apple-system, sans-serif;
  transition: color .2s;
}
#fl-mob a:hover { color: #fff; }
#fl-mob .mob-dot {
  width: 4px; height: 4px;
  flex-shrink: 0;
  display: block;
  opacity: .5;
}
#fl-mob .mob-sub a {
  padding: 10px 0 10px 20px;
  font-size: 14px;
  color: #AEACCC;
  border-bottom: 1px solid rgba(44,42,125,.15);
}
#fl-mob .mob-sub a:last-child { border-bottom: 1px solid rgba(255,255,255,.07); }
#fl-mob .mob-cta {
  margin-top: 14px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  justify-content: center;
  border-bottom: none;
  background: #2C2A7D;
  color: #fff !important;
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}
 
@media (max-width: 900px) {
  #fl-header .h-nav,
  #fl-header .h-cta { display: none; }
  #fl-header .h-burger { display: flex; }
  #fl-header .h-inner { padding: 0 20px; }
}