:root {
  --bg: #0f1013;
  --surface: #181a1f;
  --surface-2: #20232a;
  --line: #2c3038;
  --text: #ece8e1;
  --muted: #a9a399;
  --accent: #c8412b;
  --accent-hover: #e0553d;
  --snow: #9fbfd3;
  --paper: #f5f3ef;
  --paper-text: #22252b;
  --radius: 10px;
  --max: 1080px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--snow); }
a:hover { color: #c9e0ee; }

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

/* header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(15, 16, 19, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.brand {
  color: var(--text); text-decoration: none; font-weight: 700;
  letter-spacing: .04em; font-size: 15px; text-transform: uppercase;
}
.brand span { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; }
.nav a {
  color: var(--text); text-decoration: none; padding: 8px 12px;
  border-radius: 8px; font-size: 15px;
}
.nav a:hover { background: var(--surface-2); color: #fff; }
.nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* hero */
.hero {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(15,16,19,.78) 0%, rgba(15,16,19,.93) 70%, var(--bg) 100%),
    url("img/shot-dialog.jpg") center / cover no-repeat;
}
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero-logo { width: min(520px, 90%); margin: 0 0 20px; filter: drop-shadow(0 6px 18px rgba(0,0,0,.6)); }
.hero p.lead { font-size: 21px; max-width: 640px; margin: 0 0 12px; }
.hero p.sub { color: var(--muted); max-width: 640px; margin: 0 0 28px; }

.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 20px; border-radius: 8px;
  text-decoration: none; font-weight: 600; border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { border-color: #5a606b; color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: #fff; }

/* content */
main { padding: 8px 0 40px; }
section { padding: 36px 0 8px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.25; }
h1 { font-size: 36px; margin: 32px 0 12px; }
h2 { font-size: 27px; margin: 0 0 16px; }
h3 { font-size: 20px; margin: 0 0 8px; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }

.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card p:last-child { margin-bottom: 0; }
a.card { display: block; color: var(--text); text-decoration: none; }
a.card:hover { border-color: #4a505b; background: var(--surface-2); }
a.card h3 { color: #fff; }

.shot { margin: 0; }
.shot img { border-radius: var(--radius); border: 1px solid var(--line); }
.shot figcaption { color: var(--muted); font-size: 15px; margin-top: 8px; }
.gallery { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

ul.list { padding-left: 20px; margin: 0 0 14px; }
ul.list li { margin-bottom: 6px; }

table.facts { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
table.facts th, table.facts td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.facts th { width: 34%; color: var(--muted); font-weight: 500; }
table.facts tr:last-child th, table.facts tr:last-child td { border-bottom: 0; }

/* support block (light, so that official logos stay legible) */
.support { background: var(--paper); color: var(--paper-text); margin-top: 40px; }
.support .wrap { padding-top: 28px; padding-bottom: 28px; }
.support-logos { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; margin-bottom: 16px; }
.support-logos a { display: block; }
.support-logos .fasie { width: 190px; }
.support-logos .putp { width: 150px; }
.support p { margin: 0; font-size: 15px; max-width: 900px; }
.support a { color: #1d4f8f; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer .wrap { padding-top: 18px; padding-bottom: 24px; display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer a { color: var(--muted); }

@media (max-width: 600px) {
  body { font-size: 16px; }
  h1 { font-size: 29px; }
  h2 { font-size: 23px; }
  .hero .wrap { padding-top: 36px; padding-bottom: 36px; }
  .hero p.lead { font-size: 18px; }
  table.facts th, table.facts td { display: block; width: 100%; }
  table.facts th { padding-bottom: 0; border-bottom: 0; }
}
