/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 8px 0;
  background: rgba(17, 17, 17, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 40px;
  border-radius: 4px;
  transition: box-shadow 0.3s ease;
}

.header-logo:hover {
  box-shadow: 2px 2px 10px #4ee3c6;
}

.navigation {
  display: none;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg {
  fill: none;
  stroke: var(--wight);
  transition: stroke 0.3s ease;
}

.svg:hover {
  stroke: var(--red);
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--wight);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation-item:hover,
.navigation-item:focus {
  color: #4ee3c6;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 17, 17, 0.8);
  padding: 16px;
  padding-top: 200px;
  backdrop-filter: blur(5px);
  transform: translateY(-100%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
}

.modal-click {
  transform: translateY(0);
}

@media screen and (min-width: 1437px) {
  .header {
    padding: 12px 0;
  }

  .navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 336px;
  background-image: url(../images/main-hero-section.png);
  background-position: center;
  background-size: cover;
}

.home-sub-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 20px;
  color: var(--wight);
  margin-bottom: 4px;
}

.home-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 42px;
  line-height: 124%;
  color: var(--wight);
  margin-bottom: 24px;

  span {
    color: var(--red);
  }
}

.home-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 157%;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 56px;
}

.home-link-cover {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;

  a {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    color: var(--text);

    display: block;
    width: 343px;
    max-width: 100%;
    text-align: center;
    border: 1px solid var(--wight);
    border-radius: 50px;
    padding: 16px 32px;
    transition: background-color 0.4s ease;
  }

  a:hover {
    background: var(--red);
  }
}

@media screen and (min-width: 768px) {
  .home-link-cover {
    flex-direction: row;
  }
}

@media screen and (min-width: 1437px) {
  #home {
    padding: 214px 0;
  }

  .home-sub-title {
    font-size: 26px;
  }

  .home-title {
    font-size: 72px;
  }

  .vector-line {
    width: 400px;
    margin-bottom: 69px;
  }

  .home-text {
    font-size: 16px;
    max-width: 616px;
  }

  .home-link-cover {
    justify-content: flex-start;

    a {
      margin: 0;
      width: 238px;
    }
  }
}

/* games */

.games {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 40px;
}

.game-item {
  border-radius: 8px;
  padding: 24px;
  box-shadow: 8px 8px 20px 0 rgba(75, 75, 75, 0.08);
  background: var(--bg);

  img {
    margin-bottom: 32px;
  }

  h5 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 22px;
    line-height: 118%;
    color: var(--red);
    margin-bottom: 8px;
  }

  span {
    display: block;
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 22px;
    line-height: 118%;
    color: var(--wight);
    margin-bottom: 10px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--text);
    margin-bottom: 16px;
  }

  ul {
    padding-left: 20px;
    list-style: disc;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--text);
  }
}

@media screen and (min-width: 768px) {
  .game-item {
    display: flex;
    gap: 32px;
    align-items: center;

    img {
      width: 365px;
      flex-shrink: 0;
    }
  }
}

@media screen and (min-width: 1437px) {
  .games {
    margin-top: 80px;
  }
  .game-item {
    h5 {
      font-size: 22px;
      margin-bottom: 8px;
    }

    span {
      font-size: 22px;
      margin-bottom: 74px;
    }

    img {
      width: auto;
      flex-shrink: 0;
      margin: 0;
    }

    p {
      font-size: 16px;
      margin-bottom: 16px;
    }

    ul {
      font-size: 16px;
    }
  }
}

/* features */

.features-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;

  li {
    border-radius: 8px;
    padding: 32px;
    border: 1px solid var(--red);
  }

  img {
    width: 40px;
    margin-bottom: 16px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    color: var(--wight);
  }
  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--text);
  }
}

@media screen and (min-width: 768px) {
  .features-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 32px) / 2);
    }

    p {
      font-size: 22px;
    }

    span {
      font-size: 16px;
    }
  }
}

@media screen and (min-width: 1437px) {
  .features-list {
    margin-top: 80px;
    li {
      width: calc((100% - 64px) / 3);
    }
  }
}

/* philosophy */

.philosophy-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  color: var(--wight);
  margin-top: 40px;
  margin-bottom: 24px;
}

.philosophy-list {
  display: flex;
  flex-direction: column;
  gap: 16px;

  li {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  img {
    width: 24px;
    flex-shrink: 0;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--wight);
    margin-bottom: 8px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--text);
  }
}

.philosophy-img {
  margin: 0 auto;
  margin-top: 32px;
}

@media screen and (min-width: 1437px) {
  .philosophy-container {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .philosophy-img {
    margin: 0;
    flex-shrink: 0;
  }

  .philosophy-title {
    font-size: 16px;
  }

  .philosophy-list {
    p,
    span {
      font-size: 16px;
    }
  }
}

/* collaborators */

.collaborators-container {
  padding: 32px 16px;
  border-radius: 8px;
  background: var(--bg);
}

.collaborators-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 80px;

  div {
    border-radius: 8px;
    background: var(--main-bg);
    overflow: hidden;
    padding-bottom: 16px;
  }

  h6 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 22px;
    line-height: 118%;
    color: var(--red);
    padding: 0 16px;
    margin-top: 32px;
    margin-bottom: 16px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--wight);
    padding: 0 16px;
  }
}

@media screen and (min-width: 768px) {
  .collaborators-list {
    flex-direction: row;
    flex-wrap: wrap;

    div {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .collaborators-container {
    padding: 60px;
  }
  .collaborators-list {
    div {
      width: calc((100% - 64px) / 3);
    }

    p {
      font-size: 16px;
    }
  }
}

/* testimonials */

#testimonials {
  background-image: url(../images/glow.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 80px;

  li {
    border-radius: 8px;
    padding: 32px;
    background: var(--bg);
    border: 1px solid var(--red);
  }

  img {
    width: 60px;
    flex-shrink: 0;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--wight);
    margin-bottom: 4px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: rgba(225, 225, 225, 0.7);
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    color: var(--text);
  }

  .testimonials-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
  }
}

@media screen and (min-width: 768px) {
  .testimonials-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .testimonials-list {
    li {
      width: calc((100% - 64px) / 3);
    }

    h5,
    span {
      font-size: 16px;
    }

    p {
      font-size: 16px;
    }
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
  height: 525px;
}

.faq-item {
  cursor: pointer;
}

.faq-item:hover {
  .svg {
    stroke: var(--red);
  }
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 8px 16px;
  background: var(--bg);
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  letter-spacing: 0.01em;
  color: var(--wight);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: transform 0.4s ease;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 157%;
  letter-spacing: 0.01em;
  color: var(--text);
  padding: 16px;
}

@media screen and (min-width: 768px) {
  .faq-list {
    height: 455px;
  }
  .faq-wrap {
    padding: 16px;
  }
}

@media screen and (min-width: 1437px) {
  #faq {
    padding-bottom: 140px;
  }

  .faq-list {
    margin-top: 60px;
    gap: 24px 32px;
    flex-direction: row;
    flex-wrap: wrap;
    height: 220px;
  }
  .faq-item {
    width: calc((100% - 32px) / 2);
  }

  .faq-title,
  .faq-text {
    font-size: 16px;
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(360deg);
}

/* contact  */

.contact-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 60px;
}

.contact-item {
  border-radius: 8px;
  padding: 40px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;

  img {
    width: 40px;
    margin-bottom: 24px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--text);
    margin-bottom: 8px;
  }

  a {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 22px;
    line-height: 127%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--wight);
    transition: color 0.3s ease;
  }

  a:hover {
    color: var(--red);
  }
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  img {
    width: 32px;
    flex-shrink: 0;
    margin: 0;
  }
}

@media screen and (min-width: 768px) {
  .contact-wrap {
    flex-direction: row;
  }

  .contact-item1 {
    display: flex;
    flex-direction: row;
    width: calc((100% - 32px) / 2);
    align-items: center;
    flex-shrink: 0;
    justify-content: center;
  }

  .contact-item2 {
    width: calc((100% - 32px) / 2);
  }
}

/* footer */

.footer {
  padding: 60px 0;
  background: #111;
}

.footer-list {
  display: flex;
  gap: 16px;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--wight);

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #4ee3c6;
  }
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 157%;
  letter-spacing: 0.01em;
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 32px;
}

@media screen and (min-width: 1437px) {
  .footer-list {
    flex-direction: row;
    justify-content: flex-end;
    font-size: 16px;
    gap: 74px;
  }

  .footer-description {
    font-size: 16px;
    margin-top: 60px;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 40px 0;
  background: #2f3d3f;
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  letter-spacing: 0.01em;
  text-align: center;
  color: var(--wight);
  margin-bottom: 20px;
}

.popup-btn {
  border: 1px solid var(--wight);
  border-radius: 50px;
  padding: 16px 32px;
  width: 343px;
  max-width: 100%;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--wight);

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #2960a7;
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.popup-click {
  transform: translateY(100%);
}

@media screen and (min-width: 1437px) {
  .popup-text {
    font-size: 14px;
    text-align: start;
  }

  .popup-btn {
    font-size: 16px;
    width: 184px;
  }

  .popup-wrap {
    flex-direction: row;
    flex-shrink: 0;
  }

  .popup-container {
    display: flex;
    align-items: center;
    gap: 24px;
  }
}
