/* #region HEADER */
.header__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 10px;
}

.header__menu {
  display: flex;
  position: relative;
}

.logo {
  position: relative;
  display: inline-block;
  border-radius: 8px;
  font-size: 24px;
  font-weight: var(--fw-700);

  &::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 10px;
    background: var(--gradient);
    opacity: 0.25;
    filter: blur(10px);
    z-index: 0;
    animation: pulse-shadow 3s ease-in-out infinite;
  }
}

@keyframes pulse-shadow {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.5;
  }
}

.ham {
  position: relative;
  z-index: 3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.6s;
  user-select: none;
  color: inherit;

  .top {
    stroke-dasharray: 40 139;
  }
  .bottom {
    stroke-dasharray: 40 180;
  }

  .line {
    fill: none;
    stroke: #fff;
    stroke-width: 5.5;
    stroke-linecap: round;
    transition:
      stroke-dashoffset 0.6s cubic-bezier(0.77, 0, 0.18, 1),
      stroke var(--transition);
  }

  &.active {
    transform: rotate(45deg);

    .top {
      stroke-dashoffset: -98px;
    }
    .bottom {
      stroke-dashoffset: -138px;
    }

    .line {
      stroke: var(--bg-main);
    }

    + nav .header__links {
      clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }
  }
}

.header__nav {
  position: relative;
}

.header__links {
  position: absolute;
  top: 15%;
  right: 0;
  background: var(--primary);
  padding: 45px 24px;
  border-radius: 8px;
  min-width: 180px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: end;
  gap: 8px;
  z-index: 2;

  clip-path: polygon(100% 0, 100% 0, 100% 0, 100% 0);
  transition: clip-path 0.6s cubic-bezier(0.77, 0, 0.18, 1);

  li a {
    color: var(--bg-main);
    padding: 0.5rem 0.75rem;
    font-size: clamp(33px, 2.865vw, 110px);
    font-weight: 500;
    line-height: 120%;
    transition: color var(--transition);

    &:hover {
      color: var(--blue);
    }
  }

  .link__active {
    color: var(--blue);
  }
}

/* #endregion Header */

/* #region HERO SECTION */
.hero {
  position: relative;
}

.hero__banner {
  padding-block: 90px 126px;
  overflow: hidden;
  background: url(../img/hero.webp) no-repeat;
  background-position: center center;
  background-size: 1280px auto;
}

.hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 594px;
}

.hero__info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 25px;
}

.hero__coords {
  font-size: var(--text-15);
  font-weight: var(--fw-500);
}

.hero__title {
  text-transform: lowercase;
}

.hero__subtitle {
  display: flex;
  max-width: 280px;
  padding: 12px;
  flex-direction: column;
  background: var(--gray-50);
  height: fit-content;
}

.hero__scroll {
  display: flex;
  align-items: center;
  width: fit-content;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.3s;

  svg {
    animation: bounce 1.5s infinite;
  }

  &:hover {
    background: var(--gray-50);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

.reviews {
  max-width: 360px;
  margin-inline: 0;
}
.reviews__wrapper {
  height: 166px;
}

.reviews__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}

.reviews__info {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-10);
  line-height: var(--lh-225);
}

.reviews__card {
  background: var(--primary);
  color: var(--black);
  padding: 24px 22px;
  height: 100%;
  font-size: var(--text-10);
  line-height: var(--lh-14);
  border: 2px solid;
  border-image: var(--gradient) 1;
  animation: animateGradient 6s linear infinite;
}

.reviews__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.reviews__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.reviews__name {
  font-weight: var(--fw-500);
  font-size: var(--text-15);
}
.reviews__time {
  color: var(--gray-50);
  line-height: var(--lh-225);
}

.reviews__stars {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
  align-items: center;
  color: var(--green);
}

.reviews__more {
  color: var(--gray-50);

  &:hover {
    text-decoration: underline;
  }
}

.hero__brand {
  display: flex;
  justify-content: center;
  align-items: center;

  img {
    max-height: 82px;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s;

    &:hover {
      opacity: 1;
    }
  }
}

@media (max-width: 1200px) {
  .hero__banner {
    padding-block: 70px 80px;
    background-position: 100% 70%;
    background-size: 500px auto;
  }

  .reviews {
    display: none;
  }
}

@media (max-width: 745px) {
  .hero__banner {
    padding-block: 80px 50px;
    background-position: center;
    background-size: 288px auto;
  }

  .hero__info {
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0;
    flex-direction: column;
  }
}

/* #endregion HERO SECTION */

/* #region ABOUT SECTION */
.about {
  position: relative;
  padding-block: 126px 150px;
  overflow: hidden;
}

.about__title {
  text-wrap: balance;
  margin-bottom: 30px;
}

.about__info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 30px;
}

.about__text {
  max-width: 635px;
}

@media (max-width: 1200px) {
  .about {
    padding-block: 120px;
  }
}

@media (max-width: 768px) {
  .about {
    padding-block: 84px 90px;
  }
  .about__highlight {
    line-height: var(--lh-225);
  }
  .about__text {
    max-width: 100%;
    text-wrap: balance;
  }
  .about__button {
    width: 180px;
  }
  .about__wave {
    margin-top: 30px;
    img {
      height: 200px;
    }
  }
}

/* #endregion ABOUT SECTION */

/* #region SERVICES CALCULATOR */
.services {
  padding-bottom: 150px;
}

.services__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.services__btn {
  max-width: 160px;
  margin-bottom: 80px;
}

.services__list {
  display: flex;
  gap: 100px;
  justify-content: space-between;
  flex-direction: column;
}

.service {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  &.service-reverse {
    flex-direction: row-reverse;
  }
}

.service__img {
  display: inline-block;
  border-radius: 8px;

  &.service__img-1 {
    animation: rotate-continuous 6s linear infinite;
  }
  &.service__img-2,
  &.service__img-3 {
    animation: pulse-service 3s ease-in-out infinite;
  }
}

@keyframes rotate-continuous {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse-service {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

.service__content {
  flex: 1 1 50%;
}
.service__image {
  flex: 1 1 50%;
}

.service__title {
  margin-bottom: 16px;
}

.service__desc {
  margin-bottom: 30px;
}

.service__btn {
  max-width: 160px;
}

@media (max-width: 1200px) {
  .services {
    padding-bottom: 120px;
  }
  .service__title-wrapper {
    line-height: var(--lh-12);
  }
  .services__btn {
    max-width: 160px;
    margin-bottom: 0;
  }
  .services__header {
    margin-bottom: 30px;
  }
  .service__title-wrapper {
    font-size: var(--text-33);
  }
}

@media (max-width: 768px) {
  .services {
    padding-bottom: 90px;
  }
  .service__title-wrapper {
    line-height: var(--lh-18);
  }
  .services__header {
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    flex-direction: column;
  }

  .services__list {
    display: flex;
    justify-content: center;
    gap: 40px;
  }

  .service {
    flex-direction: column;

    &.service-reverse {
      flex-direction: column;
    }
  }
  .service__title-wrapper {
    font-size: var(--text-27);

    span {
      padding-inline: 1px;
    }
  }
}

/* #endregion SERVICES CALCULATOR */

/* #region PORTFOLIO SECTION  */
.portfolio {
  padding-bottom: 150px;
}

.portfolio__title {
  margin-bottom: 40px;
}

.portfolio__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid;
  border-image-slice: 1;
  border-width: 1px;
  border-image-source: var(--gradient);
  animation: animateGradient 6s linear infinite;
}

.portfolio__btn {
  padding: 6px 12px;
  border: var(--border-white);
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  transition:
    background 0.4s,
    border 0.5s;

  &.active {
    border: var(--border-gray);
    background: var(--bg-grey);
  }

  &:hover {
    border: var(--border-gray);
    background: var(--bg-grey);
  }
}

.portfolio__content {
  display: flex;
}

.portfolio__info {
  padding-right: 24px;

  max-width: 300px;
}

.portfolio__info-title {
  margin-bottom: 20px;
  background: var(--gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.portfolio__cards {
  position: relative;
  width: 100%;
  border-left: 1px solid;
  border-image-slice: 1;
  border-width: 1px;
  border-image-source: var(--gradient);
  animation: animateGradient 6s linear infinite;
}

.portfolio__cards-inner {
  position: relative;
}

.portfolio__card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-left: 24px;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;

  &.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    z-index: 1;
  }
}

@media (max-width: 1200px) {
  .portfolio {
    padding-bottom: 120px;
  }
  .portfolio__content {
    flex-direction: column;
    gap: 30px;
  }
  .portfolio__info {
    padding-right: 0;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .portfolio {
    padding-bottom: 140px;
  }
  .portfolio__title {
    font-size: var(--text-27);
  }
}

/* #endregion PORTFOLIO SECTION */

/* #region PROCESS */
.process {
  padding-bottom: 150px;
}
.process__title {
  margin-bottom: 40px;
}

.process__wrapper {
  display: flex;
  gap: 24px;
}

.process__content-images {
  flex: 1;
  position: relative;
  min-height: clamp(250px, 29.167vw, 850px);

  .process__img {
    height: 100%;
    width: 100%;
    position: absolute;
    inset: 0;
    opacity: 0;
    object-position: center;
    transform: scale(0.95);
    transition:
      opacity 0.4s ease,
      transform 0.4s ease;

    &.active {
      opacity: 1;
      transform: scale(1);
    }
  }
}

.process__list {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  border-left: var(--border-orange);
  max-width: 384px;
}

.process__item {
  border-left: var(--border-orange);
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  margin-left: -1px;
  padding: clamp(8px, 0.938vw, 24px) 0 0 clamp(16px, 2.083vw, 80px);
  flex-shrink: 0;
  color: var(--gray-100);
  transition: color var(--transition);
  cursor: pointer;

  &.active {
    border-color: var(--blue);
    color: var(--primary);

    .process__text {
      max-height: 200px;
      opacity: 1;
      margin-top: 8px;
    }
  }

  &:hover {
    color: var(--primary);
  }
}

.process__btn {
  color: currentColor;
  font-family: var(--font-jost);
  font-size: var(--text-22);
  font-weight: var(--fw-500);
  line-height: var(--lh-12);
  cursor: pointer;
}

.process__text {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.4s ease;
}

@media (max-width: 1200px) {
  .process {
    padding-bottom: 120px;
  }
  .process__wrapper {
    flex-direction: column;
  }

  .process__list {
    max-width: 100%;
  }
}

@media (max-width: 744px) {
  .process {
    padding-bottom: 80px;
  }
  .process__title {
    font-size: var(--text-27);
  }
}

/* #endregion PROCESS */

/* #region FEEDBACK */
.feedback {
  padding-bottom: 150px;
}

.feedback__title {
  margin-bottom: 40px;
}

.feedback__wrapper {
  display: flex;
  align-items: center;
}

.feedback__map {
  flex: 1;
  position: relative;
  max-width: 584px;

  .feedback__pins {
    img {
      position: absolute;

      &:nth-child(1) {
        top: 0;
        left: 46%;
        transform: translateX(-50%);
      }
      &:nth-child(2) {
        top: 18%;
        right: 7%;
        transform: translateY(10%);
      }
      &:nth-child(3) {
        top: 30%;
        left: 20%;
        transform: translate(-10%, 20%);
      }
      &:nth-child(4) {
        bottom: 20%;
        right: 35%;
        transform: translate(20%, -5%);
      }
    }
  }
}

.feedback__content {
  flex: 0 0 auto;
  width: 50%;
}

.feedback__card {
  display: flex;
  flex-direction: column;
  padding: 19px;
  gap: 24px;
  background-color: var(--dark);
  border: 1px solid;
  border-image-source: var(--gradient);
  height: fit-content;
  max-width: 544px;
  border-image-slice: 1;
  height: stretch;
  animation: animateGradient 6s linear infinite;
}

.feedback__card-stars {
  display: flex;
  height: 60px;
  align-items: center;
  width: 62px;
  justify-content: center;

  img {
    position: absolute;
  }
}

.feedback__card-content {
  color: var(--gray-150);
}

.feedback__card-author {
  display: flex;
  align-items: center;
  gap: 12px;

  img {
    width: 60px;
    height: 60px;
  }
}
.feedback__card-author-name {
  p {
    color: var(--gray-100);
  }
}

@media (max-width: 1200px) {
  .feedback {
    padding-bottom: 120px;
  }
  .feedback__wrapper {
    flex-direction: column;
    gap: 50px;
  }
  .feedback__content {
    width: 100%;
  }
}

@media (max-width: 744px) {
  .feedback {
    padding-bottom: 80px;
  }
  .feedback__title {
    font-size: var(--text-27);
    margin-bottom: 30px;
  }
}

/* #endregion FEEDBACK */

/* #region CONTACT */
.contact {
  padding-bottom: 150px;
}

.contact__title {
  margin-bottom: 40px;
}

.contact__content {
  display: flex;
  align-items: center;
  gap: 26px;
}

.contact__info {
  flex: 1;
  background-color: var(--dark);
  padding: 24px;
}

.contact__subtitle {
  margin-bottom: 10px;
}

.contact__note {
  color: var(--gray-100);
  margin-bottom: 24px;
}

.contact__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 10px;
}

.contact__link {
  display: flex;
  align-items: flex-start;
  gap: 12px;

  &:hover {
    .contact__icon {
      background-color: var(--primary);
    }

    .contact__text {
      color: var(--orange);
    }
  }
}

.contact__icon {
  display: flex;
  align-items: center;
  padding: 9px;
  min-width: 36px;
  height: 36px;
  background-color: var(--orange);
  transition: background-color var(--transition);
}

.contact__label {
  font-family: var(--font-jost);
  font-size: var(--text-22);
  font-weight: var(--fw-500);
  line-height: var(--lh-12);
  margin-bottom: 10px;
}

.contact__text {
  color: var(--gray-100);
  transition: color var(--transition);
}

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact__social-list {
  display: flex;
  gap: 16px;

  a {
    color: var(--orange);
    transition: color var(--transition);

    &:hover {
      color: var(--blue);
    }
  }
}

@media (max-width: 1200px) {
  .contact {
    padding-bottom: 120px;
  }
  .contact__content {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 744px) {
  .contact {
    padding-bottom: 80px;
  }
  .contact__title {
    font-size: var(--text-27);
    margin-bottom: 30px;
  }
  .contact__subtitle {
    font-size: var(--text-22);
  }
  .contact__info {
    padding: 14px;
  }
}

/* #endregion CONTACT */

/* #region FOOTER */

.footer {
  background-color: var(--dark);
  padding-block: 48px 30px;
}
.footer__content {
  flex: 1;
}

.footer__top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 35px;
}

.footer__about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding-bottom: 36px;
  margin-bottom: 35px;
  border-bottom: 1px solid;
  border-image-slice: 1;
  border-image-source: var(--gradient);
  animation: animateGradient 6s linear infinite;
}

.footer__description {
  max-width: 410px;
  padding-right: 15px;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.footer__column {
  min-width: 164px;
  padding-inline: 15px;
}

.footer__title {
  margin-bottom: 24px;
}

.footer__item {
  margin-bottom: 10px;
}

.footer__link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  transition: color var(--transition);

  &:hover {
    color: var(--blue);
  }
}

.footer__newsletter {
  flex: 1;
  max-width: 528px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__subscribe {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;

  .gr-highlight {
    color: var(--dark);
  }
}

.footer__form {
  position: relative;
  display: flex;
  justify-content: center;
  padding-inline: 27px;
  width: 100%;
}

.footer__form-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-block: 8px;
  padding-inline: 16px 8px;
  max-width: 654px;
  border: 1px solid;
  border-image-slice: 1;
  border-image-source: var(--gradient);
  background: transparent;
  animation: animateGradient 6s linear infinite;
}

.footer__input {
  background: transparent;
  color: var(--gray-100);
  text-transform: uppercase;
  height: clamp(24px, 2.1vw, 72px);
  font-size: var(--text-13);
  padding: 0;
  border-radius: 0;
  border: none;
  outline: none;
  width: 100%;
}

.footer__button {
  max-width: 146px;
  background-color: var(--primary);
  color: var(--dark);
  transition:
    background-color var(--transition),
    color var(--transition);

  &:hover {
    background-color: var(--orange);
  }
}

.footer__socials {
  display: flex;
  gap: 10px;
}

.footer__social {
  display: inline-block;
  width: 32px;
  height: 32px;
  padding: 6px;
  background-color: var(--primary);
  color: var(--bg-main);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color var(--transition);

  &:hover {
    background-color: var(--orange);
  }
}

.footer__bottom {
  text-align: center;

  strong {
    color: var(--orange);
  }
}

@media (max-width: 1200px) {
  .footer__top {
    flex-direction: column;
    gap: 30px;
  }

  .footer__newsletter {
    max-width: 100%;
  }
}

@media (max-width: 744px) {
  .footer__about {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer__links {
    column-gap: 12px;
    row-gap: 20px;
  }
  .footer__column {
    padding-inline: 0;
  }
  .footer__subscribe {
    font-size: var(--text-27);

    .gr-highlight {
      font-size: var(--text-42);
    }
  }
  .footer__form {
    padding-inline: 0;
  }
  .footer__button {
    padding: 7px 9px;
    font-size: var(--text-13);
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 100;
}

body.modal-open .modal-overlay {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  width: 100%;
  max-width: 450px;
  position: absolute;
  top: 50%;
  left: 50%;

  transform: translate(-50%, -80%);
  opacity: 0;
  padding-inline: 16px;
  transition:
    transform 0.4s ease,
    opacity 0.4s ease;
}
body.modal-open .modal {
  transform: translate(-50%, -50%);
  opacity: 1;
}
