/* AviaMagister site: one stylesheet for every page. Dark cockpit palette from the logo. */
:root {
  --bg: #00112b;
  --bg-2: #021a3d;
  --panel: #06224b;
  --line: #1c3560;
  --fg: #e6f1ff;
  --muted: #9fb3c8;
  --cyan: #22d3ee;
  --gold: #e5b94e;
  --green: #4ade80;
  --radius: 14px;
  --max: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--cyan); }
a:hover { color: #67e8f9; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }

/* top bar */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 17, 43, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 56px; flex-wrap: wrap; }
.brand { font-weight: 700; letter-spacing: .02em; color: var(--fg); text-decoration: none; font-size: 1.05rem; }
.brand span { color: var(--gold); }
nav.links { display: flex; gap: 4px 16px; flex-wrap: wrap; font-size: .93rem; margin-left: auto; }
nav.links a { color: var(--muted); text-decoration: none; padding: 4px 0; }
nav.links a:hover { color: var(--fg); }
@media (max-width: 720px) { nav.links { display: none; } }

/* hero */
.hero { padding: 32px 0 8px; }
.hero img.logo { display: block; width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.5rem); line-height: 1.2; margin: 28px 0 12px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero p.lead { font-size: 1.12rem; color: var(--muted); max-width: 760px; margin: 0 0 20px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--cyan); color: var(--cyan); background: transparent;
}
.btn.primary { background: var(--gold); border-color: var(--gold); color: #1b1300; }
.btn[aria-disabled="true"] { opacity: .85; cursor: default; }
.btn small { font-weight: 500; opacity: .85; }
.note { color: var(--muted); font-size: .92rem; }

/* sections */
section { padding: 48px 0 8px; scroll-margin-top: 64px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 0 0 8px; color: var(--gold); }
h3 { font-size: 1.08rem; margin: 0 0 6px; color: var(--fg); }
p.sub { color: var(--muted); margin: 0 0 24px; max-width: 760px; }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 18px 14px;
}
.card p { margin: 0 0 6px; color: var(--muted); }
.card .icon { font-size: 1.5rem; line-height: 1; margin-bottom: 10px; display: block; }

/* trailer */
.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at center, #0b3a73 0%, var(--bg-2) 60%, var(--bg) 100%);
  display: grid; place-items: center; text-align: center; padding: 16px;
}
.video .play {
  width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--cyan);
  display: grid; place-items: center; margin: 0 auto 12px; color: var(--cyan); font-size: 1.6rem;
}

/* course */
details.module {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 18px; margin-bottom: 10px;
}
details.module summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
details.module summary::-webkit-details-marker { display: none; }
details.module summary::before { content: "▸"; color: var(--cyan); }
details.module[open] summary::before { content: "▾"; }
details.module summary .count { color: var(--muted); font-weight: 400; font-size: .92rem; }
details.module ol { margin: 10px 0 4px; padding-left: 22px; color: var(--muted); columns: 2 260px; column-gap: 32px; }
details.module li { break-inside: avoid; }
.tag { display: inline-block; font-size: .78rem; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); font-weight: 500; }
.tag.free { border-color: var(--green); color: var(--green); }

/* steps */
ol.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.steps > li {
  counter-increment: s; position: relative; padding: 14px 16px 12px 60px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
}
ol.steps > li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px;
  border-radius: 50%; background: var(--cyan); color: var(--bg); font-weight: 700;
  display: grid; place-items: center;
}
ol.steps p { margin: 4px 0 0; color: var(--muted); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--gold); font-weight: 600; background: var(--bg-2); }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }
td:first-child { color: var(--fg); }

/* pricing */
.price-card {
  max-width: 520px; background: var(--panel); border: 1px solid var(--gold);
  border-radius: var(--radius); padding: 24px;
}
.price { font-size: 2.4rem; font-weight: 700; color: var(--fg); line-height: 1.1; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 400; }
ul.ticks { list-style: none; padding: 0; margin: 16px 0 20px; }
ul.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* faq */
details.faq { border-bottom: 1px solid var(--line); padding: 12px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
details.faq p { color: var(--muted); margin: 8px 0 0; }

/* legal pages */
article.legal { max-width: 800px; margin: 0 auto; padding: 32px 16px 24px; }
article.legal h1 { font-size: 1.8rem; margin: 0 0 4px; }
article.legal h2 { font-size: 1.2rem; margin: 28px 0 6px; }
article.legal p, article.legal li { color: #cfdcec; }

footer.site { margin-top: 64px; border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: .9rem; color: var(--muted); }
footer.site .cols { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--fg); }
footer.site p { margin: 6px 0; }
