/* arendacity: правки дизайна 06.11.2026 (откат — убрать ссылку из чанка html-header-new) */

/* Карточки: одно полное название в две строки, без плашек */
.tool-card__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  font-family:'montserrat',sans-serif;font-size:1.05em;line-height:1.35;min-height:2.7em;color:#1d2b44;text-decoration:none}
.tool-card__title:hover{color:#043566;text-decoration:underline}
.tool-card-padding{padding:20px 16px 12px}
.tool-card__image-wrap{margin:12px 0 0}
.tool-card__price{font-size:1.25em;font-weight:600;color:#043566;padding:12px 16px}
.tool-card__price span{font-size:.75em;font-weight:400;color:#555}
.tool-card .more-button{display:block;background:#043566;color:#fff;font-weight:600;padding:12px 10px}
.tool-card .more-button:hover{background:#2b5c8d;color:#fff;text-decoration:none}

/* Кнопка «Арендовать» на странице товара */
.rent-button{font-size:1.2em;font-weight:600;padding:16px 10px;border-radius:6px}

/* Шапка на телефоне: название + кнопка звонка */
.header-phone{display:flex;align-items:center;justify-content:space-between;padding:0 64px 0 14px;text-align:left}
.header-phone .hm-brand{color:#fff;font-size:1.15em;font-family:'montserrat',sans-serif}
.header-phone .hm-call{display:inline-flex;align-items:center;gap:6px;height:40px;line-height:40px;padding:0 14px;
  background:#2fb65a;color:#fff;border-radius:20px;font-size:.95em;font-weight:600;white-space:nowrap}
.header-phone .hm-call:hover{color:#fff;text-decoration:none;background:#27a04e}

/* Телефон и планшет: плашка с контактами — одной полосой, а не на весь экран */
@media (max-width: 991px){
  #home{background:#043566 !important;min-height:0 !important;margin:0 0 14px;padding-top:60px}
  #home .header-row{min-height:0}
  #home .header-contacts{min-height:0;background:transparent;border-radius:0}
  #home .contacts-list-header{position:static;transform:none;width:100%;display:flex;flex-wrap:wrap;
    align-items:center;justify-content:center;gap:4px 14px;margin:0;padding:8px 10px;list-style:none}
  #home .contacts-list-header__item{font-size:14px !important;padding:0 !important;background:none !important;margin:0}
  #home .contacts-list-header__link{font-size:15px !important;font-weight:600}
  #home .contacts-list-header__item--route{display:none}
}

/* Телефон: карточки по две в ряд */
@media (max-width: 575px){
  [class*="col-lg-4"]:has(> .tool-card){flex:0 0 50%;max-width:50%;padding-left:5px;padding-right:5px}
  .tool-card-padding{padding:12px 10px 6px}
  .tool-card__title{font-size:.9em}
  .tool-card__price{font-size:1.05em;padding:8px 10px}
  .tool-card .more-button{padding:10px 6px;font-size:.9em}
}

/* Компьютер: лозунг читаемый поверх фото */
@media (min-width: 992px){
  .slide-text{background:rgba(4,20,45,.72);padding:22px 26px 70px;border-radius:8px;max-width:560px;margin-left:24px}
  .slide-text .hero-heading{font-size:2.1em;margin-bottom:10px}
  .slide-text .hero-p{font-size:1.05em;line-height:1.5}
  .slide-text .hero-button{left:26px;bottom:20px}
}

/* Поиск */
.ac-search{display:flex;gap:0;margin:0 0 14px}
.ac-search input{flex:1;min-width:0;height:42px;padding:0 12px;border:1px solid #c9d3e3;border-right:0;border-radius:6px 0 0 6px;font-size:15px;outline:none;background:#fff;color:#222}
.ac-search input:focus{border-color:#2b5c8d}
.ac-search button{height:42px;padding:0 14px;border:0;border-radius:0 6px 6px 0;background:#043566;color:#fff;font-weight:600;cursor:pointer}
.ac-search button:hover{background:#2b5c8d}
.sidebar .ac-search button span{display:none}
.ac-search-mobile{display:none}
@media (max-width: 991px){
  .ac-search-mobile{display:block;padding:0 10px 10px}
  .ac-search-mobile .ac-search{margin:0}
  .ac-search-mobile .ac-search input{border-color:#fff}
}
.ac-search-hint,.ac-search-count{color:#555;margin:6px 0 10px}
.ac-search-cats{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 6px}
.ac-search-cats a{padding:6px 12px;border:1px solid #c9d3e3;border-radius:16px;color:#043566;background:#f4f7fc}
.ac-search-none{padding:16px;background:#f7f8fc;border-radius:6px}

/* Поиск — оформление 2 (подсказки) */
.ac-search{position:relative;display:flex;margin:0 0 14px;box-shadow:0 2px 10px rgba(4,30,70,.12);border-radius:8px}
.ac-search input{flex:1;min-width:0;height:46px;padding:0 14px;border:2px solid #fff;border-right:0;border-radius:8px 0 0 8px;font-size:16px;outline:none;background:#fff;color:#1d2b44;-webkit-appearance:none}
.ac-search input:focus{border-color:#f5b400}
.ac-search button{height:46px;padding:0 18px;border:0;border-radius:0 8px 8px 0;background:#f5b400;color:#1d2b44;font-weight:700;font-size:15px;cursor:pointer;white-space:nowrap}
.ac-search button:hover{background:#ffc62e}
.ac-search.is-open input{border-bottom-left-radius:0}
.ac-search.is-open button{border-bottom-right-radius:0}
.ac-suggest{position:absolute;left:0;right:0;top:100%;z-index:1050;background:#fff;border-radius:0 0 8px 8px;box-shadow:0 12px 28px rgba(4,30,70,.22);max-height:70vh;overflow-y:auto;text-align:left;padding:6px 0}
.ac-suggest[hidden]{display:none}
.ac-sg-head{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#7a869a;padding:8px 14px 4px}
.ac-sg-cats{display:flex;flex-wrap:wrap;gap:6px;padding:2px 14px 6px}
.ac-sg-cat{padding:5px 12px;border-radius:14px;background:#eef3fb;color:#043566 !important;font-size:14px;text-decoration:none !important}
.ac-sg-cat:hover,.ac-sg-cat.is-active{background:#043566;color:#fff !important}
.ac-sg-item{display:flex;align-items:center;gap:12px;padding:7px 14px;color:#1d2b44 !important;text-decoration:none !important;font-size:14px;line-height:1.3}
.ac-sg-item img,.ac-sg-noimg{flex:0 0 48px;width:48px;height:48px;object-fit:contain;background:#fff;border:1px solid #edf0f5;border-radius:6px}
.ac-sg-t{flex:1;min-width:0}
.ac-sg-p{flex:0 0 auto;font-weight:700;color:#043566;white-space:nowrap}
.ac-sg-p small{font-weight:400;color:#7a869a}
.ac-sg-item:hover,.ac-sg-item.is-active{background:#f2f6fc}
.ac-sg-all{display:block;padding:10px 14px;margin-top:4px;border-top:1px solid #edf0f5;color:#043566 !important;font-weight:600;font-size:14px;text-decoration:none !important}
.ac-sg-all:hover,.ac-sg-all.is-active{background:#f2f6fc}
.ac-sg-none{padding:12px 14px;font-size:14px;color:#444}
/* На компьютере — в верхнем блоке под лозунгом */
.slide-text .ac-search{margin:16px 0 0;max-width:520px}
.slide-text{padding-bottom:22px}
.slide-text .hero-button{display:none}
.sidebar .ac-search{display:none}
/* Страница поиска */
.view-section .ac-search{max-width:640px;box-shadow:none}
.view-section .ac-search input{border-color:#c9d3e3}
.view-section .ac-search input:focus{border-color:#2b5c8d}
@media (max-width: 991px){
  .ac-search-mobile{display:block;padding:0 10px 12px}
  .ac-search-mobile .ac-search{margin:0}
  .ac-search button span{display:none}
  .ac-sg-item{font-size:13.5px}
}
@media (min-width: 992px){ .ac-search-mobile{display:none} }
.ac-search-page-hint{margin-top:4px}
@media (max-width: 575px){ .tool-card__title{-webkit-line-clamp:3;min-height:4.05em} .ac-search-cats a{font-size:14px;padding:5px 10px} }

/* Боковое меню группами */
.ac-side{background:#fff;border:1px solid #e3e8f0;border-radius:8px;overflow:hidden;margin-bottom:20px}
.ac-side-g{border-bottom:1px solid #edf0f5}
.ac-side-g summary{list-style:none;cursor:pointer;padding:12px 14px;font-family:'montserrat',sans-serif;font-weight:600;font-size:14.5px;color:#1d2b44;display:flex;align-items:center;justify-content:space-between;gap:8px}
.ac-side-g summary::-webkit-details-marker{display:none}
.ac-side-g summary span{font-weight:400;font-size:12px;color:#7a869a;margin-left:auto}
.ac-side-g summary:after{content:"";width:8px;height:8px;border-right:2px solid #7a869a;border-bottom:2px solid #7a869a;transform:rotate(45deg);margin:-4px 2px 0 6px;transition:transform .15s}
.ac-side-g[open] summary:after{transform:rotate(-135deg);margin-top:4px}
.ac-side-g summary:hover{background:#f4f7fc}
.ac-side-g ul{list-style:none;margin:0;padding:0 0 8px}
.ac-side-g li a{display:block;padding:6px 14px 6px 24px;font-size:14px;color:#2a3a55;line-height:1.3}
.ac-side-g li a:hover{background:#f4f7fc;color:#043566;text-decoration:none}
.ac-side-g li a.is-here{color:#043566;font-weight:600;background:#eef3fb;border-left:3px solid #043566;padding-left:21px}
.ac-side-all{display:block;padding:12px 14px;font-weight:600;color:#043566;font-size:14px}

/* Заявка */
.ac-btns{display:flex;gap:10px;flex-wrap:wrap}
.ac-btns .rent-button{flex:1 1 160px;margin:0;text-align:center}
.rent-button--lead{background:#f5b400 !important;color:#1d2b44 !important}
.rent-button--lead:hover{background:#ffc62e !important}
.ac-lead-open,.ac-lead-open body{overflow:hidden}
.ac-lead{position:fixed;inset:0;z-index:2000;background:rgba(10,20,40,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.ac-lead[hidden]{display:none}
.ac-lead__box{position:relative;width:100%;max-width:460px;max-height:92vh;overflow:auto;background:#fff;border-radius:12px;padding:22px 22px 18px;box-shadow:0 20px 50px rgba(0,0,0,.3)}
.ac-lead__x{position:absolute;right:8px;top:6px;border:0;background:none;font-size:28px;line-height:1;color:#7a869a;cursor:pointer;padding:4px 8px}
.ac-lead__h{font-family:'montserrat',sans-serif;font-size:1.3em;margin:0 0 6px;color:#1d2b44}
.ac-lead__tool{background:#eef3fb;color:#043566;border-radius:6px;padding:8px 10px;font-size:14px;margin:6px 0 10px}
.ac-lead__form label{display:block;font-size:13px;color:#56637a;margin:0 0 10px}
.ac-lead__form input,.ac-lead__form textarea{display:block;width:100%;margin-top:4px;padding:10px 12px;border:1px solid #c9d3e3;border-radius:6px;font-size:16px;color:#1d2b44;background:#fff}
.ac-lead__form input:focus,.ac-lead__form textarea:focus{outline:none;border-color:#2b5c8d}
.ac-lead__form [aria-invalid="true"]{border-color:#d33}
.ac-lead__row{display:flex;gap:10px}.ac-lead__row label{flex:1}
.ac-lead__hp{position:absolute !important;left:-9999px;width:1px;height:1px;opacity:0}
.ac-lead__msg{color:#c22;font-size:14px;margin:0 0 8px}
.ac-lead__send{display:block;width:100%;border:0;border-radius:8px;background:#043566;color:#fff;font-weight:700;font-size:16px;padding:13px;cursor:pointer}
.ac-lead__send:hover{background:#2b5c8d}.ac-lead__send:disabled{opacity:.6}
.ac-lead__note{font-size:12.5px;color:#7a869a;margin:10px 0 0}
.ac-lead__ok{text-align:center;padding:10px 0}
.ac-lead__okicon{width:56px;height:56px;margin:0 auto 10px;border-radius:50%;background:#2fb65a;color:#fff;font-size:30px;line-height:56px}
.ac-foot-lead{display:inline-block;margin-top:6px;padding:8px 14px;border-radius:6px;background:#f5b400;color:#1d2b44 !important;font-weight:600}

/* Боковое меню (06.11, «аккуратнее»): голубая полоса старой темы (main.css: aside.sidebar::after, 15px skyblue)
   ложилась поверх нового меню — закрывала левую рамку и отступ текста. Убираем её только там, где новое меню. */
aside.sidebar:has(.ac-side)::after{content:none;display:none}
.ac-side-g summary{line-height:1.3}

/* Кнопка меню на телефоне (06.11, владелец: «косяк»): значок рисовался глифом
   FontAwesome \f0c9, а в урезанном шрифте fontawesome-subset его нет — справа
   от «Позвонить» был пустой тёмный квадрат. Три полоски — стилями, без шрифта.
   Полоса шапки — ровным цветом, как контакты и поиск под ней. */
.header-phone{background:#043566}
#toggle-button::before{content:none}
#toggle-button .hamburger-box{position:absolute;left:50%;top:50%;display:block;width:26px;height:20px;margin:-10px 0 0 -13px}
#toggle-button .hamburger-inner,#toggle-button .hamburger-inner::before,#toggle-button .hamburger-inner::after{position:absolute;left:0;display:block;width:26px;height:3px;border-radius:2px;background:#fff;content:""}
#toggle-button .hamburger-inner{top:50%;margin-top:-1.5px}
#toggle-button .hamburger-inner::before{top:-8px}
#toggle-button .hamburger-inner::after{top:8px}
#toggle-button:focus-visible{outline:2px solid #f5b400;outline-offset:-6px}

/* Компьютер: верхний блок узкой полосой (06.11, владелец: «сделай значительно
   уже, можешь убрать фото перфоратора»). Без фото: слева заголовок, строка и
   поиск, справа контакты столбиком. Было ~420–490 px высоты, стало ~170. */
@media (min-width: 992px){
  #home{background:#043566 linear-gradient(100deg,#043566 0%,#0b2b55 100%);min-height:0;margin:0 0 20px}
  #home .header-row{min-height:0;flex-wrap:nowrap;gap:40px;padding:24px 15px}
  #home .header-row > div:first-child{flex:1 1 auto;max-width:none;min-width:0}
  #home .header-row > div:last-child{flex:0 0 auto;max-width:none;margin-left:0;width:auto}
  #home .slide-text{background:none;padding:0;margin:0;max-width:none;border-radius:0}
  #home .slide-text .hero-heading{font-size:1.85em;line-height:1.2;margin:0 0 6px}
  #home .slide-text .hero-p{font-size:1em;line-height:1.45;margin:0 0 14px;color:#d6e0ef}
  #home .slide-text .ac-search{margin:0;max-width:600px}
  #home .header-contacts{min-height:0;background:none;border-radius:0}
  #home .contacts-list-header{position:static;transform:none;width:auto;margin:0;padding:0;list-style:none;text-align:right}
  #home .contacts-list-header__item{margin:0;padding:0;line-height:1.5}
  #home .contacts-list-header__link{font-size:1.6em;font-weight:700;white-space:nowrap}
  #home .contacts-list-header__item--address{font-size:1em;color:#d6e0ef}
  #home .contacts-list-header__item--route a{color:#f5b400}
  #home .contacts-list-header__item--hours{background:none;padding:0;font-size:1em;font-weight:600}
}
