:root {
  color-scheme: dark;
  --bg: #101419;
  --surface: #161b22;
  --surface-2: #1d242d;
  --surface-3: #252e39;
  --text: #f7f3e9;
  --muted: #b2b8c2;
  --border: #34404d;
  --red: #e50914;
  --red-dark: #b70710;
  --gold: #f5c518;
  --green: #42b66b;
  --danger: #ef6461;
  --focus: #8cc9ff;
  --content: 1180px;
  --reading: 760px;
  --shadow: 0 24px 70px rgb(0 0 0 / 28%);
  --radius: 18px;
  --font-display: Arial, "Helvetica Neue", "Noto Sans", sans-serif;
  --font-body: Arial, "Helvetica Neue", "Noto Sans", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  background: var(--bg);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgb(229 9 20 / 8%), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.7rem 1rem;
  transform: translateY(-150%);
  border-radius: 8px;
  background: #fff;
  color: #111;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(16 20 25 / 88%);
  backdrop-filter: blur(18px);
}

.site-header__inner,
.site-footer__inner,
.site-footer__legal,
.content-section,
.quiz-main,
.article-main {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.brand__mark {
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid rgb(245 197 24 / 55%);
  border-radius: 50%;
  background: var(--gold);
  color: #18130a;
  font-family: var(--font-body);
  font-weight: 900;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2.5vw, 1.8rem);
}

.site-nav a {
  position: relative;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -0.45rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  background: var(--gold);
  content: "";
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin-top: 0;
  color: var(--text);
  font-family: var(--font-display);
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 7vw, 5.65rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-top: 0;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.35rem;
  background: var(--red);
  box-shadow: 0 10px 30px rgb(229 9 20 / 20%);
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: var(--red-dark);
}

.button--secondary {
  border: 1px solid var(--border);
  background: var(--surface-3);
  box-shadow: none;
}

.button--secondary:hover {
  background: #303b48;
}

.home-hero {
  display: grid;
  width: min(calc(100% - 2rem), 1360px);
  min-height: min(760px, calc(100svh - 74px));
  margin: 0 auto;
  grid-template-columns: minmax(0, 0.92fr) minmax(440px, 1.08fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(3.5rem, 7vw, 7rem) 0;
}

.home-hero__content {
  position: relative;
  z-index: 2;
}

.home-hero h1 {
  max-width: 12ch;
  margin-bottom: 1.35rem;
}

.home-hero__lead {
  max-width: 62ch;
  margin-bottom: 1.7rem;
  color: #d4d8de;
  font-size: clamp(1.05rem, 2vw, 1.24rem);
  line-height: 1.7;
}

.home-hero__art {
  position: relative;
  margin: 0;
}

.home-hero__art::before {
  position: absolute;
  z-index: -1;
  inset: 12% 5% -5%;
  border-radius: 50%;
  background: rgb(229 9 20 / 17%);
  content: "";
  filter: blur(60px);
}

.home-hero__art img {
  width: 100%;
  border: 1px solid rgb(245 197 24 / 20%);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.hero-stats {
  display: flex;
  margin: 2.25rem 0 0;
  padding: 0;
  gap: clamp(1.25rem, 4vw, 3rem);
  list-style: none;
}

.hero-stats li {
  display: grid;
}

.hero-stats strong {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
}

.hero-stats span {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.content-section {
  padding-block: clamp(4.5rem, 8vw, 8rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.2rem;
}

.section-heading h2,
.section-heading p {
  margin-bottom: 0;
}

.section-heading > p {
  max-width: 48ch;
  color: var(--muted);
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.quiz-card {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), transparent 55%),
    var(--surface);
  box-shadow: 0 16px 44px rgb(0 0 0 / 18%);
  transition: border-color 180ms ease, transform 180ms ease;
}

.quiz-card:hover {
  transform: translateY(-4px);
  border-color: rgb(245 197 24 / 55%);
}

.quiz-card__media {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #090b0e;
}

.quiz-card__media[hidden] {
  display: none;
}

.quiz-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 280ms ease;
}

.quiz-card:hover .quiz-card__media img {
  transform: scale(1.025);
}

.quiz-card__number {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgb(245 197 24 / 60%);
  border-radius: 50%;
  background: rgb(16 20 25 / 88%);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.quiz-card__body {
  display: flex;
  padding: 1.8rem;
  flex-direction: column;
}

.quiz-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.quiz-card h3 a {
  text-decoration: none;
}

.quiz-card h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.quiz-card__body > p:not(.eyebrow) {
  margin-bottom: 1.5rem;
  color: var(--muted);
}

.quiz-card__meta {
  display: flex;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
}

.quiz-card__meta span {
  color: var(--muted);
}

.quiz-card__meta a {
  position: relative;
  z-index: 2;
  color: var(--gold);
  font-weight: 800;
  text-decoration: none;
}

.value-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) 1.3fr;
  gap: clamp(2rem, 7vw, 7rem);
  border-top: 1px solid var(--border);
}

.value-grid {
  display: grid;
  gap: 0;
}

.value-grid article {
  display: grid;
  grid-template-columns: 52px 0.65fr 1.35fr;
  align-items: baseline;
  gap: 1rem;
  border-top: 1px solid var(--border);
  padding: 1.4rem 0;
}

.value-grid article:last-child {
  border-bottom: 1px solid var(--border);
}

.value-grid__index {
  color: var(--gold);
  font-weight: 800;
}

.value-grid h3,
.value-grid p {
  margin: 0;
}

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

.breadcrumbs {
  display: flex;
  padding: 1.4rem 0 1rem;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumbs a:hover {
  color: var(--gold);
}

.quiz-page-header {
  display: grid;
  padding: clamp(2rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
}

.quiz-page-header h1 {
  max-width: 15ch;
  margin-bottom: 1rem;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
}

.quiz-page-header > div:first-child > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.quiz-page-header__badge {
  display: grid;
  width: 142px;
  height: 142px;
  place-content: center;
  border: 1px solid rgb(245 197 24 / 45%);
  border-radius: 50%;
  background: radial-gradient(circle, rgb(245 197 24 / 12%), transparent 68%);
  text-align: center;
}

.quiz-page-header__badge span {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
}

.quiz-page-header__badge small {
  margin-top: 0.3rem;
  color: var(--muted);
}

.quiz-player {
  min-height: 500px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 0, rgb(229 9 20 / 12%), transparent 26rem),
    var(--surface);
  box-shadow: var(--shadow);
}

.quiz-player__intro,
.quiz-player__game,
.quiz-player__error {
  display: flex;
  min-height: 500px;
  padding: clamp(1.5rem, 5vw, 4.5rem);
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.quiz-player__intro[hidden],
.quiz-player__game[hidden],
.quiz-player__error[hidden] {
  display: none;
}

.quiz-player__intro h2,
.quiz-player__error h2 {
  margin-bottom: 1rem;
}

.quiz-player__intro > p:not(.eyebrow),
.quiz-player__error p {
  max-width: 60ch;
  margin-bottom: 1.6rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.quiz-player__game {
  display: block;
}

.progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.progress-track {
  height: 5px;
  margin: 0.7rem 0 clamp(2rem, 5vw, 4rem);
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-3);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--red), var(--gold));
  transition: width 220ms ease;
}

.question-block h2 {
  max-width: 25ch;
  margin-bottom: 2rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.option-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.quiz-option {
  min-height: 74px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  line-height: 1.45;
  text-align: left;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.quiz-option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: #718096;
  background: var(--surface-3);
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.7;
}

.quiz-option.is-correct {
  border-color: var(--green);
  background: rgb(66 182 107 / 13%);
  opacity: 1;
}

.quiz-option.is-wrong {
  border-color: var(--danger);
  background: rgb(239 100 97 / 12%);
  opacity: 1;
}

.quiz-feedback {
  margin-top: 1.25rem;
  border-left: 3px solid var(--gold);
  padding: 0.9rem 1rem;
  background: rgb(245 197 24 / 7%);
}

.quiz-feedback p {
  margin: 0;
}

.quiz-reaction {
  width: min(100%, 420px);
  margin: 1.25rem 0 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #090b0e;
}

.quiz-reaction img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
}

.quiz-actions {
  display: flex;
  margin-top: 1.4rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.result-panel {
  max-width: 720px;
}

.result-panel__score {
  margin: 0.4rem 0 1rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.result-panel .quiz-reaction {
  margin-bottom: 1.25rem;
}

.result-panel > p {
  color: var(--muted);
  font-size: 1.08rem;
}

.editorial-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(2rem, 7vw, 6rem);
}

.editorial-copy p:not(.eyebrow) {
  max-width: 68ch;
  color: #d1d6dc;
  font-size: 1.04rem;
}

.topic-card {
  align-self: start;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--surface);
}

.topic-card h2 {
  margin-bottom: 1rem;
  font-size: 1.35rem;
}

.topic-card ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #d1d6dc;
}

.topic-card li + li {
  margin-top: 0.45rem;
}

.topic-card p {
  margin: 1.35rem 0 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.answer-archive {
  border-top: 1px solid var(--border);
}

.answer-archive[hidden] {
  display: none;
}

.answer-list {
  display: grid;
  margin: 0;
  padding: 0;
  gap: 0.75rem;
  list-style: none;
}

.answer-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.answer-item h3 {
  margin: 0;
  padding: 1.15rem 1.25rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
}

.answer-item h3 span {
  color: var(--gold);
}

.answer-item details {
  padding: 0.8rem 1.25rem 1.1rem;
}

.answer-item summary {
  color: var(--muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 700;
}

.answer-item summary:hover {
  color: var(--gold);
}

.answer-item__content {
  margin-top: 0.9rem;
  border-left: 3px solid var(--green);
  padding: 0.3rem 0 0.3rem 1rem;
  color: #d1d6dc;
}

.answer-item__content p {
  margin: 0;
}

.answer-item__content p + p {
  margin-top: 0.5rem;
}

.related-section {
  border-top: 1px solid var(--border);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  min-height: 180px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  background: var(--surface);
  flex-direction: column;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.related-card:hover {
  transform: translateY(-3px);
  border-color: rgb(245 197 24 / 55%);
}

.related-card span,
.related-card small {
  color: var(--muted);
}

.related-card strong {
  margin: 0.65rem 0 1rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
}

.related-card small {
  margin-top: auto;
}

.article-main {
  padding-block: clamp(3.5rem, 8vw, 7rem);
}

.prose {
  max-width: var(--reading);
}

.prose h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 7vw, 5rem);
}

.prose h2 {
  margin: 3rem 0 0.9rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.prose p,
.prose li {
  color: #d2d7dd;
}

.prose .lead {
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.prose a:not(.button) {
  color: #9bd1ff;
  text-underline-offset: 0.2em;
}

.prose-callout,
.contact-card {
  margin-top: 3.5rem;
  border: 1px solid rgb(245 197 24 / 32%);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background: linear-gradient(135deg, rgb(245 197 24 / 8%), rgb(229 9 20 / 6%));
}

.prose-callout h2 {
  margin-top: 0;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.contact-card__label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-card div > a {
  color: var(--text) !important;
  font-size: 1.05rem;
  font-weight: 750;
}

.not-found {
  display: flex;
  width: min(calc(100% - 2rem), 760px);
  min-height: 68svh;
  margin-inline: auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.not-found h1 {
  margin-bottom: 1rem;
  font-size: clamp(2.8rem, 8vw, 5.5rem);
}

.not-found p:not(.eyebrow) {
  max-width: 55ch;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--border);
  background: #0c1014;
}

.site-footer__inner {
  display: grid;
  padding-block: 3rem;
  grid-template-columns: 1fr auto;
  gap: 3rem;
}

.brand--footer {
  margin-bottom: 0.9rem;
}

.site-footer__inner > div > p {
  max-width: 52ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  align-content: start;
  gap: 0.55rem 1.5rem;
}

.site-footer nav a,
.footer-link {
  border: 0;
  padding: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.85rem;
  text-align: left;
  text-decoration: none;
}

.site-footer nav a:hover,
.footer-link:hover {
  color: var(--gold);
  text-decoration: underline;
}

.site-footer__legal {
  display: flex;
  padding-block: 1rem 1.5rem;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgb(255 255 255 / 6%);
  color: #858e99;
  font-size: 0.75rem;
}

.privacy-notice {
  position: fixed;
  z-index: 50;
  right: 1rem;
  bottom: 1rem;
  max-width: min(420px, calc(100% - 2rem));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  background: var(--surface-2);
  box-shadow: var(--shadow);
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .site-header__inner {
    padding-block: 0.85rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.7rem;
  }

  .site-nav {
    width: 100%;
    padding-bottom: 0.2rem;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-hero__art {
    order: -1;
  }

  .home-hero__art img {
    max-height: 440px;
    object-fit: cover;
  }

  .value-section,
  .editorial-layout {
    grid-template-columns: 1fr;
  }

  .value-grid article {
    grid-template-columns: 42px 1fr;
  }

  .value-grid article p {
    grid-column: 2;
  }
}

@media (max-width: 700px) {
  .section-heading,
  .quiz-page-header,
  .site-footer__inner,
  .site-footer__legal,
  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-heading,
  .quiz-page-header,
  .site-footer__inner {
    display: flex;
  }

  .quiz-page-header__badge {
    width: 108px;
    height: 108px;
  }

  .quiz-page-header__badge span {
    font-size: 2.4rem;
  }

  .quiz-grid,
  .option-list,
  .related-grid {
    grid-template-columns: 1fr;
  }

  .quiz-card {
    min-height: 280px;
  }

  .quiz-card__number {
    width: 40px;
    height: 40px;
  }

  .quiz-card__media {
    height: 190px;
  }

  .hero-stats {
    width: 100%;
    justify-content: space-between;
    gap: 0.65rem;
  }

  .quiz-player,
  .quiz-player__intro,
  .quiz-player__game,
  .quiz-player__error {
    min-height: 440px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
