:root {
  --mx: 1.5rem;
  --my: 1.5rem;
}

/* animation */

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }

  5% {
    opacity: 1;
  }

  80% {
    transform: rotateX(8deg);
  }

  83% {
    transform: rotateX(6deg);
  }

  92% {
    transform: rotateX(-3deg);
  }

  100% {
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}

@keyframes bottom_move {
  0% {
    top: 0px;
    opacity: 1;
  }

  50% {
    top: 8px;
    opacity: 0.8;
  }

  100% {
    top: 0px;
    opacity: 1;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

ul,
li {
  list-style: none;
  padding: 0;
  margin: 0;
}

a {
  text-decoration: none;
}

img {
  width: 100%;
  object-fit: cover;
}

/* button */

button:focus,
button:hover {
  background: white;
  box-shadow: 0px 0px 20px -2px rgba(0, 0, 0, 0.5);
}

/* menu */

.hamb {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

.scroll-hidden {
  overflow: hidden;
}

/* box */

.box {
  background-color: gainsboro;
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgba(60, 60, 60, 0.35),
    0 0 0 1px rgba(10, 10, 10, 0.23);
  display: block;
  padding: 1em;
}

/* accordion */

.accordion_item {
  border-radius: 5px;
}

.accordion_item:hover {
  opacity: 0.8;
}

.accordion_header {
  padding: 0 1em;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  background: var(--color);
  align-items: center;
}

.accordion_content {
  margin-left: 50px;
  overflow: hidden;
  height: 0;
  transition: all 0.5s ease;
}

.accordion_content.active {
  margin: 1em;
}

/* tabs */

.tabs {
  display: flex;
  align-items: center;
}

.tablinks {
  display: flex;
  width: 100%;
  overflow: hidden;
  justify-content: center;
  box-shadow: none;
}

.tablinks:hover {
  box-shadow: none;
}

.tablinks.open {
  box-shadow: none;
}

.tabscontent {
  margin-top: 0px;
  z-index: -3;
  position: relative;
  opacity: 1;
  overflow: hidden;
  top: 0;
}

.tabcontent.open {
  display: block;
}

.tabcontent {
  display: none;
  width: 100%;
}

/* modal */

html.modal-active,
body.modal-active {
  overflow: hidden;
}

#modal-container {
  position: fixed;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  left: 0;
  transform: scale(0);
  z-index: 1;
}

#modal-container .modal-background {
  display: flex;
  background: rgba(0, 0, 0, 0.8);
  width: 100%;
  height: 100%;
  justify-content: center;
  align-items: center;
}

#modal-container .modal-background .modal-content {
  background: white;
  padding: 50px;
}

#modal-container.modal {
  transform: scaleY(0.01) scaleX(0);
  animation: unfoldIn 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#modal-container.modal .modal-background .modal-content {
  transform: scale(0);
  animation: zoomIn 0.5s 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#modal-container.modal.out {
  transform: scale(1);
  animation: unfoldOut 1s 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

#modal-container.modal.out .modal-background .modal-content {
  animation: zoomOut 0.5s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes unfoldIn {
  0% {
    transform: scaleY(0.005) scaleX(0);
  }

  50% {
    transform: scaleY(0.005) scaleX(1);
  }

  100% {
    transform: scaleY(1) scaleX(1);
  }
}

@keyframes unfoldOut {
  0% {
    transform: scaleY(1) scaleX(1);
  }

  50% {
    transform: scaleY(0.005) scaleX(1);
  }

  100% {
    transform: scaleY(0.005) scaleX(0);
  }
}

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

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

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

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

/* open */

.more input[type="checkbox"] ~ .open {
  max-height: 0;
  display: block;
  overflow: hidden;
  transition: 1s ease;
}

.more input[type="checkbox"]:checked ~ .open {
  max-height: 500px;
}

.more input[type="checkbox"]:checked ~ .more-open {
  display: none;
}

input#open {
  display: none !important;
}

.more-open {
  text-align: center;
}

.more label {
  cursor: pointer;
}

.more i {
  width: 100%;
  display: block;
  animation: bottom_move 1.5s ease-out infinite;
  position: relative;
}

/* parallax */

.parallax-content {
  background: white;
  padding: 60px;
  margin: 0 auto;
  text-align: justify;
}

.parallax h2 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.parallax .parallax-one,
.parallax .parallax-two,
.parallax .parallax-three {
  padding-top: 200px;
  padding-bottom: 200px;
  overflow: hidden;
  position: relative;
  width: 100%;
  background-attachment: fixed;
  background-size: cover;
  -moz-background-size: cover;
  -webkit-background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
}

.parallax .parallax-one {
  background-image: url(https://images.unsplash.com/photo-1415018255745-0ec3f7aee47b?dpr=1&auto=format&fit=crop&w=1500&h=938&q=80&cs=tinysrgb&crop=);
}

.parallax .parallax-two {
  background-image: url(https://фотообои.рф/upload/iblock/788/bs7381.jpg);
}

.parallax .parallax-three {
  background-image: url(https://funart.pro/uploads/posts/2021-03/1617070032_58-p-oboi-izobrazhenie-prirodi-59.jpg);
}