/* Mobile header (below 992px): Telegram support, hot deals and menu buttons, and the menu panel. */

#header .menu-wrap.mobile {
  padding-left: 0;
  padding-right: 0;
}

#header .menu-wrap.mobile > .container {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

#header .mnav-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
}

#header .mnav-logo {
  display: flex;
  flex: 0 1 148px;
  min-width: 112px;
  margin-right: auto;
}

#header .mnav-logo .logo-menu {
  width: 100%;
  max-width: 148px;
  height: auto;
  max-height: none;
}

/* Telegram support: always in the bar, which stays fixed while the page scrolls. Quiet white like the menu button, not an accent. */
#header .mnav-tg {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  padding: 0 13px 0 11px;
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: 999px;
  color: #212122;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 24, 38, 0.08);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#header .mnav-tg i {
  color: #212122;
  font-size: 17px;
}

#header .mnav-tg:hover,
#header .mnav-tg:focus-visible {
  color: #212122;
}

@media (hover: hover) {
  #header .mnav-tg:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(18, 24, 38, 0.12);
  }
}

#header .mnav-tg:focus-visible {
  outline: 3px solid rgba(33, 33, 34, 0.35);
  outline-offset: 2px;
}

#header .mnav-bar .hot-deals-trigger {
  margin: 0;
}

#header .mnav-toggle {
  display: inline-flex;
  flex: 0 0 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(18, 24, 38, 0.08);
  border-radius: 12px;
  color: #1b1f27;
  background: #fff;
  box-shadow: 0 4px 14px rgba(18, 24, 38, 0.08);
  cursor: pointer;
}

#header .mnav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

#header .mnav-toggle:focus-visible {
  outline: 3px solid rgba(112, 72, 232, 0.35);
  outline-offset: 2px;
}

/* Narrow phones keep the Telegram icon and drop the word. */
@media (max-width: 374.98px) {
  #header .mnav-tg {
    width: 42px;
    padding: 0;
  }

  #header .mnav-tg-label {
    display: none;
  }
}

@media (min-width: 576px) {
  #header .mnav-logo {
    flex-basis: 170px;
  }

  #header .mnav-logo .logo-menu {
    max-width: 170px;
  }
}

/* Top bar link on wider screens keeps the bar's own colors. */
#header .infonews-nav a.infonews-telegram i {
  margin-right: 5px;
}

/* Menu panel */
.mnav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(12, 17, 28, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 250ms ease, visibility 0s linear 250ms;
}

.mnav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 250ms ease;
}

.mnav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1041;
  display: flex;
  flex-direction: column;
  width: min(420px, 100%);
  color: #1b1f27;
  background: #fff;
  box-shadow: -24px 0 60px rgba(12, 17, 28, 0.18);
  text-align: left;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 280ms;
}

.mnav-panel.is-open {
  transform: none;
  visibility: visible;
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html.mnav-open,
html.mnav-open body {
  overflow: hidden;
}

.mnav-head {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top, 0px)) 16px 12px 20px;
  border-bottom: 1px solid #eef0f4;
}

.mnav-head-logo {
  display: flex;
}

#header .mnav-head-logo .logo-menu {
  width: 140px;
  height: auto;
}

.mnav-close {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  color: #1b1f27;
  background: #f2f3f6;
  font-size: 20px;
  cursor: pointer;
}

.mnav-body {
  flex: 1 1 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 16px 16px calc(28px + env(safe-area-inset-bottom, 0px));
}

.mnav-support {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 14px;
  border: 1px solid rgba(18, 24, 38, 0.06);
  border-radius: 16px;
  color: #212122;
  background: #f4f5f8;
  text-decoration: none;
}

.mnav-support:hover,
.mnav-support:focus-visible {
  color: #212122;
}

.mnav-support-icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #212122;
  background: #fff;
  box-shadow: 0 2px 8px rgba(18, 24, 38, 0.08);
  font-size: 21px;
}

.mnav-support-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}

.mnav-support-copy strong {
  color: #212122;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
}

.mnav-support-copy small {
  margin-top: 2px;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.3;
}

.mnav-label {
  margin: 22px 8px 6px;
  color: #8b919c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  line-height: 1.4;
  text-transform: uppercase;
}

.mnav-list,
.mnav-grid {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mnav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 7px 8px;
  border: 0;
  border-radius: 12px;
  color: #1b1f27;
  background: transparent;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.mnav-link:hover,
.mnav-link:focus-visible {
  color: #1b1f27;
}

.mnav-link:focus-visible {
  background: #f4f5f8;
}

@media (hover: hover) {
  .mnav-link:hover {
    background: #f4f5f8;
  }

  .mnav-tile:hover {
    background: #eceef3;
  }
}

.mnav-link[aria-current="page"] {
  color: #5b3fd0;
  background: #f3efff;
}

.mnav-icon {
  display: grid;
  flex: 0 0 36px;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #7048e8;
  background: #f3f0ff;
  font-size: 15px;
}

.mnav-hot .mnav-icon {
  color: #ff633f;
  background: #fff1ea;
}

.mnav-text {
  flex: 1 1 auto;
  min-width: 0;
}

.mnav-badge {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.mnav-badge.is-new {
  color: #d6266f;
  background: #ffe8f2;
}

.mnav-badge.is-live {
  color: #12804a;
  background: #e5f7ee;
}

.mnav-badge.is-live::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #22c55e;
  vertical-align: 1px;
}

.mnav-badge.is-game {
  color: #6d4ee0;
  background: #efeaff;
}

.mnav-chevron {
  flex: 0 0 auto;
  color: #c0c5ce;
  font-size: 12px;
}

.mnav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mnav-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  min-height: 50px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #1b1f27;
  background: #f5f6f9;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
}

.mnav-tile i {
  flex: 0 0 16px;
  color: #7a8190;
  text-align: center;
}

.mnav-tile:hover,
.mnav-tile:focus-visible {
  color: #1b1f27;
}

.mnav-tile:focus-visible {
  background: #eceef3;
}

.mnav-tile[aria-current="page"] {
  color: #5b3fd0;
  background: #f3efff;
}

.mnav-tile[aria-current="page"] i {
  color: #7048e8;
}

.mnav-account {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.mnav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 10px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.mnav-cta.is-primary,
.mnav-cta.is-primary:hover,
.mnav-cta.is-primary:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #fc72ff 0%, #ff4d94 100%);
  box-shadow: 0 8px 22px rgba(252, 114, 255, 0.3);
}

.mnav-cta.is-secondary,
.mnav-cta.is-secondary:hover,
.mnav-cta.is-secondary:focus-visible {
  color: #1b1f27;
  background: #fff;
  border: 1px solid #e3e6ec;
}

.mnav-cta.is-secondary i {
  color: #7a8190;
}

.mnav-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #eef0f4;
}

.mnav-lang {
  display: flex;
  gap: 6px;
}

.mnav-lang .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 38px;
  margin: 0 !important;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.mnav-mail,
.mnav-mail:hover {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5b6270;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.mnav-panel a:focus-visible,
.mnav-panel button:focus-visible {
  outline: 3px solid rgba(112, 72, 232, 0.35);
  outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .mnav-panel {
    width: 100%;
    box-shadow: none;
  }
}

@media (min-width: 992px) {
  .mnav-panel,
  .mnav-backdrop {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header .mnav-tg,
  .mnav-panel,
  .mnav-panel.is-open,
  .mnav-backdrop,
  .mnav-backdrop.is-open {
    transition: none;
  }
}
