/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 8px 0;
  background: rgba(34, 36, 51, 0.6);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 126px;
}

.navigation {
  display: none;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg {
  stroke: var(--wight);
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--wight);
  transition: color 0.3s ease;
}

.navigation-item:hover {
  color: var(--blue);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 180px;
  background: url(../images/background.jpg);
  background-position: center;
  background-size: cover;
  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;
  }

  .navigation-item {
    font-weight: 400;
    font-size: 16px;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 88px;
  padding-bottom: 0;
  background-image: url(../images/background.jpg);
  background-position: center;
  background-size: cover;
}

.home-title {
  font-size: 42px;
  margin-bottom: 16px;
}

.home-link {
  display: block;
  background: var(--blue);
  border-radius: 8px;
  padding: 16px;
  width: 343px;
  text-align: center;
  margin-top: 32px;

  font-family: var(--font4);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: var(--black);

  transition: color 0.3s ease, background-color 0.3s ease;
}

.home-link:hover {
  background: var(--link);
}

.hero-image {
  margin: 0 auto;
  margin-top: 22px;
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 64px;
  }

  .home-container {
    display: flex;
    align-items: center;
    padding-right: 0;
    gap: 32px;
  }

  .hero-image {
    margin: 0;
    flex-shrink: 0;
  }

  .home-title {
    font-size: 52px;
  }

  .home-text {
  }

  .home-link {
    width: 248px;
  }
}

/* who-list */

.who-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    position: relative;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    text-align: center;
    color: var(--wight);

    max-width: 215px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
  }
}

@media screen and (min-width: 768px) {
  .who-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 24px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .who-list {
    gap: 32px;

    li {
      width: calc((100% - 64px) / 3);
    }

    p {
      font-size: 22px;
    }
  }
}

/* services */

.services-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  img {
    width: 50px;
    flex-shrink: 0;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 157%;
    color: var(--wight);
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    color: var(--text);
  }
}

.gamer {
  margin-top: 24px;
}

@media screen and (min-width: 1437px) {
  .services-container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 140px;
  }

  .gamer {
    margin: 0;
    flex-shrink: 0;
  }

  .services-list {
    gap: 30px;

    p,
    span {
      font-size: 16px;
    }
  }
}

/* cases-list */

#cases {
  background-image: url(../images/case-studies.jpg);
  background-position: center;
  background-size: cover;
}

.cases-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.cases-item {
  background: var(--bg2);
  padding-bottom: 16px;

  h4 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--wight);
    padding: 0 16px;
    margin-top: 40px;
    margin-bottom: 16px;

    span {
      color: var(--blue);
    }
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    color: var(--wight);
    padding: 0 16px;

    span {
      font-weight: 700;
    }
  }
}

.cases-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media screen and (min-width: 1437px) {
  .cases-list {
    flex-direction: row;
  }

  .cases-item {
    h4 {
      font-size: 22px;
    }

    p {
      font-size: 16px;
    }
  }

  .item1 {
    width: 724px;
    flex-shrink: 0;
  }
}

/* why-wrapper */

.why-wrapper {
  padding-left: 40px;
  border-left: 1px solid var(--text);

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 157%;
    color: var(--text);
    margin-bottom: 24px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    line-height: 157%;
    text-align: right;
    color: var(--blue);
  }
}

@media screen and (min-width: 1437px) {
  .why-cover {
    display: flex;
    align-items: flex-start;
    gap: 140px;
  }

  .why-text {
    width: 508px;
    margin: 0;
    flex-shrink: 0;
  }

  .why-wrapper {
    p,
    span {
      font-size: 16px;
    }
  }
}

/* about */

#about {
  padding-bottom: 0;
}

.about-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  color: var(--blue);
  margin-bottom: 26px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 17px;

  img {
    width: 32px;
    flex-shrink: 0;
  }

  li {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    color: var(--text);

    display: flex;
    align-items: center;
    gap: 12px;
  }
}

.about-us-girl {
  margin: 0 auto;
  margin-top: 60px;
}

@media screen and (min-width: 1437px) {
  #about {
    padding-bottom: 108px;
  }

  .about-text {
    max-width: 616px;
  }

  .about-list {
    li {
      font-size: 16px;
    }
  }

  .about-us-girl {
    width: auto;
    margin: 0;
    position: absolute;
    right: 0;
    bottom: -108px;
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  padding-left: 16px;
  border-left: 1px solid var(--blue);
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  color: var(--blue);
  margin-bottom: 8px;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 157%;
  color: var(--text);
}

@media screen and (min-width: 768px) {
  .faq-title {
    font-size: 16px;
  }
}

@media screen and (min-width: 1437px) {
  .faq-list {
    flex-direction: row;
    gap: 20px 32px;
    flex-wrap: wrap;
  }

  .faq-item {
    width: calc((100% - 32px) / 2);
    padding-bottom: 20px;
  }

  .faq-title {
    font-size: 16px;
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(360deg);
}

/* contact  */

.contact-list {
  display: flex;
  gap: 32px;
  justify-content: center;

  li {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
  }

  img {
    width: 40px;
    margin-bottom: 24px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--wight);
    margin-bottom: 8px;
  }

  a,
  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--wight);
  }

  a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1437px) {
  .contact-container {
    background-image: url(../images/game-pad1.png), url(../images/game-pad2.png);
    background-position: left center, right bottom;
    background-repeat: no-repeat;
  }
  .contact-list {
    gap: 96px;
  }
}

/* footer */

.footer {
  border-top: 1px solid #565656;
  background: #050507;
}

.footer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  text-align: center;
  color: var(--wight);
  transition: color 0.3s ease;

  a:hover {
    color: var(--blue);
  }
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 157%;
  text-align: center;
  color: var(--text);
}

@media screen and (min-width: 1437px) {
  .footer {
    padding: 60px 0;
  }

  .footer-list {
    flex-direction: row;
    justify-content: flex-end;
    gap: 74px;
    margin-bottom: 60px;
  }

  .footer-description {
    font-size: 16px;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 40px 16px;
  background: #2f3d3f;
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  text-align: center;
  color: var(--wight);
  margin-bottom: 20px;
}

.popup-btn {
  border: 1px solid var(--wight);
  border-radius: 8px;
  padding: 16px;
  width: 343px;
  max-width: 100%;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  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(130%) translateX(-50%);
}

@media screen and (min-width: 1437px) {
  .popup {
    padding: 40px 108px;
  }

  .popup-container {
    display: flex;
    align-items: center;
    gap: 24px;
  }

  .popup-text {
    font-size: 16px;
    margin: 0;
    text-align: start;
  }

  .popup-btn {
    width: 184px;
  }

  .popup-wrap {
    flex-direction: row;
    flex-shrink: 0;
  }
}
