:root {
  color-scheme: dark;
  --bg: #030918;
  --panel: rgba(10, 22, 48, 0.9);
  --panel-strong: #101e3c;
  --ink: #f8efdf;
  --muted: #bbb8c8;
  --gold: #e3b45d;
  --gold-soft: rgba(227, 180, 93, 0.14);
  --line: rgba(227, 180, 93, 0.28);
  --danger: #f0a58e;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 84% 0%, rgba(53, 77, 133, 0.32), transparent 34rem),
    radial-gradient(circle at 8% 28%, rgba(99, 39, 72, 0.2), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.68;
}

a {
  color: var(--gold);
}

.site-header,
main,
.site-footer {
  width: min(940px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px 10px;
}

.brand {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.language-switcher a {
  min-width: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--ink);
}

main {
  padding-block: 14px 66px;
}

.hero {
  margin-block: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(26px, 5vw, 50px);
  background: linear-gradient(145deg, rgba(16, 30, 60, 0.98), rgba(7, 17, 38, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.18;
}

h1 {
  max-width: 780px;
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 58px);
}

h2 {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(22px, 4vw, 28px);
}

p,
li {
  font-size: 16px;
}

.meta,
.lead,
.muted {
  color: var(--muted);
}

.meta {
  margin-block: 0 16px;
  font-size: 14px;
}

.lead {
  max-width: 760px;
  font-size: 18px;
}

.page-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-actions {
  margin-top: 22px;
}

.button-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 9px 18px;
  background: var(--gold-soft);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.content-section {
  margin-top: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: clamp(21px, 4vw, 30px);
  background: var(--panel);
}

.content-section.warning {
  border-color: rgba(240, 165, 142, 0.36);
}

.content-section.warning h2 {
  color: var(--danger);
}

ol,
ul {
  margin-block: 12px 0;
  padding-inline-start: 24px;
}

li + li {
  margin-top: 8px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-block: 24px 42px;
  color: var(--muted);
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  text-decoration: none;
}

[dir="rtl"] .site-header,
[dir="rtl"] .page-actions,
[dir="rtl"] .footer-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .language-switcher {
  justify-content: flex-start;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-switcher {
    width: 100%;
    justify-content: flex-start;
  }

  [dir="rtl"] .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
