:root {
  --white: white;
  --black: black;
}

body {
  color: #fff;
  background-color: #1b1f2a;
  font-family: Montserrat, sans-serif;
  font-size: 1vw;
  font-weight: 500;
  line-height: 1.4;
}

.bg-test {
  z-index: 10;
  background-image: url('../images/bg-test.jpg');
  background-position: 50%;
  background-size: cover;
  width: 100%;
  height: 100%;
  padding-right: .05em;
  position: fixed;
}

.event {
  z-index: 40;
  -webkit-backdrop-filter: blur(1em);
  backdrop-filter: blur(1em);
  background-color: #274462b3;
  flex-direction: column;
  align-items: flex-start;
  width: 25em;
  transition: all .4s cubic-bezier(.645, .045, .355, 1);
  display: flex;
  position: fixed;
  top: 2em;
  left: 2em;
  box-shadow: inset 0 0 0 1px #ffffff4d;
}

.event.is--off {
  left: -3.1em;
  transform: translate(-100%);
}

.event__h {
  z-index: 10;
  margin-bottom: .5em;
  font-size: 2em;
  font-weight: 600;
  line-height: 1.2;
  position: relative;
}

.box-glow {
  background-image: linear-gradient(to right, #fff0, #fff0 0%, #fff 50%, #fff0);
  width: 100%;
  height: 1px;
  position: absolute;
}

.box-glow.is--top {
  inset: 0% 0% auto;
}

.box-glow.is--bottom {
  inset: auto 0% 0%;
}

.box-glow.is--top--top {
  inset: 0% 0% auto;
}

.box-glow.is--top--bottom {
  inset: auto 0% 0%;
}

.event__close {
  z-index: 20;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 0;
  right: -3em;
}

.event__p {
  margin-bottom: 1.5em;
  font-family: Open Sans, sans-serif;
  font-size: 1em;
  font-weight: 400;
  line-height: 1.5;
}

.event__media {
  object-fit: cover;
  border: 1px solid #ffffff4d;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0% auto auto 0%;
}

.event__divider {
  background-color: #ffffff4d;
  width: 100%;
  height: 1px;
  margin-bottom: .8em;
}

.event__info {
  justify-content: space-between;
  width: 100%;
  display: flex;
}

.info__text {
  opacity: .7;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .65em;
}

.map-legend {
  z-index: 30;
  -webkit-backdrop-filter: blur(1em);
  backdrop-filter: blur(1em);
  background-color: #274462b3;
  flex-direction: row;
  align-items: flex-start;
  padding: 1.4em 1em;
  transition: all .4s cubic-bezier(.645, .045, .355, 1);
  display: flex;
  position: fixed;
  bottom: 2em;
  left: 2em;
  box-shadow: inset 0 0 0 1px #ffffff4d;
}

.labels-col__text {
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: .65em;
}

.labels-col {
  padding-left: .2em;
  padding-right: .2em;
}

.labels-col__item {
  align-items: center;
  padding: .4em .6em;
  display: flex;
}

.labels-col__icon {
  width: 1.8em;
  margin-right: 1em;
}

.date__wrap {
  z-index: 50;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  height: 0;
  display: flex;
  position: fixed;
}

.date {
  background-color: #fff;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  top: 2em;
}

.date__text {
  color: #0c2342;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-top: .1em;
  padding-left: .2em;
  padding-right: .2em;
  font-size: 1em;
  font-weight: 700;
}

.icon {
  cursor: pointer;
  background-color: #fff;
  width: 3em;
  padding: .8em;
}

.icon.is--left {
  margin-right: .4em;
}

.icon.is--right {
  margin-left: .4em;
}

.mash__logo {
  width: 100%;
  height: 100%;
}

.mash__logo.mash__logo-popup {
  flex: none;
  width: 6em;
  height: 6em;
  padding: .5em;
  position: absolute;
  top: -6.5em;
}

.mash {
  z-index: 50;
  width: 3.2em;
  height: 3.2em;
  position: fixed;
  top: 2em;
  right: 2em;
}

.map-icons-test {
  z-index: 20;
  width: 100%;
  height: 100%;
  position: fixed;
}

.icon-test-1 {
  width: 3em;
  position: absolute;
  top: 68%;
  left: 68%;
}

.icon-test-2 {
  width: 3em;
  position: absolute;
  top: 32%;
  left: 75%;
}

.icon-test-3 {
  width: 3em;
  position: absolute;
  top: 60%;
  left: 62%;
}

.icon-test-4 {
  width: 3em;
  position: absolute;
  top: 22%;
  left: 48%;
}

.legend-button__wrap {
  display: none;
}

.legend-button__icon {
  width: 3em;
  padding: .8em;
  transition: all .4s cubic-bezier(.645, .045, .355, 1);
}

.event-content {
  width: 100%;
  padding: 1.4em 1.8em 1.6em;
  overflow: auto;
}

.event__media-box {
  border: 1px solid #ffffff4d;
  width: 100%;
  margin-top: .5em;
  margin-bottom: 1.6em;
  padding-top: 56.25%;
  position: relative;
}

.back-button {
  z-index: 35;
  text-align: center;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  height: 3em;
  padding-left: 1.5em;
  padding-right: 1.5em;
  text-decoration: none;
  display: none;
  position: absolute;
  top: 2em;
  left: 2em;
}

.back-button__text {
  color: #0c2342;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 700;
  line-height: 1.2;
}

.tg-popup {
  z-index: 100;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background-color: #2744624d;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  display: none;
  position: fixed;
}

.tg-popup__box {
  background-color: #274462b3;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30em;
  padding: 2.8em 4em 3.2em;
  display: flex;
  position: relative;
  box-shadow: inset 0 0 0 1px #fff3;
}

.tg-popup__txt {
  text-align: center;
  font-size: 1.2em;
  line-height: 1.2;
}

.tg-popup__btn {
  background-color: #fff;
  justify-content: center;
  align-items: center;
  height: 3em;
  padding-left: 1.5em;
  padding-right: 1.5em;
  text-decoration: none;
  display: flex;
  position: absolute;
  bottom: -1.5em;
}

.tg-popup__btn-txt {
  color: #0c2342;
  text-transform: uppercase;
  font-size: 1em;
  font-weight: 700;
}

.top {
  z-index: 55;
  -webkit-backdrop-filter: blur(1em);
  backdrop-filter: blur(1em);
  background-color: #274462b3;
  flex-direction: column;
  align-items: flex-start;
  width: 25em;
  max-height: 35em;
  transition: all .4s cubic-bezier(.645, .045, .355, 1);
  display: flex;
  position: fixed;
  top: 2em;
  left: 2em;
  box-shadow: inset 0 0 0 1px #ffffff4d;
}

.top__p {
  font-family: Open Sans, sans-serif;
  font-size: 1.2em;
  font-weight: 600;
  line-height: 1.3;
}

.top__divider {
  background-color: #ffffff4d;
  flex: none;
  width: 100%;
  height: 1px;
}

.top__h {
  z-index: 10;
  font-size: 2em;
  font-weight: 600;
  line-height: 1.2;
  position: relative;
}

.top-content {
  grid-column-gap: 1em;
  grid-row-gap: 1em;
  flex-flow: column;
  width: 100%;
  padding: 1.4em 1.8em 1.6em;
  display: flex;
  overflow: auto;
}

.top-button-wrap {
  display: none;
}

.top-button__icon {
  width: 3em;
  padding: .8em;
  transition: all .4s cubic-bezier(.645, .045, .355, 1);
}

@media screen and (max-width: 991px) {
  body {
    font-size: 2.4vw;
  }

  .event {
    box-shadow: none;
    width: auto;
    inset: auto 0% 0%;
  }

  .event.is--off {
    bottom: -3.1em;
    left: 0%;
    transform: translate(0, 100%);
  }

  .box-glow.is--bottom, .box-glow.is--top--top {
    display: none;
  }

  .event__close {
    align-items: flex-end;
    height: 0;
    top: 0;
    left: 0;
    right: 0;
  }

  .event__p {
    font-size: 1.2em;
  }

  .event__divider {
    flex: none;
  }

  .info__text {
    font-size: .8em;
  }

  .map-legend {
    box-shadow: none;
    justify-content: space-around;
    inset: auto 0% 0%;
  }

  .map-legend.is--off {
    transform: translate(0, 100%);
  }

  .labels-col__text {
    font-size: .8em;
  }

  .date__wrap {
    padding-left: 12em;
  }

  .date {
    width: 15em;
    top: 0;
  }

  .mash {
    padding-top: .4em;
    padding-right: .4em;
    top: 0;
    right: 0;
  }

  .legend-button__wrap {
    justify-content: center;
    align-items: flex-end;
    height: 0;
    display: flex;
    position: absolute;
    inset: 0% 0% auto;
  }

  .legend-button {
    cursor: pointer;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    height: 3em;
    padding-left: 1.5em;
    padding-right: .5em;
    display: flex;
  }

  .legend-button__icon {
    padding: 1em;
  }

  .legend-button__icon.is--down {
    transform: rotate(180deg);
  }

  .back-button {
    top: 0;
    left: 0;
  }

  .top {
    box-shadow: none;
    width: auto;
    max-height: 15em;
    top: 0%;
    left: 0%;
    right: 0%;
  }

  .top.is--off {
    transform: translate(0, -100%);
  }

  .top__p {
    font-size: 1.2em;
  }

  .top__divider {
    flex: none;
  }

  .top__divider.top__divider--h, .top__h {
    display: none;
  }

  .top-button-wrap {
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
    height: 0;
    display: flex;
    position: absolute;
    inset: auto 0% 0%;
  }

  .top-button {
    cursor: pointer;
    background-color: #fff;
    justify-content: center;
    align-items: center;
    width: 15em;
    height: 3em;
    padding-left: 1.5em;
    padding-right: .5em;
    display: flex;
  }

  .top-button__icon {
    padding: 1em;
  }

  .top-button__icon.is--down {
    transform: rotate(180deg);
  }
}

@media screen and (max-width: 767px) {
  body {
    font-size: 2vw;
  }

  .event__media-box {
    float: right;
    width: 30%;
    padding-top: 16.875%;
  }
}

@media screen and (max-width: 479px) {
  body {
    font-size: 4vw;
  }

  .event__h {
    margin-bottom: .4em;
  }

  .event__p {
    margin-bottom: 1.2em;
  }

  .event__media {
    width: 100%;
    margin-bottom: 1.28em;
  }

  .event__info, .map-legend {
    flex-direction: column;
  }

  .date__wrap {
    padding-left: 0;
  }

  .event-content {
    padding-bottom: 1.28em;
    padding-left: 1.4em;
    padding-right: 1.4em;
  }

  .event__media-box {
    width: 100%;
    margin-bottom: 1.28em;
    padding-top: 56.25%;
  }

  .back-button {
    width: 5em;
  }

  .back-button__text {
    font-size: .8em;
  }

  .tg-popup__box {
    width: 22em;
  }

  .top {
    max-height: 35em;
  }

  .top-content {
    padding-bottom: 1.28em;
    padding-left: 1.4em;
    padding-right: 1.4em;
  }

  .top-button-wrap {
    justify-content: center;
    align-items: flex-start;
    transition: bottom .3s cubic-bezier(1, 0, 0, 1);
    bottom: -3.5em;
  }

  .top-button-wrap.is--stick {
    bottom: 0;
  }
}
