/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 8px 0;
  box-shadow: 8px 8px 20px 0 rgba(90, 90, 90, 0.1);
  background: var(--blue);
}

.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 #2a9fd6;
}

.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: #2f2f2f;
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.navigation-item {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--wight);
  transition: background-color 0.3s ease, color 0.3s ease;
}

.navigation-item:hover,
.navigation-item:focus {
  color: #2a9fd6;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--blue);
  padding: 16px;
  padding-top: 200px;
  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: 104px;
  background-image: url(../images/home-union.png);
  background-position: center;
  background-size: cover;
}

.home-title {
  font-family: var(--third-family);
  font-weight: 700;
  font-size: 32px;
  line-height: 150%;
  color: var(--wight);
  margin-bottom: 16px;
}

.home-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--wight);
  margin-bottom: 48px;
}

.home-link-cover {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 32px;

  a {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: var(--wight);
    background: var(--blue);
    display: block;
    width: 343px;
    max-width: 100%;
    text-align: center;
    border: 1px solid var(--wight);
    border-radius: 4px;
    padding: 16px 32px;
    transition: background-image 0.4s ease;
  }

  a:hover {
    background: linear-gradient(135deg, #29a0d5 0%, #3a55de 100%);
  }
}

.home-image {
  width: 341px;
  margin-top: 32px;
  margin-left: auto;
  transform: translateX(16px);
}

@media screen and (min-width: 768px) {
  .home-container {
    display: flex;
    align-items: center;
  }

  .home-image {
    margin: 0;
    flex-shrink: 0;
    transform: translateX(32px);
  }
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 160px;
    padding-bottom: 90px;
  }

  .home-title {
    font-size: 52px;
  }

  .home-text {
    font-size: 16px;
  }

  .home-link-cover {
    flex-direction: row;
    justify-content: flex-start;

    a {
      margin: 0;
      width: 320px;
    }
  }

  .home-image {
    margin: 0;
    width: auto;
    transform: translateX(16px);
  }
}

/* about */

.about-logo {
  margin: 0 auto;
  margin-top: 32px;
}

@media screen and (min-width: 1437px) {
  .about-container {
    display: flex;
    flex-direction: row-reverse;
    gap: 32px;
  }

  .about-logo {
    margin: 0;
    flex-shrink: 0;
  }
}

/* games */

.games-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    border-radius: 8px;
    padding: 32px;
    box-shadow: 8px 8px 20px 0 rgba(65, 65, 65, 0.1);
    background: var(--wight);
  }

  img {
    width: 60px;
    margin: 0 auto;
    margin-bottom: 24px;
  }

  p {
    font-family: var(--third-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 133%;
    text-align: center;
    color: var(--black);
    margin-bottom: 16px;
  }

  span {
    display: block;
    font-family: var(--font4);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    text-align: center;
    color: var(--black);
  }
}

@media screen and (min-width: 768px) {
  .games-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .games-list {
    margin-top: 80px;

    li {
      width: calc((100% - 64px) / 3);
    }
  }
}

/* who */

.who-list {
  display: flex;
  flex-direction: column;
  gap: 17px;

  li {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    font-family: var(--font3);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--wight);
  }

  img {
    width: 32px;
    flex-shrink: 0;
  }
}

.who-logo {
  margin: 0 auto;
  margin-top: 32px;
}

@media screen and (min-width: 768px) {
  .who-list {
    li {
      align-items: center;
    }
  }
}

@media screen and (min-width: 1437px) {
  .who-container {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .who-logo {
    margin: 0;
    flex-shrink: 0;
  }
}

/* framework */

#framework {
  background-image: url(../images/map.png);
  background-position: center;
  background-repeat: no-repeat;
}

.framework-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  div {
    border-radius: 12px;
    padding: 32px;
    box-shadow: 8px 8px 20px 0 rgba(65, 65, 65, 0.1);
    background: var(--wight);
  }

  span {
    display: block;
    font-family: var(--third-family);
    font-weight: 700;
    font-size: 42px;
    line-height: 138%;
    background: linear-gradient(135deg, #29a0d5 0%, #3a55de 100%);
    background-clip: text;
    text-align: center;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 33px;
  }

  h5 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #262a29;
    margin-bottom: 16px;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #4a4a4a;
  }
}

.framework-link {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: var(--wight);
  background: linear-gradient(135deg, #29a0d5 0%, #3a55de 100%);
  display: block;
  margin: 0 auto;
  width: 343px;
  max-width: 100%;
  text-align: center;
  border: 1px solid var(--wight);
  border-radius: 4px;
  padding: 16px 32px;
  margin-top: 56px;
  transition: background-image 0.4s ease;
}

.framework-link:hover {
  background: var(--blue);
}

@media screen and (min-width: 768px) {
  .framework-list {
    flex-direction: row;
    flex-wrap: wrap;

    div {
      width: calc((100% - 32px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .framework-list {
    margin-top: 80px;

    div {
      width: calc((100% - 96px) / 4);
    }
  }
}

/* why  */

.content {
  border-radius: 8px;
  padding: 24px 16px;
  background: #f2f6f9;
}

.why-list {
  li {
    box-shadow: 8px 8px 20px 0 rgba(65, 65, 65, 0.1);
    background: var(--wight);
    color: var(--black);
  }
}

.why-img {
  margin-top: 32px;
}

@media screen and (min-width: 1437px) {
  .why-content {
    display: flex;
    align-items: flex-start;
    flex-direction: row-reverse;
    gap: 32px;
  }

  .why-img {
    margin: 0;
    flex-shrink: 0;
  }
}

/* start  */

#start {
  background-image: url(../images/map.png),
    linear-gradient(315deg, #29a0d5 0%, #3a55de 100%);
  background-position: center;
  background-repeat: no-repeat;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 36px;
  height: 410px;
}

.faq-item {
  cursor: pointer;
  border-bottom: 1px solid var(--wight);
  padding-bottom: 16px;
  transition: border-color 0.3s ease;
}

.faq-item:hover {
  border-color: #3a55de;
  svg {
    fill: #3a55de;
  }
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-title {
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: var(--wight);
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  svg {
    fill: white;
    transition: fill 0.3s ease;
  }
  transition: transform 0.5s ease;
}

.faq-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--wight);
  margin-top: 16px;
}

@media screen and (min-width: 768px) {
  .faq-list {
    height: 300px;
  }
}

@media screen and (min-width: 1437px) {
  .start-container {
    display: flex;
    align-items: self-start;
    gap: 32px;
  }

  .faq-list {
    width: 616px;
    flex-shrink: 0;
    margin: 0;
  }
}

.hidden {
  display: none;
}

.click {
  transform: scaleX(-1);
}

/* testimonials */

.testimonials-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 40px;

  li {
    border-radius: 12px;
    padding: 24px;
    box-shadow: 8px 8px 20px 0 rgba(65, 65, 65, 0.1);
    background: #f2f6f9;
  }

  img {
    width: 60px;
    flex-shrink: 0;
  }

  h5 {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: var(--blue);
    margin-bottom: 8px;
  }

  span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: rgba(95, 95, 95, 0.7);
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--black);
    margin-top: 24px;
  }

  .testimonials-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
  }
}

@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 {
    margin-top: 80px;

    li {
      width: calc((100% - 64px) / 3);
    }
  }
}

/* footer */

.footer {
  padding: 60px 0;
  background: var(--blue);
}

.footer-mail {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px;
  width: 145px;
  margin: 0 auto;
  margin-bottom: 16px;

  a {
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--wight);
    transition: color 0.3s ease;
  }

  a:hover {
    color: #2a9fd6;

    svg {
      stroke: #2a9fd6;
    }
  }

  svg {
    stroke: white;
    transition: stroke 0.3s ease;
  }
}

.footer-list {
  display: flex;
  gap: 16px;
  flex-direction: column;
  align-items: center;
  margin-bottom: 32px;

  font-family: var(--second-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--wight);

  a {
    transition: color 0.3s ease;
  }

  a:hover {
    color: #2a9fd6;
  }
}

.footer-description {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--wight);
}

@media screen and (min-width: 768px) {
  .footer-mail {
    width: auto;
  }
}

@media screen and (min-width: 1437px) {
  .footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
  }

  .footer-mail {
    margin: 0;
  }

  .footer-list {
    flex-direction: row;
    font-size: 16px;
    gap: 74px;
    margin: 0;
  }

  .footer-description {
    font-size: 16px;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  width: 100%;
  bottom: 0;
  left: 0;
  padding: 40px 0;
  background: var(--wight);
  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: #1c3f3a;
  margin-bottom: 20px;
}

.popup-btn {
  border: 1px solid #272727;
  border-radius: 4px;
  padding: 16px 32px;
  width: 343px;
  max-width: 100%;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  text-transform: uppercase;
  color: #272727;

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  color: var(--wight);
  background: #39b44d;
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.popup-click {
  transform: translateY(100%);
}

@media screen and (min-width: 1437px) {
  .popup-containe {
    padding: 0 108px;
  }

  .popup-text {
    font-size: 16px;
    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;
  }
}
