:root {
  --bg: #f8f9fa;
  --paper: #ffffff;
  --text: #212529;
  --muted: #6c757d;
  --border: #dee2e6;
  --accent: #004a33;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

article {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

header {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}

.language-switcher {
  margin-top: 24px;
  text-align: right;
}

.language-switcher select {
  appearance: none;
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  font-family: inherit;
  font-size: 0.875rem;
  padding: 8px 36px 8px 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c757d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 12a9 9 0 01-9 9m9-9a9 9 0 00-9-9m9 9H3m9 9a9 9 0 01-9-9m9 9c1.657 0 3-4.03 3-9s-1.343-9-3-9m0 18c-1.657 0-3-4.03-3-9s1.343-9 3-9m-9 9a9 9 0 019-9'/%3E%3C/svg%3E"), 
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236c757d'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-position: left 10px center, right 10px center;
  background-repeat: no-repeat;
  background-size: 18px, 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.language-switcher select:hover {
  border-color: #adb5bd;
}

.language-switcher select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 74, 51, 0.1);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  color: #161613;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  margin-top: 30px;
  font-size: 1.35rem;
}

p,
ul {
  margin: 0 0 16px;
}

ul {
  padding-left: 20px;
}

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

.meta {
  color: var(--muted);
  font-size: 0.98rem;
}

.note {
  padding: 16px;
  background: #f1f3f5;
  border-left: 4px solid #ced4da;
  border-radius: 6px;
}

footer {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 640px) {
  main {
    padding: 16px 12px 36px;
  }

  article {
    padding: 22px 16px;
    border-radius: 14px;
  }
}
