@import "normalize.css";
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&display=swap");

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

.body {
  font-family: "Inter", sans-serif;
  position: relative;
  background: #0c0e1c;
  padding: 16px;
  color: #ceced0;
  min-height: 100vh;
  --color-base-200: #1b1d2b;
  --color-base-500: #30313d;
  --color-base-600: #434552;
  --color-base-700: #ceced0;
  --color-dark: #0f0f0f;
}
.header {
  margin-bottom: 90px;

  @media screen and (max-width: 950px) {
    margin-bottom: 24px;
  }
}

.logo-mobile {
  width: 32;
  display: none;

  @media screen and (max-width: 950px) {
    display: block;
  }
}

.logo-desktop {
  width: 150px;
  display: block;

  @media screen and (max-width: 950px) {
    display: none;
  }
}

.button {
  display: inline-block;
  text-align: center;
  color: var(--color);
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  border-radius: 8px;
  transition: background-color 0.2s;
  background-color: var(--bg, var(--color-base-500));
  border: var(--border);
  padding: var(--paddingY, 12px) var(--paddingX, 24px);
}

.button--secondary {
  --border: 1px solid var(--borderColor, var(--color-base-600));
  --bg: var(--color-base-500);
  --color: #fff;

  &:hover {
    --bg: var(--color-base-600);
  }
}

.button--telegram {
  --borderColor: #384bd9;
  --bg: #384bd9;

  &:hover {
    --bg: #3f53e9;
  }
}

.button--m {
  --paddingX: 24px;
  --paddingY: 12px;
}

.wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1152px;
  width: 100%;
  margin: 0 auto;
}

.navigation__list {
  display: flex;
  list-style: none;
  align-items: center;
  font-size: 17px;
  gap: 64px;
}
.navigation__list a:not(.navigation__button) {
  color: inherit;
  text-decoration: none;
}
.navigation__list a:not(.navigation__button):hover {
  color: #f5f5f5;
}
.navigation__button {
  padding: 12px 28px;
  background-color: #1b34f2;
}
.navigation__button:hover,
.navigation__button:active {
  background-color: #384bd9;
}

.card {
  display: flex;
  margin: 0 auto;
  border-radius: 16px;
  max-width: 1084px;
  width: 100%;
  background: #1b1d2b;
  overflow: hidden;

  @media screen and (max-width: 950px) {
    flex-direction: column;
  }
}

.card__image_wrapper {
  width: 50%;
  padding: 52px;
  background: url("/public/images/bg.svg") no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;

  @media screen and (max-width: 950px) {
    width: 100%;
    padding: 24px;
  }
}

.card__image {
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.content {
  width: 50%;
  display: flex;
  flex-direction: column;
  padding: 48px;

  @media screen and (max-width: 950px) {
    width: 100%;
    padding: 16px;
  }
}

.content__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 100px;

  @media screen and (max-width: 950px) {
    margin-bottom: 32px;
  }
}

.content__benefits {
  color: var(--color-base-700);
}

.content__title {
  font-size: 46px;
  line-height: 58px;
  margin: 0;
  font-weight: 900;
  color: white;

  @media screen and (max-width: 950px) {
    font-size: 36px;
    line-height: 48px;
  }
}
.content__footer {
  padding: 24px 48px 48px;
}
.content__desc {
  max-width: 380px;
  margin: 0 auto 24px;
  font-size: 16px;
  line-height: 1.5;
}

.content__buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggler {
  display: none;
}

@media screen and (max-width: 950px) {
  .toggler {
    display: inline-block;
    padding: 0;
    border: none;
    width: 34px;
    height: 34px;
    background: var(--image-url) 50% no-repeat;
  }
  .navigation--isActive .toggler {
    background: none;
  }
  .navigation--isActive .toggler::before {
    display: flex;
    align-items: center;
    justify-content: center;
    content: "×";
    width: 100%;
    height: 100%;
    color: #fff;
    font-size: 40px;
  }
  .navigation__list {
    position: absolute;
    top: 65px;
    padding: 0 16px;
    left: 0;
    display: flex;
    gap: 40px;
    flex-direction: column;
    width: 100%;
    background: #0c0e1c;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    box-shadow: 0 5px 25px #0c0e1c;
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease-in-out;
  }
  .navigation__list a:not(.button) {
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
  }
  .navigation__list .navigation__item {
    text-align: center;
    width: 100%;
  }
  .navigation__list .navigation__item:first-child {
    padding-top: 40px;
  }
  .navigation__list .navigation__item:last-child {
    padding-bottom: 60px;
  }
  .navigation__list .button {
    width: 100%;
    padding: 16px 24px;
    font-size: 24px;
    line-height: 1;
  }
  .navigation--isActive .navigation__list {
    max-height: 500px;
  }
}
