@media screen and (min-width: 1240px) {
  html[dir='rtl'] .prime__image {
    left: -webkit-calc(50% - ((1240px - 60px) / 2));
    left: -moz-calc(50% - ((1240px - 60px) / 2));
    left: calc(50% - ((1240px - 60px) / 2));
    right: auto;
  }
}

@media screen and (max-width: 1220px) {
  html[dir='rtl'] .prime__image {
    left: -40px;
  }
}

@media screen and (max-width: 1100px) {
  html[dir='rtl'] .prime__image {
    left: auto;
    right: 500px;
  }
}

@media screen and (max-width: 1024px) {
  html[dir='rtl'] .header__menu > ul > li:not(:last-child) {
    margin-left: 30px;
  }
}

@media screen and (max-width: 850px) {
  html[dir='rtl'] .header__menu > ul > li:not(:last-child) {
    margin-left: 20px;
  }
}

@media screen and (max-width: 768px) {
  html[dir='rtl'] .prime__image {
    right: 330px;
  }

  html[dir='rtl'] .header__logo {
    margin-left: auto;
    margin-right: 0;
    position: relative;
    z-index: 101;
  }

  html[dir='rtl'] .menu-button {
    margin-right: 20px;
    margin-left: 0;
  }

  html[dir='rtl'] .header__menu {
    text-align: center;
  }

  html[dir='rtl'] .header__menu ul li + li {
    margin-left: 0;
    margin-top: 40px;
  }
}

@media screen and (max-width: 650px) {
  html[dir='rtl'] .prime__image {
    right: 180px;
  }

  html[dir='rtl'] .prime__text {
    max-width: 210px;
  }

  html[dir='rtl'] .prime__terms {
    max-width: 200px;
  }

  html[dir='rtl'] .footer__links-item:last-child ul {
    display: inline-block;
    width: auto;
  }

  html[dir='rtl'] .footer__text {
    margin-left: 0;
  }
}

@media screen and (max-width: 550px) {
  html[dir='rtl'] .start__title {
    text-align: center;
  }

  html[dir='rtl'] .start__button {
    margin-right: auto;
    margin-left: auto;
  }
}

@media screen and (max-width: 440px) {
  html[dir='rtl'] h1,
  html[dir='rtl'] .title.general {
    text-align: center;
  }

  html[dir='rtl'] .menu-button {
    margin-right: 10px;
    margin-left: 0;
  }

  html[dir='rtl'] .prime__background img {
    -o-object-position: center;
    object-position: center;
  }

  html[dir='rtl'] .prime__background img,
  html[dir='rtl'] .prime__image img {
    -webkit-transform: scaleX(1);
    -moz-transform: scaleX(1);
    -o-transform: scaleX(1);
    transform: scaleX(1);
  }

  html[dir='rtl'] .prime__image {
    right: auto;
    left: 50%;
    -webkit-transform: translateX(-50%);
    -moz-transform: translateX(-50%);
    -o-transform: translateX(-50%);
    transform: translateX(-50%);
  }

  html[dir='rtl'] .prime__text {
    max-width: 348px;
    text-align: center;
  }
}
