.site-header {
  width: 100%;
  background: #fff;
  color: var(--gb-navy);
  border-top: 1px solid #d7d7d7;
}

.header-inner {
  width: min(var(--page-width), calc(100% - 32px));
  margin: 0 auto;
  background: #fff;
}

.header-top {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ececec;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none
}

.brand img {
  display: block;
  width: 315px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px
}

.support-btn {
  min-width: 118px;
  padding: 7px 18px;
  border-radius: 4px;
  background: var(--gb-navy);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
}

.login-link {
  color: var(--gb-navy);
  font-size: 16px;
  font-weight: 700;
  text-underline-offset: 3px;
}

.profile-btn {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--gb-navy);
  position: relative;
  cursor: pointer;
}

.profile-btn::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
}

.profile-btn::after {
  content: "";
  position: absolute;
  left: 7px;
  bottom: 5px;
  width: 18px;
  height: 9px;
  border-radius: 12px 12px 8px 8px;
  background: #fff;
}

.main-nav-wrap {
  border-bottom: 1px solid #d6d6d6
}

.main-nav {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
}

.menu-btn {
  width: 36px;
  height: 34px;
  padding: 4px 5px;
  border: 0;
  border-right: 1px solid #cfd2db;
  background: transparent;
  display: grid;
  align-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn i {
  display: block;
  width: 24px;
  height: 2px;
  background: #19316e
}

.live-link {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  color: var(--gb-red);
  font-size: 16px;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.live-dot {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--gb-red);
  box-shadow: 0 0 0 1px var(--gb-red);
}

.nav-scroll {
  display: flex;
  align-items: center;
  gap: 23px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.nav-link {
  border: 0;
  background: none;
  padding: 0;
  color: #080808;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  color: var(--gb-blue)
}

.nav-more {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #31467e;
  color: #fff;
  font-size: 22px;
  line-height: 20px;
  cursor: pointer;
}

.sub-nav-wrap {
  background: var(--gb-navy);
  border-top: 3px solid var(--gb-red);
}

.sub-nav {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  white-space: nowrap;
}

.sub-link {
  border: 0;
  background: none;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.sub-link:hover,
.sub-link:focus-visible {
  font-weight: 900
}

@media(max-width:767px) {

  .site-header {
    width: 100%;
    margin: 0;
    padding-top: 0;
    background: #fff;
  }

  .header-inner {
    width: 100%;
    margin: 0;
  }

  /* Верхняя часть с логотипом */
  .header-top {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border-top: 0;
    border-bottom: 1px solid #d7d7d7;
  }

  .brand img {
    width: 92px;
    max-height: 42px;
  }

  .header-actions {
    gap: 10px;
  }

  .support-btn {
    min-width: 112px;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 800;
  }

  .login-link {
    display: none;
  }

  .profile-btn {
    width: 31px;
    height: 31px;
  }

  .profile-btn::before {
    left: 10px;
    top: 5px;
  }

  .profile-btn::after {
    left: 6px;
    bottom: 5px;
    width: 18px;
  }

  /* Строка меню под логотипом */
  .main-nav-wrap {
    width: 100%;
    border-bottom: 1px solid #d7d7d7;
  }

  .main-nav {
    width: 100%;
    height: 51px;
    padding: 0 16px;
    gap: 13px;
  }

  .menu-btn {
    width: 34px;
    height: 36px;
    padding: 4px 5px;
  }

  .menu-btn i {
    width: 24px;
    height: 2px;
  }

  .live-prefix {
    display: none;
  }

  .live-link {
    font-size: 16px;
    font-weight: 800;
  }

  .live-dot {
    width: 11px;
    height: 11px;
  }

  .nav-scroll {
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-scroll::-webkit-scrollbar {
    display: none;
  }

  .nav-link {
    font-size: 16px;
    font-weight: 700;
  }

  .nav-more {
    display: none;
  }

  .sub-nav-wrap {
    display: none;
  }
}

/* ===== Smartphone navigation drawer ===== */
.mobile-menu {
  display: none
}

@media(max-width:767px) {
  body.mobile-menu-open {
    overflow: hidden
  }

  .header-inner {
    position: relative
  }

  .menu-btn {
    transition: background .15s ease;
  }

  .menu-btn.is-open {
    width: 52px;
    height: 51px;
    margin-left: -16px;
    padding: 0;
    border-right: 0;
    background: var(--gb-navy);
    position: relative;
    display: block;
    flex: 0 0 52px;
  }

  .menu-btn.is-open i {
    position: absolute;
    left: 14px;
    top: 24px;
    width: 25px;
    height: 2px;
    margin: 0;
    background: #fff;
  }

  .menu-btn.is-open i:nth-child(1) {
    transform: rotate(45deg)
  }

  .menu-btn.is-open i:nth-child(2) {
    opacity: 0
  }

  .menu-btn.is-open i:nth-child(3) {
    transform: rotate(-45deg)
  }

  .mobile-menu {
    display: block;
    position: absolute;
    z-index: 1200;

    top: 105px;

    left: 0;
    width: 100%;
    max-height: calc(100dvh - 105px);
    overflow-y: auto;
    overscroll-behavior: contain;

    padding: 18px 20px 28px;

    background: var(--gb-navy);
    color: #fff;

    box-shadow: 0 14px 34px rgba(0, 15, 85, .18);
    scrollbar-width: thin;
  }

  .mobile-menu[hidden] {
    display: none !important
  }

  .mobile-menu-search {
    position: relative;
    margin: 0 0 12px;
  }

  .mobile-menu-search input {
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 52px 0 14px;
    border: 0;
    border-radius: 4px;
    outline: 0;
    background: #fff;
    color: #252b3a;
    font-size: 19px;
    font-weight: 600;
  }

  .mobile-menu-search input::placeholder {
    color: #9ba0ac;
    opacity: 1
  }

  .mobile-menu-search button {
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .mobile-menu-search button::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 13px;
    width: 14px;
    height: 14px;
    border: 1.8px solid var(--gb-blue);
    border-radius: 50%;
  }

  .mobile-menu-search button::after {
    content: "";
    position: absolute;
    left: 28px;
    top: 28px;
    width: 9px;
    height: 1.8px;
    background: var(--gb-blue);
    transform: rotate(47deg);
    transform-origin: left center;
  }

  .mobile-edition,
  .mobile-menu-item {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
    background: transparent;
    color: #fff;
    text-align: left;
    cursor: pointer;
  }

  .mobile-edition {
    justify-content: flex-start;
    min-height: 52px;
    font-size: 19px;
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  .uk-flag {
    display: block;
    width: 31px;
    height: 21px;
    object-fit: cover;
    flex: 0 0 auto;
  }

  .mobile-edition i,
  .mobile-menu-item i {
    width: 10px;
    height: 10px;
    margin-left: auto;
    margin-right: 3px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translateY(-3px);
    flex: 0 0 10px;
  }

  .mobile-menu-item {
    font-size: 20px;
    font-weight: 700;
  }

  .mobile-menu-item:hover,
  .mobile-menu-item:focus-visible,
  .mobile-menu-item.is-active {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

@media (max-width: 768px) {

  html,
  body {
    margin: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  .site-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: 0 !important;
  }
}