/* header */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 9;
  background: linear-gradient(180deg, #00446a 0%, #188bca 100%);
}

.navigation {
  display: none;
}

.open-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.close-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.svg {
  stroke: white;
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 156%;
  color: #fff;
  padding-bottom: 24px;
  border-bottom: 1px solid #fff;
  transition: color 0.3s ease;
}

.navigation-item:hover {
  color: #ffe500;
}

.modal {
  position: fixed;
  top: 80px;
  left: 50%;
  z-index: 8;
  padding: 28px 40px;

  background: linear-gradient(180deg, #00446a 0%, #188bca 100%);
  transform: translateY(-150%) translateX(-50%);
  transition: transform 1.5s ease;
  z-index: 8;
}

.modal-navigation-list {
  flex-direction: column;
  align-items: flex-start;
}

.modal-click {
  transform: translateY(0) translateX(-50%);
}

@media screen and (min-width: 1435px) {
  .header {
    padding: 28px 0;
  }

  .navigation {
    display: block;
  }

  .navigation-item {
    font-size: 18px;
    padding: 0;
    padding-right: 28px;
    border: none;
    border-right: 1px solid #fff;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 100px;
  padding-bottom: 306px;
  background-image: url(../images/home.jpg);
  background-size: cover;
  background-position: bottom right;
  position: relative;
  overflow: hidden;
}

.home-logo {
  width: 335px;
  margin: 0 auto;
  margin-bottom: 24px;
}

.home-title {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #ffe500;
  margin-bottom: 16px;
}

.home-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.home-link {
  display: block;
  width: 335px;
  max-width: 100%;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.home-link:hover {
  transform: scale(0.96);
}

.home-img {
  position: absolute;
  bottom: 17px;
  left: 50%;
  max-width: max-content;
  width: 264px;
}

.wolf {
  position: absolute;
  bottom: 17px;
  left: 50%;
  transform: translateX(-100%);
  max-width: max-content;
  width: 279px;
}

@media screen and (min-width: 1435px) {
  #home {
    padding-top: 124px;
    padding-bottom: 142px;
  }

  .home-container {
    position: relative;
  }

  .home-logo {
    width: auto;
    margin-bottom: 24px;
  }

  .home-title {
    font-size: 24px;
    width: 697px;
    margin: 0 auto;
    margin-bottom: 16px;
  }

  .home-text {
    font-size: 20px;
    width: 697px;
    margin: 0 auto;
    margin-bottom: 40px;
  }

  .home-link {
    width: 398px;
  }

  .home-img {
    bottom: -40px;
    left: auto;
    right: 0;
    width: auto;
  }

  .wolf {
    bottom: -40px;
    left: 0;
    transform: translateX(0);
    width: auto;
  }
}

/* about */

#about {
  background-image: url(../images/three.png), url(../images/about.jpg);
  background-size: auto, cover;
  background-repeat: no-repeat;
  background-position: right, center;
}

.about-container {
  position: relative;
  overflow: hidden;
}

.sunflower {
  position: absolute;
  width: 129px;
  left: 0;
  bottom: 110px;
}

.coins {
  position: absolute;
  width: 186px;
  right: 0;
  bottom: 110px;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  color: var(--text);
  margin-bottom: 32px;
}

.about-wrap {
  padding: 52px 28px;
  position: relative;
  margin-bottom: 72px;

  ul {
    list-style: disc;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--text);
  }
}

.stone {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-description {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: var(--text);
}

@media screen and (min-width: 768px) {
  .about-wrap {
    padding: 80px 60px;
  }
}

@media screen and (min-width: 1435px) {
  .about-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;

    ul {
      font-size: 20px;
    }
  }

  .about-text {
    font-size: 28px;
  }

  .about-description {
    font-size: 28px;
    max-width: 827px;
    margin: 0 auto;
  }

  .about-container {
    overflow-y: visible;
  }

  .sunflower {
    width: 280px;
    left: 0;
    bottom: 0;
  }

  .coins {
    width: auto;
    right: auto;
    left: 300px;
    bottom: 140px;
  }
}

/* how  */

#how {
  background-image: url(../images/how.jpg);
  background-size: cover;
  background-position: right;
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--text);
  }
}

.how-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 20px;
  line-height: 140%;
  color: #fffb5c;
  margin-top: 28px;
}

@media screen and (min-width: 1435px) {
  .how-list {
    gap: 16px;
    width: 718px;
    margin: 0 auto;

    li {
      gap: 24px;
    }

    p {
      font-size: 20px;
    }
  }

  .item1 {
    transform: translateX(-68px);
  }

  .item3 {
    transform: translateX(68px);
  }

  .item4 {
    transform: translateX(136px);
  }

  .item5 {
    transform: translateX(204px);
  }

  .how-text {
    font-size: 24px;
    text-align: center;
    margin-top: 48px;
  }
}

/* features */

#features {
  background-image: url(../images/features.jpg);
  background-position: center;
  background-size: cover;
}

.features-list {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 32px 20px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);

  display: flex;
  flex-direction: column;
  gap: 24px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--text);
}

@media screen and (min-width: 1435px) {
  .features-list {
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 56px 80px;

    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 36px 60px;

    li {
      width: calc((100% - 120px) / 3);
    }
  }
}

/* friends */

#friends {
  background-image: url(../images/friends.jpg);
  background-position: top;
  background-size: cover;
}

.friends-item {
  border-radius: 40px;
  padding: 20px;
  box-shadow: inset -4px 4px 4px 0 #80f1ff, inset -4px 4px 4px 0 #80f1ff,
    inset -4px 4px 4px 0 #80f1ff, inset 4px -4px 4px 0 #80f1ff;
  background: #abf1fa;
  width: 330px;
  max-width: 100%;
  min-height: 518px;

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: var(--text);
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--text);
  }
}

.slider-btn-wrap {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 36px;
}

.slider-btn {
  transition: transform 0.3s ease;
}

.slider-btn:hover {
  transform: scale(1.1);
}

.themes-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 24px;
  line-height: 133%;
  text-align: center;
  color: var(--text);
  margin-bottom: 32px;
}

.themes-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;

  li {
    width: 335px;
    max-width: 100%;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--text);
  }

  img {
    margin: 0 auto;
    margin-bottom: 16px;
  }
}

@media screen and (min-width: 768px) {
  .themes-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  }
}

@media screen and (min-width: 1435px) {
  #friends {
    padding-bottom: 32px;
  }
  .friends-item {
    width: 352px;
    transition: transform 0.3 ease;
  }

  .friends-swiper {
    width: 1144px;
    margin: 0 auto;
    padding-bottom: 56px;

    .swiper-slide-active {
      transform: translateY(56px);
    }
  }

  .friends-container {
    position: relative;
  }

  .friends-left {
    position: absolute;
    left: 100px;
    top: 50%;
    z-index: 1;
  }

  .friends-right {
    position: absolute;
    right: 100px;
    top: 50%;
    z-index: 1;
  }

  .themes-section {
    padding-top: 32px;
  }

  .themes-title {
    font-size: 36px;
  }

  .themes-list {
    gap: 44px 52px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;

    li {
      width: calc((100% - 104px) / 3);
    }
  }
}

/* face */

.laptop {
  margin: 0 auto;
  margin-bottom: 36px;
}

.face-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    display: flex;
    align-items: center;
    gap: 28px;

    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--text);
  }
}

@media screen and (min-width: 1435px) {
  .face-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 54px;
  }

  .face-list {
    li {
      font-size: 18px;
    }
  }
}

/* what */

.what-item {
  border: 1px solid #ff8c09;
  border-radius: 8px;
  padding: 20px;
  width: 335px;
  max-width: 100%;
  min-height: 268px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  background: #fff;

  div {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 133%;
    color: var(--text);
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--text);
    margin-top: 24px;
  }
}

@media screen and (min-width: 1435px) {
  #what {
    .main-title {
      text-align: start;
    }
  }

  .what-container {
    position: relative;
  }

  .what-item {
    width: 398px;
    min-height: 308px;
    border-radius: 8px;
    padding: 40px;
  }

  .what-btn-wrap {
    position: absolute;
    top: 0;
    right: 88px;
    margin: 0;
  }
}

/* contact */

.contact-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: var(--text);
  margin-bottom: 24px;
}

.contact-list {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: var(--text);

  a:hover {
    text-decoration: underline;
  }
}

.contact-img {
  margin: 0 auto;
  margin-top: 35px;
}

@media screen and (min-width: 1435px) {
  .contact-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 109px;

    .main-title {
      text-align: start;
    }
  }

  .contact-img {
    margin: 0;
    flex-shrink: 0;
  }

  .contact-text,
  .contact-list {
    font-size: 18px;
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  width: 100%;
  border-radius: 18px;
  padding: 24px 20px;
  box-shadow: 0 5px 16px rgba(8, 15, 52, 0.06);
  background: #fff;
  cursor: pointer;
}

.faq-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #618708;
  flex-shrink: 0;
  transform: rotate(90deg);
  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;
  line-height: 156%;
  color: var(--text);
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: var(--text);
  padding-top: 12px;
}

@media screen and (min-width: 1435px) {
  .faq-list {
    width: 896px;
    margin: 0 auto;
  }
  .faq-item {
    border-radius: 18px;
    padding: 32px 40px;
  }

  .faq-title {
    font-size: 24px;
  }

  .faq-text {
    font-size: 18px;
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(180deg);
}

/* footer */

.footer {
  padding: 40px 0;
  background: #0c5609;
}

.footer-description {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 160%;
  text-align: center;
  color: #fff;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.footer-link {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #ffe500;
}

.footer-mail {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 10px;
  line-height: 160%;
  color: #fff;
  text-align: center;
  margin-bottom: 28px;

  a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1435px) {
  .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-list {
    margin: 0;
    gap: 12px;
  }

  .footer-mail {
    margin: 0;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 32px;

  border: 1px solid #d9dbe9;
  border-radius: 20px;

  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #fff;

  transition: transform 0.5s ease;
}

.popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
}

.popup-svg {
  stroke: #170f49;
  transition: stroke 0.3s ease;
}
.popup-svg:hover {
  stroke: #05a154;
}

.popup-image {
  margin: 0 auto;
  margin-bottom: 11px;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #6f6c90;
  margin-bottom: 32px;
}

.popup-link {
  color: #4a3aff;
  transition: color 0.3s ease;
}

.popup-link:hover {
  text-decoration: underline;
}

.popup-btn {
  border: 1px solid #05a154;
  border-radius: 56px;
  padding: 18px 28px;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  color: #170f49;

  display: flex;
  align-items: center;
  justify-content: center;
  width: 196px;
  gap: 6px;

  transition: color 0.3s ease, background-color 0.2s ease;

  svg {
    fill: #170f49;
    transition: fill 0.3s ease;
  }
}

.popup-btn:hover {
  color: #fff;
  box-shadow: 0 3px 12px 0 rgba(74, 58, 255, 0.18);
  background: #05a154;

  svg {
    fill: #fff;
  }
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}

@media screen and (min-width: 1439px) {
  .popup {
    padding: 40px;
    padding-right: 84px;
    display: flex;
    align-items: center;
  }
  .popup-image {
    margin: 0;
    margin-right: 16px;
  }

  .popup-text {
    font-size: 18px;
    margin: 0;
    text-align: start;
  }
  .popup-wrap {
    flex-direction: row;
    gap: 24px;
    margin-left: 120px;
  }
}
