/* ============================================================================
   Стили прототипа карточки товара «Агрегат НМШ 2-25-1,6/16 (150°С)»
   Дизайн-референс: tau-rus.com (1С-Битрикс, шаблон «Aspro Lite»).
   Контент и брендинг: kgm33.ru (Ковровгидромаш).

   ВАЖНО: цвет акцента сайта-референса задаётся в админке 1С-Битрикс и
   недоступен для копирования, поэтому здесь он вынесен в переменные ниже.
   Замените --accent / --accent-hover / --more на фирменные цвета.
   ========================================================================== */

:root {
  /* Фирменный цвет (акцент, кнопки, ссылки) */
  --accent: #1a6ec2;
  --accent-hover: #13579e;
  --accent-soft: rgba(26, 110, 194, 0.08);

  /* Дополнительный цвет (состояние «в корзине», акцентные метки) */
  --more: #59ad00;
  --more-hover: #4a9100;

  /* Нейтральные */
  --text: #2f2f33;
  --text-2: #666;
  --text-3: #999;
  --line: #ececec;
  --line-2: #e3e6ea;
  --bg: #ffffff;
  --bg-page: #f7f8fa;
  --bg-soft: #f4f6f9;
  --dark: #2b313a;
  --dark-2: #23272e;
  --danger: #e53935;
  --ok: #2fb52f;

  /* Геометрия в стиле референса */
  --radius: 8px;
  --radius-lg: 12px;
  --page-w: 1402px;
  --page-pad: 24px;
  --shadow: 0 6px 24px rgba(20, 34, 60, .08);
  --shadow-sm: 0 2px 10px rgba(20, 34, 60, .07);
}

/* ------------------------------- Сброс и база ---------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-page);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; color: var(--text); }
.maxwidth { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--page-pad); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 20px; border-radius: var(--radius);
  border: 1px solid transparent; font-size: 15px; font-weight: 600;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  text-decoration: none; line-height: 1;
}
.btn svg { flex: 0 0 auto; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn--outline { background: #fff; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; }
.btn--lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 14px; border-radius: calc(var(--radius) - 1px); }
.btn--wide { width: 100%; }
.btn--call { height: 38px; padding: 0 16px; font-size: 14px; background: var(--accent-soft); color: var(--accent); }
.btn--call:hover { background: var(--accent); color: #fff; }
.btn--fav {
  width: 48px; height: 48px; padding: 0; background: #fff;
  border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text-3); flex: 0 0 auto;
}
.btn--fav:hover { color: var(--accent); border-color: var(--accent); background: #fff; }
.btn--cart svg { margin-right: 2px; }
.note { font-size: 13.5px; color: var(--text-3); }

/* ------------------------------- Топбар ---------------------------------- */
.topbar { background: var(--dark); color: #b9c0cb; font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 36px; }
.topbar__menu { display: flex; gap: 20px; }
.topbar__menu a { color: #b9c0cb; }
.topbar__menu a:hover { color: #fff; }
.topbar__contacts { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.topbar a.topbar__mail, .topbar a.topbar__phone { color: #dfe5ec; }
.topbar a.topbar__mail:hover, .topbar a.topbar__phone:hover { color: #fff; }
.topbar__sep { color: #4a525e; }

/* ------------------------------- Шапка ----------------------------------- */
.hdr { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 60; }
.hdr__in { display: flex; align-items: center; gap: 28px; padding-top: 16px; padding-bottom: 16px; }
.hdr__logo { flex: 0 0 auto; display: inline-block; position: relative; line-height: 0; overflow: hidden; }
.hdr__logo img { max-height: 52px; width: auto; display: block; }
.hdr__logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.95) 50%, transparent 62%);
  background-size: 300% 100%;
  -webkit-mask: url("../images/logo-header.png") center / contain no-repeat;
  mask: url("../images/logo-header.png") center / contain no-repeat;
  mix-blend-mode: screen;
  animation: logoShine 5s ease-in-out infinite;
}
@keyframes logoShine {
  0% { background-position: 160% 0; }
  55%, 100% { background-position: -160% 0; }
}
.hdr__logo-fallback { display: inline-block; font-weight: 800; letter-spacing: .06em; color: var(--dark); line-height: 1.1; font-size: 17px; }

/* Поиск */
.hdr__search { flex: 1 1 auto; max-width: 560px; margin-left: auto; margin-right: auto; }
.search { border: 2px solid var(--accent); border-radius: var(--radius); background: #fff; display: flex; align-items: center; overflow: visible; transition: box-shadow .15s ease; }
.search:focus-within { box-shadow: 0 0 0 3px var(--accent-soft); }
.search__scope { display: flex; flex: 0 0 auto; border-right: 1px solid var(--line); background: var(--bg-soft); border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px); }
.search__scope-btn { border: 0; background: transparent; padding: 0 12px; height: 38px; font-size: 13.5px; color: var(--text-2); cursor: pointer; }
.search__scope-btn:hover { color: var(--accent); }
.search__scope-btn.is-active { color: var(--accent); font-weight: 600; }
.search__field { flex: 1 1 auto; display: flex; align-items: center; min-width: 0; }
.search__input { flex: 1 1 auto; border: 0; padding: 10px 8px 10px 14px; outline: none; min-width: 0; background: transparent; }
.search__go { border: 0; background: var(--accent); color: #fff; width: 46px; align-self: stretch; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0; }
.search__go:hover { background: var(--accent-hover); }

/* Контакты в шапке */
.hdr__contact { display: flex; align-items: center; gap: 18px; flex: 0 0 auto; }
.hdr__contact-item { display: flex; flex-direction: row; align-items: center; gap: 10px; line-height: 1.25; }
.hdr__contact-ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.hdr__contact-txt { display: flex; flex-direction: column; }
.hdr__contact-label { font-size: 12.5px; color: var(--text-3); text-transform: none; letter-spacing: 0; }
.hdr__contact-item a { font-size: 16px; font-weight: 700; color: var(--text); white-space: nowrap; }
.hdr__contact-item a:hover { color: var(--accent); }

/* Иконки */
.hdr__icons { display: flex; align-items: stretch; gap: 2px; flex: 0 0 auto; }
.hdr__icon {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  background: none; border: 0; cursor: pointer; color: var(--text-2);
  padding: 4px 9px; border-radius: var(--radius); font-size: 10.5px; min-width: 58px; position: relative;
}
.hdr__icon:hover { color: var(--accent); background: var(--accent-soft); }
.hdr__cart { position: relative; display: flex; }
.hdr__cart-count {
  position: absolute; top: 0; right: 2px; background: var(--more); color: #fff; font-style: normal;
  min-width: 17px; height: 17px; border-radius: 9px; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 4px;
}
.cart-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: 320px; background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px; z-index: 60;
}
.cart-pop__title { font-weight: 700; margin-bottom: 8px; }
.cart-pop__empty { color: var(--text-3); margin: 0; font-size: 14px; }
.cart-row { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.cart-row img { width: 46px; height: 46px; object-fit: contain; border: 1px solid var(--line); border-radius: 6px; background: #fff; flex: 0 0 auto; }
.cart-row b { display: block; font-weight: 600; line-height: 1.3; }
.cart-row span { color: var(--text-3); }
.cart-row .cart-row__rm { margin-left: auto; background: none; border: 0; color: var(--text-3); cursor: pointer; font-size: 16px; align-self: flex-start; }
.cart-row .cart-row__rm:hover { color: var(--danger); }

/* Бургер (мобильное меню) */
.hdr__burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: var(--accent); border: 0; border-radius: var(--radius); cursor: pointer; padding: 10px; }
.hdr__burger span { height: 2px; background: #fff; border-radius: 2px; display: block; transition: .2s ease; }

/* ---------------------------- Меню / каталог ----------------------------- */
.nav { background: var(--bg); border-bottom: 1px solid var(--line); position: relative; z-index: 30; }
.nav__in { display: flex; align-items: stretch; gap: 8px; min-height: 50px; flex-wrap: wrap; }
.nav__catalog { display: flex; }
.nav__catalog-btn {
  display: flex; align-items: center; gap: 9px; background: var(--accent); color: #fff; border: 0;
  font-size: 16px; font-weight: 700; padding: 0 22px; cursor: pointer; border-radius: var(--radius);
  min-width: 170px; justify-content: center; height: 42px; align-self: center;
  position: relative; overflow: hidden; white-space: nowrap;
}
.nav__catalog-btn::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  background-size: 250% 100%; animation: logoShine 4.5s ease-in-out infinite;
}
.nav__catalog-btn:hover { background: var(--accent-hover); }
.nav__catalog-btn .dd-arrow { transition: transform .2s ease; }
.nav.open .nav__catalog-btn .dd-arrow { transform: rotate(180deg); }
.nav.open .nav__catalog-btn { background: var(--accent-hover); }
.nav__catalog-ico { flex: 0 0 auto; }
.nav__links { display: flex; align-items: center; }
.nav__link { padding: 15px 16px; font-weight: 600; font-size: 15px; color: var(--text); border-bottom: 2px solid transparent; }
.nav__link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.nav__link.is-current { color: var(--accent); border-bottom-color: var(--accent); }

/* Панель каталога раскрывается В ПОТОКЕ (раздвигает контент вниз, а не поверх) */
.dropdown { position: relative; }
.dropdown__panel { display: none; }
.nav.open .dropdown__panel { display: block; animation: ddIn .18s ease; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega {
  width: 100%; background: #fff; border: 1px solid var(--line);
  border-top: 3px solid var(--accent); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: var(--shadow); display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 20px;
}
.mega__cap { font-weight: 800; color: var(--text); margin: 6px 0 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.mega__link { display: block; color: var(--text-2); font-size: 14px; padding: 5px 0; }
.mega__link:hover { color: var(--accent); }
.mega__col--cta { display: flex; align-items: stretch; }
.mega__big {
  background: linear-gradient(160deg, #12497f, var(--accent)); color: #fff; border-radius: var(--radius-lg);
  padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; gap: 4px;
}
.mega__big b { font-size: 18px; color: #fff; }
.mega__big span { font-size: 13px; opacity: .85; color: #fff; }
.mega__big:hover { color: #fff; filter: brightness(1.08); }

/* Хлебные крошки + заголовок страницы */
.page-top { background: var(--bg); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 0; font-size: 13.5px; color: var(--text-3); }
.crumbs a { color: var(--text-3); }
.crumbs a:hover { color: var(--accent); }
.crumbs__sep { color: #c3c8cf; }

/* ------------------------------- Карточка -------------------------------- */
.main { flex: 1 1 auto; }
.main .maxwidth { padding-bottom: 60px; }
.detail { background: var(--bg); border-radius: 0 0 var(--radius-lg) var(--radius-lg); box-shadow: var(--shadow-sm); margin-top: 24px; }
.detail__title { font-size: 30px; font-weight: 800; padding: 22px 32px 0; margin: 0; letter-spacing: -.01em; }
.detail__subtitle { padding: 6px 32px 0; color: var(--text-2); font-size: 16px; max-width: 900px; }
.detail__grid { display: grid; grid-template-columns: minmax(340px, 46%) 1fr; gap: 40px; padding: 22px 32px 10px; }

/* Галерея */
.galery__main {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 4 / 3; overflow: hidden; padding: 12px;
}
.galery__main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: opacity .2s ease; }
.galery__zoom {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: var(--radius);
  background: rgba(20, 30, 50, .55); display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background .15s ease;
}
.galery__zoom:hover { background: var(--accent); }
.galery__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.galery__thumb { width: 84px; height: 66px; padding: 0; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.galery__thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.galery__thumb.is-active { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }
.galery__thumb:hover { border-color: var(--accent); }

/* Информация */
.pinfo__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.pinfo__avail { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: var(--ok); background: rgba(47, 181, 47, .08); border-radius: 20px; padding: 5px 14px; font-size: 14px; }
.pinfo__avail i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47, 181, 47, .2); }
.pinfo__sku { color: var(--text-3); font-size: 13.5px; }

.pinfo__quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 14px 0 16px; }
.qk { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.qk b { display: block; font-size: 17px; color: var(--text); }
.qk span { font-size: 12.5px; color: var(--text-2); }
.pinfo__short { color: var(--text-2); }
.pinfo__more { font-weight: 600; font-size: 14.5px; }

/* Покупка */
.buy {
  margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px 20px; background: linear-gradient(180deg, #ffffff, #fbfcfe);
}
.buy__price { display: flex; flex-direction: column; margin-bottom: 14px; }
.buy__price-val { font-size: 32px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
.buy__price-note { color: var(--text-3); font-size: 13px; }
.buy__row { display: flex; gap: 10px; margin-bottom: 10px; align-items: center; }
.buy__row .btn--wide { flex: 1 1 auto; }

/* Счётчик количества */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; height: 48px; }
.qty__btn { width: 44px; height: 100%; border: 0; background: var(--bg-soft); color: var(--text); font-size: 19px; cursor: pointer; line-height: 1; }
.qty__btn:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.qty__btn:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.qty__btn:hover { background: var(--accent); color: #fff; }
.qty__val { width: 56px; border: 0; text-align: center; font-weight: 700; font-size: 16px; -moz-appearance: textfield; appearance: textfield; background: transparent; }
.qty__val::-webkit-outer-spin-button, .qty__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy__perks { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line-2); display: flex; flex-wrap: nowrap; gap: 8px 18px; }
.buy__perks li { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--text-2); white-space: nowrap; }
.buy__perks svg { color: var(--more); flex: 0 0 auto; }
@media (max-width: 560px) {
  .buy__perks { flex-wrap: wrap; }
}

/* ------------------------------- Вкладки --------------------------------- */
.tabs { margin: 26px 32px 0; border-top: 1px solid var(--line); }
.tabs__head { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs__head::-webkit-scrollbar { display: none; }
.tabs__tab {
  background: none; border: 0; cursor: pointer; font-size: 16px; font-weight: 600; color: var(--text-2);
  padding: 18px 6px; margin: 0 16px 0 0; position: relative; white-space: nowrap; font-family: inherit;
}
.tabs__tab:hover { color: var(--accent); }
.tabs__tab.is-active { color: var(--text); }
.tabs__tab.is-active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: var(--accent); border-radius: 3px 3px 0 0;
}
.tabs__panel { display: none; border-top: 1px solid var(--line); }
.tabs__panel.is-open { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.tabs__content { padding: 26px 4px 30px; }
.tabs__content h2 { font-size: 22px; margin-top: 4px; }
.tabs__content h3 { font-size: 17px; margin-top: 22px; color: var(--text); }

/* Списки-галочки */
.ticks { list-style: none; margin: 0 0 18px; padding: 0; }
.ticks li { position: relative; padding: 3px 0 3px 28px; margin-bottom: 4px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%231a6ec2' d='M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-size: 12px; background-position: center; background-repeat: no-repeat;
}

/* Характеристики */
.chars { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-bottom: 8px; }
.chars__col { margin: 0; }
.char { padding: 9px 0; border-bottom: 1px dotted #d8dce2; display: flex; justify-content: space-between; gap: 18px; font-size: 14.5px; }
.char dt { color: var(--text-2); padding-right: 8px; }
.char dd { margin: 0; font-weight: 600; text-align: right; }

/* Всплывающая подсказка к названию характеристики */
.char-tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; margin-left: 6px; border-radius: 50%;
  background: var(--line-2); color: var(--text-3); font-size: 11px; font-weight: 700; line-height: 1;
  cursor: help; position: relative; vertical-align: middle; user-select: none;
}
.char-tip:hover, .char-tip:focus { background: var(--accent); color: #fff; outline: none; }
.char-tip::after {
  content: attr(data-tip);
  position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%);
  width: 240px; padding: 8px 11px; background: #1c2530; color: #fff; font-size: 12px; font-weight: 400;
  line-height: 1.4; border-radius: 8px; box-shadow: var(--shadow); text-align: left;
  opacity: 0; visibility: hidden; transition: opacity .15s ease; z-index: 40; pointer-events: none;
}
.char-tip:hover::after, .char-tip:focus::after { opacity: 1; visibility: visible; }

/* Мини-галерея в описании */
.gal { display: flex; flex-wrap: wrap; gap: 14px; margin: 18px 0 6px; }
.gal__item { flex: 1 1 200px; max-width: 280px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: block; background: #fff; padding: 10px; }
.gal__item img { width: 100%; height: auto; display: block; border-radius: 4px; }
.gal__item--wide { max-width: 640px; }

/* Документы */
.docs { display: flex; flex-direction: column; gap: 0; }
.doc {
  display: flex; align-items: center; gap: 18px; padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}
.doc__type {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: var(--radius); display: flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 15px; letter-spacing: .03em;
  background: #fff0e0; color: #c96a00; border: 1px solid #ffe1bb;
}
.doc__type--pdf { background: #e02b20; color: #fff; border-color: #c02418; }
.doc__type--stp { background: #e6f3ff; color: #0b6ecb; border-color: #c3e2ff; }
.doc__type--jpg { background: #fff0e0; color: #c96a00; border-color: #ffe1bb; }
.doc__body { flex: 1 1 auto; min-width: 0; }
.doc__body b { display: block; }
.doc__body span { color: var(--text-3); font-size: 13.5px; }

/* Блок «Не нашли документ» */
.ask { display: flex; align-items: center; gap: 18px; background: var(--accent-soft); border: 1px solid rgba(26,110,194,.25); border-radius: var(--radius-lg); padding: 18px 20px; margin-top: 20px; }
.ask svg { color: var(--accent); flex: 0 0 auto; }
.ask b { font-size: 16px; }
.ask p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; }
.ask .btn { margin-left: auto; }

/* Доставка */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px; }
.contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.c-card { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.c-card b { font-size: 14px; }
.c-card span, .c-card a { color: var(--text-2); font-size: 14px; }
.c-card a { color: var(--accent); font-weight: 600; }

/* Отзывы */
.rev { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.rev__sum { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 22px; text-align: center; }
.rev__score { font-size: 44px; font-weight: 700; }
.stars { display: inline-flex; gap: 2px; font-size: 20px; }
.stars i { width: 18px; height: 18px; background: #d9dde3; -webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27 18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E") center / contain no-repeat; }
.stars--zero i { background: #d9dde3; }
.stars--input button { background: none; border: 0; font-size: 26px; color: #d9dde3; cursor: pointer; padding: 0 2px; line-height: 1; }
.stars--input button:hover, .stars--input button.on { color: #ffb400; }
.rev__sum p { color: var(--text-2); font-size: 14px; margin: 8px 0 0; }
.rev__form { min-width: 0; }
.rev-list { margin-top: 26px; border-top: 1px dashed var(--line-2); padding-top: 14px; }
.f-row { margin-bottom: 14px; }
.f-row label { display: block; font-size: 14px; margin-bottom: 6px; color: var(--text-2); }
.f-row input[type="text"], .f-row input[type="tel"], .f-row input[type="email"], .f-row textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 14px;
  background: #fff; outline: none; transition: border .15s ease, box-shadow .15s ease;
}
.f-row input:focus, .f-row textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.f-row--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Похожие товары */
.similar { padding: 34px 32px 30px; border-top: 1px solid var(--line); }
.similar__title { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 12px;
  display: flex; flex-direction: column; transition: box-shadow .2s ease, border-color .2s ease; min-width: 0;
}
.card:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.card__img { height: 160px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: var(--radius); margin-bottom: 10px; padding: 8px; }
.card__img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.card__name { font-weight: 700; color: var(--text); line-height: 1.35; min-height: 44px; font-size: 15px; }
.card__name:hover { color: var(--accent); }
.card__spec { margin-top: 8px; color: var(--text-3); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px dotted var(--line-2); padding-top: 6px; }
.card__spec b { color: var(--text-2); font-weight: 600; }
.card__bottom { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__price { font-size: 19px; font-weight: 800; white-space: nowrap; }
.card__bottom .btn--cart { flex: 0 0 auto; }
.similar__all { text-align: center; margin-top: 22px; }

/* ------------------------------- Подвал ---------------------------------- */
.footer { background: var(--dark-2); color: #aab2bd; margin-top: 40px; }
.footer a { color: #c6cdd6; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.2fr; gap: 34px; padding: 44px 0 30px; }
.footer__logo { max-height: 72px; width: auto; height: auto; align-self: flex-start; margin-bottom: 14px; }
.footer__logo-fallback { font-weight: 800; color: #fff; letter-spacing: .05em; font-size: 16px; }
.footer__col--about p { margin-top: 14px; font-size: 14px; }
.footer__social { display: flex; gap: 8px; margin-top: 14px; }
.footer__social a { width: 36px; height: 36px; border-radius: var(--radius); background: #343b46; display: flex; align-items: center; justify-content: center; color: #c6cdd6; }
.footer__social a:hover { background: var(--accent); color: #fff; }
.footer__cap { display: block; color: #fff; margin-bottom: 16px; font-size: 16px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer__col--contacts { gap: 8px; }
.footer__addr { line-height: 1.45; }
.footer__phone { font-size: 21px; font-weight: 800; color: #fff !important; margin-top: 4px; }
.footer__mail { color: var(--accent) !important; font-weight: 600; }
.footer__hours { color: #8a929d; font-size: 13.5px; }
.footer__call { margin-top: 10px; align-self: flex-start; border-color: #5a6370; color: #dfe5ec; background: transparent; }
.footer__call:hover { border-color: var(--accent); background: var(--accent); color: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #3a414c; padding: 18px 0 22px; font-size: 13px; color: #7f8792; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: #8a929d; }
.footer__links a:hover { color: #fff; }

/* ------------------------------ Модальные окна ---------------------------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 18px; }
.modal[hidden] { display: none; }
.btn--primary.in-cart { background: var(--more); border-color: var(--more); }
.modal__bg { position: absolute; inset: 0; background: rgba(15, 20, 30, .55); backdrop-filter: blur(2px); }
.modal__box { position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 440px; width: 100%; padding: 26px; box-shadow: var(--shadow); animation: popIn .2s ease; }
@keyframes popIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.modal__x { position: absolute; right: 12px; top: 10px; background: none; border: 0; font-size: 26px; color: var(--text-3); cursor: pointer; line-height: 1; width: 34px; height: 34px; }
.modal__x:hover { color: var(--danger); }
.modal h3 { font-size: 21px; margin-bottom: 6px; padding-right: 30px; }
.modal p { color: var(--text-2); font-size: 14.5px; }
.mform label { display: block; font-size: 14px; margin: 10px 0 5px; color: var(--text-2); }
.mform input { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 11px 14px; outline: none; }
.mform input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mform .btn { margin-top: 16px; }
.mform small { display: block; margin-top: 10px; color: var(--text-3); font-size: 12px; }
.modal.has-error .mform input { border-color: var(--danger); }

/* Тост */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 300;
  background: var(--dark); color: #fff; padding: 12px 22px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); font-size: 14.5px; max-width: min(480px, calc(100vw - 32px));
  animation: toastIn .25s ease;
}
.toast--ok { background: var(--more); }
.toast--err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* Кнопка наверх */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: center; z-index: 120; opacity: 0; pointer-events: none;
  transition: opacity .25s ease, background .15s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; }
.to-top:hover { background: var(--accent-hover); }

/* Оверлей мобильного меню */
.menu-overlay { position: fixed; inset: 0; background: rgba(15, 20, 30, .55); z-index: 90; }

/* Затемнение страницы, пока открыт «Каталог» (ниже меню, выше контента) */
.nav-dim {
  position: fixed; inset: 0; background: rgba(15, 20, 30, .35);
  z-index: 25; backdrop-filter: blur(1px);
}
.nav-dim[hidden] { display: none; }

/* Аккуратное меню на средних экранах: без переносов и наложений */
@media (max-width: 1200px) {
  .nav__link { padding: 15px 11px; font-size: 14px; }
  .nav__catalog-btn { min-width: 150px; padding: 0 14px; font-size: 15px; }
}
@media (max-width: 991px) {
  /* Скроллится только блок ссылок, чтобы выпадающая панель «Каталога»
     не обрезалась контейнером с overflow */
  .nav__links { overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__catalog-btn { min-width: 150px; border-radius: var(--radius); }
}

/* ------------------------------ Адаптивность ------------------------------ */
@media (max-width: 1200px) {
  .hdr__in { gap: 18px; }
  .hdr__search { max-width: 420px; }
  .hdr__contact { gap: 12px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1023px) {
  .hdr__in { flex-wrap: wrap; }
  .hdr__search { order: 5; flex-basis: 100%; max-width: none; margin: 4px 0 0; }
  .hdr__contact { display: none; }
  .topbar__addr, .topbar__hours, .topbar__sep { display: none; }
  .topbar__in { justify-content: space-between; }
  .detail__grid { grid-template-columns: 1fr; gap: 26px; }
  .chars, .two { grid-template-columns: 1fr; }
  .mega { grid-template-columns: repeat(2, 1fr); width: min(620px, calc(100vw - 32px)); }
  .rev { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  /* Шапка: показываем бургер, прячем часть иконок и меню */
  .hdr__icons .hdr__icon span { display: none; }
  .hdr__icon { min-width: auto; }
  .hdr__burger { display: flex; }
  .hdr__icons .hdr__icon:nth-of-type(1), .hdr__icons .hdr__icon:nth-of-type(2) { display: none; }

  /* Меню превращается в выезжающую панель */
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff;
         transform: translateX(100%); transition: transform .25s ease; z-index: 100;
         border-left: 1px solid var(--line); overflow-y: auto; }
  body.nav-open .nav { transform: translateX(0); }
  .nav__in { flex-direction: column; padding: 18px 16px 40px; gap: 4px; min-height: 0; }
  .nav__catalog-btn { width: 100%; border-radius: var(--radius); min-width: 0; }
  .mega { width: 100%; grid-template-columns: 1fr 1fr; box-shadow: none; border: 1px solid var(--line); margin-top: 6px; }
  .nav__links { flex-direction: column; align-items: stretch; margin-top: 10px; }
  .nav__link { border-bottom: 1px solid var(--line); padding: 12px 4px; }
  .nav__link.is-current, .nav__link:hover { border-bottom-color: var(--accent); }

  .topbar { font-size: 12px; }
  .topbar__menu { gap: 14px; }
  .topbar__contacts a.topbar__phone { display: none; }

  .detail { margin-top: 12px; }
  .detail__title { font-size: 23px; padding: 18px 16px 0; }
  .detail__subtitle { padding: 6px 16px 0; font-size: 15px; }
  .detail__grid { padding: 16px 16px 8px; }
  .pinfo__quick { grid-template-columns: repeat(2, 1fr); }
  .buy__row { flex-wrap: wrap; }
  .buy__row .btn--wide { flex-basis: 100%; }
  .tabs { margin: 20px 16px 0; }
  .tabs__content { padding: 20px 2px 24px; }
  .chars__col { width: 100%; }
  .gal { max-width: none; }
  .gal__item { flex: 1 1 100%; max-width: none; }
  .ask { flex-direction: column; align-items: flex-start; }
  .ask .btn { margin-left: 0; }
  .similar { padding: 24px 16px 20px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card__spec { font-size: 12px; }
  .footer__grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; }
  .footer__bottom { flex-direction: column; }
  .char { flex-direction: column; gap: 2px; }
  .char dd { text-align: left; }
  .f-row--grid { grid-template-columns: 1fr; gap: 0; }
  .doc { flex-wrap: wrap; }
  .doc .btn { margin-left: 80px; }
}

@media (max-width: 419px) {
  .cards { grid-template-columns: 1fr; }
  .hdr__logo img { max-height: 42px; }
  .hdr__in { gap: 12px; }
}

/* ============================ ��������������� ���� ============================ */
/* ������� */
.hero { padding: 34px 32px 8px; border-bottom: 1px solid var(--line); }
.hero h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; }
.hero p { color: var(--text-2); font-size: 17px; max-width: 860px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.home-cats { padding: 6px 32px 28px; }
.home-cat { padding: 26px 0 8px; border-top: 1px solid var(--line); }
.home-cat:first-of-type { border-top: 0; }
.home-cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.home-cat__head h2 { margin: 0; font-size: 22px; font-weight: 800; }
.home-cat__head h2 a { color: var(--text); }
.home-cat__head h2 a:hover { color: var(--accent); }
.home-cat__head > span { color: var(--text-3); font-size: 14px; white-space: nowrap; }

/* ������� ��������� */
.detail--list .detail__title, .detail--home, .detail--page { }
.catalog-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 20px 32px 34px; }
.detail--page .tabs__content { max-width: 980px; }
.detail--page .tabs__content p, .detail--page .tabs__content h2 { margin-top: 18px; }

/* ������ ��������� ��� ����� ��������� �� ������� */
.home-cat .similar__all { text-align: left; margin-top: 18px; }

@media (max-width: 1200px) { .catalog-section { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 991px) { .catalog-section { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .hero { padding: 24px 16px 6px; }
  .hero h1 { font-size: 24px; }
  .catalog-section { padding: 14px 16px 20px; grid-template-columns: 1fr 1fr; gap: 12px; }
  .home-cats { padding: 0 16px 20px; }
  .home-cat__head { flex-direction: column; gap: 2px; }
}
@media (max-width: 419px) { .catalog-section { grid-template-columns: 1fr; } }

/* ============================ ЭФФЕКТЫ ============================ */
/* Полоса прогресса прокрутки */
#scrollProgress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--accent); z-index: 400; box-shadow: 0 0 8px rgba(26,110,194,.5); }

/* Липкая шапка (только десктоп) */
@media (min-width: 768px) {
  .nav { position: sticky; top: 0; z-index: 50; background: var(--bg); }
  .nav.scrolled { box-shadow: 0 10px 24px rgba(20,34,60,.10); }
}

/* Лайтбокс */
#lightbox {
  position: fixed; inset: 0; background: rgba(10, 14, 22, .92); z-index: 500;
  display: none; align-items: center; justify-content: center; cursor: zoom-out;
  animation: fadeIn .2s ease;
}
#lightbox img { max-width: 94vw; max-height: 94vh; object-fit: contain; border-radius: 4px; }

/* Параллакс-фон в Hero */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: url("../images/agregatory-nmsh-002.png");
  background-repeat: no-repeat; background-position: 115% 50%; background-size: 460px;
  background-attachment: fixed; opacity: .07;
}
.hero > * { position: relative; z-index: 1; }

/* Галерея на странице «О компании» */
.about-gallery { justify-content: center; }
.about-gallery .gal__item { max-width: 420px; }
.about-gallery .gal__item img { width: 100%; height: auto; }

/* Навигация в лайтбоксе */
#lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); color: #fff; border: 0; width: 54px; height: 76px; font-size: 44px; line-height: 1; cursor: pointer; border-radius: 8px; transition: background .15s ease; }
#lightbox .lb-nav:hover { background: rgba(255,255,255,.32); }
#lightbox .lb-prev { left: 16px; }
#lightbox .lb-next { right: 16px; }
#lightbox .lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 14px; background: rgba(0,0,0,.45); padding: 4px 12px; border-radius: 12px; }

/* Кнопка «Заказать звонок» в строке меню (справа) с эффектом переливания */
.nav__call { margin-left: auto; align-self: center; position: relative; overflow: hidden; background: var(--accent); color: #fff; border-color: var(--accent); flex: 0 0 auto; white-space: nowrap; }
.nav__call:hover { background: var(--accent-hover); color: #fff; }
.nav__call::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%); background-size: 250% 100%; animation: logoShine 4.5s ease-in-out infinite; }
@media (max-width: 767px) {
  .nav__call { width: 100%; margin: 8px 0 0; }
}

/* Умный поиск: подсказки */
.search { position: relative; }
.search-suggest { position: absolute; top: 100%; left: 0; right: 0; margin-top: 2px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 80; display: none; max-height: 360px; overflow: auto; }
.search-suggest__item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.search-suggest__item:last-child { border-bottom: 0; }
.search-suggest__item:hover { background: var(--accent-soft); }
.search-suggest__item img { width: 38px; height: 38px; object-fit: contain; border: 1px solid var(--line); border-radius: 4px; background: #fff; flex: 0 0 auto; }
.ss-title { flex: 1; font-size: 14px; color: var(--text); }
.ss-price { font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--text); }

/* Стикеры на фото товара */
.card__img { position: relative; }
.card__badges { position: absolute; top: 8px; left: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; align-items: flex-start; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; color: #fff; line-height: 1.1; white-space: nowrap; }
.badge--temp { background: #e6612c; }
.badge--temp70 { background: #1a6ec2; }
.badge--bronze { background: #c88a1e; }
.badge--cast { background: #7c828b; }
.badge--agregat { background: #2f9e44; }
.card__prod { position: absolute; bottom: 8px; left: 8px; z-index: 2; }
.badge--prod { background: #fff; color: var(--accent); border: 1px solid var(--accent); }

/* Стикеры на фото в карточке товара */
.galery__main { position: relative; }
.galery__badges { position: absolute; top: 14px; left: 14px; display: flex; flex-direction: column; gap: 5px; z-index: 2; align-items: flex-start; }
.galery__prod { position: absolute; bottom: 14px; left: 14px; z-index: 2; }
.badge--hit { background: #e02020; }
.badge--new { background: #7c4dff; }
.badge--stock { background: #2f9e44; }

/* Оформление заказа из корзины */
.modal__box--order { max-width: 480px; }

/* Онлайн-просмотр 3D-моделей */
.modal__box--3d { max-width: 960px; }
.viewer3d iframe { width: 100%; height: 60vh; border: 0; border-radius: var(--radius); }

/* Просмотр PDF в модальном окне */
.modal__box--pdf { max-width: 920px; }
.viewerpdf iframe { width: 100%; height: 70vh; border: 0; border-radius: var(--radius); background: #fff; }
.order-preview { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; margin: 6px 0 14px; max-height: 200px; overflow: auto; }
.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.order-line:last-of-type { border-bottom: 0; }
.order-line span { color: var(--text-2); }
.order-line b { white-space: nowrap; }
.order-total { display: flex; justify-content: space-between; gap: 12px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line-2); font-weight: 700; }
.modal__actions { display: flex; gap: 10px; margin-top: 4px; }
.modal__actions .btn { flex: 1; }
.mform textarea { width: 100%; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 10px 14px; background: #fff; font: inherit; resize: vertical; }

/* Прикрепление файлов в форме заказа */
.att { margin: 2px 0 4px; }
.att-list { margin-top: 8px; font-size: 13px; color: var(--text-2); word-break: break-word; }

/* Переключатель вида каталога: сетка / список */
.catalog-toolbar { display: flex; justify-content: flex-end; padding: 0 32px 8px; }
.view-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; }
.view-btn { border: 0; background: #fff; color: var(--text-3); width: 38px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.view-btn:hover { color: var(--accent); }
.view-btn.is-active { background: var(--accent); color: #fff; }
.view-btn.is-active:hover { color: #fff; }

/* Список */
.catalog-section.view-list { display: flex; flex-direction: column; gap: 12px; }
.catalog-section.view-list .card { flex-direction: row; align-items: center; gap: 16px; padding: 10px 12px; }
.catalog-section.view-list .card__img { width: 140px; height: 100px; flex: 0 0 auto; }
.catalog-section.view-list .card__name { min-height: 0; flex: 1; }
.catalog-section.view-list .card__spec { display: none; }
.catalog-section.view-list .card__bottom { margin-top: 0; flex: 0 0 auto; flex-direction: column; align-items: flex-end; gap: 6px; }

/* Увеличенный левый отступ на не-товарных страницах (главная/категории/инфо) */
.detail--list .detail__title, .detail--page .detail__title { padding-left: 40px; padding-right: 40px; }
.detail--list .detail__subtitle, .detail--page .detail__subtitle { padding-left: 40px; padding-right: 40px; }
.detail--list .catalog-toolbar { padding-left: 40px; padding-right: 40px; }
.detail--list .catalog-section { padding-left: 40px; padding-right: 40px; }
.detail--page .tabs__content { padding-left: 40px; padding-right: 40px; }
.detail--home .hero { padding-left: 40px; padding-right: 40px; }
.detail--home .home-cats { padding-left: 40px; padding-right: 40px; }

/* Список: характеристики видны в строку */
.card__mid { min-width: 0; }
.catalog-section.view-list .card__mid { flex: 1; min-width: 0; }
.catalog-section.view-list .card__name { min-height: 0; }
.catalog-section.view-list .card__specs { display: flex; flex-wrap: wrap; gap: 0 16px; margin-top: 4px; }
.catalog-section.view-list .card__spec { display: inline-flex; align-items: baseline; gap: 4px; margin-top: 0; padding-top: 0; border-top: 0; font-size: 13px; justify-content: flex-start; }
.catalog-section.view-list .card__spec b { color: var(--text); font-weight: 600; }
.catalog-section.view-list .card__spec span { color: var(--text-3); }

/* Выравнивание текста описаний по ширине контейнера */
.pinfo__short p, .tabs__content p { text-align: justify; -webkit-hyphens: auto; -ms-hyphens: auto; hyphens: auto; }

@media (max-width: 991px) { .contact-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .contact-cards { grid-template-columns: 1fr; } }

/* Реквизиты организации (подвал + страница «Контакты») */
.footer__req { flex: 1 0 100%; }
.reqs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 14px 0; }
.req { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.req span { font-size: 12px; color: var(--text-2); }
.req b { font-weight: 600; color: var(--text); }
@media (max-width: 560px) { .reqs { grid-template-columns: 1fr; } }

/* Вопрос-ответ в отзывах */
.rev-qa { display: flex; flex-direction: column; gap: 10px; }
.rev-qa__item { border-left: 3px solid var(--accent); background: var(--bg-soft); border-radius: 0 var(--radius) var(--radius) 0; padding: 10px 14px; }
.rev-qa__item.is-answer { border-left-color: var(--more); background: #f1f8ef; }
.rev-qa__item b { display: block; margin-bottom: 4px; color: var(--text); font-size: 14px; }
.rev-qa__item p { margin: 0; color: var(--text-2); }

.rev-qa__logo { display: inline-block; line-height: 1; }
.rev-qa__logo img { height: 20px; width: auto; display: block; }

/* Рейтинг справа в хлебных крошках товара */
.crumbs-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.crumbs-right { flex: 0 0 auto; }
.crumbs-rating { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.crumbs-rating .stars { gap: 1px; }
.crumbs-rating .stars i { width: 14px; height: 14px; }
.crumbs-rating b { font-size: 14px; color: var(--text); font-weight: 500; }

/* Логотипы производителей двигателей у H1 (только агрегаты) */
.detail__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.detail__head .detail__title { flex: 1; min-width: 0; }
.motors-row { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; padding: 14px 32px 0 0; }
.motor-logo { height: 28px; width: 88px; object-fit: contain; display: block; filter: grayscale(1) opacity(.65); transition: filter .2s ease, opacity .2s ease; }
.motor-logo:hover { filter: grayscale(0); opacity: 1; }
@media (max-width: 767px) { .detail__head { flex-direction: column; align-items: flex-start; } .motors-row { padding: 10px 16px 0 16px; } }

/* Левая вертикальная панель быстрой навигации */
.side-rail {
  position: fixed; left: 10px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 3px; z-index: 60;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 6px;
}
.side-rail__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  width: 62px; min-height: 52px; padding: 7px 4px; border: 0; background: none; cursor: pointer;
  color: var(--text-2); font-size: 10.5px; line-height: 1.1; text-decoration: none; border-radius: var(--radius);
  font-family: inherit; transition: background .15s ease, color .15s ease;
}
.side-rail__item:hover { background: var(--accent-soft); color: var(--accent); }
.side-rail__item svg { flex: 0 0 auto; }
@media (max-width: 1599px) { .side-rail { display: none; } }

/* Бейдж «Проверить на Чекко» в подвале */
.footer__checko { display: inline-block; margin-top: 14px; opacity: .85; transition: opacity .15s ease; }
.footer__checko:hover { opacity: 1; }
.footer__checko img { display: block; }
