@font-face {
  font-family: "Inter";
  src: url("Inter-Thin.ttf") format("truetype");
  font-style: normal;
  font-weight: 100;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-ExtraLight.ttf") format("truetype");
  font-style: normal;
  font-weight: 200;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-Light.ttf") format("truetype");
  font-style: normal;
  font-weight: 300;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-ExtraBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
}
@font-face {
  font-family: "Inter";
  src: url("Inter-Black.ttf") format("truetype");
  font-style: normal;
  font-weight: 900;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #1b1b1b;
  display: flex;
  flex-direction: column;
  height: 100dvh;
}

header,
footer {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
}

.container {
  max-width: 430px;
  width: 100%;
  margin: 0 auto;
  padding: 0 12px;
}

.header {
  padding: 20px 0;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5);
}

.header__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  max-width: 133px;
}

.header__logo img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.header__age {
  font-size: 20px;
  color: #979797;
}

.main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.main__container {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.main__close {
  display: block;
  max-width: 17px;
  max-height: 26px;
  width: 100%;
  height: 100%;
  position: absolute;
  right: 12px;
  top: 12px;
  display: none;
}

.main__close img {
  width: 100%;
  display: block;
  object-fit: contain;
}

.main__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex: 1 0 auto;
  position: relative;
}

.main__content::before {
  content: "";
  top: 50%;
  left: 0;
  right: 0;
  height: 25dvh;
  transform: translateY(-50%) scale(1.5);
  background: #9999996e;
  position: absolute;
  z-index: 0;
}

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

.main__container::before {
  content: "";
  top: 50%;
  transform: translateY(-50%) scale(1.5);
  filter: blur(10px);
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url("bg.png") no-repeat center center;
  background-size: contain;
  position: absolute;
  z-index: -1;
}

.main__title {
  font-size: 16px;
  font-weight: 400;
  color: #00000066;
  text-align: center;
  text-wrap: balance;
  text-transform: uppercase;
}

.main__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 0;
  background: #979797;
  border: none;
  text-decoration: none;
  color: #000000;
  border-radius: 0;
  font-size: 28px;
  padding: 25px 5px;
}

.main__button img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-width: 39px;
  aspect-ratio: 39 / 39;
}

.main__button-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.main__button span {
  font-size: 14px;
}

.main__button.agree {
  display: none;
}
.main__description {
  font-size: 14px;
  color: #00000066;
  text-align: center;
  text-wrap: balance;
}

.footer {
  padding: 5px 0;
  position: relative;
}

.footer__container {
  position: relative;
}

.footer__text {
  font-size: 12px;
  color: #979797;
  text-align: center;
  text-wrap: balance;
}

.footer__text a {
  color: inherit;
}

.footer__text.agree {
  display: block;
  opacity: 0;
}

.footer__text.default {
  display: block;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}

.loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  justify-content: center;
  align-items: center;
}

.loaderItem {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  border: 3px solid;
  border-color: #fff #fff transparent transparent;
  animation: rotation 1s linear infinite;
}

.loaderItem::after,
.loaderItem::before {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  margin: auto;
  border: 3px solid;
  border-color: transparent transparent #ff3d00 #ff3d00;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  animation: rotationBack 0.5s linear infinite;
}

.loaderItem::before {
  width: 32px;
  height: 32px;
  border-color: #fff #fff transparent transparent;
  animation: rotation 1.5s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

body.close .main__close {
  display: block;
}

body.loader .loading {
  display: flex;
}

body.loader .main__content {
  display: none;
}

body.agree .main__button.agree {
  display: flex;
}

body.agree .main__button.default {
  display: none;
}

body.agree .footer__text.agree {
  display: block;
  opacity: 1;
}

body.agree .footer__text.default {
  display: none;
}
