@font-face {
  font-family: "Roboto";
  src: url("assets/roboto-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  font-family: "Roboto", Arial, sans-serif;
  font-synthesis: none;
  color: #fff;
  background: #070c18;
  --gold: #e2b54f;
  --muted: #8f9cba;
  --gold-fill: linear-gradient(180deg, #f1d07d 0%, #e2b54f 45%, #c4943a 100%);
  --gold-text: linear-gradient(100deg, #b98a35 0%, #f3d58a 22%, #d9ae52 40%, #b98a35 55%, #f6db93 75%, #cea64b 100%);
  --motion-ease: cubic-bezier(.22, 1, .36, 1);
  --motion-fast: 250ms;
  --motion-reveal: 500ms;
  --motion-stagger: 45ms;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 0; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

img { display: block; }

.page {
  min-height: max(100svh, 1120px);
  padding: 36px 16px 80px;
  background: radial-gradient(90% 55% at 50% 0%, rgba(31, 60, 128, .55) 0%, rgba(31, 60, 128, 0) 70%), linear-gradient(180deg, #0d1a38 0%, #0a1328 45%, #070c18 100%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 540px;
  height: 44px;
  margin-inline: auto;
}

.logo { width: 203.44px; height: 36px; object-fit: contain; }

.language-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 145.45px;
  height: 44px;
  padding: 4px;
  border: 1px solid rgba(110, 145, 220, .18);
  border-radius: 999px;
  background: #132447;
}

.language-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 65.5px;
  height: 34px;
  padding: 5px 9px 5px 5px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c9d2e6;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 15px;
  letter-spacing: .52px;
  transition: background-color 160ms ease;
}

.language-button[aria-pressed="true"] {
  background: linear-gradient(180deg, #f3d58a 0%, #e2b54f 50%, #a97b2a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45);
  color: #0b1426;
}

.flag {
  flex: 0 0 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .25);
}

.main { margin: 39px auto 0; }

.intro { text-align: center; }

.hero-title {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
  width: fit-content;
  margin-inline: auto;
  color: #e2b54f;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.hero-title .title-silver {
  font-size: 38.9874px;
  line-height: 41px;
  letter-spacing: -.389874px;
  background-image: linear-gradient(180deg, #fff 0%, #e6eaf2 50%, #a7b1c4 100%);
}

.hero-title .title-gold {
  /* Paint the full glyph without moving its line box or the content below. */
  margin-top: calc(13.82px - .25em);
  margin-bottom: -.25em;
  padding-block: .25em;
  font-size: 78.335px;
  line-height: 40px;
  letter-spacing: -.384696px;
  background-image: var(--gold-text);
}

.subtitle {
  margin: 30.78px 0 0;
  color: var(--muted);
  font-size: 18.6538px;
  font-weight: 400;
  line-height: 26px;
}

.links { max-width: 540px; margin: 22.79px auto 0; }

.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 70px;
  padding: 12px 20px 12px 12px;
  border: 1px solid rgba(110, 145, 220, .18);
  border-radius: 16px;
  background: rgba(22, 40, 78, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  color: #fff;
  text-decoration: none;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: box-shadow var(--motion-fast) var(--motion-ease), background-color 180ms ease, border-color 180ms ease;
}

.link-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(226, 181, 79, .35);
  border-radius: 50%;
  background: #0e1b38;
  transition: transform var(--motion-fast) var(--motion-ease);
}

.link-copy { display: flex; flex: 1; flex-direction: column; gap: 4.5px; min-width: 0; }

.link-title { font-size: 16px; font-weight: 500; line-height: 19px; }

.link-handle { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 15px; }

.link-arrow {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin-left: auto;
  filter: brightness(0) saturate(100%) invert(69%) sepia(17%) saturate(552%) hue-rotate(183deg) brightness(90%) contrast(86%);
  transition: transform var(--motion-fast) var(--motion-ease);
}

.link-primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 76px;
  padding: 16px 20px 16px 12px;
  border: 0;
  background: var(--gold-fill);
  box-shadow: 0 10px 30px -8px rgba(226, 181, 79, .45), inset 0 -2px 0 rgba(120, 80, 15, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  color: #0b1426;
}

.link-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, rgba(255, 250, 225, 0) 20%, rgba(255, 250, 225, .5) 50%, rgba(255, 250, 225, 0) 80%);
  opacity: 0;
  transform: translateX(-110%);
  pointer-events: none;
}

.link-primary > * { position: relative; z-index: 1; }
.link-primary .link-icon { background: #0b1426; border: 0; }
.link-primary .link-copy { gap: 4.75px; }
.link-primary .link-title { font-size: 17px; font-weight: 700; line-height: 20px; }
.link-primary .link-handle { color: rgba(11, 20, 38, .72); font-weight: 500; }
.link-primary .link-arrow { filter: brightness(0) saturate(100%); }

.social-links { display: grid; gap: 10px; margin: 10px 0 0; padding: 0; list-style: none; }

/* Entrance lives on each list item so the link remains free to react to hover. */
.header, .hero-title span, .subtitle, .social-links li {
  animation: arrive var(--motion-reveal) var(--motion-ease) backwards;
}

.hero-title .title-silver { animation-delay: 60ms; }
.hero-title .title-gold { animation-delay: 110ms; }
.subtitle { animation-delay: 160ms; }
.link-primary { animation: fade-in var(--motion-reveal) var(--motion-ease) 210ms backwards; }
.social-links li { animation-delay: calc(260ms + var(--entrance-index, 0) * var(--motion-stagger)); }
.social-links li:nth-child(2) { --entrance-index: 1; }
.social-links li:nth-child(3) { --entrance-index: 2; }
.social-links li:nth-child(4) { --entrance-index: 3; }
.social-links li:nth-child(5) { --entrance-index: 4; }
.social-links li:nth-child(6) { --entrance-index: 5; }

@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes gold-sweep {
  0% { opacity: 0; transform: translateX(-110%); }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(110%); }
}

:where(a, button):focus-visible { outline: 3px solid #fff0be; outline-offset: 4px; }

.link-card:focus-visible {
  background-color: rgba(28, 50, 96, .7);
  border-color: rgba(226, 181, 79, .5);
  box-shadow: 0 8px 24px -10px rgba(226, 181, 79, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.link-card:focus-visible .link-icon { transform: scale(1.06); }
.link-card:focus-visible .link-arrow { transform: translate(2px, -2px); }
.social-links .link-card:focus-visible .link-arrow { filter: none; }
.link-primary:focus-visible { box-shadow: 0 12px 34px -8px rgba(226, 181, 79, .55), inset 0 -2px 0 rgba(120, 80, 15, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }

@media (hover: hover) {
  .language-button[aria-pressed="false"]:hover { background-color: rgba(255, 255, 255, .05); }
  .link-card:hover {
    background-color: rgba(28, 50, 96, .7);
    border-color: rgba(226, 181, 79, .5);
    box-shadow: 0 8px 24px -10px rgba(226, 181, 79, .3), inset 0 1px 0 rgba(255, 255, 255, .05);
  }
  .link-card:hover .link-icon { transform: scale(1.06); }
  .link-card:hover .link-arrow { transform: translate(2px, -2px); }
  .social-links .link-card:hover .link-arrow { filter: none; }
  .link-primary:hover {
    box-shadow: 0 12px 34px -8px rgba(226, 181, 79, .55), inset 0 -2px 0 rgba(120, 80, 15, .35), inset 0 1px 0 rgba(255, 255, 255, .5);
  }
  .link-primary:hover::after { animation: gold-sweep 1200ms ease-in-out; }
}

:lang(ru) .title-gold { font-size: 52px; letter-spacing: -1px; }

@media (max-width: 600px) {
  .page { min-height: max(100svh, 932px); padding-top: 16px; }
  .logo { width: 180.84px; height: 32px; }
  .main { margin-top: 45.21px; }
  .hero-title .title-silver { font-size: clamp(25px, 8.03865vw, 34.5662px); line-height: 36px; letter-spacing: -.345662px; }
  .hero-title .title-gold { margin-top: calc(12.6px - .25em); font-size: clamp(48px, 16.15156vw, 69.4517px); line-height: 36px; letter-spacing: -.341071px; }
  .subtitle { margin-top: 26.76px; font-size: 16.5385px; line-height: 23px; }
  .links { max-width: 366px; width: calc(100% - 32px); margin-top: 44.87px; }
  .link-card { min-height: 64.63px; padding: 11px 18.46px 11px 11.08px; gap: 12.93px; border-radius: 14.7721px; }
  .link-icon { flex-basis: 40.62px; width: 40.62px; height: 40.62px; }
  .link-icon img { width: 20.31px; height: 20.31px; }
  .link-copy { gap: 3.69px; }
  .link-title { font-size: 14.7721px; line-height: 18px; }
  .link-handle { font-size: 12.0023px; line-height: 14px; }
  .link-arrow { flex-basis: 16.62px; width: 16.62px; height: 16.62px; }
  .link-primary { min-height: 70.17px; padding-block: 14.7721px; }
  .link-primary .link-copy { gap: 3.92px; }
  .link-primary .link-title { font-size: 15.6953px; line-height: 18px; }
  .social-links { gap: 9.23px; margin-top: 18px; }
  :lang(ru) .hero-title .title-gold { font-size: clamp(29px, 9.3vw, 40px); letter-spacing: -.8px; }
}

@media (max-width: 374px) {
  .header { gap: 12px; }
  .logo { width: min(180.84px, calc(100% - 157.45px)); height: auto; }
  .link-card { gap: 10px; padding-right: 13px; }
  .link-title { font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .link-card, .link-icon, .link-arrow { transform: none !important; }
  .link-primary::after { display: none; }
}

@media (forced-colors: active) {
  .hero-title span { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  .link-primary::after { display: none; }
}
