html:has(.guest-landing-card),
body:has(.guest-landing-card) {
  background: #f5f5f7;
}

.v2-quiz-start.guest-landing-card {
  width: min(100%, 680px);
  margin: clamp(32px, 12vh, 120px) auto 0;
  padding: clamp(32px, 5vw, 54px);
  padding-bottom: 25px;
  border: 0;
  border-radius: 28px;
  background: #fff;
  color: #1d1d1f;
  text-align: center;
  box-shadow: 0 16px 56px rgba(0, 0, 0, .075), 0 1px 4px rgba(0, 0, 0, .035);
}

.guest-landing-card h1 {
  max-width: 525px;
  margin: 0 auto;
  font-size: clamp(29px, 4.2vw, 44px);
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -.035em;
  text-wrap: balance;
}

.guest-title-exams {
  white-space: nowrap;
}

.guest-landing-card > p {
  margin: 16px auto 32px;
  color: #515154;
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.65;
  text-wrap: balance;
}

.guest-landing-card .v2-quiz-settings {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  min-inline-size: 0;
  text-align: left;
}

.guest-landing-card .v2-quiz-settings label {
  gap: 7px;
  color: #3a3a3c;
  font-size: 13px;
  font-weight: 600;
}

.guest-landing-card .v2-quiz-settings select {
  width: 100%;
  min-height: 51px;
  padding: 10px 13px;
  border: 1px solid #d2d2d7;
  border-radius: 11px;
  background: #fafafa;
  color: #1d1d1f;
  font-size: 16px;
}

.guest-landing-card .v2-quiz-start-actions {
  justify-content: center;
  margin-top: 24px;
}

.guest-landing-card #qtStartBtn {
  min-height: 54px;
  padding: 12px 25px;
  border: 0;
  border-radius: 980px;
  background: #0066cc;
  color: #fff;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.3;
  transition: background-color 160ms ease;
}

.guest-landing-card #qtStartBtn:hover:not(:disabled) {
  background: #0059b3;
}

.guest-landing-card :is(button, select):focus-visible,
.guest-landing-links button:focus-visible {
  outline: 3px solid #0071e3;
  outline-offset: 3px;
}

.guest-landing-card + .v2-quiz-result {
  margin-top: 26px;
}

.guest-landing-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 6px;
  margin-top: 21px;
  color: #59595e;
  font-size: 13px;
  text-align: center;
}

.guest-catalog-preview {
  display: grid;
  grid-template-rows: 0fr;
  scroll-margin-top: 80px;
  visibility: hidden;
  transition: grid-template-rows 240ms ease, visibility 240ms;
}

.guest-landing-links button {
  display: inline-flex;
  min-height: 26px;
  padding: 0;
  align-items: center;
  gap: 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #0066cc;
  font: inherit;
  cursor: pointer;
}

.guest-landing-links button:hover {
  text-decoration: underline;
}

.guest-landing-links button::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 220ms ease;
}

.guest-landing-links button[aria-expanded="true"]::after {
  transform: translateY(2px) rotate(225deg);
}

.guest-catalog-preview[data-open="true"] {
  grid-template-rows: 1fr;
  visibility: visible;
}

.guest-catalog-clip {
  min-height: 0;
  overflow: clip;
}

.guest-catalog-body {
  padding: 24px 1px;
  text-align: left;
}

@media (max-width: 600px) {
  .v2-quiz-start.guest-landing-card {
    margin-top: clamp(24px, 7vh, 68px);
    padding: 19px 23px 10px;
    border-radius: 22px;
  }

  .guest-landing-card h1 { font-size: clamp(24px, 6.5vw, 29px); }

  .guest-landing-card > p {
    margin: 9px auto 14px;
  }

  .guest-landing-card .v2-quiz-settings {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .guest-landing-card .v2-quiz-settings label {
    gap: 4px;
    line-height: 1.35;
  }

  .guest-landing-card .v2-quiz-settings select {
    min-height: 44px;
  }

  .guest-landing-card #qtStartBtn {
    width: 100%;
    min-height: 50px;
    padding-inline: 8px;
  }

  .guest-landing-card .v2-quiz-start-actions {
    margin-top: 14px;
  }

  .guest-landing-links {
    margin-top: 8px;
    gap: 2px 4px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guest-landing-card #qtStartBtn,
  .guest-landing-links button::after,
  .guest-catalog-preview {
    transition: none;
  }
}
