@import url(reset.css);
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap");

body {
  font-family: "Plus Jakarta Sans";
  color: #5e6282;
  background-color: #fff;
}
html,
body {
  overflow-x: hidden;
}
.wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.wrapper main {
  flex-grow: 1;
}
.container {
  max-width: 1230px;
  margin: 0 auto;
  padding: 0 15px;
}
/* ------------ */
h1 {
  font-weight: 800;
  font-size: 76px;
  line-height: 117%;
  letter-spacing: -0.04em;
  color: #181e4b;
  margin-bottom: 30px;
}
h1 span {
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #4475f2;
  text-shadow: 0 0 8px #fff;
}
.header-block {
  display: grid;
  font-weight: 800;
  gap: 10px;
  margin-bottom: 90px;
}
.header-block__label {
  font-size: 18px;
  letter-spacing: 0.1em;
  color: #4475f2;
}
.header-block__title {
  font-size: 48px;
  line-height: 135%;
  letter-spacing: 0.01em;
  color: #000;
}
@media (max-width: 1200px) {
  h1 {
    font-size: 54px;
  }
  .header-block {
    margin-bottom: 60px;
  }
  .header-block__label {
    font-size: 16px;
  }
  .header-block__title {
    font-size: 36px;
  }
}
@media (max-width: 991.98px) {
  .header-block {
    margin-bottom: 40px;
  }
}
@media (max-width: 640px) {
  h1 {
    font-size: 36px;
  }
  .header-block {
    margin-bottom: 25px;
  }
  .header-block__label {
    font-size: 14px;
  }
  .header-block__title {
    font-size: 24px;
  }
}
/* ------------ HEADER -------------- */
.header {
  position: absolute;
  top: 0;
  width: 100%;
  background-color: transparent;
  padding: 77px 0;
  z-index: 100;
}
.header .container {
  display: flex;
}
.header__logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
  text-align: right;
  color: #000;
}
.header__nav {
  display: flex;
  align-items: center;
  margin-left: 125px;
}
.header__menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
}
.menu__link {
  font-weight: 400;
  font-size: 14px;
  text-transform: capitalize;
  color: #9a9ea6;
}
.menu__link:hover {
  color: #4737ff;
}
@media (max-width: 1200px) {
  .header {
    padding: 50px 0;
  }
}
@media (max-width: 640px) {
  .header {
    padding: 24px 0;
  }
  .header__nav {
    margin-left: 24px;
  }
  .header__menu {
    gap: 8px 20px;
  }
}
/* ------------ Main ------------ */
.main {
  padding: 170px 0;
  position: relative;
}
.main::before,
.main::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 720px;
  height: 100%;
  filter: drop-shadow(0 15px 30px 0 rgba(0, 0, 0, 0.25));
  background-size: cover;
}
.main::before {
  background: url(/img/main/fon1.svg) no-repeat;
  z-index: -2;
}
.main::after {
  background: url(/img/main/fon2.svg) no-repeat;
  z-index: -1;
}
.main .container {
  display: flex;
}
.main__content {
  max-width: 50%;
  padding-right: 20px;
}
.main__text {
  font-weight: 400;
  font-size: 16px;
  line-height: 187%;
  color: #5e6282;
  display: grid;
  gap: 10px;
}
.main__btn {
  margin-top: 34px;
  font-weight: 700;
  line-height: 156%;
  color: #fff;
  background: #4475f2;
  padding: 18px 54px;
  display: flex;
  border-radius: 10px;
  align-items: center;
  transition: all 0.3s ease;
}
.main__btn i {
  transform: translate(0, 2px);
}
.main__btn:hover {
  box-shadow: 0 30px 60px 0 rgba(68, 117, 242, 0.4);
  transform: translateY(2px);
}
.main__btn:hover.main__btn i {
  transform: translate(2px, 2px);
}
.main__images {
  max-height: 480px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 27px;
}
.images__img {
  border-radius: 10px;
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.25);
  height: 100%;
  max-width: 100%;
}
.images__item--01 {
  grid-row: span 2;
  align-self: end;
  padding-bottom: 10px;
}
.images__item--03 {
  align-self: center;
  justify-self: end;
  grid-row: span 2;
  padding-bottom: 15px;
}
.images__item--04 {
  align-self: end;
  justify-self: end;
}
@media (max-width: 1200px) {
  .main {
    padding: 120px 0px;
  }
  .main .container {
    flex-direction: column;
    row-gap: 30px;
  }
  .main__content {
    max-width: 100%;
    padding: 0;
  }
  .main::before,
  .main::after {
    transform: translateX(30%);
    max-height: 80%;
  }
  .main__images {
    align-self: center;
  }
}
@media (max-width: 767.98px) {
  .main::before,
  .main::after {
    transform: translateX(50%);
    max-height: 55%;
  }
}
@media (max-width: 640px) {
  .main {
    padding: 110px 0px 60px;
  }
  .main::before,
  .main::after {
    display: none;
  }
}
@media (max-width: 479.98px) {
  .main__btn {
    width: 100%;
    justify-content: center;
  }
}
/* ------------ Features --------------*/
.features {
  padding: 0 0 100px;
}
.features__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.features .items__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
}
.features .item__img {
  padding: 28px;
  border-radius: 26px;
  box-shadow: 0 30px 60px 0 rgba(71, 74, 87, 0.25);
  background-color: #4475f2;
}
.features .item__title {
  margin: 20px 0 28px;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: #000;
}
@media (max-width: 991.98px) {
  .features {
    padding: 0 0 60px;
  }
}
@media (max-width: 680px) {
  .features {
    padding: 0 0 30px;
  }
  .features__items {
    justify-content: center;
    gap: 32px;
  }
  .features .items__item {
    max-width: none;
  }
  .features .item__title {
    margin: 18px 0 20px;
    font-size: 20px;
  }
}
/* ------------ Services --------------*/
.services {
  padding: 100px 0;
}
.services__content {
  display: grid;
  gap: 140px;
}
.content__item {
  display: flex;
  justify-content: space-between;
  gap: 125px;
}
.content__item:nth-child(even) {
  flex-direction: row-reverse;
}
.services .item__img {
  min-width: 50%;
  box-shadow: 0 30px 60px 0 rgba(71, 74, 87, 0.25);
}
.services .item__img img {
  width: 100%;
}
.services .item__title {
  font-weight: 500;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: #000;
}
.services .item__title span {
  color: #4475f2;
}
.services .item__text {
  font-weight: 500;
  font-size: 16px;
  line-height: 187%;
  letter-spacing: 0.02em;
  color: #5e6282;
  display: grid;
  gap: 15px;
  margin-top: 40px;
}
@media (max-width: 1200px) {
  .services {
    padding: 50px 0px;
  }
  .services__content {
    gap: 100px;
  }
  .services .content__item {
    gap: 80px;
  }
}
@media (max-width: 991.98px) {
  .services {
    padding: 40px 0px;
  }
  .services__content {
    gap: 50px;
  }
  .services .content__item {
    gap: 30px;
    flex-direction: column;
  }
  .services .item__img {
    min-width: none;
  }
}
@media (max-width: 640px) {
  .services {
    padding: 30px 0px;
  }
  .services .content__item {
    gap: 15px;
  }
  .services .item__title {
    font-size: 20px;
  }
  .services .item__text {
    margin-top: 16px;
    gap: 5px;
    line-height: 160%;
  }
}
/* -------------- Reviews --------------*/
.reviews {
  padding: 100px 0;
}
.reviews__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(366px, 1fr));
  gap: 50px;
}
.reviews__card {
  border: 1px solid #dedede;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  text-align: center;
  font-weight: 500;
  font-size: 16px;
  line-height: 187%;
  letter-spacing: 0.01em;
}
.reviews__card:hover {
  box-shadow: 0 3px 2px 0 rgba(0, 0, 0, 0.02), 0 7px 5px 0 rgba(0, 0, 0, 0.03),
    0 13px 10px 0 rgba(0, 0, 0, 0.04), 0 22px 18px 0 rgba(0, 0, 0, 0.04),
    0 42px 33px 0 rgba(0, 0, 0, 0.05), 0 100px 80px 0 rgba(0, 0, 0, 0.07);
}
.reviews__card-img {
  margin-bottom: 30px;
  border-radius: 100%;
  border: 1px solid #bdbdbd;
}
.reviews__card-text {
  display: grid;
  gap: 5px;
  color: #5e6282;
  flex-grow: 1;
}
.reviews__card-name {
  margin: 25px 0 15px;
  color: #23a6f0;
}
.reviews__card-status {
  color: #181e4b;
}
@media (max-width: 1200px) {
  .reviews {
    padding: 50px 0;
  }
}
@media (max-width: 991.98px) {
  .reviews {
    padding: 40px 0;
  }
}
@media (max-width: 560px) {
  .reviews {
    padding: 30px 0;
  }
  .reviews__cards {
    grid-template-columns: auto;
    gap: 30px;
  }
  .reviews__card {
    padding: 20px;
  }
  .reviews__card-img {
    margin-bottom: 15px;
  }
  .reviews__card-name {
    margin: 15px 0 10px;
  }
}
/* ------------ */
.location {
  padding: 100px 0;
}
.location__img {
  box-shadow: 0 30px 60px 0 rgba(71, 74, 87, 0.25);
}
@media (max-width: 1200px) {
  .location {
    padding: 70px 0;
  }
}
@media (max-width: 991.98px) {
  .location {
    padding: 50px 0;
  }
}
@media (max-width: 560px) {
  .location {
    padding: 30px 0;
  }
}
/* ------------ FOOTER -------------*/
.footer__top {
  padding: 100px 0;
}
.footer__top-content {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: wrap;
  gap: 40px;
}
.top-content__item {
  text-align: center;
  display: grid;
  gap: 50px;
  align-content: space-between;
  color: #000;
}
.top-content__item-title {
  font-weight: 700;
  font-size: 24px;
}
.top-content__item-text {
  font-weight: 500;
  font-size: 20px;
}
.footer-logo a {
  font-weight: 900;
  font-size: 36px;
  color: #000;
}
.footer-socials {
  display: flex;
  justify-content: space-between;
}
.footer__socials-link img {
  transition: transform 0.5s ease;
}
.footer__socials-link:hover.footer__socials-link img {
  transform: scale(1.1);
}
.footer__copy {
  background-color: #4475f2;
}
.footer__copy-text {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 50px 0;
  color: #fff;
}
@media (max-width: 1200px) {
  .footer__top {
    padding: 70px 0;
  }
}
@media (max-width: 991.98px) {
  .footer__top {
    padding: 50px 0;
  }
}
@media (max-width: 560px) {
  .footer__top {
    padding: 30px 0;
  }
  .top-content__item {
    gap: 30px;
  }
  .footer__copy-text {
    padding: 30px 0;
  }
}
