/* header */

.header {
  display: none;
}

.open-modal {
  position: fixed;
  top: 60px;
  right: 48px;
  z-index: 5;
}

.close-modal {
  position: absolute;
  top: 60px;
  right: 48px;
  z-index: 9;
}

.svg {
  stroke: var(--main-color);
}

.navigation-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
}

.navigation-item {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--text-color);
  transition: border-color 0.3s ease;
}

.navigation-item:hover {
  color: var(--title-color);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 8;
  background: var(--main-color);
  padding-top: 200px;
  transform: translateY(-100%);
  transition: transform 1.5s ease;
  z-index: 8;

  .svg {
    stroke: var(--text-color);
  }
}

.modal-navigation-list {
  flex-direction: column;
  align-items: center;
  gap: 34px;
}

.modal-click {
  transform: translateY(0);
}

@media screen and (min-width: 1437px) {
  .header {
    display: block;
    position: fixed;
    z-index: 9;
    top: 36px;
    left: 50%;
    transform: translateX(-50%);
    padding: 30px 0;
    border-radius: 20px;
    padding: 12px;
    width: 1280px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.2);
  }

  .navigation {
    display: block;
  }

  .navigation-list {
    justify-content: space-between;
  }

  .navigation-item {
    font-size: 16px;
  }

  .open-modal {
    display: none;
  }
}

/* home */

#home {
  padding-top: 102px;
  padding-bottom: 0;
  background-image: url(../images/home-mobile.png);
  background-size: cover;
  background-position: bottom center;
}

.home-logo {
  margin: 0 auto;
  margin-bottom: 10px;
}

.home-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 243px;
  margin: 0 auto;
  transition: background-color 0.3s ease;
}

.girl {
  margin: 0 auto;
}

@media screen and (min-width: 1437px) {
  #home {
    padding-top: 85px;
    padding-bottom: 230px;
    background-image: url(../images/home.jpg);
  }

  .girl {
    display: none;
  }

  .home-logo {
    margin: 0;
    margin-bottom: 32px;
  }

  .home-link {
    margin: 0;
    margin-left: 136px;
  }
}

/* about */

.about-img {
  margin: 0 auto;
  margin-bottom: 22px;
}

.about-img2 {
  display: none;
}

.about-title {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  color: var(--text-color);
  margin-bottom: 18px;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--text-color);
}

@media screen and (min-width: 1437px) {
  .about-container {
    position: relative;
  }

  .about-img {
    margin: 0;
    flex-shrink: 0;
  }

  .about-img2 {
    display: block;
    position: absolute;
    top: 50%;
    left: 415px;
    transform: translateY(-50%);
  }
  .about-title {
    margin-bottom: 22px;
  }

  .about-cover {
    display: flex;
    align-items: center;
    gap: 324px;
  }
}

/* features */

#features {
  background-image: url(../images/features-mob.png);
  background-position: center;
  background-size: cover;
  border-radius: 20px;
}

.features-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 20px;

  li {
    width: calc((100% - 20px) / 2);
    border-radius: 20px;
    padding: 14px 8px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.4);
  }

  p {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
    text-align: center;
    color: var(--title-color);
    margin-bottom: 10px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--text-color);
  }
}

@media screen and (min-width: 1437px) {
  #features {
    background-image: url(../images/features.png);
    padding-bottom: 190px;
  }
  .features-list {
    width: 522px;
    gap: 20px 128px;

    li {
      width: calc((100% - 128px) / 2);
    }
  }
}

/* team */

.team-item {
  width: 305px;
  max-width: 100%;
  position: relative;

  div {
    border-radius: 8px;
    padding: 12px 22px;
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.4);
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 281px;
    max-width: 100%;
  }

  p {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 24px;
    line-height: 150%;
    text-align: center;
    color: var(--title-color);
    margin-bottom: 6px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--text-color);
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item {
  width: 100%;
  cursor: pointer;
}

.faq-btn {
  flex-shrink: 0;
  transform: rotate(45deg);
  transition: transform 0.3s ease;

  svg {
    fill: none;
    stroke: var(--text-color);
  }
}

.faq-wrap {
  border: 2px solid var(--title-color);
  border-radius: 20px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 16px;
  line-height: 150%;
  color: var(--text-color);
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--text-color);
  border: 0.5px solid var(--title-color);
  border-radius: 20px;
  padding: 12px;
}

@media screen and (min-width: 1437px) {
  #faq {
    height: 450px;
  }
  .faq-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px 237px;
  }
  .faq-item {
    width: calc((100% - 237px) / 2);
  }
}

.hidden {
  display: none;
}

.click {
  transform: rotate(180deg);
}

/* gallery */

.gallery-item {
  width: 305px;
  max-width: 100%;
}

.gallery-btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

/* clients */

.clients-item {
  width: 305px;

  div {
    border: 0.5px solid var(--text-color);
    border-radius: 20px;
    padding: 10px 14px;
    margin-top: 6px;
    min-height: 132px;
  }

  p {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 22px;
    line-height: 150%;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-color);
    margin-bottom: 8px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: var(--text-color);
  }
}

/* reviews */

.reviews-wrapper {
  padding-top: 30px;
}

.reviews-item {
  border: 1px solid var(--accent-color);
  border-radius: 20px;
  padding: 20px;
  padding-left: 0;
  display: flex;
  align-items: center;
  width: 273px;
  min-height: 196px;
  max-width: 100%;
  position: relative;

  img {
    transform: translateX(-20px);
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: var(--accent-color);
    margin-bottom: 14px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: var(--text-color);
  }

  .dots {
    transform: translateX(0);
    position: absolute;
    right: 7px;
    top: -28px;
  }
}

.reviews-img {
  display: none;
}

@media screen and (min-width: 1437px) {
  .reviews-img {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
  }
}

/* footer */

.footer {
  padding: 33px 0;
  background: var(--title-color);
}

.footer-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-link {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  color: var(--main-color);
  transition: color 0.3s ease;
}

.footer-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: var(--main-color);
  margin-top: 18px;
}

@media screen and (min-width: 1437px) {
  .footer {
    padding: 46px 0;
  }
  .footer-list {
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-link {
    font-size: 22px;
  }

  .footer-description {
    margin-top: 50px;
    text-align: center;
  }
}

/* cookie popup */

.popup {
  position: fixed;
  width: 100%;
  z-index: 10;
  bottom: 0;
  padding: 38px 0;
  background: var(--title-color);
  transition: transform 0.5s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: var(--main-color);
  margin-bottom: 24px;
}

.popup-btn {
  font-family: var(--second-family);
  font-weight: 500;
  font-size: 22px;
  line-height: 150%;
  text-transform: uppercase;
  color: var(--main-color);
  border-radius: 40px;
  padding: 20px;
  border: 1px solid var(--main-color);
  text-transform: uppercase;
  transition: color 0.3s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: var(--main-color);
  color: var(--title-color);
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.popup-click {
  transform: translateY(100%);
}

@media screen and (min-width: 1437px) {
  .popup-container {
    display: flex;
    align-items: center;
    gap: 180px;
  }

  .popup-text {
    margin: 0;
    font-size: 18px;
  }

  .popup-wrap {
    flex-direction: row;
    gap: 26px;
    flex-shrink: 0;
  }
}
