:root {
  --navy: #161e54; --blue: #0055a4; --red: #ef4135; --brand: #2954d9;
  --bg: #ffffff; --soft: #f4f5f9; --text: #1b1f33; --muted: #5d6275; --line: #e3e5ee;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0f1226; --soft: #181c38; --text: #eef0fa; --muted: #a3a8c3; --line: #2a2f52; --brand: #7d9bff; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--brand); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header img { width: 40px; height: 40px; border-radius: 9px; }
header .name { font-family: Georgia, "Times New Roman", serif; font-style: italic; font-size: 26px; font-weight: 700; color: var(--text); text-decoration: none; }
header nav { margin-left: auto; display: flex; gap: 16px; font-size: 15px; flex-wrap: wrap; }
.flag { display: block; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue) 0 33.3%, #d9dbe3 33.3% 66.6%, var(--red) 66.6% 100%); }
main { padding: 32px 0 48px; }
h1 { font-size: 34px; line-height: 1.2; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 36px 0 8px; }
h3 { font-size: 18px; margin: 24px 0 4px; }
.lead { font-size: 19px; color: var(--muted); margin: 0 0 24px; }
.hero { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.hero img { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.hero > div { flex: 1 1 280px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; padding: 12px 20px;
  border-radius: 12px; font-weight: 600; margin: 4px 8px 4px 0; }
.btn.ghost { background: var(--soft); color: var(--brand); }
.card { background: var(--soft); border-radius: 16px; padding: 18px 20px; margin: 16px 0; }
.lang { font-size: 14px; color: var(--muted); }
ul { padding-left: 22px; }
li { margin: 4px 0; }
.promo { display: flex; gap: 14px; align-items: center; }
.promo img { width: 56px; height: 56px; border-radius: 13px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { padding-top: 18px; padding-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 520px) { h1 { font-size: 28px; } header nav { gap: 12px; } }
