/* ==========================================================
   pb-design.css — правки десктопа по макету Figma «PROBUSNESS.KZ DESKTOP»
   Сверка: 25.11.2026. Только десктоп (>=992px), мобильную версию не трогает.
   Откат: удалить строку подключения pb-design.css в index.php шаблона.
   ========================================================== */
@media (min-width: 992px) {

  /* --- Верхняя полоса --- */
  #main-menu-toggle { font-size: 16px; }
  .container-custom-buttons a { font-size: 19.5px; }
  /* аватарки в плашках «Сообщество»/«Компании»: 29px, круг, без искажений */
  .header-avatar-user {
    width: 29px !important; height: 29px !important;
    border-radius: 50%; object-fit: cover; object-position: center;
    aspect-ratio: 1 / 1; flex: 0 0 29px;
  }

  /* --- Три цветные кнопки под шапкой: ширины по макету --- */
  .header-buttons.custom.container { display: flex; justify-content: space-between; }
  .header-buttons.custom.container::before,
  .header-buttons.custom.container::after { display: none !important; content: none !important; }
  .header-buttons.custom.container > a { margin-left: 0 !important; margin-right: 0 !important; }
  .header-buttons.custom.container > a:nth-child(1) { width: 326px; flex: 0 0 326px; }
  .header-buttons.custom.container > a:nth-child(2) { width: 262px; flex: 0 0 262px; }
  .header-buttons.custom.container > a:nth-child(3) { width: 313px; flex: 0 0 313px; }

  /* --- Подвал: выровнять по колонке контента (1000px по центру) --- */
  footer.footer.new .footer-container {
    max-width: 1000px; width: 100%;
    margin-left: auto !important; margin-right: auto !important;
    box-sizing: border-box;
  }
  /* колонки подвала в одну строку, по ширине контента, как в макете */
  footer.footer.new .footer-container:has(.footer__column1) { display: flex; justify-content: space-between; align-items: flex-start; }
  footer.footer.new .footer-container:has(.footer__column1)::before,
  footer.footer.new .footer-container:has(.footer__column1)::after { display: none !important; content: none !important; }
  footer.footer.new [class^="footer__column"] { float: none !important; width: auto !important; flex: 0 1 auto; }

  /* --- Хлебные крошки: 16px Museo 500, разделитель светло-серый --- */
  nav.pb-crumbs, nav.pb-crumbs a, nav.pb-crumbs span { font-size: 16px; font-weight: 500; color: #1e1e1e; }
  nav.pb-crumbs .pb-crumbs__sep, nav.pb-crumbs .divider { color: #b3b3b3; font-weight: 300; }

  /* --- Рубрики новостей: цвет по макету --- */
  .news-cat-slider .item-title a { color: #1e1e1e; }

  /* --- Стрелки: левая скрыта в начале, стрелки серые и мелкие, как в макете --- */
  .news-cat-slider .slick-prev,
  .mns-slider .slick-prev { visibility: hidden; } /* в макете только правая стрелка; слайдеры зациклены */
  .mns-slider .slick-arrow img { width: 25px; height: 25px; filter: grayscale(1) opacity(.55); }
  .news-cat-slider .slick-arrow img { filter: grayscale(1) opacity(.55); }

  /* --- Закладки «Новое / Популярное»: «папки» как на /news, на всех лентах --- */
  .news-vkladki-custom ul.tabs__nav li {
    background: #fef6e7 !important; border: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: 4px 2px 2px rgba(0,0,0,.53) !important;
    font-size: 16px !important; font-weight: 500; color: #1e1e1e;
    padding: 5px 19px; margin-right: -8px;
  }
  .news-vkladki-custom ul.tabs__nav li:first-child { z-index: 3; }
  .news-vkladki-custom ul.tabs__nav li:nth-child(2) { z-index: 2; }
  .news-vkladki-custom ul.tabs__nav li:nth-child(3) { z-index: 1; }

  /* --- Поиск в ленте: 138×28, рамка, без тени, на линии закладок --- */
  .container-vkladki .news-vkladki-custom.serch { align-self: flex-end; margin-bottom: 4px; }
  .container-vkladki .custom-smart-search-wrapper { width: 138px !important; height: 28px; box-shadow: none !important; }
  .container-vkladki .custom-smart-search-wrapper .awesomplete,
  .container-vkladki .custom-smart-search-wrapper form { width: 100% !important; }
  .container-vkladki .custom-smart-search-wrapper input.js-finder-search-query { width: 100% !important; box-sizing: border-box; }
  .container-vkladki .custom-smart-search-wrapper input.js-finder-search-query {
    height: 28px !important; border: 1px solid #e5e7eb !important; border-radius: 9999px !important;
    box-shadow: none !important; font-size: 13px !important; font-weight: 300; color: #6b7280;
    padding-left: 34px !important;
  }

  /* --- Кнопка «Показать ещё»: шрифт сайта, радиус 10, мягкая тень --- */
  button#show-more, .pagination button#show-more {
    font-family: "MuseoSansCyrl", sans-serif; font-weight: 500; font-size: 16px; color: #1e1e1e;
    background: #fff; border: 0; border-radius: 10px; padding: 10px; width: 180px;
    box-shadow: 0 0 6px rgba(0,0,0,.15);
  }

  /* --- Автор на страницах материалов: аватар 60px, имя 32px --- */
  .item-page__author-avatar-inline {
    width: 60px !important; height: 60px !important; border-radius: 50%;
    object-fit: cover; aspect-ratio: 1 / 1;
  }
  .item-page__author-name a { font-size: 32px; font-weight: 500; color: #1e1e1e; }

  /* --- Чип компании в материале: название в одну строку, подпись 16px Thin --- */
  .item-page__company a.company-link { max-width: 100%; background: #f5f7fa; border: 1px solid #e5e7eb; }
  .item-page__company .company-name { white-space: nowrap; font-size: 20px; font-weight: 500; }
  .item-page__company .company-license { font-size: 16px; font-weight: 100; }
  .item-page__company img { width: 47px; height: 47px; border-radius: 50%; object-fit: cover; }

  /* --- Пагинация: бирюзовые цифры без рамок, как в макете --- */
  .pagination__wrapper ul.pagination .page-link {
    border: 0 !important; background: transparent !important;
    color: #08a5c5 !important; font-size: 20px; min-width: 0; padding: 4px 8px;
  }
  .pagination__wrapper ul.pagination .active .page-link { color: #1e1e1e !important; font-weight: 700; }
  .pagination__wrapper ul.pagination li.page-item { width: auto !important; }
  html body .pagination__wrapper ul.pagination li.page-item.active a.page-link,
  html body .pagination__wrapper ul.pagination li.page-item.active span.page-link { background: transparent !important; color: #1e1e1e !important; box-shadow: none !important; }

  /* --- Страница компании: прятать пустой блок вкладок, если публикаций нет --- */
  .company-item-page .tabs-big_item.custom:not(:has(.tabs-small)) { display: none !important; }

  /* --- Фильтр «Сообщества» в стиле фильтра компаний --- */
  .pbcm-filters label { display: none; }
  .pbcm-filters select {
    height: 36px !important; border: 1px solid #e5e7eb !important; border-radius: 8px !important;
    font-size: 14px !important; font-weight: 700; color: #1e1e1e; padding: 0 34px 0 10px !important;
  }

  /* --- Контакты: чекбокс слева от подписи, в одну строку --- */
  .contact-form .control-group:has(#jform_contact_email_copy),
  form:has(#jform_contact_email_copy) .control-group:has(#jform_contact_email_copy) {
    display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: center; gap: 10px;
  }
  .control-group:has(#jform_contact_email_copy) .control-label,
  .control-group:has(#jform_contact_email_copy) .controls { margin: 0; }

  /* --- Личный кабинет: заголовок «Представляемые компании» бирюзовым капсом --- */
  html body section.account-company h2.account-company__title { color: #08a5c5 !important; text-transform: uppercase; font-weight: 700; }
  /* активная закладка на /blogs тоже «папкой» */
  html body .news-vkladki-custom ul.tabs__nav li.active,
  html body .news-vkladki-custom.custom-lenta-2 ul.tabs__nav li { background: #fef6e7 !important; border: 0 !important; }
  /* высоты закладок по макету: обычная 29px, активная 45px, выровнены по низу */
  html body .news-vkladki-custom ul.tabs__nav { align-items: flex-end !important; }
  html body .news-vkladki-custom ul.tabs__nav li { height: 29px !important; min-height: 0 !important; line-height: 19px !important; padding: 5px 19px !important; box-sizing: border-box; margin-top: 0 !important; top: 0 !important; }
  html body .news-vkladki-custom ul.tabs__nav li.active { height: 45px !important; }
}
