@import url("fonts.css");
@import url("reset.css");

body {
  font-family: "Poppins", sans-serif;
  font-weight: 300;
  color: #9c9c9c;
  background-color: #0d0d11;
}

.wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  overflow: clip;
}

[class*="__container"] {
  max-width: 1310px;
  margin: 0 auto;
  padding: 0 15px;
}

.page {
  flex: 1 1 auto;
}

.page__start {
  margin-bottom: 100px;
}

@media (max-width: 991.98) {
  .page__start {
    margin-bottom: 50px;
  }
}

.button {
  display: inline-block;
  text-align: center;
  padding: 16px 30px;
  background-color: #3d96f4;
  color: #fff;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  line-height: 1.43;
  transition: background-color 0.3s linear;
}

@media (max-width: 991.98px) {
  .button {
    padding: 14px 20px;
  }
}

.button:hover {
  background-color: #145caa;
}

.button_dark {
  background-color: rgba(129, 129, 139, 0.2);
}

.button_dark:hover {
  background-color: rgba(129, 129, 139, 0.5);
}

.header-main__label {
  border: 1px solid rgba(129, 129, 139, 0.2);
  border-radius: 12px;
  padding: 11px 19px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  cursor: pointer;
  color: #9c9c9c;
  transition: border 0.3s linear;
}
.header-main__label:hover {
  border: 1px solid rgba(129, 129, 139, 0.6);
}

.header-main__label:not(:last-child) {
  margin-bottom: 19px;
}

.header-main__title {
  font-weight: 500;
  font-size: 51px;
  line-height: 1.2;
  color: #fff;
  position: relative;
}

.header-main__title:not(:last-child) {
  margin-bottom: 28px;
}

.header-main__text {
  font-size: 18px;
  line-height: 1.5;
  color: #9c9c9c;
}

.header-main__text:not(:last-child) {
  margin-bottom: 33px;
}

.text {
  color: #81818b;
  line-height: 1.5;
}

.header-main__body {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.header-main__body .header-main__text {
  margin-bottom: 0;
}
.header-main__body .header-main__actions {
  align-self: flex-end;
  flex: 0 0 auto;
}

.testimonials__body .header-main__title {
  max-width: none;
}
.testimonials__body .header-main__text {
  max-width: 740px;
}

.header-main__actions {
  display: flex;
  column-gap: 32px;
  row-gap: 15px;
}

.header-main__list li {
  position: relative;
  min-height: 32px;
  padding-left: 40px;
  color: #9c9c9c;
  padding-top: 4px;
  line-height: 1.5;
}
.header-main__list li:not(:last-child) {
  margin-bottom: 16px;
}
.header-main__list li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  background: url("../img/why/li.svg") center no-repeat;
  background-color: rgba(129, 129, 139, 0.1);
}

@media (max-width: 991.98px) {
  .header-main__title {
    font-size: 44px;
  }
}

@media (min-width: 768px) {
  .header-main__title {
    max-width: 520px;
  }
  .header-main__text {
    max-width: 500px;
  }
}

@media (max-width: 767.98px) {
  .header-main__title {
    font-size: 32px;
  }
  .header-main__title:not(:last-child) {
    margin-bottom: 15px;
  }
  .header-main__text:not(:last-child) {
    margin-bottom: 15px;
  }
  .header-main__body {
    flex-direction: column;
    gap: 0;
  }
  .header-main__body .header-main__actions {
    align-self: flex-start;
  }
}

@media (max-width: 479.98px) {
  .header-main__actions {
    flex-direction: column;
  }
}

/* Header */
.header {
  position: fixed;
  width: 100%;
  z-index: 50;
  top: 0;
  left: 0;
  background-color: rgba(13, 13, 17, 0.7);
}
.header__container {
  display: flex;
  align-items: center;
  gap: 35px;
  min-height: 116px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.header__menu {
  flex: 1 1 auto;
}

.menu__list {
  display: flex;
  flex-wrap: wrap;
  column-gap: 35px;
  row-gap: 3px;
  justify-content: flex-end;
}

.menu__link {
  display: block;
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}
.menu__link:hover {
  text-decoration: underline;
}
.cart-header {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #fff;
}
.cart-header:hover .cart-header__text {
  text-decoration: underline;
}
.cart-header__text {
  font-size: 18px;
  line-height: 1.55;
}
.cart-header__quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 14px;
  background-color: rgba(129, 129, 139, 0.3);
}
.header__button {
  flex: 0 0 auto;
}

.icon-menu {
  display: none;
}

.header__logo,
.header__cart,
.header__button {
  position: relative;
  z-index: 5;
}

@media (max-width: 991.98px) {
  .header__container,
  .menu__list {
    column-gap: 25px;
  }
  .header__container {
    min-height: 90px;
  }
}

@media (max-width: 767.98px) {
  .header__container,
  .menu__list {
    column-gap: 15px;
  }
  .icon-menu {
    display: block;
    flex: 0 0 30px;
    height: 18px;
    position: relative;
    z-index: 5;
  }
  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    right: 0;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s linear;
  }
  .icon-menu::before {
    top: 0;
  }
  .icon-menu::after {
    bottom: 0;
  }
  .icon-menu span {
    top: calc(50% - 1px);
  }
  .menu-open .icon-menu span {
    width: 0;
  }
  .menu-open .icon-menu::before {
    top: calc(50% - 1px);
    transform: rotate(-45deg);
  }
  .menu-open .icon-menu::after {
    bottom: calc(50% - 1px);
    transform: rotate(45deg);
  }
  .menu__body {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #000;
    left: -100%;
    top: 0;
    padding: 100px 15px 30px 15px;
    overflow: auto;
    transition: left 0.3s linear;
  }
  .menu__body::before {
    content: "";
    width: 100%;
    position: fixed;
    top: 0;
    left: -100%;
    height: 70px;
    background-color: #000;
    z-index: 2;
  }
  .menu__list {
    row-gap: 10px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
  .menu__link {
    font-size: 32px;
  }
  .header__container {
    min-height: 70px;
  }
}

.menu-open .menu__body,
.menu-open .menu__body::before {
  left: 0;
}

@media (max-width: 560px) {
  .header__logo {
    width: 32px;
    flex: 0 0 32px;
    overflow: hidden;
  }
  .cart-header__text {
    display: none;
  }
}

/* Page Main */
.main {
  padding-top: 160px;
  padding-bottom: 100px;
}
.main__container {
  display: flex;
  gap: 32px;
}
.main__content {
  flex: 0 1 50%;
  align-self: center;
}

.main__header {
  position: relative;
}

.main__header::before {
  content: "";
  background: url("../img/main/decor.svg");
  width: 122px;
  height: 122px;
  position: absolute;
  top: -20px;
  left: -34px;
}
.main__text {
  max-width: 500px;
  color: #9c9c9c;
}
.main__images {
  flex: 0 1 50%;
}
.images-main {
  display: flex;
  gap: 9.615385%; /* 60/624 */
  justify-content: center;
}
.images-main__column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.images-main__item img {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .main {
    padding-top: 120px;
    padding-bottom: 60px;
  }
}

@media (max-width: 767.98px) {
  .main {
    padding-top: 100px;
    padding-bottom: 30px;
  }
  .main__container {
    flex-direction: column;
  }
  .main__content {
    align-items: stretch;
  }
}
/* ============================================ */
/* Clients */
.clients {
  padding-top: 92px;
  padding-bottom: 90px;
}
.clients__title {
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 24px;
}
.clients__items {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-around;
}
.clients__item img {
  min-width: 100%;
}

@media (max-width: 991.98px) {
  .clients {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .clients__title {
    margin-bottom: 18px;
  }
}

@media (max-width: 767.98px) {
  .clients {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .clients__title {
    margin-bottom: 10px;
  }
}
/* =================================== */
/* Services */
.services {
  padding-top: 70px;
  padding-bottom: 100px;
}
.services__container {
  display: flex;
  gap: 32px;
}
.services__content {
  flex: 0 1 50%;
  align-self: center;
}

.services__items {
  flex: 0 1 50%;
  display: flex;
  gap: 32px;
  justify-content: center;
}

.services__column:first-child {
  padding-top: 48px;
}

.services__item:not(:last-child) {
  margin-bottom: 32px;
}
.item-service {
  display: block;
  border-radius: 30px;
  background-color: rgba(129, 129, 139, 0.1);
  padding: 55px 25px;
}

.item-service__icon:not(:last-child) {
  margin-bottom: 16px;
}
.item-service__title {
  font-weight: 400;
  font-size: 19px;
  line-height: 1.42;
  color: #fff;
}
.item-service__title:not(:last-child) {
  margin-bottom: 10px;
}

@media (max-width: 1100px) {
  .services__container {
    flex-direction: column;
  }
  .services__header .header-main__title,
  .services__header .header-main__text {
    max-width: none;
  }
}

@media (max-width: 991.98px) {
  .services {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (max-width: 767.98px) {
  .services {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

@media (max-width: 620px) {
  .services__items {
    flex-direction: column;
  }
  .services__column:first-child {
    padding-top: 0;
  }
}
/* ======================================== */
/* Why */
.why {
  padding-top: 100px;
  padding-bottom: 100px;
}
.why__container {
  display: flex;
  column-gap: 64px;
  row-gap: 32px;
}
.why__images {
  flex: 0 1 50%;
}
.images-why {
  display: flex;
  position: relative;
  align-self: flex-end;
}
.images-why__item {
  overflow: hidden;
}
.images-why__item img {
  max-width: 100%;
}

.images-why__item_2 {
  align-self: flex-end;
}
.why__content {
  flex: 0 1 50%;
  align-self: center;
}

.images-why::before {
  content: "";
  background: url("../img/why/decor.svg");
  width: 122px;
  height: 122px;
  position: absolute;
  bottom: 15px;
  left: -25px;
  z-index: -1;
}

@media (max-width: 991.98px) {
  .why {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}

@media (max-width: 767.98px) {
  .why {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .why__container {
    flex-direction: column-reverse;
  }
}

/* ======================================== */
/* Advantages */
.advantages__container {
  display: flex;
  row-gap: 32px;
}
.advantages__items {
  flex: 1 1 auto;
  padding-right: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 32px;
}
.advantages__item {
  padding: 40px;
  border-radius: 30px;
  background-color: rgba(129, 129, 139, 0.1);
}
.advantages__value {
  font-weight: 500;
  font-size: 51px;
  line-height: 1.2;
  color: #fff;
}
.advantages__value:not(:last-child) {
  margin-bottom: 32px;
}
.advantages__text {
  font-size: 18px;
  line-height: 1.5;
}
.advantages__image {
  align-self: flex-end;
  flex: 0 0 38%;
}
.advantages__image img {
  max-width: 100%;
}

@media (max-width: 991.98px) {
  .advantages {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .advantages__items {
    padding-right: 0;
  }
  .advantages__container {
    flex-direction: column;
  }
  .advantages__image {
    align-self: center;
  }
}

@media (max-width: 767.98px) {
  .advantages {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
@media (max-width: 650px) {
  .advantages__items {
    grid-template-columns: auto;
  }
}

/* ========================================= */
/* Testimonials */
.testimonials {
  padding-top: 100px;
  padding-bottom: 100px;
}
.testimonials__header {
  margin-bottom: 64px;
}
.testimonials__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.item-testimonial {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 64px 40px;
  border-radius: 30px;
  background-color: rgba(129, 129, 139, 0.1);
}
.user-testimonial {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-testimonial__avatar {
  flex: 0 0 68px;
}
.user-testimonial__avatar img {
  max-width: 100%;
}
.user-testimonial__title {
  font-size: 16px;
  line-height: 1.5;
  color: #fff;
}
.user-testimonial__title:not(:last-child) {
  margin-bottom: 7px;
}
.user-testimonial__company {
  font-size: 14px;
  line-height: 1.6;
}
.item-testimonial__title {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: #fff;
}
.item-testimonial__text {
  font-size: 16px;
  flex: 1 1 auto;
  line-height: 1.5;
}

@media (max-width: 991.98px) {
  .testimonials {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  .testimonials__header {
    margin-bottom: 40px;
  }
}

@media (max-width: 767.98px) {
  .testimonials {
    padding-top: 30px;
    padding-bottom: 30px;
  }
  .item-testimonial {
    padding: 30px 15px;
  }
}

@media (max-width: 1100px) {
  .testimonials__items {
    grid-template-columns: auto;
  }
}

/* ================================================ */
/* Blog */
.blog {
  padding-top: 100px;
  padding-bottom: 200px;
}
.blog__header {
  margin-bottom: 64px;
}
.blog-title {
  max-width: 400px;
}
.blog__items {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(3, 1fr);
}

.item-blog {
  background-color: rgba(129, 129, 139, 0.1);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.item-blog__header {
  position: relative;
}
.item-blog__category {
  position: absolute;
  bottom: 0;
  left: 0;
  border-radius: 0 10px 0 0;
  background-color: rgba(129, 129, 139, 0.5);
  font-size: 14px;
  line-height: 1.6;
  color: #fff;
  padding: 9px 10px;
}
.item-blog__image {
  display: block;
  position: relative;
  padding-bottom: 49.238579%; /* 194/394 */
}
.item-blog__image img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: cover;
}
.item-blog__body {
  padding: 36px 26px;
}
.item-blog__date {
  line-height: 1.5;
  color: rgba(129, 129, 139, 0.9);
}
.item-blog__date:not(:last-child) {
  margin-bottom: 20px;
}
.item-blog__title {
  font-weight: 400;
  font-size: 19px;
  line-height: 1.4;
  color: #fff;
}
.item-blog__title:not(:last-child) {
  margin-bottom: 30px;
}
.item-blog__link-title:hover {
  text-decoration: underline;
}
.item-blog__text {
  line-height: 1.5;
}
.item-blog__text:not(:last-child) {
  margin-bottom: 21px;
}
.item-blog__link {
  font-size: 14px;
  line-height: 1.6;
  color: #3d96f4;
}
.item-blog__link:hover {
  text-decoration: underline;
}

@media (max-width: 1100px) {
  .blog__items {
    gap: 20px;
  }
  .item-blog__body {
    padding: 25px 15px;
  }
}

@media (max-width: 991.98px) {
  .blog {
    padding-top: 50px;
    padding-bottom: 100px;
  }
  .blog__header {
    margin-bottom: 44px;
  }
}

@media (max-width: 767.98px) {
  .blog {
    padding-top: 30px;
    padding-bottom: 50px;
  }
  .blog__header {
    margin-bottom: 24px;
  }
  .blog__items {
    grid-template-columns: auto;
  }
}

/* =============================================== */
/* Start */
.start__body {
  display: flex;
  align-items: center;
  border-radius: 30px;
  padding: 52px 40px;
  background: rgba(129, 129, 139, 0.1);
}
.start__column {
  flex: 0 1 50%;
  text-align: center;
}
.start__title {
  font-weight: 400;
  font-size: 32px;
  line-height: 1.4;
  color: #fff;
}

.start__title:not(:last-child) {
  margin-bottom: 16px;
}
.start__text {
  display: inline-block;
  max-width: 310px;
  line-height: 1.5;
  text-align: center;
}
.start__actions {
  display: flex;
  justify-content: center;
  column-gap: 32px;
  row-gap: 20px;
}

@media (max-width: 991.98px) {
  .start__body {
    flex-direction: column;
    align-items: stretch;
    row-gap: 30px;
  }
}
@media (max-width: 767.98px) {
  .start__title {
    font-size: 24px;
  }
}
@media (max-width: 479.98px) {
  .start__actions {
    flex-direction: column;
  }
}

/* ======================================================= */
/* Footer */
.footer__main {
  padding-top: 160px;
  padding-bottom: 160px;
}
@media (max-width: 991.98px) {
  .footer__main {
    padding-top: 80px;
    padding-bottom: 80px;
  }
}
@media (max-width: 767.98px) {
  .footer__main {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
.main-footer__container {
  display: grid;
  gap: 64px;
  grid-template-columns: minmax(auto, 378px) auto auto minmax(auto, 378px);
}

@media (max-width: 1100px) {
  .main-footer__container {
    gap: 45px;
    grid-template-columns: minmax(auto, 378px) auto auto;
  }
  .main-footer__column:nth-child(1) {
    grid-column: span 3;
  }
}
@media (max-width: 767.98px) {
  .main-footer__container {
    gap: 35px;
    grid-template-columns: auto auto;
  }
  .main-footer__column:nth-child(1) {
    grid-column: span 2;
  }
  .main-footer__column:nth-child(4) {
    grid-column: span 2;
  }
}

.main-footer__column {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.main-footer__text {
  line-height: 1.5;
}
.social {
  display: flex;
  gap: 16px;
}
.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  height: 36px;
  border: 1px solid rgba(129, 129, 139, 0.9);
  border-radius: 50%;
  transition: border 0.3s linear;
}
.social__link:hover {
  border: 1px solid rgba(255, 255, 255, 1);
}
.main-footer__label {
  font-weight: 500;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 0.05em;
  color: #fff;
}
.menu-footer__list {
  display: grid;
  gap: 24px;
}

.menu-footer__link {
  line-height: 1.4;
  transition: color 0.3s linear;
}
.menu-footer__link:hover {
  color: #fff;
}
.subscribe {
  display: flex;
  gap: 16px;
}
@media (max-width: 479.98px) {
  .subscribe {
    flex-direction: column;
  }
}
.subscribe__input {
  width: 100%;
  border: 1px solid rgba(129, 129, 139, 0.3);
  border-radius: 50px;
  padding: 14px 30px;
  color: #fff;
  background-color: transparent;
  outline: none;
  transition: border 0.3s linear;
}
.subscribe__input::placeholder {
  color: #999;
}
.subscribe__input:focus {
  border: 1px solid rgba(129, 129, 139, 1);
}

.bottom-footer {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(129, 129, 139, 0.2);
}
.bottom-footer__copy {
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
  color: #9c9c9c;
  padding-top: 46px;
  padding-bottom: 46px;
}

@media (max-width: 767.98px) {
  .bottom-footer__copy {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}

/* Scroll up */
#scrollToTop {
  position: fixed;
  bottom: 35px;
  left: 75%;
  display: none;
  cursor: pointer;
  z-index: 15;
  opacity: 0.6;
}

@media (min-width: 768px) {
  #scrollToTop {
    left: 82%;
  }
}

@media (min-width: 800px) {
  #scrollToTop {
    left: 85%;
  }
}

.scroll-up {
  fill: #145caa;
  transition: fill 0.3s linear;
}

.scroll-up:hover {
  fill: #64aaf5;
}