@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: #242424;
  --panel: #1a1d24;
  --panel-light: #3c3d41;
  --text: #f2f2f2;
  --muted: #9ca2aa;
  --accent: #9e3dff;
  --green: #4ad26d;
  --red: #ff4a4a;
}

* {
  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: 10px 0;
}

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

.header__logo {
  max-width: 100px;
}

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

.header__btns {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header__btns button {
  background: none;
  border: none;
  cursor: pointer;
}

.header__close {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: none;
}
.header__close span {
  display: block;
  position: relative;
  transform: scale(0.75) rotate(45deg);
  width: 100%;
  height: 100%;
}

.header__close span::before,
.header__close span::after {
  content: "";
  position: absolute;
  background: var(--text);
}

.header__close span::before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text);
}

.header__close span::after {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
  background: var(--text);
}

.header__search {
  width: 18px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}

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

.header__age {
  padding: 2px 6px;
  border-radius: 4px;
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  color: var(--white-color);
  text-decoration: none;
}

.main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.main__content {
  width: 100%;
  background: #000000;
  padding: 10px 0;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

.main__topic {
  width: 100%;
}

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

.main__button-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 10px auto;
}

.main__button {
  width: 100%;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8dvh 1dvh;
  background: #3b3b3b;
  border-radius: 5px;
}

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

.main__button-text {
  font-size: clamp(1.625rem, 0.9583rem + 3.3333vw, 2rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  text-wrap: balance;
}

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

.main__button.agree {
  display: none;
}

.main__button.default {
  display: block;
}

.main__description {
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  margin-top: 10px;
  text-wrap: balance;
}

.main__like {
  width: 100%;
}

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

.main__decorate {
  width: 100%;
}

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

.footer {
  padding: 10px 0;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer__text {
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  color: var(--text);
  text-align: center;
  position: relative;
}

.footer__default {
  opacity: 1;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
}

.footer__agree {
  opacity: 0;
}

.footer__agree a {
  color: var(--text);
  text-decoration: none;
}

body.close .header__close {
  display: block;
}

body.agree .footer__default {
  opacity: 0;
}

body.agree .footer__agree {
  opacity: 1;
}

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

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

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

body.loader .main__button-container {
  display: none;
}
