.qst-single,
.qst-single * {
  box-sizing: border-box;
}

.qst-single {
  --qst-bg: #f8f2e8;
  --qst-paper: rgba(255, 252, 247, 0.9);
  --qst-line: rgba(33, 41, 58, 0.12);
  --qst-ink: #21293a;
  --qst-muted: #687284;
  --qst-gold: #bd8a34;
  --qst-gold-deep: #946724;
  --qst-blue: #7f98b3;
  --qst-shadow: 0 28px 80px rgba(45, 38, 25, 0.12);
  color: var(--qst-ink);
  background:
    radial-gradient(circle at top left, rgba(198, 154, 77, 0.22), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(127, 152, 179, 0.16), transparent 22%),
    linear-gradient(180deg, #faf5ed 0%, #f6eee2 38%, #fbf9f5 100%);
  font-family: "Manrope", "Helvetica Neue", sans-serif;
}

.qst-single :where(p, a, li, span, strong, em, small, label, h1, h2, h3, h4, h5, h6, blockquote) {
  text-transform: capitalize;
}

.qst-single :where(input, textarea, select, option) {
  text-transform: none;
}

.qst-single ::placeholder {
  text-transform: none;
}

.qst-single a {
  color: inherit;
  text-decoration: none;
}

.qst-single img {
  display: block;
  width: 100%;
  height: auto;
}

.qst-shell {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
}

.qst-hero {
  padding: 40px 0 22px;
}

.qst-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--qst-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qst-breadcrumbs a:hover,
.qst-breadcrumbs a:focus-visible,
.qst-kicker:hover,
.qst-kicker:focus-visible,
.qst-inline-link:hover,
.qst-inline-link:focus-visible,
.qst-article__footer a:hover,
.qst-article__footer a:focus-visible,
.qst-toc a:hover,
.qst-toc a:focus-visible {
  color: var(--qst-gold-deep);
}

.qst-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.qst-kicker,
.qst-card-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--qst-gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.qst-kicker::before,
.qst-card-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.qst-hero h1,
.qst-related__head h2,
.qst-related-card h3 {
  margin: 0;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  letter-spacing: -0.03em;
}

.qst-hero h1 {
  max-width: 13ch;
  margin-top: 18px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 0.98;
}

.qst-hero__excerpt {
  max-width: 58ch;
  margin: 20px 0 0;
  color: var(--qst-muted);
  font-size: 18px;
  line-height: 1.8;
}

.qst-meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.qst-meta-row > div,
.qst-info-card,
.qst-side-card,
.qst-article,
.qst-related-card,
.qst-hero-media {
  border: 1px solid rgba(255, 255, 255, 0.52);
  background: var(--qst-paper);
  box-shadow: var(--qst-shadow);
  backdrop-filter: blur(18px);
}

.qst-meta-row > div {
  padding: 18px 20px;
  border-radius: 22px;
}

.qst-meta-label {
  display: block;
  margin-bottom: 8px;
  color: var(--qst-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qst-meta-row strong {
  font-size: 16px;
  line-height: 1.5;
}

.qst-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.qst-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(189, 138, 52, 0.1);
  color: var(--qst-gold-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.qst-info-card,
.qst-side-card,
.qst-related-card__body,
.qst-article__body,
.qst-article__footer {
  padding: 26px;
}

.qst-info-card,
.qst-side-card,
.qst-article,
.qst-related-card {
  border-radius: 30px;
}

.qst-info-card h2 {
  margin: 16px 0 12px;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  font-size: 30px;
  line-height: 1.08;
}

.qst-info-card p,
.qst-side-card p,
.qst-article__body p,
.qst-article__body li,
.qst-related-card p {
  margin: 0;
  color: var(--qst-muted);
  font-size: 16px;
  line-height: 1.85;
}

.qst-info-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.qst-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.qst-button:hover,
.qst-button:focus-visible {
  transform: translateY(-1px);
}

.qst-button--gold {
  color: #fff9ef;
  background: linear-gradient(135deg, #c69433 0%, #9a6a22 100%);
  box-shadow: 0 18px 36px rgba(155, 107, 33, 0.24);
}

.qst-button--ghost {
  color: var(--qst-ink);
  border-color: rgba(33, 41, 58, 0.14);
  background: rgba(255, 255, 255, 0.6);
}

.qst-hero-media {
  overflow: hidden;
  margin-top: 28px;
}

.qst-hero-media img {
  aspect-ratio: 1.75 / 1;
  object-fit: cover;
}

.qst-content {
  padding: 26px 0 26px;
}

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

.qst-article {
  overflow: hidden;
}

.qst-article__body > *:first-child {
  margin-top: 0;
}

.qst-article__body h2,
.qst-article__body h3 {
  margin: 38px 0 14px;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  letter-spacing: -0.02em;
  color: var(--qst-ink);
}

.qst-article__body h2 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
}

.qst-article__body h3 {
  font-size: 24px;
  line-height: 1.18;
}

.qst-article__body p + p,
.qst-article__body ul + p,
.qst-article__body table + p {
  margin-top: 16px;
}

.qst-article__body ul,
.qst-article__body ol {
  margin: 18px 0;
  padding-left: 22px;
}

.qst-article__body li + li {
  margin-top: 10px;
}

.qst-article__body a {
  color: var(--qst-gold-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.qst-article__body table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 20px;
  border-style: hidden;
  box-shadow: 0 0 0 1px rgba(33, 41, 58, 0.08);
}

.qst-article__body th,
.qst-article__body td {
  padding: 16px 18px;
  border: 1px solid rgba(33, 41, 58, 0.08);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.qst-article__body th {
  background: rgba(189, 138, 52, 0.08);
  font-weight: 800;
}

.qst-article__footer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-top: 1px solid rgba(33, 41, 58, 0.08);
}

.qst-article__footer a {
  display: inline-block;
  margin-top: 10px;
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  font-size: 24px;
  line-height: 1.16;
}

.qst-sidebar {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 20px;
}

.qst-side-card--soft {
  background: linear-gradient(180deg, rgba(127, 152, 179, 0.1) 0%, rgba(255, 255, 255, 0.78) 100%);
}

.qst-toc {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.qst-toc a {
  color: var(--qst-ink);
  font-weight: 700;
  line-height: 1.5;
}

.qst-toc a.is-sub {
  padding-left: 16px;
  color: var(--qst-muted);
  font-size: 14px;
}

.qst-facts {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.qst-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.qst-facts strong {
  font-family: "Roboto", "Helvetica Neue", sans-serif;
  font-size: 24px;
  line-height: 1.08;
}

.qst-facts span {
  color: var(--qst-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.qst-related {
  padding: 16px 0 88px;
}

.qst-related__head {
  margin-bottom: 24px;
}

.qst-related__head h2 {
  max-width: 18ch;
  margin-top: 14px;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.03;
}

.qst-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.qst-related-card {
  overflow: hidden;
}

.qst-related-card__media {
  display: block;
}

.qst-related-card__media img {
  aspect-ratio: 1.18 / 1;
  object-fit: cover;
}

.qst-related-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--qst-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.qst-related-card__meta span {
  color: var(--qst-gold-deep);
}

.qst-related-card__meta em {
  font-style: normal;
}

.qst-related-card h3 {
  font-size: 28px;
  line-height: 1.08;
}

.qst-related-card p {
  margin-top: 12px;
}

.qst-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--qst-gold-deep);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.qst-inline-link::after {
  content: "\2192";
}

@media (max-width: 1180px) {
  .qst-hero__grid,
  .qst-content__layout,
  .qst-related__grid {
    grid-template-columns: 1fr;
  }

  .qst-sidebar {
    position: static;
  }

  .qst-related__head h2 {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .qst-shell {
    width: min(100%, calc(100% - 32px));
  }

  .qst-meta-row,
  .qst-article__footer {
    grid-template-columns: 1fr;
  }

  .qst-info-card,
  .qst-side-card,
  .qst-related-card__body,
  .qst-article__body,
  .qst-article__footer {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .qst-hero {
    padding-top: 28px;
  }

  .qst-hero h1 {
    font-size: 40px;
  }

  .qst-button {
    width: 100%;
  }

  .qst-info-card__actions {
    flex-direction: column;
  }

  .qst-related-card h3 {
    font-size: 24px;
  }

  .qst-article__footer a {
    font-size: 21px;
  }
}
