:root {
  color-scheme: light dark;
  --bg: #f5f7fa; --card: #ffffff; --text: #17212b; --muted: #5d6b7a; --line: #e2e7ee;
  --brand: #1f4e79; --brand-2: #2f6fa8; --accent: #e8a33d;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #11161c; --card: #19212a; --text: #e6ebf0; --muted: #9aa8b6; --line: #27313c; --brand: #3f7fbf; --brand-2: #5b98d4; }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Языки: показываем только выбранный */
html[data-lang="en"] [lang="ru"], html[data-lang="ru"] [lang="en"] { display: none !important; }

header { background: var(--card); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 18px; }
.logo img { width: 32px; height: 32px; }
nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
nav a { color: var(--muted); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; padding: 4px 10px; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
html[data-lang="en"] .lang [data-set="en"], html[data-lang="ru"] .lang [data-set="ru"] { background: var(--brand); color: #fff; }

.hero { background: linear-gradient(135deg, var(--brand) 0%, #16354f 100%); color: #fff; padding: 72px 0 80px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.2; margin: 0 0 16px; max-width: 720px; }
.hero p { font-size: 18px; opacity: .88; max-width: 620px; margin: 0 0 28px; }
.btn { display: inline-block; background: var(--accent); color: #1b1b1b; font-weight: 600; padding: 12px 22px; border-radius: 10px; }
.btn:hover { text-decoration: none; filter: brightness(1.05); }

section { padding: 64px 0; }
h2 { font-size: 28px; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 14%, transparent); display: grid; place-items: center; margin-bottom: 14px; }
.ico svg { width: 22px; height: 22px; stroke: var(--brand-2); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.routes { display: flex; flex-wrap: wrap; gap: 10px; }
.routes span { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.contact dt { color: var(--muted); font-size: 14px; }
.contact dd { margin: 2px 0 16px; font-size: 17px; }

footer { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.center { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.center h1 { font-size: 64px; margin: 0; color: var(--brand-2); }

@media (max-width: 640px) {
  nav a.hide-m { display: none; }
  .hero { padding: 48px 0 56px; }
  section { padding: 44px 0; }
}
