:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #172033;
  --muted: #5d687a;
  --line: #dce2ec;
  --brand: #e6b341;
  --brand-dark: #9d6b11;
  --accent: #1b7b86;
  --accent-dark: #10525a;
  --radius: 8px;
  --shadow: 0 14px 36px rgba(23, 32, 51, 0.12);
  --wrap: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--brand-dark);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
}

.logo img {
  width: 180px;
  height: 44px;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
}

.logo span {
  display: none;
}

.site-nav {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.site-nav a,
.footer-nav a {
  color: var(--ink);
  text-decoration: none;
}

.site-nav a {
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #eef4f5;
  color: var(--accent-dark);
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.button,
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
}

.button.secondary {
  color: var(--accent-dark);
  background: #edf7f8;
  border-color: #b8dce0;
}

.button.primary,
.cta {
  color: #14110a;
  background: linear-gradient(180deg, #ffd76e, var(--brand));
  border-color: #c79219;
  box-shadow: 0 8px 18px rgba(157, 107, 17, 0.22);
}

.nav-toggle {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  align-items: center;
  justify-content: center;
  background: #fff;
  cursor: pointer;
}

.burger span,
.burger::before,
.burger::after {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 999px;
  display: block;
}

.burger {
  flex-direction: column;
  gap: 5px;
}

.breadcrumbs {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 14px 20px 0;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  color: #9aa3b1;
}

.hero,
.content,
.author-box {
  max-width: var(--wrap);
  margin-left: auto;
  margin-right: auto;
}

.hero {
  position: relative;
  padding: 18px 20px 0;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #101926;
}

.hero-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: clamp(18px, 5vw, 58px);
  transform: translateY(-50%);
  width: min(470px, 46%);
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.5);
}

.hero-content p {
  margin: 0 0 14px;
  color: #f4f7fb;
  font-weight: 700;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 8px;
  color: #ffde7a;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.content {
  padding: 24px 20px 42px;
}

article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 42px);
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.06);
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin: 0 0 14px;
}

h1 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 980px;
}

h2 {
  margin-top: 34px;
  font-size: clamp(23px, 2.2vw, 31px);
}

p,
ul,
ol,
dl,
table,
details {
  margin-top: 0;
  margin-bottom: 18px;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  overflow: hidden;
}

.toc summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--ink);
}

.toc ol,
.toc ul {
  margin: 0;
  padding: 0 18px 18px 38px;
}

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: var(--radius);
  font-size: 15px;
  table-layout: fixed;
}

caption {
  text-align: left;
  font-weight: 900;
  margin-bottom: 8px;
}

th,
td {
  padding: 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: normal;
}

th {
  background: #eef4f5;
}

details:not(.toc) {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: #fff;
}

details:not(.toc) summary {
  cursor: pointer;
  font-weight: 800;
}

.author-box {
  padding: 0 20px 38px;
}

.related-links {
  margin-top: 34px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.related-links h2 {
  margin-top: 0;
  font-size: 22px;
}

.related-links ul {
  margin-bottom: 0;
}

.author-box > aside {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #172033;
  color: #dfe7f3;
}

.footer-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 30px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: #f5f7fb;
}

.footer-note {
  margin: 0;
  color: #b7c2d2;
  font-size: 14px;
}

@media (max-width: 820px) {
  .header-inner {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }

  .burger {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    order: 5;
    width: 100%;
    display: none;
    margin-left: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .site-nav a {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }

  .nav-toggle:checked ~ .site-nav {
    display: block;
  }

  .header-actions {
    margin-left: 0;
    gap: 6px;
  }

  .button {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .breadcrumbs {
    padding-top: 10px;
  }

  .hero {
    padding-top: 12px;
  }

  .hero-frame {
    box-shadow: 0 8px 24px rgba(23, 32, 51, 0.12);
  }

  .hero-content {
    position: static;
    transform: none;
    width: auto;
    margin-top: 12px;
    padding: 16px;
    color: var(--ink);
    text-shadow: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .hero-content p {
    color: var(--muted);
  }

  .hero-kicker {
    color: var(--brand-dark);
  }

  article {
    padding: 18px;
  }

  table {
    font-size: 13px;
  }

  th,
  td {
    padding: 8px 6px;
  }
}

@media (max-width: 430px) {
  .header-inner {
    gap: 6px;
  }

  .logo img {
    width: 96px;
    height: 38px;
  }


  .burger {
    width: 38px;
    height: 38px;
  }

  .button {
    padding: 7px 8px;
    font-size: 12px;
  }
}
