:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #f4f7fb;
  color: #657389;
  --accent-pink: #df19c8;
  --accent-purple: #8b00ff;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #edf3fa 55%, #f7f9fc 100%);
}

.site-header {
  position: relative;
  z-index: 2;
  min-height: 120px;
  padding: 10px clamp(18px, 3vw, 46px) 18px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 17% -80%, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(108deg, var(--accent-pink), var(--accent-purple));
  box-shadow: 0 12px 34px rgba(122, 25, 190, 0.18);
}

.site-header::after {
  position: absolute;
  right: -80px;
  bottom: -180px;
  width: 340px;
  height: 340px;
  border: 74px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.header-top,
.header-main {
  width: min(100%, 1400px);
  margin-inline: auto;
}

.header-top {
  display: flex;
  min-height: 25px;
  align-items: center;
  gap: 28px;
  padding-inline: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
}

.header-top span:first-child {
  margin-right: auto;
}

.header-main {
  display: grid;
  grid-template-columns: auto 52px minmax(240px, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.brand {
  min-width: 132px;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.075em;
  text-shadow: 0 2px 14px rgba(88, 0, 121, 0.18);
}

.menu-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.menu-mark span {
  width: 23px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.service-bar {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  padding: 0 21px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 17px;
  color: #9791a0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(74, 0, 115, 0.12);
  font-size: 16px;
  font-weight: 600;
}

.service-bar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  box-shadow: 0 0 0 5px rgba(184, 13, 220, 0.1);
}

.online {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 14px;
  font-weight: 700;
}

.online b {
  width: 9px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 50%;
  background: #62e5ad;
  box-shadow: 0 0 0 4px rgba(98, 229, 173, 0.18);
}

main {
  display: grid;
  min-height: calc(100svh - 120px);
  place-content: center;
  justify-items: center;
  padding: 24px;
  transform: translateY(-2vh);
}

p {
  margin: 18px 0 0;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 400;
  letter-spacing: -0.02em;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid rgba(119, 141, 170, 0.2);
  border-top-color: #6e93c4;
  border-right-color: #98b6da;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .spinner {
    animation-duration: 1.8s;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 92px;
    padding: 12px 16px 14px;
  }

  .header-top {
    display: none;
  }

  .header-main {
    grid-template-columns: auto 44px minmax(0, 1fr);
    gap: 10px;
  }

  .brand {
    min-width: auto;
    font-size: 36px;
  }

  .menu-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .service-bar {
    min-height: 48px;
    padding: 0 15px;
    border-radius: 14px;
    font-size: 14px;
  }

  .online {
    display: none;
  }

  main {
    min-height: calc(100svh - 92px);
  }
}
