@import "variables.less";

/* fonts */
@font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-Light.ttf');
  font-weight: 200;
}
@font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-Light.ttf');
  font-weight: 300;
}
@font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-Regular.ttf');
}
@font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-Medium.ttf');
  font-weight: 500;
}
@font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-SemiBold.ttf');
  font-weight: 600
}
@font-face {
  font-family: Oswald;
  src: url('../fonts/Oswald-Bold.ttf');
  font-weight: bold
}

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

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

.grecaptcha-badge {
  z-index: 999;
}

.hiddenButton {
  display: none;
}

.thank-text {
  display: none;
  font-size: 18px;
  
  &.show {
    display: block;
  }
}

div, a, p, section, header, footer, td, li {
  font-family: Arial, sans-serif;
}

b, strong {
  font-weight: bold !important;
}
  
.showMobile {
  display: none !important;
}

.hideMobile {
  display: block !important;
}

.container {
  width: 1730px;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

body {
  background-color: @black-color;
  min-width: 1800px;
}

&:focus, &:focus-visible {
  border: none;
  outline: none
}

.mobile-header {
  display: none;
}

.middleBlock-thank {
  line-height: 65px;
}

input[type="text"], input[type="number"], input[type="tel"] {
  height: 65px;
  border-radius: 60px;
  padding: 0 25px;
  line-height: 65px;
  border: none;
  font-size: 18px;

  &:placeholder {
    color: @grey-input-color;
  }

  &:focus, &:focus-visible {
    border: none;
    outline: none
  }
}

input[type="button"] {
  height: 65px;
  border-radius: 60px;
  padding: 0 25px;
  line-height: 65px;
  border: none;
  font-size: 18px;
  background: @orange-color;  
  cursor: pointer;
  color: @white-color;
  transition: @defaultTransitionProps;
  width: 100%;
  
  &.black-button {
    background: @black-color !important;  
  
    &:hover {
      background: @orange-color !important;
      transition: @defaultTransitionProps;
    }
  }

  &:focus, &:focus-visible {
    border: none;
    outline: none;
  }
  
  &:hover {
    background: @black-color;
  	transition: @defaultTransitionProps;
  }
  
  &.loading {
  	transition: @defaultTransitionProps;
    color: transparent;
    font-size: 0;
    width: 65px;
    padding: 0;
    position: relative;
  }
}

.loading-box {
  position: relative;
    
  &.loading:after {
    content: " ";
    display: block;
    width: 45px;
    height: 45px;
    position: absolute;
    top: 10px;
    left: 10px;
    border-top: 3px solid @white-color;
    border-radius: 50%;
    -webkit-animation: rotate-center 1s linear infinite both;
    animation: rotate-center 1s linear infinite both;
  }
}

.checkbox-item {  
  font-size: 16px;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: row;
  
  p {
    display: inline;
    line-height: 18px;
  }
  
  input[type="checkbox"] ~ span {
    display: inline-flex;
    position: relative;
    min-width: 20px !important;
    width: 20px;
    height: 20px;
    margin-right: 15px;
    border-radius: 50%;
    background-color: #FFF;
    align-items: center;
    justify-content: center;
  }
  
  input[type="checkbox"]:checked ~ span:after {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: @orange-color;
    content: " ";
    font-size: 0;
  }
  
  a {
    color: @orange-color;
  }
  
  input[type="checkbox"] { 
    display: none;
  }
}

/* here styles for header and top navigation menu */

header {
  position: fixed;
  z-index: 10;
  transition: @defaultTransitionProps;
  width: 100%;
  background: transparent;
  top: 0;
  left: 0;

  &.dark {
    background: @black-color;
  }

  .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 30px 0;
    height: 45px;
    font-size: 18px;

    .hidden-in-header {
      display: none;
    }

    nav li {
      margin-right: 20px;
      
      a {
        color: @white-color;
  		transition: @defaultTransitionProps;
        
        &:hover {
          color: @orange-color;
  		  transition: @defaultTransitionProps;
        }
      }
      
      &.active  a {
        color: @orange-color;
      }

      &:last-child {
        margin-right: 0;
      }
    }

    a {
      color: #fff;

      &:hover {
        color: @orange-color;
      }
    }

    .header-phone-number {
      font-weight: bold;
      display: flex;
      flex-direction: row;
      align-items: center;
      font-size: 20px;

      img {
        margin-right: 15px;
      }
    }
  }
}

header .container > *, header ul {
  align-items: center;
  display: flex;
  flex-direction: row
}

.header-media-links a {
  display: block;
  margin-right: 15px;

  &:last-child {
    margin-right: 0;
  }
}

/* here footer styles */

footer {
  background: @black-color;
  padding: 45px 0;
  color: @white-color;
  font-size: 18px;

  a {
    color: @white-color;
  }
  
  .footer-logo-container {
    width: 340px;
    line-height: 20px;
  }

  .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .footer-menu {
    ul {
      display: flex;
      flex-direction: row;
      width: 730px;
      flex-wrap: wrap;

      li {
        margin-right: 30px;
        margin-bottom: 38px;
      }
      
      a {
        color: @white-color;
  		transition: @defaultTransitionProps;
        
        &:hover {
          color: @orange-color;
  		  transition: @defaultTransitionProps;
        }
      }

      &:after {
        display: block;
        content: "© Все права защищены"
      }
    }
    
    .download-payment-data {
      color: @orange-color !important;
  	  transition: @defaultTransitionProps;
      
      &:hover {
        color: @white-color !important;
  		transition: @defaultTransitionProps;
      }
    }
  }

  .footer-logo {
    margin-bottom: 30px;
  }

  .footer-media-links a {
    margin-right: 15px;

    &:last-child {
      margin-right: 0;
    }
  }

  .footer-phone-number {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-bottom: 20px;

    a {
      font-size: 20px;
    }

    img {
      margin-right: 15px;
    }
  }
}


/* section above footer with get order form */

.get-order-section {
  height: 780px;
  background-image: url("../images/rectangle16.png"), url("../images/rectangle17.png");
  background-repeat: no-repeat;
  background-size: cover;
  color: @white-color;
  
  .container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 780px;
  }

  .box-title {
    line-height: 200px;
    font-size: 135px;
    font-weight: bold;
    font-family: Oswald;
    position: relative;
    pointer-events: none;

    span {
      color: @orange-color;
      z-index: 1;
      position: relative;
    }

    &:after {
      content: "ОСТАВЬТЕ ЗАЯВКУ";
      position: absolute;
      display: block;
      top: 0;
      left: 0;
      transform: rotateX(180deg);
      transform-origin: bottom;
      line-height: 1.09em;
      opacity: .1;
    }
  }

  .form {
    display: flex;
    flex-direction: column;
    width: 695px;

    > * {
      margin-bottom: 30px;
    }
  }

  .form-title {
    font-size: 28px;
    margin: 28px 0 60px;
  }

  .content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;

    .steps {
      display: flex;
      flex-direction: row;
      flex-wrap: wrap;
      width: 900px;

      .step {
        display: flex;
        flex-direction: row;
        width: 405px;
        margin-bottom: 60px;
        margin-right: 30px;

        .step-content {
          margin-left: 30px;

          .step-title {
            margin-bottom: 15px;
            font-size: 30px;
            font-weight: bold;
            padding-top: 6px;
          }

          .step-description {
            font-size: 20px;
            line-height: 23px;
          }
        }

        a {
          color: @white-color;
        }

        span {
          font-weight: bold;
        }
      }
    }
  }
}

.main-page-header {
  .container {
    position: relative;    
    padding: 235px 0 0; 
  
    h1 {
      font-family: Oswald;
      font-size: 195px;
      line-height: 215px;
      margin-bottom: 25px;
      color: @white-color;
      font-weight: bold;

      span {
        color: @orange-color;
      }
    }

    .under-header-content {
      font-size: 45px;
      text-transform: uppercase;
      color: @white-color;
    }

    .floating-text {
      color: @white-color;
      font-size: 28px;
      font-weight: 400;
      line-height: 32px;
      
      &.above-text {
        position: absolute;
        top: 340px;
        left: 730px;        
      }
    }
    
    .get-call-button {
      position: absolute;
      width: 300px;
      height: 300px;
      cursor: pointer;
      
      &:before {
        content: " ";
        display: block;
        border-radius: 50%;
        position: absolute;
        width: 100px;
        height: 100px;        
        top: calc(50% - 50px);
        left: calc(50% - 50px);      
      }
      
      img:first-child {
      	position: absolute;
        top: 0;
        left: 0;
      }
      
      svg {
      	position: absolute;
        width: 76px;
        height: 76px;
        top: calc(50% - 38px);
        left: calc(50% - 38px);   
      	transition: @defaultTransitionProps; 
        
        path {
          fill: @white-color;
        }        
      }
      
      &:hover {
        
        &:before {
          background: @orange-color;
          box-shadow: 0px 0px 45px 50px @orange-color;
        }
        
        
        svg {
          transform: rotate(-45deg);     
          transition: @defaultTransitionProps;  
        }
      }
    }
  }
}