.mattress {
  margin-bottom: 40px;
}

.mattress .hide {
  display: none !important;
}

.mattress .tab__item {
  font-size: 16px;
}

.tab__item--hidden, .visually-hidden {
  display: none;
}

.mattress__form-screen {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border: none;
  border-bottom: 1px solid #f2f5f8;
}

.mattress__form-screen-title {
  font-size: 25px;
  line-height: 1.5;
  font-weight: 400;
  margin-bottom: 0;
}

.mattress__result .container {
  padding-left: 0;
  padding-right: 0;
}

.mattress__form-screen-subtitle {
  margin-bottom: 20px;
  margin-top: -10px;

  display: block;
  color: #B2B4B7;
}

.mattress__form-options {
  display: flex;
  flex-wrap: wrap;
  margin-left: -20px;
}

.mattress__form-option {
  flex: 0 0 50%;
  padding-left: 20px;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.mattress__form-option:nth-child(2n) {
  margin-right: 0;
}

.mattress__answers-nextBtn .btn {
  width: 100%;
}

.mattress__form-option-label {
  display: block;
}

.mattress__form-option-border {
  display: flex;
  align-items: center;

  width: 100%;
  min-height: 50px;
  padding: 9px 18px;

  font-weight: 600;

  color: #262626;
  background-color: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 3px;

  cursor: pointer;
}

.mattress__form-option-border:hover,
.mattress__form-option-border:focus {
  border-color: #f6d200;
}

.mattress__form-option-border:hover .mattress__form-option-checkmark,
.mattress__form-option-border:focus .mattress__form-option-checkmark {
  display: block;
}

.mattress__form-option-input:checked + .mattress__form-option-border {
  border-color: #f6d200;
}

.mattress__form-option-input:checked
  + .mattress__form-option-border
  .mattress__form-option-checkmark {
  display: block;
}

.mattress__form-option-icon {
  width: 32px;
  height: 32px;
}

.mattress__form-option-text {
  margin-left: 13px;

  user-select: none;
}

.mattress__form-option-checkmark {
  display: none;

  width: 16.35px;
  height: 12px;
  margin-left: auto;

  background-image: url("/images_v2/mattress/checkmark.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.mattress__explanation {
  max-width: 810px;
}

.mattress__explanation-title {
  margin-bottom: 12px;

  font-size: 14px;
  line-height: 20.43px;
  font-weight: 600;
  text-transform: uppercase;
}

.mattress__explanation-screen:not(:first-child) {
  display: none;
}

.mattress__explanation-text p {
  font-size: 14px;
  line-height: 22px;
  font-weight: 400;

  color: #818489;
}

.mattress__explanation-text a {
  color: #0c6de2;
}

.mattress__selection-more-btn {
  padding: 0 20px !important;
}

.mattress__feedback {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;

  max-width: 779px;
  margin-top: 30px;
  padding: 30px 20px;
  margin-bottom: 60px;

  background-color: #f2f5f8;
}

.mattress__feedback-description {
  width: 55%;

  font-size: 18px;
  line-height: 30px;
}

.mattress__feedback-btn {
  width: 42%;
}

.mattress__additional-products {
  margin-bottom: 100px;
}

.mattress__additional-products .container {
  padding-left: 0;
  padding-right: 0;
}

.mattress__additional-products-title {
  margin-bottom: 43px;
}

.mattress__answers {
  position: relative;
  border: 1px solid #eef2f6;
}

.js-matress-next {
  width: 216px;
  margin: auto !important;
}

.js-answers-nextBtn {
  width: 216px;
  display: none !important;
}

@media (max-width: 1400px) {
  .js-answers-nextBtn{
    display: block !important;
  }
}

@media (max-width: 992px) {
  .mattress__answers.is-hidden .mattress__content {
    display: none;
  }
}

.mattress__toggle {
  width: 34px;
  height: 34px;
  background: #fff;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 16px;
  top: 16px;
  transition-property: transform, opacity;
  transition-duration: 0.4s;
  opacity: 1;
}

@media (min-width: 992px) {
  .mattress__toggle {
    display: none;
  }
}

.mattress__toggle.is-hidden {
  opacity: 0;
}

.is-hidden .mattress__toggle {
  transform: rotate(180deg);
}

.mattress__answers-title {
  padding: 23px 15px;

  font-size: 15px;
  line-height: 1.33;
  font-weight: 400;
  text-transform: uppercase;

  background-color: #f5f7f9;
}

.mattress__answers-info {
  padding: 20px 15px;
}

.mattress__answer {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;

  margin-bottom: 12px;
}

.mattress__answer:last-child {
  margin-bottom: 0;
}

.mattress__answer-key, .mattress__answer-value {
  width: 120px;

  font-size: 13px;
  line-height: 1.38;
}

.mattress__answer-key {
  margin-right: 10px;

  color: #818489;
}

.mattress__answers-repeat, .mattress__next-block {
  padding: 30px;
  border-top: 1px solid #eef2f6;
}

.mattress__next-block {
  display: none;
}

.mattress__answers-repeat.is-hidden {
  display: none;
}

.mattress__answers-repeat-btn {
  margin: 0 auto !important;
}

.mattress__banner {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 285px;
  min-height: 342px;
  padding: 30px 28px;

  text-align: center;

  background-color: #eef2f6;
  background-image: url("/images_v2/mattress/banner_kids.png");
  background-repeat: no-repeat;
  background-position: bottom;
  background-size: contain;
}

.mattress__banner:hover, .mattress__banner:focus, .mattress__banner:active {
  color: #262626;
}

.mattress__banner-title {
  margin-bottom: 9px;

  font-size: 22px;
  line-height: 1.36;
  font-weight: 600;
}

.mattress__banner-description {
  margin-bottom: 17px;
  font-size: 10px;
  line-height: 1.7;

  text-align: center;
  text-transform: uppercase;

  color: #818489;
}

.mattress__banner-btn {
  background-color: #ffffff !important;
}

.modal__footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.modal__footer-description {
  width: 270px;
  margin-right: 20px;

  text-align: left;
}

.mattress__footer-chat-btn {
  width: 242px;
}

.tab__end {
  display: none;
}

.tab__row {
  padding-right: 0;
}

.tab__wrapper {
  margin-bottom: 40px;
}

.tab__item.disabled:hover{
  color: #818489;
  cursor: default;
}

@media (max-width: 1440px) and (min-width: 1200px) {
  .mattress .grid--default .grid__aside {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (max-width: 1023px) {
  .grid.grid--default {
    display: block;
  }
}

@media (min-width: 1024px) {
  .grid.grid--default {
    grid-template-columns: auto 350px;
  }
}

@media (max-width: 1025px) {

  .mattress__feedback-description {
    width: 61%;
  }

  .mattress__feedback-btn {
    width: 36%;
  }
}

@media (max-width: 767px) {
  .mattress__form-screen-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .mattress__feedback-description {
    width: 100%;
    margin-bottom: 15px;

    text-align: center;
  }

  .mattress__form-option-border {
    width: 100%;
    margin-right: 0;
  }

  .mattress__feedback-btn {
    width: 250px;
    margin: 0 auto;
  }

  .mattress__answer-key {
    width: 98px;
  }

  .mattress__banner {
    margin: 0 auto;
  }

  .modal__footer-description {
    width: 100%;
    margin-right: 0;
    margin-bottom: 20px;

    text-align: center;
  }

  .mattress__footer-chat-btn {
    width: 100%;
  }

  .modal-form__button .btn {
    width: 100%;
  }

  .mattress__form-screen {
    min-height: 0;
  }

  .mattress__form-option {
    margin-right: 0;
  }

  .mattress__form-options {
    display: block;
    max-width: none;
  }
}

@media (min-width: 768px) {
  .mattress__answers {
    max-width: calc(50% - 10px);
  }

  .mattress__form-screen-subtitle {
    margin-bottom: 55px;
  }

  .mattress__form-screen-title {
    padding-top: 0;
    margin-bottom: 40px;
    display: block;
  }

  .mattress__form-screen-subtitle {
    padding-bottom: 0;
    margin-bottom: 40px;
    margin-top: -40px;
  }

  .mattress__answers-nextBtn .btn {
    width: calc(50% - 10px);
  }
}


@media (min-width: 1400px) {
  .mattress__result .flex-layout--category .flex-layout__item {
    width: 25%;
  }

  .mattress__answers-nextBtn {
    display: none;
  }

  .mattress__next-block {
    display: block;
  }

  .mattress__next-block .btn {
    width: 100%;
  }

  .mattress__next-block.is-hidden{
    display: none;
  }

  .tab_quest .tab__row {
    display: flex;
  }

  .tab_quest .tab__wrapper {
    flex: 1 1 auto;
    margin-bottom: 0;
  }

  .tab_quest .tab__list {
    margin-left: -30px;
    padding-left: 30px;
  }

  .tab_quest .tab__result {
    flex: 0 0 350px;
  }

  .mattress__form-options {
    display: flex;
    flex-wrap: wrap;

    max-width: 590px;
  }

  .mattress__form-screen {
    margin-left: -30px;
    padding-left: 30px;
    padding-right: 10px;
  }

  .mattress__answers {
    max-width: 390px;
  }

  .tab__end {
    padding-right: 30px;
    width: calc(100% - 350px);
  }

  .mattress__additional-products .flex-layout--catalog .flex-layout__item {
    width: 33.3333%;
  }
}