/* Load after home.css and refresh.css on every page sharing the header. */
.site-header .header-inner { position: relative; gap: 18px; }
.site-header .brand img { width: clamp(180px, 17vw, 225px); }
.site-header .site-nav { gap: clamp(12px, 1.3vw, 22px); font-size: 15px; }
.site-header .header-phone { flex: none; gap: 7px; font-size: 16px; }
.header-contacts { flex: none; }
.header-contact-toggle {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 13px; border: 1px solid #eddd9180;
  border-radius: 10px; color: #f1e2a2; background: #eddd910b;
  font-size: 15px; font-weight: 700; line-height: 1.2; cursor: pointer;
  list-style: none; user-select: none; transition: background .16s, border-color .16s;
}
.header-contact-toggle::-webkit-details-marker { display: none; }
.header-contact-toggle::marker { content: ''; }
.header-contact-toggle > svg { width: 19px; height: 19px; }
.header-contact-toggle > .header-contact-chevron { width: 14px; height: 14px; transition: transform .16s; }
.header-contact-toggle:hover, .header-contacts[open] .header-contact-toggle { background: #eddd9120; border-color: #eddd91; }
.header-contacts[open] .header-contact-chevron { transform: rotate(180deg); }
.header-contacts:not([open]) .header-contact-panel { display: none; }
.header-contact-panel {
  position: absolute; z-index: 60; right: 0; top: calc(100% + 10px);
  width: min(320px, calc(100vw - 32px)); max-height: calc(100dvh - 115px);
  overflow-y: auto; overscroll-behavior: contain; padding: 16px;
  border: 1px solid #d7e2db40; border-radius: 16px; background: #102d29f5;
  color: #f6f8f5; box-shadow: 0 18px 50px #071a1d40, inset 0 1px 0 #ffffff10;
  backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%);
}
.header-contact-heading { margin: 0 0 12px; padding: 2px 4px; color: #f1e2a2; font: 700 20px/1.2 var(--title); }
.header-contact-links { display: grid; gap: 6px; }
.header-contact-link {
  display: grid; grid-template-columns: 33px minmax(0, 1fr) 15px; align-items: center; gap: 10px;
  min-height: 58px; padding: 8px; border: 1px solid #ffffff0d; border-radius: 10px;
  background: #ffffff06; transition: background .16s, border-color .16s;
}
.header-contact-link:hover { background: #ffffff0e; border-color: #eddd9160; }
.header-contact-icon { display: grid; place-items: center; width: 33px; height: 33px; color: #eddd91; border-radius: 9px; background: #eddd9112; }
.header-contact-icon svg { width: 18px; height: 18px; }
.header-contact-link strong, .header-contact-link small { display: block; }
.header-contact-link strong { font-size: 16px; line-height: 1.4; font-weight: 700; overflow-wrap: anywhere; }
.header-contact-link small { color: #c4d6cd; font-size: 12px; line-height: 1.5; }
.header-contact-link .header-contact-arrow { width: 15px; height: 15px; color: #c4d6cd; }

@media (max-width: 1180px) {
  .site-header .header-inner { flex-wrap: wrap; gap: 10px 14px; min-height: 76px; padding-block: 13px; }
  .site-header .brand { order: 0; }
  .site-header .header-phone { order: 1; margin-left: auto; }
  .header-contacts { order: 2; }
  .site-header .menu-toggle {
    order: 3; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 9px 12px; border: 1px solid #d7e2db70; border-radius: 10px;
    background: #ffffff06; color: #f6f8f5; font-size: 15px; cursor: pointer;
  }
  .site-header .menu-icon { display: grid; gap: 4px; }
  .site-header .menu-icon i { width: 15px; height: 1.5px; background: currentColor; }
  .site-header .site-nav { order: 4; width: 100%; justify-content: flex-start; flex-wrap: wrap; gap: 4px 22px; padding-top: 8px; }
  .has-menu .site-header .site-nav { display: none; }
  .has-menu .site-header .site-nav.is-open { display: flex; }
  .site-header .site-nav a { padding-block: 8px; }
}
@media (max-width: 740px) {
  .site-header .header-inner { gap: 8px; }
  .site-header .brand img { width: clamp(120px, 38vw, 180px); }
  .site-header .header-phone { width: 42px; height: 44px; justify-content: center; border: 1px solid #d7e2db70; border-radius: 10px; }
  .site-header .header-phone span { display: none; }
  .header-contact-toggle { width: 42px; min-height: 44px; padding: 0; }
  .header-contact-label, .header-contact-chevron { display: none; }
  .site-header .menu-toggle { width: 42px; min-height: 44px; padding: 0; }
  .site-header .menu-label { display: none; }
  .site-header .site-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px 16px; }
  .has-menu .site-header .site-nav.is-open { display: grid; }
}
