@media (max-device-width: 480px), (max-width: 950px) {

  body {
    -webkit-text-size-adjust: 100%;
    overflow: initial;
    
    --padding-lr: 20px;
    --text-baskerville: 22px;
    --text-baskerville-big: 32px;
    --line-height-baskerville-big: 36px;
  }

  .desctop-only{
    display: none !important;
  }

  header, footer{
    padding: 10px var(--padding-lr);
  }

  header {
    justify-content: space-between;
  }

  .mobile-only{
    display: inline-block;
  }
  
  .tigid-preloader__logo{
    width: 120px !important;
  }
  
  .main {
    min-height: calc(var(--vh, 1vh) * 100);
  }

  
  main {
    overflow: hidden;
  }

  .open-menu {
    width: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 13px;
    padding: 7px 20px;
    box-sizing: initial;
    transform: translateX(20px);
  }

  .open-menu span {
    height: 1px;
    background-color: var(--color-text);
  }
  .open-menu::after{
    display: none !important;
  }

  .home {
    height: initial;
    flex-direction: column-reverse;
    padding-top: 50px;
  }

  .big-title {
    margin-top: 50px;
    font-size: 32px;
    line-height: 36px !important;
  }

  .big-title p{
    font-size: 32px;
    line-height: 34px !important;
  }

  .home .border-link {
    margin-top: 16px;
  }

  .home .left-side {
    padding-bottom: 80px;
  }

  footer {
    margin-top: auto;
    padding-top: 0px;
    padding-bottom: 16px;
  }

  .mobile-menu {
    display: none;
    background-color: var(--color-bg-invert);
    color: var(--color-text-invert);
    flex-direction: column;
    position: fixed;
    top: 0px;
    left: 20px;
    height: 100%;
    z-index: 1000;
    width: calc(100% - 20px);
    border-top: 1px solid var(--color-text-invert);
    border-bottom: 1px solid var(--color-text-invert);
  }

  .mobile-menu .border-link::after {
    background-color: var(--color-text-invert);
  }

  .menu a {
    margin-left: 0px;
    margin-bottom: 16px;
    display: inline-block;
  }

  .menu a:last-child {
    margin-bottom: 0px;
  }

  .mobile-menu .big-title {
    padding: 10px var(--padding-lr);
    height: calc(100% - 200px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  footer {
    display: block;
  }

  footer .right-side {
    float: right;
  }

  .menu br {
    display: initial;
  }

  .close-menu {
    width: 20px;
    height: 25px;
    background-image: url('../img/ARROW_RIGHT.svg?1');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    display: inline-block;
    transform: translate(2px, 1px);
  }

  .lang {
    margin: 10px 0px 16px;
  }

  .text-page {
    flex-direction: column-reverse;
  }

  .text-page .big-title {
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .text-page .image {
    padding-left: 0px;
    padding-right: 30px;
    min-width: 100%;
    min-height: initial !important;
  }

  .image-text {
    /* position: static; */
    /* right: 7px;
    left: auto;
    transform: rotate(-90deg); */
    font-size: 12px;
    /* transform-origin: top right; */
    /* bottom: initial !important; */
    width: auto !important;
    padding-top: 16px;
    text-align: left;
    padding-right: 20px;
  }

  .text-page .image.ver {
    height: initial !important;
  }

  .text-page .left-side {
    max-width: 100%;
    padding-right: 20px;
    margin-top: 50px;
  }

  .projects select {
    display: none;
  }

  .projects-grid {
    grid-template-columns: 100%;
    grid-gap: 30px;
    margin-top: 0px;
  }

  .projects .big-title, .project-page .big-title {
    margin-top: 15px;
    margin-bottom: 25px;
  }

  .about-project p:not(:last-child){
    margin-bottom: 10px;
  }


  .images-gallery {
    white-space: initial;
    overflow-x: hidden;
    height: auto;
    overflow-y: initial;
    margin-bottom: 30px;
  }

  .images-gallery .image {
    display: block;
    margin-right: 0px;
    margin-bottom: 24px;
    width: 100%;
    height: initial;
  }

  .images-gallery .image img {
    width: 100%;
    height: initial;
  }

  .text-page, .projects, .project-page {
    min-height: initial;
  }

  .right-side {
    margin-left: 0px;
  }

}

@media (max-device-height: 570px), (max-height: 570px) {
  
}



@media (max-height: 800px) {
  .big-title, .big-title p {
    font-size: 24px;
    line-height: 24px !important;
  }
}