:root {
  --os-bg: #0b7772;
  --os-bg-dark: #08625e;
  --os-card: #fffdf9;
  --os-text: #18181b;
  --os-muted: #5f676b;
  --os-accent: #f47b34;
  --os-accent-soft: #fff4ec;
  --os-teal-text: #08625e;
  --os-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  padding: clamp(18px, 4vw, 42px);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.65;
  color: var(--os-text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(0,0,0,0.03)),
    var(--os-bg);
}

.wrap {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 36px);
  background: var(--os-card);
  border: 2px solid var(--os-accent);
  border-radius: 14px;
  box-shadow: var(--os-shadow);
}

.home-wrap,
.narrow-wrap {
  max-width: 720px;
  text-align: center;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.lang-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--os-muted);
  font-size: 15px;
}

.lang-picker label {
  white-space: nowrap;
}

.lang-picker select {
  min-width: 160px;
  padding: 10px 12px;
  border: 2px solid var(--os-accent);
  border-radius: 10px;
  background: #fff;
  color: var(--os-text);
  font: inherit;
}

h1 {
  margin: 0 0 14px;
  color: var(--os-text);
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  margin: 30px 0 10px;
  color: var(--os-teal-text);
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin: 20px 0 8px;
  color: var(--os-teal-text);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

p,
li {
  color: var(--os-text);
  font-size: clamp(16px, 2vw, 18px);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 10px 0 16px 24px;
  padding: 0;
}

li {
  margin-bottom: 8px;
}

a {
  color: var(--os-teal-text);
  font-weight: 700;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.updated,
footer {
  color: var(--os-muted);
}

.buttons,
.nav,
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.nav {
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  border: 2px solid var(--os-accent);
  border-radius: 10px;
  background: #fff;
  color: var(--os-text);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  transition: background 0.16s ease, transform 0.16s ease;
}

.button:hover {
  background: var(--os-accent-soft);
  color: var(--os-text);
  text-decoration: none;
  transform: translateY(-1px);
}

.secondary {
  background: #fff;
  color: var(--os-text);
}

footer {
  margin-top: 30px;
  font-size: 15px;
}

@media (max-width: 640px) {
  body {
    padding: 18px;
  }

  .wrap {
    padding: 22px 20px;
    border-radius: 12px;
  }

  .topbar {
    justify-content: stretch;
  }

  .lang-picker {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav,
  .buttons,
  .links {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
