* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --background: #f7f8f4;
  --surface: #ffffff;
  --text: #263024;
  --muted: #65705f;
  --accent: #617955;
  --accent-soft: #e8efe2;
  --line: #dce4d5;
  --danger: #8f3f34;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.8;
  direction: rtl;
}

a {
  color: var(--accent);
  font-weight: 700;
}

.page {
  width: min(100%, 960px);
  margin: 0 auto;
  padding: 28px 18px 48px;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  font-size: 22px;
}

.mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--accent);
  font-weight: 900;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

.hero {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.25;
}

.updated {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

section {
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.4;
}

p {
  margin: 0 0 12px;
}

ul {
  margin: 0;
  padding: 0 22px 0 0;
}

li {
  margin: 8px 0;
}

.note {
  border-color: #c8d8bf;
  background: var(--accent-soft);
}

.warning {
  border-color: #e8c9c5;
  color: var(--danger);
}

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

@media (max-width: 700px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero,
  section {
    padding: 18px;
  }
}
