:root {
  --blue: #1F4BFF;
  --yellow: #FFC72C;
  --navy: #0B1B4D;
  --deep: #13309E;
  --white: #FFFFFF;
  --text-soft: rgba(255, 255, 255, 0.86);
  --line: rgba(255, 255, 255, 0.28);
  --gutter: clamp(16px, 5vw, 56px);
}

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

html, body { margin: 0; }

body {
  background: var(--blue);
  color: var(--white);
  /* Poppins has no Cyrillic, so Russian and Kazakh letters fall through to Montserrat */
  font-family: "Poppins", "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--yellow); color: var(--navy); }

a:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

/* Big faint ring in the background, echoing the passport seal */
.page::before {
  content: "";
  position: absolute;
  width: 78vmax;
  aspect-ratio: 1;
  right: -26vmax;
  top: -30vmax;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Header */
.site-header { position: relative; padding: 28px 0; }

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
}

.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  overflow: hidden;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  flex: none;
}

.brand-mark svg { display: block; width: 100%; height: 100%; }

.brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Language switch */
.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  background: var(--blue); /* sits above the background ring */
}

.lang-switch a {
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--white);
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.lang-switch a:hover { background: rgba(255, 255, 255, 0.14); }

.lang-switch a[aria-current="page"] {
  background: var(--yellow);
  color: var(--navy);
}

/* Hero */
main {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 24px 0 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

h1 {
  max-width: 28ch;
  margin: 0 0 20px;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--yellow);
}

.display {
  margin: 0;
  font-size: clamp(3.25rem, 9vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}

.nowrap { white-space: nowrap; }

.h1-star {
  display: inline-block;
  width: 0.42em;
  height: 0.42em;
  margin-left: 0.08em;
  vertical-align: 0.42em;
  color: var(--yellow);
  animation: twinkle 3.6s ease-in-out infinite;
}

.h1-star svg { display: block; width: 100%; height: 100%; }

.lead {
  max-width: 46ch;
  margin: 28px 0 0;
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  line-height: 1.6;
  color: var(--text-soft);
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 560px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.topics li {
  padding: 6px 14px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1.5px var(--line);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
}

.cta {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  padding: clamp(24px, 3vw, 40px);
  border: 1.5px solid var(--white);
  border-radius: 28px;
  background: var(--blue); /* hides the background ring behind the card */
}

.cta-eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
}

.cta-title {
  margin: 0;
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.cta-text {
  margin: 12px 0 28px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-soft);
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn svg { width: 20px; height: 20px; flex: none; }

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--yellow);
  color: var(--navy);
}

.btn-primary:hover { background: #FFD45A; }

.btn-ghost {
  color: var(--white);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  background: var(--white);
  color: var(--blue);
}

/* Footer */
.site-footer {
  padding: 24px 0 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

.site-footer p { margin: 0; }

@keyframes twinkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(45deg) scale(0.82); }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .cta { justify-self: start; max-width: 520px; }
}

@media (max-width: 480px) {
  .site-header { padding: 20px 0; }
  .brand { gap: 10px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 9px; }
  .brand-name { font-size: 19px; }
  .lang-switch a { padding: 6px 8px; font-size: 12px; }
  main { padding: 16px 0 40px; }
  .topics li { font-size: 13px; padding: 5px 12px; }
  .cta { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
