:root {
  color-scheme: dark;
  --background: #050816;
  --surface: #0d1328;
  --surface-light: #151d38;
  --text: #f6f4ff;
  --muted: #a9aec2;
  --accent: #9c83ff;
  --accent-soft: #c0afff;
  --border: rgba(156, 131, 255, 0.24);
  --danger: #ff6b7a;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 20% 0%,
      rgba(118, 78, 255, 0.22),
      transparent 36%
    ),
    radial-gradient(
      circle at 90% 25%,
      rgba(78, 119, 255, 0.13),
      transparent 32%
    ),
    var(--background);
  color: var(--text);
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-soft);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

header {
  border-bottom: 1px solid var(--border);
  background: rgba(5, 8, 22, 0.82);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

nav {
  width: min(var(--max-width), calc(100% - 36px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 19px;
  font-weight: 850;
  letter-spacing: 0.2px;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 11px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
  font-weight: 650;
}

main {
  width: min(var(--max-width), calc(100% - 36px));
  margin: 0 auto;
  padding: 58px 0 80px;
}

.hero {
  padding: 50px 0 34px;
  text-align: center;
}

.hero-icon {
  width: 112px;
  height: 112px;
  margin-bottom: 18px;
  border-radius: 29px;
  box-shadow:
    0 20px 65px rgba(109, 74, 255, 0.34);
}

h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 66px);
  line-height: 1.08;
  letter-spacing: -2px;
}

h2 {
  margin-top: 0;
  font-size: 27px;
  line-height: 1.25;
}

h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

p {
  color: var(--muted);
}

.lead {
  max-width: 720px;
  margin: 19px auto 0;
  font-size: 19px;
}

.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 15px;
  border: 1px solid var(--border);
  background: var(--surface-light);
  color: var(--text);
  font-weight: 760;
}

.button.primary {
  border-color: transparent;
  background:
    linear-gradient(
      135deg,
      #7655ff,
      #a583ff
    );
  color: white;
}

.grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
  margin-top: 30px;
}

.card {
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(
      160deg,
      rgba(21, 29, 56, 0.96),
      rgba(10, 15, 34, 0.96)
    );
  box-shadow:
    0 18px 45px rgba(0, 0, 0, 0.18);
}

.card p {
  margin-bottom: 0;
}

.page-title {
  max-width: 760px;
  margin-bottom: 35px;
}

.page-title h1 {
  font-size: clamp(36px, 6vw, 54px);
}

.section {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(13, 19, 40, 0.92);
}

.notice {
  padding: 17px 19px;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  background: var(--surface-light);
  color: var(--muted);
}

ul,
ol {
  color: var(--muted);
  padding-left: 22px;
}

strong {
  color: var(--text);
}

.language-divider {
  margin: 52px 0;
  border: 0;
  border-top: 1px solid var(--border);
}

footer {
  border-top: 1px solid var(--border);
  padding: 28px 18px 42px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  nav {
    align-items: flex-start;
    flex-direction: column;
    padding: 15px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  main {
    padding-top: 34px;
  }

  .hero {
    padding-top: 28px;
  }
}
