* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Noto Sans", sans-serif;
  outline: none;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}

img {
  max-width: 100%;
}

body {
  background-color: #F2F2F2;
  width: 100%;
  max-width: 567px;
  margin: auto;
}

.hidden {
  overflow: hidden;
}


.btn {
  padding: 14px 0;
  text-align: center;
  font-size: 14px;
  line-height: 18px;
  color: #2A2A2F;
  background-color: #fff;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  width: 100%;
  display: inline-block;
}
.btn-yellow {
  background-color: #FF9E0A;
}
.btn-primary {
  background-color: #8001EF;
  color: #fff;
}
.btn-grey {
  background-color: #C9C9CA;
  color: #fff;
}

.modal-stories .btn {
  padding: 17px 0;
}
.modal-title {
  margin-bottom: 12px;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
  color: #2A2A2F;
}
.modal-subtitle {
  margin-bottom: 20px;
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  font-family: "Noto Sans", sans-serif;
  color: #2A2A2F;
}
.modal-subtitle span {
  color: #8001EF;
  font-style: italic;
  font-weight: 800;
}
.modal-features-block {
    min-width: 46px;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 50px;
    margin-right: 10px;
}
section.checkout, section.cart {
    max-height: -webkit-fill-available;
}
.modal-slider-top {
  position: absolute;
  padding-left: 20px;
  padding-right: 20px;
  left: 0px;
  top: 10px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-slider-top span {
  width: 100%;
  max-width: calc( 20% - 5px );
  height: 3px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.5);
}
.modal-slider-top span.active {
  background-color: #fff;
}
.modal-slider-logo {
  margin-bottom: 36px;
  text-align: center;
}
.modal-slogan {
  margin-bottom: 31px;
  font-size: 18px;
  line-height: 22px;
  color: #fff;
  font-family: "Gotham Pro", sans-serif;
  font-weight: 500;
}
.modal-slogan span {
  font-weight: 900;
  font-family: "Gotham Pro", sans-serif;
}
.modal-features {
  display: flex;
  align-items: center;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 16px;
  color: #fff;
}
.modal-features span {
  font-family: "Gotham Pro", sans-serif;
}

.modal-content {
  padding: 70px 16px 16px;
}
.modal-btn {
  position: absolute;
  left: 0px;
  bottom: 16px;
  width: calc( 100% - 32px );
  margin: 0px 16px;
}
.modal-list {
  padding-left: 20px;
  font-size: 16px;
  line-height: 22px;
  font-family: "Noto Sans", sans-serif;
  color: #fff;
}
.modal-list li {
  margin-bottom: 3px;
}

.slider {
  box-shadow: 0px 0px 12px rgba(138, 173, 177, 0.12);
}

.slides.slide1 .modal-content {
  padding-top: 113px;
}

.slides.slide2 .modal-title {
  color: #fff;
}
.slides.slide2 .modal-subtitle {
  color: #fff;
}

.slides.slide3, .slides.slide4 {
  background-size: 62% !important;
  background-color: #fff;
  background-position: bottom -40px center !important;
}
.slides.slide3 .modal-slider-top span, .slides.slide4 .modal-slider-top span {
  background-color: #abacaf80;
}
.slides.slide3 .modal-slider-top span.active, .slides.slide4 .modal-slider-top span.active {
  background-color: #ABACAF;
}

.header {
  position: relative;
  height: 52px;
  opacity: 1;
  visibility: visible;
  transition: .4s;
  /* display: flex;
  padding: 13px 16px;
  align-items: center;
  justify-content: space-between;
  background-color: #fff; */
}
@media (min-width: 600px) {
  .header {
    max-width: 567px;
  }
  .send-order {
    max-width: 507px !important;
  }
}
.hidden .header{
  opacity: 0;
  visibility: hidden;
  transition: .4s;

}
.map{
  display: block;
}
.hidden .map{
  display: none;
}
.header-list {
  padding: 16px;
  background-color: #fff;
  border-radius: 8px;
}
.header-logo {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  line-height: 26px;
  text-transform: uppercase;
  color: #8001EF;
}
.header-logo img {
  margin-right: 5px;
}
.header-tool {
  display: flex;
  align-items: center;
}
.header-cart {
  position: relative;
  display: flex;
  margin-right: 35px;
  cursor: pointer;
}
.header-cart a {
  display: flex;
}
.header-cart-item {
  position: absolute;
  right: -3px;
  top: -1px;
  width: 14px;
  height: 14px;
  border-radius: 14px;
  background-color: #FF9E0A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 12px;
  font-weight: 700;
  color: #fff;
}
.header-menu {
  width: 18px;
  height: 12px;
  display: flex;
  flex-wrap: wrap;
  cursor: pointer;
}
.header-menu .header-menu {
  position: relative;
  z-index: 999;
}
.header-menu span {
  display: inline-block;
  margin-bottom: 3px;
  height: 2px;
  width: 100%;
  border-radius: 3px;
  background-color: #8001EF;
  transition-duration: 0.25s;
}
.header-menu span:last-child {
  margin-bottom: 0;
}
.header-list {
  list-style: none;
}

input::-moz-placeholder {
  color: #ABACAF;
}

input:-ms-input-placeholder {
  color: #ABACAF;
}

input::placeholder {
  color: #ABACAF;
}

.map {
  position: relative;
  min-height: calc( 100vh - 52px );
  max-height: calc( 100vh - 52px );
  overflow: hidden;
}
.map-img {
  min-height: calc(80vh - 52px);
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.map-bottom {
  min-height: 20vh;
  padding: 16px;
  background-color: #fff;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
}
.map-bottom .btn {
  margin-bottom: 16px;
}
.map-input {
  padding: 11px 12px;
  margin-bottom: 16px;
  width: 100%;
  border: none;
  font-size: 14px;
  line-height: 19px;
  border-radius: 8px;
  color: #2A2A2F;
  background-color: #F2F2F2;
}
.map-title {
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  max-width: 213px;
  margin: auto;
  margin-bottom: 30px;
}
.map-page {
  padding: 30px 16px;
}
.map-loader {
  position: relative;
  width: 100%;
  height: 6px;
  background-color: #EDEDED;
  border-radius: 6px;
}
.map-loader span {
  position: absolute;
  left: 0;
  top: 0;
  width: 20%;
  height: 100%;
  background-color: #8001EF;
  transition: all 0.3s;
  border-radius: 10px;
}
.map-loader.active span {
  -webkit-animation-name: loader;
          animation-name: loader;
  -webkit-animation-duration: 3s;
          animation-duration: 3s;
  -webkit-animation-iteration-count: infinite;
          animation-iteration-count: infinite;
}

.container {
  padding: 20px 16px;
  width: 100%;
  max-height: -webkit-fill-available;
}

a {
  text-decoration: none;
}

.catalog-top {
  display: flex;
  align-items: center;
  padding: 6px 4px;
  margin-bottom: 20px;
  background-color: #F3E5FF;
  border-radius: 8px;
  color: #8001EF;
  font-weight: 500;
  font-size: 12px;
}
.catalog-top img {
  margin-right: 5px;
}
.catalog-block {
  padding: 20px 16px;
  background-color: #fff;
  border-radius: 8px;
}
.catalog-cat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  list-style: none;
}
.catalog-cat-item {
  padding: 6px 12px;
  margin-right: 10px;
  margin-bottom: 10px;
  background-color: #F2F2F2;
  border-radius: 8px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
}
.catalog-cat-item:last-child {
  margin-right: 0;
}
.catalog-cat-item a {
  font-size: 14px;
  line-height: 18px;
  color: #2A2A2F;
  font-weight: 500;
}
.catalog-cat-item.active {
  background-color: #8001EF;
}
.catalog-cat-item.active a {
  color: #fff;
}
.catalog-title {
    margin-top: 24px;
  margin-bottom: 12px;
  color: #2A2A2F;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
}
.catalog-list {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
.catalog-item {
  position: relative;
  width: 100%;
  max-width: calc( 50% - 8px );
  margin-bottom: 20px;
}
.catalog-rating {
  position: absolute;
  left: 4px;
  top: 4px;
  background-color: #fff;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #FF9E0A;
  display: flex;
  align-items: center;
}
.catalog-rating img {
  margin-right: 4px;
}
.catalog-img {
  margin-bottom: 6px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}
.catalog-img img {
  width: 100%;
  height: 100% !important;
  -o-object-fit: cover;
     object-fit: cover;
}
.catalog-name {
  margin-bottom: 6px;
  font-size: 12px;
  color: #2A2A2F;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.catalog-info {
  margin-bottom: 6px;
  color: #ABACAF;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  letter-spacing: 0.01em;
}
.catalog-quantity {
  padding: 6px 10px;
  display: flex;
  align-items: center;
  color: #8001EF;
  background-color: #F2F2F2;
  border-radius: 8px;
  max-width: -webkit-max-content;
  max-width: -moz-max-content;
  max-width: max-content;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}
.catalog-quantity-minus, .catalog-quantity-plus {
  display: flex;
  cursor: pointer;
}
.catalog-quantity-minus {
  margin-right: 10px;
  display: none;
}
.catalog-quantity-total {
  min-width: 33px;
  margin-right: 10px;
}
.catalog-quantity svg path {
  fill: #8001EF;
}
.catalog-quantity.active {
  max-width: 100%;
  background-color: #8001EF;
  color: #fff;
  justify-content: space-between;
}
.catalog-quantity.active .catalog-quantity-minus {
  margin-right: 10px;
  display: flex;
}
.catalog-quantity.active svg path {
  fill: #fff;
}

.cart-catalog {
  color: #A9AAAD;
  font-size: 16px;
  line-height: 21px;
  display: inline-block;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.cart-empty-block {
  padding: 24px 16px;
  border-radius: 8px;
  background-color: #fff;
}
.cart-title {
  margin-bottom: 12px;
  font-size: 18px;
  line-height: 24px;
  font-weight: 700;
  color: #2A2A2F;
}
.cart-subtitle {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 18px;
  color: #2A2A2F;
}
.cart-block {
  position: relative;
  height: calc(100vh - 195px);
  padding: 20px 16px 16px;
  border-radius: 8px;
  background-color: #fff;
}
.checkout-comment {
    margin-bottom: 164px;
    padding-bottom: 116px;
}
.cart-block .cart-title {
  margin-bottom: 16px;
}
.cart-info {
  width: calc( 70% - 9px );
}
.cart-delete {
  position: absolute;
  right: 0;
  top: 0;
  cursor: pointer;
}
.cart .catalog-name {
  /* min-height: 32px; */
  margin-bottom: 2px;
}
.cart .catalog-info {
  margin-bottom: 24px;
}
.cart .catalog-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  max-width: 100%;
  /* margin-bottom: 16px; */
  padding-bottom: 16px;
  border-bottom: 1px solid #EDEDED;
}
.cart .catalog-img {
  max-width: 30%;
  margin-bottom: 0;
}
.cart .catalog-quantity {
  max-width: 150px;
}
.cart-checkout {
  position: absolute;
  bottom: 16px;
  max-width: calc( 100% - 32px );

  left: 0;
  right: 0;
  margin: 0 auto;
}

.checkout-title {
  font-size: 16px;
  margin-bottom: 8px;
  font-weight: 500;
  line-height: 22px;
  color: #2A2A2F;
}
.checkout-input {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  margin-bottom: 41px;
}
.checkout-input span {
  position: absolute;
  left: 0;
  /* bottom: 8px; */
  /* font-size: 16px; */
  font-size: 12px;
  bottom: 34px;
  line-height: 21px;
  color: #ABACAF;
  transition: all 0.3s;
  font-weight: 500;
}
.checkout-input input {
  width: 100%;
  display: inline-block;
  border: none;
  border-bottom: 1px solid #EDEDED;
  padding: 0;
  padding-bottom: 8px;
  color: #2A2A2F;
  font-size: 16px;
  line-height: 21px;
  font-weight: 500;
}
.checkout-input input:not(:-moz-placeholder-shown) + span {
  font-size: 12px;
  bottom: 34px;
}
.checkout-input input:not(:-ms-input-placeholder) + span {
  font-size: 12px;
  bottom: 34px;
}
/* .checkout-input input:focus + span, .checkout-input input:not(:placeholder-shown) + span {
  font-size: 12px;
  bottom: 34px;
} */
.checkout .cart-block {
  padding-top: 41px;
}
.checkout-comment textarea {
  padding: 12px;
  width: 100%;
  border: none;
  background-color: #F2F2F2;
  border-radius: 8px;
  font-size: 16px;
  line-height: 21px;
  color: #2A2A2F;
}
.checkout-comment textarea::-moz-placeholder {
  color: #ABACAF;
  font-size: 12px;
}
.checkout-comment textarea:-ms-input-placeholder {
  color: #ABACAF;
  font-size: 12px;
}
.checkout-comment textarea::placeholder {
  color: #ABACAF;
  font-size: 12px;
}
.checkout-modal {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 100%;
  max-width: calc( 100% - 32px );
  transform: translate(-50%, -50%);
  padding: 0 16px 24px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0px 0px 12px rgba(138, 173, 177, 0.12);
  z-index: 1;
}
.checkout-modal::after {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: -1;
}
.checkout-modal-avatar {
  margin-bottom: 12px;
  margin-top: -61px;
  text-align: center;
}
.checkout-modal-title {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  text-align: center;
}
.checkout-modal-subtitle {
  font-size: 16px;
  line-height: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}

.modal {
  display: none;
  width: 100%;
  height: 100%;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-width: 567px;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 999;
}
.modal.active {
  display: block;
}
.modal-close {
  position: absolute;
  right: 17px;
  top: 17px;
  cursor: pointer;
}

.map-page {
  display: none;
}

#next-page:checked ~ .map-bottom {
  display: none;
}

#next-page:checked ~ .map-page {
  display: block;
}

@-webkit-keyframes loader {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@keyframes loader {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

@media (max-width: 350px) {
    .slides.slide1 .modal-content {
        padding-top: 50px;
    }
    .catalog-name {
    padding-right: 20px;
}
}