:root {
  --ink: #12202c;
  --muted: #4b5d6b;
  --line: #d7e0e8;
  --paper: #f6f8fa;
  --card: #fff;
  --blue: #0175c2;
  --blue-dark: #015a99;
  --orange: #e07a2f;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
a { color: var(--blue); }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: #0f1b24;
  color: #fff;
  border-bottom: 3px solid var(--orange);
}
.site-header .wrap {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.nav a { color: #d7e8f5; text-decoration: none; font-weight: 600; font-size: 14px; }
.nav a:hover { color: #fff; }
.lang-select {
  background: #1c2d3a;
  color: #fff;
  border: 1px solid #3a5163;
  border-radius: 8px;
  padding: 7px 10px;
}
.hero { padding: 48px 0 28px; }
.hero h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.03em; }
.hero .sub { font-size: 19px; color: var(--muted); max-width: 42rem; margin: 0 0 22px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
}
.btn:hover { background: var(--blue-dark); }
.btn.secondary { background: #fff; color: var(--blue); border: 1px solid #b9d4e8; }
.btn.secondary:hover { background: #eef6fb; }
.section { padding: 12px 0 36px; }
.section h2 { margin: 0 0 14px; font-size: 24px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 100%;
}
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); flex: 1; }
.steps { counter-reset: step; display: grid; gap: 10px; }
.steps li {
  list-style: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px 14px 52px;
  position: relative;
}
.steps { padding: 0; margin: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list a { font-weight: 700; font-size: 18px; text-decoration: none; }
.post-list a:hover { text-decoration: underline; }
.post-list p { margin: 6px 0 0; color: var(--muted); }
.article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.article h1 { margin: 8px 0 8px; font-size: 32px; line-height: 1.2; }
.crumb { color: var(--muted); font-size: 13px; }
.article h2 { color: var(--blue); font-size: 21px; margin-top: 28px; }
.article table { width: 100%; border-collapse: collapse; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.article th { background: var(--paper); }
.example { background: var(--paper); border-radius: 8px; padding: 12px 16px; margin: 10px 0; }
.wrong { color: #b3261e; }
.right { color: #146c2e; }
blockquote { border-inline-start: 3px solid var(--blue); margin: 20px 0; padding: 4px 18px; color: #444; }
.site-footer {
  background: #0f1b24;
  color: #c5d4df;
  padding: 28px 0;
  margin-top: 24px;
  font-size: 14px;
}
.site-footer a { color: #9ec9ea; margin-inline-end: 12px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
[dir="rtl"] .steps li { padding: 14px 52px 14px 16px; }
[dir="rtl"] .steps li::before { left: auto; right: 14px; }
@media (max-width: 640px) {
  .hero { padding-top: 28px; }
  .article { padding: 18px; }
}
