:root {
  --font-family: "Montserrat", sans-serif;

  /* Цветовая палитра */
  --color-primary: #c5a47e;
  --color-primary-hover: #b39167;
  --color-dark: #1a1a1a;
  --color-gray: #515151;
  --color-white: #fff;

  /* Размеры */
  --spacing-xs: 10px;
  /*--spacing-sm: 16px;*/
  --spacing-md: 20px;
  --spacing-lg: 30px;
  --spacing-xl: 40px;
  /*--spacing-xxl: 64px;*/

  --border-radius: 8px;
  --transition: all 0.3s linear;
}

* {
  box-sizing: border-box;
}

.overlay-new {
  opacity: 0;
  visibility: hidden;

  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 70%);
  z-index: 9999;
  transition: 0.3s all;
}

.quiz-wrapper {
  opacity: 0;
  visibility: hidden;
  max-width: 1170px;
  height: 910px;
  max-height: 90vh;
  width: 100%;
  overflow-y: auto;

  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
}

.quiz-wrapper::-webkit-scrollbar {
  width: 8px;
}

.quiz-wrapper::-webkit-scrollbar-track {
  background-color: #ededed;
  border-radius: 10px;
}

.quiz-wrapper::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c5a47e;
}

.my-modal--gray {
  max-width: 900px;
  height: fit-content;
}

.my-modal.active,
.overlay-new.active {
  opacity: 1;
  visibility: visible;
}

/* Логотип */
.logo {
  text-align: center;
}

/* Шаги квиза */
.quiz-step {
  display: none;
  animation: fadeIn 0.5s ease-in-out;

  background: var(--color-white);
  border: 1px solid #dee2e6;
  padding: 40px;
  /*min-height: 100vh;*/
}

.quiz-step.active {
  display: flex;
  flex-direction: column;
}

#thank-you {
  height: fit-content;
}

.quiz-step-content {
  flex: 1;
  overflow-y: auto;
}

.quiz-step-content::-webkit-scrollbar {
  width: 8px;
}

.quiz-step-content::-webkit-scrollbar-track {
  background-color: #ededed;
  border-radius: 10px;
}

.quiz-step-content::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #c5a47e;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Приветственный экран */
.welcome-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: clamp(1.25rem, 0.781rem + 1.88vw, 2.188rem);
  line-height: 100%;
  text-align: center;
  color: #1a1a1a;

  margin: var(--spacing-xl) 0 var(--spacing-md);
}

.welcome-subtitle {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: clamp(0.938rem, 0.719rem + 0.88vw, 1.375rem);
  line-height: 130%;
  text-align: center;
  color: #1a1a1a;
}

.welcome-features {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.feature {
  font-weight: 600;
  font-size: 16px;
  line-height: 125%;
  letter-spacing: 0.03em;
  color: #515151;

  padding-bottom: clamp(0.313rem, 0.156rem + 0.63vw, 0.625rem);
  border-bottom: 1px solid #cdcdcd;
}

.welcome-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xs);
  margin-top: var(--spacing-xl);
}

.gallery-item {
  overflow: hidden;
  aspect-ratio: 265/392;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.btn-start {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 328px;
  padding: 20px 70px;
  height: 69px;
}

/* Прогресс бар */
.progress-container {
  margin-top: var(--spacing-md);
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: #ededed;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.progress-fill {
  height: 100%;
  background: #c4161c;
  border-radius: 10px;
  transition: width 0.5s ease;
  width: 0%;
}

.progress-text {
  padding-top: 15px;
  text-align: end;
  font-size: 16px;
  line-height: 140%;
  color: #b8b8b8;
}

/* Вопросы */
.question-title {
  font-weight: 500;
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  line-height: 120%;
  text-align: center;
  color: var(--color-dark);
  margin: var(--spacing-md) 0 var(--spacing-xs);
}

#thank-you .question-title {
  font-size: clamp(1.25rem, 0.781rem + 1.88vw, 2.188rem);
}

.question-subtitle {
  font-size: clamp(0.938rem, 0.844rem + 0.38vw, 1.125rem);
  color: var(--color-dark);
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

/* Сетка опций (карточки) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xs) var(--spacing-xs);
}

.step-3 .options-grid,
.step-4 .options-grid {
  padding-right: 20px;
  max-height: 500px;
}

.style-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.option-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 0 !important;
}

.option-card input[type="radio"],
.option-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.card-image::after {
  content: "";
  position: absolute;
  bottom: 15px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: transparent;
  color: var(--color-white);
  border: 0.8px solid #fff;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  z-index: 3;
}

.option-card input:checked + .card-image::after {
  background: var(--color-primary);
  background-image: url("../../images/quiz/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  border-color: var(--color-primary);
  color: var(--color-white);
}

.card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.my-modal--gray .card-image img {
  height: 200px;
}

.option-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 10px;
  text-align: left;
  z-index: 2;
  transition: var(--transition);
}

.card-title {
  display: block;
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  color: #fff;

  margin-bottom: 3px;
}

.card-subtitle {
  font-size: 16px;
  line-height: 100%;
  color: #fff;
}

/* Карточки товаров (шаг 2) */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.25rem, 0.625rem + 2.5vw, 2.5rem)
    clamp(0.625rem, -0.313rem + 3.75vw, 2.5rem);
}

.my-modal--gray .products-grid {
  gap: 10px;
}

.quiz-step .product-card {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  position: relative;
  padding: 0;
  margin: 0;
  height: auto;
}

.my-modal--gray .product-card {
  border: 1px solid #d5d5d5;
  padding: 10px 20px 10px 10px;
  gap: 5px;

  align-items: flex-start;
  flex-direction: column;
}

.my-modal--gray .product-card:last-child {
  grid-column: span 2;
  min-height: 96px;
}

.product-card__inner {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

.product-card input[type="checkbox"],
.product-card input[type="radio"] {
  width: 24px;
  height: 24px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c5a47e;
  background: #fff;
}

.my-modal--gray .product-card input[type="checkbox"],
.my-modal--gray .product-card input[type="radio"] {
  width: 20px;
  height: 20px;
}

.product-card input[type="checkbox"]:checked,
.product-card input[type="radio"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("../../images/quiz/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.quiz-step .product-card img {
  width: clamp(3.75rem, 1.875rem + 7.5vw, 7.5rem);
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.my-modal--gray .product-card img {
  width: 45px;
}

.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-weight: 600;
  font-size: clamp(0.938rem, 0.844rem + 0.38vw, 1.125rem);
  line-height: 110%;
  color: var(--color-dark);
  display: block;
}

.my-modal--gray .product-title {
  font-weight: 500;
  font-size: 15px;
}

.product-description {
  display: block;
  margin: 0;
  margin-top: 5px;
  font-size: clamp(0.813rem, 0.781rem + 0.13vw, 0.875rem);
  line-height: 110%;
  color: var(--color-dark);
  max-width: 275px;
}

.product-description:empty {
  display: none;
}

/* Бюджет (шаг 5) */
.budget-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  margin: 0 auto;
}

.my-modal--gray .budget-grid {
  gap: 10px;
}

.budget-section-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 130%;
  margin-bottom: 5px;
  color: #1a1a1a;
}

.budget-options {
  display: flex;
  flex-direction: column;
}

.budget-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: 25px 0;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.my-modal--gray .budget-option {
  padding: 10px 0;
  gap: 10px;
  margin: 0;
}

.budget-option input[type="checkbox"],
.budget-option input[type="radio"] {
  width: 30px;
  height: 30px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c5a47e;
  background: #fff;
}

.my-modal--gray .budget-option input[type="checkbox"],
.my-modal--gray .budget-option input[type="radio"] {
  width: 20px;
  height: 20px;
}

.budget-option input[type="checkbox"]:checked,
.budget-option input[type="radio"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("../../images/quiz/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.budget-label {
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  color: #1a1a1a;
  flex: 1;
}

.my-modal--gray .budget-label {
  font-weight: 500;
  font-size: 15px;
}

/* Выбор сроков (шаг 6) */
.timeline-options {
  display: flex;
  flex-direction: column;
}

.timeline-option {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: 25px 0;
  cursor: pointer;
  transition: var(--transition);
  background: #fff;
}

.timeline-option input[type="checkbox"],
.timeline-option input[type="radio"] {
  width: 30px;
  height: 30px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c5a47e;
  background: #fff;
}

.timeline-option input[type="checkbox"]:checked,
.timeline-option input[type="radio"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("../../images/quiz/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.timeline-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.timeline-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 100%;
  margin-bottom: 3px;
  color: var(--color-dark);
}

.timeline-subtitle {
  font-size: 16px;
  line-height: 100%;
  color: var(--color-dark);
}

/* Список опций (чекбоксы/радио) */
.options-list {
  max-width: 600px;
  margin: 0 auto var(--spacing-xl);
  padding: 0 var(--spacing-md);
}

.option-item {
  display: flex;
  align-items: center;
  padding: var(--spacing-md);
  border: 2px solid var(--color-border);
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.option-item:hover {
  border-color: var(--color-primary);
  background: var(--color-light-gray);
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  width: 24px;
  height: 24px;
  margin-right: var(--spacing-md);
  cursor: pointer;
  accent-color: var(--color-primary);
}

.option-label {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-dark);
}

.option-item:has(input:checked) {
  border-color: var(--color-primary);
  background: rgba(201, 165, 120, 0.05);
}

/* Форма контактов (Шаг 7) */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px 30px;
}

.my-modal--gray .contact-form {
  max-width: 100%;
}

.materials-group {
  margin-top: 30px;
  grid-column: span 2;
  margin-bottom: 15px;
}

.grid-form__hint {
  grid-column: span 2;
  margin-top: 0 !important;
}

.form-group:not(:last-child) {
  margin-bottom: var(--spacing-md);
}

.my-modal--gray .form-group:not(:last-child) {
  margin: 0;
}

.form-group label {
  display: flex;
  font-size: 16px;
  font-weight: 400;
  line-height: 100%;
  color: #1a1a1a;
}

.label-hint {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-gray);
  margin-top: 3px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  transition: var(--transition);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #1a1a1a;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"] {
  padding: 20px 15px;
  border-bottom: 1px solid #5a5a5a;
  color: #1a1a1a;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group input[type="text"]:focus,
.form-group input[type="tel"]:focus,
.form-group input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
}

.form-group textarea {
  resize: vertical;
  border-bottom: 1px solid #5a5a5a;
  padding: 20px 15px;
  box-sizing: border-box;
  color: #1a1a1a;
}

.form-group-title {
  display: block;
  line-height: 1;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: var(--spacing-md);
}

/* Кастомный Select */
.custom-select-new {
  position: relative;
  width: 100%;
  cursor: pointer;
  user-select: none;
}

.custom-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 15px;
  border-bottom: 1px solid #5a5a5a;
  background: #fff;
  transition: var(--transition);
}

.custom-select-trigger:hover {
  border-color: var(--color-primary);
}

.custom-select-new.open .custom-select-trigger {
  border-color: var(--color-primary);
}

.custom-select-value {
  font-size: 16px;
  color: #1a1a1a;
}

.custom-select-value.placeholder {
  color: #999;
}

.custom-select-arrow {
  transition: transform 0.3s ease;
  color: #666;
  flex-shrink: 0;
}

.custom-select-new.open .custom-select-arrow {
  transform: rotate(180deg);
}

.quiz-error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: quiz-error-fadeIn 0.3s ease-out;
}

.quiz-error-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.quiz-error-content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  max-width: 450px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: quiz-error-slideUp 0.3s ease-out;
  z-index: 10001;
}

.quiz-error-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.quiz-error-title {
  font-size: 24px;
  font-weight: 600;
  color: #1a202c;
  text-align: center;
  margin: 0 0 12px 0;
}

.quiz-error-message {
  font-size: 16px;
  color: #4a5568;
  text-align: center;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.quiz-error-button {
  width: 100%;
  padding: 14px 24px;
  background: #c5a47e;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-error-button:hover {
  background: #b8946a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(197, 164, 126, 0.4);
}

.quiz-error-button:active {
  transform: translateY(0);
}

@keyframes quiz-error-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes quiz-error-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 480px) {
  .quiz-error-content {
    padding: 24px;
    max-width: 90%;
  }

  .quiz-error-title {
    font-size: 20px;
  }

  .quiz-error-message {
    font-size: 14px;
  }
}

.custom-select-dropdown {
  position: absolute;
  bottom: calc(100% + 0px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #d9d9d9;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.custom-select-new.open .custom-select-dropdown {
  max-height: 262px;
  opacity: 1;
  overflow-y: auto;
}

.custom-select-option {
  padding: 10px 15px;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 16px;
  color: #1a1a1a;
}

.custom-select-option:hover {
  background: rgba(197, 164, 126, 0.1);
}

.custom-select-option.selected {
  background: rgba(197, 164, 126, 0.15);
  font-weight: 600;
}

/* Мессенджеры */
.messenger-options {
  display: flex;
  gap: var(--spacing-lg);
  flex-wrap: wrap;
}

.messenger-option {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.messenger-option input[type="checkbox"] {
  width: 30px;
  height: 30px;
  margin: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #c5a47e;
  background: #fff;
  flex-shrink: 0;
  margin-right: 20px;
}

.messenger-option input[type="checkbox"]:checked {
  background: var(--color-primary);
  border-color: var(--color-primary);
  background-image: url("../../images/quiz/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.messenger-label {
  display: block;
  margin-right: 5px;
  font-size: 16px;
  font-weight: 400;
  color: #1a1a1a;
  white-space: nowrap;
}

.messenger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telegram-icon svg,
.whatsapp-icon svg,
.viber-icon svg {
  display: block;
}

.checkbox-group {
  margin-bottom: var(--spacing-lg);
  padding: 0 var(--spacing-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.checkbox-group label {
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--color-gray);
}

.checkbox-group input[type="checkbox"] {
  margin-right: var(--spacing-sm);
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

/* Навигация */
.navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;

  margin-top: var(--spacing-lg);
}

/* Кнопки */
.my-modal .btn-primary,
.my-modal .btn-secondary {
  padding: 14px 30px;
  border: none;
  border-radius: 0;
  color: #7c7c7c;

  cursor: pointer;
  transition: var(--transition);
  text-transform: none;
  letter-spacing: 0.5px;

  font-weight: 400;
  font-size: 18px;
}

.my-modal .btn-primary {
  background: var(--color-primary);
  color: #fff;
  outline: none;
}

.my-modal .btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: 0 5px 15px rgba(197, 164, 126, 0.4);
  transform: translateY(-3px);
  border: none;
}

.my-modal .btn-primary:active {
  transform: translateY(0);
}

.my-modal .btn-secondary {
  background: transparent;
}

.my-modal .btn-secondary:hover {
  transform: translateX(-5px);
}

.btn-back {
  position: relative;
  padding: 0 !important;
  border-bottom: 1px dashed #7c7c7c !important;
  margin-left: 32px;
}

.btn-back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -32px;
  transform: translateY(-50%);
  display: inline-flex;
  width: 24px;
  height: 20px;
  background-image: url("../../images/quiz/chevron-down.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.btn-restart {
  width: 100%;
  max-width: 300px;
}

.btn-gray {
  background: #eaeaea;
  color: #7c7c7c;
  border: none;
  transition: all 0.3s ease;
  outline: none;
  box-shadow: none;
}

.btn-gray:hover {
  background: var(--color-primary);
  color: #fff;
}

.navigation-center {
  margin-top: 50px;
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
  gap: 60px;
}

/* Экран благодарности */
.thank-you-content {
  text-align: center;
  padding: var(--spacing-xxl) var(--spacing-md);
  max-width: 700px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: var(--color-success);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  margin: 0 auto var(--spacing-lg);
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }

  to {
    transform: scale(1);
  }
}

.thank-you-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--color-dark);
}

.thank-you-text {
  font-size: 16px;
  color: var(--color-gray);
  margin-bottom: var(--spacing-md);
  line-height: 1.7;
}

.my-modal--gray .quiz-step-header {
  background-image: url("../../images/quiz/header.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 20px;
}

.my-modal--gray .quiz-step {
  padding: 0;
  border: none;
}

.quiz-step-finish {
  height: fit-content;
}

.my-modal--gray .question-title,
.my-modal--gray .question-subtitle {
  color: #fff;
  max-width: 700px;
  margin: 0 auto;
}

.my-modal--gray .question-title {
  margin-bottom: 15px;
  margin-top: 10px;
}

.my-modal--gray .question-subtitle {
  margin-bottom: 20px;
}

.my-modal--gray .question-list {
  list-style: none;
  padding: 0;
}

.question-list {
  display: flex;
  gap: 25px;
}

.question-list li {
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
  border-bottom: 1px solid #cdcdcd;
  padding: 0px 0px 10px;
}

.my-modal--gray .quiz-step-content {
  padding: 15px;
  padding-bottom: 0;
}

.my-modal--gray .quiz-step-footer {
  padding: 15px 35px;
  padding-top: 0;
}

.my-modal--gray .progress-container {
  margin-top: 10px;
}

.custom-select-option--main {
  font-weight: 600;
}

.custom-select-option--sub {
  padding-left: 35px;
}

.title-step {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 20px;
  line-height: 130%;
  color: #1a1a1a;
}

.sub-title-step {
  display: flex;
  align-items: center;
  gap: 5px;

  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  color: #1a1a1a;
  margin-bottom: 15px;
}

.input-quiz {
  font-weight: 400;
  font-size: 15px;
  border: none;
  color: #7c7c7c;
  border-bottom: 1px solid #5a5a5a;
  padding: 20px 15px;
  width: 100%;
  outline: none;
}

textarea.input-quiz {
  font-family: inherit;
  resize: none;
  min-height: 60px;
  overflow: hidden;
}

.input-quiz:focus {
  border-bottom: 1px solid var(--color-primary);
}

.title-step--margin-top {
  margin-top: 30px;
}

.download-inner {
  margin-top: 30px;
}

.download-inner__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.download-inner__title {
  font-weight: 600;
  font-size: 16px;
  color: #1a1a1a;
}

.download-inner__info {
  font-weight: 400;
  font-size: 14px;
  color: #1a1a1a;
}

.info-icon {
  display: inline-flex;
  /*margin-left: 10px;*/
  font-weight: 400;
  font-size: 12px;
  border-radius: 500px;
  width: 16px;
  height: 16px;
  background: #c5a47e;
  color: #fff;
  text-align: center;
  justify-content: center;
  line-height: 16px;
}

.area-upload {
  margin-top: 15px;
  border: 1px solid #d5d5d5;
  background: #fffcf8;
  padding: 20px;

  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  align-items: center;
}

.area-upload__title {
  margin: 20px 0 10px;

  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: 0.02em;
  text-align: center;
  color: #1a1a1a;
  max-width: 700px;
}

.area-upload__info {
  font-weight: 500;
  font-size: 16px;
  line-height: 120%;
  letter-spacing: 0.02em;
  color: #c5a47e;
  margin-bottom: 10px;
}

.area-upload__format {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #7c7c7c;
}

.area-upload {
  cursor: pointer;
  transition: all 0.3s ease;
}

.area-upload:hover {
  border-color: #c5a47e;
  background: #fffaf5;
}

.area-upload.dragover {
  border-color: #c5a47e;
  background: #fffaf5;
  border-width: 2px;
}

.files-preview {
  margin-top: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 80px));
  gap: 10px;
  max-width: 100%;
}

.files-preview--hidden {
  display: none;
}

.file-item {
  position: relative;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  width: 80px;
  height: 80px;
}

.file-item__preview {
  width: 100%;
  height: 100%;
  position: relative;
  background: #f5f5f5;
  padding: 5px;
}

.file-item__preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.file-item__info {
  display: none;
}

.file-item__name {
  display: none;
}

.file-item__size {
  display: none;
}

.file-item__remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  padding: 0;
}

.file-item__remove:hover {
  background: rgba(0, 0, 0, 0.9);
}

.title-step--margin-top {
  margin-top: 30px;
}

.dimensions-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 20px;
  gap: 40px;
}

.dimension-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.dimension-input {
  border: none;
  border-bottom: 1px solid #5a5a5a;
  background: transparent;
  padding: 10px 15px;
  font-weight: 400;
  font-size: 15px;
  line-height: 130%;
  color: #1a1a1a;
  width: 100%;
  outline: none;
  text-align: left;
}

.dimension-input::placeholder {
  color: #1a1a1a !important;
}

.dimension-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dimension-input[type="number"] {
  -moz-appearance: textfield;
}

.dimension-input::placeholder {
  color: #7c7c7c;
}

.dimension-unit {
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: #1a1a1a;
  white-space: nowrap;

  position: absolute;
  top: 50%;
  right: -18px;
  transform: translateY(-50%);
}

.dimensions-hint {
  margin-top: 15px;
  font-weight: 400;
  font-size: 15px;
  line-height: 130%;
  color: #7c7c7c;
}

.my-modal--gray .dimensions-hint {
  margin-top: 10px;
}

.dimension-input-group {
  position: relative;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #5a5a5a;
  padding: 10px 15px;
  margin-right: 18px;
}

.dimension-input {
  border: none;
  font-size: 16px;
  width: 100%;
  padding: 0;
  color: #1a1a1a;
  outline: none;
  appearance: textfield;
  -moz-appearance: textfield;
}

.dimension-input::-webkit-outer-spin-button,
.dimension-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.dimension-controls {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 10px;
}

.dimension-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 20px;
}

.dimension-btn:focus {
  border: none !important;
  outline: none !important;
  transform: scale(1.1);
}

.dimension-btn:hover svg path {
  fill: #b39167;
}

/* Product Text Input */
.product-text-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #5a5a5a;
  padding: 10px 15px;
  font-size: 14px;
  color: #7c7c7c;
  outline: none;
  background: transparent;
}

textarea.product-text-input {
  font-family: inherit;
  resize: none;
  height: auto;
  min-height: 40px;
  overflow: hidden;
}

.product-text-input:focus {
  border-bottom-color: var(--color-primary);
}

.product-text-input::placeholder {
  color: #999;
}

.my-modal--gray .quiz-thank {
  padding: 40px 50px;
  background: #5a5a5a;

  text-align: center;
}

.quiz-thank__title {
  margin-top: 50px;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 700;
  font-size: 26px;
  line-height: 138%;
  text-transform: uppercase;
  text-align: center;
  color: #ebebeb;
}

.quiz-thank__list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;

  margin-bottom: 25px;
}

.quiz-thank__item {
  display: flex;
  gap: 15px;
  justify-content: center;
  align-items: center;

  font-weight: 600;
  font-size: 18px;
  line-height: 130%;
  color: #ebebeb;
}

.quiz-thank__content {
  margin: 0 auto;
  max-width: 400px;
  text-align: left;
  width: 100%;
}

.btn-submit-finish {
  margin-top: 15px;
  margin-bottom: 25px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 30px;
}

.quiz-thank__checkbox label {
  font-weight: 500;
  font-size: 13px;
  line-height: 130%;
  color: #ebebeb;
  margin: 0;
}

.quiz-thank__checkbox:first-child {
  margin-bottom: 10px;
}

.quiz-thank__text {
  font-weight: 400;
  font-size: 14px;
  line-height: 130%;
  color: #e5e3e3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.quiz-thank__sub-title {
  margin-top: 50px;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: 20px;
  line-height: 130%;
  text-align: center;
  color: #fff;
}

.quiz-thank .welcome-gallery {
  margin-top: 0 !important;
}

.quiz-thank__checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quiz-thank__checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border: 0.5px solid #ebebeb !important;
  background: transparent !important;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.quiz-thank__checkbox input[type="checkbox"]:checked {
  background-color: transparent !important;
  border-color: #ebebeb !important;
  background-image: url("../../images/quiz/check.svg") !important;
  background-size: 12px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.custom-select {
  margin-top: 15px;
}

/* Адаптивность */
@media (max-width: 1024px) {
}

@media (max-width: 768px) {
  .quiz-wrapper {
    /*overflow: auto;*/
    height: 100%;
  }

  .welcome-features {
    gap: 5px;
  }

  .btn-start {
    height: 48px;
  }

  .welcome-features {
    margin: 20px 0;
  }

  .welcome-gallery {
    margin-top: 20px;
  }

  #welcome-screen {
    padding: 0;
    padding-top: 25px;
  }

  .welcome-title,
  .welcome-subtitle,
  .welcome-features,
  .btn-start {
    padding: 0 15px;
  }

  .btn-start {
    width: 100%;
    max-width: calc(100% - 30px);
    margin: 0 auto;
  }

  .welcome-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item:nth-child(3),
  .gallery-item:nth-child(4) {
    display: none;
  }

  .welcome-title {
    margin-top: 15px;
  }

  .logo-img {
    max-width: 120px;
  }

  .quiz-step {
    padding: 15px;
  }

  .question-subtitle {
    margin-bottom: 25px;
  }

  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(1, 1fr);
    padding-right: 20px;
  }

  .budget-grid {
    grid-template-columns: repeat(1, 1fr);
    padding-right: 20px;
  }

  .budget-option,
  .timeline-option {
    padding: 0;
  }

  .budget-options,
  .timeline-options {
    gap: 20px;
  }

  .budget-option,
  .timeline-option {
    gap: 10px;
  }

  .budget-label,
  .timeline-title {
    font-size: 15px;
    font-weight: 500;
  }

  .budget-section-title {
    margin-bottom: 20px;
  }

  .budget-option input[type="checkbox"],
  .timeline-option input[type="checkbox"],
  .messenger-option input[type="checkbox"],
  .budget-option input[type="radio"],
  .timeline-option input[type="radio"] {
    width: 20px;
    height: 20px;
  }

  .messenger-option input[type="checkbox"] {
    margin-right: 10px;
  }

  .timeline-subtitle {
    font-size: 14px;
  }

  .messenger-label {
    font-size: 15px;
  }

  .telegram-icon svg,
  .whatsapp-icon svg,
  .viber-icon svg {
    height: 30px;
    width: 30px;
  }

  .form-group textarea {
    height: 100px;
    padding: 10px;
  }

  .navigation-center {
    flex-direction: column-reverse;
    gap: 20px;
  }

  .btn-restart,
  .btn-close {
    max-width: 100%;
    padding: 14px 30px !important;
  }

  .my-modal--gray .question-list {
    display: none;
  }

  .my-modal--gray .question-subtitle {
    margin-bottom: 0;
  }

  .my-modal--gray .quiz-step-header {
    padding: 15px;
  }

  .title-step {
    font-size: 16px;
  }

  .download-inner {
    margin-top: 20px;
  }

  .download-inner__title {
    font-size: 15px;
    line-height: 100%;
  }

  .download-inner__row {
    row-gap: 10px;
  }

  .download-inner__info {
    font-size: 12px;
  }

  .area-upload {
    margin-top: 10px;
  }

  .area-upload svg {
    width: 30px;
    height: 30px;
  }

  .area-upload__title {
    font-size: 14px;
    margin-top: 10px;
  }

  .area-upload__info {
    font-size: 14px;
  }

  .area-upload__format {
    font-size: 12px;
  }

  .dimensions-inputs {
    grid-template-columns: repeat(1, 1fr);
    row-gap: 15px;
  }

  .dimension-input-group {
    padding: 3.5px 15px;
  }

  .my-modal--gray .quiz-step-footer {
    padding: 15px;
    padding-top: 0;
  }

  .my-modal--gray .products-grid {
    padding-right: 25px;
    max-height: 270px;
    overflow-y: auto;
  }

  .my-modal--gray .products-grid::-webkit-scrollbar {
    width: 8px;
  }

  .my-modal--gray .products-grid::-webkit-scrollbar-track {
    background-color: #ededed;
    border-radius: 10px;
  }

  .my-modal--gray .products-grid::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c5a47e;
  }

  .my-modal--gray .product-card:last-child,
  .materials-group,
  .grid-form__hint {
    grid-column: span 1;
  }

  .product-text-input {
    padding: 8px 15px;
  }

  .my-modal--gray .product-card {
    padding: 5px 20px 5px 10px;
  }

  .title-step--margin-top {
    margin-top: 20px;
  }

  .input-quiz {
    padding: 10px;
  }

  .grid-form {
    grid-template-columns: repeat(1, 1fr);
  }

  .quiz-thank__title {
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
  }

  .my-modal--gray .quiz-thank {
    padding: 15px;
    text-align: left;
  }

  .quiz-thank__list {
    flex-direction: column;
    align-items: flex-start;
    row-gap: 15px;
  }

  .quiz-thank__item {
    font-size: 14px;
  }

  .quiz-thank__item svg {
    width: 20px;
    height: 20px;
  }

  .quiz-thank__checkbox input[type="checkbox"] {
    border: 0, 53px solid #ebebeb;
  }

  .quiz-thank__sub-title {
    font-size: 15px;
    margin-top: 20px;
  }

  .first-step {
    padding: 0 !important;
  }
}

@media (max-width: 480px) {
  .options-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .card-image img {
    display: none;
  }

  .card-content {
    position: relative;
    padding: 0;
    padding-left: 35px;
    min-height: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 5px;
  }

  .card-subtitle {
    color: #1a1a1a;
  }

  .card-title {
    color: #1a1a1a;
    font-weight: 500;
  }

  .card-image::after {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    border: 0.67px solid #c5a47e;
  }

  .options-grid {
    padding-right: 20px;
  }

  .card-title {
    font-size: 15px;
    /*margin-bottom: 0;*/
  }

  .card-subtitle {
    font-size: 14px;
  }

  .navigation {
    margin-top: 15px;
  }

  .btn-back {
    font-size: 0 !important;
    border: none !important;
    width: 24px;
    height: 24px;
    margin-left: 0;
    margin-right: 15px;
  }

  .btn-back::before {
    left: 0;
  }

  .my-modal .btn-primary {
    padding: 10px 30px !important;
    font-size: 15px;
  }

  #step-1 .question-title {
    max-width: 250px;
    margin: 0 auto;
  }

  #contact-form {
    padding-right: 20px;
  }

  .form-group input[type="text"],
  .form-group input[type="tel"],
  .custom-select-trigger,
  .form-group input[type="email"] {
    padding: 10px;
  }

  .materials-group {
    margin-top: 15px;
    margin-bottom: 0;
  }

  .messenger-options {
    gap: 20px;
  }

  .form-group-title {
    font-size: 15px;
  }

  #thank-you {
    height: 100%;
  }

  .progress-text {
    font-size: 14px;
    padding-top: 10px;
  }

  .sub-title-step {
    font-size: 15px;
  }

  .my-modal--gray .budget-section-title {
    font-size: 15px;
    margin: 20px 0 10px;
  }

  .dimensions-hint {
    font-size: 12px;
  }

  .btn-submit-finish {
    padding: 20px 30px;
  }

  .quiz-thank__text svg {
    width: 16px;
    min-width: 16px;
    height: 16px;
  }

  .my-modal--gray .question-title {
    font-size: 18px;
    margin-bottom: 5px;
  }

  .my-modal--gray .question-subtitle {
    font-size: 12px;
  }

  .custom-select-new {
    margin-top: 10px;
  }

  .custom-select-new.open .custom-select-dropdown {
    max-height: 265px;
  }

  .my-modal--gray .products-grid {
    max-height: 235px;
  }

  .my-modal--gray .budget-option {
    padding: 5px 0;
  }

  .my-modal--gray .quiz-step-content {
    padding: 10px;
    margin: 5px;
  }

  .btn-submit-finish {
    white-space: nowrap;
  }

  .btn-close {
    white-space: nowrap;
    padding: 14px 10px !important;
  }

  .quiz-step-finish {
    height: 100%;
  }

  .contact-form {
    /*padding-right: 20px;*/
  }

  .quiz-wrapper {
    max-height: 100%;
  }

  .quiz-wrapper::-webkit-scrollbar {
    width: 6px;
  }

  .quiz-wrapper::-webkit-scrollbar-track {
    background-color: #ededed;
    border-radius: 10px;
  }

  .quiz-wrapper::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: #c5a47e;
  }

  .step-3 .options-grid,
  .step-4 .options-grid,
  .step-2 .products-grid,
  .step-5 .budget-grid {
    max-height: 350px;
  }

  .quiz-step {
    min-height: 100dvh;
}
}
