/* Reset and Base Styles */
@import url("reset.css");

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fff;
}

/* Quiz Container */
.quiz {
  min-height: 100vh;
  position: relative;
}

.quiz__step {
  display: none;
  min-height: 100vh;
  padding: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease-in-out;
}

.quiz__step--active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.quiz__container {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 40px);
}

.quiz__content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.quiz__content--form {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 60px 40px;
}

.quiz__content--final {
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

/* Typography */
.quiz__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.quiz__title--blue {
  color: #3052d8;
  font-size: 2rem;
  margin-bottom: 40px;
}

.quiz__title-accent {
  color: #3052d8;
}

.quiz__subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

.quiz__description {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* Layout for Step 1 */
.quiz__text-content {
  flex: 1;
  max-width: 600px;
}

.quiz__image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-left: 60px;
}

.quiz__hero-img {
  position: absolute;
  top: 0;
  right: 0;
  max-width: 40%;
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* Buttons */
.quiz__button {
  background: #3052d8;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 16px 32px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.quiz__button:hover {
  background: #4a62e6;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(91, 115, 255, 0.3);
}

.quiz__button:active {
  transform: translateY(0) scale(0.98);
}

.quiz__button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(91, 115, 255, 0.3);
}

.quiz__button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.quiz__button--secondary {
  background: #f0f2f5;
  color: #666;
  padding: 12px;
  width: 48px;
  height: 48px;

  border-radius: 50%;
}

.quiz__button--secondary:hover {
  background: #e4e7ed;
  color: #333;
}

.quiz__button--primary {
  background: #3052d8;
}

.quiz__button--large {
  padding: 20px 40px;
  font-size: 1.1rem;
  width: 100%;
}

/* Stats */
.quiz__stats {
  margin-top: 60px;
}

.quiz__stats-text {
  font-size: 1rem;
  color: #666;
  margin-bottom: 24px;
}

.quiz__stats-cards {
  display: flex;
  gap: 16px;
}

.quiz__stats-cards--footer {
  margin-top: 40px;
}

.quiz__stats-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: #e1e8f8;
  border: 1px solid #e6ebff;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.quiz__stats-card:hover {
  background: #f0f4ff;
  border-color: #d4e2ff;
  transform: translateY(-1px);
}

.quiz__stats-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  background: white !important;
  padding: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.quiz__stats-icon img {
  width: 32px;
  height: 32px;
}

.quiz__stats-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3052d8;
  line-height: 1.4;
}

/* Forms */
.quiz__form {
  width: 100%;
}

.quiz__form-grid {
  display: grid;
  gap: 16px;
}

.quiz__form-flex {
  display: flex;
  gap: 15px;
}

.quiz__form-grid--education {
  grid-template-columns: repeat(2, 1fr);
}

.quiz__form-grid--regions {
  grid-template-columns: repeat(2, 1fr);
}

.quiz__form-grid--work {
  grid-template-columns: repeat(3, 1fr);
}

/* Radio Buttons */
.quiz__radio {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: #f8f9fa;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.quiz__radio:hover {
  background: #f0f4ff;
  border-color: #d4e2ff;
  transform: translateY(-1px);
}

.quiz__radio:has(.quiz__radio-input:checked) {
  background: #f0f4ff;
  border-color: #3052d8;
}

.quiz__radio:has(.quiz__radio-input:focus) {
  box-shadow: 0 0 0 3px rgba(91, 115, 255, 0.2);
}

.quiz__radio-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.quiz__radio-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #ddd;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all 0.2s ease;
  margin-top: 2px;
}

.quiz__radio-input:checked+.quiz__radio-custom {
  border-color: #3052d8;
  background: #3052d8;
}

.quiz__radio-input:checked+.quiz__radio-custom::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

.quiz__radio-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #333;
  font-weight: 400;
}

/* Search */
.quiz__search {
  width: 100%;
  margin-bottom: 32px;
}

.quiz__search-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.quiz__search-input:focus {
  outline: none;
  border-color: #3052d8;
  background: white;
  box-shadow: 0 0 0 3px rgba(91, 115, 255, 0.1);
}

/* Contact Form */
.quiz__form--contact {
  max-width: 400px;
  margin: 0 auto;
}

.quiz__form-row {
  margin-bottom: 20px;
}

.quiz__input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.quiz__input:focus {
  outline: none;
  border-color: #3052d8;
  background: white;
  box-shadow: 0 0 0 3px rgba(91, 115, 255, 0.1);
}

.quiz__input::placeholder {
  color: #999;
}

/* Final Step Layout */
.quiz__final-header {
  margin-bottom: 40px;
  width: 100%;
}

.quiz__footer {
  margin-top: 40px;
  text-align: center;
}

.quiz__footer-text {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* Navigation */
.quiz__navigation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
  padding: 24px 40px;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.quiz__navigation-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
}

.quiz__progress {
  display: flex;
  align-items: center;
}

.quiz__progress-text {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .quiz__progress-text {
    display: none;
  }

  .quiz__text-content {
    padding-top: 77%;
  }

  .quiz__stats-cards {
    flex-wrap: wrap;
  }

  .quiz__stats-card {
    width: 100%;
    justify-content: space-between;
  }

  .quiz__step {
    padding: 16px;
  }

  .quiz__container {
    min-height: calc(100vh - 32px);
  }

  .quiz__content {
    flex-direction: column;
    padding: 14px;
    margin-bottom: 16px;
  }

  .quiz__container--reverse {
    flex-direction: column-reverse;
  }

  .quiz__content--form {
    padding: 0px;
  }

  .quiz__title {
    font-size: 2rem;
  }

  .quiz__title--blue {
    font-size: 1.5rem;
    margin-bottom: 24px;
  }

  .quiz__image {
    padding-left: 0;
    margin-top: 32px;
  }

  .quiz__hero-img {
    /* position: static; */
    max-width: 300px;
  }

  .quiz__stats {
    margin-top: 40px;
    text-align: center;
  }

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

  .quiz__form-grid--education {
    grid-template-columns: 1fr;
  }

  .quiz__form-grid--regions {
    grid-template-columns: 1fr;
  }

  .quiz__form-grid--work {
    grid-template-columns: 1fr;
  }

  .quiz__radio {
    padding: 16px;
  }

  .quiz__navigation {
    flex-direction: column;
    gap: 20px;
    padding: 20px 24px;
  }

  .quiz__navigation-buttons {
    width: 100%;
    justify-content: space-between;
  }

  .quiz__button--primary {
    width: 100%;
  }

  .quiz__final-header {
    margin-bottom: 32px;
  }

  .quiz__final-header .quiz__title {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .quiz__subtitle {
    font-size: 0.9rem;
  }

  .quiz__footer-text {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .quiz__title {
    font-size: 2rem;
  }

  .quiz__description {
    font-size: 1rem;
  }

  .quiz__button {
    /* padding: 14px 24px; */
    font-size: 1.1rem;
    max-width: 200px;
  }

  .w100 {
    max-width: 100%;
  }

  .quiz__button--large {
    padding: 18px 32px;
  }

  .quiz__radio {
    padding: 14px;
  }

  .quiz__radio-text {
    font-size: 0.9rem;
  }

  .quiz__stats-label {
    font-size: 0.85rem;
    text-align: left;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.quiz__button {
  transition: all 0.3s ease;
}

.quiz__button--disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #ccc !important;
}

.quiz__button--active {
  opacity: 1;
  cursor: pointer;
  background-color: #4f46e5 !important;
  /* или ваш основной цвет */
}

.quiz__button--active:hover {
  background-color: #3730a3 !important;
  /* темнее для ховера */
}

.job-card {
  color: #313C4E;
  padding: 20px;
  border-radius: 12px;
  max-width: 600px;
  font-family: Arial, sans-serif;
}

.job-title {
  font-size: 22px;
  font-weight: 700;
  color: #2979ff;
  margin-bottom: 8px;
}

.tags {
  margin-bottom: 8px;
  list-style: desc;
}

.tag {
  display: inline-block;
  background: #2b2d33;
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  margin-right: 6px;
}

.remote {
  background: #3d5afe;
}

.no-exp {
  background: #009688;
}

.rating {
  font-size: 14px;
  margin-bottom: 15px;
  color: #fbc02d;
}

.subtitle {
  font-weight: 600;
  margin-bottom: 10px;
}

.tasks,
.benefits {
  margin: 0 0 15px 18px;
}

.benefits li {
  margin-bottom: 6px;
}

.cta {
  color: #2979ff;
  font-weight: 600;
  margin-top: 15px;
}