:root {
  --font-family: "Inter", sans-serif;

  --red-false: #ad3d30;
  --white: #fffafa;
  --green-true: #178026;
  --dark-blue: #021237;
  --lime-green-btn: #25bb2e;
  --default: rgba(113, 146, 221, 0.25);
  --mobile-bg: #7191dd;
}

*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 767px) {
  html,
  body {
    height: 100%;
  }
  body {
    overscroll-behavior: none;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  font-family: inherit;
  color: currentColor;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  color: currentColor;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
}

.quiz-screen {
  height: 100dvh;
  padding: max(12px, env(safe-area-inset-top)) 0
    max(14px, env(safe-area-inset-bottom));
  display: grid;
  place-items: stretch;
  overflow: hidden;
}

.quiz {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 49px;

  .quiz__img {
    width: 100%;
    max-width: none;
    max-height: 36dvh;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .quiz__title {
    max-width: none;
    margin: 0;
    text-align: center;
    font-weight: 700;
    font-size: clamp(20px, 5.2vw, 26px);
    line-height: 1.2;
  }

  .quiz__list {
    display: grid;
    grid-auto-rows: clamp(44px, 8.5vh, 56px);
    gap: 12px;
    align-content: start;
    padding-inline: 10px;

    li {
      display: flex;
      padding: 10px;
      border-radius: 12px;
      background: var(--default);

      a {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 5px;
        margin-block: auto;
      }
    }
  }
}

.offer,
.offer-win {
  padding-block: 75px;
  background-image: url(/img/offer_bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  min-height: 100vh;

  display: grid;
  justify-content: center;
  justify-items: center;
  align-content: space-between;
  gap: 22px;

  overflow: hidden;
  @supports (height: 100svh) {
    min-height: 100svh; 
  }
  @supports (height: 100dvh) {
    min-height: 100dvh;
  }

  .offer__title,
  .offer-win__title {
    width: 100%;
    max-width: 254px;
    margin-inline: auto;

    font-weight: 500;
    font-size: 36px;
    text-align: center;
  }

  .offer__wrapper {
    display: grid;
    align-items: center;
    gap: 8px;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 3px 3px 13px 0 rgba(247, 243, 243, 0.47),
      -4px -4px 15px 0 rgba(255, 255, 255, 0.83),
      2px 4px 13px 0 rgba(255, 255, 255, 0.8);

    background-color: var(--dark-blue);

    p {
      display: grid;
      justify-items: center;
      gap: 5px;

      font-style: italic;
      font-weight: 600;
      font-size: 28px;

      span {
        font-weight: 700;
        font-size: 40px;
      }
    }
  }

  .offer__link {
    border-radius: 24px;
    padding: 24px 46px;

    background-color: var(--lime-green-btn);
    font-weight: 600;
    font-size: 40px;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
  }
}

.is-ios .offer__link {
  margin-bottom: 60px;
}

.offer-win {
  padding-block: 29px;
  background-image: url(/img/offer-win_bg1.jpg);

  .offer-win__title {
    margin-top: 30px;
    max-width: 345px;
  }
}

.offer-win--fale {
  background-image: url(/img/offer-win_bg.jpg);
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;

  width: 100%;
  max-width: 430px;
  height: 100vh;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  background-color: var(--mobile-bg);

  .mobile-menu__close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
    z-index: 1001;
  }

  .mobile-menu__link {
    min-width: 200px;
    padding: 15px 30px;
    border-radius: 12px;

    background-color: var(--dark-blue);
    font-size: 24px;
    font-weight: 500;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;

    &:hover {
      transform: scale(1.05);
      box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }
  }
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 99;

  border: none;
  border-radius: 8px;
  padding: 5px 10px;

  color: var(--white);
  font-size: 24px;
  background-color: var(--default);
  transition: transform 0.3s ease;

  &:hover {
    transform: scale(1.05);
  }
}

.legal-page {
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;

  line-height: 1.6;

  h1 {
    font-size: 32px;
    margin-bottom: 30px;
    text-align: center;
  }

  h2 {
    font-size: 24px;
    margin: 30px 0 15px 0;
    color: var(--lime-green-btn);
  }

  ul {
    margin: 15px 0;
    padding-left: 20px;
    li {
      margin-bottom: 8px;
      list-style: disc;
    }
  }
  p {
    margin-bottom: 15px;
  }
}

.back-link {
  display: inline-block;
  margin-bottom: 30px;
  padding: 5px 20px;
  border-radius: 8px;

  background-color: var(--lime-green-btn);
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.3s ease;

  &:hover {
    transform: scale(1.05);
  }
}
