/* OGO · переключатель RU/EN + мобильный cookie-баннер (правки 2026-11-06)
   Шапка замерена: rgba(0,0,0,.7) + blur(3px), текст белый.
   Стрелка «наверх»: .t890 fixed; в head-коде проекта есть правило
   body.ogo-cookie-show .t890.t890 { bottom: 186px } под старый баннер 160px,
   здесь оно перекрыто под высоту нового баннера (292px). */

/* --- 1. Переключатель RU / EN ------------------------------------- */
.t-menu-base .t-menu-base__langs_flex {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.t-menu-base .t-menu-base__langs-item a,
.t-menu-base .t-menu-base__langs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 24px;
  padding: 4px 8px;
  box-sizing: border-box;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #ffffff;
  font-family: var(--t-text-font, TildaSans, Arial, sans-serif);
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.t-menu-base .t-menu-base__langs-item a:hover,
.t-menu-base .t-menu-base__langs-button:hover,
.t-menu-base .t-menu-base__langs-item a:focus-visible,
.t-menu-base .t-menu-base__langs-button:focus-visible {
  background: rgba(255, 255, 255, .18);
  color: #ffffff;
}

.t-menu-base .t-menu-base__langs-item a[aria-current="true"],
.t-menu-base .t-menu-base__langs-item a.t-active,
.t-menu-base .t-menu-base__langs-button[aria-current="true"],
.t-menu-base .t-menu-base__langs-button.t-active {
  background: #8f1717;
  color: #ffffff;
}

.t-menu-base .t-menu-base__langs-item a[aria-current="true"]:hover,
.t-menu-base .t-menu-base__langs-item a.t-active:hover,
.t-menu-base .t-menu-base__langs-button[aria-current="true"]:hover,
.t-menu-base .t-menu-base__langs-button.t-active:hover {
  background: #6f0f0f;
}

/* --- 2. Cookie-баннер: мобильная версия ---------------------------- */
@media screen and (max-width: 767px) {
  .t972.t972_widgetview .t972__banner {
    background: #ffffff !important;
    border: 1px solid rgba(42, 21, 18, .10) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 40px -16px rgba(42, 21, 18, .42) !important;
    padding: 14px !important;
    margin: 0 10px 10px !important;
    gap: 0 !important;
    max-width: calc(100vw - 20px) !important;
  }

  .t972.t972_widgetview .t972__title {
    margin: 0 0 4px !important;
    color: #2a1512 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .t972.t972_widgetview .t972__text {
    margin: 0 !important;
    color: #6b7280 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    display: block !important;
    max-height: none !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
  }

  .t972.t972_widgetview .t972__text a {
    color: #8f1717 !important;
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .t972.t972_widgetview .t972__buttons {
    margin-top: 10px !important;
  }

  .t972.t972_widgetview .t972__buttons-wrap {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: 4px !important;
  }

  .t972.t972_widgetview .t972__buttons-wrap .t-btn {
    flex: 0 0 auto !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .t972.t972_widgetview .t972__accept-btn,
  .t972.t972_widgetview .t972__reject-btn {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 8px 16px !important;
    box-sizing: border-box !important;
    border-radius: 4px !important;
    font-family: var(--t-text-font, TildaSans, Arial, sans-serif) !important;
    font-size: 13px !important;
    line-height: 20px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  .t972.t972_widgetview .t972__accept-btn {
    background-color: #8f1717 !important;
    color: #ffffff !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .t972.t972_widgetview .t972__accept-btn:hover,
  .t972.t972_widgetview .t972__accept-btn:focus-visible {
    background-color: #6f0f0f !important;
  }

  .t972.t972_widgetview .t972__reject-btn {
    background-color: transparent !important;
    color: #8f1717 !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .t972.t972_widgetview .t972__reject-btn:hover,
  .t972.t972_widgetview .t972__reject-btn:focus-visible {
    background-color: rgba(143, 23, 23, .08) !important;
  }

  /* стрелка «наверх» выше баннера: при высоте баннера 292px
     её низ должен быть выше 524px от верха экрана */
  html body.ogo-cookie-show .t890.t890.t890 {
    bottom: 360px !important;
  }
}
