body {
  background-color: #241E49;
  font-family: 'Rubik', sans-serif;
  background-image: url("img/bg-top.svg");
  background-position: top center;
  background-size: contain;
  background-repeat: no-repeat;
  margin: 0;
}

body, button {
  font-family: 'Rubik', sans-serif;
}

a {
  color: white;
}

a:visited {
  color: white;
}

a:hover {
  color: white;
}

a:active {
  color: white;
}

a {
  text-decoration: none;
}
table {
  border-spacing: 10px;
}

.terms ol ul {
  padding-left: 16px;
}

.terms ol {
  /* убираем стандартную нумерацию */
  list-style: none;
  /* Идентифицируем счетчик и даем ему имя li. Значение счетчика не указано - по умолчанию оно равно 0 */
  counter-reset: li;
  padding: 0;
}

.terms li {
  padding: 12px 0;
}

.terms ol> li:before {
  /* Определяем элемент, который будет нумероваться — li. Псевдоэлемент before указывает, что содержимое, вставляемое при помощи свойства content, будет располагаться перед пунктами списка. Здесь же устанавливается значение приращения счетчика (по умолчанию равно 1). */
  counter-increment: li;
  /* С помощью свойства content выводится номер пункта списка. counters() означает, что генерируемый текст представляет собой значения всех счетчиков с таким именем. Точка в кавычках добавляет разделяющую точку между цифрами, а точка с пробелом добавляется перед содержимым каждого пункта списка */
  content: counters(li, ".") ". ";
}

.center-container {
  display: flex;
  flex-direction: column;
  gap: 200px;
  background-image: url("img/bg-bottom.svg"), url("img/bg-center.svg");
  background-position: bottom center, -20px 40%;
  background-size: contain, 50vw;
  background-repeat: no-repeat;
  padding: 100px max(40px, calc((100vw - 1200px) / 2));
  max-width: 100vw;
  overflow: hidden;
}

.content {
  gap: 0;
  color: #FFFFFF;
  font-size: 20px;
  font-weight: 300;
  padding-top: 20px;
}
.bottom-container {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  text-align: center;
}

.header {
  position: sticky;
  top: 0;
  background: rgba(36, 30, 73, 0.9);
  backdrop-filter: blur(17px);
  padding: 18px max(40px, calc((100vw - 1200px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
}

.header-logo {
  width: 196px;
  height: 40px;
}

.header-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 12px;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  color: #FFFFFF;
  cursor: pointer;
}

.button-primary {
  background: #ED2A07;
  border: none;
}

.button-primary:hover {
  background: #D83214;
}

.button-primary:active {
  background: #C72103;
}

.button-secondary {
  border: 2px solid #ED2A07;
  background-color: transparent;
}

.button-secondary:hover {
  border-color: #D83214;
}

.button-secondary:active {
  border-color: #C72103;
}

.button-s {
  height: 54px;
  width: 175px;
}

.button-m {
  height: 68px;
  width: 300px;
}

.lang-selector-button {
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  text-align: center;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  background: transparent;
  border: none;
  cursor: pointer;
}

.lang-selector-button:hover {
  color: #ED2A07;
}

.lang-selector-select-wrap {
  position: absolute;
  right: 0;
  top: 0;
  padding-top: 50px;
  visibility: hidden;
}

.lang-selector-button:hover .lang-selector-select-wrap, .lang-selector-select-wrap:hover {
  visibility: visible;
}

.lang-selector-select {
  background: #241E49;
  box-shadow: 0px 0px 34px rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-weight: 400;
  font-size: 18px;
  line-height: 21px;
  text-align: center;

  color: #FFFFFF;

}
.lang-selector-option {
  text-decoration: none;
}

.lang-selector-option:hover, a.lang-selector-option-selected {
  color: #ED2A07;
  text-decoration: none;
}

.footer {
  font-weight: 400;
  font-size: 15px;
  line-height: 18px;

  color: #7B769A;
  font-family: 'Inter', sans-serif;
  padding: 30px max(40px, calc((100vw - 1200px) / 2));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-first-row {
  display: flex;
  justify-content: space-between;
  gap: 200px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 40px;
}

.footer-mainlinks {
  display: grid;
  grid-template-columns: repeat(2, 200px);
  gap: 16px 40px;
}

.footer-sublinks {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links a {
  text-decoration: none;
  color: #7B769A;
}

.footer-sublinks {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 15px;

}
.footer-links a:hover {
  color: #ED2A07;
}

.top {
  display: flex;
  gap: 40px;

  color: #FFFFFF;
}

.top-left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.top-title {
  font-family: 'Aleo', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 54px;
  line-height: 65px;
}

.top-description {
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;
  margin-bottom: 14px;
}

.center {
  display: flex;
  gap: 100px;
}

.center-left {
  display: flex;
  flex-direction: column;
}

.center-left img {
  background: #D9D9D9;
  border-radius: 12px;
  overflow: hidden;
  filter: drop-shadow(0px 0px 54px rgba(0, 0, 0, 0.45));
}

.center-benefits > img {
  display: none;
}

.center-title {
  font-family: 'Aleo', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;

  /* White */

  color: #FFFFFF;
  margin-bottom: 24px;
}

.center-description {
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;

  /* White */

  color: #FFFFFF;
  margin-bottom: 40px;
}

.center-benefits {
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.benefit {
  display: flex;
  gap: 40px;
}

.benefit-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 2px solid #ED2A07;
  filter: drop-shadow(0px 0px 14px #ED2A07);
  border-radius: 12px;
}

.benefit-icon img {
  width: 50px;
  height: 50px;
}

.benefit-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.benefit-title {
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;

  /* White */

  color: #FFFFFF;
}

.benefit-description {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;

  /* White */

  color: #FFFFFF;
}

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

.bottom-title {
  font-family: 'Aleo', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  text-align: center;

  /* White */

  color: #FFFFFF;
  margin-bottom: 18px;
}

.bottom-description {
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;
  text-align: center;

  /* White */

  color: #FFFFFF;
  margin-bottom: 54px;
}


.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

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

.step-title {
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 24px;
  line-height: 28px;
  text-align: center;

  /* White */

  color: #FFFFFF;
  margin-bottom: 10px;
  margin-top: 50px;
}

.step-description {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  text-align: center;

  /* White */

  color: #FFFFFF;
}

.register-wrap {
  display: flex;
  justify-content: center;
}

.register {
  padding: 50px 100px;
  background-color: #ED2A07;
  border-radius: 20px;
  background-image: url("img/register-banner-bg.svg");
  background-size: cover;
  background-position: bottom center;
  background-repeat: no-repeat;
}

.register-title {
  font-family: 'Aleo', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  text-align: center;

  color: #FFFFFF;
  margin-bottom: 18px;
}

.register-description {
  font-family: 'Rubik', sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 24px;
  line-height: 28px;
  text-align: center;

  color: #FFFFFF;
  margin-bottom: 30px;
}

.register-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.register-button {
  width: 235px;
  object-fit: contain;
}
.register-button:hover {
  opacity: 0.8;
}

.header-menu-handler {
  display: none;
}


.right-menu {
  display: none;
}

.top-left .register-buttons {
  display: none;
}

.p {
  margin-block-start: 1em;
  margin-block-end: 1em;
}

@media(max-width: 1100px) {
  .right-menu {
    display: flex;
    flex-direction: column;
    background: #241E49;
    box-shadow: 0px 0px 34px rgba(0, 0, 0, 0.25);
    border-radius: 12px 0px 0px 12px;
    width: 290px;
    position: fixed;
    top: 0;
    bottom: 0;
    right: -290px;
    transform: translateX(0px);
    z-index: 2;
    padding: 20px;
    gap: 15px;
    transition: transform 0.3s ease-in;
    box-sizing: border-box;
  }
  .right-menu_open {
    transform: translateX(-290px);
  }
  .right-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    cursor: pointer;
  }
  .right-menu .lang-selector-select-wrap {
    right: unset;
    left: 0;
    padding-top: 25px;
  }
  .right-menu .button {
    width: 100%;
  }
  .center-container {
    padding: 100px 40px;
    background-image: url("img/tablet-bottom-bg.svg"), url("img/bg-center.svg");
    background-position: bottom center, -20px 45%;
    background-size: contain, 65vw;
    padding-bottom: 200px;
  }
  .content {
    padding-top: 20px;
  }
  .header-buttons {
    display: none;
  }

  .header-logo {
    width: 166px;
    height: 34px;
  }

  .header-menu-handler {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .top {
    position: relative;
  }
  .top-left {
    gap: 12px;
    max-width: min(380px, calc(100vw - 10px - 390px));
  }

  .top > img {
    position: absolute;
    right: -150px;
    height: 300px;
    object-fit: contain;
  }

  .top-title {
    font-size: 34px;
    line-height: 41px;
  }
  .top-description {
    font-size: 16px;
    line-height: 19px;
  }

  .center {
    flex-direction: column;
    gap: 48px;
  }

  .center-title {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 12px;
  }

  .center-benefits {
    flex-direction: column;
    gap: 65px;
  }

  .benefit-title {
    font-size: 22px;
    line-height: 26px;
  }

  .benefit-description {
    font-size: 14px;
    line-height: 17px;
    max-width: 417px;
  }

  .center-left img {
    display: none;
  }

  .center-benefits > img {
    display: block;
    background: #D9D9D9;
    border-radius: 12px;
    overflow: hidden;
    filter: drop-shadow(0px 0px 54px rgba(0, 0, 0, 0.45));
    align-self: center;
  }

  .bottom-title {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 12px;
  }

  .bottom-description {
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 72px;
  }

  .steps {
    gap: 20px;
  }

  .step-title {
    font-size: 22px;
    line-height: 26px;
  }

  .step-description {
    font-size: 14px;
    line-height: 17px;
  }

  .footer-first-row {
    flex-direction: column;
    justify-content: flex-start;
    gap: 50px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-sublinks {
    flex-direction: row;
    gap: 40px;
  }

  .footer-sublinks a {
    max-width: 200px;
  }

  .register-title {
    font-size: 32px;
    line-height: 38px;
    margin-bottom: 12px;
  }

  .register-description {
    font-size: 16px;
    line-height: 19px;
    margin-bottom: 24px;
  }
  .register-buttons {
    gap: 10px;
  }

  .register-button {
    width: 192px;
  }

  .register {
    padding: 50px 30px;
    min-width: 620px;
  }
  body {
    background-image: url("img/tablet-bg.svg");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
  }

  .header {
    background: none;
    backdrop-filter: none;
  }
  .header-with-bg {
    background: rgba(36, 30, 73, 0.9);
    backdrop-filter: blur(17px);
  }
}

@media(max-width: 700px) {
  .center-container {
    padding: 60px 10px;
    background-image: url("img/mobile-bottom-bg.svg"), url("img/bg-center.svg");
    background-position: bottom center, -20px 45%;
    background-size: contain, 120vw;
    gap: 100px;
    padding-bottom: 150px;
  }
  .content {
    padding-top: 20px;
    gap: 0;
  }
  .header {
    padding: 18px 10px;
  }
  .footer {
    padding: 30px 10px;
  }
  .header-logo {
    width: 146px;
    height: 29.8px;
  }

  .top {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 40px;
  }
  .top:after {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -10px;
    right: -10px;
    background-image: url("img/mobile-top-bg.svg");
    background-size: contain;
    background-position: bottom center;
    background-repeat: no-repeat;
    content: "";
    z-index: -1;
  }
  .top > img {
    position: static;
    width: 100% !important;
    height: unset;
  }

  .top-left {
    max-width: unset;
  }
  .top-left .register-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
  }

  .top-left .register-button {
    width: 100%;
  }

  .top-title {
    font-size: 26px;
    line-height: 31px;
  }

  .top-description {
    font-size: 16px;
    line-height: 19px;
  }
  .center-title {
    font-size: 22px;
    line-height: 26px;
  }

  .center-description {
    font-size: 16px;
    line-height: 19px;
  }
  .center-benefits > img {
    width: 100%;
  }
  .benefit {
    gap: 30px;
  }
  .benefit-icon {
    width: 62px;
    height: 62px;
    box-sizing: border-box;
  }

  .benefit-icon img {
    width: 38px;
    height: 38px;
  }
  .steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
  }

  .bottom-title {
    font-size: 22px;
    line-height: 26px;
  }

  .bottom-description {
    font-size: 16px;
    line-height: 19px;
  }

  .register {
    min-width: unset;
  }

  .register-title {
    font-size: 22px;
    line-height: 26px;
  }

  .register-description {
    font-size: 16px;
    line-height: 19px;
  }
  .register-buttons {
    gap: 6px;
  }
  .register-button {
    width: 135px;
    cursor: pointer;
  }
  .footer-mainlinks {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-sublinks {
    flex-direction: column;
    gap: 30px;
  }
  .button-m {
    height: 44px;
    width: 100%;
  }
  .button-primary {
    font-size: 16px;
    line-height: 19px;
  }

  body {
    background-image: url("img/mobile-bg.svg");
    background-repeat: no-repeat;
    background-position: top right;
    background-size: contain;
  }
}

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  padding-top: 100px;
  background: rgba(0, 0, 0, 0.4);
  z-index: 100000;
}

.popupVisible {
  display: flex;
}

.popupContent {
  display: flex;
  background: rgba(36, 30, 73, 1);
  border-radius: 12px;
  padding: 44px 64px;
  font-family: 'Aleo', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 28px;
  color: #fff;
  max-width: 600px;
  box-shadow: 0px 2px 10px 0px rgba(0, 0, 0, 0.10);
  position: relative;
}

.popupIcon {
  position: absolute;
  right: 24px;
  top: 24px;
  cursor: pointer;
  width: 32px;
  height: 32px;
}
