.hamburger_6_wrap {
  --thickness: 2px;
  --gap: 7px;
  --rotate: 45;
  --width: 100%;
}
.w--open .hamburger_6_line {
  transform: scaleX(0);
}
.w--open .hamburger_6_line:first-child {
  transform: translateY(calc(var(--thickness) + var(--gap))) rotate(calc(var(--rotate) * 3 * 1deg));
}
.w--open .hamburger_6_line:last-child {
  transform: translateY(calc(var(--thickness) * -1 + var(--gap) * -1)) rotate(calc(var(--rotate) * 1deg));
}

/* Custom Quiz Styles */

/* =============================================
   БЕГУЩАЯ СТРОКА — Sale Block
   ============================================= */
.sale-block {
  padding-left: 0;
  padding-right: 0;
}

.sale-line {
  display: flex;
  gap: 80px;
  width: max-content;
  white-space: nowrap;
  padding-right: 80px;
}

.sale-marquee-inner {
  display: flex;
  width: max-content;
  animation: saleMarquee 20s linear infinite;
}

.sale-block:hover .sale-marquee-inner {
  animation-play-state: paused;
}

@keyframes saleMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@keyframes saleMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}


.quiz-steps-wrapper {
  position: relative;
  width: 100%;
}

.quiz-step {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.quiz-step.active {
  display: flex !important;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.quiz-nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  width: 100%;
}

.quiz-nav-left {
  display: flex;
  align-items: center;
  gap: 15px;
}

.quiz-nav-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.button-mini-alt {
  background: transparent;
  color: var(--_colors---text50);
  text-transform: uppercase;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s;
}

.button-mini-alt:hover {
  color: var(--_colors---text);
}

.text-next-inline {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 14px;
  line-height: 1.4;
}

.text-next-inline .text-next-icon {
  width: 32px;
  height: 32px;
  background: url('../images/finger.svg') no-repeat center/contain;
}

.quiz-nav-right .button-mini,
.quiz-nav-right .final-submit {
  background-color: var(--_colors---red);
  color: #fff;
  text-transform: uppercase;
  border-radius: 50px;
  justify-content: center;
  align-items: center;
  height: 60px;
  padding: 0 40px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all .5s;
  box-shadow: inset 0 -5px #0003;
  margin: 0;
  /* Override any webflow margins */
}

.quiz-nav-right .button-mini:hover,
.quiz-nav-right .final-submit:hover {
  background-color: var(--_colors---red-dark);
}

.quiz-nav-right .button-mini:disabled,
.quiz-nav-right .final-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Ensure form slides are structured as columns */
.slide {
  position: relative;
  width: 100%;
  min-height: auto;
  align-items: flex-start;
  /* Reset align items if Webflow set it to center */
}

.center-block {
  text-align: center;
  width: 100%;
}

.progress-bar-block {
  width: 100%;
  margin-bottom: 20px;
}

.radio-grid,
.radio-flex,
.form-slide {
  width: 100%;
}

.checkbox-policy-alt {
  cursor: pointer;
}

/* Custom Radio styling */
.radio-button-field {
  cursor: pointer;
  position: relative;
  background-color: var(--_colors---white) !important;
  border-radius: 50px !important;
  display: flex !important;
  align-items: center !important;
  transition: all 0.2s ease;
  padding: 10px 20px 10px 10px !important;
  border: 1px solid transparent;
}

.radio-button-field:hover {
  background-color: #fcfcfd !important;
}

/* Hide native radio input completely but keep accessible */
.radio-button-field input[type="radio"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
  margin: 0 !important;
}

/* Set up label */
.radio-button-field .w-form-label {
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
  width: 100%;
  color: var(--_colors---text) !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  cursor: pointer;
  transition: color 0.2s ease;
}

/* Create custom radio circle via pseudo-element */
.radio-button-field .w-form-label::before {
  content: "";
  display: inline-block;
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background-color: #F8F9FB;
  /* Light grey circle background */
  margin-right: 15px;
  transition: all 0.2s ease;
  /* Light grey check outline */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B919D' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 8 10 16 6 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: 18px;
  background-position: center;
  background-repeat: no-repeat;
}

/* Checked state styles using sibling selector */
.radio-button-field input[type="radio"]:checked~.w-form-label {
  color: #1E2B4B !important;
  /* Dark text */
  font-weight: 600 !important;
}

.radio-button-field input[type="radio"]:checked~.w-form-label::before {
  background-color: #1E2B4B;
  /* Dark blue circle */
  /* White checkmark */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='18 8 10 16 6 12'%3E%3C/polyline%3E%3C/svg%3E");
}

/* =============================================
   MOBILE RESPONSIVE — Quiz
   ============================================= */
@media screen and (max-width: 768px) {

  /* Slide: убираем жёсткую минимальную высоту */
  .slide {
    min-height: auto;
  }

  /* Прогресс-бар и счётчик */
  .progress-bar-block {
    margin-bottom: 12px;
  }

  /* Заголовок вопроса */
  .head-text {
    font-size: 22px;
  }

  /* Сетка вариантов → одна колонка */
  .radio-grid {
    grid-template-columns: 1fr;
  }

  /* Форма отправки: 3 колонки → 1 колонка */
  .radio-grid3 {
    grid-template-columns: 1fr;
  }

  /* Поле телефона + чекбокс → стек */
  .form-slide-down {
    grid-template-columns: 1fr;
  }

  /* Навигационная строка → колонка (кнопка снизу, подсказка сверху) */
  .quiz-nav-row {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    margin-top: 24px;
  }

  .quiz-nav-left {
    justify-content: center;
  }

  .quiz-nav-right {
    flex-direction: row;
    justify-content: flex-end;
    gap: 12px;
  }

  /* Кнопки навигации — уменьшаем высоту и отступы */
  .quiz-nav-right .button-mini,
  .quiz-nav-right .final-submit {
    height: 50px;
    padding: 0 24px;
    font-size: 14px;
    flex: 1;
    max-width: 200px;
  }

  /* Кнопка «Назад» */
  .button-mini-alt {
    font-size: 13px;
  }

  /* Подсказка с иконкой-пальцем */
  .text-next-inline {
    font-size: 13px;
    text-align: center;
    justify-content: center;
  }

  /* Радио-кнопки чуть компактнее */
  .radio-button-field {
    padding: 8px 14px 8px 8px !important;
  }

  .radio-button-field .w-form-label {
    font-size: 14px !important;
  }

  .radio-button-field .w-form-label::before {
    width: 36px;
    height: 36px;
    min-width: 36px;
    margin-right: 10px;
  }
}

@media screen and (max-width: 479px) {

  .head-text {
    font-size: 18px;
  }

  /* На самых маленьких экранах кнопка тянется на всю ширину */
  .quiz-nav-right .button-mini,
  .quiz-nav-right .final-submit {
    max-width: 100%;
    flex: 1;
  }

  /* Подсказка — скрываем, чтобы сэкономить место */
  .text-next-inline {
    display: none;
  }

  /* Кнопки рядом занимают всю строку */
  .quiz-nav-right {
    width: 100%;
  }
}