@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 {
  --white-color: #ffffff;
  --black-color: #000000;
  --primary-color: #fe8922;
  --secondary-color: #19191b;
  --frame-color: #2e2e33;
  --text-muted: #6f6f6f;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100dvh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  background: var(--black-color);
}

header, footer {
  flex: 0 0 auto;
}

main {
  flex: 1 0 auto;
}

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

.header {
  background: var(--secondary-color);
  padding: 10px 0;
}

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

.header__logo {
  max-width: 90px;
}

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

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

.header__nav-list {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  list-style: none;
}

.header__nav-link {
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  font-weight: 400;
  color: var(--white-color);
  text-decoration: none;
}

.header__nav-link.active {
  color: var(--primary-color);
}

.header__age {
  padding: 2px 6px;
  background: var(--primary-color);
  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;
  flex: 1 0 auto;
  justify-content: center;
}

.main__container {
  position: relative;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

.main__content {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 34px 12px 14px;
  gap: 12px;
}

.main__title {
  color: var(--white-color);
  text-align: center;
  font-size: clamp(1.125rem, 0.9028rem + 1.1111vw, 1.25rem);
  font-weight: 700;
  margin-top: 56px;
}

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

.main__button {
  width: 100%;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: #dcdcdc;
  color: var(--black-color);
  font-size: clamp(0.875rem, 0.4306rem + 2.2222vw, 1.125rem);
  font-weight: 800;
  line-height: 1;
  padding: 14px 8px 12px;
  cursor: pointer;
}

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

.main__button-text span {
  font-size: clamp(0.75rem, 0.5278rem + 1.1111vw, 0.875rem);
  font-weight: 700;
}

.main__button-description {
  color: var(--text-muted);
  text-align: center;
  font-size: clamp(0.75rem, 0.5278rem + 1.1111vw, 0.875rem);
  line-height: 1.15;
}

.main__button.agree {
  display: none;
}

.main__play-icon {
  width: 0;
  height: 0;
  border-top: 18px solid transparent;
  border-bottom: 18px solid transparent;
  border-left: 32px solid #000000;
  margin-left: 6px;
}

.main__player {
  width: 100%;
}

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

.main__description {
  width: 100%;
}

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

.footer {
  padding: 12px 0 16px;
}

.footer__container {
  padding: 0 12px 10px;
}

.footer__text {
  text-align: center;
  font-size: clamp(0.75rem, 0.5278rem + 1.1111vw, 0.875rem);
  color: var(--text-muted);
  line-height: 1.15;
  position: relative;
}

.footer__text a {
  color: inherit;
}

.footer__default {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.footer__agree {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
}

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

.closes {
  display: none;
  position: absolute;
  background: #55585b;
  border: none;
  width: 22px;
  aspect-ratio: 1 / 1;
  top: 4px;
  right: 4px;
  z-index: 30;
  text-decoration: none;
  color: var(--white-color);
}

.closes span {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotate(45deg) scale(0.74);
}

.closes span::before,
.closes span::after {
  content: '';
  display: block;
  position: absolute;
  background: var(--white-color);
}

.closes span::before {
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 2px;
}

.closes span::after {
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  width: 2px;
}

body.agree .footer__default {
  opacity: 0;
}

body.agree .footer__agree {
  opacity: 1;
}

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

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

body.loader .loading {
  display: flex;
}

body.loader .main__content {
  display: none;
}

body.close .closes {
  display: block;
}
