/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 6px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.header-logo {
  width: 104px;
}

.navigation {
  display: none;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg {
  stroke: #fff;
  transition: stroke 0.25s ease;
}

.modal-button:hover,
.modal-button:focus {
  .svg {
    stroke: #ff6a00;
  }
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.navigation-item {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 24px;
  color: #fff;
  transition: color 0.3s ease;
}

.navigation-item:hover {
  color: #ff6a00;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #212121;
  padding-top: 108px;
  transform: translateY(-100%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.modal-click {
  transform: translateY(0);
}

@media screen and (min-width: 1437px) {
  .header {
    padding: 5px 0;
  }

  .header-container {
    justify-content: center;
  }

  .header-logo {
    width: 178px;
  }

  .navigation {
    display: block;
  }
  .navigation-item {
    font-size: 24px;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 91px;
  padding-bottom: 90px;
  background-image: url(../images/hero.jpg);
  background-position: center;
  background-size: cover;
}

.hero-link-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-link {
  font-family: var(--font3);
  font-weight: 800;
  font-size: 16px;
  text-align: center;
  color: #ff6a00;

  display: block;
  border: 1px solid #ff6a00;
  border-radius: 30px;
  width: 270px;
  padding: 9px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-link:hover,
.hero-link:focus {
  background: #ff6a00;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .hero-image {
    width: 400px;
  }
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 244px;
    padding-bottom: 245px;
  }
  .hero-link-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 20px;
  }

  .hero-link {
    width: 344px;
    font-size: 24px;
  }
}

/* who */

.who-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;

  li {
    width: 245px;
    max-width: 100%;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    color: #fff;
  }

  span {
    display: block;
    font-weight: 900;
  }

  img {
    width: 64px;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 768px) {
  .who-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media screen and (min-width: 1437px) {
  .who-list {
    align-items: flex-start;

    li {
      width: calc((100% - 40px) / 3);
      font-size: 24px;
    }

    img {
      width: auto;
    }
  }
}

/* games */

.games {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.game-item {
  h5 {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
  }
}

.game-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  p {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    margin-bottom: 20px;
  }

  h6 {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
  }
  ul {
    padding-left: 20px;
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
  }

  img {
    width: 325px;
  }
}

@media screen and (min-width: 768px) {
  .game-wrap {
    flex-direction: row;
  }
}

@media screen and (min-width: 1437px) {
  .game-item {
    h5 {
      font-size: 24px;
    }
  }

  .game-wrap {
    gap: 23px;

    img {
      width: auto;
      flex-shrink: 0;
      margin: 0;
    }

    p {
      font-size: 24px;
      margin-bottom: 20px;
    }

    ul,
    h6 {
      font-size: 24px;
    }
  }
}

/* features-list */

.features-list {
  display: flex;
  flex-direction: column;
  gap: 40px;

  li {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  img {
    width: 64px;
  }

  p {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    color: #fff;
  }

  span {
    display: block;
    font-weight: 700;
  }
}

@media screen and (min-width: 1437px) {
  .features-list {
    width: 844px;
    margin: 0 auto;

    li {
      gap: 65px;
    }

    img {
      width: 70px;
    }

    p {
      font-size: 24px;
    }
  }
}

/* how-list */

.how-list {
  display: flex;
  flex-direction: column;
  gap: 20px;

  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  img {
    width: 40px;
  }

  p {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    color: #fff;
  }

  span {
    display: block;
    font-weight: 700;
  }
}

@media screen and (min-width: 768px) {
  .how-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;

    li {
      width: calc((100% - 20px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .how-list {
    gap: 66px 50px;
    margin-top: 50px;

    li {
      width: calc((100% - 100px) / 3);
    }

    img {
      width: 55px;
    }

    p {
      font-size: 24px;
    }
  }
}

/* what-list */

.what-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.what-item {
  border-radius: 30px;
  background: #ff6a00;
  padding: 31px 20px;

  p {
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 700;
    font-size: 14px;
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 768px) {
  .what-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .what-item {
    width: calc((100% - 10px) / 2);
  }
}

@media screen and (min-width: 1437px) {
  .what-list {
    width: 1100px;
    margin: 0 auto;
    margin-top: 50px;
    gap: 60px;
  }

  .what-item {
    width: calc((100% - 60px) / 2);
    padding: 63px 20px;

    p {
      font-size: 24px;
      margin-bottom: 30px;
    }

    span {
      font-size: 24px;
    }
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 20px;
}

.faq-item {
  border-bottom: 1px solid rgba(255, 250, 250, 0.33);
  width: 100%;
  cursor: pointer;
  padding: 6px;
  transition: border-color 0.2s ease;
}

.faq-item:hover,
.faq-item:focus {
  border-color: #ff6a00;
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: #fff;
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: #fff;
  margin-top: 4px;
}

@media screen and (min-width: 768px) {
  .faq-list {
    width: 580px;
    margin: 0 auto;
    margin-top: 50px;
    gap: 10px;
  }
}

@media screen and (min-width: 1437px) {
  .faq-item {
    padding: 10px 0;
  }

  .faq-btn {
    width: 50px;
    height: 50px;
  }
  .faq-title,
  .faq-text {
    font-size: 20px;
  }

  .faq-text {
    margin-top: 20px;
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(360deg);
}

/* contact  */

.contact-link {
  width: 282px;
  margin: 0 auto;
  margin-top: 20px;

  p {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 14px;
    text-align: center;
    color: #fff;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
  }

  li {
    display: flex;
    align-items: center;
    gap: 35px;

    p {
      text-align: start;
    }
  }

  img {
    width: 20px;
    flex-shrink: 0;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1437px) {
  .contact-link {
    margin-top: 30px;
    width: 487px;

    p {
      font-size: 24px;
    }

    ul {
      margin-top: 60px;
    }

    img {
      width: 50px;
    }
  }
}

/* footer */

.footer {
  padding: 22px 0;
}

.footer-mail {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 10px;
  color: #fff;

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #ff6a00;
  }
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;

  font-family: var(--second-family);
  font-weight: 400;
  font-size: 10px;
  text-align: center;
  color: #fff;

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #ff6a00;
  }
}

.footer-description {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 10px;
  text-align: center;
  color: #fff;
}

.footer-wrapper {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

@media screen and (min-width: 1437px) {
  .footer {
    padding-top: 100px;
  }
  .footer-list {
    font-size: 24px;
    margin-top: 72px;
  }

  .footer-description {
    font-size: 24px;
  }

  .footer-mail {
    font-size: 24px;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  border-radius: 30px 30px 0 0;
  padding: 26px 14px;
  background: #ff6a00;
  transform: translateX(-50%);
  transition: transform 0.5s ease;
}

.cookie-image {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 76px;
}

.popup-text {
  font-family: var(--font3);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #212121;
  padding-left: 100px;
  margin-bottom: 25px;
}

.popup-btn {
  border: 2px solid #212121;
  border-radius: 30px;
  padding: 10px 40px;

  font-family: var(--font3);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: #151515;
  text-transform: uppercase;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #212121;
  color: #fff;
}

.popup-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 85px 111px;
  }

  .cookie-image {
    top: 16px;
    left: 16px;
    width: 98px;
  }

  .popup-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 90px;
  }

  .popup-text {
    font-size: 34px;
    margin: 0;
    padding: 0;
  }

  .popup-btn {
    font-size: 24px;
    padding: 12px 70px;
  }

  .popup-wrap {
    flex-shrink: 0;
    gap: 50px;
  }
}
