:root {
  --bg: #f6f5ef;
  --surface: #ffffff;
  --ink: #191b1f;
  --muted: #5d6470;
  --line: #ded8ca;
  --brand: #155c55;
  --brand-dark: #0c3e3a;
  --chrome: #0b332f;
  --chrome-line: rgba(255, 255, 255, 0.16);
  --chrome-text: #edf8f4;
  --chrome-muted: #b9d6cf;
  --accent: #f1b331;
  --accent-dark: #c98500;
  --shadow: 0 18px 44px rgba(20, 24, 31, 0.1);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 51, 47, 0.97);
  border-bottom: 1px solid var(--chrome-line);
  box-shadow: 0 12px 30px rgba(7, 21, 24, 0.18);
  backdrop-filter: blur(16px);
}

.header-inner,
.breadcrumbs,
.hero,
main,
.footer-inner {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 76px;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo img {
  width: 198px;
  max-height: 68px;
  object-fit: contain;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 18px;
  font-size: 15px;
  font-weight: 700;
}

.nav a,
.footer-links a {
  color: var(--chrome-muted);
  text-decoration: none;
}

.nav a:hover,
.footer-links a:hover {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #16120a;
  box-shadow: 0 10px 22px rgba(201, 133, 0, 0.22);
}

.btn-primary:hover {
  background: #ffca4b;
}

.btn-secondary {
  background: #ffffff;
  color: var(--brand-dark);
}

.site-header .btn-secondary:hover {
  background: #e8f2ef;
  color: var(--brand-dark);
}

.btn-secondary:hover {
  background: var(--brand-dark);
  color: #ffffff;
}

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

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--chrome-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: #ffffff;
  display: block;
}

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

.breadcrumbs {
  padding: 14px 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
}

.hero {
  position: relative;
  margin-top: 10px;
}

.hero-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #071f22;
  box-shadow: var(--shadow);
}

.hero-media picture,
.hero-media img {
  width: 100%;
  display: block;
}

.hero-copy {
  position: absolute;
  left: clamp(22px, 5vw, 68px);
  top: 50%;
  width: min(44%, 500px);
  transform: translateY(-50%);
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.36);
}

.eyebrow {
  margin: 0 0 8px;
  color: #ffe093;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.18;
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(32px, 4vw, 58px);
}

.hero p {
  max-width: 42ch;
  margin: 14px 0 22px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 18px;
}

main {
  padding: 34px 0 58px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 28px;
  align-items: start;
}

.article,
.side-panel,
.site-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.article {
  padding: clamp(22px, 4vw, 42px);
  min-width: 0;
}

.article h2 {
  margin-top: 34px;
  font-size: clamp(26px, 3vw, 36px);
}

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

.article h3 {
  margin-top: 24px;
  font-size: 22px;
}

.article p {
  margin: 14px 0 0;
  color: #2e333a;
}

.article ul,
.article ol {
  margin: 14px 0 0;
  padding-left: 22px;
}

.article li + li {
  margin-top: 8px;
}

.toc {
  margin: 0 0 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

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

.toc nav {
  display: grid;
  gap: 8px;
  padding: 0 18px 18px;
}

.toc a {
  color: var(--muted);
  text-decoration: none;
}

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

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  min-height: 98px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.side-panel {
  position: sticky;
  top: 98px;
  padding: 22px;
  min-width: 0;
}

.side-panel h2 {
  font-size: 24px;
}

.side-panel p {
  color: var(--muted);
}

.info-table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 15px;
}

.info-table th,
.info-table td {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.info-table th {
  width: 42%;
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  margin-top: 18px;
  background: var(--chrome);
  color: var(--chrome-text);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
  border-radius: 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  padding: 34px 0;
}

.footer-brand img {
  width: 180px;
  max-height: 68px;
  object-fit: contain;
}

.footer-brand p {
  max-width: 650px;
  margin: 12px 0 0;
  color: var(--chrome-muted);
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 18px;
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .header-inner {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 68px;
  }

  .logo img {
    width: 150px;
    max-height: 56px;
  }

  .menu-button {
    display: inline-flex;
    order: 4;
  }

  .header-actions {
    order: 3;
    margin-left: 0;
    gap: 8px;
  }

  .header-actions .btn {
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    z-index: 30;
    width: 100%;
    padding: 10px 18px 18px;
    border-top: 1px solid var(--chrome-line);
    border-bottom: 1px solid var(--chrome-line);
    background: rgba(11, 51, 47, 0.98);
    box-shadow: 0 18px 32px rgba(7, 21, 24, 0.24);
  }

  .menu-toggle:checked ~ .nav {
    display: grid;
    justify-content: stretch;
    gap: 0;
  }

  .nav a {
    padding: 11px 0;
  }

  .hero-copy {
    position: static;
    width: auto;
    transform: none;
    margin-top: 14px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--ink);
    text-shadow: none;
  }

  .hero h1 {
    color: var(--ink);
    font-size: clamp(30px, 8vw, 42px);
  }

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

  .eyebrow {
    color: var(--brand);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .side-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .header-inner,
  .breadcrumbs,
  .hero,
  main,
  .footer-inner {
    width: min(var(--max), calc(100% - 20px));
  }

  .header-inner {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) 36px;
    gap: 7px;
  }

  .logo img {
    width: 82px;
  }

  .header-actions {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    min-width: 0;
    gap: 5px;
  }

  .header-actions .btn {
    min-height: 34px;
    padding: 7px 8px;
    font-size: 11px;
  }

  .menu-button {
    grid-column: 3;
    grid-row: 1;
    width: 36px;
    height: 36px;
  }

  .hero {
    margin-top: 6px;
  }

  .hero-copy {
    padding: 18px;
  }

  .hero p {
    font-size: 16px;
  }

  main {
    padding-top: 24px;
  }

  .article {
    padding: 20px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 390px) {
  .header-actions .btn {
    padding-inline: 6px;
    font-size: 10px;
  }

  .header-inner {
    grid-template-columns: 72px minmax(0, 1fr) 34px;
    gap: 5px;
  }

  .logo img {
    width: 72px;
  }

  .menu-button {
    width: 34px;
    height: 34px;
  }
}
