/* === DESKTOP FIRST === */

/* xl <= Extra extra large (xxl) */
@media (max-width : 1400px) {

}

/* lg <= Extra large (xl) */
@media (max-width : 1200px) {
  .left_menu {
    width: 100%;
  }
}

/* md <= Large (lg) */
@media (max-width : 992px) {
  .h1 {
    font-size: 42px;
    line-height: 48px;
  }
  .h2 {
    font-size: 36px;
    line-height: 38px;
  }
  .h3 {
    font-size: 22px;
    line-height: 26px;
  }
  .h4 {
    font-size: 18px;
    line-height: 26px;
  }
  .md_text {
    font-size: 18px;
    line-height: 26px;
  }
  .sm_text {
    font-size: 16px;
    line-height: 24px;
  }
  .xsm_text {
    font-size: 14px;
    line-height: 18px;
  }
  .header {
    padding: 12px 0;
  }
  .header .logotype {
    margin-right: 32px;
  }
  .btn {
    padding: 12px 22px;
    font-size: 14px;
  }
  .btn.btn_lg {
    padding: 17px 34px;
  }
  .site_description,
  .choose_block__label,
  .filter_item_checkbox label {
    font-size: 14px;
  }
  .register_btn {
    min-width: auto;
  }
  .choose_block__label::after {
    width: 12px;
    height: 12px;
    top: 3px;
  }
  .hero_image {
    min-height: auto;
  }
  .filter_block {
    padding: 30px;
  }
  .filter_item_checkbox label {
    padding: 16px 22px;
  }
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 16px 44px 16px 22px;
    font-size: 14px;
  }
  .adv_section .num_adv_items {
    margin-top: 32px;
  }
  .num_adv_items {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 32px;
  }
  .num_adv_item {
    padding-top: 0;
    padding-left: 0;
  }
  .num_adv_item::before {
    content: attr(data-num);
    background-image: none !important;
    width: 40px;
    height: 40px;
    background: var(--dark-bg);
    z-index: 3;
    border-radius: 50%;
    -webkit-border-radius: 50%;
    -moz-border-radius: 50%;
    -ms-border-radius: 50%;
    -o-border-radius: 50%;
    top: 50%;
    left: 32px;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -moz-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    -o-transform: translateY(-50%);
  }
  .num_adv_item__content {
    padding: 32px 32px 32px 104px;
  }
  .footer_top {
    padding: 30px 0;
  }
  .footer_bottom {
    padding: 24px 0 30px;
  }
  .ms_list, .nav_wrap {
    margin-top: 30px;
  }
  .ms_item {
    padding: 30px;
  }
  .ms_item__content {
    padding-left: 0;
  }
  .main_content {
    margin-bottom: 32px;
  }
  .aside_content .s_news_list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 32px;
  }
  .aside_content .s_news:not(:last-child) {
    margin-bottom: 0;
  }
  .aside_content.aside_padding {
    padding-top: 0;
  }
  .left_menu,
  .aside_content .tabs {
    margin-bottom: 32px;
  }
  .page_menu,
  .tabs {
    padding: 0;
    border: none;
    border-radius: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    -ms-border-radius: 0;
    -o-border-radius: 0;
    display: flex;
    flex-wrap: wrap;
  }
  .page_menu > li,
  .tabs > .tab {
    flex: 0 0 33.33%;
    border-bottom: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
  }
  .page_menu > li:nth-child(3n + 3),
  .tabs > .tab:nth-child(3n + 3) {
    border-right: 1px solid var(--accent);
  }
  .page_menu > li:nth-child(1),
  .page_menu > li:nth-child(2),
  .page_menu > li:nth-child(3),
  .tabs > .tab:nth-child(1),
  .tabs > .tab:nth-child(2),
  .tabs > .tab:nth-child(3) {
    border-top: 1px solid var(--accent);
  }
  .page_menu li:last-child,
  .tabs .tab:last-child {
    border-right: 1px solid var(--accent);
  }
  .page_menu li a,
  .tabs .tab {
    padding: 16px 24px;
    text-align: center;
  }
}

/* sm <= Medium (md) */
@media (max-width : 768px) {
  .h1 {
    font-size: 36px;
    line-height: 42px;
    margin: 0 0 16px 0;
  }
  .h2 {
    font-size: 30px;
    line-height: 32px;
    margin: 0 0 16px 0;
  }
  .h3 {
    margin: 0 0 16px 0;
  }
  .h4 {
    margin: 0 0 16px 0;
  }
  .md_text {
    font-size: 16px;
    line-height: 24px;
  }
  .sm_text {
    font-size: 14px;
    line-height: 22px;
  }
  .filter_block {
    padding: 24px;
  }
  .filter_option__items .filter_item {
    margin: 0 8px 8px 0;
  }
  .num_adv_items {
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 24px;
  }
  .num_adv_item__content {
    padding: 24px 24px 24px 88px;
  }
  .num_adv_item::before {
    font-size: 14px;
    left: 24px;
  }
  .footer_top {
    padding: 24px 0;
  }
  .footer_content {
    text-align: center;
    margin-top: 24px;
  }
  .footer .logotype {
    margin-bottom: 24px;
    text-align: center;
  }
  .footer .main_menu {
    width: 100%;
    text-align: center;
  }
  #content {
    padding: 24px 0 40px;
  }
  .top_content {
    padding-top: 24px;
  }
  .ms_list, .nav_wrap {
    margin-top: 24px;
  }
  .ms_item {
    padding: 24px;
  }
  .ms_block .ctw {
    position: relative;
    bottom: 0;
    margin: 16px 0;
  }
  .ctw .icon {
    display: none;
  }
  .aside_content .s_news_list {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
  }
  .docs_list {
    grid-template-columns: repeat(2, 1fr);
  }
  .top_nav {
    margin-bottom: 24px;
  }
}

/* xs <= Small (sm) */
@media (max-width : 576px) {
  .h1 {
    font-size: 32px;
    line-height: 38px;
  }
  .h2 {
    font-size: 26px;
    line-height: 28px;
  }
  .h3 {
    font-size: 20px;
    line-height: 24px;
  }
  .btn {
    padding: 10px 16px;
  }
  .p_32 {
    padding: 24px 0;
  }
  .mb_24 {
    margin-bottom: 12px;
  }
  .header .logotype {
    margin-right: 16px;
  }
  .logotype img {
    width: 100px;
  }
  .header .site_description {
    display: none;
  }
  .ms_item {
    padding: 16px;
  }
  .ms_item__buttons .btn {
    width: 100%;
    font-size: 12px;
    line-height: 16px;
    margin-bottom: 0;
  }
  .ms_item__buttons .btn:not(:last-child) {
    margin: 0 0 8px 0;
  }
  .ms_item__gallery {
    margin: 16px 0;
  }
  .image_carousel {
    grid-template-columns: minmax(120px, 120px);
    grid-gap: 8px;
  }
  .image_carousel_item {
    width: 120px;
    height: 80px;
  }
  .ms_item__content .price_list {
    margin: 16px 0 24px;
  }
  .ms_block .ms_item__name {
    margin-bottom: 12px;
  }
  .ms_item__list {
    margin: 12px 0;
  }
  .ctw {
    padding: 4px 8px;
  }
  .ctw__label {
    white-space: pre-wrap;
  }
  .page_menu > li,
  .tabs > .tab {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--accent);
    border-left: 1px solid var(--accent);
  }
  .page_menu > li:nth-child(3n + 3),
  .tabs > .tab:nth-child(3n + 3) {
    border-right: none;
  }
  .page_menu > li:nth-child(1),
  .page_menu > li:nth-child(2),
  .tabs > .tab:nth-child(1),
  .tabs > .tab:nth-child(2) {
    border-top: 1px solid var(--accent);
  }
  .page_menu > li:nth-child(3),
  .tabs > .tab:nth-child(3) {
    border-top: none;
  }
  .page_menu li:nth-child(even),
  .tabs .tab:nth-child(even) {
    border-right: 1px solid var(--accent);
  }
  .page_menu li a,
  .tabs .tab {
    padding: 12px 16px;
  }
  .form textarea {
    height: 120px;
  }
  .modal__container {
    padding: 24px;
    min-width: 280px;
  }
}

@media (max-width : 420px) {
  .aside_content .s_news_list {
    grid-template-columns: repeat(1, 1fr);
  }
}


/* === MOBILE FIRST === */

/* Custom (xs) */
@media (min-width : 0) {

}

/* Small (sm) */
@media (min-width : 576px) {

}

/* Medium (md) */
@media (min-width : 768px) {

}

/* Large (lg) */
@media (min-width : 992px) {

}

/* Extra large (xl) */
@media (min-width : 1200px) {
	
}

/* Extra extra large (xxl) */
@media (min-width : 1400px) {
	
}
