.prefab-header {
  --header-surface: rgba(8, 14, 26, 0.72);
  --header-border: rgba(255, 255, 255, 0.12);
  --header-text: #ffffff;
  --header-muted: rgba(255, 255, 255, 0.76);
  --header-accent: var(--color-primary, #d95f1f);
  width: 100%;
  z-index: 100;
  padding-top: 18px;
  background: transparent;
  border-bottom: 0;
}

body.prefab-header-menu-open {
  overflow: hidden;
}

.prefab-header__bar,
.prefab-header__nav {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.prefab-header__mobile-meta {
  display: none;
}

.prefab-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
  padding: 0 0 14px;
}

.prefab-header__brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.prefab-header__logo-frame {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(242, 138, 46, 0.24);
  background:
    radial-gradient(circle at top left, rgba(242, 138, 46, 0.24), transparent 44%),
    radial-gradient(circle at bottom right, rgba(31, 94, 255, 0.18), transparent 48%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.96), rgba(9, 15, 24, 0.96));
  box-shadow:
    0 18px 40px rgba(2, 7, 15, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.prefab-header__logo-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.prefab-header__logo {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(242, 138, 46, 0.14));
}

.prefab-header__brand-copy {
  display: grid;
  gap: 4px;
}

.prefab-header__tagline {
  font-size: 18px;
  font-weight: 700;
  color: var(--header-text);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.52);
}

.prefab-header__city {
  font-size: 14px;
  color: var(--header-muted);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.52);
}

.prefab-header__contact {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--header-border);
  background: rgba(8, 14, 26, 0.82);
  box-shadow: 0 18px 44px rgba(2, 7, 15, 0.26);
  backdrop-filter: blur(14px);
}

.prefab-header__contact-icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
  opacity: 0.92;
}

.prefab-header__contact-copy {
  display: grid;
  gap: 5px;
}

.prefab-header__phone {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.prefab-header__schedule {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.prefab-header__schedule::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 0 rgba(52, 211, 153, 0.56);
  animation: prefab-header-pulse 1.8s infinite;
}

.prefab-header__burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--header-border);
  border-radius: 14px;
  background: rgba(8, 14, 26, 0.78);
  backdrop-filter: blur(12px);
}

.prefab-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto 4px;
  background: var(--header-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.prefab-header__burger span:last-child {
  margin-bottom: 0;
}

.prefab-header__burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.prefab-header__burger.is-open span:nth-child(2) {
  opacity: 0;
}

.prefab-header__burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.prefab-header__nav {
  display: flex;
  justify-content: center;
}

.prefab-header__menu,
.prefab-header__submenu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.prefab-header__menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: var(--header-surface);
  box-shadow: 0 20px 50px rgba(2, 7, 15, 0.24);
  backdrop-filter: blur(18px);
}

.prefab-header__menu-contact {
  display: none;
}

.prefab-header__item {
  position: relative;
}

.prefab-header__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--header-text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.prefab-header__link:hover,
.prefab-header__item.is-open > .prefab-header__link {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.prefab-header__submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 250px;
  display: none;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(8, 14, 26, 0.9);
  box-shadow: 0 24px 48px rgba(2, 7, 15, 0.3);
  backdrop-filter: blur(18px);
}

.prefab-header__submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: #ffffff;
  text-decoration: none;
}

.prefab-header__submenu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.prefab-header__item:hover > .prefab-header__submenu,
.prefab-header__item.is-open > .prefab-header__submenu {
  display: block;
}

@keyframes prefab-header-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.56);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(52, 211, 153, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@media (max-width: 900px) {
  .prefab-header__bar,
  .prefab-header__nav {
    width: calc(100% - 20px);
  }

  .prefab-header {
    padding-top: 12px;
  }

  .prefab-header__bar {
    gap: 12px;
    padding: 0;
  }

  .prefab-header__brand {
    gap: 12px;
    padding-right: 70px;
  }

  .prefab-header__logo-frame {
    width: 62px;
    height: 62px;
    padding: 7px;
    border-radius: 18px;
  }

  .prefab-header__logo {
    width: 48px;
    height: 48px;
  }

  .prefab-header__tagline {
    font-size: 15px;
  }

  .prefab-header__city {
    font-size: 12px;
  }

  .prefab-header__contact {
    display: none;
  }

  .prefab-header__mobile-meta {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    padding: 10px 14px 12px;
    display: grid;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    background: rgba(8, 14, 26, 0.72);
    box-shadow: 0 18px 44px rgba(2, 7, 15, 0.22);
    backdrop-filter: blur(14px);
  }

  .prefab-header__mobile-phone,
  .prefab-header__menu-phone {
    color: #fff;
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    text-align: left;
  }

  .prefab-header__mobile-schedule,
  .prefab-header__menu-schedule {
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.3;
    text-align: left;
  }

  .prefab-header__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 14px;
    right: 14px;
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--header-accent), var(--color-primary-strong, #d96a11));
    box-shadow: 0 14px 34px rgba(2, 7, 15, 0.34);
    backdrop-filter: none;
    z-index: 1200;
  }

  .prefab-header__burger span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 3px;
    margin: 0;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
  }

  .prefab-header__burger span:nth-child(1) {
    transform: translate(-50%, -50%) translateY(-8px);
  }

  .prefab-header__burger span:nth-child(2) {
    transform: translate(-50%, -50%);
  }

  .prefab-header__burger span:nth-child(3) {
    transform: translate(-50%, -50%) translateY(8px);
  }

  .prefab-header__burger.is-open span:nth-child(1) {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .prefab-header__burger.is-open span:nth-child(2) {
    opacity: 0;
  }

  .prefab-header__burger.is-open span:nth-child(3) {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .prefab-header__nav {
    position: fixed;
    inset: 0;
    width: 100%;
    margin: 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(4, 10, 20, 0.94);
    backdrop-filter: blur(18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    z-index: 1100;
  }

  .prefab-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .prefab-header__menu {
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }

  .prefab-header__menu-contact {
    width: 100%;
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-bottom: 6px;
  }

  .prefab-header__menu-phone,
  .prefab-header__menu-schedule {
    text-align: center;
  }

  .prefab-header__menu-phone {
    font-size: 22px;
  }

  .prefab-header__menu-schedule {
    font-size: 12px;
  }

  .prefab-header__item {
    display: grid;
    justify-items: center;
    width: 100%;
  }

  .prefab-header__link {
    width: auto;
    min-height: 0;
    justify-content: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.15;
  }

  .prefab-header__submenu {
    position: static;
    min-width: 0;
    display: grid;
    max-height: 0;
    margin-top: 0;
    justify-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: max-height 0.25s ease, margin-top 0.25s ease;
  }

  .prefab-header__item:hover > .prefab-header__submenu {
    display: none;
  }

  .prefab-header__item.is-open > .prefab-header__submenu {
    display: grid;
    max-height: 360px;
    margin-top: 10px;
  }

  .prefab-header__submenu a {
    padding: 6px 0;
    border-radius: 0;
    font-size: 15px;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
  }

  .prefab-header__link:hover,
  .prefab-header__item.is-open > .prefab-header__link,
  .prefab-header__submenu a:hover {
    background: transparent;
    color: var(--header-accent);
  }
}

@media (max-width: 640px) {
  .prefab-header__brand {
    padding-right: 62px;
  }

  .prefab-header__logo-frame {
    width: 56px;
    height: 56px;
  }

  .prefab-header__logo {
    width: 42px;
    height: 42px;
  }

  .prefab-header__tagline {
    font-size: 14px;
    line-height: 1.24;
  }

  .prefab-header__city {
    font-size: 11px;
  }

  .prefab-header__burger {
    top: 12px;
    right: 12px;
    width: 52px;
    height: 52px;
  }

  .prefab-header__burger span {
    width: 22px;
  }

  .prefab-header__mobile-meta {
    margin-top: 8px;
    padding: 9px 12px 10px;
  }

  .prefab-header__mobile-phone {
    font-size: 17px;
  }

  .prefab-header__mobile-schedule {
    font-size: 11px;
  }

  .prefab-header__link {
    font-size: 18px;
  }
}
