:root {
  --lova-purple: #8277e6;
  --lova-blue: #45b9f8;
  --lova-text: #3c3c3c;
  --lova-muted: #77717f;
  --lova-line: #dfdfdf;
  --lova-gradient: linear-gradient(90deg, #8277e6 0%, #45b9f8 100%);
  --page-gradient: linear-gradient(108deg, #8176e9 0%, #45b9f8 100%);
  --window-width: 1087px;
  --window-min-height: 656px;
  --transition: 170ms ease;
}

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

html {
  min-width: 320px;
  min-height: 100%;
  background: #8176e9;
}

body {
  min-width: 320px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  color: var(--lova-text);
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page-gradient);
}

button,
input,
a {
  font: inherit;
}

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

button:focus-visible,
input:focus-visible,
a:focus-visible,
[tabindex="-1"]:focus-visible {
  outline: 3px solid rgba(69, 185, 248, 0.4);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(12px, 2vw, 28px);
  display: grid;
  place-items: center;
}

.quiz-window {
  position: relative;
  width: min(var(--window-width), 100%);
  min-height: var(--window-min-height);
  overflow: visible;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 18.6px rgba(0, 0, 0, 0.17);
}

.quiz-card {
  min-height: var(--window-min-height);
  padding: 40px 34px 104px;
}

.language-switch {
  position: absolute;
  top: 27px;
  left: 34px;
  z-index: 20;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--lova-purple);
  font-size: 28px;
  line-height: 44px;
  font-weight: 400;
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), transform var(--transition);
}

.language-switch:hover {
  color: #665bdd;
}

.language-switch:active {
  transform: scale(0.97);
}

.help-mark {
  position: absolute;
  top: 25px;
  left: 27px;
  z-index: 40;
  width: 44px;
  height: 44px;
  padding: 0 0 1px;
  display: grid;
  place-items: center;
  border: 2px solid #4f93ff;
  border-radius: 50%;
  color: #4f93ff;
  font-size: 18px;
  line-height: 1;
  font-weight: 500;
  background: #fff;
  cursor: help;
  transition: transform var(--transition);
}

.help-mark:hover,
.help-mark:focus-visible {
  transform: scale(1.04);
}

.help-mark:active {
  transform: scale(0.97);
}

.help-tooltip {
  --help-width: 578px;
  --help-min-height: 217px;

  position: absolute;
  top: 11px;
  left: 90px;
  z-index: 35;
  width: min(var(--help-width), calc(100% - 112px));
  min-height: var(--help-min-height);
  padding: 19px 28px;
  display: flex;
  align-items: center;
  border-radius: 26px;
  color: var(--lova-text);
  background: #ededed;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-7px) scale(0.99);
  transform-origin: left top;
  transition: opacity 180ms ease, visibility 180ms ease, transform 180ms ease;
}

.help-tooltip::before {
  content: "";
  position: absolute;
  top: 32px;
  left: -13px;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 14px solid #ededed;
}

.help-tooltip.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

.help-tooltip p {
  width: 100%;
  margin: 0;
  color: var(--lova-text);
  font-size: 16px;
  line-height: 1.5;
  font-weight: 500;
}

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