:root {
  --page-bg: #08080b;
  --card-bg: #0d0c13;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.7);
  --lime: #c8f45d;
  --violet: #7042ff;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page-bg);
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 51% 40%, rgba(65, 41, 139, 0.16), transparent 32%),
    var(--page-bg);
  color: var(--text);
  font-family: var(--font-family);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

.ambient-ribbon {
  position: fixed;
  z-index: 0;
  width: 680px;
  height: 170px;
  border-radius: 50%;
  background: linear-gradient(180deg, #12092e 0%, #2c1766 48%, #101022 100%);
  pointer-events: none;
  opacity: 0.82;
}

.ambient-ribbon--left {
  top: 245px;
  left: -450px;
  transform: rotate(40deg);
}

.ambient-ribbon--right {
  top: 150px;
  right: -455px;
  transform: rotate(-48deg);
  background: linear-gradient(180deg, #170b42 0%, #3f24d5 48%, #101022 100%);
}

.landing {
  position: relative;
  z-index: 1;
  width: min(100%, 1260px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 40px 26px;
}

.landing__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  width: 119px;
  height: auto;
  display: block;
}

.hero {
  display: block;
  margin: -2px auto 26px;
  text-align: center;
}

.sale-mark {
  position: relative;
  width: 270px;
  height: 174px;
  margin: 0 auto -4px;
  display: grid;
  place-items: center;
}

.sale-mark img {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 420px;
  height: 210px;
  object-fit: contain;
  transform: translateX(-50%);
}

.sale-mark span {
  position: relative;
  z-index: 1;
  min-width: 134px;
  padding: 7px 12px 9px;
  border-radius: 6px;
  background: var(--lime);
  color: #000000;
  font-size: 25px;
  font-weight: var(--weight-semibold);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-align: left;
}

.hero h1 {
  max-width: 980px;
  margin: 0 auto;
  color: var(--text);
  font-size: clamp(46px, 5.45vw, 76px);
  font-weight: var(--weight-semibold);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--lime);
}

.hero__subtitle {
  margin: 18px auto 0;
  color: #ffffff;
  font-size: 20px;
  line-height: 1.35;
  opacity: 0.82;
}

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

.choice-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(112, 66, 255, 0.9);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(38, 25, 75, 0.38), transparent 46%),
    var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.choice-card__sticker {
  position: absolute;
  top: 22px;
  left: 24px;
  z-index: 2;
  padding: 8px 14px 9px;
  border-radius: 999px;
  color: #000000;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  letter-spacing: 0.01em;
  transform: rotate(-4deg);
}

.choice-card__sticker--quiz {
  background: var(--lime);
}

.choice-card__sticker--course {
  background: #ff7ab8;
  transform: rotate(4deg);
}

.choice-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.choice-card:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.choice-card__visual {
  height: clamp(210px, 21vw, 278px);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.choice-card__visual img {
  width: 88%;
  height: 100%;
  display: block;
  object-fit: contain;
  transform: translateY(-10px);
}

.choice-card__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 30px 25px;
}

.choice-card__title {
  display: block;
  font-size: clamp(30px, 2.75vw, 40px);
  font-weight: var(--weight-semibold);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.choice-card__description {
  display: block;
  min-height: 68px;
  margin-top: 14px;
  color: var(--muted);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.45;
}

.choice-card__button {
  position: relative;
  min-height: 58px;
  margin-top: 24px;
  padding: 0 27px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 999px;
  background: var(--lime);
  color: #000000;
  font-size: 19px;
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.choice-card__arrow {
  position: absolute;
  right: 27px;
  font-size: 27px;
  font-weight: var(--weight-regular);
  transition: transform 180ms ease;
}

.choice-card:hover .choice-card__arrow {
  transform: translateX(5px);
}

@media (min-width: 821px) and (max-height: 900px) {
  .landing {
    padding-top: 20px;
    padding-bottom: 14px;
  }

  .brand-logo {
    width: 110px;
  }

  .hero {
    margin: -8px auto 12px;
  }

  .sale-mark {
    width: 230px;
    height: 95px;
    margin-bottom: 0;
  }

  .sale-mark img {
    top: -12px;
    width: 300px;
    height: 120px;
  }

  .sale-mark span {
    min-width: 108px;
    padding: 6px 10px 7px;
    font-size: 20px;
  }

  .hero h1 {
    font-size: 52px;
    line-height: 0.96;
  }

  .hero__subtitle {
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.2;
  }

  .choice-card__visual {
    height: 210px;
  }

  .choice-card__content {
    padding: 0 30px 16px;
  }

  .choice-card__title {
    font-size: 34px;
  }

  .choice-card__description {
    min-height: 45px;
    margin-top: 8px;
    font-size: 17px;
    line-height: 1.3;
  }

  .choice-card__button {
    min-height: 50px;
    margin-top: 12px;
    font-size: 18px;
  }
}

@media (max-width: 820px) {
  .landing {
    padding: 24px 20px 30px;
  }

  .hero {
    margin-top: 4px;
  }

  .hero h1 {
    font-size: clamp(42px, 8.4vw, 64px);
  }

  .choice-grid {
    grid-template-columns: 1fr;
  }

  .choice-card__visual {
    height: 300px;
  }

  .choice-card__title {
    font-size: 36px;
  }

  .choice-card__description {
    min-height: 0;
    font-size: 20px;
  }

  .choice-card__arrow {
    right: 55px;
  }
}

@media (max-width: 520px) {
  .ambient-ribbon {
    opacity: 0.54;
  }

  .landing {
    padding: 20px 14px 24px;
  }

  .brand-logo {
    width: 98px;
  }

  .hero {
    margin-bottom: 22px;
  }

  .sale-mark {
    width: 250px;
    height: 148px;
    margin-top: 8px;
  }

  .sale-mark img {
    top: -12px;
    left: 50%;
    width: 360px;
    height: 180px;
  }

  .sale-mark span {
    min-width: 123px;
    padding: 6px 10px 8px;
    font-size: 23px;
  }

  .hero h1 {
    font-size: clamp(39px, 11.5vw, 54px);
  }

  .hero__subtitle {
    margin-top: 14px;
    font-size: 17px;
  }

  .choice-grid {
    gap: 14px;
  }

  .choice-card {
    border-radius: 20px;
  }

  .choice-card__sticker {
    top: 16px;
    left: 17px;
    padding: 7px 11px 8px;
    font-size: 12px;
  }

  .choice-card__visual {
    height: 218px;
  }

  .choice-card__visual img {
    width: 94%;
    height: 108%;
    transform: translateY(-8px);
  }

  .choice-card__content {
    padding: 0 18px 18px;
  }

  .choice-card__title {
    font-size: 30px;
  }

  .choice-card__description {
    margin-top: 10px;
    font-size: 17px;
  }

  .choice-card__button {
    min-height: 54px;
    margin-top: 18px;
    padding: 0 22px;
    font-size: 17px;
  }

  .choice-card__arrow {
    right: 39px;
  }
}

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

.landing-v3 {
  position: relative;
  z-index: 1;
  width: min(100%, 1180px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 28px 40px 34px;
}

.landing-v3__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-v3 {
  max-width: 1100px;
  margin: -8px auto 38px;
  text-align: center;
}

.sale-mark--compact {
  width: 340px;
  height: 128px;
  margin-bottom: 18px;
}

.sale-mark--compact img {
  top: -12px;
  width: 390px;
  height: 155px;
}

.sale-mark--compact span {
  min-width: 140px;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.12;
  text-align: center;
  transform: translate(20px, 3px);
}

.hero-v3 h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(44px, 5vw, 68px);
  font-weight: var(--weight-semibold);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-v3 h1 span {
  color: var(--lime);
}

.hero-v3 p {
  margin: 16px auto 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: var(--weight-medium);
  line-height: 1.35;
}

.offer-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.offer-card {
  position: relative;
  min-width: 0;
  min-height: clamp(256px, 30vh, 290px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(112, 66, 255, 0.9);
  border-radius: 25px;
  background:
    linear-gradient(145deg, rgba(38, 25, 75, 0.38), transparent 46%),
    var(--card-bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.offer-card:hover {
  border-color: var(--lime);
  transform: translateY(-3px);
}

.offer-card:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 4px;
}

.offer-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 38px 24px 22px;
}

.offer-card__title {
  max-width: 15ch;
  font-size: 30px;
  font-weight: var(--weight-semibold);
  line-height: 1.03;
  letter-spacing: -0.035em;
}

.offer-card--course .offer-card__title {
  max-width: none;
}

.offer-card__description {
  max-width: 37ch;
  margin-top: 10px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.4;
}

.offer-card__button {
  min-height: 52px;
  margin-top: auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  background: var(--lime);
  color: #000000;
  font-size: 17px;
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.offer-card__button i {
  font-size: 23px;
  font-style: normal;
  font-weight: var(--weight-regular);
  transition: transform 180ms ease;
}

.offer-card:hover .offer-card__button i {
  transform: translateX(4px);
}

@media (min-width: 821px) and (max-height: 820px) {
  .landing-v3 {
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .hero-v3 {
    margin-top: -4px;
    margin-bottom: 30px;
  }

  .sale-mark--compact {
    width: 320px;
    height: 110px;
  }

  .sale-mark--compact img {
    width: 360px;
    height: 132px;
  }

  .sale-mark--compact span {
    min-width: 110px;
    font-size: 14px;
  }

  .hero-v3 h1 {
    font-size: 52px;
  }

  .hero-v3 p {
    margin-top: 10px;
    font-size: 22px;
  }

  .offer-card {
    min-height: 256px;
  }

  .offer-card__body {
    padding-top: 36px;
    padding-bottom: 18px;
  }

  .offer-card__title {
    font-size: 27px;
  }

  .offer-card__description {
    font-size: 17px;
  }

  .offer-card__button {
    min-height: 50px;
    margin-top: auto;
    font-size: 16px;
  }
}

@media (max-width: 820px) {
  .landing-v3 {
    padding: 24px 20px 30px;
  }

  .hero-v3 {
    margin-top: 0;
  }

  .offer-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .landing-v3 {
    padding: 20px 14px 24px;
  }

  .hero-v3 {
    margin-bottom: 20px;
  }

  .sale-mark--compact {
    width: 330px;
    height: 118px;
    margin-bottom: 24px;
  }

  .sale-mark--compact img {
    width: 350px;
    height: 145px;
  }

  .sale-mark--compact span {
    min-width: 136px;
    font-size: 16px;
  }

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

  .hero-v3 p {
    font-size: 20px;
  }

  .offer-panel {
    gap: 14px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .offer-card {
    min-height: 310px;
    border-radius: 20px;
  }

  .offer-card__body {
    padding: 28px 18px 18px;
  }

  .offer-card__title {
    font-size: 27px;
  }

  .offer-card__description {
    font-size: 17px;
  }
}

.version-badge {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: var(--weight-semibold);
  line-height: 1;
}

.version-badge--dark {
  border: 1px solid #ffffff;
  color: #ffffff;
}

.version-badge--light {
  position: absolute;
  top: 24px;
  right: 24px;
  background: #000000;
  color: #ffffff;
}

.quiz-page {
  min-height: 100svh;
  place-items: center;
  padding: var(--space-xl) var(--space-md);
  background: #ffffff;
}

.quiz-card {
  position: relative;
  width: min(100%, 700px);
  padding: 43px;
  border: 1px solid #d9dde3;
  border-radius: var(--radius-md);
  background: #ffffff;
}

.quiz-progress {
  display: grid;
  gap: var(--space-sm);
  color: #000000;
  font-size: var(--small-size);
  font-weight: var(--weight-medium);
}

.quiz-progress > span:first-child {
  opacity: 0.62;
}

.quiz-progress__track {
  height: 4px;
  overflow: hidden;
  display: block;
  border-radius: var(--radius-pill);
  background: #d9dde3;
}

.quiz-progress__track i {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: #d6001c;
}

.quiz-heading {
  margin-top: 43px;
}

.quiz-heading__label {
  margin: 0 0 var(--space-sm);
  color: #000000;
  font-size: var(--small-size);
  font-weight: var(--weight-medium);
  opacity: 0.62;
}

.quiz-heading h1 {
  max-width: 17ch;
  margin: 0;
  color: #000000;
  font-size: clamp(31px, 4.5vw, 43px);
  font-weight: var(--weight-semibold);
  line-height: 1.08;
  letter-spacing: var(--heading-letter-spacing);
}

.answer-list {
  margin-top: 29px;
  display: grid;
  gap: var(--space-md);
}

.answer-option {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-md);
  padding: 22px;
  border: 1px solid #d9dde3;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #000000;
  text-decoration: none;
  cursor: pointer;
  transition: border-color var(--motion-fast) var(--motion-easing), background-color var(--motion-fast) var(--motion-easing);
}

.answer-option:hover {
  border-color: #d6001c;
  background: #fff9fa;
}

.answer-option:focus-visible {
  outline: 3px solid #d6001c;
  outline-offset: 3px;
}

.answer-option__radio {
  width: 24px;
  height: 24px;
  display: block;
  border: 2px solid #d9dde3;
  border-radius: 50%;
  background: #ffffff;
  transition: border-color var(--motion-fast) var(--motion-easing);
}

.answer-option:hover .answer-option__radio,
.answer-option:focus-visible .answer-option__radio {
  border: 7px solid #d6001c;
}

.answer-option__copy {
  min-width: 0;
  display: grid;
  gap: var(--space-xs);
}

.answer-option__copy strong {
  font-size: 18px;
  font-weight: var(--weight-semibold);
  line-height: 1.25;
}

.answer-option__copy > span {
  color: #000000;
  font-size: 16px;
  font-weight: var(--weight-regular);
  line-height: 1.45;
  opacity: 0.65;
}

.answer-option__arrow {
  color: #000000;
  font-size: 24px;
  font-weight: var(--weight-medium);
  transition: transform var(--motion-fast) var(--motion-easing);
}

.answer-option:hover .answer-option__arrow {
  transform: translateX(4px);
}

.quiz-hint {
  margin: var(--space-lg) 0 0;
  color: #000000;
  font-size: var(--small-size);
  text-align: center;
  opacity: 0.62;
}

@media (max-width: 620px) {
  .quiz-page {
    place-items: start center;
    padding: 0;
  }

  .quiz-card {
    min-height: 100svh;
    padding: var(--space-xl) var(--space-md);
    border: 0;
    border-radius: 0;
  }

  .version-badge--light {
    top: 20px;
    right: 16px;
  }

  .quiz-progress {
    padding-right: 94px;
  }

  .quiz-heading {
    margin-top: var(--space-xl);
  }

  .quiz-heading h1 {
    font-size: 32px;
  }

  .answer-option {
    min-height: 101px;
    padding: 14px;
  }

  .answer-option__copy strong {
    font-size: 17px;
  }

  .answer-option__copy > span {
    font-size: 16px;
  }

  .answer-option__arrow {
    display: none;
  }
}
