/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 8px 0;
  background: rgba(18, 18, 18, 0.7);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  width: 40px;
}

.navigation {
  display: none;
}

.modal-button {
  display: flex;
  align-items: center;
  justify-content: center;
}

.svg {
  stroke: var(--pure-wight);
}

.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%;
  text-transform: uppercase;
  text-align: center;
  color: var(--pure-wight);
  transition: color 0.3s ease;
}

.navigation-item:hover {
  color: var(--red);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 130px;
  background: rgba(0, 0, 0, 0.99);
  transform: translateY(-100%);
  transition: transform 1s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: flex-start;
}

.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: 226px;
  background-image: url(../images/home.jpg);
  background-position: right center;
  background-size: cover;
}

.home-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 72px;
  line-height: 139%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--pure-wight);
  margin-bottom: 24px;

  span {
    color: var(--red);
  }
}

.home-link {
  display: block;
  background: var(--red);
  border-radius: 8px;
  padding: 16px;
  width: 343px;
  text-align: center;
  margin-top: 32px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  text-transform: uppercase;
  color: var(--pure-wight);
  transition: color 0.3s ease, background-color 0.3s ease;
}

.home-link:hover {
  background: #b51333;
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 143px;
    padding-bottom: 56px;
  }

  .home-title {
    font-size: 92px;
  }

  .home-text {
    max-width: 616px;
  }

  .home-link-wrap {
    flex-direction: row;
    gap: 32px;
    justify-content: flex-start;
  }

  .home-link {
    width: 256px;
  }
}

/* home-list */

.home-list-wrapper {
  background: rgba(0, 0, 0, 0.8);
  padding: 24px 0;
}

.home-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    padding: 20px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-transform: uppercase;
    text-align: center;
    color: var(--gray);
  }
}

@media screen and (min-width: 768px) {
  .home-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 24px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  .home-list-wrapper {
    padding: 44px 0;
  }

  .home-list {
    gap: 32px;
    flex-wrap: nowrap;

    li {
      width: calc((100% - 96px) / 4);
    }
  }
}

/* about */

#about {
  background-image: url(../images/about-vector.png);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 170px;
  border-bottom: 4px solid var(--red);
}

.about-text {
  margin-bottom: 16px;
}

.about-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 22px;
  line-height: 155%;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 32px;
}

.about-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  img {
    width: 36px;
    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: 16px;
  }
}

@media screen and (min-width: 1437px) {
  #about {
    background-size: 320px;
  }
  .about-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 96px;

    div {
      width: calc((100% - 96px) / 2);
    }
  }

  .about-list {
    gap: 16px;

    li {
      font-size: 16px;
    }
  }
}

/* featured-list */

#featured {
  background-image: url(../images/fecorative-element.png);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 320px;
}

.featured-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    position: relative;
  }

  div {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    bottom: 20px;
  }

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pure-wight);
    margin-bottom: 16px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    color: var(--pure-wight);
  }
}

@media screen and (min-width: 1437px) {
  #featured {
    background-size: auto;
  }

  .featured-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 32px) / 2);
    }

    div {
      width: 400px;
    }
  }
}

/* quest */

.quest-text {
  margin-bottom: 24px;
}

.quest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 24px;

  li {
    display: flex;
    align-items: center;
    gap: 12px;

    font-family: var(--second-family);
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pure-wight);
  }

  img {
    width: 24px;
    flex-shrink: 0;
  }
}

.quest-img {
  margin-bottom: 32px;
}

.quest-img-wrap {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

@media screen and (min-width: 1437px) {
  .quest-container {
    display: flex;
    align-items: center;
    gap: 64px;
  }

  .quest-img-cover {
    width: 616px;
    flex-shrink: 0;
  }

  .quest-img-wrap {
    flex-direction: row;

    img {
      width: calc((100% - 32px) / 2);
    }
  }
}

/* hub */

#hub {
  background-color: rgba(0, 0, 0, 0.8);
  background-image: url(../images/about-vector.png);
  background-position: right top;
  background-repeat: no-repeat;
  background-size: 170px;
}

.hub-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;

  li {
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-transform: uppercase;
    text-align: center;
    color: var(--gray);
  }

  img {
    width: 36px;
    margin: 0 auto;
  }
}

@media screen and (min-width: 768px) {
  .hub-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    li {
      width: calc((100% - 24px) / 2);
    }
  }
}

@media screen and (min-width: 1437px) {
  #hub {
    background-size: 320px;
  }

  .hub-text {
    max-width: 584px;
  }

  .hub-list {
    gap: 32px;
    margin-top: 60px;

    li {
      width: calc((100% - 96px) / 4);
      padding: 20px;
    }
  }
}

/* faq */

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 23px;
}

.faq-item {
  width: 100%;
  cursor: pointer;
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  transform: rotate(180deg);
  transition: transform 0.3s ease;
  transform-origin: center;
}

.swiper-svg {
  fill: none;
  stroke: var(--pure-wight);
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 0 32px 0 0;
  padding: 16px;
  background: var(--red);
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  color: var(--pure-wight);
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 157%;
  color: var(--text);
  padding: 16px;
}

@media screen and (min-width: 768px) {
  .faq-title {
    font-size: 16px;
  }
  .faq-text {
    font-size: 16px;
  }
}

@media screen and (min-width: 1437px) {
  .faq-list {
    flex-direction: row;
    gap: 24px 32px;
    flex-wrap: wrap;
  }

  .faq-item {
    width: calc((100% - 32px) / 2);
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(360deg);
}

/* contact  */

#contact {
  background-image: url(../images/fecorative-element.png);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: 120px;
}

.contact-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  text-align: center;
  color: var(--black);
  margin-bottom: 40px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 157%;
    text-align: center;
    color: var(--gray);
    margin-bottom: 8px;
  }

  a,
  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--black);
  }

  a:hover {
    text-decoration: underline;
  }
}

.social-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;

  a {
    display: block;
    width: 32px;
    transition: transform 0.3s ease;
  }

  a:hover {
    transform: scale(1.2);
  }
}

@media screen and (min-width: 1437px) {
  #contact {
    background-size: auto;
  }
  .contact-text {
    margin-bottom: 60px;
  }

  .contact-list {
    flex-direction: row;
    justify-content: center;
    gap: 0;
    margin-bottom: 60px;

    li {
      width: calc(100% / 2);
    }

    p {
      font-size: 16px;
    }

    a,
    span {
      font-size: 24px;
    }
  }
}

/* footer */

.footer {
  padding-bottom: 24px;
  background: rgba(18, 18, 18, 0.7);
}

.footer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  text-align: center;
  color: var(--pure-wight);
  transition: color 0.3s ease;

  a:hover {
    color: var(--red);
  }
}

.footer-description {
  display: none;
}

@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 {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--text);
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  padding: 40px 16px;
  background: #2f3d3f;
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font3);
  font-weight: 600;
  font-size: 14px;
  line-height: 157%;
  text-align: center;
  color: var(--pure-wight);
  margin-bottom: 20px;
}

.popup-btn {
  border: 1px solid var(--pure-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-align: center;
  text-transform: uppercase;
  color: var(--pure-wight);

  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #8529a7;
}

.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;
  }
}
