@media (min-width: 800px) {
    .min-news-block {
        width: 23%;
    }
    .empty-block {
        width: 7%;
    }
    .long-news-block{
        width: 31%;
    }
}
@media (min-width: 576px) {

  .w10,
  .w20,
  .w30,
  .w40,
  .w50,
  .w60,
  .w70,
  .w80,
  .w90 {
    flex-basis: calc(50% - 5px);
  }
}

@media (min-width: 768px) {
  html {
    font-size: 18px;
  }

  /* Header */
  .header-top-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    gap: 1rem;
  }

  /* Header -> Search form */
  .header-search-close {
    top: 2rem;
  }

  .search-box-content .block-title {
    display: block;
  }

  .breadcrumb-item span {
    margin: 0 10px;
  }

  /* Main */
  .main-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  #main {
    -webkit-box-ordinal-group: 2;
    -ms-flex-order: 1;
    order: 1;
  }

  #sidebar-left {
    -webkit-box-ordinal-group: 1;
    -ms-flex-order: 0;
    order: 0;
  }

  #sidebar-right {
    -webkit-box-ordinal-group: 3;
    -ms-flex-order: 2;
    order: 2;
  }

  /* one sidebar + main */
  .sidebar-left #main,
  .sidebar-right #main {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 70%;
    flex: 1 1 70%;
  }

  /* Both sidebar + main */
  .two-sidebar #main {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 40%;
    flex: 1 1 40%;
  }

  /* Sidebar
  --------------------------------*/
  #sidebar-left {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 30%;
    flex: 0 1 30%;
  }

  #sidebar-right {
    -webkit-box-flex: 0;
    -ms-flex: 0 1 30%;
    flex: 0 1 30%;
  }

  /* Footer */
  .footer-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
  }

  .footer-bottom-blocks-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
  }

  .footer-bottom-container {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .footer-bottom-last {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-direction: row;
    flex-direction: row;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
  }

  .copyright {
    margin-bottom: 0;
  }

  /* shortcodes -> content width */
  .width30 {
    width: 30%;
  }

  .width40 {
    width: 40%;
  }

  .width50 {
    width: 50%;
  }

  .width60 {
    width: 60%;
  }

  .width70 {
    width: 70%;
  }

  .width80 {
    width: 80%;
  }

  .width90 {
    width: 90%;
  }

  /* shortcodes -> responsive column */
  .w10 {
    flex-basis: calc(10% - 10px);
  }

  .w20 {
    flex-basis: calc(20% - 10px);
  }

  .w30 {
    flex-basis: calc(30% - 10px);
  }

  .w40 {
    flex-basis: calc(40% - 10px);
  }

  .w50 {
    flex-basis: calc(50% - 10px);
  }

  .w60 {
    flex-basis: calc(60% - 10px);
  }

  .w70 {
    flex-basis: calc(70% - 10px);
  }

  .w80 {
    flex-basis: calc(80% - 10px);
  }

  .w90 {
    flex-basis: calc(90% - 10px);
  }

  /* Shortcodes -> responsive view */
  .view-in-mobile {
    display: none;
  }

  .view-in-desktop {
    display: block;
  }
}

@media (min-width: 992px) {
  th {
    padding: 10px;
  }

  td {
    padding: 5px 10px;
  }

  /* Header */
  .header-right {
    gap: 1rem;
  }

  .menu-wrap {
    position: relative;
    background-color: transparent;
    max-width: 100%;
    -webkit-transform: translateX(0);
    -ms-transform: translateX(0);
    transform: translateX(0);
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
  }

  .menu-wrap .menu {
    flex-direction: row;
  }

  .menu-wrap .menu,
  .menu-wrap .menu a {
    color: var(--primary);
  }

  .menu-wrap .menu-item a,
  .menu-wrap .menu-item>span {
    border-bottom: 0;
  }

  .menu-wrap .menu>li,
  .menu-wrap .collapsed,
  .menu-wrap .expanded,
  .menu-wrap .menu-item-has-children {
    display: inline-flex;
    align-items: center;
  }

  .menu-wrap .collapsed:hover,
  .menu-wrap .expanded:hover,
  .menu-wrap .menu-item-has-children:hover {
    background-color: var(--light);
  }

  .menu-wrap .collapsed::after,
  .menu-wrap .expanded::after,
  .menu-wrap .menu-item-has-children::after {
    content: '+';
  }

  .menu-wrap .submenu {
    position: absolute;
    display: none;
    background-color: var(--light);
    font-size: 0.9rem;
    top: 100%;
    min-width: 180px;
    max-width: 200px;
    opacity: 0;
  }

  .collapsed:hover>.submenu,
  .expanded:hover>.submenu,
  .menu-item-has-children:hover>.submenu {
    display: flex;
    -webkit-animation: slideUp 0.5s forwards;
    animation: slideUp 0.5s forwards;
  }

  .menu-wrap .submenu li {
    border-bottom: 1px solid var(--border);
  }

  .menu-wrap .submenu .submenu {
    top: 0;
    left: 100%;
  }

  .menu-wrap .submenu li>a,
  .menu-wrap .submenu li>span {
    padding: 0.5rem;
  }

  .menu-wrap .submenu .submenu .menu-item>a,
  .menu-wrap .submenu .submenu .menu-item>span {
    padding: 0.5rem;
  }

  .mobile-menu,
  .close-mobile-menu {
    display: none;
  }
}
@media (max-width: 1400px) {
.scroll-container {
    height: 59vh;
}
}
@media (max-width: 1360px) {
  .header_desc {
    display: none;
  }

  .header-top,
  .header {
    padding: 12px 0;
  }

}
@media (max-width: 1313px) {
.header-about_img img {
    max-width: 100% !important;
}
}
@media (max-width: 1250px) {
.project-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 1200px) {
  .header-info_block {
    display: none;
  }

  .offer_title {
    font-size: 34px;
  }
}
@media (max-width: 1000px) {
.news .trafic-item_title {
    font-size: 18px;
    line-height: 18px;
}
.slide-project {
    flex-direction: column;
}
.scroll-container {
        height: 72vh;
    }
    .slide-content-left img {
    max-height: 300px;
    max-width: 500px !important;
}
.slide-content-right {
    gap: 5px;
}
.slide-content-right h2 a {
    font-size: 26px;
    line-height: 26px;
}
.slide-content-right h2 {
    margin-bottom: 5px;
}
.slide-content-right p {
    font-size: 14px;
    line-height: 18px;
}
.blog {
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.uslugi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 986px) {
  .error-sec {
    flex-direction: column;
}
.error-sec-btn-link {
    width: fit-content;
}
.error-sec-block {
    padding: 50px 0;
}
.error-sec-block-image{
  align-self: anchor-center;
}
}
@media (max-width: 910px) {
    .scroll-container {
        height: 75vh;
    }
}
@media (max-width: 908px) {
    .scroll-container {
        height: 80vh;
    }
}
@media (max-width: 830px) {
.project-item-bottom-header h2 {
    font-size: 22px;
    line-height: 24px;
}
.project-item-bottom p {
    font-size: 14px;
    line-height: 16px;
}
.project-item-bottom-header .tegi a {
    font-size: 12px;
    padding: 7px;
}
}
@media (max-width: 800px) {
.news-container {
        grid-template-columns: 1fr 1fr;
}
.empty-block, .min-news-empty-block{
  display: none;
}
.long-news-block, .min-news-block{
  margin-bottom: 0!important;
}
.news .trafic-item_title {
    font-size: 20px;
    line-height: 25px;
}
.block-contacts .container-fluid {
    grid-template-columns: 1fr;
}
.contacts-first {
    grid-column: span 1;
}
}
@media (max-width: 768px) {
  .offer_label {
    letter-spacing: 2px;
    font-size: 24px;
  }

  .offer_title {
    text-align: center;
  }

  .offer_text {
    letter-spacing: 2px;
    font-weight: 100;
    font-size: 16px;
  }

  .container-fluid .row {
    flex-direction: column;
  }

  .about-advantages .row {
    flex-direction: row;
  }

  .advantages-item_label {
    font-size: 14px;
    margin-bottom: 0;
  }

  .advantages-item_numbers {
    font-size: 40px;
    margin-bottom: 5px;
  }

  .services-main {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .stone-block {
    max-width: 100px;
  }

  .about {
    padding-top: 60px;
  }
  .field-field-photos {
    grid-template-columns: 1fr 1fr;
}
.header-about .container-fluid {
    grid-template-columns: auto;
}
.row.section_2{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
        padding-top: 50px;
}
.row.section_2:before {
    width: 100%;
}
.section_3_block {
    grid-template-columns: 1fr;
}
.vertical-align_center .menu-item a {
    font-size: 36px;
}
.block-body-items{
    grid-template-columns: 1fr;
}
.servicepage {
        padding: 15px;
    }
        .service_block {
    flex-direction: column;
}
.uslugi_block_net {
    display: grid;
            grid-template-columns: 1fr;
            gap: 25px;
}

.mail, .remote{
  grid-row: span 1;
}
.uslugi_block_stage {
    grid-template-columns: 1fr 1fr;
}
.seo-plass-block{
    grid-template-columns: 1fr;
}
.uslugi-content {
    padding: 1.5em 1em;
}
}
@media (max-width: 739px) {
  .header-phone {
    display: none;
  }
}
@media (max-width: 739px) {
      .project-container {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 647px) {
    .scroll-container {
        height: 85vh;
    }
    .blog {
        grid-template-columns: 1fr;
    }

}
@media (max-width: 600px) {
  .about-advantages .row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  #block-mric-vebforma #edit-container {
    grid-template-columns: 1fr;
}
.block-feedback .block-title {
    font-size: 36px;
    line-height: 38px;
}
.feedback_text a {
    font-size: 26px;
    line-height: 28px;
}
.block-feedback {
    padding-right: 0;
}
.header-about_intro h2 {
    font-size: 50px;
}
.header-about_intro p {
    font-size: 20px;
  }
  .header-about_intro {
    max-width: 450px;
}
.uslugi-container {
        grid-template-columns: 1fr;
    }
    #block-mric-views-block-uslugi-str-block-1 .block-title, #block-mric-views-block-uslugi-str-block-3 .block-title, #block-mric-views-block-uslugi-str-block-2 .block-title, #block-mric-views-block-uslugi-str-block-4 .block-title, #block-mric-views-block-uslugi-str-block-5 .block-title {
    font-size: 24px;
    }
}
@media (max-width: 595px) {
.footer .site-branding{
    justify-content: center;
}
.footer-block {
    justify-items: center;
}
    #uslugi-top h3 {
        font-size: 28px;
    }
        .service_block .list_uslugi {
        font-size: 12px;
    }
}
@media (max-width: 553px) {
    .scroll-container {
        height: 90vh;
    }
    .slide-content-left img {
        max-height: 250px;
        max-width: 350px !important;
    }
}
@media (max-width: 550px) {
  .offer_label {
    font-size: 20px;
  }

  .offer_text {
    font-size: 14px;
  }
  .offer_label, .offer_text{
    padding: 20px 40px 40px;
  }
  .uslugi_block_stage {
    grid-template-columns: 1fr;
}
.news-container {
        grid-template-columns: 1fr;
}
.trafic-item {
    min-height: 350px;
}
}

@media (max-width: 500px) {
  .stone-block {
    max-width: 60px;
  }

  .services-main {
    grid-template-columns: 1fr;
  }

  .header_btn {
    display: none;
  }
    .field-field-photos {
    grid-template-columns: 1fr;
}
.news-item_title {
    margin: 0 20px 5px;
    font-size: 18px;
    line-height: 22px;
}
    .row.section_2 {
        grid-template-columns: 1fr;
    }
    .section_3 h3, .block-title {
    font-size: 20px;
}
.header-about_title h1 {
    font-size: 38px;
}
.section_3_block .item {
    padding: 15px 5px;
}
.block-content-item img {
    max-width: 100% !important;
}
.row.section_2:before {
    background-size: auto;
}
.block-body-item .title {
    font-size: 18px;
}
.block-body-item .block-list {
    font-size: 14px;
}
.block-contacts .contacts-first .contacts-title {
    font-size: 22px;
}
.block-contacts .contacts-title {
    font-size: 20px;
}
.block-contacts .doljnost {
    font-size: 18px;
}
.block-contacts .name {
    font-size: 18px;
}
.contacts-info-all a {
    font-size: 14px;
}
}
@media (max-width: 400px) {
  .projects_title {
    font-size: 36px;
    line-height: 38px;
  }
  .projects_title span {
    font-size: 18px;
    line-height: 20px;
  }
      .slide-content-right h2 a {
        font-size: 20px;
        line-height: 20px;
    }
    .slide-content-right h2{
      line-height: 20px;
    }
    .tegi a {
    padding: 7px;
  }
  .advantages-item_numbers {
    font-size: 34px;
  }

  .advantages-item_label {
    font-size: 12px;
  }
  .advantages-item {
    padding: 15px 0;
}
.about-description_title {
    font-size: 36px;
}
.services-main_title {
    font-size: 30px;
}
.services-main-item_title {
    font-size: 28px;
  }
  .services-main-item_description{
    margin-bottom: 0;
  }
  .news .trafic-item_title {
    font-size: 18px;
    line-height: 18px;
}
.error-sec-title {
    font-size: 28px;
}
.error-sec-block {
        padding-top: 0;
    }
}

@media (max-width: 404px) {
    .scroll-container {
        height: 95vh;
    }
    .block-projects .region-project{
          padding: 0 15px;
    }
}
@media (max-width: 350px) {
.news-item_sub {
  align-items: stretch;
    flex-direction: column;
    gap: 10px;
}
}