@charset "UTF-8";

/* Экраны */

html,
body {
  overflow-x: hidden;
}

.hidden{
  display: none !important;
}

body {
  font-family: 'HeadingNow';
}

picture {
  display: grid;
}

picture img {
  margin: 0;
}

* {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
.wrong{
  background: #5224 !important;
}
body {
  background: -webkit-gradient(linear, left top, left bottom, from(#c1282d), to(#981418));
  background: -o-linear-gradient(#c1282d, #981418);
  background: linear-gradient(#c1282d, #981418);
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 100vh;
}

html {
  color: white;
}

.svg-wrapper {
  background: white;
  display: grid;
  place-items: end;
  max-width: 400px;
}

.svg-wrapper svg {
  width: 100%;
}

main {
  padding-bottom: 80px;
  max-width: 1000px;
  width: 100%;
  margin: auto;
  display: grid;
  gap: 4% 6%;
  grid-template-columns: 23% 71%;
}

main > * {
  z-index: 1;
  position: relative;
}

h1 {
  font-size: 28px;
}

.choice-img {
  grid-column: 1/3;
  color: white;
}

.choice-img__content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 15px;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.post-img-wrapper {
  width: 23%;
}

.post-img-wrapper label{
    display:block;
}

.choice-img .post-img > svg {
  background: white;
}

.choice-img .post-img picture,
.choice-img .post-img img {
  width: 100%;
}

.choice-img .label {
  margin: 10px auto;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  place-items: center;
  display: flex;
  gap: 15px;
}

.choice-img .label .mark {
  width: 25px;
  height: 25px;
  background: white;
  display: grid;
  place-items: center;
}

.choice-img .label .mark svg {
  display: none;
  width: 80%;
  height: 80%;
}

.choice-img .label .mark svg image {
  width: 20px;
  height: 20px;
}

.choice-img input {
  display: none;
}

.choice-img input:checked + label .mark svg {
  display: block;
}

.choice-img input:checked + label .mark svg image {
  display: block;
}

.user-postcard {
  grid-column: 1/2;
  grid-row: 2/3;
}

.user-postcard__title {
  font-size: 14px;
  margin-bottom: 5px;
}

.user-postcard__content {
  position: relative;
}

.user-postcard img {
  width: 100%;
  background: white;
}

.user-text {
  align-self: end;
  grid-column: 2/3;
  grid-row: 2/3;
}

.user-text__title {
  margin-bottom: 15px;
  font-size: 22px;

}

[disabled]{
  opacity: 0.7;
}

.user-text .send-btn {
  cursor: pointer;
  font-size: 25px;
  margin-top: 20px;
  border-radius: 10px;
  padding: 10px;
  width: 80%;
  display: grid;
  place-items: center;
  background: #770303;
  -webkit-transition: .3s;
  -o-transition: .3s;
  transition: .3s;
}

.user-text .send-btn:hover {
  background: #993636;
}

.user-text .shop-title {
  color: #ff3b45;
  width: 30%;
  overflow: visible;
}

.user-text .shop-title svg,
.user-text .shop-title image {
  overflow: visible;
  width: 100%;
  height: 40px;
}

.user-text__content-wrapper {
  color: #7f7f7f;
  width: 68%;
  background: white;
  position: relative;
}

.user-text__content-wrapper::after {
  background-image: url(../img/bag.png);
  background-image: url(../img/bag.webp);
  content: "";
  height: 100%;
  width: 450px;
  background-size: contain;
  display: block;
  position: absolute;
  right: -450px;
  top: 0;
  background-repeat: no-repeat;
}

.user-text__border {
  background-image: url(../img/border.png);
  background-image: url(../img/border.webp);
  background-size: cover;
  background-position: 20%;
  background-repeat: no-repeat;
  padding: 1px;
}

.user-text__content {
  background: white;
  margin: 14px;
  color: black;
  padding: 8px 14px;
}

.user-text__field {
  display: grid;
  grid-template-columns: 25% 74%;
  gap: 1%;
  aign-content: center;
  margin-bottom: 13px;
}

.user-text__field-input {
  width: 100%;
}

.user-text__field-title {
  color: #7f7f7f;
  font-size: 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 5px;
  -ms-flex-item-align: center;
      align-self: center;
}

.user-text__field-title .or-field {
  font-size: 10px;
  font-family: 'Headingnow54';
}

.user-text__field-title .or-field input {
  display: none;
}

.user-text__field-title .or-field label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 7px;
}

.user-text__field-title .or-field svg {
  display: none;
  width: 70%;
  height: 70%;
}

.user-text__field-title .or-field svg image {
  width: 10px;
  height: 10px;
}

.user-text__field-title .or-field .mark {
  width: 14px;
  height: 14px;
  background: #ff3b45;
  display: grid;
  place-items: center;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  position: relative;
}

.user-text__field-title .or-field input:checked + label svg {
  display: block;
}

.user-text__field-title .or-field input:checked + label svg image {
  display: block;
}

.user-text__field input,
.user-text__field textarea {
  outline: none;
  border: none;
  border-radius: 15px;
  padding: 15px;
  background: #e8e8e8;
  width: 100%;
  font-family: 'Headingnow54it';
}

.user-text__field textarea {
  height: 8rem;
  resize: none;
  font-size: .8rem;
}

body {
  margin: 0;
  height: 100%;
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
}

.popup{
  position: fixed;
  z-index: 9999;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #0009;
  display: grid;
  place-items: center
  

}
.popup__content{
  font-size: 25px;
  margin-top: 20px;
  border-radius: 10px;
  padding: 20px;
  display: grid;
  place-items: center;
  background: #770303;
  width: 90vw;
  max-width: 500px;
  place-content: center;
  text-align: center;

}


@media screen and (min-width: 1000px) {
  .user-postcard__text {
    font-size: 13px !important;
  }
}

@media (max-width: 1000px) {
  main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    padding: 20px 40px;
    gap: 20px;
    place-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }

  main > * {
    width: 100%;
  }
}

@media screen and (max-width: 1000px) {
  .choice-img__content {
    margin: 0 -40px;
    overflow-x: auto;
    -ms-scroll-snap-type: x mandatory;
        scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .choice-img .post-img-wrapper {
      padding:0 40px;
      margin:0 -40px;
    width: 300px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 300px;
            flex: 0 0 300px;
    scroll-snap-align: center;
  }
  
  .choice-img .post-img-wrapper:first-child{
      margin-left:0;
  }

  .user-postcard {
    display: grid;
    place-items: center;
  }

  .user-text .send-btn {
    width: 100%;
    font-size: 4vw;
  }

  .user-text__content-wrapper {
    width: 100%;
  }

  .user-text__content-wrapper::after {
    display: none;
  }

  .user-text__field {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    gap: 5px;
  }

  .user-text__field-title {
    -ms-flex-item-align: start;
        align-self: start;
  }
}

@media screen and (max-width:565px){
    
    main{
        padding:20px;
    }
    
    .choice-img__content{
        margin:0 -20px;
    }
    
    .choice-img .post-img-wrapper{
        padding:0 20px;
        margin:0 -20px;
    }
    
}

@supports (-webkit-appearance:none){
.user-text__content-wrapper::after{background-image:url(../img/bag.webp)}
.user-text__border{background-image:url(../img/border.webp)}
}

 @media screen and (min-width: 1000px){

@supports (-webkit-appearance:none){

}

}

 @media (max-width: 1000px){

@supports (-webkit-appearance:none){

}

}

 @media screen and (max-width: 1000px){

@supports (-webkit-appearance:none){

}

}
