@font-face {
  font-family: 'Schedule Header Icons';
  src: url('schedule-header-icons.woff') format('woff');
  font-display: block;
}

.schedule-header {
  --header-accent: #4678bf;
  position: relative;
  z-index: 10;
  border-top: 2px solid #353941;
  border-bottom: 1px solid #eee;
  background: #fff;
  color: #565656;
  font: 400 16px/1.4 'Open Sans', Arial, sans-serif;
}

.schedule-header :where(ul) { margin: 0; padding: 0; list-style: none; }
.schedule-header a:hover { color: var(--header-accent); }
.schedule-header :focus-visible { outline: 2px solid var(--header-accent); outline-offset: 3px; }
.schedule-header button { cursor: pointer; }

.schedule-header__utility,
.schedule-header__nav { width: calc(100% - 68px); margin-inline: auto; }

.schedule-header__utility {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 41px;
  gap: 12px;
  border-bottom: 1px solid #e2e2e2;
  color: #6f7373;
}

.schedule-header__tools,
.schedule-header__contacts { display: flex; align-items: center; }
.schedule-header__tools { gap: 4px; }
.schedule-header__contacts { gap: clamp(12px, 1.55vw, 24px); }
.schedule-header__contacts > * { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }

.schedule-header__icon { font: 16px/1 'Schedule Header Icons'; }
.schedule-header__social {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #ebecec;
  color: #777a7a;
}
.schedule-header__social:hover { background: #e5effd; }

.schedule-header__search { position: relative; margin-left: 14px; }
.schedule-header__search summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  list-style: none;
  cursor: pointer;
}
.schedule-header__search summary::-webkit-details-marker { display: none; }
.schedule-header__search-form {
  position: absolute;
  z-index: 2;
  top: 100%;
  left: 0;
  display: flex;
  width: min(340px, calc(100vw - 32px));
  gap: 8px;
  padding: 12px;
  border: 1px solid #e2e2e2;
  background: #fff;
  box-shadow: 0 5px 18px #0002;
}
.schedule-header__search-form input { width: 100%; min-width: 0; padding: 8px; border: 1px solid #bbb; }
.schedule-header__search-form button { padding: 8px 12px; border: 0; background: var(--header-accent); color: #fff; }

.schedule-header__menu {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 88px;
  padding-block: 16px 26px;
}
.schedule-header__menu > li { position: relative; display: flex; align-items: center; padding-inline: 4px; }
.schedule-header__menu > li + li { border-left: 1px solid #c2c2c2; }
.schedule-header__menu > li > a { font-size: clamp(12px, 1.27vw, 17px); font-weight: 600; line-height: 1.25; text-transform: uppercase; white-space: nowrap; }
.schedule-header__section { color: var(--header-accent); text-decoration: underline; text-underline-offset: 7px; }
.schedule-header__submenu-toggle {
  display: none;
  width: 13px;
  min-height: 22px;
  place-items: center;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}
.schedule-header[data-ready] .schedule-header__submenu-toggle { display: grid; }
.schedule-header__submenu-toggle::before {
  width: 5px;
  height: 5px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(45deg);
  content: '';
}
.schedule-header__submenu {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 0;
  display: none;
  min-width: 215px;
  width: max-content;
  max-width: 285px;
  border: 1px solid #eee;
  padding: 6px;
  background: #fff;
  box-shadow: 0 6px 18px #0002;
}
.schedule-header__submenu a { display: block; padding: 8px 10px; font-size: 14px; }
.schedule-header__submenu a:hover { background: #f5f5f5; }
.schedule-header__submenu-toggle[aria-expanded='true'] + .schedule-header__submenu,
.schedule-header:not([data-ready]) .schedule-header__menu > li:is(:hover, :focus-within) > .schedule-header__submenu { display: block; }

.schedule-header__menu-toggle { display: none; }
.schedule-header__hamburger { width: 17px; height: 2px; background: currentColor; box-shadow: 0 -5px, 0 5px; }

@media (max-width: 1020px) {
  .schedule-header__utility, .schedule-header__nav { width: calc(100% - 32px); }
  .schedule-header__utility { flex-wrap: wrap; min-height: 57px; }
  .schedule-header__contacts { flex: 1 1 100%; flex-wrap: wrap; gap: 8px 15px; padding-bottom: 11px; font-size: 14px; }
  .schedule-header[data-ready] .schedule-header__menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    border: 0;
    padding: 0 4px;
    background: transparent;
    color: #565656;
    font-weight: 600;
  }
  .schedule-header[data-ready]:not([data-menu-open]) :is(.schedule-header__nav, .schedule-header__contacts) { display: none; }
  .schedule-header__search { margin-left: 7px; }
  .schedule-header__search-form { left: auto; right: 0; }
  .schedule-header__menu { display: block; min-height: 0; padding-block: 0; }
  .schedule-header__menu > li { flex-wrap: wrap; padding-inline: 0; }
  .schedule-header__menu > li + li { border-top: 1px solid #eee; border-left: 0; }
  .schedule-header__menu > li > a { display: flex; flex: 1 1 auto; align-items: center; min-height: 44px; font-size: 15px; }
  .schedule-header__submenu-toggle { width: 44px; min-height: 44px; }
  .schedule-header__submenu { position: static; flex: 1 1 100%; width: auto; max-width: none; border: 0; box-shadow: none; }
}
