@import url("mainmenu.css");

@media print {
  /* Скрытие элементов, не нужных для печати */
  .header,
  .footer,
  .navigation,
  .sidebar,
  .sidebar-left {
    display: none;
  }
}

/*mobile block*/
@media screen and (max-width: 768px) {
  ._footer__row a:hover {
    color: #e2e2e2;
  }

  ._arenda-btn,
  ._arenda-btn h4 {
    color: #fff;
  }

  ul.list-style-none {
    list-style: none;
  }

  ._description {
    margin: 0 12px;
  }
}

/* Кнопки прокрутки в рекомендациях */

@media (max-width: 768px) {
  .scroll-btn {
    display: none;
  }

  .scroll-content {
    -webkit-overflow-scrolling: touch; /* Плавная прокрутка на iOS */
  }
}

/* Показывать кнопки только при наведении на десктопе */
@media (min-width: 769px) {
  .scroll-btn {
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .scroll-container:hover .scroll-btn {
    opacity: 1;
  }
}
/* End Кнопки прокрутки в рекомендациях */

/* desktop block */

@media screen and (min-width: 769px) {
  ._footer__row a:hover {
    color: #e2e2e2;
  }

  ._arenda-btn,
  ._arenda-btn h4 {
    color: #fff;
  }

  ul.list-style-none {
    list-style: none;
  }

  ._content-page-oferta {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
  }

  ._recomendation__infoline span._card-info-value._card-oneline-info {
    display: inline-block;
    width: 200px;
    overflow: hidden;
    padding: 0 0 0 6px;
  }

  .com_content.layout-edit .grid-child.container-sidebar-left {
    display: none;
  }

  .com_content.layout-edit .site-grid {
    grid-template-areas:
      ". top-a  top-a top-a top-a ."
      ". top-b  top-b top-b top-b ."
      ". comp comp  comp  comp  ."
      ". bot-a  bot-a bot-b bot-b .";
  }

  /* Кнопки прокрутки в рекомендациях */
  .scroll-container {
    position: relative;
    width: 100%;
    max-width: 1336px;
    margin: 0 auto;
  }

  .scroll-content {
    position: relative;
    display: flex;
    scroll-behavior: smooth;
    scrollbar-width: auto; /* Firefox */
    -ms-overflow-style: auto; /* IE/Edge */
    max-width: 996px;
    margin: 0 auto;
    padding: 0 8px;
  }

  body.view-article .scroll-content {
    max-width: 1220px;
  }

  .scroll-content::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
  }

  .scroll-btn.left-btn {
    transform: translateX(0%);
  }

  .scroll-btn.right-btn {
    transform: translateX(18%);
  }

  .scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.25);
    color: white;
    border: none;
    border-radius: 25%;
    cursor: pointer;
    z-index: 10;
    font-size: 4rem;
    line-height: 2rem;
    transition: background 0.3s ease;
  }

  .scroll-btn:hover {
    background: rgba(0, 0, 0, 0.9);
  }

  .left-btn {
    left: 10px;
  }

  .right-btn {
    right: 10px;
  }

  /* End Кнопки прокрутки в рекомендациях */

  ._cat-items-row:hover {
    cursor: pointer;
    background: darkgray;
    color: white;
  }

  #jform_com_fields__card_info__row0__field1 {
    width: 50%;
  }
}
