:root {
  --page-background: #02010c;
  --surface-background: #100e1d;
  --surface-deep: #080716;
  --primary-color: #d76427;
  --primary-hover: #ee7a34;
  --text-color: #f4f1f7;
  --muted-color: #b8b2c4;
  --border-color: #2b273a;
  --container-width: 1180px;
  --content-width: 1180px;
  --radius: 8px;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page-background);
  color: var(--text-color);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(calc(100% - 40px), var(--container-width));
  margin-inline: auto;
}

body > header {
  position: relative;
  z-index: 10;
  min-height: 74px;
  background: var(--surface-background);
  border-bottom: 1px solid rgba(255, 255, 255, 0.025);
}

body > header nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

header .logo {
  display: inline-flex;
  align-items: center;
}

header .logo img {
  width: 178px;
}

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

header .actions a,
.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid #f08a4a;
  border-radius: 3px;
  background: linear-gradient(180deg, #eb7c39 0%, #c8541c 100%);
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 4px 10px rgba(0, 0, 0, .2);
  transition: transform .18s ease, filter .18s ease;
}

header .actions a:hover,
.primary-link:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

main {
  overflow: clip;
}

main > .hero {
  position: relative;
  width: min(calc(100% - 40px), var(--container-width));
  margin: 18px auto 36px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #281006;
  box-shadow: var(--shadow);
}

.hero figure {
  margin: 0;
}

.hero picture,
.hero img {
  width: 100%;
}

.hero img {
  aspect-ratio: 1600 / 1055;
  object-fit: cover;
}

.hero-link {
  position: absolute;
  left: 3.15%;
  bottom: 6.7%;
  width: 11.2%;
  height: 8.6%;
  min-width: 74px;
  min-height: 36px;
  border-radius: 4px;
}

article {
  width: 100%;
}

article > section {
  padding: 31px max(20px, calc((100vw - var(--content-width)) / 2));
}

article > section:nth-of-type(odd) {
  background: var(--page-background);
}

article > section:nth-of-type(even) {
  background: var(--surface-background);
}

article > .intro {
  padding-top: 0;
  padding-bottom: 32px;
  background: var(--page-background);
}

article h1,
article h2,
article h3 {
  max-width: var(--content-width);
  margin-inline: auto;
  color: #fff;
  line-height: 1.25;
  text-wrap: balance;
}

article h1 {
  margin-top: 0;
  margin-bottom: 19px;
  font-size: clamp(26px, 3vw, 36px);
}

article h2 {
  margin-top: 0;
  margin-bottom: 18px;
  font-size: clamp(23px, 2.5vw, 31px);
}

article h2::before {
  content: "◆";
  display: inline-block;
  margin-right: 10px;
  color: #c6678e;
  font-size: .58em;
  vertical-align: .16em;
}

article h3 {
  margin-top: 30px;
  margin-bottom: 13px;
  font-size: clamp(19px, 2vw, 24px);
}

article p,
article ul,
article ol,
article table,
article > section > .primary-link,
article > section > nav {
  width: min(100%, var(--content-width));
  margin-inline: auto;
}

article p {
  margin-top: 0;
  margin-bottom: 15px;
  color: var(--text-color);
}

article ul,
article ol {
  margin-top: 7px;
  margin-bottom: 18px;
  padding-left: 25px;
}

article li {
  margin-bottom: 5px;
}

article li::marker {
  color: #e07039;
}

.primary-link {
  width: fit-content;
  margin-top: 4px;
  margin-bottom: 23px;
}

.toc {
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.toc-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 14px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.toc-toggle span:last-child {
  font-size: 18px;
  transition: transform .2s ease;
}

.toc-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(180deg);
}

.toc ol {
  padding: 2px 32px 16px;
  margin: 0;
}

.toc ol[hidden] {
  display: none;
}

.toc li {
  margin: 6px 0;
  color: var(--muted-color);
}

.toc li a:hover {
  color: #fff;
}

table {
  display: table;
  border-collapse: collapse;
  margin-top: 20px;
  margin-bottom: 20px;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #ece8f1;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
  vertical-align: top;
}

th {
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, .025);
}

tr:last-child td {
  border-bottom: 0;
}

footer {
  padding: 28px 0 20px;
  background: var(--surface-background);
  border-top: 1px solid #242033;
}

footer .payments {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 17px;
  min-height: 56px;
}

footer .payments img {
  width: auto;
  max-width: 82px;
  max-height: 34px;
  object-fit: contain;
}

footer .footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  padding-top: 19px;
  margin-top: 17px;
  border-top: 1px solid #242033;
}

footer .footer-bottom img {
  width: 166px;
}

footer .footer-bottom p {
  grid-column: 2;
  margin: 0;
  color: #a8a3b0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .container {
    width: min(calc(100% - 28px), var(--container-width));
  }

  body > header,
  body > header nav {
    min-height: 58px;
  }

  header .logo img {
    width: 132px;
  }

  header .actions {
    gap: 7px;
  }

  header .actions a {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 11px;
  }

  main > .hero {
    width: min(calc(100% - 28px), var(--container-width));
    margin-top: 12px;
    margin-bottom: 25px;
    border-radius: 4px;
  }

  article > section {
    padding: 25px 18px;
  }

  article > .intro {
    padding-top: 0;
  }

  article h1 {
    font-size: 25px;
  }

  article h2 {
    font-size: 22px;
  }

  article h3 {
    font-size: 19px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }

  footer .payments {
    gap: 11px;
  }

  footer .payments img {
    max-width: 61px;
    max-height: 27px;
  }

  footer .footer-bottom {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  footer .footer-bottom p {
    grid-column: 1;
  }
}

@media (max-width: 430px) {
  header .actions a:first-child {
    display: none;
  }

  main > .hero {
    width: calc(100% - 22px);
  }

  article > section {
    padding-inline: 14px;
  }

  .hero-link {
    min-width: 54px;
    min-height: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
  }
}
