/* Null. */

@font-face {
  font-family: "Bebas";
  src: url('../fonts/Bebas.ttf');
}
#gift_1 .modal_scroll{
	    font-family: 'Bebas', sans-serif;
    color: #fff;
    font-size: 38px;
	
    text-align: center;
}
#gift_1 .modal_scroll b{
	display:block;
    font-size: 48px;
	}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  display: block;
}

body {
  margin: 0;
  padding: 0;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  background-color: #fff;
}

img,
svg {
  display: block;
  width: 100%;
  height: auto;
}

a {
  text-decoration: none;
}

li {
  list-style-type: none;
}

input,
button,
textarea {
  display: block;
  background-color: transparent;
  border: 0 none;
  box-shadow: none;
  appearance: none;
  outline: none;
  resize: none;
}

/* Null. */

.wrapper {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Фон. */

.bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.bg img {
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Фон. */

/* Текст по центру фона. */

.text {
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
}

.text img {
  width: min(85%, 1200px);
  margin: 0 auto;
}

/* Текст по центру фона. */

/* Снеговики. */

.trunks {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: max(100%, 1400px);
  transform: translate3d(-50%, 0px, 0px);
}

.trunk {
  width: 200px;
}

.trunk:nth-child(1) {
  position: absolute;
  left: 200px;
  bottom: 80px;
  width: 178px;
}

.trunk:nth-child(2) {
  position: absolute;
  left: 496px;
  bottom: 10vh;
  width: 92px;
}

.trunk:nth-child(3) {
  position: absolute;
  right: 68px;
  bottom: 44px;
  width: 264px;
}

/* Снеговики. */

/* Ёлка и подарки. */

.tree {
  position: absolute;
  left: 50%;
  bottom: 44px;
  width: min(90%, 776px, 90vh * .794);
  transform: translate3d(-50%, 0px, 0px);
}

.tree_fir img {
  height: 100%;
  max-height: 90vh;
  object-fit: contain;
  object-position: center bottom;
}

.tree_gift {
  position: absolute;
  animation: gift 1s infinite alternate linear;
      cursor: pointer;
}

.tree_gift.animate {
  animation: open 2s linear !important;
}

.tree_gift:nth-child(1) {
  top: 15%;
  left: 33%;
  width: 15%;
}

.tree_gift:nth-child(2) {
  top: 21%;
  right: 25%;
  width: 16%;
  animation-duration: 1.2s;
}

.tree_gift:nth-child(3) {
  top: 32%;
  left: 36%;
  width: 20%;
  animation-duration: .5s;
}

.tree_gift:nth-child(4) {
  top: 44%;
  right: 18%;
  width: 18%;
  animation-duration: 3s;
}

.tree_gift:nth-child(5) {
  top: 50%;
  left: 20%;
  width: 23%;
  animation-duration: 1.6s;
}

.tree_gift:nth-child(6) {
  top: 52%;
  right: 36%;
  width: 18%;
  animation-delay: -.5s;
}

.tree_gift:nth-child(7) {
  bottom: 17%;
  left: 8%;
  width: 20%;
  animation-duration: 1.2s;
}

.tree_gift:nth-child(8) {
  bottom: 14%;
  left: 41%;
  width: 18%;
  animation-delay: -.2s;
}

.tree_gift:nth-child(9) {
  bottom: 13%;
  right: 8%;
  width: 23%;
  animation-duration: 1.5s;
}

@keyframes gift {
  from {
    transform: rotate(-3deg);
  }

  to {
    transform: rotate(5deg);
  }
}

@keyframes open {
  0% {
    transform: scale(1);
  }

  25% {
    transform: scale(.7);
  }

  50% {
    transform: scale(1);
  }

  75% {
    transform: scale(.7);
  }

  100% {
    transform: scale(0);
  }
}

/* Ёлка и подарки. */

/* Снег. */

.snow {
  pointer-events: none;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Снег. */

/* Modal. */

.modal {
  --modal_w: 888px;
  --modal_inner: 40px;
  --modal_close: 20px;
  --hide: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99999;
  transition: opacity .43s;
}

.modal_viel {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, .5);
  backdrop-filter: blur(5px);
  z-index: -1;
  transition: opacity .83s;
}

.modal:not(.active) {
  pointer-events: none;
  opacity: 0;
}

.modal_wrapper {
  --stroke: 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: var(--modal_w);
  background: #2C804D;
  border: var(--stroke) solid #fff;
  border-radius: 42px;
  transition: transform .43s;
}

.modal:not(.active) .modal_wrapper {
  transform: scale(.1);
}

.modal_wrapper:before {
  pointer-events: none;
  content: '';
  position: absolute;
  top: calc(var(--stroke) * -1 + -36px);
  left: calc(var(--stroke) * -1 + -14px);
  right: calc(var(--stroke) * -1 + -20px);
  bottom: 0;
  /* background-image: url('image/sales/images/svg/snow.svg'); */
  background-image: url('../images/svg/snow.svg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
}

.modal_hide {
  overflow: hidden;
}

.modal_scroll {
  overflow-y: scroll;
  position: relative;
  width: calc(100% + var(--hide) + var(--scroll));
  max-height: calc(100vh - 80px);
  margin-right: calc((var(--hide) + var(--scroll)) * -1);
  padding: 100px calc(var(--hide) - var(--scroll) + var(--modal_inner)) var(--modal_inner) var(--modal_inner);
}

.modal_close {
  --size: var(--modal_close);
  top: 20px;
  right: 20px;
}

/* Modal. */

@media only screen and (max-width: 600px) {
  /* Modal. */

  .modal {
    --modal_inner: 20px;
  }

  .modal_wrapper {
    --stroke: 6px;
    border-radius: 28px;
  }

  .modal_wrapper:before {
    top: -20px;
  }

  .modal_scroll {
    padding-top: 60px;
  }

  /* Modal. */
}