:root {
  color-scheme: dark;
  --bg: #080706;
  --panel: #11100f;
  --panel-soft: #171514;
  --text: #fff7ef;
  --muted: #c9b8aa;
  --faint: #8f8279;
  --accent: #c4161c;
  --accent-strong: #ec1e26;
  --line: rgba(255, 255, 255, 0.14);
  --shadow: rgba(0, 0, 0, 0.5);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 7, 6, 0.88);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-size: 13px;
  font-weight: 650;
}

.nav > a,
.nav summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  color: rgba(255, 247, 239, 0.88);
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.nav summary::-webkit-details-marker {
  display: none;
}

.nav > a:hover,
.nav details[open] summary,
.nav summary:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav details {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 238px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(17, 16, 15, 0.98);
  box-shadow: 0 24px 70px var(--shadow);
}

.nav-menu a,
.nav-menu span {
  display: block;
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255, 247, 239, 0.86);
}

.nav-menu a:hover {
  background: rgba(196, 22, 28, 0.18);
  color: #ffffff;
}

.nav-menu span {
  color: var(--faint);
}

.nav-cta {
  margin-left: 8px;
  border: 1px solid rgba(236, 30, 38, 0.7);
  background: var(--accent);
  color: #ffffff !important;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent);
}

.page-hero {
  padding: clamp(70px, 9vw, 118px) 0 clamp(34px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.44)),
    url("/assets/prefooter-bg.jpg") center / cover no-repeat;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #ffb7bb;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-hero h1 {
  max-width: 860px;
  margin: 0 0 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 8vw, 94px);
  line-height: 0.9;
  letter-spacing: 0;
}

.page-hero p {
  max-width: 640px;
  margin: 0 0 12px;
  color: rgba(255, 247, 239, 0.82);
  font-size: 18px;
}

.page-hero span {
  color: var(--muted);
  font-size: 13px;
}

.page-body {
  padding: clamp(44px, 8vw, 90px) 0;
}

.content-card {
  display: grid;
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.content-card h2 {
  margin: 22px 0 0;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li,
.content-card blockquote {
  color: var(--muted);
  font-size: 16px;
}

.content-card p {
  margin: 0;
}

.content-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 22px;
}

.content-card blockquote {
  margin: 0;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.05);
}

.content-card figure {
  margin: 8px 0;
}

.content-card figure img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}

.content-card figcaption:empty {
  display: none;
}

.content-card figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-size: 13px;
}

.prefooter {
  position: relative;
  overflow: hidden;
  padding: 86px 0;
  background: url("/assets/prefooter-bg.jpg") center / cover no-repeat;
}

.compact-prefooter {
  padding: 64px 0;
}

.prefooter::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.84), rgba(0, 0, 0, 0.44));
}

.prefooter .container {
  position: relative;
}

.prefooter h2 {
  max-width: 720px;
  margin: 0 0 26px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.95;
}

.site-footer {
  padding: 58px 0 30px;
  background: #070605;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-brand {
  max-width: 300px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  border-radius: 50%;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-col a {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 14px;
}

.footer-col a:hover {
  color: #ffffff;
}

.footer-bottom {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 13px;
}

@media (max-width: 1060px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-menu {
    left: 0;
    right: auto;
  }
}

@media (max-width: 780px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .content-card {
    border-radius: 14px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container {
    width: min(100% - 24px, var(--max));
  }

  .brand span {
    display: none;
  }

  .nav > a,
  .nav summary {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12px;
  }

  .nav-cta {
    margin-left: 0;
  }

  .button {
    width: 100%;
  }

  .content-card {
    padding: 22px 18px;
  }
}
