/* Header mode has one breakpoint across all legacy stylesheets. */
@media (max-width: 1359px) {
  body .head .head__nav { display: none !important; }
  body .head .burger { display: grid !important; }
  body .menu { display: flex !important; }
  body .head .head__right { margin-left: auto; }
}
@media (min-width: 1360px) {
  body .head .head__nav { display: block !important; }
  body .head .burger, body .menu { display: none !important; }
}
@media (max-width: 650px) {
  body .head .head__time { flex-direction: row; align-items: center; white-space: nowrap; }
  body .head .head__time-label { line-height: inherit; }
}
/* The «Ещё» list opens directly below its trigger. */
@media (min-width: 1360px) {
  body .head .head__nav li.nav-more > details { position: relative; }
  body .head .head__nav li.nav-more > details > ul {
    left: 50%;
    right: auto;
    top: calc(100% + 8px);
    width: max-content;
    min-width: 240px;
    transform: translateX(-50%);
    transform-origin: top center;
  }
  body .head .head__nav li.nav-more > details[open] > ul {
    animation: more-menu-unfold 280ms cubic-bezier(.2,.8,.2,1) both;
  }
}
@keyframes more-menu-unfold {
  from { opacity: 0; transform: translate(-50%, -10px) scaleY(.88); }
  to { opacity: 1; transform: translate(-50%, 0) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) {
  body .head .head__nav li.nav-more > details[open] > ul { animation: none; }
}
/* Larger phone header, with a two-line local time label. */
@media (max-width: 650px) {
  body .head .head__logo { width: 132px; }
  body .head .head__right { gap: 9px; }
  body .head .head__time { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 14px; line-height: 1.1; font-weight: 600; white-space: nowrap; }
  body .head .head__time-label { display: inline; font-size: 11px; line-height: 1.1; font-weight: 500; }
  body .head .head__call.btn, body .head .head__call.btn.btn--sm.btn--compact { min-height: 42px; padding-inline: 14px; font-size: 14px; }
}
@media (max-width: 420px) {
  body .head .head__logo { width: 104px; }
  body .head .head__right { gap: 6px; }
  body .head .head__time { font-size: 13px; }
  body .head .head__time-label { font-size: 10px; }
  body .head .head__call.btn, body .head .head__call.btn.btn--sm.btn--compact { min-height: 40px; padding-inline: 10px; font-size: 13px; }
}
@media (max-width: 375px) {
  body .head .head__right { gap: 4px; }
}
@media (min-width: 651px) {
  body .head .head__time-label::after { content: ':'; }
}
@media (max-width: 650px) {
  body .head .head__time { align-items: flex-start; text-align: left; }
}
@media (min-width: 376px) and (max-width: 650px) {
  body .head { justify-content: flex-start; }
  body .head .head__right { flex: 1 1 auto; min-width: 0; margin-left: 8px; }
  body .head .burger { margin-left: auto; flex: none; }
}
@media (min-width: 376px) and (max-width: 650px) {
  body .head .head__right { margin-left: 0; }
}
/* Keep the contact button in its original position; move only the clock. */
@media (min-width: 376px) and (max-width: 650px) {
  body .head { justify-content: space-between; }
  body .head .head__right { position: static; flex: none; margin-left: auto; }
  body .head .burger { margin-left: 0; }
  body .head .head__time { position: absolute; top: 50%; left: 154px; transform: translateY(-50%); }
}
@media (min-width: 376px) and (max-width: 420px) {
  body .head .head__time { left: 124px; }
}
@media (min-width: 421px) and (max-width: 440px) {
  body .head .head__right { transform: translateX(11px); }
}
/* Stable compact header around 400–440px. */
@media (min-width: 390px) and (max-width: 440px) {
  body .head .head__logo { width: 116px; }
  body .head .head__right { transform: none; }
  body .head .head__time { font-size: 14px; }
  body .head .head__time-label { font-size: 11px; }
}
@media (min-width: 390px) and (max-width: 420px) {
  body .head .head__time { left: 136px; }
}
@media (min-width: 421px) and (max-width: 440px) {
  body .head .head__time { left: 138px; font-size: 13.5px; }
}
/* Give the brand mark the available space on common phone widths. */
@media (min-width: 400px) and (max-width: 409px) {
  body .head .head__logo { width: 128px; }
  body .head .head__time { left: 148px; }
}
@media (min-width: 410px) and (max-width: 420px) {
  body .head .head__logo { width: 136px; }
  body .head .head__time { left: 156px; }
}
@media (min-width: 430px) and (max-width: 440px) {
  body .head .head__logo { width: 128px; }
  body .head .head__time { left: 150px; }
}
@media (max-width: 650px) {
  body .head .head__time { translate: -4px 0; }
}
/* Center the label and digits whenever the header clock uses two lines. */
@media (max-width: 650px) {
  body .head .head__time { align-items: center; text-align: center; }
}
/* A slight logo increase on full-HD and wider screens. */
@media (min-width: 1920px) {
  body .head .head__logo { width: 180px; }
}
