/* Вёрстка otdelochnik.su.
   Сделано «узнаваемо как сейчас» (Р8): тёмная полоса с телефоном, синий логотип,
   меню разделов, карточки с фото, ценой и кнопкой «Арендовать». Но набрано
   заново — старая тема на Bootstrap 3 тянула полтора мегабайта чужого кода
   ради разметки, которая здесь помещается в один файл.

   Правило номер один: страница не должна ехать вбок на телефоне. Поэтому
   у всех колонок сетки стоит min-width:0 — иначе длинное слово вроде
   «ГВОЗДЕЗАБИВНЫЕ» раздвигает колонку и вместе с ней всю страницу. */

/* Шрифт как на старом сайте — Roboto. Файлы лежат у нас, а не грузятся
   с чужого домена: это на два запроса меньше и ничего не ломается,
   если чужой сервис недоступен. Взяты только те наборы символов,
   что нужны русскому сайту: два файла, 66 КБ на оба.
   font-display: swap — текст виден сразу, не дожидаясь шрифта. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  /* Файл переменный: одним начертанием закрывает всю шкалу насыщенности,
     поэтому вместо трёх копий на набор символов хранится одна. */
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-cyrillic.f92ee388273b.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  /* Файл переменный: одним начертанием закрывает всю шкалу насыщенности,
     поэтому вместо трёх копий на набор символов хранится одна. */
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/roboto-latin.665db5e157d2.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --blue: #1b4f9c;
  --blue-dark: #143c78;
  --dark: #2f2f2f;
  --text: #333;
  --muted: #777;
  --line: #e3e3e3;
  --bg-soft: #f7f7f7;
  --radius: 4px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font: 16px/1.55 "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ шапка */
.topbar { background: var(--dark); color: #fff; font-size: 15px; }
.topbar a { color: #fff; }
.topbar .wrap {
  display: flex; flex-wrap: wrap; gap: 8px 20px;
  align-items: center; justify-content: space-between;
  min-height: 44px;
}
.topbar .phone { font-weight: 700; font-size: 17px; white-space: nowrap; }
/* Скрытый кусок внутри адреса почты. display:none важен: такой текст
   браузер не берёт в выделение, и в буфер уходит верный адрес. */
.mail-x { display: none; }

.topbar-links { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar-mail { font-weight: 700; font-size: 17px; white-space: nowrap; }
@media (min-width: 901px) {
  .topbar .phone, .topbar-mail-narrow { display: none; }
}
@media (max-width: 900px) {
  .topbar-mail { display: none; }
  /* на телефоне хватает «Корзины» — вторая ссылка переносилась строкой */
  .checkout-link { display: none; }
}

/* Три колонки: поиск слева, логотип по центру, контакты справа — как на
   старом сайте. Крайние колонки равной доли, поэтому логотип стоит ровно
   посередине независимо от длины телефона. */
.header-row {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 20px;
  padding-top: 32px; padding-bottom: 32px;
}
.header-row > * { min-width: 0; }
.logo { justify-self: center; }
.logo img { display: block; height: 98px; width: auto; max-width: 100%; }
.header form { display: flex; max-width: 340px; min-width: 0; }
.header-side { text-align: right; }
.header-phone { display: block; font-size: 20px; font-weight: 700; color: var(--text); }
.header-phone:hover { text-decoration: none; color: var(--blue); }
.hours { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.header input[type="search"] {
  flex: 1 1 auto; min-width: 0; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius);
  font-size: 15px;
}
.header button {
  padding: 9px 16px; border: 0; background: var(--blue); color: #fff;
  border-radius: 0 var(--radius) var(--radius) 0; cursor: pointer; font-size: 15px;
}

/* ------------------------------------------------------------------- меню */
.nav { background: var(--bg-soft); border-top: 1px solid var(--line);
       border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; flex-wrap: wrap; gap: 4px 26px;
             align-items: center; justify-content: center; position: relative; }
.nav a {
  display: block; padding: 14px 0; color: var(--text);
  text-transform: uppercase; font-size: 15px; font-weight: 500;
  letter-spacing: .02em;
}
.nav a:hover { color: var(--blue); text-decoration: none; }
/* ---------------------------------------------------------- выпадающий список */
/* Как на старом сайте: панель под меню на всю ширину колонки контента,
   разделы в четыре колонки заглавными. Отсчёт от .nav .wrap, поэтому
   у .has-sub своего позиционирования нет. */
.has-sub { display: flex; align-items: center; gap: 2px; }
.sub-toggle {
  border: 0; background: none; cursor: pointer; font-size: 13px;
  color: var(--text); padding: 4px;
}
.submenu {
  display: none; position: absolute; top: 100%; left: 16px; right: 16px; z-index: 20;
  background: #fff; border: 1px solid var(--line);
  padding: 14px 12px;
  grid-template-columns: repeat(4, 1fr); gap: 2px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,.08);
}
.submenu a {
  display: block; padding: 7px 12px; text-transform: uppercase;
  font-size: 14px; font-weight: 400; letter-spacing: .01em; line-height: 1.45;
}
.submenu a:hover { color: var(--blue); background: var(--bg-soft); }
.has-sub:hover .submenu, .has-sub.open .submenu { display: grid; }

@media (max-width: 900px) {
  /* Наведения нет — список открывается кнопкой и ложится в одну колонку
     прямо в потоке, чтобы не уезжать за край экрана. */
  .has-sub { flex-wrap: wrap; }
  .has-sub:hover .submenu { display: none; }
  .has-sub { position: static; }
  .has-sub.open .submenu { display: block; }
  .submenu { position: static; min-width: 0; width: 100%;
             border: 0; box-shadow: none; padding: 0 0 8px 14px; }
  .submenu a { text-transform: none; }
}

/* ---------------------------------------------------------------- слайдер */
.slider { position: relative; background: #f2f2f2; }
.slide { display: none; }
.slide.on { display: block; }
/* Пропорции слайдера заданы заранее: без этого страница дёргается, когда
   баннер догружается, и по этому Яндекс снижает оценку удобства. */
.slide img { display: block; width: 100%; height: auto;
             aspect-ratio: 1920 / 560; object-fit: cover; }
.dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 8px;
}
.dots button {
  width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.55); cursor: pointer;
}
.dots button.on { background: #fff; }

/* ------------------------------------------------------------------- карта */
.map { margin-top: 64px; line-height: 0; position: relative; }  /* владелец 25.09.2026: было 40 */
.map iframe { display: block; width: 100%; border: 0; }
/* Карточка — окошко поверх карты у правого края колонки контента, а не
   у края экрана: так на старом сайте (замер на 1440 px: 262 px шириной,
   почти на всю высоту карты). Карта остаётся видна с обеих сторон. */
.map-card {
  position: absolute; top: 2px; bottom: 2px; width: 262px;
  right: max(16px, calc((100% - var(--wrap)) / 2 + 16px));
  background: #fff; padding: 20px 12px 20px 16px; line-height: 1.5; font-size: 16px;
  overflow: auto;
}
.map-card h3 { font-size: 30px; font-weight: 500; text-transform: uppercase;
               margin: 0 0 16px; line-height: 1.2; }
/* Строка: значок в своей колонке, текст ровно под текстом соседней
   строки — иначе перенос адреса ломает выравнивание. */
.map-card p { display: grid; grid-template-columns: 18px 1fr; gap: 8px;
              align-items: start; margin: 0 0 14px; }
.map-card svg { width: 17px; height: 17px; margin-top: 3px; fill: var(--muted); }
.map-card a { color: var(--text); }
.map-card a:hover { color: var(--blue); }

@media (max-width: 860px) {
  /* Поверх карты карточка закрыла бы половину экрана — кладём под неё. */
  .map-card { position: static; width: auto; height: auto;
              border-top: 1px solid var(--line); }
}

/* ------------------------------------------------------------ хлебные крошки */
.crumbs { font-size: 14px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 6px; }

h1 { font-size: 27px; line-height: 1.25; margin: 18px 0 20px; }
h2 { font-size: 21px; margin: 28px 0 14px; }

/* ------------------------------------------------------------------ сетки */
.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.grid > * { min-width: 0; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; display: flex; flex-direction: column; text-align: center;
}
.card:hover { border-color: #c9c9c9; }
.card .pic {
  height: 170px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.card .pic img { max-height: 170px; object-fit: contain; }
.card .name { font-size: 15px; margin-bottom: 10px; }
.card .name a { color: var(--text); }
.card .name a:hover { color: var(--blue); }
.card a.pic img { transition: transform .2s; }
.card a.pic:hover img { transform: scale(1.04); }
.card .price { font-size: 20px; font-weight: 700; margin: auto 0 12px; }
.card .price small { font-size: 13px; font-weight: 400; color: var(--muted); }

/* Плитка раздела — как на старом сайте: без рамки, картинка и подпись
   заглавными, вся плитка — ссылка. */
.cat-tile { display: flex; flex-direction: column; align-items: center;
            text-align: center; padding: 10px 6px; color: var(--muted); }
.cat-tile:hover { text-decoration: none; color: var(--blue); }
.cat-tile .pic { height: 170px; width: 100%; display: flex; align-items: center;
                 justify-content: center; margin-bottom: 12px; }
.cat-tile .pic img { max-height: 170px; object-fit: contain;
                     transition: transform .2s; }
.cat-tile:hover .pic img { transform: scale(1.04); }
.cat-tile .name { font-size: 13px; font-weight: 500; text-transform: uppercase;
                  letter-spacing: .02em; line-height: 1.5; }
@media (max-width: 640px) {
  .cat-tile .pic { height: 120px; }
  .cat-tile .pic img { max-height: 120px; }
}

.btn {
  display: inline-block; padding: 10px 20px; border: 0; border-radius: var(--radius);
  background: var(--blue); color: #fff; font-size: 15px; cursor: pointer;
  text-align: center;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; }
.btn-wide { width: 100%; }

/* ---------------------------------------------------------------- карточка */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
           gap: 30px; align-items: start; }
.product .gallery img { border: 1px solid var(--line); border-radius: var(--radius); }

/* Описание карточки — единый вид для всех услуг (владелец 25.09.2026).
   Разметку приводит к общему виду команда normalize_texts. */
.product .text { font-size: 16px; line-height: 1.65; margin-top: 22px; }
.product .text p { margin: 0 0 12px; }
.product .text h3 { font-size: 18px; margin: 24px 0 10px; }
.product .text ul { margin: 0 0 14px; padding-left: 22px; }
.product .text li { margin-bottom: 6px; }
.product .text li::marker { color: var(--blue); }
.product .text img { max-width: 100%; height: auto; }
.rent-terms { background: var(--bg-soft); border-left: 4px solid var(--blue);
              border-radius: var(--radius); padding: 12px 16px; font-weight: 500; }
/* в исходных текстах условия то жирные, то нет — выравниваем */
.rent-terms b { font-weight: inherit; }
.footnote { font-size: 13px; color: var(--muted); }

/* Блок условий: строка «Условия аренды» и общие условия списком. */
.rent-box { background: var(--bg-soft); border-left: 4px solid var(--blue);
            border-radius: var(--radius); padding: 14px 18px; margin: 0 0 20px; }
.product .text .rent-box .rent-terms { background: none; border: 0; padding: 0;
                                       margin: 0 0 8px; font-weight: 600; }
.product .text .rent-box ul { margin: 0; padding-left: 20px; font-size: 15px; }
.product .text .rent-box li { margin-bottom: 4px; }
/* Характеристики: «параметр — значение» строками таблицы. */
.product p.spec { display: flex; gap: 16px; margin: 0; padding: 8px 0;
                        border-bottom: 1px solid var(--line); font-size: 15px; }
.product p.spec span { flex: 0 0 52%; color: var(--muted); }
@media (max-width: 520px) {
  .product p.spec { flex-direction: column; gap: 2px; }
}
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs img { width: 84px; height: 84px; object-fit: contain;
              border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; }

.buybox { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.buybox dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px;
             margin: 0 0 14px; font-size: 15px; }
.buybox dt { color: var(--muted); }
.buybox dd { margin: 0; }
.buybox .price { font-size: 30px; font-weight: 700; margin-bottom: 4px; }
.buybox .unit { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.stock { color: #1a7a37; }

.text { line-height: 1.65; }
.text img { border-radius: var(--radius); }

/* Страница «Сервис»: вступление, списки с метками, блок с телефоном. */
/* Во всю ширину колонки — вровень с шапкой и меню (владелец 24.09.2026). */
.service { max-width: none; }
.service h2 { font-size: 22px; margin: 34px 0 14px; }
.service-banner { display: block; width: 100%; height: auto; margin: 4px 0 22px; }
/* Фото ниже, но на ту же ширину: срезаем небо и асфальт, фургон остаётся
   целиком (владелец 24.09.2026: «уменьшить, но не в длину»). */
.service-banner.banner-low { aspect-ratio: 1148 / 340; object-fit: cover;
                             object-position: 50% 75%; }
.service-lead { font-size: 18px; line-height: 1.6; margin: 0 0 8px; }
.service-list, .service-plus { list-style: none; padding: 0; margin: 0; }
.service-list li { position: relative; padding: 0 0 12px 26px; }
.service-list li::before {
  content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px;
  border-radius: 50%; background: var(--blue);
}
.service-plus { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
                gap: 12px; }
.service-plus li {
  position: relative; padding: 14px 16px 14px 44px; background: var(--bg-soft);
  border-radius: var(--radius); line-height: 1.45;
}
.service-plus li::before {
  content: "✓"; position: absolute; left: 16px; top: 13px; color: var(--blue);
  font-weight: 700;
}
.service-contact {
  display: flex; align-items: center; justify-content: space-between; gap: 14px 24px;
  flex-wrap: wrap; margin: 34px 0 10px; padding: 20px 24px;
  border: 1px solid var(--line); border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}
.service-contact p { margin: 0; font-size: 17px; font-weight: 500; }
.service-contact .btn { font-size: 18px; padding: 12px 26px; white-space: nowrap; }

/* «Доставка»: адрес и часы в выделенных блоках, цены таблицей. */
.info-box { background: var(--bg-soft); border-left: 4px solid var(--blue);
            border-radius: var(--radius); padding: 14px 18px; margin: 4px 0 16px; }
.info-box p { margin: 0 0 8px; }
.info-box p:last-child { margin-bottom: 0; }
.info-main { font-size: 17px; font-weight: 700; }
.info-label { color: var(--muted); }
.text .price-table { display: table; width: 100%; max-width: 560px; margin: 4px 0 14px; }
.text .price-table td { border: 0; border-bottom: 1px solid var(--line); padding: 11px 4px; }
.text .price-table td:last-child { text-align: right; font-weight: 700; white-space: nowrap;
                                   font-size: 17px; }
.info-note { color: var(--muted); margin-top: 22px; }

/* Контакты: карточки, схема и фото проезда, реквизиты рядом с формой. */
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
                 margin: 6px 0 10px; }
.contact-card { border: 1px solid var(--line); border-top: 3px solid var(--blue);
                border-radius: var(--radius); padding: 16px 18px; }
.contact-label { font-size: 13px; color: var(--muted); text-transform: uppercase;
                 letter-spacing: .03em; margin-bottom: 8px; }
.contact-value { font-size: 16px; font-weight: 500; line-height: 1.5; }
.contact-note { font-size: 14px; color: var(--muted); margin-top: 6px; }
.contact-phone { font-size: 19px; font-weight: 700; color: var(--text); white-space: nowrap; }
.contact-phone:hover { color: var(--blue); text-decoration: none; }
.route { display: grid; grid-template-columns: 1.1fr 1fr; grid-template-rows: auto auto;
         gap: 16px; }
.route figure { margin: 0; }
.route img { display: block; width: 100%; height: auto; border-radius: var(--radius);
             border: 1px solid var(--line); }
/* Схема тянется на высоту двух фото справа: высота 0 + flex — чтобы она
   не раздувала строки сетки своим размером, а заполняла готовые. */
.route-map { grid-row: span 2; display: flex; flex-direction: column; }
.route-map img { flex: 1; height: 0; min-height: 260px; object-fit: cover;
                 object-position: 60% 75%; }
.route figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
.contact-bottom { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px;
                  margin-top: 16px; align-items: start; }
.contact-bottom .requisites { width: 100%; }
.contact-bottom .requisites td { border-bottom: 1px solid var(--line); }
.contact-deposit { margin-top: 14px; }
.contact-form { border: 1px solid var(--line); border-radius: var(--radius);
                padding: 4px 20px 18px; background: var(--bg-soft); }
.contact-form .lead { border: 0; padding: 0; background: none; }
@media (max-width: 900px) {
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .route { grid-template-columns: 1fr; }
  .route-map { grid-row: auto; }
  .route-map img { flex: none; height: auto; min-height: 0; }
  .contact-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .contact-cards { grid-template-columns: 1fr; }
}
.text table { width: 100%; border-collapse: collapse; display: block;
              overflow-x: auto; }
.requisites td { padding: 8px 10px; vertical-align: top; }
.requisites td:first-child { color: var(--muted); white-space: nowrap; width: 1%; }
.text td, .text th { border: 1px solid var(--line); padding: 6px 10px; }

/* ------------------------------------------------------------------ корзина */
.cart-link { font-weight: 700; }
.btn-cart.added { background: #eaf6ec; color: #1a7a37; border-color: #bfe0c6; }
.btn-cart.added:hover { background: #dcf0e0; color: #1a7a37; }
.quick-title { margin: 18px 0 6px; font-weight: 700; }

/* «Заказать в 1 клик»: кнопка под «Арендовать» и окно (как у строймеханики). */
/* с префиксом .buybox — иначе общий .btn ниже по файлу перекрывал
   белый фон, и две кнопки сливались в одну синюю полосу */
.buybox .btn-oneclick { margin-top: 12px; background: #fff; color: var(--blue);
                border: 1px solid var(--blue); }
.buybox .btn-oneclick:hover { background: var(--blue); color: #fff; }
.modal { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.45);
         display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal-box { position: relative; background: #fff; border-radius: var(--radius);
             width: 440px; max-width: 100%; max-height: calc(100vh - 32px); overflow: auto;
             padding: 26px 26px 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.modal-box h2 { margin: 0 0 6px; font-size: 22px; }
.modal-product { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.modal-close { position: absolute; top: 8px; right: 12px; border: 0; background: none;
               font-size: 28px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-box label { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.modal-box label i, .modal-box .note i { color: #c0392b; font-style: normal; }
.modal-box input, .modal-box textarea {
  width: 100%; padding: 10px 12px; margin-top: 4px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.modal-box textarea { min-height: 76px; resize: vertical; }
.modal-box .note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.quick-result { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius); }
.quick-result.ok { background: #eaf6ec; border: 1px solid #bfe0c6; }
.quick-result.err { background: #fdecea; border: 1px solid #f5c2bd; color: #a12b1f; }

/* Окно «добавлено в корзину»: по центру, страница затемнена. */
.toast {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center;
  justify-content: center; padding: 16px; background: rgba(20, 30, 45, .45);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.toast.on { opacity: 1; visibility: visible; }
.toast-box {
  width: 460px; max-width: 100%; background: #fff; border-radius: 8px; overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,.3); transform: translateY(12px); transition: transform .2s;
}
.toast.on .toast-box { transform: none; }
.toast-head { position: relative; padding: 14px 48px 14px 20px; background: #2e8b57; color: #fff;
              font-size: 17px; font-weight: 600; }
.toast-x { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); border: 0;
           background: none; font-size: 26px; line-height: 1; color: #fff; cursor: pointer; padding: 4px 8px; }
.toast-body { display: flex; gap: 16px; align-items: center; padding: 20px 20px 0; }
.toast-body img { width: 96px; height: 96px; object-fit: contain; flex: none; }
.toast-body p { margin: 0; font-size: 17px; line-height: 1.4; }
.toast-actions { display: flex; gap: 10px; padding: 20px; }
.toast-actions > * { flex: 1; text-align: center; padding: 12px 8px; font-size: 15px; }
.btn-light { background: #fff; color: var(--text); border: 1px solid var(--line);
             border-radius: var(--radius); cursor: pointer; }
.btn-light:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 640px) {
  .toast-actions { flex-direction: column-reverse; }
  .toast-body img { width: 72px; height: 72px; }
}

.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.cart-table td { border-bottom: 1px solid var(--line); padding: 12px 8px;
                 vertical-align: middle; }
.cart-table .pic { width: 70px; }
.cart-table .pic img { width: 60px; height: 60px; object-fit: contain; }
.cart-table .name a { color: var(--text); }
.cart-table .unit-price { display: block; font-size: 14px; color: var(--muted); margin-top: 2px; }
.cart-table .sum { white-space: nowrap; text-align: right; font-weight: 700; width: 110px; }
.cart-table .drop { width: 36px; text-align: right; }
.cart-table .drop button {
  border: 0; background: none; font-size: 22px; line-height: 1;
  color: var(--muted); cursor: pointer; padding: 0 4px;
}
.cart-table .drop button:hover { color: #b02020; }
.stepper { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); }
.stepper button { width: 32px; border: 0; background: var(--bg-soft); cursor: pointer;
                  font-size: 18px; line-height: 1; }
.stepper button:hover { background: #e6e6e6; }
.stepper input { width: 44px; border: 0; text-align: center; font-size: 15px;
                 -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-wrap { display: inline-flex; flex-direction: column; align-items: flex-start;
                gap: 4px; margin: 2px 18px 2px 0; vertical-align: top; }
.stepper-label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.cart-table .sum small { font-weight: 400; color: var(--muted); }
/* Атрибут hidden должен побеждать display из стилей: иначе «.lead label»
   показывал поле адреса даже при «Заберу сам». */
[hidden] { display: none !important; }
.cart-form { padding: 22px 24px; }
.cart-form h2 { margin-top: 0; }
.cart-form-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px;
                  align-items: start; }
.cart-form-cols > * { min-width: 0; }
.cart-form .delivery { margin-bottom: 0; }
/* Низ корзины в две колонки, как поля над ним: слева итог, справа
   согласие и кнопка во всю колонку (владелец 25.09.2026). */
.cart-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; align-items: end;
               border-top: 1px solid var(--line); margin-top: 12px; padding-top: 16px; }
.cart-submit .btn { display: block; width: 100%; padding: 14px 20px; font-size: 17px; }
.cart-submit .note { margin: 8px 0 0; }
@media (max-width: 760px) {
  .cart-form { padding: 16px; }
  .cart-form-cols { grid-template-columns: 1fr; }
  .cart-form .delivery { margin-bottom: 14px; }
  .cart-bottom { grid-template-columns: 1fr; }
}
.cart-total { margin: 0; font-size: 16px; }
.cart-total p { margin: 0 0 4px; }
.cart-total .grand { font-size: 22px; font-weight: 700; margin-top: 8px; }
@media (max-width: 640px) {
  /* Строка корзины на телефоне: фото и название сверху, под ними
     количество, сумма и крестик в одну линию. */
  .cart-table tr { display: grid; grid-template-columns: 60px 1fr auto;
                   gap: 8px 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .cart-table td { border: 0; padding: 0; }
  .cart-table .name { grid-column: 2; grid-row: 1; }
  .cart-table .drop { grid-column: 3; grid-row: 1; width: auto; }
  .cart-table .qty { grid-column: 1 / 3; grid-row: 2; }
  .cart-table .sum { grid-column: 3; grid-row: 2; width: auto; }
}

.total { font-size: 17px; margin: 0 0 22px; }
.total small { color: var(--muted); font-weight: 400; font-size: 14px; }
.empty { color: var(--muted); margin-bottom: 24px; }

.lead-wide { max-width: 720px; }
.lead-cols { display: grid; gap: 0 16px;
             grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.lead-cols > * { min-width: 0; }
.delivery { border: 1px solid var(--line); border-radius: var(--radius);
            padding: 12px 14px; margin-bottom: 14px; }
.delivery legend { font-size: 14px; color: var(--muted); padding: 0 6px; }
.delivery .radio { display: flex; align-items: baseline; gap: 8px;
                   margin-bottom: 8px; color: var(--text); font-size: 15px; }
.delivery .radio input { width: auto; margin: 0; }
.delivery .radio small { color: var(--muted); }
.delivery .note { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* ------------------------------------------------------------------ форма */
.lead { border: 1px solid var(--line); border-radius: var(--radius);
        padding: 18px; background: var(--bg-soft); }
.lead label { display: block; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.lead input, .lead textarea {
  width: 100%; padding: 10px 12px; margin-top: 4px; font-size: 15px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-family: inherit; background: #fff;
}
.lead textarea { min-height: 84px; resize: vertical; }
.lead .note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.errors { color: #b02020; font-size: 14px; margin-bottom: 12px; }
.ok { background: #eaf6ec; border: 1px solid #bfe0c6; border-radius: var(--radius);
      padding: 14px 16px; margin-bottom: 20px; }

/* ------------------------------------------------------------------ подвал */
/* Подвал светлый — на старом сайте он белый. Тёмный менял бы вид
   страницы сильнее, чем позволено (Р8, «узнаваемо как сейчас»). */
.footer { background: #fff; color: var(--text); border-top: 1px solid var(--line);
          margin-top: 0; padding: 30px 0; font-size: 15px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--blue); }
.footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 32px; }
.footer h3 { line-height: 20px; }
@media (max-width: 760px) {
  .footer .cols { grid-template-columns: 1fr; gap: 6px; }
}
.footer .cols > * { min-width: 0; }
.footer h3 { font-size: 16px; text-transform: uppercase; margin: 0 0 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 6px; }
.footer .copy { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 16px;
                color: var(--muted); font-size: 14px; }

.staging {
  background: #fff3cd; border-bottom: 1px solid #e0cf9a; color: #6a5200;
  padding: 8px 0; font-size: 14px;
}

/* ------------------------------------------------------------------ телефон */
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  /* Цена и кнопка должны стоять до описания, иначе на телефоне их
     приходится искать под простынёй текста. */
  .product .buybox { order: -1; }
  h1 { font-size: 22px; }
}

@media (max-width: 900px) {
  /* Колонки шапки складываются: логотип сверху, под ним поиск. Телефон
     справа прячем — он уже есть в тёмной полосе, и дублировать его
     на узком экране незачем. */
  .header-row { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .header form { max-width: none; width: 100%; }
  .logo { order: -1; }
  .header-side { display: none; }
}

@media (max-width: 640px) {
  .logo img { height: 64px; }
  .topbar .wrap { flex-direction: column; align-items: flex-start;
                  gap: 2px; padding: 6px 16px; }
  .nav .wrap { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .card .pic { height: 130px; }
  .card .pic img { max-height: 130px; }
}

/* Телефон: кнопки под палец и реквизиты без распора (проверка 25.09.2026). */
@media (max-width: 640px) {
  .sub-toggle { min-width: 44px; min-height: 44px; font-size: 16px; }
  .topbar .phone { display: inline-block; padding: 8px 0; }
  .stepper button { width: 40px; height: 38px; font-size: 20px; }
  .stepper input { height: 38px; }
  .requisites td:first-child { white-space: normal; width: 40%; }
  .requisites td { word-break: break-word; }
}

/* Меню на всю ширину колонки контента, как на старом сайте: первый пункт —
   у левого края (вровень с крошками и заголовком), последний — у правого.
   По центру экрана оно казалось сдвинутым вправо (владелец 25.09.2026). */
@media (min-width: 901px) {
  .nav .wrap { justify-content: space-between; }
}

/* Правая колонка карточки: оформление сверху, под ним характеристики.
   Колонка становится столбиком: buybox и характеристики друг под другом. */
.product > .buybox-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.side-specs { border: 1px solid var(--line); border-radius: var(--radius);
              padding: 16px 18px 8px; }
.side-specs h2 { font-size: 17px; margin: 0 0 6px; }
.side-specs p.spec { font-size: 14px; gap: 12px; }
.side-specs p.spec:last-child { border-bottom: 0; }
.side-specs p.spec span { flex-basis: 50%; }

/* На телефоне колонка распадается: цена и кнопки — над фото, характеристики —
   после описания. Правило в конце файла, иначе его перекрывает display:flex. */
@media (max-width: 860px) {
  .product > .buybox-col { display: contents; }
}

/* Франшиза — по образцу строймеханики: форма слева, текст справа. */
.fr-grid { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 40px;
           align-items: start; margin-top: 10px; }
.fr-form { background: #fff; border-radius: 6px; box-shadow: 0 2px 18px rgba(0,0,0,.08);
           padding: 26px 26px 20px; border-top: 4px solid var(--blue); }
.fr-lead { color: var(--blue); font-size: 17px; font-weight: 700; text-align: center; }
.fr-sub { color: var(--muted); font-size: 13px; text-align: center; margin: 4px 0 18px; }
.fr-form h2 { font-size: 21px; line-height: 1.25; margin: 0 0 18px; }
.fr-form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.fr-form label i, .fr-form .note i { color: #c0392b; font-style: normal; }
.fr-form input, .fr-form textarea {
  width: 100%; margin-top: 5px; padding: 10px 12px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
.fr-form input:focus, .fr-form textarea:focus { outline: none; border-color: var(--blue);
                                                background: #fff; }
.fr-form textarea { min-height: 96px; resize: vertical; }
.fr-form .note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.fr-safe { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line);
           font-size: 13px; color: var(--muted); text-align: center; }
.fr-title { font-size: 30px; line-height: 1.25; margin: 0 0 14px; }
.fr-note { font-size: 18px; line-height: 1.55; background: var(--bg-soft);
           border-left: 4px solid var(--blue); border-radius: var(--radius);
           padding: 14px 18px; margin-bottom: 26px; }
.fr-body h2 { font-size: 22px; margin: 0 0 14px; }
.fr-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid;
           grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.fr-list li { position: relative; padding-left: 30px; line-height: 1.5; }
.fr-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px;
                      height: 20px; border-radius: 50%; background: var(--blue); color: #fff;
                      font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.fr-cta { font-size: 18px; font-weight: 600; color: var(--blue); }
@media (max-width: 900px) {
  .fr-grid { grid-template-columns: 1fr; }
  .fr-body { order: -1; }
  .fr-list { grid-template-columns: 1fr; }
  .fr-title { font-size: 24px; }
}

/* Главное фото карточки — рамка всегда во всю ширину колонки и одной высоты,
   картинка по центру. Раньше рамка сжималась по размеру файла: у маленьких
   фото (болгарка Bosch — 597 px) она была уже описания (владелец 25.09.2026). */
.product .gallery > img { display: block; width: 100%; height: 480px;
                          object-fit: contain; background: #fff; padding: 16px; }
@media (max-width: 860px) {
  .product .gallery > img { height: 320px; padding: 10px; }
}

/* Подсказки поиска — выпадают под строкой, как у строймеханики. */
.header form.search { position: relative; }
.ac { position: absolute; top: 100%; left: 0; z-index: 40; width: 460px; max-width: 92vw;
      background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
      box-shadow: 0 10px 28px rgba(0,0,0,.14); margin-top: 4px; overflow: hidden; }
.ac a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text);
        border-bottom: 1px solid var(--line); font-size: 14px; }
.ac a:hover, .ac a.on { background: var(--bg-soft); text-decoration: none; }
.ac img, .ac-noimg { width: 40px; height: 40px; object-fit: contain; flex: none; }
.ac-nm { flex: 1; min-width: 0; line-height: 1.3; }
.ac-art { display: block; font-size: 12px; color: var(--muted); }
.ac-pr { white-space: nowrap; font-weight: 600; font-size: 13px; }
.ac-cat .ac-nm { font-weight: 600; }
.ac-all { justify-content: center; color: var(--blue) !important; font-weight: 600; border-bottom: 0 !important; }
.ac-none { padding: 12px; color: var(--muted); font-size: 14px; }
.search-cats { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.search-cats span { color: var(--muted); }
.search-cats a { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px;
                 padding: 5px 12px; font-size: 14px; color: var(--text); }
.search-cats a:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }

/* «Уточняйте наличие» — снятая галочка «Доступен для аренды». */
.stock.off { color: #b26a00; }
.card .avail-off { font-size: 13px; color: #b26a00; margin: -6px 0 10px; }

/* Звёздочка обязательного поля в корзине и в форме на контактах. */
form.lead label i, form.lead .note i { color: #c0392b; font-style: normal; }

/* Скидка от 10 суток: строка под ценой на карточке и в строке корзины. */
.buybox .long-price { font-size: 15px; color: #333; margin: -8px 0 16px; }
.buybox .long-price b { color: #1b4f9c; }
.buybox .long-price span { display: inline-block; margin-left: 4px; padding: 1px 6px; font-size: 12px;
  color: #fff; background: #2e8b57; border-radius: 3px; vertical-align: 1px; }
.cart-table .long-note { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-table .long-note.on { color: #2e8b57; font-weight: 500; }

/* Согласие на обработку ПДн — переключатель, как у строймеханики. Сам флажок
   не скрыт через display:none, иначе браузер не покажет подсказку у поля. */
form label.consent { position: relative; display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px;
           font-size: 13px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.consent input { position: absolute; left: 8px; top: 8px; width: 1px; height: 1px; opacity: 0; }
.consent-switch { display: block; position: relative; flex: none; width: 36px; height: 20px; margin-top: 1px;
                  border-radius: 10px; background: #cfd6dd; transition: background .15s; }
.consent-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
                         border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25);
                         transition: transform .15s; }
.consent input:checked + .consent-switch { background: var(--blue); }
.consent input:checked + .consent-switch::after { transform: translateX(16px); }
.consent input:focus-visible + .consent-switch { outline: 2px solid var(--blue); outline-offset: 2px; }
.consent a { color: var(--blue); }
.consent i { color: #c0392b; font-style: normal; }
p.err { color: #c0392b; font-size: 13px; margin: -8px 0 10px; }

/* Нижняя панель на телефоне — как у строймеханики (владелец 25.09.2026). */
.mbar { display: none; }
@media (max-width: 700px) {
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
          background: #fff; border-top: 1px solid var(--line);
          box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
  .mbar a { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center;
            justify-content: center; gap: 3px; height: 58px; font-size: 11px; line-height: 1;
            color: var(--text); text-decoration: none; }
  .mbar a + a { border-left: 1px solid var(--line); }
  .mbar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7;
              stroke-linecap: round; stroke-linejoin: round; }
  .mbar .mbar-call { background: var(--blue); color: #fff; font-weight: 600; }
  .mbar a.wait { opacity: .55; }   /* чат ещё грузится */
  .mbar-cnt { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px;
              padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff;
              font-size: 10px; line-height: 17px; font-style: normal; text-align: center; }
  .mbar-cnt[hidden] { display: none; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  /* Кружок чата лежал поверх цены и кнопок: закрытым не показываем, меню
     открывает «Написать», и тогда оно встаёт над панелью. */
  .b24-widget-button-position-bottom-left, .b24-widget-button-position-bottom-right { bottom: 66px !important; }
  .b24-widget-button-wrapper:not(.b24-widget-button-bottom) { visibility: hidden !important; }
  .b24-widget-button-shadow { display: none !important; }
  .toast { z-index: 90; }          /* окно «добавлено в корзину» — над панелью */
}
