:root {
  color: #18191f;
  background: #f5f3ef;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  --line: rgba(24, 25, 31, 0.13);
  --muted: #676970;
  --panel: rgba(255, 255, 255, 0.88);
  --wb: #a73afd;
  --ozon: #1268f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 13% 12%, rgba(167, 58, 253, 0.13), transparent 28rem),
    radial-gradient(circle at 88% 86%, rgba(18, 104, 245, 0.13), transparent 28rem),
    #f5f3ef;
}

button,
a {
  font: inherit;
}

.hub-header {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px clamp(14px, 2.6vw, 36px);
  border-bottom: 1px solid var(--line);
  background: rgba(245, 243, 239, 0.84);
  backdrop-filter: blur(18px);
}

.hub-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.hub-mark__symbol {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(24, 25, 31, 0.78);
  border-radius: 10px;
  background: #18191f;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.hub-mark__text {
  font-size: 14px;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.market-switcher {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 8px 26px rgba(24, 25, 31, 0.06);
}

.market-button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #404148;
  cursor: pointer;
  font-size: 13px;
  font-weight: 680;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.market-button:hover {
  background: #efede8;
  color: #18191f;
}

.market-button:active {
  transform: translateY(1px);
}

.market-button:focus-visible,
.hub-mark:focus-visible {
  outline: 3px solid rgba(18, 104, 245, 0.32);
  outline-offset: 3px;
}

.market-button[aria-pressed="true"] {
  background: #18191f;
  color: #fff;
}

.market-button__dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: currentColor;
}

.market-button--wb .market-button__dot {
  background: var(--wb);
}

.market-button--ozon .market-button__dot {
  background: var(--ozon);
}

.market-button__arrow {
  margin-left: 2px;
  font-size: 12px;
  opacity: 0.58;
}

.market-switcher__divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.hub-main {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 40px 22px;
}

.welcome {
  width: min(650px, 100%);
  text-align: center;
}

.welcome__eyebrow {
  margin: 0 0 18px;
  color: #77786f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.welcome h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 74px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.98;
}

.welcome__copy {
  max-width: 530px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.welcome__status {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 24px 0 0;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: #56575e;
  font-size: 12px;
  font-weight: 650;
}

.hub-footer {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  color: #77786f;
  font-size: 11px;
  text-align: center;
}

.hub-footer__separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.is-leaving .market-button,
.is-leaving .hub-mark {
  pointer-events: none;
}

.is-leaving .welcome {
  opacity: 0.62;
  transform: translateY(2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.has-error .welcome__status {
  border-color: rgba(176, 31, 31, 0.25);
  background: rgba(255, 236, 236, 0.82);
  color: #9d2424;
}

@media (max-width: 650px) {
  .hub-header {
    min-height: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 10px 12px 12px;
  }

  .hub-mark {
    align-self: center;
  }

  .hub-mark__symbol {
    width: 30px;
    height: 30px;
    border-radius: 9px;
  }

  .market-switcher {
    width: 100%;
  }

  .market-button {
    flex: 1 1 0;
    justify-content: center;
    padding-inline: 9px;
  }

  .hub-main {
    padding: 34px 18px;
  }

  .hub-footer {
    flex-wrap: wrap;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
