@media (max-width: 1700px) {
}

@media (max-width: 1420px) {
}
@media (max-width: 1351px) {
  .cabinet-menu {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: start;
  }
  .principles-row {
    height: auto;
  }
}


@media (max-width: 1286px) {
  .contact__card {
    padding: 24px;
  }
}
@media (max-width: 992px) {
  h1 {
    font-size: 40px;
  }
  h2 {
    font-size: 24px;
  }
  h4 {
    font-size: 20px;
  }
  h5 {
    font-size: 16px;
  }
  p {
    font-size: 12px;
  }

  main {
    margin-top: 68px;
  }
.header {
    height: 68px;
}
  /* Switch to mobile grid for news */
  .news-slider-desktop {
    display: none !important;
  }

  .news-grid-mobile {
    display: block !important;
  }

  .blog_list_area .slider-wrapper {
    margin-top: 24px;
    margin-bottom: 24px;
  }
  .header__container,
  .stats .container,
  .about .container,
  .services .container,
  .cabinet .container-fluid,
  .contact .container,
  .news .container,
  .footer .container {
    padding-left: 16px;
    padding-right: 16px;
  }
  .swiper-container-title-home {
    padding: 0 16px;
    padding-top: 100px;
  }
  .swiper-title {
    font-size: 40px;
  }
  .hero__wave {
    height: 10vw;
    min-height: 60px;
    max-height: 125px;
  }
  .hero__wave svg {
    height: 100%;
  }
  .swiper-container-btn {
    display: none;
  }

  /* Switch to mobile images in slider */
  .about-hero__image--desktop {
    display: none !important;
  }

  .about-hero__image--mobile {
    display: block !important;
  }
  .header__logo svg {
    height: 38px;
    width: 74px;
  }
  .header__profile {
    height: 38px;
  }
  .header__container {
    padding: 0 16px;
  }
  .header__nav {
    display: none;
  }
  .toggle-menu {
    display: block;
  }
.cabinet-button-submenu {
    top: 35px;
}
  .mobile-menu {
    position: absolute;
    left: -110%;
    display: block;
    width: 220px;
    pointer-events: auto;
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    top: 69px;
  }
  #mobile-menu.active {
    left: 16px;
    pointer-events: auto;
    opacity: 1;
  }
  .mobile-menu__nav {
    border-radius: 4px;
    overflow: hidden;
  }
  .mobile-menu__menu {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    background-color: var(--gray-700);
    gap: 2px;
    margin: 0;
  }
  .mobile-menu__menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--gray-800);
    width: 100%;
  }
  .mobile-menu__menu-item:hover {
    background-color: var(--gray-700);
  }
  .mobile-menu__menu-item a {
    padding: 15px 16px;
    color: var(--gray-f);
    width: 100%;
  }
  .header__switcher-mobile {
    display: flex;
    flex-direction: row;
    gap: 2px;
    background-color: var(--gray-700);
  }

  .header__container {
    gap: 20px;
  }
  .header__switcher {
    height: 38px;
  }
  .nav-wrap {
    gap: 8px;
  }
  .header__switcher-btn {
    height: 100%;
    font-size: 12px;
  }
  .header__switcher-btn-mobile {
    padding: 15px 16px;
    background-color: var(--gray-800);
    color: var(--gray-f);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 16px;
    font-weight: 700;
    transition: background-color 0.3s ease;
  }
  .header__profile--wrap__user {
    width: 30px;
    justify-content: center;
    padding-right: 0;
  }
  .header__profile--wrap__user .icon {
    padding-left: 0;
    padding-right: 0;
  }
  .header__profile--wrap__user {
    height: 48px !important;
    width: 48px !important;
  }
  .cabinet-btn-more {
    height: 48px !important;
    width: 36px !important;
  }

  .header__switcher-btn-mobile:hover,
  .header__switcher-btn-mobile.header__switcher-btn--active:hover {
    background-color: var(--gray-700);
    color: var(--gray-f);
  }
  .header__switcher-btn-mobile.header__switcher-btn--active {
    color: var(--yellow-500);
    background-color: var(--gray-800);
  }

  

  .contacts-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .cabinet__row div,
  .contacts-row div {
    width: 100%;
  }
  .cabinet__row div {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cabinet__row img{
max-width: 237px;
  }
  .contact__card-title {
    font-size: 16px;

  }
  .contact__card-text {
    font-size: 12px;
  }
  .contact__card-btn {
    font-size: 14px;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }
  .contact__card svg{
    height: 24px;
    width: 24px;
  }
.home-contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
  .cabinet__text {
    padding-right: 0;
    max-width: 100%;
  }
  .about__content {
    padding-right: 0;
  }
  .cabinet__content a {
    width: 100% !important;
  }

  .home-about__row,
  .cabinet__row {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .services__row {
    flex-direction: column;
    gap: 32px;
    margin-top: 56px;
  }
  .services__content {
    padding: 0;
  }
  .services__btn {
    width: 100% !important;
  }
  .stats__number {
    font-size: 24px;
  }
  .stats__label {
    font-size: 12px;
  }
  .services-images {
    flex-direction: column;
    height: auto;
  }
  .services-page-list-item {
    padding: 16px;
  }
  .services-page-list-item-svg-wrap {
    align-items: start;
  }
  .services-page-list-item-svg-wrap svg {
    height: 38px;
    width: 38px;
  }
  .services-images-kyiv {
    height: auto;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .services-images-kyiv > div:nth-child(1) {
    order: 2;
    flex: 1 1 calc(50% - 10px);
  }
  .services-images-kyiv > div:nth-child(2) {
    order: 1;
  }
  .services-images-kyiv > div:nth-child(3) {
    order: 3;
    flex: 1 1 calc(50% - 10px);
  }
  .benefits .container {
    padding: 24px;
    gap: 24px;
  }
  .benefits__title {
    text-align: center;
  }
  .benefits__icon {
    height: 32px;
    width: 32px;
    margin-bottom: 16px;
  }
  .principles-row {
    flex-direction: column-reverse;
    max-height: none;
  }
  .principles__content {
    gap: 24px;
  }
  .principles__image {
    width: 100%;
    height: auto;
  }
  .footer-row {
    flex-direction: column;
    gap: 32px;
  }
  .principles-left .principles__content {
    padding: 24px !important;
  }

  .swiper-button-prev,
  .swiper-button-next {
    display: none !important;
  }
  .about-news__card-image {
    height: auto;
  }
  .about-news__card-content {
    padding: 16px;
    height: 130px;
  }
  .swiper-about-news {
    height: 445px;
  }
  .about-news__card-text {
    margin-bottom: 12px;
  }
  .news-grid-mobile {
    margin-top: 32px;
  }
  .news-grid-item .about-news__card {
    height: fit-content;
  }
  .news-grid-pagination {
    margin-bottom: 32px;
  }
  .blog_d_bottom_text img {
    width: 100%;
  }

  .about-news__card-date {
    font-size: 12px;
  }
  .benefits__card {
    max-width: none;
    margin-bottom: 8px;
  }
  .swiper {
    width: 100%;
    height: 640px;
  }
  .hero {
    position: relative;
    height: 640px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }
  .hero__slider {
    position: relative;
    height: 640px;
    width: 100%;
  }
  .footer__link {
    padding: 0;
  }
  .user-card-wrapper {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
  }
  .user-card-wrapper h4 {
    font-size: 16px;
  }
  .user-card-wrapper .card {
    padding: 16px;
  }
  .user-card-wrapper .user-card-full-icon {
    height: 24px;
    width: 24px;
  }
  .section-cabinet {
    padding-top: 16px;
  }
  .user-card-wrapper .card {
    max-width: 100%;
  }
  .user-card-full {
    gap: 24px;
  }
  .cabinet-menu {
    width: auto;
    overflow-x: scroll;
    justify-content: start;
    height: 62px;
  }
  .pays {
    height: 45px;
  }
  .cabinet-menu {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; 
    position: relative;
    white-space: nowrap; 
  }

  .user-wrapper_account-title {
    width: 100%;
  }

  .menu-title-to-object {
    background-color: transparent !important;
  }

  .section-profile-menu {
    height: auto !important;
  }

  .section-profile-left div,
  .section-profile-right {
    height: 44px;
  }

  .section-profile-left {
    height: auto;
    gap: 12px;
  }

  .form-check-label {
    flex-direction: row-reverse;
    /* margin: 0 !important; */
    font-size: 12px;
    font-weight: 500;
    text-wrap: nowrap;
  }
  .form-check {
padding-left: 0;
  }

  .switch-toggle {
    width: 40px;
    font-size: 16px;
    margin-left: 8px;
  }

  .btn-group-os {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .contact__card {
    padding: 16px;
    gap: 20px;
  }
  .about__btn {
    width: 100%;
  }
  .about__content,
  .services__content,
  .cabinet__content {
    gap: 32px;
  }

  .btn-archive {
    font-size: 14px;
  }
  .checkbox {
    display: flex;
    align-items: center;
    justify-content: left;
  }
  .section-profile-left {
    justify-content: space-between;
    width: 100%;
  }
  .section-profile-right {
    gap: 12px;
  }
  .section-profile-menu-wrap {
    gap: 12px;
  }
  .pay-btn {
    height: 45px;
    padding: 0 16px;
  }

  .select2-container--krajee-bs4 .select2-selection--single {
    overflow: hidden !important;
    white-space: nowrap !important;
  }
  .select2-container--krajee-bs4
    .select2-selection--single
    span.select2-selection__rendered {
    /* overflow: hidden !important; */
    white-space: nowrap !important;
    position: relative !important;
    display: inline-block !important;
    /* animation: scroll-text 10s linear infinite; */
    overflow: visible;
    text-overflow: initial;
  }
  .select2-container--krajee-bs4
    .select2-selection--single
    .select2-selection__arrow {
    margin-right: 0 !important;
    width: 46px !important;
    height: 96% !important;
  }
  .faq-info p {
    font-size: 12px;
  }
  .faq-info {
    margin-bottom: 32px;
  }
  .accordion .card-header {
    padding: 16px;
  }
  .accordion .card-header button {
    padding: 0;
  }
  .accordion .card-header span {
    font-size: 16px;
  }
  .accordion button .arrow-mobile {
    transition: transform 0.3s;
    height: 24px;
    width: 24px;
    flex-shrink: 0;
    min-width: 24px;
    min-height: 24px;
  }
  .accordion .btn:not(.collapsed) .arrow-mobile {
    transform: rotate(-90deg);
  }

  /* @keyframes scroll-text {
    0%,
    10% {
      transform: translateX(0);
    }
    90%,
    100% {
      transform: translateX(calc(-100% + 100px));
    }
  } */

  .user-wrapper {
    height: auto;
  }
  .user-wrapper div {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
  }
  .select2-container--krajee-bs4 {
    height: 46px !important;
  }
  .select2-selection__arrow {
    background-color: var(--gray-50);

    bottom: 1px !important;
  }
  .bid-apply {
    flex-direction: column;
  }
  .bid-apply-left,
  .bid-apply-right {
    padding: 16px;
    gap: 16px;
  }
  .cabinet-news .content-items {
    grid-template-columns: repeat(1, 1fr);
    gap: 8px;
  }
  .cabinet-news-item {
    padding: 16px;
  }
  .cabinet-news-item-title {
    font-size: 16px;
    font-weight: 500;
  }
  .modal-content {
    padding: 40px 16px 16px;
  }
  #secondFrom .button-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
  }
  .footer__link,
  .footer__contacts-text,
  .footer__contacts-title {
    font-size: 12px;
    color: var(--gray-f);
  }
  .policy-content p,
  .policy-content li {
    font-size: 12px;
  }
  .policy-content-item h5 {
    margin-bottom: 12px;
  }

  #bwc-widget-action {
    bottom: 70px !important;
    right: 16px;
}
#bwc-wrap #bwc-chat  {
 bottom: 130px !important;
  right: 16px !important;
}
#go_top {
  right: 16px;
  bottom: 16px;
}

#bwc-wrap #bwc-widget-action,
#bwc-wrap #bwc-widget-action.bwc-mobile {
    right: 16px !important;
}

  .news-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap:8px;
  }

  .error_area_img {
    width: 1920px;
  }



}

@media (max-width: 768px) {
  .swiper-about-news {
    height: 350px;
  }
  .header__container {
    flex-direction: row;
  }
  .hero__wave {
    height: 12vw;
    min-height: 50px;
  }
  .user-wrapper
    .select2-container--krajee-bs4
    .select2-selection--single
    span.select2-selection__rendered {
    /* overflow: hidden !important; */
    white-space: nowrap !important;
    position: relative !important;
    display: inline-block !important;
    animation: scroll-text 10s linear infinite;
    overflow: visible;
    text-overflow: initial;
  }
  @keyframes scroll-text {
    0%,
    10% {
      transform: translateX(0);
    }
    90%,
    100% {
      transform: translateX(calc(-100% + 100px));
    }
  }


}

@media (max-width: 576px) {
  .hero__wave {
    height: 15vw;
    min-height: 45px;
  }
  .swiper-title {
    font-size: 32px;
  }
  .swiper-about-news {
    height: 350px;
  }
  .form-group.buttons {
    flex-direction: column;
    gap: 12px;
  }
  .form-group.buttons a,
  .form-group.buttons button {
    width: 100%;
  }
  .calculation thead tr th {
    font-size: 12px;
    font-weight: 500;
    padding: 4px;
  }
  table td {
    font-size: 12px;
    padding: 4px;
  }
    .contact__card {
    padding: 8px;
    gap: 20px;
  }
}
@media (max-width: 400px) {
  .swiper-about-news {
    height: 300px;
  }
}
