:root {
  --brand: #ff5525;
  --brand-dark: #d93f12;
  --bg: #ffffff;
  --bg-soft: #fff4ef;
  --text: #1c1917;
  --muted: #57534e;
  --card: #ffffff;
  --border: #f1ddd5;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --bg-soft: #1d1714;
    --text: #f5f0ed;
    --muted: #b9aea8;
    --card: #211a17;
    --border: #3a2c26;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3 { font-family: Arvo, Georgia, serif; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); text-align: center; margin-bottom: 2rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p { margin: 0; }

.site-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
  font-family: Arvo, Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
}

.lang { display: flex; gap: 0.25rem; }
.lang a {
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}
.lang a:hover { color: var(--brand); }
.lang a[aria-current] { color: var(--brand); background: var(--bg-soft); }

.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover, .btn:focus-visible { background: var(--brand-dark); }
.btn-small { padding: 0.45rem 1.1rem; font-size: 0.9rem; }

main section { padding: 3.5rem 16px; max-width: 1100px; margin: 0 auto; }

.hero { text-align: center; padding-top: 4rem; }
.hero .lead { max-width: 640px; margin: 1.25rem auto 2rem; font-size: 1.15rem; color: var(--muted); }
.hero .note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid article {
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.grid .icon { display: block; font-size: 1.75rem; margin-bottom: 0.5rem; }
.grid p { color: var(--muted); }

.steps { text-align: center; }
.steps ol {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin: 0 0 2.5rem;
  padding: 0;
  text-align: left;
}
.steps li {
  counter-increment: step;
  padding: 1.5rem;
  background: var(--bg-soft);
  border-radius: 16px;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
}
.steps p { color: var(--muted); }

.about { text-align: center; max-width: 720px; }
.about p { color: var(--muted); }

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 1.5rem 16px 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--brand); }

@media (max-width: 520px) {
  .site-header { flex-wrap: wrap; }
  .lang { order: 3; width: 100%; justify-content: center; }
}
