@font-face {
  font-family: "Montserrat";
  src: url("../fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Montserrat';
  src: url("../fonts/Montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat";
  font-weight: 400;
  position: relative;
  min-width: 285px;
  margin: 0 auto;
  color: #FFFF;
  background: #212B36;
}

img {
  max-width: 100%;
  max-height: 100%;
}

.container {
  margin: 0 auto;
  max-width: 1188px;
  background-image: url('/img/main.png');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  padding-bottom: 80px;
  height: 100%;
  min-height: 100%;
  @media (min-width: 1550px) {
    max-width: 1584px;
    padding-bottom: 114px;
  }
  @media (max-width: 768px) {
    background: none;
    padding-bottom: 25px;
  }
}

.wrapper {
  padding: 80px 125px 0 125px;
  min-height: 100%;
  height: 100%;
  @media (min-width: 1550px) {
    padding: 114px 166px 0 166px;
  }
  @media (max-width: 1200px) {
    padding: 80px 64px 0 64px;
  }
  @media (max-width: 992px) {
    padding: 80px 32px 0 32px;
  }
  @media (max-width: 768px) {
    padding: 23px 18px 0 18px;
  }
}

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

.header {
  width: 100%;
  text-align: center;
  background: #161C24;
  height: 74px;
  padding: 13px 138px;

  @media (min-width: 1550px) {
    padding: 17px 184px;
    height: 98px;
  }
  @media (max-width: 1200px) {
    padding: 13px 76px;
  }
  @media (max-width: 992px) {
    padding: 13px 44px;
  }
  @media (max-width: 768px) {
    padding: 14px 10px;
    height: 64px;
  }
}

.header__wrapper {
  width: 100%;
  height: 100%;
  max-width: 1164px;
  margin: 0 auto;
  @media (min-width: 1550px) {
    max-width: 1552px;
  }
}

.header__buttons-wrap {
  gap: 16px;
  @media (min-width: 1550px) {
    gap: 21px;
  }
  @media (max-width: 768px) {
    gap: 5px;
  }
}

.header__buttons {
  font-family: Montserrat;
  font-weight: 700;
  letter-spacing: 0.01em;
  gap: 16px;
  font-size: 16px;
  line-height: 20px;

  &.home-block__buttons-mobile {
    display: none;
    @media (max-width: 768px) {
      display: flex;
      gap: 5px;
    }
    .header__login-button,
    .header__registration-button {
      flex-grow: 1;
      text-align: center;
    }
  }

  @media (min-width: 1550px) {
    gap: 21px;
    font-size: 20px;
    line-height: 26.67px;
  }
  @media (max-width: 768px) {
    font-size: 12px;
    line-height: 20px;
    gap: 16px;
  }
  @media (max-width: 576px) {
    gap: 5px;
  }
}

.header__logo {
  width: 149px;
  @media (min-width: 1550px) {
    width: 199px;
  }
  @media (max-width: 768px) {
    width: 105px;
  }
}

.header__login-button {
  color: #FFFF;
  text-decoration: none;
  background: #212B36;
  border: 2px solid #00AB55;
  border-radius: 10.67px;
  padding: 12.4px 22px;
  &:hover, &:active {
    color: #FFFF;
    text-decoration: none;
  }
  @media (min-width: 1550px) {
    padding: 18.5px 32px;
    border: 2.67px solid #00AB55;
  }
  @media (max-width: 768px) {
    padding: 6.4px 16px;
    border-radius: 6px;
  }

  &.header__button {
    @media (max-width: 576px) {
      font-size: 0;
      padding: 0;
      border-radius: none;
      border: none;
      background-color: transparent;
      background-image: url('/img/icons/enter.svg');
      background-position: center;
      background-size: cover;
      width: 36px;
      height: 36px;
      cursor: pointer;
    }
  }
  
}

.header__registration-button {
  color: #FFFF;
  text-decoration: none;
  background: #00AB55;
  border-radius: 10.67px;
  box-shadow: 0px 8px 16px 0px #00AB5540;
  padding: 14px 16px;
  &:hover, &:active {
    color: #FFFF;
    text-decoration: none;
  }
  @media (min-width: 1550px) {
    padding: 18.5px 21px;
    box-shadow: 0px 10.67px 21.33px 0px #00AB5540;
  }
  @media (max-width: 768px) {
    padding: 8px 16px;
    border-radius: 6px;
    box-shadow: none;
  }
}

.home-block__title {
  color: #00AB55;
  font-family: Montserrat;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 36px;
  line-height: 42px;
  max-width: 862px;
  padding: 12px;
  margin-bottom: 18px;
  @media (min-width: 1550px) {
    font-size: 48px;
    line-height: 56px;
    margin-bottom: 20px;
    max-width: 1140px;
    padding: 16px;
  }
  @media (max-width: 768px) {
    font-size: 18px;
    line-height: 24px;
    padding: 12px 0 0;
    margin-bottom: 0;
    max-width: 100%;
  }
}

.home-block__image-mb {
  display: none;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  @media (max-width: 768px) {
    display: block;
  }
  @media (max-width: 380px) {
    margin: -25px auto 0;
  }
}

.home-block__sub-title {
  font-family: Montserrat;
  font-weight: 400;
  letter-spacing: 0.01em;
  max-width: 598px;
  font-size: 20px;
  line-height: 26px;
  padding: 6px 12px;
  margin-bottom: 16px;
  span:nth-of-type(2) {
    font-weight: 800;
  }
  @media (min-width: 1550px) {
    font-size: 24px;
    line-height: 34.67px;
    max-width: 750px;
    margin-bottom: 21px;
    padding: 8px 16px;
  }
  @media (max-width: 768px) {
    font-size: 14px;
    line-height: 20px;
    padding: 6px 0;
    margin-bottom: 0;
    max-width: 100%;
  }
}

.home-block__items {
  display: flex;
  gap: 8px;
  flex-direction: column;
  margin-bottom: 16px;
  max-width: 523px;
  @media (min-width: 1550px) {
    max-width: 700px;
    margin-bottom: 21px;
  }
  @media (max-width: 768px) {
    gap: 0;
    margin-bottom: 4px;
    max-width: 100%;
  }
}

.home-block__item {
  display: flex;
  align-items: center;
  gap: 14px;
  @media (min-width: 1550px) {
    gap: 20px;
  }
  @media (max-width: 768px) {
    gap: 7px;
  }
}

.home-block__image {
  width: 87px;
  aspect-ratio: 1/1;
  @media (min-width: 1550px) {
    width: 117px;
  }
  @media (max-width: 768px) {
    width: 84px;
  }
}

.home-block__text {
  font-family: Montserrat;
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 18px;
  line-height: 24px;
  @media (min-width: 1550px) {
    font-size: 24px;
    line-height: 32px;
  }
  @media (max-width: 768px) {
    font-size: 14px;
    line-height: 17px;
    font-weight: 700;
  }
}

.home-block__description {
  font-family: Montserrat;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  @media (min-width: 1550px) {
    font-size: 24px;
    line-height: 42.67px;
    padding: 8px 16px;
  }
  @media (max-width: 768px) {
    padding: 4px 0;
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    margin-bottom: 11px;
  }
}

.header-lang { 
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 48px;
  height: 48px;
  overflow: hidden; 
  @media (min-width: 1550px) {
    width: 64px;
    height: 64px;
  }
  @media (max-width: 768px) {
    width: 36px;
    height: 36px;
  }
}

.header-lang__current,
.header-lang__select {
  width: 24px;
  height: 24px;
  @media (min-width: 1550px) {
    width: 36px;
    height: 36px;
  }
}

.header-lang ul {
  width: 48px;
  background: #2C3845;
  border-radius: 8px;
  display: none;
  position: absolute;
  overflow: hidden;
  -webkit-transition: opacity 0.2s ease-in;
  transition: opacity 0.2s ease-in;
  z-index: 100;
  @media (min-width: 1550px) {
    width: 64px;
  }
  @media (min-width: 768px) {
    width: 48px;
  }
}

.header-lang ul li { 
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-lang ul li a{ 
  display: block;
  margin: 2px 0;
  @media (min-width: 1550px) {
    margin: 4px 0;
  }
}

.header-lang ul li a.active{
  display: none;
}

.header-la-ng:hover ul,.header-lang.show ul { 
  height: auto;
  display: flex;
  flex-direction: column; 
  padding: 6px 0;
  margin: 0;
  top: 60px;
  @media (min-width: 1550px) {
    padding: 12px 0;
    top: 76px;
  }
  @media (max-width: 768px) {
    top: 55px;
    right: 10px;
  }
}