.quiz-block {
  margin-top: clamp(100px, 5.2vw, 100px);
  background: var(--card);
}

.quiz-form {
  position: relative;
  width: var(--container);
  min-height: 495px;
  margin: 0 auto;
}

.step-badge {
  margin: 0 16px;
  padding: 20px 0;
  display: block;
}
.step-badge__text {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(255, 97, 30, 0.15);
  border-radius: 100px;
  color: rgba(255, 97, 30, 1);
  font-weight: 600;
}
.quiz-step {
  display: none;
  min-height: 495px;
  grid-template-columns: minmax(330px, 560px) minmax(620px, 700px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(48px, 6.8vw, 130px);
}

.quiz-step.is-active {
  display: grid;
}

.quiz-copy {
  max-width: 510px;
}

.quiz-title {
  color: var(--text);
  font-size: var(--fs-35);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.quiz-title .accent {
  color: var(--orange);
}

.quiz-subtitle {
  max-width: 390px;
  margin: 20px 0 0;
  color: var(--text);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 1.2;
}

.quiz-copy h3 {
  margin: 0 0 29px;
  color: var(--text);
  font-size: clamp(22px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 1.2;
}

.quiz-copy p,
.quiz-copy li {
  color: var(--text);
  font-size: var(--fs-18);
  line-height: 1.2;
}

.quiz-copy ul {
  display: grid;
  gap: 12px;
  max-width: 430px;
  margin: 0;
  padding-left: 24px;
}

.quiz-copy .orange-line {
  display: block;
  color: var(--orange);
}

.quiz-panel {
  width: min(700px, 100%);
}

.quiz-progress {
  width: 100%;
  margin-bottom: 38px;
}

.quiz-progress-title {
  margin: 0 0 12px;
  color: var(--text);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
}

.quiz-progress-title--center {
  text-align: center;
}

.quiz-progress-track {
  position: relative;
  width: 100%;
  height: 12px;
}

.quiz-progress-track::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: #CED0CE;
}

.quiz-progress-dot {
  position: absolute;
  top: 0;
  left: var(--dot);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #CED0CE;
  transform: translateX(-50%);
  cursor:pointer;
}

.quiz-progress-dot.is-active::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.quiz-step-grid {
  display: grid;
  grid-template-columns: minmax(320px, 379px) 240px;
  align-items: center;
  gap: clamp(38px, 3.65vw, 70px);
}

.quiz-fields {
  display: grid;
  gap: 15px;
}

.quiz-row {
  display: grid;
  grid-template-columns: auto 163px;
  align-items: center;
  gap: 17px;
}

.quiz-row--depth {
  gap: 10px;
}

.quiz-row--length {
  gap: 26px;
}

.quiz-label {
  color: #011522;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.quiz-select {
  width: 163px;
  height: 29px;
  padding: 4px 42px 5px 20px;
  border: 0;
  border-radius: 40px;
  background: #FFFFFF;
  color: rgba(1, 21, 34, 0.5);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #011522 50%), linear-gradient(135deg, #011522 50%, transparent 50%);
  background-position: calc(100% - 28px) 12px, calc(100% - 20px) 12px;
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.quiz-select.is-customized {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}

.quiz-custom-select {
  position: relative;
  width: 163px;
}

.quiz-custom-select__button {
  position: relative;
  width: 100%;
  height: 29px;
  padding: 5px 15px;
  border: 0;
  border-radius: 40px;
  background: #FFFFFF;
  color: rgba(1, 21, 34, 0.5);
  font: inherit;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
}
.quiz-custom-select__button img {
  margin-right: 0;
}

.quiz-custom-select__button.is-selected {
  color: #011522;
}

.quiz-custom-select.is-open img {
  transform: rotate(-180deg);
}

.quiz-custom-select__value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quiz-custom-select__list {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 50;
  display: none;
  max-height: 220px;
  overflow: auto;
  padding: 8px 0;
  border-radius: 20px;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(1, 21, 34, 0.16);
}

.quiz-custom-select.is-open .quiz-custom-select__list {
  display: block;
}

.quiz-custom-select__option {
  display: block;
  width: 100%;
  padding: 8px 18px;
  border: 0;
  background: transparent;
  color: #011522;
  font: inherit;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
}

.quiz-custom-select__option:hover,
.quiz-custom-select__option:focus-visible,
.quiz-custom-select__option.is-selected {
  background: rgba(255, 97, 30, 0.1);
}

.quiz-select:focus-visible,
.quiz-custom-select__button:focus-visible,
.quiz-option:focus-within .quiz-radio-mark,
.contact-option:focus-within,
.placement-option:focus-within .placement-card,
.quiz-button:focus-visible,
.upload-label:focus-within {
  outline: 2px solid rgba(255, 97, 30, 0.45);
  outline-offset: 3px;
}

.shelf-count {
  display: grid;
  gap: 20px;
  margin-top: 20px;
}

.shelf-count-title,
.quiz-group-title {
  color: #011522;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
}

.shelf-options {
  display: flex;
  align-items: center;
  gap: 20px;
}

.quiz-option {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #011522;
  font-size: var(--fs-16);
  line-height: 1.2;
  cursor: pointer;
}

.quiz-option--stack {
  flex-direction: column;
  gap: 4px;
  width: 37px;
  text-align: center;
}

.quiz-option input,
.placement-option input,
.contact-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.quiz-radio-mark {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(1, 21, 34, 0.8);
  border-radius: 50%;
  background: #FFFFFF;
}

input:checked + .quiz-radio-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.placement-option input:checked ~ .placement-meta .quiz-radio-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--orange);
}

.quiz-visual {
  display: grid;
  justify-items: center;
  align-self: start;
  margin-top: 3px;
}

.dimension-shelf {
  width: 204px;
  height: auto;
}

.shelf-note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 207px;
  min-height: 36px;
  margin-top: 5px;
  padding: 5px 10px;
  background: var(--dark-blue);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.2;
  text-align: center;
}

.material-grid {
  display: grid;
  grid-template-columns: minmax(310px, 360px) minmax(230px, 285px);
  gap: clamp(34px, 4vw, 58px);
  align-items: center;
}

.material-controls {
  display: grid;
  gap: 26px;
  align-self: start;
}

.material-options {
  display: grid;
  gap: 14px;
}

.material-images {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 22px;
  min-height: 230px;
}

.material-images img {
  display: block;
  object-fit: contain;
}

.material-images img:first-child {
  width: 167px;
}

.quiz-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 30px;
}

.quiz-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 205px;
  height: 49px;
  padding: 15px 40px;
  border: 1px solid var(--orange);
  border-radius: 30px;
  background: var(--orange);
  color: #FFFFFF;
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.quiz-button.quiz-button--mobile, .quiz-actions--mobile, .block--mobile{
  display:none!important;
}

.quiz-button:hover {
  transform: translateY(-1px);
}

.quiz-button--ghost {
  min-width: 128px;
  background: transparent;
  color: var(--orange);
}

.quiz-button--arrow {
  min-width: 309px;
  gap: 12px;
  padding-right: 0;
  border: 0;
  background: transparent;
}

.quiz-button--arrow .quiz-button-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 255px;
  height: 49px;
  border-radius: 30px;
  background: var(--orange);
}

.quiz-arrow-circle {
  position: relative;
  flex: none;
  width: 49px;
  height: 49px;
  border-radius: 50%;
  background: var(--orange);
}

.quiz-arrow-circle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 17px solid #FFFFFF;
  transform: translate(-38%, -50%);
}

.placement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 151px));
  gap: 19px;
  align-items: start;
}

.placement-option {
  display: grid;
  gap: 20px;
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 1.05;
  cursor: pointer;
}

.placement-card {
  display: grid;
  place-items: center;
  width: 151px;
  height: 151px;
  overflow: hidden;
  border-radius: 10px;
  background: #CED0CE;
}

.placement-card img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.placement-meta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.placement-card .bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 113px;
  height: 28px;
  padding: 5px 14px;
  border-radius: 30px;
  background: #FFFFFF;
  color: var(--text);
  font-size: var(--fs-15);
  line-height: 1.2;
}

.upload-label {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--orange);
  cursor: pointer;
}

.upload-label input {
  position: absolute;
  width: 1px!important;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.upload-icon {
  width: 20px;
  height: 20px;
  color: var(--orange);
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 235px));
  gap: 16px;
}

.extra-card {
  display: grid;
  align-content: start;
  gap: 26px;
  min-height: 134px;
  padding: 24px 20px;
  border-radius: 15px;
  background: #FFFFFF;
}

.extra-card h3 {
  margin: 0;
  color: var(--text);
  font-size: var(--fs-16);
  font-weight: 600;
  line-height: 1;
}

.extra-options {
  display: flex;
  align-items: center;
  gap: 24px;
}

.quiz-step--contact {
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: center;
  gap: 10px;
  padding-top: 60px;
  text-align: center;
}

.quiz-step--contact .quiz-panel {
  width: min(700px, 100%);
  //margin-left: min(320px, 18vw);
}

.contact-title {
  max-width: 670px;
  margin: 0 auto 51px;
  color: var(--text);
  font-size: clamp(22px, 1.46vw, 28px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.contact-title .accent {
  color: var(--orange);
  font-weight: 400;
}

.quiz-contact-fields {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
  width: min(400px, 100%);
  margin: 0 auto 28px;
  text-align: left;
  z-index: 9999;
  background: #fff;
  padding: 60px 30px;
  border-radius: 30px;
  min-height: 500px;
}
.quiz-result-modal{
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  flex-direction: column;
  justify-content: center;
  width: 500px;
  margin: 0 auto 28px;
  text-align: left;
  z-index: 9999;
  background: #fff;
  padding: 60px 30px;
  border-radius: 30px;
  height: 500px;
}

.quiz-modal{
  display: none;
}

.quiz-contact-fields .close{
  position: absolute;
  top: 5%;
  right: 5%;
}
.kviz-error {
  display: block;
  color: red;
  font-weight: 400;
}
.quiz-contact-input {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(1, 21, 34, 0.14);
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 1.2;
}

.quiz-contact-input:focus-visible {
  outline: 2px solid rgba(255, 97, 30, 0.45);
  outline-offset: 2px;
}

.quiz-policy {
  font-size: 13px;
  line-height: 1.35;
}
.quiz-policy__wrapper{
  margin-bottom: 15px;
  position: relative;
}
.quiz-policy__wrapper span{
  line-height: 1.6;
}

.quiz-policy input {
  position: absolute;
  opacity: 0;
}
.quiz-policy label {
  position: relative;
  cursor: pointer;
  display: inline-block;
  padding-left: 30px;
}

.quiz-policy label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 5px;
  border: 1px solid var(--text);
}

.quiz-policy label::after {
  content: "✓";
  position: absolute;
  left: 3px;
  top: -5px;
  font-size: 20px;
  color: white;
  opacity: 0;
  transition: 0.2s;
}

.quiz-policy input:checked + label::before {
  background: var(--orange);
}

.quiz-policy input:checked + label::after {
  opacity: 1;
}

.quiz-policy a {
  color: var(--orange);
}
.quiz-contact-form .contact-title {
  margin-bottom: 10px;
}

.kviz-result__icon {
  background: var(--orange);
  width: 78px;
  height: 78px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  color: #fff;
  font-size: 40px;
  border-radius: 15px;
}
.kviz-result {
  text-align: center;
}
.kviz-result h3 {
  font-weight: 600;
  color: var(--dark-blue);
}
.kviz-result p {
  color: var(--dark-blue);
}
.kviz-result .shelf-note {
  padding: 10px;
  width: 209px;
  font-size: 16px;
}
.quiz-input-block {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 25px;
  width: min(910px, 100%);
  margin: 0 auto;
}

.contact-option {
  position: relative;
  display: grid;
  cursor: pointer;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 18px 12px 62px;
  border-radius: 10px;
  background: #FFFFFF;
  box-shadow: -1px 0 3px rgba(1, 21, 34, 0.05), 1px 2px 4px rgba(1, 21, 34, 0.1);
  color: var(--text);
  font-size: var(--fs-16);
  line-height: 1.2;
  white-space: nowrap;
}

.contact-card img {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
}

.contact-option input:checked + .contact-card {
  box-shadow: 0 0 0 1px rgba(255, 97, 30, 0.35), -1px 0 3px rgba(1, 21, 34, 0.05), 1px 2px 4px rgba(1, 21, 34, 0.1);
}

.contact-actions {
  justify-content: center;
  margin-top: 72px;
}

@media (max-width: 900px) {
  .quiz-form {
    min-height: auto;
  }

  .quiz-step {
    min-height: auto;
    grid-template-columns: 1fr;
    margin: 0 15px;
  }

  .quiz-panel,
  .quiz-step--contact .quiz-panel {
    width: 100%;
    margin-left: 0;
  }

  .quiz-step-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .quiz-visual {
    justify-self: center;
  }

  .placement-grid,
  .extra-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .placement-card {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .quiz-contact-fields {
    grid-template-columns: 1fr;
  }
  .quiz-result-modal{
    width: 100%;
  }
}

@media (max-width: 560px) {
  .quiz-block {
    margin-left: 10px;
    margin-right: 10px;
    border-radius: 20px;
	margin-top: 40px;
  }
  .quiz-form {
    min-height: auto;
    width: 100%;
  }
  .quiz-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .quiz-select {
    width: 100%;
  }

  .quiz-custom-select {
    width: 100%;
  }

  .extra-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    margin-bottom: 30px;
  }

  .contact-actions {
    flex-wrap: wrap;
  }

  .quiz-button,
  .quiz-button--ghost,
  .quiz-button--arrow,
  .quiz-button--arrow .quiz-button-text {
    width: 100%;
    min-width: 0;
  }

  .quiz-button--arrow {
    display: grid;
    grid-template-columns: 1fr 49px;
  }
  .material-images img:first-child, .material-images img:last-child {
    width: 50%;
  }
  .quiz-progress {
    margin-bottom: 23px;
  }
  .quiz-step {
    gap: 30px;
  }
  .quiz-label {
    font-size: var(--fs-15);
  }
  .quiz-custom-select__button, .quiz-custom-select__option {
    font-size: var(--fs-18);
  }
  .quiz-custom-select__button {
    padding: 17.5px 20px;
    height: 54px;
  }
  .shelf-options {
    padding: 0 9.5px;
	justify-content: space-between;
  }
  .quiz-option--stack {
    width: auto;
  }
  .quiz-visual {
    justify-self: center;
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 20px;
    padding: 25px;
    justify-content: space-between;
    width: 100%;
  }
  .shelf-note {
    max-width: 155px;
	margin-top: 0;
	padding: 17px 15px;
	border-radius: 10px;
	width: auto;
  }
  .dimension-shelf {
	max-width: 98px;
	width: auto;
	height: auto;
	margin-left: 0;
  }
  .quiz-actions {
    margin-top: 0;
    margin-bottom: 20px;
  }
  .quiz-button {
    font-size: var(--fs-18);
    height: auto;
    min-height: 49px;
    padding: 0;
  }
  .quiz-actions--mobile, .block--mobile{
    display:flex!important;
  }
  .quiz-actions--desktop, .block--desktop{
    display:none!important;
  }
  p.shelf-count-title {
    margin-bottom: 0;
  }
  .quiz-copy h3 {
    margin: 0 0 20px;
  }
  .quiz-step p {
    margin-bottom: 12px;
    line-height: 160%;
  }
  .container .quiz-step ul > li {
    margin: 0 0 0 21px;
    line-height: 120%;
  }
  .material-controls {
    gap: 23px;
  }
  .material-images {
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 230px;
    background-color: #fff;
    border-radius: 20px;
  }
  .material-images img:first-child, .material-images img:last-child {
    max-height: 178.54px;
  }
  .quiz-button--ghost {
    max-width: 129px;
  }
  .placement-grid, .quiz-progress {
    margin-bottom: 30px;
  }
  .extra-grid {
    gap: 13px;
  }
  .extra-card {
    padding: 20px 33px 20px 20px;
    gap: 20px;
    min-height: auto;
  }
  .extra-card h3 {
    font-size: var(--fs-18);
  }
  .extra-options {
    gap: 33px;
  }
  .quiz-actions {
    gap: 10px;
  }
  .quiz-step--contact {
    text-align: left;
    padding-top: 0;
  }
  .contact-title {
    margin: 0;
    text-align: left;
  }
  .quiz-step--contact .quiz-progress {
    margin-bottom: 0;
  }
  .contact-grid {
    gap: 13px;
    margin-bottom: 0;
  }
  .contact-actions{
    width:100%
  }
  .contact-actions .quiz-button--ghost {
    max-width: unset;
    order: 1;
  }
  .contact-card{
    border-radius: 100px;
  }
}

@media (max-width: 350px) {
	.quiz-visual {
        padding: 18px;
        gap: 10px;
    }
}