@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;
}

:root {
  --bg: #ffffff;
  --text: #5b545480;
}

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

body {
  font-family: "Inter", sans-serif;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}

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: 0.5rem 0;
  background: #2c2c2c;
}

.header__container {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.header__left {
  display: flex;
  flex-direction: row;
  gap: 0.2rem;
  align-items: center;
}

.header__age {
  color: #ffffff;
}

.main {
  padding: 0.2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.main__video {
  flex: 1 0 auto;
  background: url("main.png") no-repeat center;
  background-size: content;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

.main__video .danger {
  font-size: clamp(1.25rem, 0.4028rem + 4.2222vw, 1.5rem);
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
}

.main__button {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: #a31511;
  padding: 5dvh 0.5rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 80%;
  text-decoration: none;
}

.main__button.agree {
  display: none;
}

.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: flex-start;
  justify-content: center;
  gap: 0.2rem;
  font-weight: 700;
  font-size: 24px;
  color: #ffffff;
}

.main__button-text span {
  font-size: 13px;
}

.main__likes {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  object-fit: contain;
  margin: 0 auto;
}

.main__price {
  text-align: center;
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}

.main__price span {
  opacity: 0;
}

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

.main__decorate img {
  width: 80%;
  aspect-ratio: 280/125;
  filter: blur(2.4px);
  object-fit: cover;
  object-position: top 100%;
}

.main__close {
  text-align: center;
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  color: #61616180;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  text-decoration: none;
}

.footer__container {
  display: flex;
  position: relative;
  flex-direction: column;
}

.footer__text {
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  color: #554034;
  text-align: center;
  text-wrap: balance;
}

.footer__text a {
  color: inherit;
}

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

.footer__text.agree {
  opacity: 0;
}

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

body.agree .footer__text.default {
  opacity: 0;
}

body.agree .main__price span {
  opacity: 1;
}

body.agree .main__video .danger {
  opacity: 0;
}

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

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

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

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

body.loader .main__video .danger {
  display: none;
}

body.close .main__close {
  opacity: 1;
}

.loading {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 20;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
}

.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.loader .loading {
  display: flex;
}
