@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Poppins-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Poppins';
  src: url('../fonts/Inter28pt-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --color-white: #FFFFFF;
  --color-black: #000000;

  --color-section-bg: #121212;
  --color-menu-bg: #061C3A;
  --color-pricing-bg: #051C3A;

  --font-family: 'Poppins', sans-serif;
  --second-family: 'Inter', sans-serif;

  --container-width: 1440px;
  --container-padding-x: clamp(1.25rem, -0.951rem + 9.39vw, 7.5rem);
  --container-padding-y: clamp(4.375rem, 3.495rem + 3.756vw, 6.875rem);

  --container-padding-legal-x: clamp(1.25rem, -0.202rem + 6.197vw, 5.375rem);

  --padding-item: 12px 24px;

  --border: 1px solid #fff;
  --border-radius: 12px;

  --liner-gradient: linear-gradient(180deg, #051c3a 0%, #121212 100%);
}

body {
  font-family: var(--font-family);
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  color: var(--color-white);
}

main {
  flex: 1;
}

a {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-inline: var(--container-padding-x);
}

.section-padding-top {
  padding-top: var(--container-padding-y);
}

.bg-color {
  background-color: var(--color-section-bg);
}

.section-gradient {
  background-image: var(--liner-gradient);
}

.h2 {
  font-size: clamp(1.375rem, 1.067rem + 1.315vw, 2.25rem);
  line-height: 1.45;
  text-align: center;
}

.h3 {
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
}

.lh {
  line-height: 1.75;
}

.text-size {
  font-size: 16px;
  text-align: center;
}

.text-description {
  font-size: 18px;
  text-align: center;
}

.ta-center {
  text-align: center;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: var(--color-black);
}

.header__menu {
  display: flex;
  justify-content: end;
  padding-inline: 20px;
  padding-block: clamp(1rem, 0.78rem + 0.939vw, 1.625rem);
}

.header__menu-list {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: calc(100dvh - 100%);

  overflow-y: auto;
  display: flex;
  flex-direction: column;
  row-gap: 40px;

  visibility: hidden;
  transition: all .3s ease-in-out;
  transform: translateY(-100%);
  z-index: 90;
}

.header__menu-list.active {
  padding: 121px 60px;
  visibility: visible;
  background-color: var(--color-menu-bg);
  transform: translateY(0);
}

.header__menu-link {
  font-weight: 500;
  font-size: 18px;
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: transform .3s ease, background-size .3s ease;
}

.header__menu-link:hover {
  background-size: 100% 2px;
}

.header__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px ;

  width: 30px;
  height: 30px;

  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.header__burger-line {
  display: block;
  width: 24px;
  height: 4px;
  background-color: var(--color-white);
  transition: transform .3s, opacity .3s;
}

.header__burger.active .header__burger-line:nth-child(2) {
  opacity: 0;
}

.header__burger.active .header__burger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.header__burger.active .header__burger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.hero {
  background: url('../image/hero/bg.png') center / cover no-repeat;
  padding-top: clamp(10.688rem, 8.531rem + 9.202vw, 16.813rem);
  padding-bottom: clamp(12.313rem, 11.168rem + 4.883vw, 15.563rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  row-gap: 32px;

  max-width: 800px;
}

.hero__title {
  font-weight: 800;
  font-size: clamp(1.625rem, 1.493rem + 0.563vw, 2rem);
  text-transform: uppercase;
}

.hero__description {
  font-size: 20px;
}

.hero__btn {
  align-self: center;
  padding: 16px 22px;
  border-radius: var(--border-radius);
  border: var(--border);
  backdrop-filter: blur(4px);
  background-color: rgba(255, 255, 255, 0.45);
  transition: transform .3s ease;
}

.hero__btn:hover {
  transform: scale(1.1);
}

.hero__btn-text {
  font-weight: 800;
  font-size: 20px;
  text-transform: uppercase;
  color: inherit;
}

.games {
  padding-bottom: clamp(3.75rem, 1.439rem + 9.859vw, 10.313rem);
}

.games__inner {
  display: flex;
  flex-direction: column;
  row-gap: 40px;
}

.games__header {
  max-width: 890px;
}

.games__header-title {
  text-align: left;
}

.games__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.games__content-image {
  align-self: center;
}

.games__content-item {
  border-top: var(--border);
  padding-block: var(--padding-item);
}

.games__content-item:last-child {
  padding-bottom: 0;
}

.services {
  background: linear-gradient(rgba(0, 0, 0, 0.5), #051C3A ), url('../image/services/bg.png') center / cover no-repeat;
  padding-bottom: clamp(10.938rem, 12.434rem + -6.385vw, 6.688rem);
}

.services__header {
  margin-bottom: 50px;
}

.services__swiper {
  overflow: hidden;
}

.services__swiper-list {
  display: flex;
}

.services__swiper-item {
  width: 400px !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 8px;
}

.services__swiper-icon--swap {
  width: 15px;
  height: 15px;
  background: linear-gradient(180deg, #9DB1C6 0%, #5E7A96 100%);
  border-radius: 3px;
  box-shadow: inset 0 -1px 2px rgba(0,0,0,0.2);
  border: 1px solid #4A6177;
}

.services__swiper-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: clamp(1.375rem, 0.979rem + 1.69vw, 2.5rem);
  margin-top: clamp(2.5rem, 2.06rem + 1.878vw, 3.75rem);
}

.services__swiper-btn {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 92px;
  height: 36px;
  border: 1px solid var(--color-white);
  border-radius: 100px;
  background: transparent;
  color: var(--color-white);
  transition: width .3s ease, background-color .3s ease, opacity .3s ease;
  flex-shrink: 0;
}

.services__swiper-btn:hover {
  width: 122px;
  background-color: rgba(255, 255, 255, 0.1);
}

.services__swiper-btn.swiper-button-disabled {
  opacity: 0.3;
  pointer-events: none;
}

.tools {
  padding-bottom: clamp(4.5rem, 3.246rem + 5.352vw, 8.063rem);
}

.tools__inner {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.tools__content-item {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  border-top: var(--border);
  padding-block: var(--padding-item);
}

.tools__content-item:last-child {
  padding-bottom: 0;
}

.case {
  padding-bottom: clamp(5.625rem, 3.82rem + 7.7vw, 10.75rem);
}

.case__inner {
  display: flex;
  flex-direction: column;
  row-gap: clamp(3.125rem, 2.795rem + 1.408vw, 4.063rem);
}

.case__content-item {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  border-top: var(--border);
  padding-block: var(--padding-item);
}

.pricing {
  background: linear-gradient(rgba(0, 0, 0, 0.5)), url('../image/pricing/bg.png') center / cover no-repeat;
  padding-bottom: clamp(3.75rem, 2.87rem + 3.756vw, 6.25rem);
}

.pricing__inner {
  display: flex;
  flex-direction: column;
  row-gap: 50px;
}

.pricing__content-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.pricing__content-item {
  display: flex;
  flex-direction: column;
  row-gap: 24px;
  border-radius: var(--border-radius);
  padding: 32px 18px;
  box-shadow: 0 4px 10px 0 rgba(82, 82, 82, 0.1);
  background-color: var(--color-pricing-bg);
}

.community {
  padding-bottom: clamp(3.75rem, 2.188rem + 6.667vw, 8.188rem);
}

.community__header {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.community__header-description {
  margin-bottom: clamp(3.125rem, 2.641rem + 2.066vw, 4.5rem);
}

.community__content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.community__content-item {
  border-top: var(--border);
  padding-block: var(--padding-item);
}

.community__content-item:last-child {
  padding-bottom: 0;
}

.community__content-image {
  align-self: center;
}

.contact {
  padding-bottom: clamp(4.188rem, 2.757rem + 6.103vw, 8.25rem);
}

.contact__inner {
  display: flex;
  flex-direction: column;
  row-gap: 50px;
}

.contact__header {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
}

.contact__content {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

.contact__content-list {
  width: 100%;
  max-width: 580px;
}

.contact__content-item {
  border-top: var(--border);
  padding-block: var(--padding-item);
}

.contact__content-item:last-child {
  padding-bottom: 0;
}

.contact__content-link {
  color: inherit;
}

.footer__wrapper {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding-block: clamp(1.438rem, 0.953rem + 2.066vw, 2.813rem);
}

.footer__copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 6px;
}

.footer__nav-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(0.75rem, -1.627rem + 10.141vw, 7.5rem);
}

.footer__nav-link {
  color: inherit;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: transform .3s ease, background-size .3s ease;
}

.footer__nav-link:hover {
  background-size: 100% 2px;
}

.footer__copyright-contact {
  color: inherit;
  transition: transform .3s ease
}

.footer__copyright-contact:hover {
  transform: scale(1.05);
}

@media (min-width: 768px) {
  .hero__btn {
    align-self: flex-start;
  }

  .tools__content-list {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
  }

  .tools__content-item:nth-child(-n+3) {
    grid-column: span 2;
    padding-bottom: 103px;
    border-bottom: var(--border);
  }

  .tools__content-item:nth-last-child(-n+2) {
    grid-column: span 3;
    max-width: 600px;
    justify-self: center;
    text-align: center;
    padding-bottom: 0;
    border-top: none;
  }

  .case__content-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    column-gap: clamp(1.875rem, 1.347rem + 2.254vw, 3.375rem);
  }
  
  .case__content-item {
    padding-bottom: 0;
  }

  .pricing__content-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 432px));
    justify-content: center;
  }

  .footer__nav-list {
    flex-direction: row;
  }
}

@media (min-width: 1024px) {
  .header__burger {
    display: none;
  }

  .header__menu {
    justify-content: center;
  }

  .header__menu-list {
    position: static;
    width: auto;
    height: auto;
    visibility: visible;
    transform: none;
    flex-direction: row;
    padding: 0;
    column-gap: clamp(0.625rem, 0.141rem + 2.066vw, 2rem);
  }

  .text-left {
    text-align: left;
  }

  .games__inner {
    row-gap: 50px;
  }

  .games__content {
    flex-direction: row;
  }

  .games__content-list {
    flex-grow: 1;
  }

  .community__content {
    flex-direction: row;
    align-items: center;
  }

  .community__content-list {
    flex-grow: 1;
  }
}