:root {
  --bg: #f3f6ff;
  --card: #ffffff;
  --text: #0f1b2d;
  --muted: #4f5f79;
  --accent: #0b84f3;
  --accent2: #e94e77;
  --accent3: #13b88a;
  --border: #d7e2f1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(65, 155, 255, 0.25) 0, rgba(243, 246, 255, 0.9) 38%, rgba(247, 251, 255, 1) 100%),
    radial-gradient(circle at 10% 90%, rgba(233, 78, 119, 0.12), transparent 42%);
  color: var(--text);
  font-family: "General Sans", "Inter", "Segoe UI", sans-serif;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, #f3f6ff 78%, white 22%);
  border-bottom: 1px solid var(--border);
}

.shell {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.locale-switcher {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.locale-switcher label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.locale-switcher select {
  appearance: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--card);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 2rem 0.5rem 0.7rem;
  background-image: linear-gradient(45deg, transparent 50%, #4f5f79 50%), linear-gradient(135deg, #4f5f79 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 3px), calc(100% - 9px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.content-wrap {
  margin: 2rem auto 2.2rem;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
}

.menu-card,
.content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: clamp(1rem, 2vw, 2rem);
  box-shadow: 0 18px 55px -35px rgba(12, 43, 89, 0.35);
}

.menu-title {
  margin: 0 0 0.9rem;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-weight: 800;
}

.menu-group-title {
  margin: 1rem 0 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed #d8e4f4;
  color: #3f5578;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-group-title:first-of-type {
  margin-top: 0;
  border-top: 0;
  padding-top: 0;
}

.menu-link {
  display: block;
  margin: 0.2rem 0;
  text-decoration: none;
  color: #234064;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.45rem 0.6rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.menu-link:hover {
  background: #eef5ff;
}

.menu-link.active {
  background: linear-gradient(135deg, rgba(11, 132, 243, 0.16), rgba(19, 184, 138, 0.12));
  border-color: #b8d9ff;
  color: #0f335a;
  box-shadow: inset 0 0 0 1px rgba(11, 132, 243, 0.14);
}

h1, h2, h3 {
  line-height: 1.2;
  margin-top: 1.4rem;
}

h1 {
  margin-top: 0;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
}

h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

p, li {
  color: #263954;
}

ol {
  padding-left: 1.2rem;
}

@media (max-width: 900px) {
  .site-header .shell {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0.8rem 0;
    min-height: 0;
  }

  .content-wrap {
    grid-template-columns: 1fr;
  }

  .menu-card {
    order: 2;
  }
}
