:root {
  --bg-main: #d9d6b8;
  --bg-panel: #d8d5b7;
  --text-main: #4b4b4b;
  --text-soft: #5e5e5e;
  --text-dark: #474747;
  --white: #ffffff;
  --black: #111111;
  --button-bg: #F48646;
  --button-bg-hover: #aaa179;
  --radio-border: #6a6a5d;
  --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
}

img,
picture {
  display: block;
  max-width: 100%;
}

button,
input {
  font-family: inherit;
}

.quiz-start {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 54% 46%;
}

.quiz-start__image {
  height: 100vh;
  overflow: hidden;
}

.quiz-start__image picture,
.quiz-start__image img {
  width: 100%;
  height: 100%;
}

.quiz-start__image img {
  object-fit: cover;
  object-position: center center;
}

.quiz-start__content {
  background: var(--bg-panel);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 42px;
}

.quiz-start__inner {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 70px;
}

.quiz-start__brand {
  display: flex;
  justify-content: flex-end;
}

.quiz-start__brand img {
  width: 110px;
  height: auto;
  object-fit: contain;
}

.quiz-start__text {
  margin-top: 0;
}

.quiz-start__text h1 {
  font-size: 4rem;
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.quiz-start__text p {
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 400;
  color: var(--text-dark);
  max-width: 300px;
}

.quiz-start__form {
  margin-top: 0;
}

.quiz-start__form h2 {
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 18px;
}

.quiz-start__options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 42px;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  position: relative;
  width: fit-content;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-custom {
  width: 16px;
  height: 16px;
  border: 1.6px solid var(--radio-border);
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.radio-custom::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dark);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
}

.radio-option input:checked + .radio-custom::after {
  transform: translate(-50%, -50%) scale(1);
}

.radio-label {
  font-size: 0.98rem;
  line-height: 1;
  color: var(--text-dark);
  font-weight: 400;
}

.quiz-start__button {
  min-height: 54px;
  border: none;
  border-radius: 999px;
  background: var(--button-bg);
  color: var(--black);
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    background 0.25s ease,
    transform 0.25s ease;
  box-shadow: var(--shadow-soft);
}

.quiz-start__button:hover {
  background: var(--button-bg);
  transform: translateY(-1px);
}

.quiz-start__button-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quiz-start__button-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

@media (max-width: 991px) {
  .quiz-start {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .quiz-start__image {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    min-height: unset;
    max-height: none;
    overflow: hidden;
  }

  .quiz-start__image picture,
  .quiz-start__image img {
    width: 100%;
    height: 100%;
  }

  .quiz-start__image img {
    object-fit: cover;
    object-position: center 20%;
  }

  .quiz-start__content {
    min-height: auto;
    padding: 16px 20px 28px;
  }

  .quiz-start__inner {
    min-height: auto;
    max-width: 420px;
    gap: 14px;
    justify-content: flex-start;
  }

  .quiz-start__brand {
    justify-content: center;
    margin-top: 0;
  }

  .quiz-start__brand img {
    width: 92px;
    margin: 0 auto;
  }

  .quiz-start__text {
    text-align: center;
  }

  .quiz-start__text h1 {
    font-size: 2.7rem;
    line-height: 0.96;
    margin-bottom: 10px;
  }

  .quiz-start__text p {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.15;
  }

  .quiz-start__form {
    margin-top: 4px;
  }

  .quiz-start__form h2 {
    text-align: center;
    font-size: 0.95rem;
    margin-bottom: 14px;
  }

  .quiz-start__options {
    gap: 10px;
    margin-bottom: 26px;
    align-items: flex-start;
    width: fit-content;
    margin-inline: auto;
  }

  .radio-option {
    gap: 8px;
  }

  .radio-label {
    font-size: 0.95rem;
  }

  .quiz-start__button {
    width: 100%;
    min-height: 50px;
    font-size: 0.84rem;
    padding: 12px 18px;
  }
}

.radio-option--disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.radio-option--disabled .radio-custom {
  border-color: #838383;
}

.radio-option--disabled .radio-label {
  color: #838383;
}

.quiz-start__button.is-loading {
  pointer-events: none;
  opacity: 0.9;
}

.quiz-start__button.is-loading > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.quiz-start__button.is-loading > span:first-child::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: #000;
  border-radius: 50%;
  animation: spinBtn 0.7s linear infinite;
}

@keyframes spinBtn {
  to {
    transform: rotate(360deg);
  }
}