/* ============================================
   RESPONSIVE STYLES — MOBILE & TABLET
   Объединены: media.css, max375.css, max576.css, 
   max768.css, max992.css, max1200.css
   ============================================ */

/* ============================================
   БАЗОВЫЕ СТИЛИ (из media.css)
   Без media-запроса — применяются всегда
   ============================================ */

/* --- Product Slider --- */
.product-slider {
  width: 50%;
}
.product-slider .swiper-container {
  width: 100%;
  height: 100%;
}
.product-slider__flex {
  display: flex;
  align-items: flex-start;
  flex-direction: row-reverse;
  gap: 10px;
}
.product-slider__col {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 208px;
}
.product-slider__prev {
  position: absolute;
  top: 0;
  right: 36%;
  z-index: 99;
}
.product-slider__next {
  position: absolute;
  bottom: 0;
  right: 36%;
  z-index: 99;
}
.slider__prev,
.slider__next {
  display: none;
}
.slider__prev:focus,
.slider__next:focus {
  outline: none;
}
.product-slider__thumbs {
  overflow: hidden;
  height: 583px;
}
.product-slider__thumbs .product-slider__image {
  border: 1px solid transparent;
  cursor: pointer;
}
.product-slider__thumbs .swiper-slide-thumb-active .product-slider__image {
  opacity: 1;
  border: 2px solid var(--clr-accent);
  filter: brightness(1);
  border-radius: calc(var(--border-radius) / 2);
}
.product-slider__images {
  position: relative;
  overflow: hidden;
  height: 583px;
  width: 460px;
  border-radius: calc(calc(var(--border-radius) / 2) / 2);
}
.product-slider__image .hover-img::before {
  border-radius: calc(var(--border-radius) / 2);
}
.product-slider__image {
  width: 100%;
  height: 100%;
}
.product-slider__image img {
  border-radius: calc(var(--border-radius) / 2);
  display: block;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}
.product-slider__btn-main--next {
  position: absolute;
  top: 50%;
  right: 2%;
  z-index: 6;
}
.product-slider__btn-main--prev {
  position: absolute;
  top: 50%;
  left: 2%;
  z-index: 6;
}

/* --- Service Description --- */
.service_description-container_img_right {
  float: right;
  margin-left: 50px;
  border-radius: var(--border-radius);
  min-height: 300px;
}
.service_description-pwr {
  height: 100%;
  float: right;
  position: relative;
  margin-bottom: 20px;
}
.service_description-content {
  padding: var(--block-vertical-padding) var(--block-horizontal-padding);
  background-color: var(--clr-secondary);
  border-radius: var(--border-radius);
  min-height: 550px;
}

/* --- About Block Price --- */
.about-block_price {
  position: absolute;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background-color: #fff;
  padding: 7px;
  border-radius: calc(var(--border-radius) * 2);
}
.about-block_price .price-btn {
  font-size: clamp(0.875rem, 0.8rem + 0.38vw, 1.25rem);
  font-family: var(--font_accent);
  font-weight: bold;
}


/* ============================================
   BREAKPOINT: max-width 375.98px
   Маленькие телефоны: iPhone SE, старые Android
   ============================================ */
@media (max-width: 375.98px) {
  .header_bottom_hidden_icons a:first-child {
    display: none;
  }
  .slider__thumbs {
    height: 100px;
  }
  .review_vidget,
  .badge {
    min-width: none !important;
  }
  .about_slide_nav {
    gap: 20px;
  }
}


/* ============================================
   BREAKPOINT: max-width 575.98px
   Телефоны: iPhone 12/13/14, Android
   ============================================ */
@media (max-width: 575.98px) {
  /* Utility classes */
  .h320 {
    display: none !important;
  }
  .v320 {
    display: block !important;
  }

  /* Container */
  :root {
    --container: 100%;
  }

  /* Feedback Form */
  .feedback_form_text {
    gap: 14px;
  }
  .accordion-content {
    margin-left: 0;
  }

  /* Map */
  #map {
    height: 400px !important;
  }

  /* Hero Block */
  .hero_block_slider_wrapper {
    padding: 20px;
  }

  /* Gallery */
  .gallery-page_items {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Price Accordion */
  .price_accordion .price_inner svg {
    display: none;
  }

  /* Header */
  .header_bottom_container .logo {
    min-width: unset;
  }

  /* Files */
  .img_files .btn {
    width: 100%;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  /* Material Item */
  .material_item {
    align-items: start;
    flex-direction: column;
  }
  .material_item_disc {
    width: 100%;
  }

  /* Swiper */
  .swiper-button-prev,
  .swiper-button-next {
    width: 50px;
  }

  /* Partners */
  .our_partners_container {
    padding-right: 0;
  }

  /* Tabs */
  .tabs_filters {
    flex-direction: column;
  }
  .tabs_filters .tab_filter {
    width: 100%;
    justify-content: space-between;
  }
  .tabs__caption li {
    width: 100%;
  }

  /* Product Card */
  .product_card_slider_container {
    padding-right: 0;
  }

  /* Footer */
  .footer_btns .btn {
    width: 100%;
  }

  /* Typography */
  body {
    font-size: clamp(0.75rem, -0.25rem + 5vw, 1rem);
  }

  /* Advantages */
  .advs_item img {
    width: 50px;
  }

  /* Accordion */
  .accordion_title_wrapper {
    padding-top: 0;
    width: 100%;
    padding-bottom: 15px;
  }
  .accordion_item {
    padding: 15px;
  }
  .accordion-header {
    align-items: flex-start;
  }
  .accordion-header svg {
    min-width: 30px;
    width: 30px;
  }

  /* Requisites */
  .requisites_item {
    padding: 15px;
    flex-direction: column;
    gap: 10px;
  }
  .requisites_list_title {
    padding: 15px;
  }
  .requisites_title {
    margin-bottom: 25px;
    gap: 20px;
  }
  .requisites_title .logo {
    width: 90%;
  }

  /* Sale */
  .sale_list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  /* History Slider */
  .history-slider_nav {
    transform: translateY(0);
    position: static;
    margin-top: 10px;
  }
  .history_sliders {
    gap: 15px;
    margin-bottom: 30px;
  }
  .slider_control {
    gap: 25px;
  }
  .history_slider_text3 > .h2.active {
    margin-bottom: 16px;
  }

  /* About Block Price */
  .about-block_price .btn {
    width: auto !important;
    padding: 10px 15px;
  }
  .about-block_price .btn svg {
    display: none;
  }
}


/* ============================================
   BREAKPOINT: max-width 767.98px
   Планшеты в портретной, большие телефоны
   ============================================ */
@media (max-width: 767.98px) {
  /* Utility classes */
  .h576 {
    display: none !important;
  }
  .v576 {
    display: block !important;
  }
  .v576.footer_about_site {
    display: flex !important;
  }

  /* Container */
  :root {
    --container: 540px;
  }

  /* Hero Block */
  .hero_block_wrapper,
  .feedback_form_container {
    background-size: cover;
  }
  .hero_block_content .text-content {
    width: 100%;
  }
  .hero_block_slider_wrapper .swiper-pagination {
    width: 100%;
  }

  /* Sertificates */
  .sertificates_container {
    flex-direction: column;
  }
  .sertificates_text {
    padding-right: var(--block-vertical-padding);
  }

  /* Map */
  .map_container iframe {
    height: 300px;
  }

  /* Preims */
  .preims_2-item {
    flex: 1 450px;
  }

  /* Catalog */
  .catalog_content.active {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Slider */
  .slider__images {
    height: 500px;
  }
  .slider__thumbs {
    height: 175px;
  }

  /* Products */
  .products_items {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Preims */
  .preims_items {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Reviews */
  .review_items {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  /* Search */
  .simplesearch-results-list {
    grid-template-columns: repeat(1, 1fr) !important;
  }

  /* Feedback Form */
  .feedback_form_container button[type="submit"] {
    width: 100%;
  }
  .feedback_form-c-inputs .custom-button {
    align-items: start;
    justify-content: start;
  }

  /* About Content */
  .about_content_right {
    flex-direction: column;
  }
  .about_content_right .about_content-item:nth-child(1) {
    border-top-right-radius: var(--border-radius);
  }
  .about_content_right .about_content-item:nth-child(2) {
    border-radius: 0;
  }

  /* Header */
  .header_bottom_container {
    gap: 0;
  }
  .header-top_nav {
    gap: clamp(0.625rem, -0.313rem + 2.6vw, 0.938rem);
  }

  /* Footer */
  .footer_content {
    flex-direction: column;
  }
  .footer_item,
  .header-contacts_phone {
    align-items: start;
  }
  .footer_btns {
    width: 100%;
    flex-wrap: wrap;
  }
  .footer-list ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  .footer_item {
    flex: 1 1 30%;
  }
  .footer_contacts {
    width: 100%;
    flex-wrap: wrap;
  }

  /* Form Inputs */
  .feedback_form-c-inputs .input {
    justify-content: start;
  }

  /* Advantages */
  .advs_item img {
    width: 60px;
  }
  .advs_item_heading {
    gap: 20px;
  }

  /* Contacts */
  .contacts_list_bottom .btn {
    width: 100%;
  }
  .contacts_content {
    gap: 30px;
  }
  .contacts_card .product_img {
    width: 70px;
    height: 70px;
  }

  /* Requisites */
  .requisites_list_sm {
    max-height: fit-content;
  }
  .requisites_list_sm .requisites_item {
    width: 100%;
  }
  .requisites_list_sm .requisites_item.lg {
    width: 100%;
  }
  .requisites_title {
    margin-bottom: 40px;
  }
  .requisites_title .logo {
    width: 450px;
  }

  /* History Slider */
  .history-slider_nav {
    top: 32%;
  }

  /* Product Slider (из media.css) */
  .product-slider__flex {
    flex-direction: column-reverse;
  }
  .product-slider__col {
    flex-direction: row;
    align-items: center;
    margin-right: 0;
    width: 100%;
  }
  .product-slider__images {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: clamp(16.875rem, 2.871rem + 70.02vw, 36.438rem);
  }
  .product-slider__thumbs {
    overflow: hidden;
    height: clamp(5.625rem, 2.94rem + 13.42vw, 9.375rem);
    width: 100%;
  }
}


/* ============================================
   BREAKPOINT: max-width 991.98px
   Планшеты в ландшафтной, маленькие ноутбуки
   ============================================ */
@media (max-width: 991.98px) {
  /* Utility classes */
  .h768 {
    display: none !important;
  }
  .v768 {
    display: block !important;
  }

  /* Container */
  :root {
    --container: 750px;
  }

  /* Hero Block */
  .hero_block_sliders {
    flex-direction: column;
  }
  .hero_block_slider_img {
    width: 100%;
  }
  .hero_block_slider_wrapper {
    width: 100%;
    padding: 30px 40px;
  }
  .hero_block_slider_nav {
    width: 95%;
    bottom: auto;
    right: auto;
    justify-content: space-between;
  }
  .hero_block_wrapper.variant-2 {
    flex-direction: column;
  }
  .hero_block_wrapper.variant-2 .hero_block_content {
    text-align: center;
    justify-content: center;
    align-items: center;
  }
  .hero_block_img {
    height: 250px !important;
  }

  /* Experience */
  .experience_items {
    flex-wrap: wrap;
  }
  .experience_item {
    flex: 1 1 200px;
  }

  /* About */
  #about .about_join .about_content .about_text {
    width: 100%;
  }
  .hero_block_wrapper.hero_block__left .hero_block_img {
    display: none;
  }
  .hero_block_wrapper.hero_block__left .hero_block_content {
    align-items: center;
    text-align: center;
  }

  /* Feedback Form */
  .feedback_form_text {
    width: 100%;
  }

  /* Map */
  .map_contacts {
    position: static;
  }
  .map_container {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  /* FAQ & Slider */
  .faq_container,
  .slider__col {
    flex-direction: column;
  }

  /* Feedback Form Row */
  .feedback_form_container.feedback_form_wrapper-row {
    background-image: none !important;
    flex-direction: column;
    align-items: center;
  }
  .feedback_form {
    align-items: start;
  }

  /* Slider Thumbs */
  .slider__thumbs {
    height: clamp(4.688rem, -2.009rem + 33.48vw, 18.75rem);
  }
  .slider__col .slider__prev,
  .slider__next {
    display: none;
  }
  .slider__thumbs {
    height: 250px;
  }

  /* Tabs */
  .tabs__caption {
    border-bottom: none;
  }
  .tabs__caption li {
    padding-bottom: 6px;
  }

  /* Preims */
  .preims_items {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .services2 {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Contact Page */
  .contact-page_wrapper {
    flex-direction: column;
  }
  .contact-page_wrapper .map_contacts {
    width: 100%;
  }
  .contact-page_wrapper .map {
    width: 100% !important;
  }

  /* Reviews */
  .review_items {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Gallery */
  .gallery-img_desc {
    display: none;
  }

  /* About Excursion */
  .about_excursion {
    flex-direction: column;
  }
  .about_excursion_left {
    position: relative;
    min-height: clamp(14.375rem, 13.679rem + 38.48vw, 23.75rem);
  }
  .about_excursion_left img {
    inset: 0;
    height: 100%;
    width: 100%;
  }
  .about_excursion_right {
    padding-left: clamp(0.938rem, -0.375rem + 6.56vw, 7.5rem);
    padding-right: clamp(0.938rem, -0.375rem + 6.56vw, 7.5rem);
  }
  .about_excursion_wrapper {
    padding-left: 0;
    padding-right: 0;
  }
  .about_excursion_left {
    background-size: cover;
    background-position: center;
  }
  .about_excursion {
    gap: 0;
    padding: 0;
  }

  /* Footer */
  .footer_content,
  .footer_contacts,
  .header-contacts_phone {
    align-items: start;
    justify-content: start;
  }

  /* Product Card */
  .product_card_tech_wrapper {
    flex-direction: column;
  }
  .product_card_tech,
  .product_card_tech.left {
    max-width: unset;
  }
  .footer_contacts {
    flex-direction: column;
  }

  /* Gallery Page */
  .gallery-page_items {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Preview */
  .preview_content {
    flex-wrap: wrap;
    flex-direction: column;
    border-left: none;
    border-top: 5px solid #004797;
    gap: 0;
  }

  /* Advantages */
  .advs_item img {
    width: 70px;
  }

  /* Text Block */
  .text_block_img {
    float: none;
    width: 100%;
  }

  /* Accordion */
  .accordion_section {
    flex-direction: column;
  }
  .accordion_title_wrapper {
    padding-top: 0;
    width: 100%;
    padding-bottom: 30px;
  }
  .accordion_title {
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .accordion_item {
    padding: 25px;
  }

  /* Contacts */
  .contacts_content {
    flex-wrap: wrap;
    gap: 40px;
  }
  .contacts-list {
    width: 100%;
    max-width: auto;
  }

  /* Requisites */
  .requisites_list_sm {
    max-height: 350px;
  }
  .requisites_item,
  .requisites_list_title {
    padding: 25px;
  }
  .requisites_item_title {
    width: 35%;
    flex-shrink: 0;
  }
  .requisites_title {
    margin-bottom: 55px;
  }

  /* Sale */
  .sale_wrapper {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    min-width: 250px;
  }

  /* History Slider */
  .history_sliders {
    flex-direction: column;
  }
  .slider_control {
    width: 100%;
    flex-direction: column-reverse;
  }
  .history_slider_text {
    width: 100%;
  }
  .history-slide_text_wrapper .text-content {
    width: 100%;
  }
  .history-slider_nav {
    top: 32%;
  }

  /* Product Slider (из media.css) */
  .product-slider__images {
    width: 70%;
  }
  .product-slider__flex {
    justify-content: space-between;
  }
  .product-slider__col {
    width: 30%;
  }
  .product-slider {
    width: 100%;
  }

  /* Service Description (из media.css) */
  .service_description-container_img_right {
    margin: 0;
    width: 100%;
  }
  .service_description-pwr {
    width: 100%;
    margin-bottom: 30px;
  }
}


/* ============================================
   BREAKPOINT: max-width 1199.98px
   Ноутбуки, небольшие десктопы
   ============================================ */
@media (max-width: 1199.98px) {
  /* Footer */
  .footer_item {
    flex: 1 1 300px;
  }

  /* Utility classes */
  .h992 {
    display: none !important;
  }
  .v992 {
    display: block !important;
  }
  .header_bottom_container.v992 {
    display: flex !important;
  }

  /* Container */
  :root {
    --container: 970px;
    --container-xs: 940px;
  }

  /* Burger Menu */
  .burger {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  /* Form */
  .form-box {
    width: 100%;
  }

  /* Mobile Navigation */
  .header_nav_mobile {
    display: flex !important;
    flex-direction: column;
    gap: 2em;
    position: fixed;
    background-color: #fff;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    width: 85%;
    height: 100vh;
    padding: 30px;
    transform: translateX(-100%);
    transition: all 0.7s;
    z-index: 1000;
    color: var(--text-color);
    overflow-y: scroll;
    overflow-x: hidden;
  }
  .header_nav_mobile.active {
    transform: translateX(0%);
  }
  .mobile_menu-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
  }
  .burger.open .burger-line:nth-child(1) {
    top: 0.5rem;
    transform: rotate(135deg);
    background-color: #fff;
  }
  .burger.open .burger-line:nth-child(2) {
    opacity: 0;
    visibility: hidden;
  }
  .burger.open .burger-line:nth-child(3) {
    top: 0.5rem;
    transform: rotate(-135deg);
    background-color: #fff;
  }
  .header_nav_mobile .input-box_mobile .close-icon {
    display: none;
  }

  /* Callback */
  .callback_box {
    gap: 1.3em;
  }

  /* Text Block */
  .text_block_img.frame {
    width: 100%;
  }
  .text_block_img.frame iframe {
    width: 100%;
    height: revert-layer;
  }

  /* Navigation Mobile */
  .nav__item_mobile:last-child {
    border: none;
  }
  .contacts_list_bottom {
    flex-wrap: wrap;
  }
  .nav__list_mobile .nav__item_mobile .nav__link {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .nav__submenu_mobile .nav__link {
    font-size: 16px !important;
  }
  .nav__list_mobile {
    display: flex;
    flex-direction: column;
    padding: 5px;
    font-size: 16px;
  }
  .nav__item_mobile {
    border-bottom: 1px solid #00479733;
    padding: 8px;
    padding-left: 0;
  }
  .hero_block_slider_wrapper {
    padding: 40px 50px;
  }
  .submenu-item {
    padding: 5px;
    border-bottom: 1px solid #e9e9e9;
    padding-left: 0;
    padding-right: 0;
  }
  .nav__submenu_mobile .nav__item_mobile {
    padding: 10px;
    padding-left: 15px;
  }
  .submenu-item:last-child {
    border: none;
    padding-bottom: 0;
  }
  .nav__list_mobile li:first-child {
    padding-top: 0;
  }
  .nav__submenu_mobile {
    padding-top: 10px;
    flex-direction: column;
    gap: 1em;
  }
  .input-box_mobile.open {
    max-width: 100%;
  }
  .header_bottom_hidden_icons {
    display: flex;
  }
  .header-contacts_icons {
    gap: 10px;
  }
  .header-contacts_icons svg {
    width: 40px;
    height: 40px;
  }

  /* Hero Block */
  .hero_block-container {
    padding-top: 75px;
    height: auto;
    min-height: auto;
    background: none !important;
  }
  .form-box {
    max-width: unset;
  }
  .feedback_form_container.feedback_form_wrapper-row .feedback_form {
    align-items: start;
  }
  .sertificates_slider_wrapper .swiper-button-prev {
    display: none;
  }

  /* About */
  .about_content {
    flex-direction: column;
  }
  .review_items {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .about-slide {
    flex-direction: column-reverse;
  }
  .about_slider-img_box,
  .about_slider-img_box img,
  .about-slide_text_wrapper {
    max-width: none;
  }
  .about_slider_img {
    max-height: 450px;
    height: 100%;
  }
  .header_bottom_container {
    height: auto;
    margin: 0;
  }
  .fixed-header {
    background-color: #dbdcf5;
  }
  .fixed-header .header_bottom_container {
    margin: clamp(0.938rem, -0.466rem + 2.26vw, 2.25rem) auto;
  }
  .about_slide_nav,
  .about-slide .text-content {
    max-width: none;
  }
  .first-screen_wrapper {
    background-position: left !important;
  }

  /* Tabs & Text Block */
  .tabs__content {
    flex-direction: column;
  }
  .text_block {
    flex-direction: column;
    gap: 30px;
  }

  /* Accordion */
  .accordion_title_wrapper {
    min-width: 350px;
  }
  .accordion_title {
    margin-top: 40px;
    margin-bottom: 40px;
  }
  .accordion_item {
    padding: 30px 30px 30px 35px;
  }

  /* Contacts */
  .contacts_card .product_img {
    width: 80px;
    height: 80px;
  }

  /* Requisites */
  .requisites_list_sm {
    max-height: 390px;
  }
  .requisites_title {
    margin-bottom: 65px;
  }

  /* Tabs */
  .tabs__content .card_tab_img {
    margin-left: auto;
    margin-right: auto;
  }

  /* Target */
  .target_content {
    flex-direction: column-reverse;
  }
  .target_list_wrapper {
    width: 100%;
  }
  .target_text_wrapper {
    flex-wrap: wrap;
  }
  .target_text_wrapper .text-content {
    width: 100%;
  }
  .target_text_wrapper h2 {
    width: 100%;
    margin-bottom: 0.5em;
  }

  /* History Slider */
  .history_sliders {
    gap: 30px;
  }
  .slider_control {
    gap: 40px;
  }
  .history_slider_text3 > .h2.active {
    margin-bottom: 20px;
  }
}


/* ============================================
   BREAKPOINT: max-width 1499.98px
   Large desktop
   ============================================ */
@media (max-width: 1499.98px) {
  /* Navigation */
  .nav__submenu {
    left: -30px;
    padding: 18px 30px;
  }

  /* About */
  .about_slider_img {
    height: auto;
  }
  .about_excursion_left img {
    width: 51%;
  }

  /* Form */
  .form-box {
    width: 55%;
  }

  /* Footer */
  .footer_content {
    flex-wrap: wrap;
    row-gap: clamp(3.125rem, 2.277rem + 4.24vw, 6.25rem);
  }
  .footer_contacts {
    flex-direction: row;
    align-items: center;
  }
  .footer_btns {
    flex-direction: row;
  }
  .footer_item {
    flex: 1 1 20%;
  }

  /* Products */
  .products_wrapper_bottom .products_item {
    width: calc(50% - 12px);
    flex: 1 1 48%;
  }

  /* Hero Block */
  .hero_block-container {
    background-size: 60% !important;
  }
  .hero_block_content .text-content {
    width: 90%;
  }
  .hero_block_slider_wrapper .swiper-pagination {
    width: 90%;
  }

  /* History Slider */
  .history_sliders {
    gap: 50px;
  }
  .slider_control {
    gap: 70px;
  }
  .history-slider_nav {
    top: 23%;
  }

  /* Target */
  .target_item {
    flex: 1 1 240px;
  }

  /* Text Block */
  .text_block_img.frame {
    width: 100%;
  }
}