/* ==========================================================================
   УралФорклифт / estascredit.ru — общая таблица стилей
   Используется всеми страницами. Генерируется не она — её правят руками,
   страницы собирает _build/build.py.

   Светлая тема: белый фон, тёмный текст, один акцент (оранжевый). Так же
   устроены сайты конкурентов в нише — закупщик сравнивает нас с ними в
   соседних вкладках, и тёмный фон здесь читается как чужеродный.
   ========================================================================== */

:root{
  --bg:#ffffff;
  --panel:#f6f7f8;
  --panel-alt:#eef0f2;
  --panel-line:#dde2e6;
  /* Белый текст на кнопке требует 4.5:1: прежний #e8500f давал 3.76.
     Нынешние пары — 4.84:1 и 6.41:1 на наведении. */
  --orange:#c9450d;
  --orange-soft:#a83a0a;
  /* Бирюзовый на белом должен быть заметно темнее исходного #4fd8c4,
     иначе не проходит по контрасту для мелкого текста. */
  --teal:#0d8073;
  --yellow:#ffc13b;
  --text:#14181a;
  --text-dim:#59636a;
  /* AA требует 4.5:1: #828d94 давал 3.3, #6b757c — 4.39 на панелях */
  --text-faint:#656f76;
  --radius:2px;
  --maxw:1240px;
}
*{box-sizing:border-box; margin:0; padding:0;}

/* Ссылка для клавиатуры: уводит за пределы экрана, но всплывает при фокусе. */
.skip-link{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--orange); color:#fff; padding:12px 20px;
  font-family:'Oswald',sans-serif; font-size:14px; letter-spacing:0.04em;
}
.skip-link:focus{left:0;}

/* Видимый фокус на всём интерактивном. Браузерный контур на оранжевом фоне
   почти не читается, поэтому задаём свой с отступом. */
:where(a, button, input, select, textarea):focus-visible{
  outline:2px solid var(--orange);
  outline-offset:2px;
}
/* The `hidden` attribute is weaker than any class-based display rule, so a
   class like .lead__done{display:flex} would silently override it and leave
   "hidden" blocks visible. Neutralised once, globally. */
[hidden]{display:none !important;}
html{scroll-behavior:smooth;}
/* Anchor targets must clear the sticky header, otherwise headings land underneath it */
section[id], main[id]{scroll-margin-top:118px;}
body{
  background:var(--bg);
  color:var(--text);
  font-family:'Manrope',sans-serif;
  font-size:16px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  overflow-x:clip;
}
h1,h2,h3,h4{
  font-family:'Oswald',sans-serif;
  text-transform:uppercase;
  letter-spacing:0.01em;
  font-weight:600;
  line-height:1.08;
}
a{color:inherit; text-decoration:none;}
ul{list-style:none;}
img,svg{display:block; max-width:100%;}
button{font-family:inherit; cursor:pointer;}
.wrap{max-width:var(--maxw); margin:0 auto; padding:0 32px;}
.hazard-bar{
  height:6px; width:100%;
  background:repeating-linear-gradient(135deg, var(--yellow) 0 14px, #14171a 14px 28px);
}

/* ===== HEADER ===== */
header{
  position:sticky; top:0; z-index:100;
  background:rgba(255,255,255,0.94);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--panel-line);
}
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; padding:10px 32px;
  font-size:12.5px; color:var(--text-faint); letter-spacing:0.03em;
  border-bottom:1px solid var(--panel-line);
}
.topbar span b{color:var(--text-dim); font-weight:600;}
/* Контакт: значок и слово MAX, номер живёт только в href */
.contact-max{
  display:inline-flex; align-items:center; gap:7px;
  font-family:'Oswald',sans-serif; font-weight:600; letter-spacing:0.06em;
  color:var(--text); transition:color .15s;
}
.contact-max svg{width:16px; height:16px; flex-shrink:0;}
.contact-max:hover{color:var(--orange);}
.topbar .contact-max{font-size:13px;}
.foot-col .contact-max{
  font-size:14px; color:var(--text-dim);
  font-family:'Manrope',sans-serif; font-weight:400; letter-spacing:normal;
}
.foot-col .contact-max:hover{color:var(--orange);}
.topbar .tb-right{display:flex; align-items:center; gap:24px;}
.tb-phone{font-family:'Oswald',sans-serif; font-weight:600; font-size:13px; color:var(--text); letter-spacing:0.03em; transition:color .15s;}
.tb-phone:hover{color:var(--orange);}
.tb-email{color:var(--text-faint); transition:color .15s;}
.tb-email:hover{color:var(--orange);}
/* Телефон в navrow — дубликат tb-phone для планшета/мобильного, где topbar
   скрыт (см. медиа-запрос ниже). На десктопе строка сверху уже его несёт. */
.nav-right .phone-block{display:none;}
.navrow{
  display:flex; align-items:center; justify-content:space-between;
  max-width:var(--maxw); margin:0 auto; padding:16px 32px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family:'Oswald',sans-serif; font-weight:700; font-size:22px;
  letter-spacing:0.02em;
}
.logo .mark{
  width:40px; height:40px; display:flex; align-items:center; justify-content:center;
  color:var(--orange); flex-shrink:0;
}
.logo .mark svg{width:100%; height:100%;}
.logo small{color:var(--text-faint); font-family:'Manrope',sans-serif; font-weight:600; font-size:11px; letter-spacing:0.12em; display:block; text-transform:uppercase;}
nav.mainnav{display:flex; gap:22px;}
nav.mainnav a{
  font-size:13.5px; font-weight:600; letter-spacing:0.03em; text-transform:uppercase;
  color:var(--text-dim); transition:color .15s;
  padding:6px 0; position:relative;
}
nav.mainnav a:hover, nav.mainnav a.active{color:var(--text);}
nav.mainnav a.active{color:var(--orange);}
/* CTA and phone duplicated inside the mobile dropdown — hidden while the desktop nav is shown */
nav.mainnav .nav-cta{display:none;}
nav.mainnav .nav-cta-phone{display:none;}
.nav-right{display:flex; align-items:center; gap:22px;}
.phone-block{text-align:right; display:block; line-height:1.25;}
/* Кнопки-иконки звонка и MAX — запасной вариант для самых узких экранов,
   включаются только в медиа-запросе ≤430px ниже. */
.phone-icon-btn, .max-icon-btn{display:none;}
.phone-block .num{font-family:'Oswald',sans-serif; font-weight:600; font-size:16px; display:block;}
.phone-block:hover .num{color:var(--orange);}
.phone-block .hrs{font-size:11px; color:var(--text-faint); display:block;}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Oswald',sans-serif; font-weight:600; font-size:13.5px;
  letter-spacing:0.05em; text-transform:uppercase;
  padding:14px 26px; border-radius:var(--radius); border:1px solid transparent;
  transition:all .15s ease; white-space:nowrap;
}
.btn-primary{background:var(--orange); color:#fff;}
.btn-primary:hover{background:var(--orange-soft); color:#fff; transform:translateY(-1px);}
.btn-ghost{border-color:var(--panel-line); color:var(--text);}
.btn-ghost:hover{border-color:var(--orange); color:var(--orange);}
.btn-sm{padding:10px 18px; font-size:12px;}
.burger{
  display:none; width:44px; height:44px; border:1px solid var(--panel-line);
  flex-direction:column; align-items:center; justify-content:center; gap:4px;
  background:none; flex-shrink:0;
}
.burger span, .burger::before, .burger::after{content:''; display:block; width:18px; height:2px; background:var(--text);}
.burger[aria-expanded="true"]{border-color:var(--orange);}

/* ===== SECTION GENERIC ===== */
section{padding:96px 0; position:relative;}
.section-head{display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:52px; flex-wrap:wrap;}
.section-head h2{font-size:clamp(28px,3.2vw,42px); margin-top:14px; max-width:600px;}
.section-head p{color:var(--text-dim); max-width:420px; font-size:15px;}
.divider{height:1px; background:var(--panel-line);}

/* ===== PROCESS ===== */
.process-list{display:flex; flex-direction:column;}
.proc-item{
  display:grid; grid-template-columns:110px 1fr 1fr; gap:24px; align-items:start;
  padding:32px 0; border-top:1px solid var(--panel-line);
}
.proc-item:last-child{border-bottom:1px solid var(--panel-line);}
.proc-item .idx{font-family:'Oswald',sans-serif; font-size:40px; font-weight:700; color:var(--text-faint);}
.proc-item h3{font-size:19px; margin-bottom:8px; color:var(--text);}
.proc-item p{color:var(--text-dim); font-size:14.5px; max-width:440px;}
.proc-item .tag{font-family:'Oswald',sans-serif; font-size:11.5px; letter-spacing:0.12em; color:var(--orange); margin-bottom:10px; display:block;}

/* ===== CATALOG PREVIEW ===== */
.listing-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.listing-card{border:1px solid var(--panel-line); background:var(--panel); transition:border-color .18s;}
.listing-card:hover{border-color:var(--orange);}
.listing-img{
  height:200px; background:#fff; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center; color:var(--panel-line);
  border-bottom:1px solid var(--panel-line);
}
.listing-img svg{width:56%; color:var(--text-faint);}
.listing-img img{width:100%; height:100%; object-fit:contain; padding:10px;}
.listing-tag{
  position:absolute; top:12px; left:12px; background:var(--orange); color:#fff;
  font-family:'Oswald',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.08em;
  padding:5px 10px;
}
.listing-body{padding:22px 22px 24px;}
.listing-body .brand{font-size:11.5px; letter-spacing:0.1em; color:var(--text-faint); text-transform:uppercase; margin-bottom:6px;}
.listing-body h3{font-size:18px; margin-bottom:10px;}
.listing-specs{display:flex; gap:16px; margin-bottom:18px; flex-wrap:wrap;}
.listing-specs span{font-size:12px; color:var(--text-dim); border:1px solid var(--panel-line); padding:4px 9px;}
.listing-foot{display:flex; align-items:center; justify-content:space-between; padding-top:16px; border-top:1px solid var(--panel-line);}
.listing-foot .price{font-family:'Oswald',sans-serif; font-weight:600; font-size:16px; color:var(--orange-soft);}
.listing-foot .price small{display:block; font-family:'Manrope'; font-weight:500; font-size:10.5px; color:var(--text-faint);}

/* Доводы над каталогом. Не карточки: одинаковые плитки «иконка + заголовок
   + текст» — самый ленивый способ разложить страницу, и планка качества их
   прямо отвергает. Здесь работают только типографика и разделители. */
.offer{
  display:grid; grid-template-columns:repeat(3,1fr); gap:0;
  border-top:1px solid var(--panel-line); margin:0 0 56px;
}
.offer-item{padding:24px 28px; border-right:1px solid var(--panel-line);}
.offer-item:first-child{padding-left:0;}
.offer-item:last-child{border-right:none; padding-right:0;}
.offer-title{
  display:block; font-family:'Oswald',sans-serif; font-weight:600;
  font-size:16px; margin-bottom:8px; color:var(--text);
}
.offer-item p{color:var(--text-dim); font-size:14px;}

/* Живые каналы связи, пока форма не подключена */
.lead-offline{
  border:1px solid var(--orange); background:var(--bg);
  padding:20px 22px; margin-bottom:20px;
}
.lead-offline p{font-size:14.5px; color:var(--text); margin-bottom:16px;}
.lead-offline b{color:var(--text);}
.lead-offline__actions{display:flex; gap:12px; flex-wrap:wrap;}

.lead-title{font-size:clamp(26px,3vw,36px); margin:0 0 20px;}
.lead-sub{color:var(--text-dim); max-width:420px; font-size:15px;}
.listing-note{color:var(--text-dim); font-size:13.5px; margin-bottom:16px;}

/* ===== CATALOG: PAGE H1 ===== */
.page-h1{font-size:clamp(26px,3.4vw,38px); margin-bottom:28px; overflow-wrap:break-word;}
.page-intro{color:var(--text-dim); max-width:660px; font-size:15.5px; margin-bottom:8px;}
.cross-links{margin-top:32px; font-size:13.5px; color:var(--text-faint);}
.cross-links a{color:var(--text-dim); text-decoration:underline; text-underline-offset:2px;}
.cross-links a:hover{color:var(--orange);}

/* ===== СЕРВИСНЫЕ СТРАНИЦЫ ===== */
/* Предупреждение о недостающей фактуре. Видно и посетителю, и редактору —
   исчезает само, как только поля заполнены в _build/data/site.py. */
.notice{
  border-left:3px solid var(--orange); background:var(--panel);
  padding:14px 18px; margin:0 0 20px; font-size:14.5px; color:var(--text-dim);
}
.req-table{width:100%; border-collapse:collapse; font-size:14.5px;}
.req-table th{
  text-align:left; width:210px; padding:10px 14px; border:1px solid var(--panel-line);
  background:var(--panel); font-family:'Oswald',sans-serif; font-weight:600;
  font-size:12.5px; letter-spacing:0.04em; text-transform:uppercase; color:var(--text);
  vertical-align:top;
}
.req-table td{padding:10px 14px; border:1px solid var(--panel-line); color:var(--text-dim);}
.contact-channel{margin-top:20px; display:flex; align-items:center; gap:10px; flex-wrap:wrap;}

/* Списки-ссылки: города, категории внутри гео-страниц */
.geo-list{display:grid; grid-template-columns:repeat(2,1fr); gap:10px 24px; margin:0;}
.geo-list li{border-bottom:1px solid var(--panel-line); padding:10px 0;}
.geo-list a{color:var(--text-dim); font-size:14.5px;}
.geo-list a:hover{color:var(--orange);}

.inline-link{color:var(--orange); text-decoration:underline; text-underline-offset:2px;}

/* Строка городов в подвале */
.foot-geo{padding:24px 0; border-top:1px solid var(--panel-line);}
.foot-geo p{font-size:13.5px; color:var(--text-dim); line-height:1.9;}
.foot-geo a{color:var(--text-dim);}
.foot-geo a:hover{color:var(--orange);}

/* ===== CATALOG: LAYOUT ===== */
/* Каталог теперь в одну колонку: фильтры строками чипсов над сеткой, как в
   прайсах поставщиков. Сайдбар на 260px забирал треть ширины ради восьми
   галочек. */
.catalog-layout{display:block;}
.filters-toggle{display:none;}

/* ===== CATALOG: TYPE TILES ===== */
.type-tiles{display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:28px;}
.type-tile{
  display:flex; align-items:center; gap:12px; padding:10px 14px 10px 10px;
  border:1px solid var(--panel-line); background:var(--panel); color:var(--text);
  font-family:'Oswald',sans-serif; font-size:13px; letter-spacing:0.02em;
  transition:border-color .15s, color .15s;
}
.type-tile:hover{border-color:var(--orange); color:var(--orange);}
.type-tile.active{border-color:var(--orange); background:var(--panel-alt);}
.type-tile img{
  width:56px; height:44px; object-fit:contain; background:#fff; flex-shrink:0;
  border:1px solid var(--panel-line);
}
.type-tile span{min-width:0; overflow-wrap:break-word;}
/* «Электропогрузчики», «Газобаллонные» — цельные слова без пробелов;
   min-width:0 разрешает сжатие ряда, но перенести такое слово может
   только overflow-wrap. Без него текст держал внутреннюю ширину плитки
   и распирал сетку на мобильном. */

/* ===== CATALOG: CHIP FILTERS ===== */
.chip-filters{
  border:1px solid var(--panel-line); background:var(--panel);
  padding:18px 20px; margin-bottom:24px; display:grid; gap:12px;
}
.chip-row{display:grid; grid-template-columns:170px minmax(0,1fr); gap:14px; align-items:baseline;}
.chip-row-label{
  font-family:'Oswald',sans-serif; font-size:12px; letter-spacing:0.05em;
  text-transform:uppercase; color:var(--text-faint);
}
.chip-set{display:flex; flex-wrap:wrap; gap:8px;}
.chip{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  border:1px solid var(--panel-line); background:var(--bg); color:var(--text-dim);
  padding:7px 12px; font-size:13px; line-height:1; white-space:nowrap;
  transition:border-color .15s, color .15s, background .15s;
}
.chip:hover{border-color:var(--orange); color:var(--text);}
/* Сам чекбокс не показываем, но и не убираем из потока: он остаётся
   фокусируемым с клавиатуры, а :focus-visible подсвечивает всю плашку. */
.chip input{position:absolute; opacity:0; width:0; height:0;}
/* Состояние берём из самого чекбокса: JS для подсветки не нужен. Если
   браузер не знает :has() — чипс просто не подсветится, фильтрация
   останется рабочей. */
.chip:has(input:checked){border-color:var(--orange); background:var(--orange); color:#fff;}
.chip:focus-within{outline:2px solid var(--orange); outline-offset:2px;}
.chip-count{font-size:11px; color:var(--text-faint);}
.chip:has(input:checked) .chip-count{color:#fff;}
/* Значение, под которое в разделе нет карточки-примера, выглядит и
   работает как любое другое: мы подбираем технику под запрос, а не
   торгуем со склада, так что тусклый вид читался бы как «этого нет»,
   а это неправда. Счётчик рядом просто не появляется — молча. */
.chip-row-budget{align-items:center;}
.chip-row-budget .filter-price{max-width:260px;}

/* ===== CATALOG: FILTERS SIDEBAR ===== */
.filters{
  background:var(--panel); border:1px solid var(--panel-line); padding:26px;
  position:sticky; top:110px;
}
.filters h2{
  font-family:'Oswald',sans-serif; font-size:13px; letter-spacing:0.06em; text-transform:uppercase;
  color:var(--text); margin-bottom:14px; padding-top:22px; border-top:1px solid var(--panel-line);
}
.filters h2:first-child{padding-top:0; border-top:none;}
.filter-opt{
  display:flex; align-items:center; gap:10px; padding:7px 0; font-size:13.5px; color:var(--text-dim);
  cursor:pointer;
}
.filter-opt:hover{color:var(--text);}
.filter-opt input{accent-color:var(--orange); width:16px; height:16px; flex-shrink:0;}
.filter-opt .count{margin-left:auto; color:var(--text-faint); font-size:12px;}
.filter-price{display:flex; align-items:center; gap:8px;}
.filter-price input{
  background:var(--bg); border:1px solid var(--panel-line); color:var(--text);
  padding:9px 10px; font-size:13px; width:100%; min-width:0; border-radius:var(--radius);
}
.filter-price span{color:var(--text-faint); font-size:12px; flex-shrink:0;}
.filters .btn{width:100%; margin-top:16px;}
.filters-reset{
  font-size:12.5px; color:var(--text-faint); background:none; border:none;
  padding:8px 12px; margin-left:12px; white-space:nowrap;
}
.filters-reset:hover{color:var(--orange);}

/* Заголовок над сеткой: нужен и визуально, и чтобы не прыгать с H1 на H3 */
.catalog-h2{font-size:19px; margin-bottom:18px;}

/* Ссылка на карту вместо встроенного iframe */
.map-link{margin:18px 0;}
.map-link a{color:var(--orange-soft); text-decoration:underline; text-underline-offset:2px;}

/* Ссылки на нормативные документы */
.source-list{margin:0 0 18px; padding-left:20px; list-style:disc;}
.source-list li{margin-bottom:8px;}
.source-list a{color:var(--orange-soft); text-decoration:underline; text-underline-offset:2px;}

/* ===== CATALOG: SORT BAR ===== */
.sort-bar{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid var(--panel-line);
}
.sort-bar .count{font-size:13.5px; color:var(--text-dim);}
.sort-bar .sort-field{display:flex; align-items:center; gap:10px;}
.sort-bar label{font-size:12.5px; color:var(--text-faint); letter-spacing:0.02em;}
.sort-bar select{
  background:var(--panel); border:1px solid var(--panel-line); color:var(--text);
  padding:9px 12px; font-size:13px; border-radius:var(--radius); outline:none;
}

/* ===== CATALOG: PRODUCT GRID ===== */
.product-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px;}
.product-card{
  border:1px solid var(--panel-line); background:var(--panel); display:flex; flex-direction:column;
  transition:border-color .18s;
}
.product-card:hover{border-color:var(--orange);}
.product-card.is-hidden{display:none;}
.product-img{
  height:200px; background:#fff; position:relative; overflow:hidden;
  display:flex; align-items:center; justify-content:center; color:var(--panel-line);
  border-bottom:1px solid var(--panel-line);
}
.product-img svg{width:52%; color:var(--text-faint);}
/* contain, а не cover: снимки сняты на белом фоне и обрезать их нельзя —
   у половины кадров срежет мачту или вилы. */
.product-img img{width:100%; height:100%; object-fit:contain; padding:10px;}
.product-badge{
  position:absolute; top:10px; left:10px; background:var(--teal); color:#fff;
  font-family:'Oswald',sans-serif; font-size:10px; font-weight:700; letter-spacing:0.06em;
  padding:4px 9px;
}
.product-badge.sample{background:var(--panel-line); color:var(--text-dim);}
.product-badge.stock-out{background:var(--panel-alt); color:var(--text-dim);}
.product-body{padding:18px 18px 20px; display:flex; flex-direction:column; gap:8px; flex-grow:1;}
.product-body h3{font-size:15.5px; text-transform:none; letter-spacing:0;}
.product-desc{font-size:12.5px; color:var(--text-faint);}
.product-specs{display:flex; gap:10px; flex-wrap:wrap; margin:2px 0 4px;}
.product-specs span{font-size:11.5px; color:var(--text-dim); border:1px solid var(--panel-line); padding:3px 8px;}
/* Характеристики: сетка «подпись — значение». Точки-выноски не рисуем —
   на узкой карточке они превращаются в шум. */
.product-spec-list{display:grid; gap:5px; margin:4px 0 2px; font-size:12px;}
.product-spec-list > div{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:baseline;
  border-bottom:1px dotted var(--panel-line); padding-bottom:4px;
}
.product-spec-list > div:last-child{border-bottom:none;}
.product-spec-list dt{color:var(--text-faint);}
.product-spec-list dd{color:var(--text-dim); text-align:right; margin:0;}
.product-empty{
  grid-column:1/-1; color:var(--text-faint); font-size:14px; line-height:1.6;
  border:1px dashed var(--panel-line); padding:22px; text-align:center;
}
.product-empty p{margin:0 0 14px; max-width:520px; margin-left:auto; margin-right:auto;}
.product-empty .btn{padding:10px 20px; font-size:13px;}
.product-price{font-family:'Oswald',sans-serif; font-weight:600; font-size:17px; color:var(--orange-soft); margin-top:auto; padding-top:8px;}
.product-actions{display:flex; flex-direction:column; gap:8px; margin-top:10px;}
.product-actions .btn{padding:10px 14px; font-size:12px;}

/* ===== CATALOG: PAGINATION ===== */
.catalog-pagination{display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-top:36px;}
.catalog-pagination .count{font-size:13px; color:var(--text-faint);}
/* У .btn стоит white-space:nowrap — на узком экране эта длинная ссылка
   не переносилась и выдавливала страницу вбок. Здесь текст важнее
   одной строки, поэтому перенос разрешён точечно. */
.catalog-pagination .btn{white-space:normal; text-align:center;}

/* ===== CATALOG: CONTENT BLOCKS (construction / advantages / types) ===== */
.info-block{max-width:760px; margin-bottom:40px;}
.info-block h3{font-size:20px; margin-bottom:14px;}
.info-block ol, .info-block ul{margin-left:20px; color:var(--text-dim); font-size:14.5px; line-height:1.7;}
.info-block ol{list-style:decimal;}
.info-block ul{list-style:disc;}
.info-block li{margin-bottom:8px;}
.info-block p{color:var(--text-dim); font-size:14.5px; line-height:1.7;}

/* ===== CATALOG: MAP ===== */
.map-block{border:1px solid var(--panel-line); background:var(--panel-alt); height:320px; display:flex; align-items:center; justify-content:center; color:var(--text-faint); font-size:13.5px;}

/* ===== CALC / LEAD FORM ===== */
.calc-sec{background:var(--panel-alt); border-top:1px solid var(--panel-line); border-bottom:1px solid var(--panel-line);}
/* minmax(0,…) instead of a bare fr: a bare fr track cannot shrink below its
   content's min-content width, and the long <select> option would otherwise
   force the whole column — and the page — wider than the viewport. */
.calc-grid{display:grid; grid-template-columns:minmax(0,0.9fr) minmax(0,1.1fr); gap:60px; align-items:start;}
.calc-list li{display:flex; gap:14px; padding:16px 0; border-top:1px solid var(--panel-line); font-size:14.5px; color:var(--text-dim);}
.calc-list li:last-child{border-bottom:1px solid var(--panel-line);}
.calc-list li .chk{color:var(--teal); font-family:'Oswald',sans-serif; font-weight:700; flex-shrink:0;}
form.lead{background:var(--bg); border:1px solid var(--panel-line); padding:36px;}
.form-row{display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; margin-bottom:16px;}
.field{display:flex; flex-direction:column; gap:8px; min-width:0;}
.field.full{grid-column:1/-1;}
.field label{font-size:13px; letter-spacing:0.01em; color:var(--text-dim); font-weight:600;}
.field input, .field select, .field textarea{
  background:var(--panel); border:1px solid var(--panel-line); color:var(--text);
  padding:12px 14px; font-family:'Manrope',sans-serif; font-size:14.5px; border-radius:var(--radius);
  outline:none; transition:border-color .15s;
  width:100%; min-width:0; max-width:100%;
}
.field input:focus, .field select:focus, .field textarea:focus{border-color:var(--orange);}
.field textarea{resize:vertical; min-height:80px;}
form.lead .btn{width:100%; margin-top:6px; padding:16px;}
.form-note{font-size:13px; color:var(--text-faint); margin-top:14px; text-align:center;}
.form-msg{
  font-size:14.5px; padding:12px 14px; margin-bottom:14px;
  border:1px solid var(--panel-line); background:var(--panel); color:var(--text);
}
.form-msg.is-error{border-color:var(--orange);}
.form-msg a{color:var(--orange-soft); text-decoration:underline; text-underline-offset:2px;}
.form-success{display:none; text-align:center; padding:40px 10px;}
.form-success .ico{width:52px; height:52px; margin:0 auto 18px; color:var(--teal);}
.form-success h3{font-size:20px; margin-bottom:10px;}
.form-success p{color:var(--text-dim); font-size:14px;}

/* ===== FAQ ===== */
.faq-sec{background:var(--panel);}
.faq-list{max-width:820px;}
.faq-item{border-top:1px solid var(--panel-line);}
.faq-item:last-child{border-bottom:1px solid var(--panel-line);}
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  padding:24px 4px; background:none; border:none; color:var(--text); width:100%;
  text-align:left; font-family:'Oswald',sans-serif; font-size:16.5px; font-weight:500; letter-spacing:0.01em;
  text-transform:none;
}
.faq-q .plus{font-family:'Manrope'; font-size:22px; color:var(--orange); transition:transform .2s; flex-shrink:0;}
.faq-item.open .plus{transform:rotate(45deg);}
.faq-a{max-height:0; overflow:hidden; transition:max-height .25s ease;}
.faq-a p{padding:0 4px 24px; color:var(--text-dim); font-size:14.5px; max-width:640px;}

/* ===== FOOTER ===== */
footer{padding:72px 0 28px;}
.foot-grid{display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:56px;}
.foot-col h2, .foot-geo h2{font-size:12px; letter-spacing:0.1em; color:var(--text-faint); margin-bottom:18px; text-transform:uppercase; font-family:'Oswald',sans-serif;}
/* font-size/color на самом <li>, а не только на вложенном <a>: адрес в
   колонке «Контакты» — это простой текст без ссылки, и без этого он
   наследовал крупный шрифт секции вместо мелкого текста колонки. */
.foot-col ul li{margin-bottom:10px; font-size:14px; color:var(--text-dim);}
.foot-col ul li a{color:var(--text-dim);}
.foot-col ul li a:hover{color:var(--orange);}
.foot-about p{color:var(--text-dim); font-size:14px; max-width:320px; margin:16px 0 20px;}
.foot-bottom{display:flex; justify-content:space-between; align-items:center; padding-top:28px; border-top:1px solid var(--panel-line); flex-wrap:wrap; gap:12px;}
.foot-bottom p{font-size:13px; color:var(--text-faint);}
.social-row{display:flex; gap:10px;}
.social-row a{width:34px; height:34px; border:1px solid var(--panel-line); display:flex; align-items:center; justify-content:center; color:var(--text-dim); font-size:13px;}
.social-row a:hover{border-color:var(--orange); color:var(--orange);}

/* ===== ARTICLES: LISTING ===== */
.articles-hero{padding:64px 0 8px;}
.articles-hero h1{font-size:clamp(30px,4vw,48px); margin:16px 0 14px;}
.articles-hero p{color:var(--text-dim); max-width:560px; font-size:15.5px;}
.articles-grid{display:grid; grid-template-columns:repeat(2,1fr); gap:28px; margin-top:48px;}
.article-card{border:1px solid var(--panel-line); background:var(--panel); display:flex; flex-direction:column; transition:border-color .18s;}
.article-card:hover{border-color:var(--orange);}
/* Фото — почти в исходных пропорциях (2752×1536, ≈16:9): фиксированная
   высота в 150px обрезала кадр настолько, что лого и часть подписи с
   обложки уходили за край. aspect-ratio режет только по бокам, а не сверху. */
.article-card .thumb{
  aspect-ratio:16/9; background:var(--panel-alt); border-bottom:1px solid var(--panel-line);
  display:flex; align-items:center; justify-content:center; color:var(--text-faint); position:relative;
  overflow:hidden;
}
.article-card .thumb svg{width:44%; color:var(--text-faint);}
.article-card .thumb img{width:100%; height:100%; object-fit:cover;}
.article-card .cat{
  position:absolute; top:12px; left:12px; background:var(--teal); color:#fff;
  font-family:'Oswald',sans-serif; font-size:10.5px; font-weight:700; letter-spacing:0.08em; padding:5px 10px;
}
/* Текстовый блок нарочно короче фото: только дата, заголовок и ссылка —
   без затравки под ним, чтобы карточка читалась как обложка, а не текст. */
.article-card .body{padding:18px 20px 20px; display:flex; flex-direction:column; gap:8px;}
.article-card .date{font-size:11.5px; letter-spacing:0.06em; color:var(--text-faint); text-transform:uppercase;}
.article-card h2{font-size:17px; text-transform:none; letter-spacing:0; font-weight:600;}
.article-card .readmore{font-family:'Oswald',sans-serif; font-size:12px; letter-spacing:0.06em; text-transform:uppercase; color:var(--orange); margin-top:4px;}

/* ===== ARTICLES: SINGLE POST ===== */
.article-page{padding:56px 0 96px;}
.breadcrumbs{font-size:12.5px; color:var(--text-faint); margin-bottom:28px; display:flex; gap:8px; flex-wrap:wrap;}
.breadcrumbs a{color:var(--text-dim);}
.breadcrumbs a:hover{color:var(--orange);}
.article-cover{max-width:760px; margin-bottom:32px;}
.article-cover img{width:100%; height:auto; display:block; object-fit:cover;}
.article-header{max-width:760px; margin-bottom:40px;}
.article-header .cat-tag{
  display:inline-block; font-family:'Oswald',sans-serif; font-size:11px; font-weight:700; letter-spacing:0.1em;
  color:#fff; background:var(--teal); padding:5px 10px; margin-bottom:18px;
}
/* overflow-wrap: длинные технические термины без пробелов
   («грузоподъёмность») иначе не переносятся на узком экране при
   крупном clamp()-размере шрифта — тот же класс бага, что был у
   плиток каталога. */
.article-header h1{font-size:clamp(28px,4vw,44px); margin-bottom:16px; overflow-wrap:break-word;}
.article-header .meta{font-size:13px; color:var(--text-faint); display:flex; gap:16px; flex-wrap:wrap;}
.article-body{max-width:760px; font-size:16px; color:var(--text-dim);}
/* Wrapped in :where() so these carry zero specificity — a descendant rule
   like `.article-body h2` (0,1,1) would otherwise silently beat any future
   single-class modifier (0,1,0) applied to the same heading. */
:where(.article-body) h2{font-family:'Oswald',sans-serif; text-transform:none; letter-spacing:0; color:var(--text); font-size:24px; font-weight:600; margin:40px 0 16px;}
:where(.article-body) h3{font-family:'Oswald',sans-serif; text-transform:none; letter-spacing:0; color:var(--text); font-size:19px; font-weight:600; margin:28px 0 12px;}
:where(.article-body) p{margin-bottom:18px; line-height:1.7;}
:where(.article-body) ul, :where(.article-body) ol{margin:0 0 18px 20px; line-height:1.7;}
:where(.article-body) ul{list-style:disc;}
:where(.article-body) ol{list-style:decimal;}
:where(.article-body) li{margin-bottom:8px;}
:where(.article-body) a{color:var(--orange-soft); text-decoration:underline; text-underline-offset:2px;}
.article-body blockquote{
  border-left:2px solid var(--orange); padding:6px 0 6px 20px; margin:24px 0; color:var(--text);
  font-family:'Oswald',sans-serif; font-size:18px; font-weight:500; text-transform:none; letter-spacing:0;
}
.article-body table{width:100%; border-collapse:collapse; margin:24px 0; font-size:14.5px;}
.article-body th, .article-body td{border:1px solid var(--panel-line); padding:10px 14px; text-align:left;}
.article-body th{color:var(--text); font-family:'Oswald',sans-serif; font-weight:600; text-transform:uppercase; font-size:12px; letter-spacing:0.05em; background:var(--panel);}
.article-cta{
  max-width:760px; margin-top:48px; padding:28px 32px;
  border:1px solid var(--panel-line); border-left:4px solid var(--orange); background:var(--panel);
  display:flex; align-items:center; justify-content:space-between; gap:20px; flex-wrap:wrap;
}
.article-cta p{font-family:'Oswald',sans-serif; font-size:18px; font-weight:500; color:var(--text); max-width:400px; text-transform:none;}
.article-cta .contact-max{
  flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:'Oswald',sans-serif; font-weight:600; font-size:13.5px; letter-spacing:0.05em; text-transform:uppercase;
  padding:14px 26px; border-radius:var(--radius); background:var(--orange); color:#fff; transition:all .15s ease;
}
.article-cta .contact-max:hover{background:var(--orange-soft); color:#fff; transform:translateY(-1px);}
.article-nav{max-width:760px; margin-top:56px; padding-top:28px; border-top:1px solid var(--panel-line); font-size:13px; color:var(--text-faint);}

/* Wide content inside articles scrolls in its own container instead of
   pushing the page sideways */
.table-wrap{overflow-x:auto; -webkit-overflow-scrolling:touch; margin:24px 0;}
.table-wrap table{margin:0; min-width:440px;}

/* ===== TABLET / MOBILE =====
   The nav collapses at 1180px: at --maxw(1240px) the row has six links,
   the logo and the CTA button, and that's the narrowest point where they
   all fit on one line without the last link's text wrapping. */
@media (max-width: 1180px){
  /* Телефон остаётся: на мобильном это самый короткий путь к сделке.
     topbar (и вместе с ним tb-phone) прячется, поэтому телефон возвращается
     в navrow, чтобы не потеряться вместе со строкой режима работы. */
  .topbar{display:none;}
  .nav-right .phone-block{display:block;}
  .phone-block .hrs{display:none;}
  .phone-block .num{font-size:15px;}
  .burger{display:flex;}
  section[id], main[id]{scroll-margin-top:96px;}

  nav.mainnav{
    display:none;
    position:absolute; top:100%; left:0; right:0;
    flex-direction:column; gap:0;
    background:var(--panel);
    padding:6px 32px 22px;
    border-bottom:1px solid var(--panel-line);
    max-height:calc(100vh - 100%); overflow-y:auto;
  }
  nav.mainnav.open{display:flex;}
  nav.mainnav a{padding:14px 0; border-bottom:1px solid var(--panel-line); font-size:14px;}
  nav.mainnav .nav-cta-phone{
    display:block; font-family:'Oswald',sans-serif; font-weight:700; font-size:19px; color:var(--orange);
  }
  nav.mainnav .nav-cta{
    display:inline-flex; margin-top:18px; border-bottom:none; width:100%;
  }
  /* header CTA gets compact so logo + button + burger fit the row */
  .nav-right{gap:14px;}
  .nav-right > .btn{padding:11px 16px; font-size:12px;}

  .listing-grid, .articles-grid, .product-grid{grid-template-columns:repeat(2,1fr);}
  .calc-grid{grid-template-columns:minmax(0,1fr); gap:40px;}
  .foot-grid{grid-template-columns:1fr 1fr;}
  .proc-item{grid-template-columns:60px 1fr;}
  /* the description is a <p>, not a <div> — it must span the content column */
  .proc-item > p{grid-column:2;}

  /* Filters collapse behind a toggle button — a 260px sticky sidebar has no
     room next to a 2-column card grid at tablet widths. */
  .type-tiles{grid-template-columns:repeat(2,minmax(0,1fr));}
  .chip-row{grid-template-columns:minmax(0,1fr); gap:8px;}
  .chip-row-budget{align-items:start;}
  .filters-reset{margin-left:0;}
  .filters-toggle{
    display:flex; align-items:center; justify-content:center; gap:10px; width:100%;
    background:var(--panel); border:1px solid var(--panel-line); color:var(--text);
    padding:13px; font-family:'Oswald',sans-serif; font-size:13px; font-weight:600;
    letter-spacing:0.04em; text-transform:uppercase; margin-bottom:20px;
  }
  .chip-filters{display:none;}
  .chip-filters.open{display:grid;}
}

@media (max-width: 900px){
  .offer{grid-template-columns:1fr;}
  .offer-item{border-right:none; border-bottom:1px solid var(--panel-line); padding:20px 0 22px;}
  .offer-item + .offer-item{padding-left:0;}
  .offer-item:last-child{border-bottom:none;}
}

@media (max-width: 620px){
  /* Ниже 620px телефону, кнопке и бургеру рядом с логотипом уже тесно —
     кнопка наезжает и переносится. Дальше её несёт дубль в выпадающем
     меню (nav-cta ниже). */
  .nav-right > .btn{display:none;}
  .wrap{padding:0 20px;}
  section{padding:64px 0;}
  nav.mainnav{padding:6px 20px 22px;}
  .listing-grid, .foot-grid, .articles-grid, .product-grid, .offer{grid-template-columns:1fr;}
  .form-row{grid-template-columns:minmax(0,1fr);}
  .article-cta{flex-direction:column; align-items:flex-start;}
  form.lead{padding:24px 20px;}
  /* 16px keeps iOS Safari from zooming the page when a field gets focus */
  .field input, .field select, .field textarea{font-size:16px;}
  /* Минимальный тач-таргет: на мобильном мелкие кнопки не нажимаются */
  .btn{min-height:48px;}
  .btn-sm{min-height:44px; padding:12px 18px;}
  .filter-opt{padding:11px 0;}
  /* comfortable tap targets */
  .social-row a{width:42px; height:42px;}
  .foot-col ul li{margin-bottom:14px;}
}

@media (max-width: 560px){
  .navrow{padding:14px 20px;}
  .logo{font-size:19px;}
  .logo small{font-size:11px;}
}

/* Ниже 430px логотип (нерезиновое «УралФорклифт») и бургер съедают почти
   всю строку — номеру в виде текста уже некуда деться, он схлопывается
   в столбик из цифр. Меняем текст на иконку-кнопку: тот же тап по
   телефону, но фиксированной ширины, влезает рядом с бургером. Полный
   номер остаётся виден в выпадающем меню (nav-cta-phone). */
@media (max-width: 430px){
  .nav-right .phone-block{display:none;}
  .phone-icon-btn, .max-icon-btn, .burger{
    width:38px; height:38px;
  }
  .phone-icon-btn, .max-icon-btn{
    display:flex; align-items:center; justify-content:center; flex-shrink:0;
    border:1px solid var(--panel-line); color:var(--text);
  }
  .phone-icon-btn svg, .max-icon-btn svg{width:17px; height:17px;}
  .phone-icon-btn:active, .max-icon-btn:active{border-color:var(--orange); color:var(--orange);}
  .nav-right{gap:5px;}
  .navrow{padding:14px;}
  /* Три иконки плюс бургер рядом с логотипом — тесно. Тэглайн под именем
     убираем здесь: название бренда важнее подписи под ним, а сама подпись
     повторяется на первом экране страницы. */
  .logo small{display:none;}
  .logo .mark{width:32px; height:32px;}
  .logo{font-size:16px;}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  *{transition-duration:.01ms !important;}
}
