.rs-header {
  box-sizing: border-box;
  position: relative;
  height: auto;
  flex: none;
  background: #0e0f11;
  border-bottom: 1px solid #303237;
  color: #e7e8ea;
  font: 600 12px/1.25 Geologica, Arial, sans-serif;
  letter-spacing: 0;
}

.rs-header-inner {
  width: min(1040px, calc(100% - 80px));
  min-height: 79px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.rs-header-nav, .rs-header-brand, .rs-header-link, .rs-header-language {
  display: flex;
  align-items: center;
}

.rs-header-brand { flex: none; }
.rs-header-brand img { display: block; width: 166px; height: auto; }
.rs-header-nav { gap: 14px; }

.rs-header-link {
  height: 38px;
  justify-content: center;
  gap: 20px;
  padding-inline: 13px;
  border: 1px solid #34363a;
  border-radius: 8px;
  background: #151619;
  color: #e7e8ea;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s, background .2s;
}

.rs-header-link b { font-size: 17px; font-weight: 400; color: #909298; }
.rs-header-link:hover { border-color: #66696d; background: #1e2024; color: #fff; }
.rs-header-link:hover b { color: #fff; }
.rs-header-topup { gap: 9px; }
.rs-header .rs-coin { flex: none; }

.rs-header-language {
  height: 38px;
  padding: 3px;
  border: 1px solid #303237;
  border-radius: 8px;
  background: #151619;
}

.rs-header-language button {
  min-width: 40px;
  height: 30px;
  padding-inline: 7px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: #8a8c91;
  font: inherit;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.rs-header-language button[aria-pressed="true"] { background: #303238; color: #fff; }
.rs-header :focus-visible { outline: 2px solid #ff8195; outline-offset: 2px; }

html[lang="ru"] .rs-header span[lang="en"],
html[lang="en"] .rs-header span[lang="ru"] { display: none; }

@media (max-width: 600px) {
  .rs-header-inner { width: calc(100% - 32px); min-height: 67px; flex-wrap: wrap; gap: 4px 10px; }
  .rs-header-brand img { width: 128px; }
  .rs-header-nav { gap: 8px; }
  .rs-header-link { height: 34px; gap: 9px; padding-inline: 10px; }
  .rs-header-language { height: 34px; }
  .rs-header-language button { min-width: 35px; height: 26px; }
}

@media (max-width: 480px) {
  .rs-header-inner { width: calc(100% - 24px); min-height: 61px; gap: 4px 6px; padding-block: 5px; }
  .rs-header-brand img { width: 100px; }
  .rs-header-nav { gap: 5px; margin-inline-start: auto; }
  .rs-header-link { gap: 5px; padding-inline: 7px; }
  .rs-header-link b { font-size: 14px; }
  .rs-header-language button { min-width: 28px; padding-inline: 4px; }
}

@media (max-width: 390px) {
  .rs-header-link b { display: none; }
}

@media (max-width: 350px) {
  .rs-header-inner { width: calc(100% - 20px); }
  .rs-header-brand img { width: 80px; }
  .rs-header-nav { gap: 4px; }
  .rs-header-link { padding-inline: 5px; }
}
