@media (max-width: 1500px) {
  .wrap {
    width: 945px;
  }
  header .wrap.flex img {
    width: 143px;
  }
  span.open-modal.callback {
    font-size: 10px;
  }
  a.phone {
    display: block;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 9px;
  }
  header nav span {
    text-transform: uppercase;
    font-weight: 500;
    margin: 0 20px;
    font-size: 14px;
  }
  header .wrap.flex {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 29px 0;
  }
  h1.title {
    font-size: 48px;
    max-width: 50%;
    margin-bottom: 17px;
  }
  btn.main-btn {
    margin-top: 42px;
  }
  .btn {
    letter-spacing: 1.3px;
    font-size: 16px;
    padding: 32px 70px;
  }
  section#main {
    background-size: cover;
    padding-top: 122px;
    padding-bottom: 331px;
    margin-bottom: -206px;
    background-position-y: -100px;
  }
  .cases-wrap {
    margin-top: 43px;
    margin-bottom: 42px;
  }
  .case-name.flex {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    /* flex-grow: 1; */
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    width: 100%;
    margin-bottom: 56px;
  }
  .case-main.flex {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .case-info-item:nth-child(2) {
    width: 33%;
  }
  .case-info-item:nth-child(4) {
    width: 30%;
  }
  .case-info-item:nth-child(3) {
    width: 33%;
  }
  .more-info {
    color: #f85151;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    left: 0;
    top: 0;
    margin-top: 35px;
    position: relative;
  }
  .table-row.table-header {
    height: auto;
    border: none;
    background: #2d3033;
    color: #96999c;
    font-size: 12px;
    text-align: left;
    margin-top: 0;
  }
  .table-row.table-header span {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .table-row .table-col:nth-child(1) {
    width: 10%;
  }
  .table-row .table-col:nth-child(1) span {
    padding-left: 17px;
  }
  .table-row .table-col {
    padding-left: 0;
  }
  .table-row .table-col:nth-child(2) {
    width: 8%;
  }
  .table-row .table-col:nth-child(6) {
    width: 7.5%;
  }
  .table-row .table-col:nth-child(7) {
    width: 8.3%;
  }
  .table-row .table-col:nth-child(8) {
    width: 8.56%;
  }
  .table-row .table-col:nth-child(8) span {
    padding-left: 18px;
  }
  .table-row .table-col:nth-child(11) {
    width: 10.4%;
  }
  .table-row .table-col:nth-child(9) {
    width: 9.56%;
  }
  .table-row .table-col:nth-child(9) span {
    padding-left: 14px;
  }
  .table-row.table-header span {
    padding-top: 0;
    padding-bottom: 0;
    line-height: 129%;
    height: 48px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 6px;
  }
  .table-row span {
    word-break: break-word;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 129%;
    height: 75px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding-right: 3px;
  }
  .table-row .table-col span {
    padding-left: 4px;
    font-size: 12px;
  }
  .table-row .table-col {
    padding-top: 0;
    padding-bottom: 0;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }
  .case-name p {
    white-space: normal;
  }
  section#work {
    padding-top: 27px;
    background-position-y: -42px;
    padding-bottom: 210px;
    margin-top: 100px;
  }
  .work-info.flex {
    margin-top: 33px;
  }
  .work-item.flex.flex-wrap img {
    height: 81px;
    margin-top: 5px;
  }
  .work-item.flex.flex-wrap b {
    width: calc(100% - 88px);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 182%;
    padding-right: 0;
  }
  .work-item.flex.flex-wrap p {
    font-weight: normal;
    color: #96999c;
    /* line-height: 150%; */
    font-size: 14px;
    padding-right: 2%;
    line-height: 188%;
    margin-top: 15px;
    margin-bottom: 37px;
  }
  .work-item .btn {
    padding-left: 60px;
    padding-right: 60px;
  }
  section#work {
    padding-top: 27px;
    background-position-y: -42px;
    padding-bottom: 338px;
    margin-bottom: -290px;
  }
  .radio-block {
    margin-top: 47px;
    width: 78%;
  }
  form.custom-form.abs {
    right: 0;
    top: 23px;
    width: 100%;
    position: relative;
    /* display: -webkit-box;
        display: -ms-flexbox; */
    /* display: flex; */
    /* -ms-flex-wrap: wrap;
            flex-wrap: wrap; */
  }
  #form form.custom-form input {
    /* width: 32%; */
    width: 100%;
  }
  .boss-image {
    flex: 0 0 40%;
    margin-right: 2rem;
  }
  form.custom-form input {
    width: 100%;
    background: rgba(49, 53, 57, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.24);
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    border-radius: 4px;
    height: 88px;
    text-transform: uppercase;
    font-weight: 500;
    padding-left: 20px;
    font-size: 16px;
    margin-bottom: 18px;
  }
  #form form.custom-form {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }
  #form .btn {
    margin-top: 12px;
  }
  .work-item.flex.inline.flex-wrap {
    width: 100%;
    padding: 50px 52px;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    background: white;
    margin-bottom: 16px;
  }
  .work-item.inline.flex.flex-wrap b {
    width: 77%;
  }
  .light--theme #main {
    color: white;
    padding-top: 0;
    background-repeat: no-repeat;
    padding-bottom: 634px;
    margin-bottom: -508px;
    background-position-y: 0;
  }
  h1.title.title-big {
    white-space: normal;
    font-size: 61px;
    max-width: 80%;
  }
}

@media (max-width: 1170px) {
  .wrap {
    width: 722px;
  }
  nav.flex {
    display: none;
  }
  h1.title {
    font-size: 48px;
    max-width: 100%;
    margin-bottom: 42px;
  }
  .btn.main-btn {
    margin-top: 34px;
  }
  .tr-wrap {
    right: 0;
    top: 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0;
    width: 722px;
    margin: 48px auto 0;
  }
  .trigger {
    width: 352px;
  }
  section#main {
    background-size: cover;
    padding-top: 122px;
    padding-bottom: 699px;
    margin-bottom: -596px;
    background-position-y: -87px;
    background-position-x: 12%;
    background-size: 148%;
  }
  .case-main.flex {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 36px 30px;
  }
  .logo {
    border: 2px solid #313539;
    width: 80px;
    height: 80px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    border-radius: 50%;
    color: #f85151;
    font-size: 32px;
    font-weight: bold;
    margin-right: 34px;
  }
  .case-name.flex {
    margin-bottom: 47px;
  }
  .trigger span.big-one,
  .case-info-item span.big-one {
    font-size: 46px;
    letter-spacing: normal;
    margin-bottom: 20px;
  }
  .case-info-item:nth-child(4) {
    width: 22%;
  }
  .case-info-item:nth-child(2) {
    width: 37%;
  }
  .table {
    /* width: 940px; */
  }
  .dropdown-descr {
    /* overflow: scroll; */
  }
  .cases-wrap {
    margin-top: 43px;
    margin-bottom: 28px;
  }
  .work-info.flex {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-top: 39px;
  }
  .work-item.flex.flex-wrap {
    width: 100%;
    -ms-flex-item-align: self-start;
    -ms-grid-row-align: self-start;
    align-self: self-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 26px;
  }
  .work-item.flex.flex-wrap img {
    height: auto;
    margin-top: 5px;
    width: 82px;
  }
  .work-item.flex.flex-wrap {
    width: 100%;
    -ms-flex-item-align: self-start;
    -ms-grid-row-align: self-start;
    align-self: self-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  .work-item.flex.flex-wrap b {
    width: 360px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 18px;
    line-height: 182%;
    padding-right: 0;
    padding-left: 13px;
    padding-top: 13px;
  }
  .work-item.flex.flex-wrap p {
    font-weight: normal;
    color: #96999c;
    /* line-height: 150%; */
    font-size: 14px;
    padding-right: 8%;
    line-height: 188%;
    margin-top: 10px;
    margin-bottom: 24px;
    padding-left: 13%;
  }
  .work-item .btn {
    padding-left: 60px;
    padding-right: 60px;
    margin-left: 13%;
  }
  .work-item.flex.flex-wrap br + br {
    display: none;
  }
  section#work {
    padding-top: 27px;
    background-position-y: -42px;
    padding-bottom: 8px;
    margin-bottom: -9px;
  }
  .radio {
    width: 66%;
  }
  .radio-wrap.flex.flex-wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-flow: column wrap;
    flex-flow: column wrap;
    height: 228px;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  #form form.custom-form input {
    width: 100%;
  }
  footer .wrap.flex {
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .foot-descr.wrap.flex {
    border-top: thin solid #5b5b5b;
    margin-top: 41px;
    padding-top: 23px;
    font-size: 12px;
    color: #96999c;
  }
  a.logo2 {
    -webkit-box-ordinal-group: -1;
    -ms-flex-order: -2;
    order: -2;
  }
  footer .phone {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
  }
  footer div.phone {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 69%;
    margin-bottom: 19px;
  }
  footer p {
    text-align: right;
  }
  .work-item.flex.inline.flex-wrap {
    padding: 40px 40px;
  }
  .work-item.inline.flex.flex-wrap b {
    width: 100%;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 32px;
    line-height: 151%;
    padding-right: 76px;
    margin-left: 0;
    padding-left: 0;
    padding-top: 22px;
  }
  .work-item.inline.flex.flex-wrap p {
    padding-left: 0;
    padding-right: 0;
  }
  .work-item.inline.flex.flex-wrap .btn {
    margin-left: 0;
  }
  .light--theme #main {
    color: white;
    padding-top: 0;
    background-repeat: no-repeat;
    padding-bottom: 616px;
    margin-bottom: -508px;
    background-size: cover;
    background-position-y: 0;
  }
  .light--theme .tr-wrap {
    top: 0;
  }
  body.light--theme {
    background-size: auto 1630px;
    background-repeat: no-repeat;
  }
  .table-row .table-col:nth-child(2),
  .table-row .table-col:nth-child(3),
  .table-row .table-col:nth-child(4),
  .table-row .table-col:nth-child(10) {
    display: none;
  }
  h1.title.title-big {
    font-size: 52px;
    max-width: 100%;
    margin-bottom: 42px;
    white-space: pre-line;
  }
  #form .title {
    max-width: 48rem;
  }
  .boss-image {
    margin-right: 0rem;
    height: 36rem;
  }
  .block-name {
    right: auto;
    left: 0;
    max-width: 16rem;
  }
}
@media (max-width: 767px) {
  .wrap {
    width: 100%;
    max-width: 420px;
    padding: 0 6%;
  }
  .pre-title {
    text-transform: uppercase;
    font-size: 11.2px;
    letter-spacing: 1.7px;
    margin-bottom: 29px;
  }
  h1.title {
    font-size: 32px;
    max-width: 100%;
    margin-bottom: 25px;
  }
  span.open-modal.callback {
    font-size: 8px;
  }
  a.phone {
    display: block;
    font-size: 16.2px;
    font-weight: 500;
    margin-bottom: 3px;
  }
  header .wrap.flex {
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    padding: 20px 6%;
  }
  section#main {
    background-size: cover;
    padding-top: 87px;
    padding-bottom: 699px;
    margin-bottom: -596px;
    background-position-y: -87px;
    background-position-x: 12%;
    background-size: auto;
  }
  .title + p,
  .pre-title + p {
    white-space: normal;
    line-height: 161%;
    font-weight: 100;
    color: #96999c;
    font-size: 14px !important;
  }
  header .wrap.flex img {
    width: 130px;
  }
  .btn {
    width: 100%;
    padding: 26px 0;
    text-align: center;
  }
  .tr-wrap {
    right: 0;
    top: 0;
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    padding: 0;
    width: 100%;
    margin: 42px auto 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 0 7%;
  }
  .trigger {
    width: 100%;
    margin-bottom: 15px;
    padding: 37px 31px;
  }
  .trigger span.big-one,
  .case-info-item span.big-one {
    font-size: 47px;
    letter-spacing: normal;
    margin-bottom: 12px;
  }
  section#main {
    background-size: cover;
    padding-top: 38px;
    padding-bottom: 65px;
    margin-bottom: 0;
    background-position-y: -87px;
    background-position-x: 12%;
    background-size: auto;
  }
  .title {
    font-size: 28px;
    white-space: normal;
    font-weight: 500;
    margin-bottom: 33px;
    line-height: 130%;
    text-transform: uppercase;
  }
  .logo {
    display: none;
  }
  .case-name p {
    white-space: pre-line;
    font-size: 24px;
    /* font-weight: normal; */
    line-height: 140%;
    text-transform: uppercase;
  }
  .case-main.flex {
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    padding: 24px 33px;
  }
  .case-info-item:nth-child(2) {
    width: 100%;
  }
  .case-info-item span {
    display: inline;
    font-size: 16px;
    vertical-align: middle;
    padding-left: 13px;
  }
  .case-info-item span.big-one {
    display: inline;
    font-size: 31px;
    vertical-align: middle;
    padding-left: 0;
  }
  .case-info-item p {
    margin-top: 15px;
    white-space: normal;
  }
  .case-info-item:nth-child(3) {
    width: 100%;
  }
  .case-info-item {
    margin-bottom: 20px;
  }
  .case-info-item p {
    margin-top: 15px;
    white-space: normal;
    display: block;
    width: 100%;
  }
  .case-info-item:nth-child(4) {
    width: 100%;
  }
  .more-info {
    margin-top: 15px;
  }
  section#work {
    padding-top: 16px;
    background-position-y: -42px;
    padding-bottom: 8px;
    margin-bottom: -9px;
    margin-top: 82px;
  }
  .work-item.flex.flex-wrap b {
    width: 200px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 152%;
    padding-right: 0;
    padding-left: 0;
    padding-top: 13px;
  }
  .work-item.flex.flex-wrap p {
    font-weight: normal;
    color: #96999c;
    /* line-height: 150%; */
    font-size: 14px;
    padding-right: 0;
    line-height: 188%;
    margin-top: 10px;
    margin-bottom: 26px;
    padding-left: 0;
  }
  .work-item .btn {
    margin-left: 0;
  }
  .work-item.flex.flex-wrap {
    width: 100%;
    -ms-flex-item-align: self-start;
    -ms-grid-row-align: self-start;
    align-self: self-start;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
    margin-bottom: 27px;
  }
  .pre-title {
    text-transform: uppercase;
    font-size: 11.2px;
    letter-spacing: 1.7px;
    margin-bottom: 22px;
    line-height: 220%;
  }
  section#form {
    padding-top: 26px;
    padding-bottom: 56px;
  }
  #form .title {
    font-size: 24px;
    white-space: normal;
    font-weight: normal;
    margin-bottom: 13px;
    line-height: 130%;
  }
  .radio-block {
    margin-top: 34px;
    width: 100%;
  }
  .radio-block b {
    font-size: 14px;
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
  }
  .radio-wrap.flex.flex-wrap {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -ms-flex-flow: column;
    flex-flow: column;
    height: auto;
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
  .radio {
    width: 100%;
  }
  footer .phone {
    /* order: -1; */
    /* flex-grow: 1; */
    text-align: left;
    font-size: 25px;
  }
  footer span.open-modal.callback {
    font-size: 12px;
    font-weight: 500;
  }
  footer div.phone {
    -webkit-box-ordinal-group: 0;
    -ms-flex-order: -1;
    order: -1;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
    width: 100%;
    margin-bottom: 17px;
    margin-top: 49px;
    text-align: left;
  }
  footer p {
    text-align: left;
  }
  footer a.polit {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
    white-space: normal;
    margin-top: 21px;
  }
  .foot-descr.wrap.flex {
    border-top: thin solid #5b5b5b;
    margin-top: 38px;
    padding-top: 18px;
    font-size: 12px;
    color: #96999c;
    line-height: 170%;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
  }
  .foot-descr.wrap.flex span:nth-child(1) {
    width: auto;
  }
  .foot-descr.wrap.flex span {
    padding-bottom: 9px;
  }
  form.custom-form.modal-form {
    padding: 20px 19px;
  }
  .close {
    position: absolute;
    right: -1px;
    top: -10px;
    z-index: 10;
    color: grey;
    font-size: 33px;
    cursor: pointer;
    padding: 10px;
    font-weight: 100;
  }
  .logo.num {
    display: block;
  }
  .work-item.flex.inline.flex-wrap {
    padding: 22px 29px;
  }
  .logo.num {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    font-size: 24px;
    width: 64px;
    height: 64px;
  }
  .work-item.inline.flex.flex-wrap b {
    width: 100%;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 16px;
    line-height: 151%;
    padding-right: 0;
    margin-left: 0;
    padding-left: 0;
    padding-top: 22px;
  }
  .work-item.inline.flex.flex-wrap p {
    font-weight: normal;
    color: #96999c;
    /* line-height: 150%; */
    font-size: 14px;
    padding-right: 14%;
    line-height: 167%;
    margin-top: 19px;
    margin-bottom: 24px;
    color: #475d68;
    padding-left: 0;
    padding-right: 0;
  }
  .work-item.inline.flex.flex-wrap .btn {
    margin-left: 0;
    width: 100%;
    padding: 26px 0;
  }
  .light--theme #main header {
    margin-bottom: 18px;
    border-bottom: thin solid #3a3a3a5c;
  }
  .light--theme section#work {
    padding-top: 16px;
    background-position-y: 0;
    padding-bottom: 29px;
  }
  section#main.thx {
    margin-bottom: 0;
    padding-bottom: 121px;
  }
  .table-row .table-col:nth-child(5),
  .table-row .table-col:nth-child(6),
  .table-row .table-col:nth-child(7),
  .table-row .table-col:nth-child(8) {
    display: none;
  }
  .table-row span {
    height: 56px;
  }
  .table-row.table-header .table-col:nth-child(9) span,
  .table-row.table-header .table-col:nth-child(10) span,
  .table-row.table-header .table-col:nth-child(11) span,
  .table-row.main-row .table-col:nth-child(9) span:nth-last-child(1),
  .table-row.main-row .table-col:nth-child(10) span:nth-last-child(1),
  .table-row.main-row .table-col:nth-child(11) span:nth-last-child(1),
  .table-row .table-col:nth-child(9) span,
  .table-row .table-col:nth-child(10) span,
  .table-row .table-col:nth-child(11) span {
    background: inherit !important;
    color: inherit !important;
  }
  .table-row.table-header span {
    font-weight: 500;
  }
  h1.title.title-big {
    font-size: 32px;
    max-width: 85%;
    margin-bottom: 25px;
    white-space: normal;
  }
  .boss-image {
    height: 26rem;
    width: 100%;
    margin: 4rem auto;
    order: 2;
  }
  #form form.custom-form {
    order: 1;
  }
  .block-name {
    max-width: 100%;
  }
  #form .title {
    max-width: 23rem !important;
    margin: 1rem auto 1.5rem !important;
  }
  #form .wrap {
    flex-wrap: wrap;
  }
  #form form.custom-form input {
    font-size: 0.9rem;
  }
}
@media (max-width: 376px) {
  #form .title {
    max-width: 21rem !important;
  }
  #form form.custom-form input {
    font-size: 0.8rem;
  }
  form.custom-form input {
    height: 76px;
  }
}
@media (max-width: 359px) {
  h1.title.title-big {
    max-width: 100%;
  }
  #form .title {
    max-width: 15rem;
    text-align: left;
  }
  #form form.custom-form input {
    font-size: 0.7rem;
  }
  form.custom-form input {
    height: 69px;
  }
}
