:root {
  --bg: #0b0b0d;
  --bg-soft: #101114;
  --panel: #181a20;
  --panel-2: #20232b;
  --panel-3: #252832;
  --gold: #f8c22e;
  --gold-dark: #b87912;
  --red: #ff3b2f;
  --orange: #ff7a18;
  --green: #05e987;
  --green-soft: #12ff9d;
  --text: #ffffff;
  --muted: #a7a7a7;
  --muted-2: #d8d8d8;
  --line: #2b2e36;
  --shadow: rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(248, 194, 46, 0.1), transparent 28%),
    radial-gradient(circle at 92% 8%, rgba(5, 233, 135, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.65;
  letter-spacing: 0;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  z-index: 999;
  border-radius: 8px;
}

.skip-link:focus {
  left: 8px;
}

.app-strip {
  background: #000;
  border-bottom: 1px solid #202020;
}

.app-strip__inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 8px 16px;
}

.app-strip__brand {
  color: var(--gold);
  font-weight: 950;
}

.app-strip__text {
  color: #fff;
  font-weight: 850;
}

.app-strip__button {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #061b13;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(5, 233, 135, 0.24);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(24, 26, 32, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 250px;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #e8e8e8;
  font-size: 14px;
  font-weight: 850;
  white-space: nowrap;
}

.desktop-nav a {
  transition: color 0.18s ease;
}

.desktop-nav a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.nav-login {
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 850;
}

.nav-register {
  background: linear-gradient(135deg, var(--red), var(--orange));
  border-radius: 999px;
  padding: 9px 19px;
  font-weight: 950;
  box-shadow: 0 8px 22px rgba(255, 59, 47, 0.34);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 999px;
  background: #111;
}

.language-switch a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 950;
  color: #ddd;
}

.language-switch img {
  width: 24px;
  height: 17px;
  border-radius: 3px;
  object-fit: cover;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: #252832;
  padding: 10px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  border-radius: 4px;
}

.mobile-menu {
  display: none;
  background: #101114;
  border-top: 1px solid var(--line);
  padding: 10px 16px 18px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  border-bottom: 1px solid #222;
  font-weight: 850;
}

.mobile-menu.is-open {
  display: block;
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 12%, rgba(5, 233, 135, 0.2), transparent 35%),
    radial-gradient(circle at 18% 10%, rgba(248, 194, 46, 0.22), transparent 32%),
    linear-gradient(160deg, #090909 0%, #111317 52%, #080808 100%);
  padding: 70px 0 46px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% -10%;
  height: 240px;
  background: linear-gradient(90deg, transparent, rgba(255, 59, 47, 0.18), rgba(5, 233, 135, 0.16), transparent);
  filter: blur(32px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(42px, 6vw, 80px);
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
}

h3 {
  font-size: 20px;
}

.lead {
  font-size: 20px;
  color: #eeeeee;
  max-width: 720px;
  margin: 0;
}

.access-box {
  border: 1px solid rgba(248, 194, 46, 0.58);
  background: linear-gradient(135deg, rgba(248, 194, 46, 0.12), rgba(5, 233, 135, 0.08));
  border-radius: 14px;
  padding: 16px;
  margin: 24px 0;
  box-shadow:
    inset 0 0 24px rgba(248, 194, 46, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.24);
}

.access-box strong {
  color: var(--green);
  display: block;
  margin-bottom: 8px;
  font-weight: 950;
}

.access-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.access-lines span {
  background: #080808;
  border: 1px solid #32363f;
  border-radius: 10px;
  color: #fff;
  font-weight: 950;
  padding: 9px 12px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.phl-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid transparent;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.phl-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.phl-btn--ghost {
  border-color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.04);
}

.phl-btn--red {
  background: linear-gradient(135deg, var(--red), var(--orange));
  box-shadow: 0 10px 26px rgba(255, 59, 47, 0.32);
}

.phl-btn--green {
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  color: #061b13;
  box-shadow: 0 10px 26px rgba(5, 233, 135, 0.24);
}

.phl-btn--gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #130b00;
  box-shadow: 0 10px 26px rgba(248, 194, 46, 0.24);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 18px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  color: #ddd;
  background: rgba(0, 0, 0, 0.28);
  font-size: 13px;
  font-weight: 800;
}

.hero-media,
.image-frame {
  border: 1px solid rgba(248, 194, 46, 0.5);
  border-radius: 20px;
  overflow: hidden;
  background: linear-gradient(160deg, #111, #20232b);
  box-shadow: 0 24px 70px var(--shadow);
}

.hero-media img,
.image-frame img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.quick-panel {
  padding: 18px 0;
  background: #111317;
  border-block: 1px solid var(--line);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.quick-grid a,
.feature-grid article,
.value-grid article,
.game-card,
details {
  background: linear-gradient(180deg, rgba(32, 35, 43, 0.92), rgba(24, 26, 32, 0.92));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}

.quick-grid span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.quick-grid strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.content-section {
  padding: 72px 0;
}

.content-section.dark {
  background: #101114;
  border-block: 1px solid var(--line);
}

.section-head {
  margin-bottom: 28px;
}

.section-head p {
  max-width: 850px;
  color: var(--muted);
  margin: 0;
}

.prose {
  color: #dedede;
  font-size: 17px;
}

.prose p {
  margin: 0 0 18px;
}

.prose a {
  color: var(--gold);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
}

.image-text {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 34px;
  align-items: center;
}

.image-text.reverse {
  grid-template-columns: 0.9fr 1fr;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.game-card {
  overflow: hidden;
}

.game-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 13px;
  background:
    linear-gradient(135deg, rgba(255, 59, 47, 0.5), rgba(248, 194, 46, 0.5), rgba(5, 233, 135, 0.4)),
    #111;
}

.game-card p,
.feature-grid p,
.value-grid p,
.site-footer p {
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.feature-grid--three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 15px;
  background: #111;
}

.feature-grid a {
  color: var(--gold);
  font-weight: 900;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.page-hero {
  padding: 72px 0 46px;
  background:
    radial-gradient(circle at 80% 20%, rgba(248, 194, 46, 0.22), transparent 34%),
    radial-gradient(circle at 12% 14%, rgba(255, 59, 47, 0.12), transparent 28%),
    #0e0f12;
  border-bottom: 1px solid var(--line);
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.88fr;
  gap: 34px;
  align-items: center;
}

.page-hero h1 {
  font-size: clamp(36px, 5vw, 62px);
}

.page-hero p {
  max-width: 760px;
  color: #dddddd;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

details {
  color: #dedede;
}

summary {
  cursor: pointer;
  font-weight: 950;
  color: #fff;
  margin-bottom: 8px;
}

details p {
  margin: 8px 0 0;
  color: var(--muted);
}

.bottom-cta {
  background:
    radial-gradient(circle at 85% 20%, rgba(5, 233, 135, 0.12), transparent 30%),
    linear-gradient(135deg, #191b22, #101114);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}

.bottom-cta__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.bottom-cta h2 {
  margin-bottom: 8px;
}

.bottom-cta p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
}

.site-footer {
  padding: 48px 0 96px;
  background: #080808;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 28px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 12px;
}

.site-footer h3 {
  color: var(--gold);
}

.site-footer a {
  display: block;
  color: #ddd;
  margin: 8px 0;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer-note {
  text-align: center;
  color: #8e8e8e;
  border-top: 1px solid #1d1d1d;
  margin-top: 26px;
  padding-top: 18px;
}

.float-support {
  position: fixed;
  right: 18px;
  bottom: 104px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.float-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid #4b4f5b;
  background: radial-gradient(circle at 30% 20%, #666, #1a1b20);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 950;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 59, 47, 0.12);
  cursor: pointer;
  font-size: 13px;
}

.float-btn:hover {
  color: var(--gold);
}

.mobile-tabbar {
  display: none;
}

@media (max-width: 1120px) {
  .desktop-nav {
    gap: 12px;
    font-size: 13px;
  }

  .brand img {
    width: 220px;
  }
}

@media (max-width: 980px) {
  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid,
  .two-col,
  .image-text,
  .image-text.reverse,
  .page-hero-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .game-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-grid,
  .feature-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .brand img {
    width: 210px;
  }

  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 72px;
  }

  body.admin-bar .site-header {
    top: 0;
  }

  .container {
    width: min(100% - 24px, 1180px);
  }

  .app-strip__inner {
    min-height: 52px;
    justify-content: space-between;
    gap: 8px;
  }

  .app-strip__text {
    display: none;
  }

  .app-strip__button {
    padding: 9px 16px;
  }

  .nav-wrap {
    min-height: 70px;
    gap: 10px;
  }

  .brand img {
    width: 158px;
  }

.nav-login,
.nav-register,
.desktop-language-switch {
  display: none;
}

.mobile-language-switch {
  display: flex;
  padding: 5px;
  gap: 5px;
  flex: 0 0 auto;
}

.mobile-language-switch a {
  font-size: 11px;
}

.mobile-language-switch img {
  width: 22px;
  height: 16px;
}

.menu-toggle {
  flex: 0 0 42px;
}
.nav-actions {
  gap: 6px;
  flex-shrink: 0;
}

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

.brand img {
  width: 150px;
  max-width: 100%;
}

.menu-toggle {
  display: block;
  width: 42px;
  height: 42px;
}

  .nav-register {
    padding: 8px 14px;
  }

  .hero {
    padding: 34px 0 30px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 17px;
  }

  .access-lines {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-row span {
    font-size: 12px;
  }

  .quick-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .quick-grid a {
    padding: 14px;
  }

  .quick-grid strong {
    font-size: 16px;
  }

  .content-section {
    padding: 48px 0;
  }

  .page-hero {
    padding: 44px 0 34px;
  }

  .game-grid,
  .feature-grid,
  .feature-grid--three,
  .value-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .bottom-cta__grid {
    align-items: stretch;
    flex-direction: column;
  }

  .float-support {
    right: 12px;
    bottom: 88px;
  }

  .float-btn {
    width: 48px;
    height: 48px;
    font-size: 12px;
  }

  .mobile-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68px;
    z-index: 100;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
    background: rgba(24, 26, 32, 0.98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.34);
  }

  .mobile-tabbar a {
    text-align: center;
    font-size: 12px;
    color: #d8d8d8;
    font-weight: 950;
  }

  .mobile-tabbar__main {
    width: 64px;
    height: 64px;
    margin: -22px auto 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--red), var(--orange));
    color: #fff !important;
    box-shadow: 0 8px 24px rgba(255, 59, 47, 0.35);
  }
}
.mobile-language-switch {
  display: none;
}

@media (min-width: 641px) {
  .mobile-language-switch {
    display: none;
  }
}

@media (max-width: 640px) {
  .desktop-language-switch {
    display: none;
  }

  .mobile-language-switch {
    display: flex;
    padding: 5px;
    gap: 5px;
  }

  .mobile-language-switch a {
    font-size: 11px;
  }

  .mobile-language-switch img {
    width: 22px;
    height: 16px;
  }
}
@media (max-width: 640px) {
  .nav-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 70px !important;
  }

  .brand {
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .brand img {
    width: 148px !important;
    max-width: 100% !important;
  }

  .nav-actions {
    display: contents !important;
  }

  .nav-login,
  .nav-register,
  .desktop-language-switch {
    display: none !important;
  }

  .mobile-language-switch {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    padding: 5px !important;
    border: 1px solid var(--line) !important;
    border-radius: 999px !important;
    background: #111 !important;
    min-width: 86px !important;
  }

  .mobile-language-switch a {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-size: 11px !important;
    font-weight: 950 !important;
  }

  .mobile-language-switch img {
    width: 21px !important;
    height: 15px !important;
    object-fit: cover !important;
  }

  .menu-toggle {
    display: grid !important;
    place-items: center !important;
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 8px !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    background: #252832 !important;
    cursor: pointer !important;
  }

  .menu-toggle span {
    display: block !important;
    width: 22px !important;
    height: 3px !important;
    background: #ffffff !important;
    border-radius: 4px !important;
    margin: 2px 0 !important;
  }
}
.access-box--links {
  padding: 18px;
}

.access-box__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.access-box__head strong {
  margin: 0;
}

.access-box__head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.access-lines--clickable {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 11px;
}

.access-line-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1px solid rgba(248, 194, 46, 0.42);
  background:
    linear-gradient(135deg, rgba(248, 194, 46, 0.12), rgba(5, 233, 135, 0.08)),
    #080808;
  box-shadow:
    inset 0 0 18px rgba(248, 194, 46, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.access-line-card:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 233, 135, 0.72);
  box-shadow:
    inset 0 0 20px rgba(5, 233, 135, 0.08),
    0 12px 26px rgba(0, 0, 0, 0.3);
}

.access-line-card__status {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(5, 233, 135, 0.9);
}

.access-line-card__domain {
  color: #fff;
  font-weight: 950;
  white-space: nowrap;
}

.access-line-card__open {
  color: #061b13;
  background: linear-gradient(135deg, var(--green), var(--green-soft));
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 950;
}

@media (max-width: 760px) {
  .access-box__head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .access-lines--clickable {
    grid-template-columns: 1fr;
  }

  .access-line-card {
    min-height: 48px;
  }
}
.float-support {
  position: fixed;
  right: 18px;
  bottom: 104px;
  z-index: 90;
  display: grid;
  gap: 10px;
}

.float-btn {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(255, 59, 47, 0.18);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.float-btn img {
  width: 58px;
  height: 58px;
  display: block;
}

.float-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

@media (max-width: 640px) {
  .float-support {
    right: 12px;
    bottom: 88px;
    gap: 8px;
  }

  .float-btn,
  .float-btn img {
    width: 50px;
    height: 50px;
  }
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 9999;
    background: #111319;
    border-bottom: 1px solid rgba(255, 202, 65, 0.22);
}

.top-download-bar {
    background: #000;
    color: #fff;
}

.top-download-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 48px;
    padding: 8px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.top-download-text {
    font-size: 16px;
    font-weight: 800;
    color: #fff;
}

.top-download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 22px;
    border-radius: 10px;
    color: #07140b;
    background: linear-gradient(135deg, #28ff8a, #05d86d);
    font-weight: 900;
    text-decoration: none;
    box-shadow: 0 0 18px rgba(0, 255, 128, 0.35);
}

.main-header {
    background: #1a1d25;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-logo {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.site-logo img {
    display: block;
    width: 210px;
    max-width: 100%;
    height: auto;
}

.desktop-nav {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.desktop-nav a {
    color: #f4f4f5;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.desktop-nav a:hover {
    color: #ffca41;
}

.header-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
}

.language-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 9px;
    border-radius: 999px;
    color: #d9d9df;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.language-link.is-active {
    color: #111;
    background: linear-gradient(135deg, #ffd76a, #ffad19);
}

.flag-img {
    display: inline-flex;
    line-height: 1;
    font-size: 16px;
}

.header-login,
.header-register {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.header-login {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: transparent;
}

.header-register {
    color: #fff;
    background: linear-gradient(135deg, #ff4938, #f01818);
    box-shadow: 0 8px 18px rgba(255, 46, 36, 0.35);
}

.mobile-menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    min-width: 46px;
    border: 0;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 10001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    margin: 5px auto;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 0 8px rgba(255, 202, 65, 0.45);
}

.mobile-menu {
    display: none;
    background: #101218;
    border-top: 1px solid rgba(255, 202, 65, 0.16);
}

.mobile-menu-inner {
    padding: 14px 16px 20px;
}

.mobile-language-switch {
    display: flex;
    gap: 10px;
    margin-bottom: 14px;
}

.mobile-language-link {
    flex: 1;
    min-height: 42px;
    border-radius: 10px;
    color: #fff;
    background: #222631;
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 800;
    text-decoration: none;
}

.mobile-language-link.is-active {
    color: #111;
    background: linear-gradient(135deg, #ffd76a, #ffad19);
}

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

.mobile-nav a {
    min-height: 44px;
    border-radius: 10px;
    color: #f5f5f5;
    background: #1c202a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    text-decoration: none;
}

.mobile-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.mobile-actions a {
    min-height: 46px;
    border-radius: 12px;
    color: #111;
    background: linear-gradient(135deg, #ffd76a, #ffad19);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    text-decoration: none;
}

@media (max-width: 1180px) {
    .desktop-nav {
        gap: 12px;
    }

    .desktop-nav a {
        font-size: 14px;
    }

    .site-logo img {
        width: 190px;
    }
}

@media (max-width: 980px) {
    .desktop-nav,
    .header-login,
    .header-register {
        display: none;
    }

    .header-inner {
        min-height: 66px;
        gap: 12px;
    }

    .site-logo img {
        width: 178px;
    }

    .header-actions {
        margin-left: auto;
        gap: 8px;
    }

    .language-switch {
        display: flex;
    }

    .language-link {
        min-height: 34px;
        padding: 0 8px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    body.mobile-menu-open .mobile-menu {
        display: block;
    }
}

@media (max-width: 520px) {
    .top-download-inner {
        min-height: 44px;
        padding: 7px 12px;
        gap: 10px;
    }

    .top-download-text {
        font-size: 13px;
    }

    .top-download-btn {
        min-height: 32px;
        padding: 0 14px;
        font-size: 13px;
    }

    .header-inner {
        padding: 0 12px;
    }

    .site-logo img {
        width: 148px;
    }

    .language-switch {
        gap: 4px;
        padding: 3px;
    }

    .language-link {
        min-height: 32px;
        padding: 0 7px;
        font-size: 11px;
    }

    .flag-img {
        font-size: 15px;
    }

    .mobile-menu-toggle {
        display: block;
        width: 44px;
        height: 44px;
        min-width: 44px;
        padding: 9px;
        background: rgba(255, 255, 255, 0.12);
    }

    .mobile-menu-toggle span {
        width: 24px;
        height: 3px;
        background: #fff;
    }

    .mobile-nav {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .site-logo img {
        width: 128px;
    }

    .language-link span:last-child {
        display: none;
    }

    .language-link {
        width: 32px;
        justify-content: center;
        padding: 0;
    }

    .mobile-menu-toggle {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }
}