/* Phase 19C: только новые части; без JS все ссылки остаются в потоке. */
.bes-global-header, .bes-global-footer {
  color: #242723;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  padding-inline-start: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-left));
  padding-inline-end: max(clamp(1rem, 3vw, 2rem), env(safe-area-inset-right));
}
.bes-global-header { background: #f7f5f0; border-bottom: 1px solid #d5d1c8; padding-block: 1rem; }
.bes-global-header__inner, .bes-global-footer__inner { max-width: 78rem; margin-inline: auto; }
.bes-global-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.bes-global-header__inner > *, .bes-global-footer__inner > * { margin-block: 0; min-width: 0; }
.bes-global-header .bes-brand img { width: 180px !important; }
.bes-global-header .bes-brand { flex-shrink: 0; }
.bes-global-header .bes-primary-navigation { margin-inline-start: auto; }
.bes-global-header .wp-block-navigation__container {
  gap: 1rem; align-items: center; flex-wrap: wrap; font-size: 1rem;
}
.bes-global-header .wp-block-navigation-item__content {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px; padding-inline: .25rem;
  line-height: 1.4; font-weight: 400; text-decoration: none;
}
.bes-global-header .bes-primary-navigation .bes-navigation-booking > a {
  background: #181a1b; color: #f7f5f0; border-radius: 0;
  min-height: 48px; padding: .75rem 1.25rem; font-size: 1rem; font-weight: 600;
  box-sizing: border-box;
}
.bes-global-header .bes-navigation-booking > a:hover { background: #303437; }
.bes-global-header a:hover, .bes-global-footer a:hover,
.bes-global-header a[aria-current], .bes-global-footer a[aria-current],
:is(.bes-global-header, .bes-global-footer) .bes-navigation-current-section > a {
  text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px;
}
.bes-global-header :is(a, button):focus-visible, .bes-global-footer a:focus-visible {
  outline: 3px solid #006b6b; outline-offset: 3px; box-shadow: 0 0 0 3px #f7f5f0;
}
.bes-global-header [hidden] { display: none !important; }
.bes-navigation-toggle {
  margin-inline-start: auto; border: 1px solid #797e73; border-radius: 0;
  color: #242723; background: transparent; padding: .5rem .75rem;
  min-width: 48px; min-height: 48px; font: 600 1rem/1.4 'Source Sans 3', sans-serif;
  cursor: pointer;
}
/* Немодальное раскрытие занимает строку под logo/toggle и сдвигает main. */
.bes-global-header.bes-nav-compact { padding-block: .75rem; }
.bes-nav-compact .bes-global-header__inner { gap: 1rem; }
.bes-nav-compact .bes-brand img { width: 160px !important; }
.bes-nav-compact .bes-primary-navigation { flex-basis: 100%; margin-inline: 0; }
.bes-nav-compact .wp-block-navigation__container { align-items: stretch; flex-direction: column; gap: .25rem; width: 100%; }
.bes-nav-compact .wp-block-navigation-item { width: 100%; }
.bes-nav-compact .wp-block-navigation-item__content { justify-content: flex-start; min-height: 48px; font-size: 1.25rem; }
.bes-nav-compact .bes-navigation-booking { margin-block-start: 1rem; }
.bes-nav-compact .bes-navigation-booking > a { width: 100%; max-width: 24rem; justify-content: center; font-size: 1rem; }
/* Измеряется тот же DOM, синхронно до отрисовки; копии меню нет. */
.bes-global-header.bes-nav-measuring .bes-brand img { width: 180px !important; }
.bes-nav-measuring .bes-primary-navigation { position: absolute; visibility: hidden; width: max-content; }
.bes-nav-measuring .wp-block-navigation__container { flex-direction: row; flex-wrap: nowrap; gap: 1rem; width: max-content; }
.bes-nav-measuring .wp-block-navigation-item { width: auto; margin: 0; }
.bes-nav-measuring .wp-block-navigation-item__content { font-size: 1rem; white-space: nowrap; }
.bes-nav-measuring .bes-navigation-booking > a { width: auto; max-width: none; }
.bes-global-footer { background: #e9e5de; border-top: 1px solid #d5d1c8; padding-block: 2rem; }
.bes-global-footer__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
.bes-global-footer .bes-brand img { width: 160px !important; }
.bes-global-footer h2 { font: 600 .875rem/1.4 'Source Sans 3', sans-serif; margin: 0 0 .75rem; }
.bes-global-footer p { font-size: 1rem; line-height: 1.6; margin: .75rem 0 0; }
.bes-global-footer .bes-footer-tagline { margin-top: .25rem; }
.bes-global-footer .wp-block-navigation__container { align-items: flex-start; gap: 0; }
.bes-global-footer .wp-block-navigation-item__content, .bes-footer-connect a {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px;
  font-size: 1rem; line-height: 1.4; overflow-wrap: anywhere; max-width: 100%;
}
.bes-footer-connect a { display: flex; width: fit-content; text-underline-offset: .2em; }
.bes-footer-connect p { margin-top: 1rem; }
.bes-footer-label { display: block; font-size: .875rem; font-weight: 600; line-height: 1.4; }
.bes-footer-microcopy { display: block; font-size: .875rem; line-height: 1.5; color: #5c615a; margin-top: .25rem; }
@media (min-width: 48rem) {
  .bes-global-footer { padding-block: 3rem; }
  .bes-global-footer__inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
}
@media (min-width: 75rem) {
  .bes-global-footer__inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr) repeat(2, minmax(0, 1.2fr)); }
}
@media (min-width: 80rem) {
  .bes-global-header:not(.bes-nav-compact) .wp-block-navigation__container,
  .bes-global-header.bes-nav-measuring .wp-block-navigation__container { gap: 1.5rem; }
}
@media (max-width: 63.999rem) {
  .bes-global-header:not(.bes-nav-ready) .bes-brand img { width: 160px !important; }
  .bes-global-header:not(.bes-nav-ready) .bes-primary-navigation { flex-basis: 100%; margin-inline: 0; }
  .bes-global-header:not(.bes-nav-ready) .wp-block-navigation__container { flex-direction: column; align-items: flex-start; }
}

/* Phase 25: явные списки и нативное disclosure; без JS ссылки доступны. */
.bes-global-header .wp-block-navigation__container,
.bes-global-footer .wp-block-navigation__container,
.bes-services-submenu { list-style: none; margin: 0; padding: 0; }
.bes-global-header .wp-block-navigation__container { display: flex; }
.bes-global-footer .wp-block-navigation__container { display: flex; flex-direction: column; }
.bes-services-disclosure { position: relative; }
.bes-services-disclosure > summary { cursor: pointer; list-style: none; gap: .5rem; }
.bes-services-disclosure > summary::-webkit-details-marker { display: none; }
.bes-services-disclosure > summary::after { content: '+'; font-size: 1.1em; }
.bes-services-disclosure[open] > summary::after { content: '−'; }
.bes-services-disclosure > summary:focus-visible {
  outline: 3px solid #006b6b; outline-offset: 3px; box-shadow: 0 0 0 3px #f7f5f0;
}
.bes-services-submenu {
  position: absolute; z-index: 20; inset-block-start: 100%; inset-inline-start: 0;
  width: max-content; min-width: 12rem; max-width: min(22rem, calc(100vw - 3rem));
  padding: .5rem; background: #f7f5f0; border: 1px solid #797e73;
  box-sizing: border-box; box-shadow: 0 .5rem 1rem rgb(24 26 27 / .1);
}
.bes-services-submenu .wp-block-navigation-item__content {
  display: flex; justify-content: flex-start; white-space: normal; padding-inline: .5rem;
}
.bes-nav-compact .bes-services-submenu {
  position: static; width: 100%; min-width: 0; max-width: 100%;
  box-shadow: none; margin-block: .25rem; padding-inline-start: 1rem;
}
.bes-nav-compact .bes-services-submenu .wp-block-navigation-item__content { font-size: 1rem; }
.bes-nav-measuring .bes-services-submenu { display: none; }
@media (max-width: 63.999rem) {
  .bes-global-header:not(.bes-nav-ready) .bes-services-submenu {
    position: static; width: 100%; min-width: 0; max-width: 100%; box-shadow: none;
  }
}
