/* Shared styles: header, footer and content pages */
:root {
  --teal: #1fc7a0;
  --teal-dark: #17a483;
  --ink: #0f171e;
  --panel: #18222c;
  --text: #f2f5f7;
  --muted: #b9c5ce;
  --line: rgba(255, 255, 255, .1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; }
body {
  font-family: "Questrial", "Century Gothic", "Segoe UI", sans-serif;
  color: var(--text);
  background: #7f95a8;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--teal); }
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #08241d; padding: 8px 14px; border-radius: 4px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 20, 27, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1600px; margin: 0 auto; padding: 0 16px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 9px; border: 1.5px solid var(--teal);
  display: flex; align-items: center; justify-content: center; color: var(--teal); flex: none;
}
.brand-mark svg { width: 24px; height: 24px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 19px; letter-spacing: .2px; }
.brand-name b { color: var(--teal); font-weight: normal; }
.brand-tag { font-size: 12px; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: 15px;
  padding: 8px 12px; border-radius: 6px; transition: color .15s, background .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav a[aria-current="page"] { color: var(--teal); }
.nav .nav-cta { background: var(--teal); color: #08241d; margin-left: 6px; }
.nav .nav-cta:hover { background: #3ad8b3; color: #08241d; }

.menu-btn {
  display: none; width: 42px; height: 42px; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--text); cursor: pointer; align-items: center; justify-content: center;
}
.menu-btn svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .menu-btn { display: flex; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 64px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(13, 20, 27, .98); border-bottom: 1px solid var(--line); padding: 8px 16px 14px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav-cta { margin: 10px 0 0; text-align: center; border-radius: 6px; border: 0; }
}
@media (max-width: 420px) { .brand-tag { display: none; } }

/* ---------- Breadcrumbs ---------- */
.crumbs { max-width: 960px; margin: 22px auto 0; padding: 0 16px; font-size: 14px; color: #eef2f5; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .8; }
.crumbs a { color: #fff; }

/* ---------- Content pages ---------- */
main { flex: 1; }
.page {
  max-width: 960px; margin: 14px auto 40px; padding: 30px 32px;
  background: rgba(18, 26, 34, .93); border-radius: 10px; line-height: 1.7; font-size: 16px;
}
.page h1 { font-size: 32px; margin: 0 0 6px; font-weight: normal; }
.page .lead { color: var(--muted); margin-top: 0; }
.page h2 { font-size: 21px; margin: 30px 0 8px; font-weight: normal; color: var(--teal); }
.page h3 { font-size: 17px; margin: 20px 0 6px; font-weight: normal; }
.page p, .page li { color: #d5dde3; }
.page ul, .page ol { padding-left: 22px; }
.page .updated { font-size: 14px; color: var(--muted); }
.btn {
  display: inline-block; background: var(--teal); color: #08241d; text-decoration: none;
  padding: 11px 20px; border-radius: 6px; border: 0; font: inherit; cursor: pointer;
}
.btn:hover { background: #3ad8b3; }

.form { display: grid; gap: 14px; max-width: 560px; margin-top: 16px; }
.form label { display: grid; gap: 6px; font-size: 15px; color: var(--muted); }
.form input, .form textarea, .form select {
  font: inherit; color: var(--text); background: #0f171e; border: 1px solid #3a4956;
  border-radius: 6px; padding: 10px 12px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--teal); border-color: transparent; }
.form textarea { min-height: 140px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { background: rgba(10, 15, 20, .96); border-top: 1px solid var(--line); margin-top: auto; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 40px 16px 26px;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
.footer-about p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 14px 0 0; max-width: 360px; }
.footer-col h2 { font-size: 15px; margin: 4px 0 12px; font-weight: normal; color: var(--text); letter-spacing: .4px; text-transform: uppercase; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--muted); text-decoration: none; font-size: 14px; }
.footer-col a:hover { color: var(--teal); }
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid #3a4956; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.social a:hover { color: var(--teal); border-color: var(--teal); }
.social svg { width: 16px; height: 16px; fill: currentColor; }
.footer-bottom {
  border-top: 1px solid var(--line); max-width: 1200px; margin: 0 auto; padding: 16px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: #8796a3;
}
.footer-bottom a { color: #8796a3; }
@media (max-width: 860px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .page { margin: 12px 16px 30px; padding: 22px 18px; }
  .page h1 { font-size: 26px; }
}
