@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 {
  --primary-color: #FE5722;
  --primary-light-color: #D37907;
  --secondary-color: #19181D;
  --white-color: #FFFFFF;
  --black-color: #000000;
  --red-color: #FF0000;
  --gray-color: #B1B1B1;
}

* {
  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;
}

.container {
  max-width: 500px;
  padding: 0 15px;
  margin-right: auto;
  margin-left: auto;
  width: 100%;
}

.header {
  background: var(--secondary-color);
}

.header__container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding:  15px;
}

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

.header__logo {
  max-width: clamp(6.875rem, 2.4306rem + 22.2222vw, 9.375rem);
  width: 100%;
  display: block;
}

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

.header__menu {
  max-width: clamp(1.875rem, 0.5417rem + 6.6667vw, 2.625rem);
  aspect-ratio: 1 / 1;
}

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

.navigation {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.navigation_list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: clamp(0.3125rem, -0.2431rem + 2.7778vw, 0.625rem);
  border-top: 1px solid var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
}

.navigation_item {
  list-style: none;
}

.navigation_item span {
  font-size: clamp(0.75rem, 0.3056rem + 2.2222vw, 1rem);
  font-weight: 500;
  padding: 5px;
  color: var(--white-color);
}

.loading {
  display: none;
  background: var(--gray-color);

}

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

  &::after,
  &::before {
    content: '';
    box-sizing: border-box;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    border: 3px solid;
    border-color: transparent transparent #ff3d00 #ff3d00;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-sizing: border-box;
    animation: rotationBack 0.5s linear infinite;
    transform-origin: center center;
  }

  &::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);
  }
}


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

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

.closes {
  display: none;
  position: absolute;
  background: var(--gray-color);
  border: none;
  width: 22px;
  aspect-ratio: 1 / 1;
  top: 3px;
  right: 3px;
  z-index: 99999;
  text-decoration: none;
  color: var(--white-color);
}

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

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

.main__content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex: 1 0 auto;
  padding: 10px 0;
}

.main__title {
  font-size: clamp(1.25rem, 0.8056rem + 2.2222vw, 1.5rem);
  color: var(--black-color);
  text-align: center;
  text-wrap: balance;
  font-weight: 600;
}

.main__button-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.main__button {
  text-decoration: none;
  border: none;
  background: var(--primary-color);
  width: 100%;
  color: var(--white-color);
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  gap: 10px;
  padding: 5dvh 0;
  font-weight: 700;
  font-size: clamp(1.25rem, 0.8056rem + 2.2222vw, 1.5rem);
}

.main__button.agree {
  display: none;
}

.main__button-text {
  text-align: left;
  text-wrap: balance;
  display: flex;
  flex-direction: column;
}

.main__button-text span {
  font-size: clamp(0.625rem, 0.2917rem + 1.6667vw, 0.8125rem);
}

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

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

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

.footer__likes {
  max-width: 170px;
  width: 100%;
  display: block;
  margin: 0 auto;
}

.footer__likes img {
  display: block;
  width: 100%;
  object-fit: contain;
  aspect-ratio: 170 / 43;
}

.footer__categories, .footer__tags {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.footer__categories-title {
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  color: var(--white-color);
}

.footer__categories-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
}

.footer__categories-item {
  color: var(--primary-light-color);
  padding: 2px 5px;
  border: 1px solid var(--primary-light-color);
}

.footer__tags-title {
  color: var(--white-color);
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
}

.footer__tags-list {
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  color: var(--primary-light-color);
  text-wrap: balance;
}

.footer__text {
  text-align: center;
  font-size: clamp(0.625rem, 0.4028rem + 1.1111vw, 0.75rem);
  color: var(--white-color);
  opacity: 0.6;
  text-wrap: balance;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
}

.footer__text a {
  color: inherit;
}

.footer__default {
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  width: 100%;
  background: var(--secondary-color);
  z-index: 1;
}

.footer__agree {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

body.agree .footer__default {
  opacity: 0;
}

body.agree .footer__agree {
  opacity: 1;
  transition-delay: 0.3s;
}

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

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

body.loader .loading {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
  height: 100% !important;
}

body.loader .main__content {
  display: none;
}

body.close .closes {
  display: block;
}
