/* Direct contacts share the existing header's quiet, monochrome controls. */
.header { gap: 24px; }
.header-connect {
  display: flex;
  align-items: center;
  flex: none;
  gap: 12px;
}
.header-phone {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  white-space: nowrap;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -.02em;
  transition: color .2s ease;
}
.header-phone::after {
  content: '';
  position: absolute;
  inset: auto 0 7px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.header-socials {
  display: flex;
  align-items: center;
  gap: 2px;
  border-left: 1px solid var(--line);
  padding-left: 10px;
}
.header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
  transition: color .2s ease, background-color .2s ease;
}
.header-social svg { display: block; width: 20px; height: 20px; }
.header-social--telegram svg { width: 21px; height: 21px; }
.header-social--viber svg, .header-social--whatsapp svg { width: 22px; height: 22px; }
.header-phone:is(:hover, :focus-visible) { color: var(--acid); }
.header-phone:is(:hover, :focus-visible)::after { transform: scaleX(1); }
.header-social:is(:hover, :focus-visible) {
  color: var(--acid);
  background-color: rgb(255 255 255 / 5%);
}
.header-connect a:focus-visible {
  outline: 1px solid var(--acid);
  outline-offset: 3px;
}

@media (max-width: 1200px) {
  .header .header-contact { display: none; }
}

@media (max-width: 1100px) {
  .header { flex-wrap: wrap; gap: 16px; }
  .header .main-nav { display: none; }
  .header .menu-toggle {
    display: flex;
    align-items: center;
    min-height: 44px;
    gap: 20px;
    padding: 8px 0;
    border: 0;
    background: none;
    font-size: 16px;
    cursor: pointer;
  }
  .header .menu-toggle span {
    font-size: 26px;
    line-height: 1;
    transition: transform .4s;
  }
  .header .menu-toggle[aria-expanded=true] span { transform: rotate(45deg); }
  .header .mobile-nav {
    display: flex;
    flex: 0 0 100%;
    flex-direction: column;
    gap: 0;
    padding: 16px 0 8px;
  }
  .header .mobile-nav > a {
    padding: 14px 0;
    border-top: 1px solid var(--line);
    font-size: 22px;
  }
  .header .mobile-nav[hidden] { display: none; }
}

@media (max-width: 800px) {
  html { scroll-padding-top: 152px; }
  .header { column-gap: 12px; row-gap: 8px; }
  .header-connect {
    order: 2;
    flex: 0 0 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .header-socials { border-left: 0; padding-left: 0; }
  .header-social { width: 44px; height: 44px; }
  .header .mobile-nav { order: 3; }
}

@media (max-width: 600px) {
  .header .menu-toggle { gap: 12px; }
}

@media (max-width: 360px) {
  .header-connect { gap: 6px; }
  .header-phone { font-size: 14px; }
  .header-socials { gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .header-phone,
  .header-phone::after,
  .header-social,
  .header .menu-toggle span { transition: none; }
}

.header-social:not(a) { pointer-events: none; }
