@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/arimo-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Arimo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/arimo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --p816-asphalt: #16232f;
  --p816-asphalt-soft: #213441;
  --p816-paper: #f6f0e3;
  --p816-paper-deep: #ebe2d0;
  --p816-card: #fffdf7;
  --p816-ink: #1b2833;
  --p816-muted: #5c6a73;
  --p816-line: #cec3b0;
  --p816-line-dark: #3d4f5d;
  --p816-blue: #123a6b;
  --p816-blue-bright: #1f5aa8;
  --p816-amber: #f0a51b;
  --p816-amber-soft: #f7d68a;
  --p816-red: #c64635;
  --p816-green: #2d7a5b;
  --p816-focus: #ffd166;
  --p816-radius: 6px;
  --p816-wrap: 1180px;
  --p816-gap: clamp(18px, 3vw, 32px);
  --p816-font: "Arimo", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --p816-print-shadow: 6px 6px 0 var(--p816-line);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--p816-paper);
  color: var(--p816-ink);
  font-family: var(--p816-font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(to right, rgba(22, 35, 47, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 35, 47, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

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

a {
  color: var(--p816-blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--p816-blue-bright);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--p816-focus);
  outline-offset: 3px;
}

::selection {
  background: var(--p816-amber);
  color: var(--p816-asphalt);
}

.p816-skip {
  position: absolute;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--p816-amber);
  color: var(--p816-asphalt);
  font-weight: 700;
  text-decoration: none;
}

.p816-skip:focus {
  top: 12px;
}

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

.p816-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px max(20px, calc((100% - var(--p816-wrap)) / 2));
  background: var(--p816-asphalt);
  color: #d8e0e5;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p816-topline span {
  white-space: nowrap;
}

.p816-mast {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 2px solid var(--p816-asphalt);
  background: rgba(246, 240, 227, 0.97);
}

.p816-mast__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(var(--p816-wrap), calc(100% - 40px));
  min-height: 78px;
  margin-inline: auto;
}

.p816-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--p816-asphalt);
  text-decoration: none;
  flex: 0 0 auto;
}

.p816-brand img {
  width: 42px;
  height: 42px;
}

.p816-brand__name {
  display: block;
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1;
}

.p816-brand__note {
  display: block;
  margin-top: 4px;
  color: var(--p816-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.p816-menu {
  margin-left: auto;
}

.p816-menu__trigger {
  display: none;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border: 1px solid var(--p816-line);
  border-radius: 3px;
  background: transparent;
  color: var(--p816-asphalt);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p816-menu__bars {
  display: grid;
  gap: 3px;
  width: 16px;
}

.p816-menu__bars i {
  display: block;
  height: 2px;
  background: currentColor;
}

.p816-menu__list {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.p816-menu__list a {
  display: inline-block;
  padding: 7px 0 6px;
  color: var(--p816-asphalt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  text-decoration: none;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
}

.p816-menu__list a:hover,
.p816-menu__list a[aria-current="page"] {
  border-bottom-color: var(--p816-amber);
}

.p816-mast__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.p816-findbtn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid var(--p816-line);
  border-radius: 3px;
  background: var(--p816-card);
  color: var(--p816-asphalt);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.p816-findbtn:hover {
  border-color: var(--p816-asphalt);
}

.p816-findbtn svg {
  width: 16px;
  height: 16px;
}

.p816-main {
  display: block;
}

.p816-trail {
  width: min(var(--p816-wrap), calc(100% - 40px));
  margin-inline: auto;
  padding-top: 20px;
}

.p816-trail ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--p816-muted);
  font-size: 0.78rem;
}

.p816-trail li + li::before {
  content: "›";
  margin-right: 10px;
  color: var(--p816-line);
}

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

.p816-trail a:hover {
  color: var(--p816-blue);
  text-decoration: underline;
}

.p816-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 0.97fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  width: min(var(--p816-wrap), calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(44px, 7vw, 84px) clamp(38px, 5vw, 62px);
}

.p816-hero__copy {
  max-width: 640px;
}

.p816-hero h1 {
  max-width: 13ch;
}

.p816-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.p816-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--p816-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.p816-hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.p816-hero__meta li::before {
  width: 7px;
  height: 7px;
  background: var(--p816-amber);
  content: "";
}

.p816-hero__art {
  position: relative;
  padding: 14px;
  border: 2px solid var(--p816-asphalt);
  border-radius: var(--p816-radius);
  background: var(--p816-card);
  box-shadow: var(--p816-print-shadow);
}

.p816-hero__art img {
  width: 100%;
  height: auto;
  border: 1px solid var(--p816-line);
}

.p816-hero__plate {
  position: absolute;
  right: 26px;
  bottom: -18px;
  padding: 8px 14px;
  border: 2px solid var(--p816-asphalt);
  background: var(--p816-amber);
  color: var(--p816-asphalt);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p816-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--p816-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.p816-kicker::before {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: var(--p816-amber);
  content: "";
}

.p816-h1,
.p816-h2,
.p816-h3 {
  margin: 0;
  color: var(--p816-asphalt);
  font-weight: 700;
  letter-spacing: -0.018em;
}

.p816-h1 {
  max-width: 18ch;
  font-size: clamp(2.05rem, 4.4vw, 3.4rem);
  line-height: 1.04;
}

.p816-h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  line-height: 1.1;
}

.p816-h3 {
  font-size: clamp(1.06rem, 1.7vw, 1.3rem);
  line-height: 1.25;
}

.p816-lead {
  max-width: 64ch;
  margin: 20px 0 0;
  color: var(--p816-muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
  line-height: 1.65;
}

.p816-body-copy {
  max-width: 70ch;
}

.p816-body-copy p {
  margin: 0 0 1em;
}

.p816-body-copy p:last-child {
  margin-bottom: 0;
}

.p816-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 11px 19px;
  border: 2px solid var(--p816-asphalt);
  border-radius: 3px;
  background: var(--p816-amber);
  color: var(--p816-asphalt);
  box-shadow: 3px 3px 0 var(--p816-asphalt);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.p816-btn:hover {
  color: var(--p816-asphalt);
  background: #f6b736;
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--p816-asphalt);
}

.p816-btn--quiet {
  background: var(--p816-card);
  color: var(--p816-asphalt);
  box-shadow: none;
  border-color: var(--p816-line);
}

.p816-btn--quiet:hover {
  background: var(--p816-paper-deep);
  box-shadow: none;
  transform: none;
  border-color: var(--p816-asphalt);
}

.p816-btn--ghost {
  background: transparent;
  box-shadow: none;
  border-color: var(--p816-asphalt);
}

.p816-btn--ghost:hover {
  background: var(--p816-asphalt);
  color: var(--p816-paper);
  box-shadow: none;
  transform: none;
}

.p816-btn--wide {
  width: 100%;
}

.p816-band {
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--p816-line);
}

.p816-band--deep {
  background: var(--p816-paper-deep);
}

.p816-band--ink {
  background: var(--p816-asphalt);
  color: var(--p816-paper);
}

.p816-band--ink .p816-h2,
.p816-band--ink .p816-h3 {
  color: var(--p816-paper);
}

.p816-band--ink .p816-kicker {
  color: var(--p816-amber);
}

.p816-band--ink .p816-lead,
.p816-band--ink > .p816-wrap > .p816-sec-head p,
.p816-band--ink .p816-sec-head .p816-lead {
  color: #d6dee3;
}

.p816-band--ink .p816-card .p816-h3,
.p816-band--ink .p816-card p,
.p816-band--ink .p816-card .p816-card__links a,
.p816-band--ink .p816-tile .p816-h3,
.p816-band--ink .p816-tile p {
  color: var(--p816-ink);
}

.p816-band--ink .p816-card .p816-card__links a {
  color: var(--p816-blue);
}

.p816-sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.p816-sec-head__copy {
  max-width: 720px;
}

.p816-sec-head .p816-lead {
  margin-top: 12px;
}

.p816-sec-head__link {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--p816-amber);
}

.p816-grid {
  display: grid;
  gap: var(--p816-gap);
}

.p816-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p816-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p816-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p816-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
  border: 1px solid var(--p816-line);
  border-radius: var(--p816-radius);
  background: var(--p816-card);
}

.p816-card::before {
  position: absolute;
  top: -1px;
  left: 18px;
  width: 34px;
  height: 4px;
  background: var(--p816-amber);
  content: "";
}

.p816-card--blue::before {
  background: var(--p816-blue-bright);
}

.p816-card--red::before {
  background: var(--p816-red);
}

.p816-card--green::before {
  background: var(--p816-green);
}

.p816-card p {
  margin: 0;
  color: var(--p816-muted);
}

.p816-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.p816-card__tag {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--p816-line);
  color: var(--p816-muted);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.p816-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 6px;
}

.p816-card__links a {
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--p816-line);
}

.p816-card__links a:hover {
  border-bottom-color: var(--p816-amber);
}

.p816-card__picture {
  display: grid;
  place-items: center;
  min-height: 132px;
  border: 1px solid var(--p816-line);
  background:
    linear-gradient(to right, rgba(22, 35, 47, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(22, 35, 47, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
}

.p816-card__picture svg {
  width: min(190px, 80%);
  height: auto;
}

.p816-iconline {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--p816-line);
  border-radius: 50%;
  color: var(--p816-blue);
}

.p816-iconline svg {
  width: 19px;
  height: 19px;
}

.p816-tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--p816-line);
  border-left: 4px solid var(--p816-blue);
  background: var(--p816-card);
}

.p816-tile--amber {
  border-left-color: var(--p816-amber);
}

.p816-tile--red {
  border-left-color: var(--p816-red);
}

.p816-tile--green {
  border-left-color: var(--p816-green);
}

.p816-tile p {
  margin: 0;
  color: var(--p816-muted);
  font-size: 0.92rem;
}

.p816-tile__num {
  color: var(--p816-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.p816-ticket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p816-ticket-grid a,
.p816-ticket-grid span {
  display: grid;
  place-items: center;
  min-height: 54px;
  padding: 6px;
  border: 1px solid var(--p816-line);
  border-radius: 3px;
  background: var(--p816-card);
  color: var(--p816-asphalt);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.p816-ticket-grid a:hover,
.p816-ticket-grid a[aria-current="page"] {
  border-color: var(--p816-asphalt);
  background: var(--p816-amber);
}

.p816-ticket-grid span {
  color: var(--p816-muted);
  background: transparent;
}

.p816-ticket-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(58px, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p816-ticket-strip a {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 1px solid var(--p816-line-dark);
  color: var(--p816-paper);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.p816-ticket-strip a:hover,
.p816-ticket-strip a[aria-current="page"] {
  background: var(--p816-amber);
  color: var(--p816-asphalt);
  border-color: var(--p816-amber);
}

.p816-intro {
  width: min(var(--p816-wrap), calc(100% - 40px));
  margin-inline: auto;
  padding-block: clamp(34px, 5vw, 58px) clamp(26px, 4vw, 44px);
}

.p816-intro--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px;
}

.p816-intro__plate {
  display: grid;
  place-items: center;
  width: clamp(92px, 12vw, 132px);
  aspect-ratio: 1;
  border: 2px solid var(--p816-asphalt);
  background: var(--p816-amber);
  color: var(--p816-asphalt);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  box-shadow: 6px 6px 0 var(--p816-line);
}

.p816-intro__plate small {
  display: block;
  margin-top: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

.p816-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.p816-meta li {
  padding: 5px 9px;
  border: 1px solid var(--p816-line);
  background: var(--p816-card);
  color: var(--p816-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.p816-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.85fr);
  align-items: start;
  gap: var(--p816-gap);
}

.p816-stack {
  display: grid;
  gap: var(--p816-gap);
}

.p816-sticky {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.p816-panel {
  padding: clamp(20px, 2.8vw, 32px);
  border: 1px solid var(--p816-line);
  border-radius: var(--p816-radius);
  background: var(--p816-card);
}

.p816-panel--ink {
  border-color: var(--p816-asphalt);
  background: var(--p816-asphalt);
  color: var(--p816-paper);
}

.p816-panel--ink .p816-h2,
.p816-panel--ink .p816-h3 {
  color: var(--p816-paper);
}

.p816-panel--ink p {
  color: #d6dee3;
}

.p816-note {
  padding: 14px 16px;
  border-left: 4px solid var(--p816-amber);
  background: var(--p816-paper-deep);
  color: var(--p816-ink);
  font-size: 0.9rem;
}

.p816-note p {
  margin: 0;
  color: inherit;
}

.p816-note--blue {
  border-left-color: var(--p816-blue);
}

.p816-note--red {
  border-left-color: var(--p816-red);
}

.p816-quiz {
  padding: clamp(20px, 3vw, 34px);
  border: 2px solid var(--p816-asphalt);
  border-radius: var(--p816-radius);
  background: var(--p816-card);
  box-shadow: 8px 8px 0 var(--p816-line);
}

.p816-quiz__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--p816-line);
}

.p816-quiz__head p {
  margin: 0;
}

.p816-quiz__timer {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid var(--p816-line);
  background: var(--p816-paper-deep);
  font-size: 0.78rem;
  font-weight: 700;
}

.p816-quiz__timer strong {
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}

.p816-quiz__form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.p816-quiz__questions {
  display: grid;
  gap: 16px;
}

.p816-q {
  margin: 0;
  padding: 18px;
  border: 1px solid var(--p816-line);
  background: var(--p816-paper);
}

.p816-q legend {
  max-width: 100%;
  padding: 0 4px;
  color: var(--p816-asphalt);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.45;
}

.p816-q__index {
  display: inline-block;
  margin-right: 7px;
  color: var(--p816-blue);
}

.p816-opt {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 9px;
  padding: 10px 12px;
  border: 1px solid transparent;
  background: var(--p816-card);
  cursor: pointer;
}

.p816-opt:hover {
  border-color: var(--p816-line);
}

.p816-opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.p816-opt__mark {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
  border: 2px solid var(--p816-line);
  border-radius: 50%;
  background: var(--p816-card);
}

.p816-opt__mark::after {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--p816-blue);
  content: "";
  opacity: 0;
}

.p816-opt input:checked + .p816-opt__mark {
  border-color: var(--p816-blue);
}

.p816-opt input:checked + .p816-opt__mark::after {
  opacity: 1;
}

.p816-opt input:focus-visible + .p816-opt__mark {
  outline: 3px solid var(--p816-focus);
  outline-offset: 3px;
}

.p816-q.is-correct .p816-opt.is-correct {
  border-color: var(--p816-green);
  background: #eaf4ee;
}

.p816-q.is-wrong .p816-opt.is-picked {
  border-color: var(--p816-red);
  background: #f8e9e6;
}

.p816-q.is-wrong .p816-opt.is-correct {
  border-color: var(--p816-green);
  background: #eaf4ee;
}

.p816-q__why {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-left: 3px solid var(--p816-line);
  color: var(--p816-muted);
  font-size: 0.88rem;
}

.p816-q.is-correct .p816-q__why {
  border-left-color: var(--p816-green);
}

.p816-q.is-wrong .p816-q__why {
  border-left-color: var(--p816-red);
}

.p816-quiz__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.p816-quiz__status {
  margin: 0;
  color: var(--p816-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.p816-steps {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: p816step;
}

.p816-steps li {
  position: relative;
  padding-left: 42px;
  color: var(--p816-muted);
  counter-increment: p816step;
}

.p816-steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--p816-asphalt);
  background: var(--p816-amber);
  color: var(--p816-asphalt);
  font-size: 0.78rem;
  font-weight: 700;
  content: counter(p816step, decimal-leading-zero);
}

.p816-sources {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p816-sources a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--p816-line);
  color: var(--p816-asphalt);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.p816-sources a:hover {
  color: var(--p816-blue);
  border-bottom-color: var(--p816-amber);
}

.p816-sources small {
  display: block;
  margin-top: 3px;
  color: var(--p816-muted);
  font-size: 0.76rem;
  font-weight: 400;
  line-height: 1.45;
}

.p816-src__arrow {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--p816-blue);
  line-height: 1;
}

.p816-src__arrow svg {
  width: 14px;
  height: 14px;
}

.p816-quiz__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p816-accordion {
  display: grid;
  gap: 10px;
}

.p816-accordion details {
  border: 1px solid var(--p816-line);
  background: var(--p816-card);
}

.p816-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  color: var(--p816-asphalt);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.p816-accordion summary::after {
  color: var(--p816-blue);
  font-size: 1.2rem;
  content: "+";
  transition: transform 150ms ease;
}

.p816-accordion details[open] summary::after {
  transform: rotate(45deg);
}

.p816-accordion details[open] summary {
  border-bottom: 1px solid var(--p816-line);
}

.p816-accordion__body {
  padding: 16px 18px;
  color: var(--p816-muted);
}

.p816-accordion__body p {
  margin: 0 0 0.8em;
}

.p816-accordion__body p:last-child {
  margin-bottom: 0;
}

.p816-form {
  display: grid;
  gap: 16px;
}

.p816-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.p816-field {
  display: grid;
  gap: 6px;
  color: var(--p816-asphalt);
  font-size: 0.82rem;
  font-weight: 700;
}

.p816-field input,
.p816-field select,
.p816-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--p816-line);
  border-radius: 3px;
  background: var(--p816-card);
  color: var(--p816-ink);
  font-size: 0.95rem;
  font-weight: 400;
}

.p816-field textarea {
  min-height: 110px;
  resize: vertical;
}

.p816-field input:focus,
.p816-field select:focus,
.p816-field textarea:focus {
  border-color: var(--p816-blue);
}

.p816-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--p816-muted);
  font-size: 0.84rem;
}

.p816-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 3px;
  accent-color: var(--p816-blue);
}

.p816-form__status {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--p816-green);
  background: #eaf4ee;
  color: var(--p816-ink);
  font-size: 0.88rem;
}

.p816-form__status[hidden] {
  display: none;
}

.p816-form__status.is-error {
  border-left-color: var(--p816-red);
  background: #f8e9e6;
}

.p816-form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.p816-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.p816-tabs button {
  padding: 8px 14px;
  border: 1px solid var(--p816-line);
  border-radius: 3px;
  background: var(--p816-card);
  color: var(--p816-asphalt);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.p816-tabs button[aria-selected="true"],
.p816-tabs button[aria-pressed="true"] {
  border-color: var(--p816-asphalt);
  background: var(--p816-asphalt);
  color: var(--p816-paper);
}

.p816-download {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--p816-line);
  background: var(--p816-card);
}

.p816-download + .p816-download {
  margin-top: 12px;
}

.p816-download p {
  margin: 4px 0 0;
  color: var(--p816-muted);
  font-size: 0.9rem;
}

.p816-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p816-download[hidden] {
  display: none;
}

.p816-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.p816-pager a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--p816-line);
  background: var(--p816-card);
  color: var(--p816-asphalt);
  text-decoration: none;
}

.p816-pager a:hover {
  border-color: var(--p816-asphalt);
}

.p816-pager span {
  color: var(--p816-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.p816-pager strong {
  font-size: 0.95rem;
}

.p816-pager a:last-child {
  text-align: right;
}

.p816-sole {
  margin-top: 0;
  padding-top: 48px;
  background: var(--p816-asphalt);
  color: #d6dee3;
}

.p816-sole__inner {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(150px, 0.7fr) minmax(240px, 1fr);
  gap: 32px;
  padding-bottom: 38px;
}

.p816-sole__brand a {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--p816-paper);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.p816-sole__brand p {
  max-width: 36ch;
  margin: 0 0 10px;
  color: #aebbc4;
  font-size: 0.88rem;
}

.p816-sole__fine {
  font-size: 0.76rem !important;
  color: #8495a1 !important;
}

.p816-sole__nav h2 {
  margin: 0 0 12px;
  color: var(--p816-amber);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.p816-sole__nav ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p816-sole__nav a {
  color: #d6dee3;
  font-size: 0.86rem;
  text-decoration: none;
}

.p816-sole__nav a:hover {
  color: var(--p816-amber);
  text-decoration: underline;
}

.p816-sole__nav p {
  margin: 0;
  color: #aebbc4;
  font-size: 0.86rem;
}

.p816-sole__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding-block: 18px;
  border-top: 1px solid var(--p816-line-dark);
  color: #8495a1;
  font-size: 0.76rem;
}

.p816-sole__base a {
  color: #d6dee3;
  text-decoration: none;
}

.p816-sole__base a:hover {
  color: var(--p816-amber);
}

.p816-finder {
  width: min(640px, calc(100% - 32px));
  padding: 0;
  border: 2px solid var(--p816-asphalt);
  border-radius: var(--p816-radius);
  background: var(--p816-card);
  color: var(--p816-ink);
}

.p816-finder::backdrop {
  background: rgba(22, 35, 47, 0.62);
}

.p816-finder__body {
  padding: 24px;
}

.p816-finder__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.p816-finder__head h2 {
  margin: 0;
  font-size: 1.25rem;
}

.p816-finder__close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--p816-line);
  border-radius: 3px;
  background: var(--p816-paper);
  color: var(--p816-asphalt);
  font-size: 1.2rem;
  line-height: 1;
}

.p816-finder__hint {
  margin: 8px 0 0;
  color: var(--p816-muted);
  font-size: 0.8rem;
}

.p816-finder__list {
  display: grid;
  gap: 6px;
  max-height: 48vh;
  margin: 16px 0 0;
  padding: 0;
  overflow: auto;
  list-style: none;
}

.p816-finder__list a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--p816-line);
  color: var(--p816-asphalt);
  text-decoration: none;
}

.p816-finder__list a:hover {
  border-color: var(--p816-amber);
  background: var(--p816-paper);
}

.p816-finder__list small {
  display: block;
  margin-top: 3px;
  color: var(--p816-muted);
  font-size: 0.76rem;
}

.p816-finder__empty {
  padding: 14px;
  border: 1px dashed var(--p816-line);
  color: var(--p816-muted);
  font-size: 0.88rem;
}

.p816-roadline {
  position: relative;
  height: 10px;
  margin-top: 12px;
  background-image: repeating-linear-gradient(to right, var(--p816-amber) 0 18px, transparent 18px 36px);
  opacity: 0.8;
}

.p816-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .p816-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .p816-hero__copy {
    max-width: 760px;
  }

  .p816-hero h1 {
    max-width: 20ch;
  }

  .p816-hero__art {
    max-width: 720px;
  }

  .p816-layout {
    grid-template-columns: 1fr;
  }

  .p816-sticky {
    position: static;
  }

  .p816-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p816-sole__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .p816-menu {
    margin-left: 0;
  }

  .p816-menu__trigger {
    display: inline-flex;
  }

  .p816-menu__list {
    position: absolute;
    top: calc(100% + 2px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 2px solid var(--p816-asphalt);
    background: var(--p816-card);
    box-shadow: var(--p816-print-shadow);
  }

  .p816-menu__list.is-open {
    display: flex;
  }

  .p816-menu__list li {
    border-bottom: 1px solid var(--p816-line);
  }

  .p816-menu__list li:last-child {
    border-bottom: 0;
  }

  .p816-menu__list a {
    display: block;
    padding: 11px 8px;
    border-bottom: 0;
  }

  .p816-menu__list a:hover,
  .p816-menu__list a[aria-current="page"] {
    color: var(--p816-blue);
    background: var(--p816-paper);
  }

  .p816-mast__inner {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 12px;
  }

  .p816-brand {
    margin-right: auto;
  }

  .p816-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .p816-sec-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .p816-intro--split {
    grid-template-columns: 1fr;
  }

  .p816-intro__plate {
    width: 84px;
  }
}

@media (max-width: 680px) {
  .p816-wrap,
  .p816-hero,
  .p816-trail,
  .p816-intro {
    width: min(var(--p816-wrap), calc(100% - 28px));
  }

  .p816-topline {
    padding-inline: 14px;
    font-size: 0.63rem;
  }

  .p816-topline span:last-child {
    display: none;
  }

  .p816-mast__inner {
    width: calc(100% - 28px);
  }

  .p816-menu__list {
    right: 14px;
    left: 14px;
  }

  .p816-findbtn span {
    display: none;
  }

  .p816-findbtn {
    padding: 8px;
  }

  .p816-grid--2,
  .p816-grid--3,
  .p816-grid--4 {
    grid-template-columns: 1fr;
  }

  .p816-sources {
    grid-template-columns: 1fr;
  }

  .p816-form__row {
    grid-template-columns: 1fr;
  }

  .p816-pager {
    grid-template-columns: 1fr;
  }

  .p816-pager a:last-child {
    text-align: left;
  }

  .p816-download {
    grid-template-columns: 1fr;
  }

  .p816-sole__inner {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .p816-sole__base {
    flex-direction: column;
  }

  .p816-quiz__head {
    flex-direction: column;
  }

  .p816-h1 {
    max-width: none;
  }

  .p816-ticket-grid {
    grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  }
}

@media (max-width: 430px) {
  .p816-brand__note {
    display: none;
  }

  .p816-brand img {
    width: 36px;
    height: 36px;
  }

  .p816-hero__actions .p816-btn {
    width: 100%;
  }

  .p816-quiz {
    padding: 16px;
    box-shadow: 5px 5px 0 var(--p816-line);
  }

  .p816-q {
    padding: 14px;
  }

  .p816-intro__plate {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body::before,
  .p816-topline,
  .p816-mast,
  .p816-sole,
  .p816-quiz__foot,
  .p816-finder,
  .p816-hero__art,
  .p816-sources,
  .p816-pager {
    display: none !important;
  }

  .p816-quiz {
    box-shadow: none;
    border: 1px solid #999;
  }

  .p816-q {
    break-inside: avoid;
  }

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