/* Dushanbe Avia — brand colors from the app (lib/core/theme/app_theme.dart). */
:root {
  --navy: #0a1a3f;
  --navy-deep: #050d22;
  --blue: #0a66ff;
  --blue-light: #4d8fff;
  --blue-tint: #e8f0ff;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --text: #0a1a3f;
  --muted: #5b6680;
  --line: #e2e7f0;
  --radius: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 6px; }

/* Language blocks: only the active language is shown. */
html[data-lang="tg"] [data-l]:not([data-l="tg"]),
html[data-lang="ru"] [data-l]:not([data-l="ru"]),
html[data-lang="en"] [data-l]:not([data-l="en"]) { display: none !important; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand img { height: 36px; width: auto; }
.langs { display: flex; gap: 4px; background: var(--bg); padding: 4px; border-radius: 12px; }
.langs button {
  font: 600 13px/1 var(--font); color: var(--muted);
  border: 0; background: transparent; padding: 8px 10px; border-radius: 9px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(10, 26, 63, .12); }

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #0d2c6b 55%, var(--blue) 100%);
  color: #fff;
  padding: 72px 0 96px;
  border-radius: 0 0 40px 40px;
}
.hero .logo { height: 120px; width: auto; margin-bottom: 28px; }
.hero h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 16px; max-width: 760px; }
.hero p { font-size: clamp(17px, 2.2vw, 20px); color: rgba(255, 255, 255, .82); margin: 0 0 32px; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge-play {
  display: inline-flex; align-items: center; gap: 12px;
  background: #000; color: #fff; border-radius: 14px; padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .25); cursor: default;
}
.badge-play svg { width: 26px; height: 26px; flex: none; }
.badge-play small { display: block; font-size: 11px; opacity: .8; text-transform: uppercase; letter-spacing: .04em; }
.badge-play strong { display: block; font-size: 18px; line-height: 1.1; }

/* Sections */
.section { padding: 64px 0; }
.section h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -0.01em; margin: 0 0 8px; }
.section .lead { color: var(--muted); margin: 0 0 32px; max-width: 680px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card .ic {
  width: 48px; height: 48px; border-radius: 14px; background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card.soon { opacity: .9; }
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue);
  background: var(--blue-tint); border-radius: 8px; padding: 3px 8px; margin-left: 6px; vertical-align: 2px;
}

.contact {
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.contact h2 { margin: 0 0 4px; }
.contact p { margin: 0; color: rgba(255, 255, 255, .78); }
.contact a.mail {
  background: var(--blue); color: #fff; font-weight: 700; padding: 14px 22px; border-radius: 14px;
}
.contact a.mail:hover { text-decoration: none; background: var(--blue-light); }

/* Legal pages */
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 48px); margin: 32px 0 64px; }
.doc h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -0.01em; margin: 0 0 4px; }
.doc .date { color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: #26324f; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 560px) {
  .hero { padding: 48px 0 72px; border-radius: 0 0 28px 28px; }
  .hero .logo { height: 88px; }
  .brand img { height: 30px; }
  .section { padding: 48px 0; }
  .contact { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.section-tight { padding-top: 0; }
.doc.center { text-align: center; }
.notfound-logo { margin: 0 auto 24px; height: 96px; width: auto; }
