@font-face {
  font-family: "El Grosa";
  src: url("assets/fonts/El-Grosa-Round.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --sky: #ccebf8;
  --cyan: #039ee0;
  --navy: #001e3f;
  --ink: #262626;
  --paper: #f3f3f3;
  --white: #ffffff;
  --shadow: 0 5px 11px rgba(0, 30, 63, 0.23);
  --body-font: "Albert Sans", Arial, sans-serif;
  --display-font: "El Grosa", "Arial Rounded MT Bold", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--sky);
  color: var(--navy);
  font-family: var(--body-font);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--sky);
}

button,
input {
  font: inherit;
}

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

.privacy-footer {
  padding: 0 24px 34px;
  text-align: center;
}

.privacy-footer a {
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  text-underline-offset: 3px;
}

.campaign {
  position: relative;
  width: min(100%, 1440px);
  min-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--sky);
}

.visual-intro {
  position: relative;
  height: 760px;
  overflow: hidden;
}

.visual-intro__clean {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: var(--sky);
}

.visual-intro__clean::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 1019px;
  height: 583px;
  content: "";
  background: var(--white);
  clip-path: polygon(0 0, 100% 0, 99.5% 15%, 95% 28%, 86% 45%, 69.5% 100%, 0 100%);
}

.hero-copy {
  position: absolute;
  z-index: 2;
  top: 69px;
  left: max(174px, calc(50% - 546px));
}

.hero-logo {
  display: block;
  width: 311px;
  height: 69px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--cyan);
  font-family: var(--display-font);
  font-weight: 400;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin-top: 92px;
  font-size: 80px;
  line-height: 0.98;
}

.hero-copy p {
  margin: 31px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
}

.queue-visuals {
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
}

.queue-visual {
  position: absolute;
  z-index: 2;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  will-change: transform, opacity;
}

.queue-visual--anna {
  top: 210px;
  left: calc(50% - 720px + 676px);
  width: 364px;
  height: 348px;
  background-image: url("assets/queue/anna-258.png");
  animation: queue-arrive-anna 1180ms 80ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.queue-visual--sintija {
  top: 102px;
  left: calc(50% - 720px + 947px);
  width: 327px;
  height: 316px;
  background-image: url("assets/queue/sintija-591.png");
  animation: queue-arrive-sintija 1180ms 230ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.queue-visual--karlis {
  top: 391px;
  left: calc(50% - 720px + 965px);
  width: 356px;
  height: 342px;
  background-image: url("assets/queue/karlis-483.png");
  animation: queue-arrive-karlis 1180ms 380ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quiz-section {
  position: relative;
  z-index: 2;
  width: 868px;
  max-width: calc(100% - 48px);
  margin: 23px auto 96px;
}

.quiz-card {
  position: relative;
  width: 100%;
  min-height: 453px;
  padding: 85px 135px 43px 150px;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: card-arrive 620ms 160ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.quiz-card--intro {
  min-height: 520px;
  padding: 82px 92px 62px;
}

.intro-step {
  max-width: 680px;
  margin: 0 auto;
}

.intro-step h2 {
  margin: 0 0 28px;
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: 40px;
  font-weight: 400;
  line-height: 1.08;
  text-transform: uppercase;
}

.intro-step p {
  margin: 0 0 24px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.5;
}

.intro-step p:last-of-type {
  margin-top: 34px;
  margin-bottom: 28px;
  font-weight: 700;
}

.intro-step__start {
  min-width: 150px;
  min-height: 52px;
  font-size: 18px;
}

.quiz-card--expanded {
  min-height: 460px;
  padding-right: 92px;
  padding-left: 92px;
}

.quiz-card.is-saving {
  cursor: progress;
}

.quiz-card::before,
.quiz-card::after {
  position: absolute;
  z-index: 3;
  display: block;
  content: "";
  pointer-events: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.quiz-card::before {
  top: 28px;
  right: -30px;
  width: 128px;
  height: 128px;
  background-image: url("assets/decorations/zvaigzne.png");
}

.quiz-card::after {
  bottom: 50px;
  left: -48px;
  width: 112px;
  height: 112px;
  background-image: url("assets/decorations/puke.png");
}

.pin {
  position: absolute;
  top: 28px;
  left: 50%;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle at 44% 39%, #e8f8ff 0 22%, #bde6f7 58%, #9bcadd 100%);
  box-shadow: inset 0 1px 2px rgba(0, 30, 63, 0.18), 0 1px 2px rgba(0, 30, 63, 0.14);
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  width: 100%;
  margin: 0 0 30px;
  padding: 0;
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.38;
}

.answers {
  display: grid;
  gap: 25px;
}

.answer {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 405px);
  gap: 24px;
  align-items: center;
  min-height: 41px;
  padding: 0;
  color: var(--white);
  text-align: left;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.answer__radio {
  display: block;
  width: 34px;
  height: 34px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--paper);
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.answer__label {
  display: flex;
  align-items: center;
  min-height: 41px;
  padding: 8px 30px;
  background: var(--navy);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  transition: transform 160ms ease, background-color 160ms ease;
}

.answer:hover .answer__label,
.answer:focus-visible .answer__label {
  transform: translateX(4px);
  background: #063663;
}

.answer:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 5px;
}

.answer.is-selected .answer__radio {
  background: var(--cyan);
  box-shadow: inset 0 0 0 7px var(--cyan);
  transform: scale(1.04);
}

.answer.is-selected .answer__label {
  background: var(--cyan);
}

.back-button {
  position: absolute;
  top: 25px;
  left: 28px;
  z-index: 4;
  padding: 5px 8px;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.back-button:hover,
.back-button:focus-visible {
  color: var(--cyan);
}

.progress {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
  width: 100%;
  margin-top: 24px;
}

.progress__segment {
  height: 20px;
  background: var(--paper);
  transition: background-color 260ms ease, transform 260ms ease;
}

.progress__segment.is-complete,
.progress__segment.is-current {
  background: var(--cyan);
}

.progress__segment.is-current {
  transform: scaleY(1.08);
}

.quiz-card.is-changing #quiz-view {
  animation: question-exit 220ms ease both;
}

.quiz-card.is-entering #quiz-view {
  animation: question-enter 300ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.result {
  max-width: 680px;
  margin: 10px auto 0;
  text-align: center;
}

.email-step {
  max-width: 650px;
  margin: 0 auto;
  text-align: center;
}

.email-step h2 {
  margin: 0 0 28px;
  color: var(--navy);
  font-family: var(--display-font);
  font-size: 42px;
  line-height: 1;
}

.email-step > p {
  margin: 0 auto 24px;
  max-width: 600px;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.45;
}

.email-step a,
.result__link a {
  color: inherit;
  font-weight: 700;
  text-underline-offset: 3px;
}

.email-field {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  max-width: 520px;
  min-height: 56px;
  margin: 0 auto;
  color: var(--cyan);
  background: var(--sky);
}

.email-field > span:first-child {
  font-size: 32px;
  line-height: 1;
}

.email-field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  color: var(--navy);
  font-size: 18px;
  border: 0;
  outline: 0;
  background: transparent;
}

.email-field:focus-within {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.email-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 76px;
}

.button {
  min-width: 105px;
  min-height: 46px;
  padding: 10px 22px;
  color: var(--white);
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.button--cyan { background: var(--cyan); }
.button--navy { background: var(--navy); }
.button:hover, .button:focus-visible { filter: brightness(1.12); }
.button:disabled { cursor: wait; opacity: .55; }

.form-error,
.load-error {
  color: #a51d3f !important;
  font-weight: 700;
}

.result__eyebrow {
  margin: 0 0 13px;
  color: var(--cyan);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.result h2 {
  margin: 0 0 18px;
  color: var(--cyan);
  font-family: var(--display-font);
  font-size: 42px;
  line-height: 1;
  text-transform: uppercase;
}

.result p:not(.result__eyebrow) {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.5;
}

.result__description {
  text-align: left;
}

.result__description p,
.result__link {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.5;
}

.result__link {
  margin: 28px 0 44px;
  text-align: left;
}

.result-review__title {
  margin: 0 0 22px;
  color: var(--navy);
  font-family: var(--display-font);
  font-size: 32px;
  line-height: 1.1;
  text-align: left;
}

.result-review {
  display: grid;
  gap: 22px;
  margin-top: 38px;
  text-align: left;
}

.review-item {
  padding: 24px;
  border-left: 5px solid var(--cyan);
  background: var(--white);
}

.review-item__number {
  margin: 0 0 8px !important;
  color: var(--cyan) !important;
  font-size: 13px !important;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.review-item h3 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.4;
}

.review-item__answer {
  margin: 0 0 16px !important;
  padding: 13px 16px;
  color: var(--white) !important;
  font-size: 16px !important;
  font-weight: 600;
  background: var(--navy);
}

.review-item__reflection {
  margin: 0 !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.restart-button {
  margin-top: 15px;
  padding: 14px 26px;
  color: var(--white);
  font-weight: 700;
  border: 0;
  background: var(--navy);
  cursor: pointer;
}

.restart-button:hover,
.restart-button:focus-visible {
  background: var(--cyan);
}

.sr-only {
  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;
}

[hidden] {
  display: none !important;
}

@keyframes queue-arrive-anna {
  0% {
    opacity: 0;
    transform: translate(-220px, 110px) rotate(-13deg) scale(0.78);
  }
  18%,
  76% {
    opacity: 1;
  }
  68% {
    transform: translate(8px, -5px) rotate(1.2deg) scale(1.015);
  }
  82% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes queue-arrive-sintija {
  0% {
    opacity: 0;
    transform: translate(150px, -180px) rotate(14deg) scale(0.76);
  }
  18%,
  76% {
    opacity: 1;
  }
  68% {
    transform: translate(-7px, 7px) rotate(-1.1deg) scale(1.018);
  }
  82% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes queue-arrive-karlis {
  0% {
    opacity: 0;
    transform: translate(190px, 170px) rotate(16deg) scale(0.78);
  }
  18%,
  76% {
    opacity: 1;
  }
  68% {
    transform: translate(-8px, -7px) rotate(-1.2deg) scale(1.018);
  }
  82% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
}

@keyframes card-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes question-exit {
  to {
    opacity: 0;
    transform: translateX(-12px);
  }
}

@keyframes question-enter {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
}

@media (max-width: 700px) {
  .campaign {
    width: min(100%, 402px);
  }

  .visual-intro {
    height: 764px;
  }

  .visual-intro__clean::before {
    top: -90px;
    left: -275px;
    width: 520px;
    height: 720px;
    border-radius: 50%;
    clip-path: none;
  }

  .hero-copy {
    top: 37px;
    left: 30px;
  }

  .hero-logo {
    width: 196px;
    height: auto;
  }

  .hero-copy h1 {
    margin-top: 68px;
    font-size: 45px;
    line-height: 0.98;
  }

  .hero-copy p {
    margin-top: 23px;
    font-size: 15px;
  }

  .queue-visual--anna {
    top: 402px;
    left: calc(50% - 201px + 33px);
    width: 326px;
    height: 312px;
  }

  .queue-visual--sintija,
  .queue-visual--karlis {
    display: none;
  }

  .quiz-section {
    width: 315px;
    max-width: calc(100% - 86px);
    margin-top: 12px;
    margin-bottom: 72px;
  }

  .quiz-card {
    height: auto;
    min-height: 451px;
    padding: 50px 34px 20px 19px;
  }

  .quiz-card--intro {
    padding: 62px 24px 36px;
  }

  .intro-step h2 {
    font-size: 28px;
  }

  .intro-step p {
    font-size: 16px;
  }

  .intro-step__start {
    width: 100%;
  }

  .quiz-card--expanded {
    padding: 58px 20px 28px;
  }

  .quiz-card::before,
  .quiz-card::after {
    display: none;
  }

  .pin {
    top: 12px;
    width: 24px;
    height: 24px;
  }

  legend {
    margin-bottom: 18px;
    font-size: 18px;
    line-height: 1.38;
  }

  .answers {
    gap: 14px;
    margin-left: 26px;
  }

  .answer {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
    min-height: 0;
    color: var(--navy);
  }

  .answer__radio {
    width: 20px;
    height: 20px;
    margin-top: 4px;
    border-width: 1.5px;
  }

  .answer__label {
    display: block;
    min-height: 0;
    padding: 0;
    background: transparent;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.45;
  }

  .answer:hover .answer__label,
  .answer:focus-visible .answer__label,
  .answer.is-selected .answer__label {
    color: var(--cyan);
    background: transparent;
    transform: none;
  }

  .answer.is-selected .answer__radio {
    box-shadow: inset 0 0 0 4px var(--cyan);
  }

  .back-button {
    top: 14px;
    left: 10px;
    font-size: 12px;
  }

  .progress {
    gap: 2px;
    margin-top: 15px;
  }

  .progress__segment {
    height: 9px;
  }

  .result {
    margin-top: 25px;
  }

  .result h2 {
    font-size: 32px;
  }

  .result p:not(.result__eyebrow) {
    font-size: 16px;
  }

  .email-step h2 {
    font-size: 30px;
  }

  .email-step > p {
    font-size: 15px;
  }

  .email-field {
    grid-template-columns: 44px 1fr;
  }

  .email-actions {
    margin-top: 34px;
  }

  .button {
    min-width: 0;
    flex: 1;
  }

  .review-item {
    padding: 18px;
  }
}

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