/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 26px;
  background: #1c1918;
  z-index: 9;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 40px;
}

.navigation {
  display: none;
}

.svg {
  stroke: #fffbfb;
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);
  transition: border-color 0.3s ease;
}

.modal {
  position: fixed;
  top: 0;
  left: 50%;
  z-index: 8;
  padding: 22px;
  padding-top: 112px;
  transform: translateY(-150%) translateX(-50%);
  transition: transform 1s ease;
  z-index: 8;
  background: #1c1918;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 36px;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

.header-center-logo {
  display: none;
}

@media screen and (min-width: 1438px) {
  .header {
    padding: 12px 0;
  }

  .header-container {
    justify-content: center;
  }

  .header-logo {
    display: none;
  }

  .header-center-logo {
    display: block;
    width: 40px;
  }

  .navigation {
    display: block;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 100px;
  background-image: url(../images/hero.jpg);
  background-size: cover;
  background-position: center;
}

.home-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 46px;
  line-height: 150%;
  color: #c8584c;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
  margin-bottom: 25px;
}

.home-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--white);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
}

@media screen and (min-width: 1438px) {
  #home {
    padding-top: 142px;
    padding-bottom: 147px;
  }

  .home-title {
    font-size: 76px;
    margin-bottom: 56px;
  }
  .home-text {
    font-size: 24px;
    max-width: 636px;
  }
}

/* what  */

.what-title {
  margin: 24px 0;
}

.what-list {
  margin-bottom: 24px;
  list-style: disc;
  padding-left: 20px;
}

.what-img {
  margin: 0 auto;
}

@media screen and (min-width: 1438px) {
  .what-img {
    margin: 0;
    flex-shrink: 0;
  }

  .what-container {
    display: flex;
    align-items: flex-start;
    gap: 24px;
  }
}

/* system */

.system-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: disc;
  padding-left: 20px;
  margin: 24px 0;
}

/* entity */

#entity {
  padding-bottom: 0;
}

.entity-text {
  margin: 24px 0;
}

.entity-img {
  margin: 0 auto;
  margin-top: 25px;
}

@media screen and (min-width: 1438px) {
  .entity-wrap {
    display: flex;
    align-items: flex-start;
    gap: 90px;
    padding-right: 0;
  }

  .entity-img {
    margin: 0;
    flex-shrink: 0;
  }
}

/* mechanics */

.mechanics-list {
  display: none;
}

.mechanics-swiper {
  margin-top: 25px;
}

.mechanics-item {
  border-right: 1px solid #fffbfb;
  padding: 15px;
  width: 255px;
  max-width: 100%;
  min-height: 184px;

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #fffbfb;
    margin: 15px 0;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #fffbfb;
  }
}

@media screen and (min-width: 1438px) {
  .mechanics-swiper {
    display: none;
  }

  .mechanics-list {
    display: flex;
    gap: 24px;
    margin-top: 48px;

    li {
      width: calc((100% - 72px) / 4);
      border-right: 1px solid #fffbfb;
      padding: 16px 24px;
    }

    p {
      font-family: var(--font-family);
      font-weight: 700;
      font-size: 24px;
      color: #fffbfb;
      margin: 16px 0;
    }

    span {
      font-family: var(--font-family);
      font-weight: 400;
      font-size: 24px;
      color: #fffbfb;
    }
  }
}

/* artefacts */

.artefacts-swiper {
  margin: 25px 0;
}

.artefacts-list {
  display: none;
}

.artefacts-item {
  width: 325px;

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #fffbfb;
  }
  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #fffbfb;
  }
}

.pagination {
  text-align: center;
}

.swiper-pagination-bullet {
  display: inline-block;
  width: 8px;
  height: 8px;
  opacity: 1;
  border-radius: 50%;
  background-color: #fffbfb;
  transition: background-color 0.2s ease;
}

.swiper-pagination-bullet-active {
  background-color: #c8584c;
}

@media screen and (min-width: 1438px) {
  #artefacts {
    padding-bottom: 0;
    height: 1150px;
  }
  .artefacts-swiper {
    display: none;
  }
  .pagination {
    display: none;
  }

  .artefacts-text {
    max-width: 746px;
  }

  .artefacts-list {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0 180px;
    margin-top: 50px;
  }

  .artefacts-item {
    width: calc((100% - 180px) / 2);

    display: flex;
    align-items: flex-start;

    div {
      transform: translateY(80px) translateX(-40px);
    }
  }

  .artefact2 {
    transform: translateY(-255px);
    flex-direction: row-reverse;

    div {
      transform: translateY(240px) translateX(40px);
    }
  }

  .artefact3 {
    transform: translateY(-305px);
  }
}

/* user */

.user-swiper {
  margin: 25px 0;
}

.user-list {
  display: none;
}

.user-item {
  border: 1px solid #fffbfb;
  padding: 15px;
  width: 275px;
  max-width: 100%;
  min-height: 226px;
  position: relative;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #fffbfb;
    margin-bottom: 15px;
  }

  span {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    text-align: right;
    color: #fffbfb;
  }
}

@media screen and (min-width: 1438px) {
  #user {
    padding-top: 0;
  }

  .user-swiper {
    display: none;
  }

  .user-list {
    display: flex;
    gap: 48px;
    margin-top: 48px;
  }

  .user-item {
    width: calc((100% - 96px) / 3);
    padding: 16px 24px;
    min-height: 240px;

    p,
    span {
      font-size: 24px;
    }
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.faq-item {
  width: 100%;
  border: 1px solid #fffbfb;
  padding: 15px;
  cursor: pointer;
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transform: rotate(45deg);
  transition: transform 0.3s ease;

  svg {
    fill: none;
    stroke: #fff;
  }
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  color: #fffbfb;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  color: #fffbfb;
  padding-top: 15px;
  border-top: 1px solid #fffbfb;
  margin-top: 15px;
}

@media screen and (min-width: 1435px) {
  .faq-item {
    padding: 24px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-text {
    font-size: 24px;
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(180deg);
}

/* footer */

.footer {
  background: #000;
}

.contact-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  color: #fffbfb;
  margin-bottom: 15px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 15px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  color: #fffbfb;
}

.footer-logo {
  width: 150px;
  margin-bottom: 15px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 25px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: #fffbfb;
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #fffbfb;
  margin-top: 60px;
}

@media screen and (min-width: 1438px) {
  .footer-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }

  .contact-list {
    margin: 0;
  }

  .footer-logo {
    margin: 0;
  }

  .footer-list {
    margin: 0;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 20px 15px;
  background: #fffbfb;
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  text-align: center;
  color: #000;
  margin-bottom: 40px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
  color: #000;
  display: block;
  text-align: center;
  border: 1px solid #000;
  border-radius: 36px;
  padding: 18px 32px;
  text-transform: capitalize;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #5172c3;
  color: #fffbfb;
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}

@media screen and (min-width: 1438px) {
  .popup {
    padding: 51px 72px;
    display: flex;
    align-items: flex-start;
    gap: 135px;
  }

  .popup-text {
    font-size: 24px;
    text-align: start;
    margin: 0;
  }

  .popup-wrap {
    gap: 32px;
    flex-shrink: 0;
    flex-direction: row;
  }

  .popup-btn {
    text-transform: uppercase;
  }
}
