:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --paper: #ffffff;
  --text: #172033;
  --muted: #647086;
  --line: #dbe1ec;
  --accent: #2f6fed;
  --accent-dark: #2458bd;
  --shadow: 0 20px 60px rgba(25, 35, 60, 0.10);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #e8f0ff 0, transparent 32rem), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
}

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

.site-shell {
  width: min(100% - 32px, 940px);
  margin: 0 auto;
  padding: 40px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: block;
  overflow: hidden;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 11px;
  background: #09121f;
  box-shadow: 0 10px 30px rgba(21, 33, 54, 0.22);
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-text {
  min-width: 0;
}

.brand-name {
  display: block;
  font-size: 17px;
  font-weight: 750;
  line-height: 1.25;
}

.brand-subtitle {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.3;
}

.language-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.language-control label {
  color: var(--muted);
  font-size: 13px;
}

select {
  min-width: 190px;
  max-width: 44vw;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  font: inherit;
  padding: 9px 12px;
}

.document {
  overflow: hidden;
  border: 1px solid rgba(219, 225, 236, 0.8);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.hero {
  padding: 44px 48px 34px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 14px;
}

.content {
  padding: 34px 48px 48px;
}

.section {
  max-width: 760px;
  margin: 0 0 30px;
}

.section:last-child {
  margin-bottom: 0;
}

.section h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.28;
  letter-spacing: 0;
}

.section p {
  margin: 0;
  color: #334056;
}

.section ul {
  margin: 8px 0 0;
  padding-inline-start: 22px;
  color: #334056;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 9px 16px;
  text-decoration: none;
}

.button-link.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-dark);
}

.footer {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

[dir="rtl"] .brand {
  text-align: right;
}

@media (max-width: 680px) {
  .site-shell {
    width: min(100% - 20px, 940px);
    padding-top: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .language-control {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  select {
    width: 100%;
    max-width: none;
  }

  .hero,
  .content {
    padding-inline: 22px;
  }

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