.nav {
  display: none;
}

.header {
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 20px;
  background: #093247;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 12px;
  line-height: 133%;
  text-transform: uppercase;
  color: #1c1c1c;

  border-radius: 300px;
  padding: 12px 32px;
  background: #fff;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #1c1c1c;
  padding: 16px 24px;
  border-bottom: 1px solid gray;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-svg {
  stroke: #fff;
  fill: #fff;
}

@media screen and (min-width: 1439px) {
  .header {
    padding: 32px 88px;
  }

  .header-logo {
    font-size: 16px;
  }

  .nav {
    display: block;
  }

  .menu-open {
    display: none;
  }

  .nav-list {
    border: 1.5px solid rgba(28, 28, 28, 0.2);
    border-radius: 300px;
    backdrop-filter: blur(4px);
    background: #fff;
    padding: 16px 0;
  }

  .nav-link {
    padding: 0;
    border: none;
    border-right: 1px solid gray;
    padding: 0 32px;
  }
}

/* modal  */

.modal {
  position: fixed;
  top: 100px;
  left: 0;
  z-index: 8;
  width: 100%;
  border: 1.5px solid rgba(28, 28, 28, 0.2);
  border-radius: 40px;
  padding: 40px;
  backdrop-filter: blur(4px);
  background: #fff;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
}

.modal-logo {
  display: flex;
  align-items: center;
  font-family: var(--second-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 150%;
  color: #fff;
  gap: 9px;
  margin-bottom: 30px;
}

/* popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  padding: 30px 20px;
  box-shadow: 10px 10px 10px 0 rgba(0, 0, 0, 0.18);
  background: #093247;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 143%;
  color: #cff3fa;
  border: 2px solid #cff3fa;
  border-radius: 6px;
  padding: 12px 36px;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.popup-btn:hover {
  color: #10182f;
  background: #cff3fa;
}

.popup-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

@media screen and (min-width: 1439px) {
  .popup {
    display: flex;
    padding: 42px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .popup-text {
    max-width: 65%;
  }
  .popup-wrap {
    width: auto;
    gap: 20px;
  }
}

/* home  */

.hero {
  padding-top: 121px;
  padding-bottom: 0;
  background-image: url(./images/home.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.bird {
  width: 102px;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 60px;
  line-height: 107%;
  text-align: center;
  color: #f4f3f3;
  margin-bottom: 20px;
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 127%;
  text-align: center;
  color: #f4f3f3;
  margin-bottom: 48px;
}

.hero-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;

  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 800;
    font-size: 48px;
    line-height: 108%;
    text-align: center;
    color: #5dffad;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 156%;
    text-align: center;
    color: #f4f3f3;
  }
}

.pirate {
  width: 272px;
  margin: 0 auto;
  margin-top: 46px;
}

@media screen and (min-width: 1439px) {
  .hero {
    padding-top: 200px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 65px;
  }

  .bird {
    width: auto;
  }

  .hero-title {
    font-size: 120px;
    margin-bottom: 32px;
  }

  .pirate {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .hero-text {
    font-size: 28px;
    margin-bottom: 52px;
  }

  .hero-list {
    gap: 30px;

    p {
      font-size: 64px;
    }

    span {
      font-size: 22px;
    }
  }
}

/* services */

#services {
  position: relative;
  overflow: hidden;
  padding-bottom: 0;
}

.services-title {
  text-align: start;
}

.services-bird {
  position: absolute;
  width: 133px;
  top: 24px;
  left: 0;
}

.blueberry {
  position: absolute;
  width: 87px;
  bottom: 0;
  right: 0;
}

.ship {
  position: absolute;
  width: 91px;
  top: 24px;
  right: 0;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 36px;

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 24px;
    line-height: 133%;
    color: #0772b3;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--172a47);
  }
}

@media screen and (min-width: 1439px) {
  .services-title {
    text-align: center;
  }
  .services-list {
    gap: 44px 160px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 966px;
    margin: 0 auto;

    li {
      width: calc((100% - 160px) / 2);
    }
  }

  .item {
    transform: translateX(-66px);
  }

  .item2 {
    transform: translateX(66px);
  }

  .services-bird {
    top: 72px;
    width: auto;
  }

  .ship {
    top: 66px;
    right: 45px;
    width: auto;
  }

  .blueberry {
    width: auto;
    left: -100px;
  }
}

/* clients  */

#clients {
  padding-left: 0;
  padding-right: 0;
}

.clients-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 156%;
  color: var(--172a47);
  margin-bottom: 28px;
  padding: 0 20px;
}

.clients-item {
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 32px;
  padding: 16px;
  width: 335px;
  max-width: 100%;
  min-height: 381px;
  backdrop-filter: blur(48px);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    line-height: 133%;
    text-align: center;
    color: var(--172a47);
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--172a47);
  }
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 36px;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--172a47);
  background-color: #fff;
  transition: background-color 0.3s ease;
}

.swiper-svg {
  fill: none;
  stroke: var(--172a47);
  transition: stroke 0.3s ease;
}

.clients-left {
  transform: rotate(-90deg);
}

.clients-right {
  transform: rotate(90deg);
}

.btn:hover {
  background-color: var(--172a47);
  .swiper-svg {
    stroke: #fff;
  }
}

@media screen and (min-width: 1439px) {
  #clients {
    position: relative;
  }

  .clients-title {
    text-align: start;
    padding-left: 88px;
  }

  .clients-text {
    padding-left: 88px;
    text-align: start;
    font-size: 20px;
    margin-bottom: 48px;
  }

  .clients-btn-wrap {
    position: absolute;
    top: 96px;
    right: 88px;
    margin: 0;
  }

  .clients-item {
    width: 404px;
  }
}

/* works */

.iframe-wrap {
  position: relative;
  width: 335px;
  max-width: 100%;
  height: 203px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 60px;
}

@media screen and (min-width: 768px) {
  .iframe-wrap {
    width: 500px;
    height: 290px;
  }
}

@media screen and (min-width: 1200px) {
  .iframe-wrap {
    min-width: 837px;
    height: 490px;
  }
}

.close-button-frame {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-40px) translateX(10px);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  z-index: 2;

  .menu-svg {
    fill: #0772b3;
    stroke: #0772b3;
  }
}

.close-button-frame:hover {
  .menu-svg {
    fill: red;
    stroke: red;
  }
}

#gameIframe1,
#gameIframe2,
#gameIframe3 {
  width: 100%;
  height: 100%;
  border: none;
}

.works-list {
  display: flex;
  flex-direction: column;
  gap: 44px;

  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  h4 {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 24px;
    line-height: 133%;
    text-align: center;
    color: #0772b3;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--172a47);
  }

  img {
    margin: 0 auto;
    margin-bottom: 16px;
  }
}

.works-item {
  div {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 16px;
  }
}

@media screen and (min-width: 1439px) {
  .works-item {
    display: flex;
    align-items: flex-start;
    flex-direction: row;
    justify-content: center;
    gap: 60px;

    h4 {
      font-size: 32px;
    }

    p {
      font-size: 18px;
      max-width: 560px;
    }

    div {
      align-items: flex-start;
      gap: 20px;
    }
  }

  .works-item2 {
    flex-direction: row-reverse;
  }
}

/* about  */

#about {
  position: relative;
  overflow: hidden;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--172a47);
  margin-bottom: 24px;
}

.about-img {
  max-width: max-content;
  width: 423px;
  margin: 0 auto;
}

@media screen and (min-width: 1439px) {
  .about-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 56px;
  }

  .about-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .about-text {
    font-size: 20px;
  }
}

/* approach */

#approach {
  background-position: top left, right center;
}

.approach-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 24px;
    line-height: 133%;
    color: #0772b3;
    margin-bottom: 16px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--172a47);
  }
}

@media screen and (min-width: 1439px) {
  #approach {
    background-position: top right, left center;
  }

  .approach-list {
    gap: 112px 28px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;

    li {
      width: calc((100% - 56px) / 3);
    }

    p {
      font-size: 32px;
    }

    span {
      font-size: 20px;
    }
  }

  .approach2 {
    transform: translateY(108px);
  }
}

/* founders */

.founders-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;

  div {
    padding-top: 36px;
    width: 335px;
    max-width: 100%;
    border-radius: 36px;
    background-size: cover;
  }

  h4 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    line-height: 156%;
    color: var(--172a47);
    text-align: end;
    margin-bottom: 16px;
    padding-right: 16px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--172a47);
    text-align: end;
    margin-bottom: 44px;
    padding-right: 16px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--172a47);

    border-radius: 36px 0 36px 36px;
    padding: 24px;
    background: #f5f5f5;
  }
}

@media screen and (min-width: 1439px) {
  .founders-list {
    flex-direction: row;
    gap: 64px;

    div {
      width: 508px;
      min-height: 341px;
      position: relative;
    }

    h4 {
      font-size: 22px;
    }

    span {
      font-size: 17px;
    }

    p {
      position: absolute;
      bottom: 0;
      left: 0;
      font-size: 18px;
    }
  }
}

/* contact  */

.contact-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: var(--172a47);
  margin-bottom: 20px;

  span {
    font-weight: 400;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--172a47);

  input {
    width: 100%;
    background-color: transparent;
    padding: 20px 16px;
    border: none;
    border-bottom: 1px solid var(--172a47);
    outline: none;
  }

  textarea {
    width: 100%;
    width: 100%;
    background-color: transparent;
    padding: 20px 16px;
    border: none;
    border-bottom: 1px solid var(--172a47);
    outline: none;
    resize: none;
  }
}

.form-btn {
  margin: 0 auto;
  margin-top: 40px;
  transition: transform 0.3s ease;
}

.form-btn:hover {
  transform: scale(1.05);
}
.contact-img {
  width: 343px;
  margin: 0 auto;
  margin-top: 20px;
}

@media screen and (min-width: 1439px) {
  .contact-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
  }

  .contact-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .contact-text {
    font-size: 24px;
    margin-bottom: 40px;
  }

  .form-btn {
    margin: 0;
    margin-top: 40px;
  }
}

/* footer */

.footer {
  padding: 40px 10px;
  background: #001321;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 133%;
  color: #fff;
  text-align: center;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 24px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 143%;
  color: #fff;

  a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1439px) {
  .footer {
    padding: 44px 112px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
  }

  .footer-list {
    flex-direction: row;
    margin: 0;
    font-size: 16px;
  }

  .footer-text {
    font-size: 14px;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}
