
.db-site-header,
.db-site-header * {
  box-sizing: border-box;
}

.db-site-header {
  --db-tri-blue: #0039a6;
  --db-tri-red: #d52b1e;
  --db-ink: #0a0e1a;
  --db-ink-soft: #5a6478;
  --db-line: rgba(14, 23, 38, 0.08);
  --db-accent: #0039a6;
  --db-cta: #d52b1e;
  --db-cta-hover: #b32218;
  --db-shadow-md: 0 8px 24px rgba(0, 57, 166, 0.10);
  --db-maxw: 1400px;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  color: var(--db-ink);

  width: 100%;
  position: relative;
  background:
    linear-gradient(180deg,
      rgba(213, 43, 30, 0.05) 0%,
      rgba(0, 57, 166, 0.08) 30%,
      rgba(0, 57, 166, 0.04) 60%,
      rgba(255, 255, 255, 0.0) 100%),
    #ffffff;
  padding-bottom: 28px;
}
.db-site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(0, 57, 166, 0.05) 0, transparent 35%),
    radial-gradient(circle at 85% 10%, rgba(213, 43, 30, 0.04) 0, transparent 40%);
  pointer-events: none;
}

.db-site-header .db-tricolor-bar {
  display: flex;
  height: 4px;
  width: 100%;
}
.db-site-header .db-tricolor-bar span { flex: 1; }
.db-site-header .db-s-white { background: #ffffff; box-shadow: inset 0 -1px 0 var(--db-line); }
.db-site-header .db-s-blue  { background: var(--db-tri-blue); }
.db-site-header .db-s-red   { background: var(--db-tri-red); }

.db-site-header .db-topbar {
  font-size: 13px;
  position: relative;
  background: linear-gradient(90deg, #0039a6 0%, #1e4fb8 50%, #0039a6 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.db-site-header .db-topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 50%, rgba(213,43,30,0.25) 0, transparent 50%);
  pointer-events: none;
}
.db-site-header .db-topbar-inner {
  position: relative;
  max-width: var(--db-maxw);
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: 13.5px;
  z-index: 1;
}
.db-site-header .db-benefits {
  display: flex;
  gap: 32px;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}
.db-site-header .db-benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-weight: 500;
  letter-spacing: 0.2px;
  list-style: none;
}
.db-site-header .db-benefits svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
  background: rgba(255,255,255,0.15);
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.db-site-header .db-topbar-right {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}
.db-site-header .db-topbar-right a {
  color: #ffffff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  opacity: 0.95;
  transition: opacity .2s ease;
  font-weight: 500;
}
.db-site-header .db-topbar-right a:hover { opacity: 1; }
.db-site-header .db-topbar-right svg { width: 16px; height: 16px; }

.db-site-header .db-header-main {
  position: relative;
  max-width: var(--db-maxw);
  margin: 0 auto;
  padding: 22px 32px 10px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
}

.db-site-header .db-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--db-ink);
}
.db-site-header .db-logo-mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--db-tri-blue) 0%, #1e56c4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--db-shadow-md);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.db-site-header .db-logo-mark::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 7px;
  background: var(--db-tri-red);
}
.db-site-header .db-logo-mark svg {
  width: 28px;
  height: 28px;
  color: #fff;
  position: relative;
  z-index: 1;
}
.db-site-header .db-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.db-site-header .db-logo-name {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--db-ink);
}
.db-site-header .db-logo-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--db-ink-soft);
  margin-top: 3px;
}

.db-site-header .db-nav {
  display: flex;
  justify-content: center;
}
.db-site-header .db-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
}
.db-site-header .db-nav li { list-style: none; }
.db-site-header .db-nav a {
  text-decoration: none;
  color: var(--db-ink);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color .2s ease;
  white-space: nowrap;
}
.db-site-header .db-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  background: var(--db-cta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.db-site-header .db-nav a:hover { color: var(--db-accent); }
.db-site-header .db-nav a:hover::after { transform: scaleX(1); }

.db-site-header .db-contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.db-site-header .db-phone-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.db-site-header .db-icon-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: transform .2s ease;
}
.db-site-header .db-icon-circle:hover { transform: translateY(-1px); }
.db-site-header .db-icon-circle svg {
  width: 15px;
  height: 15px;
  color: #fff;
}
.db-site-header .db-icon-phone {
  background: var(--db-cta);
  box-shadow: 0 4px 12px rgba(213,43,30,0.35);
}
.db-site-header .db-icon-wa {
  background: #25d366;
  box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}
.db-site-header .db-icon-wa svg {
  width: 17px;
  height: 17px;
}

.db-site-header .db-phone-number {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 20px;
  color: var(--db-ink);
  text-decoration: none;
  letter-spacing: 0.3px;
  line-height: 1;
}
.db-site-header .db-phone-number:hover { color: var(--db-cta); }

.db-site-header .db-email {
  font-size: 14px;
  color: var(--db-ink);
  text-decoration: none;
  margin-top: 2px;
}
.db-site-header .db-email:hover { color: var(--db-accent); }

.db-site-header .db-callback-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--db-cta);
  padding: 0;
  margin-top: 6px;
  text-decoration: none;
  transition: color 0.18s ease;
}
.db-site-header .db-callback-link:hover {
  color: var(--db-cta-hover);
}


/* БУРГЕР И МОБИЛЬНОЕ МЕНЮ — скрыты на десктопе */
.db-site-header .db-burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  z-index: 1001;
}
.db-site-header .db-burger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--db-ink);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.db-site-header .db-burger.db-burger-active span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
  background: #fff;
}
.db-site-header .db-burger.db-burger-active span:nth-child(2) {
  opacity: 0;
}
.db-site-header .db-burger.db-burger-active span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
  background: #fff;
}

.db-site-header .db-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, #0a1428 0%, #142a5c 100%);
  z-index: 1000;
  transition: right .35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  padding: 24px;
  box-shadow: -10px 0 40px rgba(0,0,0,0.3);
}
.db-site-header .db-mobile-menu.db-mobile-menu-open { right: 0; }

.db-site-header .db-mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.db-site-header .db-mobile-menu-header span {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 20px;
  color: #fff;
}
.db-site-header .db-mobile-close {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.db-site-header .db-mobile-close svg { width: 18px; height: 18px; }

.db-site-header .db-mobile-nav {
  list-style: none;
  margin: 0 0 28px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.db-site-header .db-mobile-nav li { list-style: none; }
.db-site-header .db-mobile-nav a {
  display: block;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background .2s ease;
  position: relative;
}
.db-site-header .db-mobile-nav a:active,
.db-site-header .db-mobile-nav a:hover {
  background: rgba(255,255,255,0.06);
}
.db-site-header .db-mobile-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--db-cta);
  border-radius: 0 2px 2px 0;
  transition: height .2s ease;
}
.db-site-header .db-mobile-nav a:active::before,
.db-site-header .db-mobile-nav a:hover::before { height: 60%; }

.db-site-header .db-mobile-contacts {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.db-site-header .db-mobile-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  padding: 14px 16px;
  background: rgba(213,43,30,0.12);
  border: 1px solid rgba(213,43,30,0.3);
  border-radius: 12px;
  transition: background .2s ease;
}
.db-site-header .db-mobile-phone:active { background: rgba(213,43,30,0.2); }
.db-site-header .db-mobile-phone span {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.3px;
}
.db-site-header .db-mobile-email {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 15px;
  padding: 0 4px;
}
.db-site-header .db-mobile-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.db-site-header .db-mobile-soc {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px;
  border-radius: 10px;
  text-decoration: none;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s ease;
}
.db-site-header .db-mobile-soc svg { width: 18px; height: 18px; }
.db-site-header .db-mobile-soc:active { transform: scale(0.97); }
.db-site-header .db-mobile-soc-wa {
  background: #25d366;
  box-shadow: 0 4px 14px rgba(37,211,102,0.3);
}
.db-site-header .db-mobile-soc-tg {
  background: #229ed9;
  box-shadow: 0 4px 14px rgba(34,158,217,0.3);
}
.db-site-header .db-mobile-callback {
  background: none;
  border: none;
  color: var(--db-cta);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  padding: 8px 4px;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px dashed var(--db-cta);
  align-self: flex-start;
}

body.db-no-scroll { overflow: hidden; }

@media (max-width: 1280px) {
  .db-site-header .db-nav ul { gap: 18px; }
  .db-site-header .db-nav a { font-size: 13.5px; }
  .db-site-header .db-header-main { gap: 24px; }
  .db-site-header .db-phone-number { font-size: 22px; }
}
@media (max-width: 1080px) {
  .db-site-header .db-benefits { gap: 20px; font-size: 12.5px; }
  .db-site-header .db-topbar-right { gap: 14px; }
  .db-site-header .db-nav ul { gap: 12px; }
}

/* МОБИЛЬНАЯ ВЕРСИЯ */
@media (max-width: 900px) {
  .db-site-header { padding-bottom: 20px; }

  .db-site-header .db-topbar-inner {
    padding: 10px 16px;
    font-size: 12px;
    gap: 12px;
  }
  .db-site-header .db-benefits {
    gap: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .db-site-header .db-benefits::-webkit-scrollbar { display: none; }
  .db-site-header .db-benefits li {
    white-space: nowrap;
    font-size: 11.5px;
  }
  .db-site-header .db-benefits svg {
    width: 18px;
    height: 18px;
    padding: 3px;
  }
  .db-site-header .db-topbar-right { display: none; }

  .db-site-header .db-header-main {
    grid-template-columns: 1fr auto;
    padding: 14px 16px 6px;
    gap: 12px;
  }
  .db-site-header .db-nav,
  .db-site-header .db-contacts { display: none; }
  .db-site-header .db-burger { display: flex; }

  .db-site-header .db-mobile-menu { display: block; }

  .db-site-header .db-logo { gap: 11px; }
  .db-site-header .db-logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 10px;
  }
  .db-site-header .db-logo-mark svg { width: 22px; height: 22px; }
  .db-site-header .db-logo-mark::after { height: 5px; }
  .db-site-header .db-logo-name { font-size: 18px; }
  .db-site-header .db-logo-tag {
    font-size: 9.5px;
    letter-spacing: 1.2px;
    margin-top: 2px;
  }

    padding: 18px 16px 4px;
  }
    font-size: 22px;
    margin-bottom: 10px;
    line-height: 1.2;
  }
    font-size: 14px;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .db-site-header .db-topbar-inner { padding: 9px 14px; }
  .db-site-header .db-header-main { padding: 12px 14px 4px; }
  .db-site-header .db-logo-name { font-size: 17px; }
  .db-site-header .db-logo-tag { display: none; }
  .db-site-header .db-mobile-menu { padding: 18px; }
}
