@import url("https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,700;1,900&family=Barlow+Condensed:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700;1,900&display=swap");

:root {
  --clr-main: #c8f025;
  --clr-accent: #f0a500;
  --clr-dark: #0a0f1c;
  --clr-dark2: #111827;
  --clr-txt: #0a0f1c;
  --clr-light: #fff;
  --clr-bg: #f8f9fa;
  --clr-gray: #f1f2f4;
  --clr-blush: #e8f5e9;
  --clr-line: #e0e0e0;
  --grad-hero: to right, rgba(10, 15, 28, 0.88) 0%,
    rgba(10, 15, 28, 0.88) 12%, #0a0f1c 91%, #0a0f1c 100%;
  --grad-btn: to left, #d4f540, #9ec200, #9ec200;
  --grad-btn-hov: to right, #d4f540, #9ec200, #9ec200;
  --f-body: "Barlow", sans-serif;
  --f-head: "Barlow Condensed", sans-serif;
  --sz-base: 1rem;
  --sz-xs: 0.875rem;
  --sz-sm: 0.938rem;
  --sz-md: 1.125rem;
  --sz-lg: 1.875rem;
  --sz-xl: 3.5rem;
  --sz-xxl: 4.75rem;
  --sp-xs: 15px;
  --sp-sm: 25px;
  --sp-md: 30px;
  --sp-lg: 45px;
  --sp-xl: 60px;
  --sp-xxl: 85px;
  --pad-btn: 32px 65px;
  --radius: 4px;
}

* {
  padding: 0;
  margin: 0;
}

.clearfix {
  clear: both;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  border: none;
  outline: none;
}

html {
  font-family: var(--f-body);
  background-color: var(--clr-bg);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-head);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  line-height: var(--sp-md);
}

.btn {
  display: inline-block;
  font-size: var(--sz-xs);
  color: var(--clr-dark);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2px;
}

.preloader {
  height: 100vh;
  background-color: var(--clr-dark);
  position: fixed;
  width: 100%;
  z-index: 99;

  .preloader__circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: transparent;
    position: absolute;
    top: calc(50% - 50px);
    left: calc(50% - 50px);
    border: 2px solid transparent;
    border-top-color: var(--clr-main);
    animation: spin 2s infinite ease;
  }

  .preloader__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--f-head);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--clr-light);
    letter-spacing: 8px;
    text-transform: uppercase;
    white-space: nowrap;

    span {
      color: var(--clr-main);
    }
  }
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  line-height: 52px;
  text-align: center;
  background-color: var(--clr-main);
  color: var(--clr-dark);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 2px 3px 20px 0 rgba(200, 240, 37, 0.4);

  i {
    font-size: 1.3rem;
    margin-left: 4px;
  }
}

.header {
  background-color: var(--clr-dark);

  .header__logo-link {
    float: left;
    margin: var(--sp-sm) 0 0 var(--sp-xxl);
    font-family: var(--f-head);
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--clr-light);
    letter-spacing: 4px;
    text-transform: uppercase;

    span {
      color: var(--clr-main);
    }
  }

  .header__nav {
    float: right;

    .header__nav-list {
      display: inline-block;

      .header__nav-item {
        display: inline-block;
        font-size: var(--sz-sm);
        margin: 0 var(--sp-sm);
        font-weight: 600;
        letter-spacing: 0.5px;

        .header__nav-link {
          color: rgba(255,255,255,0.8);
          transition: all 0.25s;
          text-transform: uppercase;

          &:hover {
            color: var(--clr-main);
          }
        }
      }
    }

    .header__nav-visit {
      background-color: var(--clr-main);
      margin-left: var(--sp-xl);
      padding: var(--pad-btn);
      color: var(--clr-dark);
      transition: background-color 0.3s;

      &:hover {
        background-color: #d4f540;
      }
    }
  }
}

.fixed-bar {
  position: fixed;
  width: 100%;
  z-index: 80;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
  animation: fadeInDown 300ms;
}

.gradient-btn {
  background-image: linear-gradient(var(--grad-btn));
  padding: var(--sp-sm) var(--sp-lg);
  margin-top: var(--sp-sm);
  letter-spacing: 2px;
  background-position: right;
  transition: all 0.5s;
  color: var(--clr-dark);

  &:hover {
    background-position: left;
  }
}

.hero {
  background: linear-gradient(var(--grad-hero)),
    url('https://images.unsplash.com/photo-1574629810360-7efbbe195018?w=1920&q=85&fit=crop&crop=center');
  height: 850px;
  background-size: cover;
  background-position: center;
  position: relative;

  .hero__content {
    position: absolute;
    top: 20%;
    left: 11%;
    color: var(--clr-light);
    width: 40%;
    overflow: hidden;

    .hero__content-icon {
      animation: spin 20s infinite linear;
      font-size: 2.5rem;
      color: var(--clr-main);
      display: inline-block;
    }

    .hero__content-heading {
      font-size: var(--sz-xxl);
      margin: var(--sp-sm) 0;
      transform: translateX(-100%);
      font-weight: 900;
      line-height: 1.05;
      font-style: italic;
      text-transform: uppercase;

      span {
        color: var(--clr-main);
        display: block;
      }
    }

    .hero__content-text {
      line-height: 30px;
      width: 80%;
      transform: translateX(-100%);
      font-weight: 400;
      opacity: 0.85;
    }

    .btn {
      transform: translateX(-100%);
    }
  }

  .hero__image-container {
    height: 750px;
    position: absolute;
    right: 0;
    bottom: 0;
    overflow: hidden;

    .hero__image {
      height: 100%;
      width: 660px;
      transform: translateX(100%);
      object-fit: cover;
      object-position: top center;
    }
  }
}

.offers {
  width: 80%;
  margin: 100px auto;

  .offers__item {
    width: 33%;
    display: inline-block;
    transform: translateY(600px);
    opacity: 0;

    .offers__image-container {
      margin: var(--sp-lg);
      overflow: hidden;

      .offers__image {
        transition: transform 0.7s;
        width: 100%;
        height: 300px;
        object-fit: cover;
        margin-bottom: -3px;
      }
    }

    .offers__content {
      padding: 0 var(--sp-lg);
      position: relative;

      .offers__number {
        transition: all 0.7s;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        display: inline-block;
        background-color: var(--clr-main);
        border: 1px solid var(--clr-main);
        color: var(--clr-dark);
        line-height: 35px;
        text-align: center;
        position: absolute;
        left: -20px;
        top: -15px;
        font-family: var(--f-head);
        font-weight: 900;
      }

      .offers__title {
        transition: color 0.5s;
        font-size: var(--sz-lg);
      }

      .offers__text {
        line-height: 30px;
        color: var(--clr-txt);
        margin-top: var(--sp-xs);
        font-weight: 400;
        font-size: 0.94rem;
      }
    }

    &:hover {
      .offers__image {
        transform: scale(1.2);
      }

      .offers__content {
        .offers__number {
          background-color: transparent;
          color: var(--clr-main);
          border-color: var(--clr-main);
        }

        .offers__title {
          color: var(--clr-main);
        }
      }
    }
  }
}

.about {
  width: 85%;
  margin: 100px auto;
  position: relative;
  height: 800px;

  .about__image-container {
    position: absolute;
    left: 0;
    z-index: 10;
    top: 15%;
    width: 660px;
    height: 570px;

    .about__image {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .about__content-container {
    position: absolute;
    right: 0;
    height: 100%;
    background-color: var(--clr-dark);
    width: 70%;

    .about__content {
      position: absolute;
      top: 25%;
      left: 37%;

      .about__title {
        font-size: var(--sz-xl);
        color: var(--clr-light);
        margin-bottom: var(--sp-md);
        font-weight: 900;
        line-height: 1.1;

        span {
          color: var(--clr-main);
        }
      }

      .about__text-lead {
        font-size: var(--sz-md);
        line-height: 32px;
        color: rgba(255,255,255,0.9);
        margin-bottom: var(--sp-xs);
        width: 80%;
        font-weight: 500;
      }

      .about__text-body {
        font-size: var(--sz-sm);
        line-height: 30px;
        width: 80%;
        color: rgba(255,255,255,0.65);
        font-weight: 400;
      }
    }
  }
}

.section__heading {
  width: 65%;
  margin: 100px auto;
  text-align: center;

  h2 {
    font-size: var(--sz-xl);
    margin-bottom: var(--sp-xs);
    font-weight: 900;
  }

  p {
    color: #555;
    font-weight: 400;
    font-size: var(--sz-md);
    text-transform: none;
    letter-spacing: 0;
    font-family: var(--f-body);
  }
}

.services {
  width: 85%;
  margin: 100px auto;

  .services__content {
    .services__item {
      transform: translateY(600px);
      opacity: 0;
      padding: 20px;
      display: inline-block;
      width: calc(24% - 40px);

      .services__icon {
        font-size: 2.4rem;
        color: var(--clr-main);
      }

      div {
        margin-bottom: var(--sp-sm);
      }

      h3 {
        margin-bottom: var(--sp-xs);
        font-size: 22px;
        font-weight: 800;
      }

      p {
        font-size: var(--sz-xs);
        font-weight: 400;
        line-height: 26px;
        text-transform: none;
        letter-spacing: 0;
        font-family: var(--f-body);
      }
    }
  }
}

.video {
  position: relative;

  img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    object-position: center 40%;
  }

  button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100px;
    height: 100px;
    line-height: 100px;
    color: var(--clr-dark);
    background-color: var(--clr-main);
    border-radius: 50%;
    font-size: 1.4rem;
    box-shadow: 0 0 0 70px rgba(200, 240, 37, 0.12);
    cursor: pointer;

    &::after {
      content: "";
      background-color: transparent;
      position: absolute;
      top: 50%;
      left: 50%;
      width: 99px;
      height: 99px;
      border-radius: 50%;
      z-index: 2;
      transform: translate(-50%, -50%);
      border: 1px solid var(--clr-main);
      animation: ring 2s ease infinite;
    }
  }
}

.testimonials {
  width: 900px;
  margin: 0 auto 100px;
  padding-bottom: 100px;
  border-bottom: 1px solid var(--clr-line);

  .testimonials__container {
    position: relative;
    width: 900px;
    overflow: hidden;
    border-radius: 12px;

    > div:first-of-type {
      display: flex;
      transition: transform 0.5s ease;

      .testimonials__card {
        min-width: 900px;
        position: relative;
        padding: var(--sp-xxl) var(--sp-lg) 0;
        margin: var(--sp-lg) 0 0;

        &::after {
          content: "\201C";
          font-family: var(--f-head);
          font-size: 10rem;
          color: var(--clr-gray);
          position: absolute;
          top: 0;
          left: 0;
          z-index: -1;
          line-height: 1;
          font-weight: 900;
        }

        .card__content {
          width: 90%;
          margin: 0 auto;
          line-height: 1.7;
          font-size: 19px;
          color: var(--clr-txt);
          font-weight: 400;
        }

        .card__user {
          width: fit-content;
          margin: var(--sp-lg) 0 0;

          .user-img {
            float: left;
            margin-top: 5px;

            img {
              width: 60px;
              height: 60px;
              border-radius: 50%;
              object-fit: cover;
              object-position: top;
              border: 3px solid var(--clr-main);
            }
          }

          .user-data {
            float: right;
            margin: var(--sp-lg) 0;

            h4 {
              font-size: 20px;
              font-weight: 800;
              margin-bottom: 8px;
              text-transform: uppercase;
            }

            span {
              color: #7a8080;
              font-size: var(--sz-sm);
              font-weight: 400;
              font-family: var(--f-body);
              text-transform: none;
              letter-spacing: 0;
            }
          }
        }
      }
    }

    .btns {
      width: fit-content;
      margin-bottom: 20px;
      position: absolute;
      bottom: 0;
      right: 0;

      button {
        cursor: pointer;
        background-color: transparent;
        padding: var(--sp-xs);
        font-size: var(--sz-md);
        color: var(--clr-main);
      }

      > span {
        font-size: var(--sz-md);

        span {
          display: inline-block;
          margin: 0 2px;

          &.active {
            color: var(--clr-dark);
          }
        }
      }
    }
  }
}

.contact {
  .contact__content {
    max-width: 1200px;
    margin: 100px auto;

    > div {
      display: inline-block;
      width: calc(50% - 40px);
      position: relative;

      img {
        width: 100%;
        height: 500px;
        object-fit: cover;
      }

      &:hover .overlay {
        opacity: 1;

        button {
          margin-top: 0;
        }
      }

      .overlay {
        opacity: 0;
        position: absolute;
        inset: 0;
        bottom: 3px;
        background-color: rgba(10, 15, 28, 0.55);
        transition: opacity 0.25s;

        button {
          background-color: transparent;
          font-size: 2rem;
          color: var(--clr-main);
          position: absolute;
          top: 50%;
          left: 50%;
          transform: translate(-50%, -50%);
          margin-top: -20px;
          transition: margin-top 0.25s;
          cursor: pointer;
        }
      }
    }

    .img__left {
      margin-right: 20px;
    }

    .img__right {
      margin-left: 20px;
    }
  }
}

.footer {
  background: linear-gradient(160deg, #07090f 0%, #0d1220 50%, #07090f 100%);
  user-select: none;
  position: relative;
  min-height: 650px;
  overflow: hidden;

  > div {
    display: inline-block;
    width: calc(50% - 100px);
  }

  .footer__left {
    margin-right: 50px;

    > div {
      position: absolute;
      bottom: -3px;
      left: 0;
      width: calc(50% - 100px);
      height: 100%;

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0.3;
        mix-blend-mode: luminosity;
      }
    }
  }

  .footer__right {
    margin-left: 50px;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 100px;

    a {
      color: rgba(255,255,255,0.8);

      &:hover {
        color: var(--clr-main);
        text-decoration: underline;
      }
    }

    .footer__right__content {
      width: 80%;
      margin: 0 auto;
      margin-bottom: 100px;

      .footer_right_l {
        padding: 0 40px;
        float: left;

        & > * {
          margin-bottom: var(--sp-lg);
        }

        .footer__logo-text {
          font-family: var(--f-head);
          font-size: 2rem;
          font-weight: 900;
          color: var(--clr-light);
          letter-spacing: 6px;
          text-transform: uppercase;
          display: block;

          span {
            color: var(--clr-main);
          }
        }

        p {
          font-size: var(--sz-md);
          font-weight: 400;
          line-height: 28px;
          text-transform: none;
          letter-spacing: 0;
          font-family: var(--f-body);
        }

        .footer__phones a {
          display: block;
          font-weight: 400;
          color: var(--clr-main);
          transition: all 0.25s;

          &:first-of-type {
            font-size: var(--sz-lg);
            margin-bottom: 20px;
            font-family: var(--f-head);
            font-weight: 700;
          }
        }

        .footer__social a {
          display: inline-block;
          width: 45px;
          height: 45px;
          line-height: 45px;
          margin-right: 10px;
          text-align: center;
          border-radius: 50%;
          background-color: rgba(200, 240, 37, 0.1);
          color: var(--clr-main);
          transition: all 0.25s;

          &:hover {
            background-color: var(--clr-main);
            color: var(--clr-dark);
            text-decoration: none;

            i {
              transform: rotateY(180deg);
            }
          }
        }
      }

      .footer_right_r {
        float: right;

        h3 {
          font-size: var(--sz-lg);
          color: var(--clr-main);
          margin-bottom: var(--sp-lg);
          font-weight: 800;
        }

        nav li {
          margin-bottom: var(--sp-md);

          a {
            transition: all 0.25s;
            font-weight: 400;
            font-family: var(--f-body);
            text-transform: none;
            letter-spacing: 0;
          }
        }
      }
    }

    > p {
      font-size: var(--sz-xs);
      padding-bottom: var(--sp-xs);
      text-align: center;
      font-weight: 400;
      font-family: var(--f-body);
      text-transform: none;
      letter-spacing: 0;

      span {
        color: var(--clr-main);
      }
    }
  }
}

@keyframes spin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes fadeInDown {
  from { transform: translateY(-80px); opacity: 0; }
  to { transform: translateY(0px); opacity: 1; }
}

@keyframes fadeInUp {
  from { transform: translateY(600px); opacity: 0; }
  to { transform: translateY(0px); opacity: 1; }
}

@keyframes ring {
  0% { width: 99px; height: 99px; opacity: 1; }
  80% { width: 160px; height: 160px; opacity: 1; }
  100% { opacity: 0; width: 160px; height: 160px; }
}

@keyframes fadeInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}