html {
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: #151934;
  color: white;
  font-family: "Montserrat", sans-serif;
}

.logo {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  text-transform: uppercase;
}

.logo:hover {
  opacity: 0.7;
}

/* HEADER */

.header {
  padding: 32px 112px;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  background-color: rgba(21, 25, 52, 0.40);
  backdrop-filter: blur(4px);
}

.header__logo-img,
.footer__logo-img {
  width: 152px;
  height: auto;
}

.header._hide {
  top: -200px;
}

.header__nav {
  gap: 32px;
}

.header__nav-link {
  color: white;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  padding: 12px 0;
}

.header__nav-link:hover {
  opacity: 0.7;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
}

.burger:hover {
  opacity: 0.7;
}

.burger::before,
.burger > div,
.burger::after {
  content: "";
  position: absolute;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  height: 2px;
  top: 10%;
  transition: 0.28s ease-in-out;
}

.burger > div {
  top: 50%;
  transform: translate(-50%, -50%);
}

.burger::after {
  top: unset;
  bottom: 10%;
}

.burger._cross:hover {
  transform: rotate(180deg) scale(1.2);
}

.burger._cross > div {
  opacity: 0;
}

.burger._cross::before {
  transform: rotate(315deg) translateX(-50%);
  width: 105%;
  background-color: black;
  left: 35%;
}

.burger._cross::after {
  transform: rotate(45deg) translateX(-50%);
  width: 105%;
  background-color: black;
  left: 35%;
}

/*  FOOTER */

.footer {
  border-top: 1px solid rgba(249, 248, 113, 0.20);
  background: #0E1129;
  padding: 80px 0;
}

.footer__wrapper {
  position: relative;
}

.footer__socials-box {
  gap: 16px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.footer__socials-link:hover {
  opacity: 0.7;
}

.footer__credits-box h5 {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 134%; /* 24.12px */
  text-transform: uppercase;
  padding-bottom: 26px;
}

.footer__credits-box p,
.footer__credits-box a {
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 134%;
  text-align: center;
}

.footer__credits-box a {
  color: white;
  margin-left: 16px;
}

.footer__credits-box a:hover {
  opacity: 0.7;
}

.copyright {
  text-align: center;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 120%;
}

/* HERO SECTION */

.hero {
  padding-top: 200px;
  min-height: 100vh;
}

.hero__title {
  font-size: 82px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 40px;
}

.hero__gear-box {
  width: 600px;
  height: 600px;
  position: absolute;
  top: 0;
  right: 7%;
  margin-top: -40px;
  overflow: hidden;
}

.hero__gear-box > div {
  position: absolute;
  background-repeat: no-repeat;
}

.hero__gear-pic {
  width: 95%;
  height: 95%;
  background-image: url(/wp-content/themes/craftbrain/assets/img/gear-big.svg);
  background-size: contain;
  background-position: center center;
  animation: 24s gear-pic-rotating linear infinite;
}

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

.hero__gear-highlight {
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle, rgba(139, 6, 223, 0.1) 25%, rgba(0, 0, 0, 0) 40%);
  background-size: 40%;
  background-position: top left;
  animation: 10s gear-highlight-rotating linear infinite;
}

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

.hero__gear-shade {
  width: 100%;
  height: 100%;
  background-image: linear-gradient(0deg, #151934 0%, rgba(0, 0, 0, 0) 30%);
}

/* ABOUT SECTION */

.about__target-title,
.about__technologies-title {
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.about__technologies-title {
  margin-top: 80px;
  margin-bottom: 40px;
}

.about__target-subtitle {
  font-size: 24px;
  font-style: normal;
  font-weight: 300;
  line-height: 130%;
}

.about__technologies-box {
  gap: 32px;
}

.about__technologies-item img {
  width: 90px;
  height: 90px;
  margin-bottom: 16px;
}

.about__technologies-item {
  min-width: 200px;
  width: calc(25% - 24px);
  margin-bottom: 24px;
}

.about__technologies-item p {
  text-align: center;
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  width: 100%;
}

/* TARGET SECTION */

.target-box {
  padding: unset;
  position: relative;
}

.target-about {
  background-color: #151934;
  padding-top: 160px;
  padding-bottom: 160px;
  position: relative;
  z-index: 5;
  margin-bottom: 0;
}

.target-scroller {
  position: absolute;
  bottom: 0;
  height: 1px;
  opacity: 0;
}

.target-details {
  position: absolute;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%), #151934;
  top: 0;
  z-index: 0;
  padding-top: 80px;
  padding-bottom: 160px;
  opacity: 0;
  user-select: none;
}

.target-details._show {
  top: 100%;
  opacity: 1;
  user-select: unset;
}

.target-details .button {
  left: 50%;
  transform: translateX(-50%);
  margin-top: 40px;
  margin-bottom: unset;
}

.target-details__about-label {
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  margin-bottom: 80px;
}

.target-details__about-text {
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  margin-bottom: 80px;
}

.target-details__item {
  margin-top: 80px;
}

.target-details__item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.target-details__item-title {
  font-size: 36px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
  margin-top: 40px;
  margin-bottom: 24px;
}

.target-details__item-subtitle {
  color: var(--gray);
  font-size: 20px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
}

/* PARTNERS SECTION */
.owl-carousel .owl-item img {
  display: block;
  width: 100px;
}
.partners-slider__box {
  overflow: hidden;
  position: relative;
}

.partners-slider__box::before,
.partners-slider__box::after {
  content: "";
  position: absolute;
  height: 100%;
  width: 40%;
  top: 0;
  left: 0;
  background-image: linear-gradient(90deg, #151934 0%, rgba(0, 0, 0, 0) 80%);
  z-index: 5;
}

.partners-slider__box::after {
  left: unset;
  right: 0;
  transform: rotate(180deg);
}

/* CONTACT FORM SECTION */

.contact {
  padding-top: 160px;
  padding-bottom: 200px;
}

.contact__form-inner {
  gap: 32px;
  margin-top: -24px;
  margin-bottom: 64px;
}

.contact__form-column {
  width: 50%;
  gap: 34px;
}

.contact__form-item {
  gap: 12px;
  height: 100%;
  position: relative;
}

.wpcf7-form label {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  font-variant: all-small-caps;
  padding-left: 18px;
}

.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--brown-gray);
  background-color: transparent;
  color: white;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.wpcf7-form input::placeholder .wpcf7-form textarea::placeholder {
  color: var(--gray);
}

.wpcf7-form textarea {
  width: 100%;
  height: 100%;
  resize: none;
}

.wpcf7-form .wpcf7-submit {
  width: fit-content;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  color: black;
  padding: 24px 48px;
  background-color: var(--yellow);
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  text-transform: uppercase;
}

.wpcf7-form .wpcf7-submit:hover {
  background-color: white;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border: none;
  color: var(--red);
  padding: 0;
  margin: 2em 0 0;
}

.wpcf7 form.sent .wpcf7-response-output {
  border: none;
  margin: 2em 0 0;
  color: var(--yellow);
}

.wpcf7-form-control-wrap {
  position: relative;
  height: 100%;
}
/* START TEEEEEEEST */
.contact__form label {
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 100%;
  font-variant: all-small-caps;
  padding-left: 18px;
}

.contact__form input,
.contact__form textarea {
  padding: 12px 16px;
  border: 1px solid var(--brown-gray);
  background-color: transparent;
  color: white;
  font-size: 16px;
  font-style: normal;
  font-weight: 300;
  line-height: 120%;
  text-transform: uppercase;
  font-family: "Montserrat", sans-serif;
}

.contact__form input::placeholder .contact__form textarea::placeholder {
  color: var(--gray);
}

.contact__form textarea {
  height: 100%;
  resize: none;
}

.contact__error-text {
  position: absolute;
  padding-left: 18px;
  top: calc(100% + 8px);
  left: 0;

  color: var(--red);
  font-family: "Mulish", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 132%;

  opacity: 1;
}

.contact__error-text._show {
  opacity: 1;
}
/* END TEEEEEEEST */
.wpcf7-not-valid-tip {
  position: absolute;
  padding-left: 18px;
  top: calc(100% + 8px);
  left: 0;

  color: var(--red);
  font-family: "Mulish", sans-serif;
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 132%;
}
.wpcf7-not-valid {
  border: 1px solid var(--red) !important;
}

/* .wpcf7-response-output {
  display: none;
} */
.wpcf7 form .wpcf7-response-output {
  padding-left: 0;
}

#back-to-hero {
  display: inline-block;
  visibility: hidden;
  opacity: 0;
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 88px;
  height: 88px;
  background-image: url(/wp-content/themes/craftbrain/assets/img/back-to-main__arrow.svg);
  background-repeat: no-repeat;
  background-position: center center;
  overflow: hidden;
  transition:
    opacity 0.24s,
    visibility 0.24s 0s;
}

#back-to-hero._show {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.24s,
    visibility 0s;
}

#back-to-hero img {
  width: 100%;
  height: 100%;
  animation: 10s back-to-hero-rotating linear infinite paused;
}

#back-to-hero:hover img {
  animation-play-state: running;
}

@keyframes back-to-hero-rotating {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(359deg);
  }
}

@media screen and (max-width: 1800px) {
  .header {
    padding: 24px 0;
  }

  .header__nav-link {
    font-size: 16px;
  }
}

@media screen and (max-width: 1511px) {
  .hero__title {
    font-size: 76px;
  }
  .hero__gear-box {
    width: 500px;
    height: 500px;
    /* margin-top: -100px; */
  }
  .about__target-title,
  .about__technologies-title {
    font-size: 30px;
  }
  .about__target-subtitle {
    font-size: 22px;
  }
  .about__technologies-item {
    width: calc(33.3% - 22px);
  }
  .about__technologies-item img {
    width: 82px;
    height: 82px;
  }
  .target-details__item img {
    height: 240px;
  }
}

@media screen and (max-width: 1480px) {
  .header__logo._hide {
    display: none;
  }

  .hero {
    min-height: unset;
    padding-top: 320px;
    padding-bottom: 160px;
  }

  .header._burgered {
    background-color: var(--yellow);
  }

  .header__logo-img {
    width: 140px;
    height: auto;
  }

  .header__nav {
    position: fixed;
    left: 100%;
    width: 100%;
    top: 88px;
    background-color: var(--yellow);
    flex-direction: column;
    align-items: flex-start;
    padding: 60px 48px;
    padding-top: 0;
    gap: 16px;
    max-height: calc(100vh - 164px);
    overflow: auto;
  }

  .header__nav .button,
  .header__nav-link {
    color: black;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    text-transform: uppercase;
    padding: 12px 6px;
  }

  .header__nav .button:hover {
    background-color: transparent;
    opacity: 0.7;
  }

  .header__nav._show {
    left: 0;
  }

  .burger {
    display: block;
  }
}

@media screen and (max-width: 1199px) {
  .hero__title {
    font-size: 64px;
  }
  .hero__gear-box {
    width: 420px;
    height: 420px;
    margin-top: -50px;
    right: 3%;
  }
  .about__target-title,
  .about__technologies-title {
    font-size: 28px;
    margin-bottom: 20px;
  }

  .about__technologies-title {
    margin-top: 48px;
    margin-bottom: 40px;
  }
  .about__target-subtitle {
    font-size: 22px;
  }
  .about__technologies-item {
    width: calc(33.3% - 22px);
  }
  .about__technologies-item img {
    width: 82px;
    height: 82px;
  }
  .target-details__item img {
    height: 280px;
  }
  section {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .target-about {
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .target-details {
    padding-top: 60px;
    padding-bottom: 80px;
  }
  .about__technologies-item {
    margin-bottom: 16px;
  }
  .about__technologies-item p {
    font-size: 18px;
  }
  .target-details__item-title {
    font-size: 30px;
  }
  .target-details__about-text {
    margin-bottom: 0;
  }
  .contact {
    padding-top: 80px;
    padding-bottom: 120px;
  }
  .contact__form-inner {
    margin-top: 0;
    flex-direction: column;
  }
  .contact__form-column {
    width: 100%;
  }
  .contact__form textarea {
    height: 140px;
  }
  .footer__wrapper {
    flex-direction: column;
    gap: 40px;
  }
  .footer__socials-box {
    position: static;
    transform: unset;
  }
  .copyright {
    margin-top: 40px;
  }
  .footer__credits-box h5 {
    padding-bottom: 24px;
  }
  .partners-slider__box .ms-image {
    max-width: 80px !important;
  }
  .w-100 {
    width: 100%;
    margin-left: 0;
  }
}

@media screen and (max-width: 767px) {
  .hero__gear-box {
    margin-top: -120px;
    width: 280px;
    height: 280px;
    right: 0;
  }
  .hero__title {
    font-size: 36px;
  }
  .about__target-title,
  .about__technologies-title {
    font-size: 24px;
    margin-top: 48px;
  }
  .about__target-subtitle {
    font-size: 18px;
  }
  .about__technologies-item {
    min-width: unset;
    width: calc(50% - 12px);
  }
  .about__technologies-item img {
    width: 60px;
    height: 60px;
  }
  .about__technologies-box {
    gap: 24px;
  }
  .about__technologies-item p {
    font-size: 14px;
  }
  .target-details__about-label {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .target-details__about-text {
    font-size: 18px;
    margin-bottom: 40px;
  }
  .target-details__item img {
    height: 200px;
  }
  .target-details__item-title {
    margin-top: 32px;
    font-size: 24px;
  }
  .target-details__item-subtitle {
    font-size: 18px;
  }
  .target-details__item {
    margin-top: 32px;
  }
  .contact__form label {
    font-size: 10px;
  }
  .burger {
    width: 30px;
    height: 30px;
  }
  .header__nav .button,
  .header__nav-link {
    font-size: 18px;
  }
  .header__nav {
    top: 78px;
  }
  .wpcf7-form .wpcf7-submit {
    width: 100%;
  }
}
