/* ============================================================
   HEADER — top bar + sticky header
   ============================================================ */

/* ---- Top bar (desktop only) ------------------------------- */
.topbar {
  background: var(--ink);
  color: #cdd9ec;
  font-size: 13px;
}
.topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  gap: 20px;
}
.topbar__left,
.topbar__right {
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}
.topbar a { color: #cdd9ec; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--sig-noise);
  box-shadow: 0 0 0 3px rgba(47,158,106,.22);
  flex-shrink: 0;
}
@media (max-width: 860px) { .topbar { display: none; } }

/* ---- Sticky header ---------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(14,28,51,.08);
}
.header__row {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 68px;
}
@media (min-width: 600px) { .header__row { height: 78px; } }

/* ---- Brand mark ------------------------------------------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
@media (min-width: 600px) { .brand { font-size: 21px; } }
.brand__mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--blue), #2f6fc0);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 6px 16px rgba(26,77,143,.3);
}
.brand__mark svg { width: 20px; height: 20px; }
@media (min-width: 600px) {
  .brand__mark { width: 40px; height: 40px; border-radius: 11px; }
  .brand__mark svg { width: 22px; height: 22px; }
}
.brand small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

/* ---- Desktop nav ------------------------------------------ */
.nav {
  display: none;
  align-items: center;
  gap: 22px;
  margin-left: 8px;
}
@media (min-width: 1080px) { .nav { display: flex; } }
.nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.nav a:hover { color: var(--blue); }
.nav a:hover::after { width: 100%; }

/* ---- Header CTA (phone + CTA button) ---------------------- */
.header__cta {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}
.header__phone {
  display: none;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 17px;
  white-space: nowrap;
  flex-direction: column;
}
.header__phone small {
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 2px;
}
@media (min-width: 860px) {
  .header__phone { display: flex; }
}
@media (min-width: 1200px) { .header__phone { font-size: 19px; } }

.header__btn { display: none; }
@media (min-width: 860px) { .header__btn { display: inline-flex; } }

/* ---- Burger button ---------------------------------------- */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: border-color .2s;
}
.burger:hover { border-color: var(--blue); }
.burger i {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}
@media (min-width: 1080px) { .burger { display: none; } }

/* Burger → X when menu open */
body.mob-menu-open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.mob-menu-open .burger i:nth-child(2) { opacity: 0; }
body.mob-menu-open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Mobile menu panel ------------------------------------ */
.mob-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mob-menu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14,28,51,.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.mob-menu__panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: min(88vw, 360px);
  background: #fff;
  box-shadow: -8px 0 40px rgba(14,28,51,.18);
  transform: translateX(100%);
  transition: transform .35s var(--ease);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 4px solid transparent;
  border-image: linear-gradient(to bottom, var(--blue), #3a7fd0, var(--blue)) 1;
}
.mob-menu__panel::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--blue), #3a7fd0, var(--blue));
  border-radius: 0 2px 2px 0;
}

body.mob-menu-open .mob-menu { pointer-events: auto; }
body.mob-menu-open .mob-menu__backdrop { opacity: 1; }
body.mob-menu-open .mob-menu__panel { transform: none; }
body.mob-menu-open { overflow: hidden; }

.mob-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.mob-menu__close {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--muted);
  transition: background .2s, color .2s;
}
.mob-menu__close:hover { background: var(--line); color: var(--ink); }

.mob-menu__nav {
  padding: 16px 0;
  flex: 1;
}
.mob-menu__nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color .2s, background .2s;
  border-left: 3px solid transparent;
}
.mob-menu__nav a:hover {
  color: var(--blue);
  background: var(--surface);
  border-left-color: var(--blue);
}

/* Stagger animation */
.mob-menu__nav a:nth-child(1) { transition-delay: 40ms; }
.mob-menu__nav a:nth-child(2) { transition-delay: 70ms; }
.mob-menu__nav a:nth-child(3) { transition-delay: 100ms; }
.mob-menu__nav a:nth-child(4) { transition-delay: 130ms; }
.mob-menu__nav a:nth-child(5) { transition-delay: 160ms; }
.mob-menu__nav a:nth-child(6) { transition-delay: 190ms; }
.mob-menu__nav a:nth-child(7) { transition-delay: 220ms; }
.mob-menu__nav a:nth-child(8) { transition-delay: 250ms; }

.mob-menu__bottom {
  padding: 20px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}
.mob-menu__phone {
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--ink);
}
.mob-menu__phone small {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
