/* Mobile layout for the existing SSI templates. Desktop styles remain in style.css. */
@media screen and (max-width:1179.98px) {
  *, *::before, *::after { box-sizing: border-box; }
  html, body { width: 100%; min-width: 0; height: auto; }
  body { font-size: 14px; line-height: 1.5; }
  img, video, iframe { max-width: 100%; height: auto; }
  .page { display: block; width: 100%; height: auto; min-width: 0; }
  .sidebar { display: block; width: 100%; max-width: none; min-width: 0; padding: 12px 16px; }
  .sidebar__logo { width: 52px; height: 84px; margin: 0 auto 12px; background-size: contain; }
  .sidebar__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0; }
  .sidebar__nav-elem { width: auto; margin: 0; text-align: center; }
  .sidebar__nav-elem .link { display: block; padding: 8px 4px; }
  .sidebar__nav-elem .link_sidebar_active { color: #fff; font-weight: 700; }
  .link_sidebar_active::after { display: none; }
  .sidebar .social-icons { display: flex; justify-content: center; gap: 16px; width: 100%; margin-top: 8px; }
  .sidebar .social-icons__item { width: 31px; height: 31px; margin: 0; }
  .sidebar > .news__content { display: block; text-align: center; }
  .container { display: block; width: 100%; max-width: none; min-width: 0 !important; min-height: 0; }
  .container__inner { padding: 0; }
  .header, .footer { position: static; width: 100%; height: auto; min-height: 40px; }
  .header { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; padding: 8px 12px; gap: 6px; }
  .header .nav-horizontal, .footer .nav-horizontal { position: static; float: none; width: 100%; height: auto; padding: 0; text-align: center; }
  .nav-horizontal__elem, .nav-horizontal__elem_top { margin: 0 8px 6px; padding-top: 0; }
  .header .call, .footer .call { position: static; width: auto; height: auto; margin: 0; padding: 0; background: none; text-align: center; }
  .call__no, .call__no_primary { float: none; display: inline-block; padding: 0; font-size: 15px; }
  .content, .content__top, .content__bottom { display: block; width: 100%; height: auto; }
  .content__top { display: flex; flex-direction: column; }
  .slider, .slider_main { display: block; width: 100%; min-width: 0; border: 0; }
  .carousel-inner > .item > img { width: 100%; }
  .carousel-caption, .carousel-caption2 { left: 5%; right: 5%; top: 7% !important; font-size: clamp(16px, 5vw, 25px); line-height: 1.2; padding: 4px 8px; color: #fff; background: rgba(37, 37, 37, .65); }
  .carousel-descback { display: none; }
  .carousel-description { left: 5%; right: 5%; top: 43%; margin: 0; padding: 4px 8px; font-size: clamp(13px, 3.5vw, 18px); line-height: 1.3; color: #fff; background: rgba(37, 37, 37, .65); }
  .carousel-button { left: 50%; right: auto; top: auto; bottom: 5%; z-index: 11; transform: translateX(-50%); }
  .carousel-description .carousel-btn { display: block; margin: 8px auto 0; }
  .carousel-caption_football { left: 5%; right: 5%; top: 7% !important; }
  .carousel-caption__text { font-size: clamp(15px, 4vw, 22px); line-height: 1.2; padding: 2px 4px; }
  .carousel-btn-include { left: 50%; bottom: 10px; width: 130px; height: 36px; line-height: 36px; font-size: 14px; transform: translateX(-50%); z-index: 12; }
  .aside, .aside_cell, .main, .news_main { display: block; width: 100%; max-width: none; min-width: 0; height: auto; }
  .aside-wrap, .aside-wrap_login { width: 100%; height: auto; max-height: none; padding: 20px 16px; border: 0; }
  .login-form { width: 100%; max-width: 420px; }
  .login-form__input { width: 100% !important; }
  .main-wrap, .main-wrap_digital_tv { width: auto; margin: 0; padding: 24px 16px; }
  .navigation { height: auto; margin: 24px 0; float: none; background: none; }
  .navigation-list { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 8px; width: 100%; height: auto; padding: 0 12px; }
  .navigation-list__item { display: block; width: 100%; height: auto; min-height: 120px; }
  .navigation-list__item-link { position: static; width: 100%; padding: 0 4px; }
  .pros { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; height: auto; }
  .pros-block { display: block; max-width: none; padding: 20px 12px; }
  .pros-block__img { width: 100%; }
  .news { float: none; padding: 20px 16px; }
  .news-wrap, .news__item { display: block; width: 100%; padding-right: 0; }
  .notes { float: none; width: 100%; }
  .heading { font-size: 25px; line-height: 1.25; }
  .tabs-nav__item, .tabs-nav__item_first, .tabs-nav__item_last { float: none; width: auto; min-width: 0; font-size: 16px; }
  .tabs-content { padding: 20px 12px; }
  .tabs-content__params, .tabs-content__info { display: block; float: none; width: 100%; margin: 0; }
  .tabs-content__parameter { margin-bottom: 12px; }
  .tabs-content__parameter-value_accented { font-size: 20px; }
  .form, .form__select, .form__select_street, .form__select_house, .form__input, .form__textarea { max-width: 100%; }
  .form { width: 100%; }
  .text_zayvki, .num_zayvki, .ul_zayvki, .tarif_zayvka { max-width: 100%; }
  .form__select_street, .form__select_house, .form__input_flat { width: 100%; margin-left: 0; }
  .form__input, .form__textarea, .form__select { font-size: 18px; }
  table { display: block; max-width: 100%; overflow-x: auto; }
  .footer { padding: 14px 12px; }
  .modal-dialog { max-width: calc(100vw - 24px); margin: 12px; }
}

@media screen and (max-width: 380px) {
  .navigation-list, .pros { grid-template-columns: 1fr; }
  .navigation-list__item { min-height: 110px; }
}
