:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0d0f12;
  color: #ffffff;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding-top: 76px;
  background: #0d0f12;
}

.majax-header {
  --mx-primary: #f4f8fb;
  --mx-primary-hover: #d8f8ff;
  --mx-panel: rgba(7, 16, 24, 0.98);
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  width: 100%;
  color: var(--mx-primary);
  border-bottom: 1px solid rgba(225, 242, 255, 0.12);
  background:
    radial-gradient(circle at 20% 0%, rgba(95, 216, 255, 0.13), transparent 34%),
    radial-gradient(circle at 80% 100%, rgba(255, 255, 255, 0.05), transparent 34%),
    linear-gradient(180deg, rgba(7, 16, 24, 0.96), rgba(3, 5, 7, 0.96));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.majax-header::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0.72;
  background:
    linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.035) 42%, transparent 43%),
    linear-gradient(155deg, transparent 0%, rgba(95, 216, 255, 0.03) 56%, transparent 57%);
}

.majax-header *,
.majax-header *::before,
.majax-header *::after { box-sizing: border-box; }

.majax-header__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1200px, 100%);
  min-height: 76px;
  margin: 0 auto;
  padding: clamp(10px, 2vw, 16px);
  gap: 14px;
}

.majax-header__brand {
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.majax-header__brand-badge {
  position: relative;
  display: grid;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px rgba(0, 0, 0, 0.38);
}

.majax-header__brand-badge::before {
  position: absolute;
  top: 5px;
  right: 8px;
  left: 8px;
  height: 9px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent);
}

.majax-header__brand-badge img {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.majax-header__brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.majax-header__brand-title {
  color: #fff;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.majax-header__brand-sub {
  margin-top: 5px;
  color: rgba(244, 248, 251, 0.66);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.majax-header__nav { margin-left: auto; }

.majax-header__menu {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  gap: 10px;
  list-style: none;
}

.majax-header__menu > li { display: flex; align-items: center; }

.majax-header__link,
.majax-header__cta-account {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--mx-primary);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.majax-header__link:hover,
.majax-header__link.is-active {
  border-color: rgba(95, 216, 255, 0.24);
  background: rgba(95, 216, 255, 0.09);
  color: var(--mx-primary-hover);
}

.majax-header__lang { position: relative; display: flex; }

.majax-header__lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  min-height: 42px;
  padding: 4px 10px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.052);
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.majax-header__lang-current { font-size: 20px; line-height: 1; }
.majax-header__lang-current-label { display: none; font-size: 14px; font-weight: 800; }

.majax-header__lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 10020;
  display: none;
  flex-direction: column;
  min-width: 220px;
  margin: 0;
  padding: 8px;
  gap: 6px;
  border: 1px solid rgba(225, 242, 255, 0.13);
  border-radius: 14px;
  background: rgba(7, 16, 24, 0.98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42);
  list-style: none;
}

.majax-header__lang.is-open .majax-header__lang-menu { display: flex; }

.majax-header__lang-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.majax-header__lang-option:hover,
.majax-header__lang-option.is-active {
  border-color: rgba(95, 216, 255, 0.24);
  background: rgba(95, 216, 255, 0.09);
  color: var(--mx-primary-hover);
}

.majax-header__lang-flag { flex-shrink: 0; font-size: 18px; line-height: 1; }
.majax-header__lang-label { flex: 1; white-space: nowrap; }

.majax-header__cta-account {
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.052);
  color: #eef8fd;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.majax-header__icon { width: 16px; height: 16px; fill: currentColor; }
.majax-header__burger-input { display: none; }

.majax-header__burger {
  display: none;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.052);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 8px 18px rgba(0, 0, 0, 0.24);
}

.majax-header__burger span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: #fff;
  transition: 0.25s;
}

.majax-header__burger.open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.majax-header__burger.open span:nth-child(2) { opacity: 0; }
.majax-header__burger.open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

main {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 44px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  border-bottom: 1px solid rgba(225, 242, 255, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.home-link {
  padding: 10px 16px;
  border: 1px solid rgba(95, 216, 255, 0.24);
  border-radius: 10px;
  background: rgba(95, 216, 255, 0.09);
  color: #d8f8ff;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
}

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

.language-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-switcher a {
  display: grid;
  min-width: 34px;
  min-height: 34px;
  padding: 0 8px;
  place-items: center;
  border: 1px solid rgba(225, 242, 255, 0.16);
  border-radius: 8px;
  color: #c9d7de;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  border-color: rgba(95, 216, 255, 0.72);
  background: rgba(95, 216, 255, 0.11);
  color: #d8f8ff;
}

.hero {
  padding: 72px 0 36px;
  border: 0;
  background: transparent;
}

.eyebrow,
.label {
  margin: 14px 0 8px;
  color: #5fd8ff;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 { letter-spacing: 0; }

h1 {
  max-width: 900px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(38px, 7vw, 58px);
  font-weight: 900;
  line-height: 1.05;
}

h2 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(22px, 4vw, 31px);
  font-weight: 900;
  line-height: 1.18;
}

.lead {
  max-width: 820px;
  margin: 20px 0 0;
  color: #c9d7de;
  font-size: 18px;
  line-height: 1.6;
}

section,
aside {
  margin-top: 16px;
  padding: 24px;
  border: 1px solid rgba(225, 242, 255, 0.16);
  border-radius: 18px;
  background: #11161b;
}

section p,
aside p {
  color: #c9d7de;
  line-height: 1.65;
}

section p:last-child,
aside p:last-child { margin-bottom: 0; }

.status-panel {
  border-color: rgba(95, 216, 255, 0.42);
  background: #071018;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 14px;
}

.status-line .label { margin-top: 0; }

.indicator {
  width: 12px;
  height: 12px;
  flex: 0 0 12px;
  border-radius: 50%;
  background: #75858d;
  box-shadow: 0 0 0 6px rgba(117, 133, 141, 0.09);
}

.indicator.ok { background: #17d594; box-shadow: 0 0 0 6px rgba(23, 213, 148, 0.1); }
.indicator.fail { background: #ff4d61; box-shadow: 0 0 0 6px rgba(255, 77, 97, 0.1); }

.value {
  margin: 0;
  color: #f4f0e8;
  font-size: 23px;
  font-weight: 750;
}

dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0 0;
}

dl div {
  padding-top: 14px;
  border-top: 1px solid rgba(225, 242, 255, 0.13);
}

dt {
  color: #91a4ad;
  font-size: 13px;
}

dd {
  margin: 5px 0 0;
  font-weight: 700;
}

.inline-link {
  color: #d8f8ff;
  text-decoration-color: rgba(95, 216, 255, 0.65);
  text-underline-offset: 3px;
}

.noscript-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(225, 242, 255, 0.13);
  font-size: 14px;
}

details {
  margin-top: 18px;
  border: 1px solid rgba(225, 242, 255, 0.16);
  border-radius: 12px;
  background: #080d11;
}

summary {
  padding: 15px 16px;
  color: #d8f8ff;
  font-weight: 750;
  cursor: pointer;
}

pre {
  max-height: 440px;
  margin: 0;
  padding: 18px;
  overflow: auto;
  border-top: 1px solid rgba(225, 242, 255, 0.13);
  color: #c9d7de;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

section nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid rgba(225, 242, 255, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #ffffff;
  text-decoration: none;
}

section nav a span {
  color: #5fd8ff;
  font-size: 12px;
  font-weight: 750;
}

section nav a:hover,
section nav a:focus-visible {
  border-color: rgba(95, 216, 255, 0.72);
  background: rgba(95, 216, 255, 0.08);
  color: #d8f8ff;
}

aside {
  border-left: 3px solid #5fd8ff;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  color: #71818a;
  font-size: 13px;
}

footer a { color: #5fd8ff; text-decoration: none; }

@media (max-width: 650px) {
  .hero { padding: 48px 0 24px; }
  section, aside { padding: 20px; }
  dl, section nav { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (max-width: 900px) {
  body { padding-top: 72px; }

  .majax-header__row {
    min-height: 72px;
    padding: 10px 12px;
    gap: 10px;
  }

  .majax-header__brand-sub { display: none; }
  .majax-header__burger { display: grid; }

  .majax-header__nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    max-height: 0;
    margin: 0;
    overflow: hidden;
    border-top: 1px solid rgba(225, 242, 255, 0.08);
    border-radius: 0 0 16px 16px;
    background: var(--mx-panel);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34);
    transition: max-height 0.28s ease;
  }

  .majax-header__burger-input:checked ~ .majax-header__nav { max-height: 82vh; overflow-y: auto; }

  .majax-header__menu {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    gap: 10px;
  }

  .majax-header__menu > li,
  .majax-header__lang { display: block; width: 100%; }

  .majax-header__link,
  .majax-header__cta-account,
  .majax-header__lang-btn {
    width: 100%;
    min-height: 46px;
    justify-content: flex-start;
    padding: 0 14px;
  }

  .majax-header__lang-current-label { display: block; }

  .majax-header__lang-menu {
    position: static;
    width: 100%;
    min-width: 0;
    margin-top: 8px;
    padding: 0;
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .majax-header__lang.is-open .majax-header__lang-btn { display: none; }

  .majax-header__lang-option {
    min-height: 46px;
    padding: 0 14px;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.052);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 640px) {
  body { padding-top: 68px; }
  .majax-header__row { min-height: 68px; padding: 8px 10px; gap: 8px; }
  .majax-header__brand { max-width: calc(100% - 52px); gap: 10px; }
  .majax-header__brand-badge { width: 44px; height: 44px; border-radius: 14px; }
  .majax-header__brand-badge img { width: 24px; height: 24px; }
  .majax-header__brand-title { font-size: 16px; }
  .majax-header__burger { width: 40px; height: 40px; }
}
