.show {
  -webkit-animation-name: showBlock;
  animation-name: showBlock;
  animation-duration: 0.5s;
  -webkit-animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  animation-timing-function: cubic-bezier(0.46, 0.03, 0.52, 0.96);

  webkit-animation-duration: 0.5s;
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
}

.hide {
  -webkit-animation-name: hideBlock;
  animation-name: hideBlock;
  animation-duration: 0.5s;
  -webkit-animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);
  animation-timing-function: cubic-bezier(0.455, 0.03, 0.515, 0.955);

  webkit-animation-duration: 0.5s;
  animation-fill-mode: both;
  -webkit-animation-fill-mode: both;
}

@keyframes showBlock {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes hideBlock {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.modal__overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: flex;
  padding: 2rem;

  background: rgba(0, 0, 0, 0.6);

  justify-content: center;
  align-items: center;

  backdrop-filter: blur(7.5px);
  -webkit-backdrop-filter: blur(7.5px);
}

.modal__container {
  overflow-y: auto;

  box-sizing: border-box;
  max-width: 500px;
  max-height: 100vh;

  border-radius: 2px;
  background-color: var(--primay);
}

.modal__header {
  display: flex;

  justify-content: space-between;
  align-items: center;
}

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;

  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;

  color: #00449e;
}

.modal__close {
  border: 0;
  background: transparent;
}

.modal__header .modal__close:before {
  content: '\2715';
}

.modal__content {
  line-height: 1.5;

  display: flex;
  gap: 10px;

  padding: 32px;

  color: var(--accent);

  flex-flow: column;
  justify-content: center;
  align-items: center;
}

.modal__btn {
  overflow: visible;

  transition: -webkit-transform 0.25s ease-out;
  transition: transform 0.25s ease-out;
  transition: transform 0.25s ease-out, -webkit-transform 0.25s ease-out;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  outline-offset: 0.2rem;

  border-width: 0;
  border-style: none;

  will-change: transform;
  -moz-osx-font-smoothing: grayscale;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/*.modal__btn:focus, .modal__btn:hover {*/
/*    -webkit-transform: scale(1.05);*/
/*    transform: scale(1.05);*/
/*}*/

/*.modal__btn-primary {*/
/*    background-color: #00449e;*/
/*    color: #fff;*/
/*}*/

/**************************\
  Demo Animation Style
\**************************/
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden='false'] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden='false'] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden='true'] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden='true'] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide .modal__container,
.micromodal-slide .modal__overlay {
  will-change: transform;
}
