@import "variables.less";

@media only screen and (min-width: 320px) and (max-width: 768px),
only screen and (min-device-width: 320px) and (max-device-width: 768px) {
  body {
    width: 100%;
    min-width: 100vw;
    max-width: 100vw;
  }
  
  #mobile-header-menu {
    position: fixed;
    width: 100vw;
    height: fit-content;
    top: 75px;
    left: 0;
      
    ul {
      width: fit-content;
      height: fit-content;
      margin: 35px auto;
      
      li {
        margin: 20px auto;
        text-align: center;

        &:last-child {
          display: none;
        }

        a {
          color: @white-color;
        }
      }
    }
    
    .header-phone-number {
      font-weight: bold;
      display: flex;
      flex-direction: row;
      align-items: center;
      font-size: 20px;
      justify-content: center;
      
      a {
        color: @white-color;
        font-size: 20px;
        line-height: 23px;
        font-weight: bold;
      }

      img {
        margin-right: 15px;
        width: 35px;
        height: 35px;
      }
    }

    .header-media-links {
      display: flex; 
      flex-direction: row;
      align-content: center;
      justify-content: center;
      margin-top: 35px;
      
      a {
        display: block;
        margin-right: 15px;
        width: 35px;
        height: 35px;
        
        img {          
          width: 35px;
          height: 35px;
        }

        &:last-child {
          margin-right: 0;
        }
      }
    } 
  }
  
  .mobile-header-menu .menu-background.show {
    position: fixed;
    width: 100vw;
    height: calc(100vh - 75px);
    top: 75px;
    left: 0;
    background: @black-color;
    opacity: .8;
  }
  
  .mobile-header-menu .menu-background, #mobile-header-menu, .mobile-header-menu {
    display: none;
    
    &.show {
      display: block;
    }
  }
  
  .item-pagepage-rent, .page-rent-page {
    .why-we-are-block {
      height: auto !important;
      padding-top: 0px !important;
        
      &:before {
        display: none;
      }
      
      h3 {
        font-size: 45px !important;
        line-height: 55px !important;
        margin-bottom: 25px !important;
        padding-left: 15px !important;
        box-sizing: border-box;           
      }
      
      .image-container {
        width: calc(100% - 30px) !important;
        margin: 25px auto !important;
        height: auto !important;
        
        img {
          width: 100%;
        }
      }

      .list {
        width: calc(100% - 30px) !important;
        margin: 25px auto !important;

        .item { 
          font-size: 20px !important;
          line-height: 23px !important;
          margin-bottom: 20px !important;
          padding-left: 55px !important;
          display: block !important;

          &:before {
            width: 35px !important;
            height: 35px !important;
            background-size: contain !important;
          }
        }
      }
    }
    
    .machines-for-everything-block {
      height: auto !important;
      
      h3 {
        font-size: 45px !important;
        line-height: 55px !important;
        margin-bottom: 25px !important;
        padding-left: 15px !important;
        box-sizing: border-box;           
      }

      .list {
        width: calc(100% - 30px) !important;
        margin: 25px auto !important;

        .item { 
          font-size: 20px !important;
          line-height: 23px !important;
          margin-bottom: 20px !important;
          padding-left: 55px !important;

          &:before {
            width: 35px !important;
            height: 35px !important;
            background-size: contain !important;
          }
        }
      }
      
      .image-block {
        width: calc(100% - 30px) !important;
        margin: 20px auto !important;
        
        img {
          width: calc(100% - 15px);
        }
        
      }
      
      
    }
    
    .span3 .page-header h2 a {
      font-size: 18px !important;
      line-height: 20px !important;
      text-transform: uppercase !important;
    }
    
    .article-body {
      display: block !important;
      
      .article-content {
        width: calc(100% - 30px) !important;
        margin: 25px auto !important;
      }
      
      .fields-wrapper {
        margin-top: 25px !important;
        display: block !important;
        
        .button-box {
          margin: 25px 0 !important;
        }
      }
    }
    
    .article-image {
      width: calc(100% - 30px) !important;
      height: auto !important;
      margin: 25px auto !important;
      
      .item-image {
        width: 100% !important;
        height: auto !important;      
        
        img {
          height: auto !important;
          width: 100% !important;
        }
      }
    }
    
    .page-header h2 {
      font-size: 45px !important;
      line-height: 55px !important;
      margin-bottom: 25px !important;
      padding-left: 15px !important;
      box-sizing: border-box;              
    }
    
  }
  
  .page-materials {
    
    .span3 .page-header h2 a {
      font-size: 18px !important;
      line-height: 20px !important;
      text-transform: uppercase !important;
    }
    
    .article-body {
      display: block !important;
      
      .article-content {
        width: calc(100% - 30px) !important;
        margin: 25px auto !important;
      }
      
      .fields-wrapper {
        margin-top: 25px !important;
        display: block !important;
        
        .field-entry {
          height: auto !important;
        }
        
        .button-box {
          margin: 25px 0 !important;
        }
      }
    }
    
    .article-image {
      width: calc(100% - 30px) !important;
      height: auto !important;
      margin: 25px auto !important;
      
      .item-image {
        width: 100% !important;
        height: auto !important;      
        
        img {
          height: auto !important;
          width: 100% !important;
        }
      }
    }
    
    .page-header h2 {
      font-size: 45px !important;
      line-height: 55px !important;
      margin-bottom: 25px !important;
      padding-left: 15px !important;
      box-sizing: border-box;              
    }
    
    .rent-block {      
      height: auto !important;
      padding-top: 0 !important;
      
      .content {
        width: calc(100% - 30px) !important;
      	height: auto !important;        
        margin: 0 auto !important;
      }
      
      a.get-call-button {
        position: relative !important;
        margin: 0 auto 40px !important;
      }
      
      h3 {
        font-size: 45px !important;
        line-height: 55px !important;
        margin-bottom: 25px !important;
        padding-left: 15px !important;
        box-sizing: border-box;           
      }
      
      .image-container {
        width: calc(100% - 30px) !important;
      	height: auto !important;
        margin: 25px auto !important;
      }
      
    }
  
    .materials-info-block {
      height: auto !important;
      padding-top: 0 !important;
      display: block !important;

      .image-block {
        width: 345px !important;
        height: 200px !important;
        margin: 25px auto !important;
        border-radius: 120px 30px !important;
        display: flex;
        align-items: center;

        img {
          height: 200px !important;
        }
      }

      .list {
        width: calc(100% - 30px) !important;
        margin: 25px auto !important;

        .item { 
          font-size: 20px !important;
          line-height: 23px !important;
          margin-bottom: 20px !important;
          padding-left: 55px !important;

          &:before {
            width: 35px !important;
            height: 35px !important;
            background-size: contain !important;
          }
        }
      }

      h3 {
        font-size: 45px !important;
        line-height: 55px !important;
        margin-bottom: 25px !important;
        padding-left: 15px !important;
        box-sizing: border-box;           
      }
    }
  }
  
  .page-policy-page {
    h3 {
      span {
        font-size: 45px !important;
        line-height: 55px !important;
        margin-bottom: 25px !important;
      }
      
      font-size: 30px !important;
      line-height: 42px !important;
      padding-left: 15px !important;
      box-sizing: border-box;          
    }
    
    div.article-body {
      width: calc(100% - 30px) !important;
      margin: 0px auto !important; 
      font-size: 15px !important;
      line-height: 17px !important;
    }
  }
  
  .contacts-page {
    h3 {
      font-size: 45px !important;
      line-height: 55px !important;
      margin-bottom: 25px !important;
      padding-left: 15px !important;
      box-sizing: border-box;      
    }
    
    .contact-row, .header-media-links {
      box-sizing: border-box;
      width: calc(100% - 30px) !important;
      margin: 0 auto 20px !important;
    }
    
    &.map-box {
      width: 100% !important;
    }
    
    iframe {
      width: calc(100% - 30px) !important;
      margin: 25px auto !important;
      height: 200px !important;
      border-radius: 100px 30px !important;
      display: block;
    }
    
    &.payment-data > div {
      width: calc(100% - 30px) !important;      
      margin-left: auto !important;
      margin-right: auto !important;
    }
  }
  
  .service-box {
    height: 750px !important;
    padding: 30px 0 !important;
      
    &.second .content-box, &.fourth .content-box {
      flex-direction: column-reverse !important;
    }
    
    .content-box {
      flex-direction: column !important;
      
      .image-col {
        width: 345px !important;
        height: 200px !important;
        border-radius: 60px !important;
        margin: 0 auto !important;
        
        img {          
          width: 345px !important;
          height: 200px !important;
        }
      }
      
      .content-col {
        margin: 0 auto 30px !important;
        width: 345px !important;
        font-size: 20px !important;
        line-height: 23px !important;
        text-align: center !important;
        
        & > div {
          text-align: left !important;
        }
        
        input {
          margin: 20px auto !important;
        }
      }
    }
    
    h4 {
      font-size: 45px !important;
      line-height: 55px !important;
      margin-bottom: 25px !important;
      padding-left: 15px !important;
      box-sizing: border-box;
    }
  }
  
  .main-content {
    height: auto !important;
  }
  
  .third-container {
    height: 795px !important;
    
    .content {
      flex-direction: column !important;
      
      .image-container {
        width: 345px !important;
        height: 200px !important;
        border-radius: 120px !important;
        margin: 0 auto 30px !important;
        display: flex;
      }
      
      .check-list {
        margin-left: 0px !important;
        width: 100% !important;
        padding-left: 15px;
        box-sizing: border-box;
        
        .check-item {
          font-size: 20px !important;
          line-height: 23px !important;
          padding-left: 55px !important;
          margin-bottom: 20px !important;
          display: block ! Important;
          text-align: left;
          box-sizing: border-box !important;
        }
      }
    }
    
    h2 {
      font-size: 45px !important;
      line-height: 55px !important;
      padding-left: 15px;         
      text-transform: uppercase;
      
      span {
        display: block;
      }
    }
    
  }
  
  .second-container {
    height: 552px !important;
    width: 100%;
    text-align: center;
    padding-bottom: 20px !important;
    
    img {
      margin: 0 auto;
    }
  }
  
  .first-container {
    height: 714px !important;
    
    h2 {
      font-size: 45px !important;
      line-height: 55px !important;
      padding-left: 15px;         
      text-transform: uppercase;
      
      span {
        display: block;
      }
    }
    
    .content {
      flex-direction: column !important;
      
      .image-container {
        width: 345px !important;
        height: 200px !important;
        border-radius: 30px 150px !important;
        margin: 0 auto 30px !important;
      }
      
      .check-list {
        margin-left: 0px !important;
        width: 100%;
        padding-left: 15px;
        box-sizing: border-box;
        
        .check-item {
          font-size: 20px !important;
          line-height: 23px !important;
          margin-bottom: 20px !important;
          width: calc(100% - 15px);
          box-sizing: border-box;
          justify-content: space-between;
        }
      }
    }
  }
  
  footer .container {
    justify-content: start !important;
    flex-direction: column !important;
    padding: 15px;
    box-sizing: border-box;
    
    .footer-logo-container {
      font-size: 13px;
      line-height: 15px !important;
      margin-bottom: 30px;
    }
    
    .footer-menu {
      margin-bottom: 30px;
    }
    
    ul {
      width: 100% !important;
      margin-bottom: 20px;
      
      li {
        margin-bottom: 20px !important;
        
        a {
          font-size: 15px !important;
          line-height: 17px !important;          
        }
      }
    }
  }
  
  .get-order-section {
    height: 1209px !important;
    
    .container {
      height: 1209px !important;      
      justify-content: start !important;
      padding: 40px 0 !important;
    }
    
    .box-title {
      font-size: 65px !important;
      line-height: 75px !important;
      text-align: center;
      
      &:after {
        content: "ЗАЯВКУ ОСТАВЬТЕ";
        top: -1.25em !important;
      }
    }
    
    .form-title {
      text-align: center !important;
      font-size: 24px !important;
      line-height: 28px !important;
      padding: 0 15px;
    }
    
    .content {
      flex-direction: column !important;
      
      .form {
        width: calc(100% - 30px);
        padding: 0 15px;
        margin-bottom: 60px;
      }
      
      .steps {
        width: calc(100% - 30px);
        padding: 0 15px;      
        
        .step {
          margin-bottom: 20px !important;
          
          .step-title {
            font-size: 20px !important;
            line-height: 23px !important;
          }
          
          .step-description {
            font-size: 18px !important;
            line-height: 20px !important;
          }
        }
      }
    }
  }
  
  .why-we-are {    
    height: 795px !important;
    
    h3 {
      font-size: 45px !important;
      line-height: 55px !important;
      padding-left: 15px;      
    }
    
    .content {
      flex-direction: column-reverse !important;
      
      .image-container {
        width: 345px !important;
        height: 200px !important;
        border-radius: 120px !important;
        
        img {          
        	width: 100%;
        }
      }
      
      .check-list {
        width: 100% !important;
        margin-left: 0 !important;
        padding-left: 30px !important;
        box-sizing: border-box !important;
        
        .check-item {
          font-size: 20px !important;
          line-height: 23px !important;
          padding-left: 55px !important;
          margin-bottom: 20px !important;
          display: block !Important;
          text-align: left;
          box-sizing: border-box !important;
          
          &:before {
            width: 35px !important;
            height: 35px !important;
            background-size: contain;
          }
        }
      }
    }
  }
  
  .get-call-block {
    display: none;
  }
  
  .showMobile {
    display: block !important;
    max-width: 100%;
  }
  
  .hideMobile {
    display: none !important;
  }
  
  header {
    display: none;
  }
  
  .services-box {
    height: auto !important;
    
    .get-call-button {
      padding-bottom: 35px !important;
    }
    
    .service-item {
      width: 345px !important;
      height: 484px  !important;
      margin-left: auto !important;
      margin-right: auto !important;
      position: relative;
      flex-direction: column !important;
      border-radius: 170px 170px 10px 10px !important;
      
      .image-box {
        width: 325px !important;
        height: 165px !important;   
        margin: 10px !important;
        display: flex !important;
        align-items: center;
        flex-direction: row;
        
        img {
          height: auto !important;
          width: 100% !important;
        }
      }
      
      .service-content {
      	height: calc(100% - 175px);
      	width: 345px !important;       
        display: flex;
        flex-direction: column;
        
        h4 {
          text-align: center !important;
          margin: 20px 0 20px !important;
          width: 100% !important;
          box-sizing: border-box;
          margin: 10px 0 !important;
        }
        
        .description {
          font-size: 16px !important;
          line-height: 18px !important;
          text-align: center !important;
          padding: 0 10px !important;          
        }
      
        .buttons-box {
          flex-direction: column !important;
          align-items: center !important;
          position: absolute;
          bottom: 20px;
          width: 100%;
          margin-left: 0 !important;
          margin-right: 0 !important;
          margin-bottom: 0 !important;
          
          input {
            margin-right: 0 !important;
            margin-bottom: 15px !important;
          }
        }
      }
    }
    
    h3 {
      font-size: 45px !important;
      line-height: 55px !important;
      padding-left: 15px;
    }
    
    .box-description {
      position: static !important;
      width: auto !important;
      font-size: 20px;
      line-height: 23px;
      padding-left: 15px;
      box-sizing: border-box;
      margin-bottom: 30px !important;
    }
  }
  
  .about-box {
    height: 617px !important; 
    
    h3 {
      font-size: 45px !important;
      line-height: 55px !important;
      padding-left: 15px;
    }
    
    img {
      margin-left: auto;
      margin-right: auto;
    }
  }
  
  .items-row {
    flex-direction: column !important;
    
    .span3 {
      width: 345px !important;
      height: 484px  !important;
      margin-left: auto !important;
      margin-right: auto !important;
      position: relative;
      
      .buttons-box {
        flex-direction: column !important;
        align-items: center !important;
        position: absolute;
        bottom: 20px;
        width: 100%;
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        
        & > div {
          margin-bottom: 15px !important;
        }
      }
      
      .fields-container {
        width: 100% !important;
        margin: 0 !important;
      }
      
      .page-header {
        margin: 20px 0 20px !important;
        width: 100% !important;
      }
      
      .item-image a {
        width: 325px !important;
        height: 165px !important;   
        margin: 10px !important;
        display: flex !important;
        align-items: center;
        flex-direction: row;
        
        img {
          max-height: none !important;
          width: 100%;
        }
      }
    }
  }
  
  .blog-header-name {
    font-size: 45px !important;
    line-height: 55px !important;
    padding-left: 15px  !important;
  }
  
  .mobile-header {
    position: fixed;
    top: 0;
    left: 0;
    height: 75px;
    width: 100%;  
    max-width: 100vw;
    padding: 15px;
    box-sizing: border-box;
    background: @black-color;
    z-index: 15;
    display: block;
    
    .container {
      display: flex;
      flex-direction: row;
      justify-content: space-between; 
      align-items: center;        
    }
    
    img {
      width: 165px;
    }
    
    .burgerButton {
      width: 45px;
      height: 45px;
      border-radius: 10px;
      background: @orange-color;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: space-evenly;
      box-sizing: border-box;
      padding: 8px 0;
      
      & > div, &:after, &:before {
        content: " ";
        display: block;
        background: @white-color;
        width: 27px;
        height: 3px;
        border-radius:4px;
      }
      
      & > img {
        display: none;
      }
      
      &.open > img {
        display: block;
        width: 45px;
        height: 45px;
      }
      
      &.open > div, &.open:after, &.open.before {
        display: none;
      }
    }
    
    .mobile-header-menu {
      width: 0;
      height: 0;
      position: absolute;
      top: 0;
      left: 0;
    }
  }
  
  .container {
    min-width: 100%;
    max-width: 100%;
    width: 100% !important;
  }
  
  .main-page-header {
    padding-bottom: 85px;
    background-position: 50% 50%;
      
    h1 {
      text-align: center;    
      font-size: 55px !important;
      line-height: 77px !important;      
      margin-bottom: 20px !important; 

      .biggerText {
        font-size: 95px !important;
        line-height: 133px !important;      
      }
    }
    
    .floating-text {
      font-size: 20px !important;
      line-height: 23px !important;
      text-align: center !important;
      position: initial  !important;
      padding: 0 15px !important;
    }
  
    .under-header-content {
      font-size: 30px !important;
      line-height: 34px !important;
      text-align: center;
      margin-bottom: 40px !important;
    }

    .floating-text.above-text {
      font-size: 20px !important;
      line-height: 23px !important;
      text-align: center !important;
      position: initial  !important;
    }
    
    .get-call-button {
      position: relative !important;
      top: 0px !important;
      left: 0px !important;
      margin: 50px auto 0;
    }
  }
}