/* Верхняя контактная полоса — как на макете */

:root {
  --top-footer-bg: #0d358d;
  --top-footer-text: #ffffff;
  --top-footer-gold: #e8c547;
  --top-footer-divider: rgba(255, 255, 255, 0.35);
  --top-footer-font: Arial, Helvetica, "Helvetica Neue", sans-serif;
  /* только вертикаль: полоса выше, шрифты и иконки без изменений */
  --top-footer-pad-y: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--top-footer-font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.top-footer {
  background: var(--top-footer-bg);
  color: var(--top-footer-text);
  min-height: 96px;
  display: flex;
  align-items: stretch;
}

.top-footer--bottom {
  border-top: 1px solid var(--top-footer-divider);
}

.top-footer__inner {
  display: flex;
  align-items: center;
  flex: 1;
  width: 100%;
  max-width: 100%;
}

.top-footer__cell {
  display: flex;
  align-items: center;
  padding: var(--top-footer-pad-y) 18px;
  border-right: 1px solid var(--top-footer-divider);
  flex-shrink: 0;
}

.top-footer__cell--last {
  border-right: none;
}

.top-footer__cell--phones {
  padding-left: 20px;
  padding-right: 22px;
}

.top-footer__cell--address {
  max-width: 280px;
}

.top-footer__cell--hours {
  flex: 1 1 auto;
  min-width: 380px;
  padding-left: 16px;
  padding-right: 20px;
}

.top-footer__cell--flags {
  padding: var(--top-footer-pad-y) 14px;
}

.top-footer__cell--icon-only {
  padding: var(--top-footer-pad-y) 16px;
  justify-content: center;
}

.top-footer__phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.top-footer__phone-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.top-footer__phone-row:hover,
.top-footer__phone-row:focus-visible {
  text-decoration: underline;
}

.top-footer__inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

a.top-footer__inline:hover,
a.top-footer__inline:focus-visible {
  text-decoration: underline;
}

.top-footer__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}

.top-footer__icon--gold {
  color: var(--top-footer-gold);
}

.top-footer__icon--white {
  color: #fff;
}

.top-footer__text-bold {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-footer__cell--address .top-footer__text-bold {
  white-space: normal;
}

.top-footer__hours {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.top-footer__hours-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.top-footer__hours-title {
  white-space: nowrap;
}

.top-footer__hours-right {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
}

.top-footer__hours-line {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.top-footer__flags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-footer__flag {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.top-footer__flag:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.top-footer__flag-svg {
  display: block;
  width: 32px;
  height: 22px;
}

.top-footer__flag-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}

.top-footer__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: inherit;
  border-radius: 2px;
}

.top-footer__icon-btn:hover {
  opacity: 0.9;
}

.top-footer__icon-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.top-footer__flag.is-active {
  box-shadow: 0 0 0 2px var(--top-footer-gold);
}

/* Скрыть панель Google Translate, оставить только переключение флагами */
.stolin-google-translate {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* Только верхнюю полосу Google — не скрывать весь виджет (иначе перевод ломается) */
.goog-te-banner-frame,
iframe.goog-te-banner-frame {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}

body {
  top: 0 !important;
}

.goog-te-gadget {
  font-size: 0 !important;
  line-height: 0 !important;
}

.goog-te-gadget .goog-te-combo {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1200px) {
  .top-footer__inner {
    flex-wrap: wrap;
  }

  .top-footer__cell {
    border-right: none;
    border-bottom: 1px solid var(--top-footer-divider);
  }

  .top-footer__cell--hours {
    min-width: 100%;
    flex-basis: 100%;
  }
}
