.hidden {
  display: none !important;
}

.disabled {
  pointer-events: none;
  opacity: 0.2;
}

.visually-hidden {
  position: absolute;
  margin: -1px;
  border: 0;
  padding: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

body.no-scroll {
  height: 100vh;
  overflow: hidden;
}

.constructor {
  font-family: 'Poppins', sans-serif;
  text-align: left;
}

.constructor *,
.constructor *::before,
.constructor *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.wrapper {
  margin: 0 auto;
  max-width: 1400px;
}

.button {
  min-height: 45px;
  background: #fcf299;
  border: none;
  border-radius: 33px;
  padding: 10px 20px;
  -webkit-box-shadow: 0px 2px 0px #ead83d;
          box-shadow: 0px 2px 0px #ead83d;
  font-weight: 600;
  font-size: 15px;
  -webkit-transition: background-color 0.3s, color 0.3s, opacity 0.3s, -webkit-box-shadow 0.3s;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s, -webkit-box-shadow 0.3s;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s, box-shadow 0.3s;
  transition: background-color 0.3s, color 0.3s, opacity 0.3s, box-shadow 0.3s, -webkit-box-shadow 0.3s;
  cursor: pointer;
}

.button:disabled {
  -webkit-box-shadow: none;
          box-shadow: none;
  background: #f5f5f5;
  color: #dadada;
  opacity: 0.7;
  cursor: default;
}

.breadcrumbs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
  color: #676767;
}

.breadcrumbs__link {
  color: inherit;
}

.breadcrumbs__link:hover {
  -webkit-text-decoration: none;
  text-decoration: none;
}

.breadcrumbs__separator {
  padding: 0 10px;
}

.constructor__top {
  max-width: 800px;
  margin-top: 10px;
}

.constructor__title {
  margin-bottom: 25px;
  font-size: 64px;
}

.constructor__description {
  margin: 0;
  font-size: 24px;
  line-height: 1.5;
}

.constructor__progressbar {
  margin: 60px 0 55px;
}

.progressbar {
  list-style-position: inside;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  padding: 0;
}

.progressbar__item {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
  margin-right: 20px;
  padding: 25px;
  border-bottom: 4px solid #d9d9d9;
  color: #676767;
  font-size: 32px;
  -webkit-transition: border-color 0.3s, color 0.3s;
  transition: border-color 0.3s, color 0.3s;
}

.progressbar__item:last-child {
  margin-right: 0;
}

.progressbar__item--current {
  font-weight: 600;
  color: #000;
  border-color: #de1f62;
}

.step {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.step__column--left {
  /* width: 520px; */
  width: 32.5%;
  margin-right: auto;
}

.step__column--right {
  /* width: 920px; */
  width: 57.5%;
}

.step__subtitle {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 24px;
}

.step__formats {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.step__format {
  margin-right: 20px;
  width: 105px;
}

.checkbox {
  font-size: 18px;
  cursor: pointer;
}

.checkbox__replacer {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  margin-right: 5px;
  -webkit-transition: background-color 0.3s, border-color 0.3s;
  transition: background-color 0.3s, border-color 0.3s;
}
.checkbox__replacer svg {
  fill: #fff;
  width: 15px;
  height: 15px;
  margin: auto;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.checkbox__input:checked + span {
  background: #de1f62;
  border-color: #b61254;
}

.checkbox__input:checked + span svg {
  opacity: 1;
}

.checkbox--big span {
  width: 45px;
  height: 45px;
  margin-right: 15px;
}

.step__quantity {
  display: block;
  margin-top: 30px;
  font-size: 15px;
}

.step__quantity-input {
  display: block;
  width: 100%;
  height: 45px;
  border: 1px solid #d9d9d9;
  margin-top: 10px;
  border-radius: 8px;
  font-size: 18px;
  padding: 10px;
}

.step__next-button {
  min-width: 130px;
  margin-top: 60px;
}

.step__examples {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.step__example {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  max-width: 100%;
  height: auto;
}

.step__example--a4 {
  max-width: 600px;
}

.constructor__category {
  margin-bottom: 15px;
}

.category__tab {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  height: 45px;
  background: #f5f5f5;
  -webkit-box-shadow: 0px 2px 0px #d9d9d9;
          box-shadow: 0px 2px 0px #d9d9d9;
  border-radius: 8px;
}

.category__tab-checkbox span {
  margin-bottom: -2px;
  background: #fff;
}

.category__tab-button {
  padding: 15px;
  height: 100%;
  border: none;
  background: none;
  cursor: pointer;
}

.category__dropdown {
  list-style: none;
  margin: 0;
  padding: 30px 0 25px;
  display: none;
}

.category--expanded .category__dropdown {
  display: block;
}

.category--expanded .category__tab-button {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.category__item {
  margin-bottom: 15px;
}

.product {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.product__checkbox {
  margin-right: 10px;
}

.product__buttons {
  display: none;
}

.product--selected .product__buttons {
  display: block;
}

.product__button {
  width: 28px;
  height: 28px;
  background: #f5f5f5;
  -webkit-box-shadow: 0px 2px 0px #d9d9d9;
          box-shadow: 0px 2px 0px #d9d9d9;
  border: none;
  border-radius: 8px;
  -webkit-transition: background-color 0.3s, color 0.3s, -webkit-box-shadow 0.3s;
  transition: background-color 0.3s, color 0.3s, -webkit-box-shadow 0.3s;
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s;
  transition: box-shadow 0.3s, background-color 0.3s, color 0.3s, -webkit-box-shadow 0.3s;
  cursor: pointer;
}

.product__button:disabled {
  color: #d9d9d9;
  background: rgba(245, 245, 245, 0.7);
  -webkit-box-shadow: none;
          box-shadow: none;
  cursor: default;
}

.product__button svg {
  width: 12px;
  height: 15px;
}

.product__button--down svg {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.constructor__previews {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.preview {
  position: relative;
}

.preview--a4 {
  max-width: 600px;
}

.preview--a5 {
  max-width: 308px;
}

.preview img {
  max-width: 100%;
  height: auto;
  /* display: block; */
}

.preview__categories {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
}

.preview--a4 .preview__categories {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  /* padding: 110px 40px 50px; */
  padding: 18.3% 0 0;
}

.preview--a4 .preview__category {
  margin: 0 6.7% 0;
}

.preview--a5 .preview__categories {
  /* padding: 50px 20px 20px; */
  padding: 16.23% 0 0;
}

.preview--a5 .preview__category {
  margin: 0 6.49% 0;
}

.preview--a4 .preview__category-name {
  /* max-width: 115px; */
  max-width: 22.12%;
}

.preview--a5 .preview__category-name {
  /* max-width: 60px; */
  max-width: 22.39%;
}

.preview--a5 .preview__category:nth-child(3) .preview__category-name {
  /* max-width: 50px; */
  max-width: 18.66%;
}

/* pdf converter not supporting flex/grid */
.preview__products {
  list-style: none;
  margin: 0;
  padding: 0;
  /* display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px; */
}

.preview__products::after {
  content: '';
  clear: both;
  display: table;
}

.preview__product {
  display: inline-block;
  width: 23%;
  margin-right: 2%;
}

.preview--a4 .preview__product:nth-child(4n) {
  margin-right: 0;
}

.preview--a4 .preview__product:nth-child(n+5) {
  margin-top: 2%;
}

.preview--a4 .preview__category:nth-child(n+2) {
  margin-top: 4%;
}

.preview--a5 .preview__product {
  width: 31%;
}

.preview--a5 .preview__product:nth-child(3n) {
  margin-right: 0;
}

.preview--a5 .preview__product:nth-child(n+4) {
  margin-top: 2%;
}

/* .preview--a5 .preview__products {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
} */

.step__copy-confirm {
  display: inline-block;
  margin-bottom: 30px;
}

.step--3 .step__column--left {
  font-size: 18px;
}

.constructor__summary {
  background: #f5f5f5;
  padding: 15px;
}

.constructor__summary b {
  font-weight: 600;
}

.constructor__summary dl {
  margin: 0;
  padding: 0;
  margin-bottom: 40px;
}

.constructor__summary dl:last-child {
  margin-bottom: 0;
}

.constructor__summary dt {
  margin-bottom: 20px;
}

.constructor__summary dd {
  margin: 0;
  font-size: 15px;
}

.constructor__notice {
  margin-top: 40px;
  margin-bottom: 50px;
  font-style: italic;
  line-height: 1.78;
}

.constructor__notice a {
  color: inherit;
}

.constructor__notice a:hover {
  -webkit-text-decoration: none;
  text-decoration: none;
}

.constructor__consent {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  line-height: 1.78;
}

.constructor__consent span {
  -ms-flex-negative: 0;
      flex-shrink: 0;
  margin-right: 10px;
}

.constructor__submit {
  margin-top: 50px;
  display: block;
  min-width: 100px;
  background: #DE1F62;
  -webkit-box-shadow: 0px 2px 0px #B61254;
          box-shadow: 0px 2px 0px #B61254;
  color: #fff;
}

.constructor__final {
  max-width: 800px;
  font-size: 24px;
}

.constructor__final a {
  color: inherit;
}

.constructor__final a:hover {
  -webkit-text-decoration: none;
  text-decoration: none;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  will-change: opacity;
  -webkit-transition: opacity 0.3s ease-out;
  transition: opacity 0.3s ease-out;
}

.modal__overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.modal__main {
  width: 100%;
  max-width: 780px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  padding: 70px;
  background: #fff;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
}

.modal__close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__title {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin: 0 0 30px;
  font-size: 32px;
  font-weight: 600;
}

.modal__title svg {
  width: 32px;
  height: 32px;
  margin-right: 15px;
}

.modal__text {
  font-size: 18px;
  line-height: 1.78;
  margin: 0 0 30px;
}

.modal__button {
  min-width: 70px;
  margin-bottom: 40px;
}

.modal__subtitle {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

@media(max-width:767px){
  .constructor__title{
    font-size:40px;
  }

  .constructor__description{
    font-size:17px;
  }

  .constructor{
    padding:20px 0px;
  }

  .progressbar{
    flex-direction:column;
  }

  .progressbar__item{
    font-size:26px;
  }

  .step__column--left{
    width:100%;
    margin-right:0;
  }

  .step__column--right{
    width:100%;
  }

  .step__example--a4{
    max-width:-webkit-fill-available;
  }

  .step__examples{
    flex-direction: column;
  }

  .step{
    flex-direction:column;
  }
}

.modal__images--a4 {
  margin-bottom: 25px;
}
