* {
  box-sizing: border-box;
}

body {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  background: #0B0D10;
  color: #F2F4F7;
  position: relative;
  margin: 0;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased
}

main {
  overflow: hidden;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-top: 55px;
}

footer {
  padding: 25px 0;
  p,
  a {
    color: #A6ADBD;
    text-decoration: none;
    @media screen and (max-width: 766px) {
      font-size: 12px;
    }
  }

  a:hover {
    color: #727782;
  }

  .col {
    max-width: calc(50% - 16px);
    flex: calc(50% - 16px);
  }
}

section {
  padding: 40px 0;
  display: flex;
  align-items: center;
  @media screen and (min-width: 767px) {
    padding: 48px 0;
  }

  &.light {
    padding: 40px 0;
    background: #F2F6DD;
    color: #0B0D10;

    @media screen and (min-width: 767px) {
      padding: 80px 0;
    }

    .content {
      max-width: 555px;
    }
  }
}

.container {
  max-width: 1280px;
  padding-left: 20px;
  padding-right: 20px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  align-items: center;
}

.col {
  width: 100%;
  @media screen and (min-width: 767px) {
    max-width: calc(50% - 16px);
    flex: calc(50% - 16px);
  }
}

h1,
h2 {
  line-height: 1.2;
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 32px;
  @media screen and (min-width: 767px) {
    font-size: 40px;
    margin: 0 0 24px;
  }
}

h3 {
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
  margin: 0 0 32px;
  @media screen and (min-width: 767px) {
    font-size: 28px;
    line-height: 1.2;
  }
}

p {
  line-height: 1.5;
  margin: 0;

  &.bigger {
    line-height: 1.3;
    font-size: 20px;
    margin-bottom: 32px;
    @media screen and (min-width: 767px) {
      line-height: 1.2;
      font-size: 28px;
      margin-bottom: 24px;
    }
  }
}

a {
  color: #8B7CF4;
  text-decoration: none;
  transition: all .3s ease-in-out;
}

.text-right {
  text-align: right;
}

.text-accent {
  color: #8B7CF4;
}

ul {
  margin: 0;
  list-style: none;
  padding: 0;
  li {
    padding-left: 20px;
    position: relative;
    line-height: 1.5;

    &::after {
      content: '';
      background: #E8F0C7;
      width: 2px;
      height: 12px;
      position: absolute;
      left: 0;
      top: 6px;
    }

    &:not(:last-child) {
      margin-bottom: 16px;
    }
  }
}

.button,
button {
  font-family: "Manrope", sans-serif;
  text-decoration: none;
  color: #F2F4F7;
  border: none;
  background: #8B7CF4;
  font-size: 16px;
  font-weight: 600;
  padding: 16px 36px;
  border-radius: 32px;
  display: inline-block;
  cursor: pointer;
  transition: all .3s ease-in-out;

  @media screen and (max-width: 766px) {
    width: 100%;
    text-align: center;
    padding: 20px 36px;
  }

  &:hover {
    background: #A89DFF;
  }

  &:focus {
    background: #6A5AD7;
  }
}

.button-secondary {
  background: transparent;
  border: 1px solid #8B7CF4;
  color: #8B7CF4;

  &:hover,
  &:focus {
    color: #F2F4F7;
  }
}

form {
  overflow: hidden;

  .options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 32px 0 0;
  }

  .option {
    display: flex;
    gap: 20px;
    cursor: pointer;

    &:hover {
      .fake-check {
        border-color: #727782;
      }
    }
  }

  .real-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
  }

  .fake-check {
    max-width: 16px;
    width: 100%;
    height: 16px;
    border: 1.5px solid #0B0D10;
    border-radius: 4px;
    display: inline-grid;
    place-items: center;
    margin-top: 4px;
    transition: all .3s ease-in-out;

    @media screen and (min-width: 767px) {
      max-width: 24px;
      height: 24px;
      margin-top: 0;
    }
  }

  .fake-check::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 2px;

    @media screen and (min-width: 767px) {
      width: 16px;
      height: 16px;
    }
  }

  .real-check:checked + .fake-check::after {
    background: #0B0D10;
  }

  .real-check:focus-visible + .fake-check {
    background: #0B0D10;
  }

  input {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    border: 1px solid #A6ADBD;
    padding: 26px 40px;
    background: transparent;
    border-radius: 40px;
    width: 100%;
    margin-top: 32px;
    transition: all .3s ease-in-out;

    @media screen and (min-width: 767px) {
      max-width: 400px;
      margin-top: 24px;
      padding: 22px 24px;
    }

    &.is-error,
    &.is-error:focus {
      border-color: #FF6B6B;
      color: #FF6B6B;
    }

    &::placeholder {
      color: #A6ADBD;
    }

    &:hover {
      border-color: #0B0D10;
    }

    &:focus {
      border-color: #0B0D10;
      outline: none;
    }
  }

  .email-text {
    margin-top: 32px;
  }

  .field-error {
    color: #FF6B6B;
    margin-top: 12px;
    font-size: 12px;
  }

  .consent {
    display: flex;
    align-items: center;
    font-size: 12px;
    width: 100%;
    margin-top: 16px;
    color: #727782;
    gap: 8px;
    cursor: pointer;

    &:hover {
      .fake-check {
        border-color: #A6ADBD;
      }
    }

    .fake-check {
      width: 12px;
      height: 12px;
      border-color: #727782;
      margin-top: 2px;
      @media screen and (min-width: 767px) {
        width: 16px;
        height: 16px;
      }
    }

    .fake-check::after {
      width: 8px;
      height: 8px;
    }

    .real-check:checked + .fake-check::after {
      background: #727782;
    }

    .real-check:focus-visible + .fake-check {
      background: #727782;
    }

    a {
      color: #727782;
      text-decoration: underline;

      &:hover {
        color: #0B0D10;
      }
    }

    &.is-error {
      span,
      a {
        color: #FF6B6B;
      }

      .fake-check {
        border-color: #FF6B6B;
      }
    }
  }

  button[type="submit"] {
    margin-top: 32px;

    @media screen and (min-width: 767px) {
      margin-top: 24px;
    }
  }

  .form-success {
    color: #8B7CF4;
    margin-top: 12px;
  }
}

.content {
  opacity: 0;
  transform: translateY(10px);
  transition: all .5s ease-in-out;
  @media screen and (min-width: 767px) {
    max-width: 500px;
  }

  &.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

#hero {
  min-height: 553px;
  @media screen and (min-width: 767px) {
    background: no-repeat center/cover url("../images/bg1.png");
  }
  @media screen and (max-width: 766px) {
    padding-top: 136px;
    padding-bottom: 0;
  }

  img {
    width: 100%;
    height: 265px;
    object-fit: contain;
    @media screen and (min-width: 767px) {
      display: none;
    }
  }

  p {
    font-size: 14px;
    @media screen and (min-width: 767px) {
      margin-bottom: 32px;
    }
  }
}

#features {
  img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .row {
    @media screen and (max-width: 766px) {
      flex-direction: column-reverse;
      gap: 0;
    }
  }
}

#form {
  .content {
    p:not(.bigger) {
      font-size: 14px;
    }
  }

  .row {
    align-items: flex-start;
  }
}

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;

  &.hidden {
    display: none;
  }

  .row {
    gap: 16px;
  }

  .col {
    flex: 100%;
    max-width: 100%;
  }

  .cookie-banner-container {
    width: 100%;
    max-width: calc(100% - 40px);
    max-height: calc(100vh - 40px);
    margin: auto;
    background: #F2F6DD;
    color: #0B0D10;
    padding: 20px;
    @media screen and (min-width: 767px) {
      padding: 20px 40px;
      max-width: 600px;
    }
  }

  .col--text {
    p {
      text-align: center;
      font-size: 14px;
      line-height: 1.5;
      &:not(:last-child) {
        margin-bottom: 8px;
      }

      @media screen and (min-width: 767px) {
        font-size: 16px;
      }
    }
  }

  .col--buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
  }
}
