@media screen and (max-width: 1340px) {
  .header-landing-menu {
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 56px;
    left: -80px;
    background-color: var(--grey-light);
    height: calc(100vh - var(--wp-admin-bar-height-32) - 72px - 4px);
    visibility: hidden;
    opacity: 0;
    width: 100%;
  }

  .header-landing-menu.active {
    width: 100vw;
    visibility: visible;
    opacity: 1;
  }

  .header-landing-menu ul {
    flex-direction: column;
    font-size: 20px;
  }


  .header-landing-menu-actions .burger-menu {
    display: flex;
  }

  .header-landing-menu-actions .button-outlined.red {
    display: flex;
  }
}

@media screen and (max-width: 1220px) {
  .header-landing-menu {
    left: -20px;
  }

  .header, section, .footer, .service-item {
    padding: 20px;
  }

  .header {
    margin-top: 0;
  }

  .menu {
    column-gap: 8px;
  }

  .news-all {
    grid-template-columns: repeat(3, 1fr);
  }

  .content {
    padding-bottom: 20px;
  }

  .about-text {
    background-position: top 0 right -400px, left -404px top -129px;
  }
}

@media screen and (max-width: 1150px) {
  .swiper-products {
    height: 400px;
  }
}

@media screen and (max-width: 1000px) {
  .product-card-swiper {
    grid-template-columns: 3fr 2fr;
  }

  .services, .support {
    gap: 20px;
  }

  .news-all {
    grid-template-columns: repeat(2, 1fr);
  }

  .burger-menu {
    display: flex;
  }

  .menu {
    padding: 0 8px 8px;
    position: absolute;
    bottom: 0;
    transform: translateY(100%);
    background-color: var(--white);
    flex-direction: column;
    display: flex;
    visibility: hidden;
    opacity: 0;
    z-index: 10;
    height: calc(100vh - (48px + 20px));
    height: calc(100dvh - (48px + 20px));
  }

  .header .menu {
    overflow-y: auto;
    left: -20px;
    width: calc(100% + 40px);
  }

  .footer__contacts {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer .menu {
    position: static;
    transform: none;
    background-color: transparent;
    visibility: visible;
    opacity: 1;
    height: auto;
    z-index: 0;
  }

  .menu.active {
    padding-top: 12px;
    visibility: visible;
    opacity: 1;
  }

  .menu-item .button-text input[type="checkbox"] {
    display: flex;
  }

  .menu-item hr {
    display: flex;
  }

  .menu-item__c-img {
    display: flex;
  }

  .menu-item .button-text img {
    display: flex;
  }

  .menu-item:hover::before {
    background-color: transparent;
  }

  .menu-item.active .submenu {
    visibility: visible;
    opacity: 1;
    max-height: 500px;

  }

  .submenu {
    display: flex;
    position: static;
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height .3s ease-in-out;
  }

  .submenu-item {
    font-size: 12px;
  }

  .submenu-item:first-of-type {
    padding-top: 8px;
  }

  .submenu-item:last-of-type {
    padding-bottom: 8px;
  }

  .footer .hr {
    display: none;
  }

  .footer .menu-item:last-of-type hr {
    display: none;
  }

  .section-swiper-big {
    background-position: top -20px right -300px, left -90px bottom -60px;
    background-size: 400px 300px, 400px 300px;
  }


  .about, .vacancy-detail, .news-all, .cooperation, .partnership-program-v2, .news-header, .support-lead {
    grid-template-columns: 1fr;
  }

  .support-lead__content {
    min-height: auto;
  }

  .support-lead img {
    min-height: 400px;
  }

  .cooperation-content {
    min-height: auto;
  }

  .cooperation-content__c-btn {
    align-items: center;
  }

  .cooperation img {
    min-height: 300px;
  }

  .logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .content[data-page-type="distributors"] .logos {
    grid-template-columns: repeat(3, 1fr);
  }

  .header-menu-item-a-clickable {
    display: none;
  }
  .header-menu-item-a-non-clickable {
    display: block;
  }

}

@media screen and (max-width: 900px) {
  .product-card-swiper {
    grid-template-columns: 2fr 3fr;
  }
}

/*Контакты футера*/
@media screen and (max-width: 850px) {

  .card-icon-caption li {
    min-width: calc((100% - 24px) / 2);
  }


  .advantages[data-width="50"] li {
    min-width: 100%;
  }

  .section-block-form {
    background-position: right -402px top -141px;
    background-size: 423px 256px;
  }

  .content {
    padding-bottom: 16px;
  }

  .swiper-products {
    height: 600px;
    padding-bottom: 0;
  }

  .product-card-swiper {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .product-card-swiper img {
    /*width: auto;*/
    justify-self: center;
    height: 350px;
  }

  .product-card img {
    min-height: 150px;
  }

  .news-detail, .services-lead, .service-detail {
    display: flex;
    flex-direction: column-reverse;
    row-gap: 12px;
  }

  .news-detail img, .services-lead img, .service-detail img {
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
  }

  section.section-horizontal {
    flex-direction: column;
  }

  .ecosystem-lead, .ecosystem-lead + img {
    width: 100%;
  }

  .content[data-page-type="distributors"] .logos {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__contacts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 8px;
  }

  .footer__contacts .social {
    grid-column-start: 2;
    grid-row-start: 1;
    justify-content: center;
  }

  .footer__contacts-logo {
    grid-row-start: 2;
    grid-column-start: 1;
  }

  .footer__contacts-email {
    grid-row-start: 1;
    text-align: end;
    grid-column-start: 3;
  }

  .footer__contacts-phone {
    grid-column-start: 1;
    grid-row-start: 1;
  }

  .footer__contacts-docs {
    grid-row-start: 2;
    grid-column-start: 3;
    text-align: end;
  }

  .form-block-container, .centers, .block-text-image, .support {
    grid-template-columns: 1fr;
  }

  .support {
    grid-auto-rows: 250px;
  }

  .service-item[data-card-type="small"] {
    width: 100%;
  }

  .products-other {
    flex-direction: column;
  }

  .form-main form button {
    margin-top: 0;
  }

  .form-block form {
    align-items: center;
    justify-content: space-between;
  }

  .cooperation img, .block-text-image img {
    min-height: 200px;
  }

  .partnership-program-v2__img {
    max-height: 250px;
  }

  .block-text-image__content {
    min-height: auto;
  }

  .ecosystem-filter {
    flex-direction: column;
    align-items: stretch;
  }

  .ecosystem-filter .input-label {
    width: 100%;
    min-width: auto;
  }

  .support-lead__content {
    row-gap: 12px;
  }

  .block-text-image[data-grid-column-width="30"] {
    grid-template-columns: 1fr;
  }

  .block-text-image img {
    min-height: 300px;
  }
}

@media screen and (max-width: 650px) {
  .content[data-page-type="osnova"] .block-text-image[data-grid-column-width="30"] img {
    max-height: 300px;
  }

  .section-text-block {
    background-position: right -392px bottom -166px, left -146px bottom -240px;;
    background-size: 423px 256px;
  }

  .ecosystem-text {
    background-position: right -465px bottom -433px;
  }

  .swiper-products {
    height: 500px;
    padding-bottom: 0;
  }

  .product-card-swiper {
    height: 500px;
  }

  .product-card-swiper img {
    height: 300px;
  }

  .header-landing-menu {
    left: -8px;
    top: 44px;
    height: calc(100vh - var(--wp-admin-bar-height-32) - 20px);
  }

  .header .menu {
    left: -12px;
    width: calc(100% + 24px);
    height: calc(100vh - (48px + 10px));
    height: calc(100dvh - (48px + 10px));
  }

  .header {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  section {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .footer {
    padding-top: 10px;
  }

  h1, .text-h1 {
    font-size: 24px;
  }

  section {
    row-gap: 20px;
  }

  .content {
    padding-bottom: 16px;
  }

  h2, .text-h2 {
    font-size: 20px;
  }

  h3, .text-h3 {
    font-size: 18px;
  }

  .swiper-big-slide h1 {
    margin-bottom: 12px;
  }

  .text-block,
  .title-container-v2,
  .services-card,
  .approach,
  .expertise-card,
  .partnership-program-v2__content,
  .products-other,
  .ecosystem-lead,
  .support,
  .services,
  .form-fail-wrapper,
  .form-success-wrapper,
  .about-imgs,
  .footer__content {
    row-gap: 12px;
  }

  .text-block .text-h2, .text-22 {
    font-size: 16px;
  }

  .text-20 {
    font-size: 15px;
  }

  .text-16 {
    font-size: 14px;
  }

  .button, .button-secondary, .button-outlined {
    font-size: 16px;
    padding: 6px 12px;
  }

  .services-swiper {
    height: 500px;
  }

  .reviews-card {
    height: 260px;
  }

  .clients-logo-card {
    height: 100px;
  }

  .services-card, .approach-card, .clients-logo-card a, .vacancy, .centers-place-card, .products-other-card, .support-card, .center-card {
    padding: 8px;
  }

  pre.text-22 ul {
    padding-left: 8px;
  }

  .advantages {
    padding-left: 14px;
  }

  .advantages li {
    padding: 8px 8px 8px 24px;
  }

  .advantages-marker {
    width: 36px;
    height: 36px;
  }

  .approach-card {
    width: 100%;
    height: auto;
  }

  .expertise {
    column-gap: 20px;
  }

  .expertise-cards, .expertise img {
    width: calc((100% - 20px) / 2);
    gap: 20px;
  }

  .expertise-card {
    width: calc((100% - 20px) / 2);
  }

  .services-card img {
    height: 35%;
  }

  .about, .contacts-text {
    grid-row-gap: 12px;
  }

  .about-imgs__lines img {
    height: 150px;
  }

  .form-block-container img {
    min-height: 150px;
    max-height: 300px;
  }

  .about-imgs__lines {
    gap: 12px;
  }

  .vacancy {
    height: auto;
    min-height: 140px;
  }

  .vacancies {
    grid-template-columns: 1fr;
  }

  .contacts {
    flex-direction: column;
  }

  .contacts iframe, .contacts-text {
    width: 100%;
  }

  .contacts__address {
    padding-bottom: 0;
  }

  .form-block pre, .input-label .input-title.dark {
    padding-bottom: 2px;
    font-size: 16px;
  }

  .form-main form label[data-width="small"] {
    width: 100%;
  }

  .checkbox-label {
    font-size: 16px;
  }

  ::-webkit-input-placeholder { /* WebKit, Blink, Edge */
    font-size: 16px;
  }

  :-moz-placeholder { /* Mozilla Firefox 4 to 18 */
    font-size: 16px;
  }

  ::-moz-placeholder { /* Mozilla Firefox 19+ */
    font-size: 16px;
  }

  :-ms-input-placeholder { /* Internet Explorer 10-11 */
    font-size: 16px;
  }

  ::-ms-input-placeholder { /* Microsoft Edge */
    font-size: 16px;
  }

  ::placeholder { /* Most modern browsers support this now. */
    font-size: 16px;
  }

  form {
    row-gap: 4px;
  }

  .form-block-container {
    grid-row-gap: 12px;
  }

  .header, section, .footer {
    padding-left: 12px;
    padding-right: 12px;
  }

  .menu {
    padding: 0;
  }

  .footer .menu-item .button-text a {
    padding-left: 0;
  }

  .header .menu-item .button-text a {
    padding-left: 8px;
  }

  .footer .menu-item__c-img {
    padding-right: 0;
  }

  .header .menu-item__c-img {
    padding-right: 8px;
  }

  .submenu-item {
    padding-left: 8px;
    padding-right: 8px;
  }

  .header__action {
    column-gap: 8px;
  }

  .header__action .button {
    display: none;
  }

  .header__action .button-icon {
    display: flex;
  }

  .footer__contacts {
    padding-right: 0;
    padding-left: 0;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 8px 0;
  }

  .footer__contacts-logo {
    grid-row-start: 3;
    grid-column-start: 1;
    text-align: start;
  }

  .footer__contacts .social {
    grid-column-start: 2;
    grid-row-start: 2;
    justify-content: end;
  }

  .footer__contacts-docs {
    grid-row-start: 2;
    grid-column-start: 1;
    text-align: start;
  }

  .footer__contacts-email {
    grid-column-start: 2;
  }

  .news-card {
    height: auto;
    min-height: 360px;
  }

  .news-swiper {
    height: auto;
    min-height: 360px;
  }

  .news-card__content {
    padding-bottom: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }

  .news-card img {
    margin-bottom: 0;
    height: 150px;
  }

  .news-detail img {
    max-height: 200px;
    min-height: 200px;
  }

  .doc {
    padding: 8px 12px;
    border-radius: 8px;
  }

  .docs img {
    height: 32px;
  }

  .service-item__content, .service-item {
    min-height: 150px;
  }

  .service-item img {
    min-height: 150px;
    max-height: 150px;
  }

  .form-main form button {
    margin-top: 8px;
  }

  .partnership-program-v2__content pre li:before {
    width: 10px;
    height: 10px;
    background-position: center;
    background-size: contain;
  }

  .content[data-page-type="distributors"] .logos {
    grid-template-columns: 1fr;
  }

  .partners {
    flex-direction: column;
  }

  .partners-content .filter, .partners-content .filter form:nth-of-type(2) {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item__content, .service-item {
    min-height: auto;
  }

  .filter-cities-cont {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .filter-city form button {

  }

  .centers-places {
    overflow: hidden;
    flex-direction: column;
    row-gap: 12px;
    flex-wrap: nowrap;
  }

  .centers-place-card {

  }

  .block-text-image img {
    min-height: 150px;
  }

  .products-swiper {
    height: 600px;
  }

  .section-lead-landing {
    background-position: right -204px bottom -151px;
    background-size: 400px 300px;
  }

  .lead-landing-caption {
    margin-top: 40px;
  }

  .section-header-landing {
    margin-bottom: 16px;
    padding: 8px !important;
  }

  .row-20, .flex-column-block {
    row-gap: 12px;
  }

  .section-block-form {
    background-position: right -402px top -141px;
    background-size: 423px 256px;
  }

  .contacts-section-phone {
    margin-top: -1rem;
  }

  .departments{
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 колонки одинаковой ширины */
    grid-template-rows: repeat(2, auto);   /* 2 строки с авто-высотой */
    gap: 10px; /* Промежуток между элементами */
  }

}

@media screen and (max-width: 500px) {

  .card-icon-caption li {
    min-width: 100%;
  }

  .text-wysiwyg img {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    object-position: center;
  }

  .float-left {
    margin-right: 8px;
    margin-bottom: 8px;
  }

  .float-right {
    margin-left: 8px;
    margin-bottom: 8px;
  }

  .logos {
    grid-template-columns: 1fr;
  }

  .expertise {
    flex-direction: column;
  }

  .expertise-cards, .expertise img {
    width: 100%;
  }

  .page td {
    text-align: start;
    padding: 8px 8px;
  }

  .support {
    grid-auto-rows: 222px;
  }

  .page textarea {
    min-height: 90px;
  }

  .landing-logo {
    max-width: 90px;
  }
}

@media screen and (max-width: 380px) {
  .news-header .filter form:nth-of-type(2) {
    flex-direction: column;
    row-gap: 12px;
  }

  .filter-cities-cont {
    grid-template-columns: 1fr;
  }
}

/*admin-bar*/
@media screen and (max-width: 782px) {
  html[adminbar-present="yes"] .header, html[adminbar-present="yes"] .section-header-landing {
    top: var(--wp-admin-bar-height-46);
  }

  /*html[adminbar-present="yes"] .page {*/
  /*  min-height: calc(100vh - 46px);*/
  /*  min-height: calc(100dvh - 46px);*/
  /*}*/
}

/*admin-bar*/
@media screen and (max-width: 600px) {
  html[adminbar-present="yes"] .header, html[adminbar-present="yes"] .section-header-landing {
    top: 0;
  }
}


/*no hover*/
@media screen and (max-width: 850px) {
  @media (hover: hover) {
    pre a:hover {
      color: var(--black);
    }

    .button:hover {
      border: 1px var(--red) solid;
      background: var(--red);
    }

    .button-secondary:hover {
      background: var(--grey-dark);
    }

    .button-outlined:hover, .button-outlined.active:hover {
      color: var(--grey) !important;
      border: 1px var(--grey) solid;
    }

    .button-outlined.red:hover {
      color: var(--red) !important;
      border-color: var(--red);
    }

    .button-text:hover {
      color: var(--black);
    }

    .page form a:hover {
      border-bottom-color: transparent;
      color: var(--black);
    }

    .submenu-item:hover {
      color: var(--black);
      background-color: var(--white);
    }

    /**/
    .footer .submenu-item:hover {
      background-color: transparent;
    }

    .footer .menu-item .button-text a:hover {
      color: var(--black);
    }

    .footer__contacts a:hover {
      color: var(--black);
    }

    .news-card .tags-group a:hover {
      color: var(--grey);
    }

    .vacancy:hover, .doc:hover {
      scale: 1;
    }

    .contacts-text div a:hover {
      color: var(--black);
    }

    .swiper-button-prev:hover svg {
      transform: translateX(-0%);
    }

    .swiper-button-next:hover svg {
      transform: translateX(0%);
    }
  }
}


