:root {
  color-scheme: light;
  --background: #f8faf8;
  --surface: #ffffff;
  --text: #1a1b1f;
  --muted: #414755;
  --accent: #006f8d;
  --accent-soft: #c7eaf3;
  --border: rgba(113, 119, 134, 0.22);
  --shadow: rgba(26, 27, 31, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: linear-gradient(180deg, #c7eaf3 0, var(--background) 260px);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

.page {
  width: min(860px, calc(100% - 32px));
  margin: 28px auto 56px;
}

.site-header,
main {
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: 0 14px 40px var(--shadow);
}

.site-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 18px;
}

.app-icon {
  width: 68px;
  height: 68px;
  border-radius: 16px;
  box-shadow: 0 5px 14px var(--shadow);
}

.brand { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.brand strong { display: block; font-size: 1.2rem; }
.brand span { color: var(--muted); font-size: 0.92rem; }

.locale-selector { flex: 0 0 auto; }
.locale-selector select {
  width: 180px;
  max-width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.locale-selector select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent);
  outline-offset: 2px;
}

main { padding: clamp(24px, 5vw, 52px); }
h1, h2 { line-height: 1.25; }
h1 { margin: 0 0 8px; font-size: clamp(2rem, 6vw, 3rem); overflow-wrap: anywhere; }
h2 { margin-top: 2rem; font-size: 1.35rem; }
p, li { max-width: 72ch; }
ul { padding-left: 1.35rem; }
.muted { color: var(--muted); margin-top: 0; }
a { color: var(--accent); }

.document-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  padding: 0;
  list-style: none;
}

.document-list a {
  display: block;
  height: 100%;
  padding: 18px;
  background: var(--accent-soft);
  border-radius: 16px;
  font-weight: 750;
  text-decoration: none;
}

footer {
  padding: 22px 8px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 560px) {
  .page { width: min(calc(100% - 20px), 860px); margin-top: 10px; }
  .site-header { align-items: flex-start; flex-wrap: wrap; border-radius: 18px; }
  .app-icon { width: 56px; height: 56px; border-radius: 13px; }
  .locale-selector { width: 100%; }
  .locale-selector select { width: 100%; }
  main { border-radius: 18px; }
  h1 { font-size: 1.85rem; }
}
