/* ==========================================================================
   components.css — UI-компоненты
   ЗАМЕНЯЕТ Bootstrap: .btn*, .form-control, .input-group, .modal*, .collapse,
                      .visually-hidden, .badge
   ========================================================================== */

/* --------------------------------------------------------------------------
   КНОПКИ
   Исходные значения .primary__btn из style.css оригинала сохранены 1:1
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  height: 3.8rem;
  padding: 0 2rem;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--ff-body);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .2px;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--tr);
  user-select: none;
}

.btn:hover { text-decoration: none; }
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: .5;
  pointer-events: none;
}

.btn svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
  transition: transform var(--tr);
}
.btn:hover svg { transform: translateX(.2rem); }
.btn--icon:hover svg { transform: none; }

/* Размеры (адаптив по ширине вьюпорта — как в оригинале) */
@media (min-width: 768px) {
  .btn { height: 4rem; padding: 0 2.2rem; font-size: 1.4rem; }
}
@media (min-width: 992px) {
  .btn { height: 4.2rem; padding: 0 2.5rem; font-size: 1.5rem; }
}
@media (min-width: 1600px) {
  .btn { height: 4.6rem; padding: 0 3rem; }
}

.btn--sm {
  height: 3.2rem;
  padding: 0 1.6rem;
  font-size: 1.2rem;
  border-radius: var(--r-pill);
}
@media (min-width: 768px) {
  .btn--sm { height: 3.4rem; padding: 0 1.8rem; font-size: 1.3rem; }
}

.btn--lg { height: 4.8rem; padding: 0 3rem; font-size: 1.6rem; }
@media (min-width: 768px) { .btn--lg { height: 5.2rem; font-size: 1.7rem; } }

/* Кнопка на всю ширину: .btn задаёт white-space: nowrap, и длинная фраза
   («Нужен заказ в интернет-магазине?») не переносилась — содержимое выходило
   за рамку на 25px и всплывало горизонтальной прокруткой на всю страницу.
   Здесь перенос разрешён, а высота переведена из fixed в min-height, чтобы
   кнопка могла занять две строки. Короткие подписи не меняются. */
.btn--block {
  display: flex;
  width: 100%;
  white-space: normal;
  height: auto;
  min-height: 3.8rem;
  padding-block: 1rem;
}

/* Варианты */
.btn--primary {
  background: var(--c-secondary);
  color: var(--c-white);
  border-color: var(--c-secondary);
}
.btn--primary:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: var(--c-white);
}

.btn--dark {
  background: var(--c-primary);
  color: var(--c-white);
  border-color: var(--c-primary);
}
.btn--dark:hover { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-white); }

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-border-strong);
}
.btn--outline:hover { background: var(--c-primary); border-color: var(--c-primary); color: var(--c-white); }

.btn--outline-accent {
  background: transparent;
  color: var(--c-secondary);
  border-color: var(--c-secondary);
}
.btn--outline-accent:hover { background: var(--c-secondary); color: var(--c-white); }

.btn--light {
  background: var(--c-bg-offwhite);
  color: var(--c-primary);
  border-color: transparent;
}
.btn--light:hover { background: var(--c-primary); color: var(--c-white); }

.btn--ghost { background: transparent; color: var(--c-primary); }
.btn--ghost:hover { background: var(--c-bg-offwhite); color: var(--c-secondary); }

.btn--white {
  background: var(--c-white);
  color: var(--c-primary);
  border-color: var(--c-white);
}
.btn--white:hover { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-white); }

/* --------------------------------------------------------------------------
   ИКОНОЧНЫЕ КНОПКИ (шапка, соцсети, управление слайдером)
   -------------------------------------------------------------------------- */
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: var(--r-full);
  color: var(--c-primary);
  transition: var(--tr);
}
.icon-btn:hover { background: var(--c-bg-offwhite); color: var(--c-secondary); }
.icon-btn svg { width: 2.2rem; height: 2.2rem; fill: currentColor; }
.icon-btn--sm { width: 3.2rem; height: 3.2rem; }
.icon-btn--sm svg { width: 1.8rem; height: 1.8rem; }

.icon-btn--invert { color: var(--c-white); }
.icon-btn--invert:hover { background: rgba(255, 255, 255, .12); color: var(--c-white); }

.icon-btn--border { border: 1px solid var(--c-border); }

/* Счётчик на иконке (корзина / избранное) */
.icon-btn__count {
  position: absolute;
  top: .2rem;
  right: .1rem;
  min-width: 1.7rem;
  height: 1.7rem;
  padding: 0 .3rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-secondary);
  color: var(--c-white);
  border-radius: var(--r-full);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   ФОРМЫ
   ЗАМЕНЯЕТ .form-control и .input-group
   -------------------------------------------------------------------------- */
.form-field { margin-bottom: 1.5rem; }
@media (min-width: 768px) { .form-field { margin-bottom: 2rem; } }
.form-field:last-child { margin-bottom: 0; }

.form-label {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--ff-alt);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.8rem;
  color: var(--c-primary);
}
.form-label__req { color: var(--c-secondary); }

.form-input,
.form-textarea,
.form-select {
  display: block;
  width: 100%;
  height: 4.4rem;
  padding: 0 1.4rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  color: var(--c-fg);
  font-family: var(--ff-alt);
  font-size: 1.4rem;
  line-height: 4.2rem;
  transition: var(--tr);
  appearance: none;
}
.form-textarea {
  height: auto;
  min-height: 11rem;
  padding: 1.1rem 1.4rem;
  line-height: 2.2rem;
  resize: vertical;
}
.form-input:hover,
.form-textarea:hover,
.form-select:hover { border-color: var(--c-border-strong); }

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--c-secondary);
  box-shadow: 0 0 0 3px rgba(79, 146, 215, .12);
  outline: none;
}

.form-select {
  padding-right: 3.2rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23898686' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.3rem center;
  background-size: 1.1rem;
  cursor: pointer;
}

.form-hint {
  margin-top: .5rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--c-fg-sub);
}
.form-error {
  display: none;
  margin-top: .5rem;
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--c-danger);
}
.form-field.is-invalid .form-input,
.form-field.is-invalid .form-textarea,
.form-field.is-invalid .form-select { border-color: var(--c-danger); }
.form-field.is-invalid .form-error { display: block; }

.form-check {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  font-size: 1.3rem;
  line-height: 1.8rem;
  cursor: pointer;
}
.form-check input {
  flex: none;
  width: 1.8rem;
  height: 1.8rem;
  margin: 0;
  accent-color: var(--c-secondary);
  cursor: pointer;
}

/* Группа радио-кнопок (способ доставки в чекауте) */
.form-check-group { display: grid; gap: 1rem; margin-top: .4rem; }

/* Honeypot — скрытое поле для защиты от спама */
.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   СЧЁТЧИК КОЛИЧЕСТВА  (замена msmcd: .count-a / .count-i / .msmcd-change)
   -------------------------------------------------------------------------- */
.qty {
  display: inline-flex;
  align-items: center;
  height: 4rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: var(--c-white);
}
.qty__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.8rem;
  height: 100%;
  color: var(--c-primary);
  font-size: 1.8rem;
  line-height: 1;
  background: transparent;
}
.qty__btn:hover { background: var(--c-bg-offwhite); color: var(--c-secondary); }
.qty__btn:disabled { opacity: .35; pointer-events: none; }

.qty__input {
  width: 3.4rem;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--c-fg);
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty__input::-webkit-outer-spin-button,
.qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }
.qty--sm { height: 3.4rem; }
.qty--sm .qty__btn { width: 3.2rem; font-size: 1.5rem; }
.qty--sm .qty__input { width: 2.8rem; font-size: 1.3rem; }

/* --------------------------------------------------------------------------
   БЕЙДЖИ
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  height: 2.2rem;
  padding: 0 .9rem;
  border-radius: var(--r-sm);
  background: var(--c-bg-offwhite);
  color: var(--c-primary);
  font-family: var(--ff-alt);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge--accent { background: var(--c-secondary); color: var(--c-white); }
.badge--dark   { background: var(--c-primary); color: var(--c-white); }
.badge--sale   { background: var(--c-danger);  color: var(--c-white); }
.badge--hit    { background: var(--c-success); color: var(--c-white); }
.badge--abs    { position: absolute; top: 1rem; left: 1rem; z-index: 2; }

/* --------------------------------------------------------------------------
   ЗАГОЛОВОК СЕКЦИИ (с декоративной точкой) — как в оригинале
   -------------------------------------------------------------------------- */
.section-heading {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-bottom: 1.2rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-border);
}
.section-heading::before {
  content: "";
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--c-secondary);
  border-radius: var(--r-full);
}
.section-heading::after {
  content: "";
  position: absolute;
  left: .7rem;
  top: .8rem;
  width: 1.1rem;
  height: 1.1rem;
  background: var(--c-secondary);
  border-radius: var(--r-full);
}
@media (min-width: 768px) {
  .section-heading::before { top: .3rem; }
  .section-heading::after  { top: 1rem; }
}

.section-heading__title {
  padding-left: 3.4rem;
  text-transform: uppercase;
  font-weight: var(--fw-head);
}
.section-heading__title span { font-weight: 400; }

.section-heading--plain { padding-bottom: 0; border-bottom: 0; }
.section-heading--plain::before,
.section-heading--plain::after { display: none; }
.section-heading--plain .section-heading__title { padding-left: 0; text-transform: capitalize; }

.section-heading__desc {
  margin-top: 1.2rem;
  max-width: 60rem;
  color: var(--c-fg-sub);
}

/* --------------------------------------------------------------------------
   КАРТОЧКА ТОВАРА
   -------------------------------------------------------------------------- */
.card-product {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: var(--tr);
}
.card-product:hover {
  border-color: var(--c-secondary);
  box-shadow: var(--sh-md);
  transform: translateY(-.3rem);
}

.card-product__media {
  position: relative;
  background: var(--c-bg-offwhite);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.card-product__link { display: block; height: 100%; }
.card-product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.2rem;
  transition: transform .4s ease;
}
.card-product:hover .card-product__img { transform: scale(1.05); }

/* Картинка-заглушка, когда реального фото товара нет */
.card-product__ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 100%;
  padding: 1.2rem;
  text-align: center;
  color: var(--c-fg-sub);
}
.card-product__ph svg {
  width: 5.5rem;
  height: 5.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  opacity: .45;
}
.card-product__ph span {
  font-family: var(--ff-head);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  opacity: .7;
}

.card-product__fav {
  position: absolute;
  top: .8rem;
  right: .8rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: var(--r-full);
  background: var(--c-white);
  color: var(--c-fg-sub);
  box-shadow: var(--sh-sm);
  transition: var(--tr);
}
.card-product__fav:hover,
.card-product__fav.is-active { color: var(--c-danger); }
.card-product__fav.is-active svg { fill: currentColor; }
.card-product__fav svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 2; }

.card-product__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 1rem;
  padding: 1.5rem;
}

.card-product__brand {
  font-family: var(--ff-alt);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--c-secondary);
}

.card-product__title {
  font-size: 1.4rem;
  line-height: 2rem;
  font-weight: 600;
  min-height: 4rem;                 /* две строки — карточки в ряд не «прыгают» */
}
.card-product__title a { color: var(--c-fg); }
.card-product__title a:hover { color: var(--c-secondary); }

.card-product__meta {
  font-size: 1.2rem;
  line-height: 1.6rem;
  color: var(--c-fg-sub);
}

.card-product__price {
  margin-top: auto;
  font-family: var(--ff-head);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 2.4rem;
  color: var(--c-fg);
}

/* Кнопка «Подробнее» (товар с нулевым остатком): прижата к низу карточки,
   чтобы в ряду кнопки всех карточек стояли на одном уровне */
.card-product__more { margin-top: auto; }

/* Кнопка «В корзину» — по центру карточки */
.card-product .ms3-add-to-cart {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
}

.card-product__foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  padding-top: .5rem;
}
.card-product__foot .btn { flex: 1 1 auto; }
/* На узких карточках (2 в ряд на телефоне) счётчик и кнопка встают в столбик */
@media (max-width: 400px) {
  .card-product__foot { flex-direction: column; align-items: stretch; }
  .card-product__foot .qty { justify-content: center; }
}

/* Компактный вариант — для корзины и избранного */
.card-product--row {
  flex-direction: row;
  align-items: stretch;
  border-radius: var(--r-sm);
}
.card-product--row .card-product__media {
  flex: none;
  width: 12rem;
  aspect-ratio: auto;
}
.card-product--row .card-product__body { padding: 1.2rem; }

/* --------------------------------------------------------------------------
   МОДАЛЬНОЕ ОКНО  (замена Bootstrap .modal / .fade / .btn-close / .modal-backdrop)
   -------------------------------------------------------------------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-drawer);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overflow-y: auto;
}
.modal.is-open { display: flex; }

.modal__backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, .7);
  opacity: 0;
  transition: opacity .3s ease;
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 62rem;
  margin: auto;
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--sh-lg);
  opacity: 0;
  transform: translateY(2rem) scale(.98);
  transition: opacity .3s ease, transform .3s ease;
}
.modal.is-open .modal__dialog { opacity: 1; transform: none; }
.modal__dialog--sm { max-width: 44rem; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2rem 1.5rem;
  border-bottom: 1px solid var(--c-border);
}
.modal__title { font-size: 2rem; line-height: 2.8rem; }

.modal__close {
  flex: none;
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--r-full);
  color: var(--c-primary);
  transition: var(--tr);
}
.modal__close:hover { background: var(--c-bg-offwhite); color: var(--c-secondary); }
.modal__close::before,
.modal__close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.6rem;
  height: 2px;
  margin: -1px 0 0 -.8rem;
  background: currentColor;
  border-radius: 2px;
}
.modal__close::before { transform: rotate(45deg); }
.modal__close::after  { transform: rotate(-45deg); }

.modal__body { padding: 2rem; }
.modal__foot {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  padding: 1.5rem 2rem 2rem;
}

/* --------------------------------------------------------------------------
   DRAWER / OFFCANVAS  (замена .offcanvas__header + .offcanvas-overlay)
   -------------------------------------------------------------------------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: rgba(0, 0, 0, .75);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--tr), visibility var(--tr);
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: var(--z-drawer);
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--c-white);
  box-shadow: 0 0 10px rgba(0, 0, 0, .15);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--tr), visibility var(--tr);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 480px) { .drawer { max-width: 340px; } }

/* Вариант справа — для корзины */
.drawer--right {
  left: auto;
  right: 0;
  transform: translateX(100%);
}
.drawer--right.is-open { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex: none;
  padding: 1.4rem 1.6rem;
  border-bottom: 1px solid var(--c-border);
}
.drawer__title { font-size: 1.6rem; line-height: 2.2rem; }
.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.drawer__foot {
  flex: none;
  padding: 1.5rem 1.6rem;
  border-top: 1px solid var(--c-border);
  background: var(--c-bg-offwhite);
}

/* Вход и избранное — только для мобильных (на десктопе скрыты выше) */
.drawer__foot--account { display: flex; gap: 1rem; }
.drawer__account {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  height: 4.2rem;
  border-radius: var(--r-sm);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  font-family: var(--ff-alt);
  font-size: 1.3rem;
  font-weight: 600;
  white-space: nowrap;
  color: var(--c-fg);
}
.drawer__account svg { flex: none; width: 1.9rem; height: 1.9rem; }
.drawer__account:hover { border-color: var(--c-secondary); color: var(--c-secondary); }

/* flex-колонка, иначе .topbar__link (inline-flex) ставит телефон и почту в строку */
.drawer__contacts {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.6rem 2.5rem;
  border-top: 1px solid var(--c-border);
}

/* Меню внутри drawer */
.menu-list__item { border-bottom: 1px solid var(--c-border); }
.menu-list__item:first-child { border-top: 1px solid var(--c-border); }

.menu-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.5rem 2rem;
  font-family: var(--ff-head);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
  color: var(--c-primary);
}
.menu-list__link:hover { color: var(--c-secondary); }

.menu-list__toggle {
  flex: none;
  position: relative;
  width: 1.4rem;
  height: 1.4rem;
  color: var(--c-fg-sub);
}
.menu-list__toggle::before,
.menu-list__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.4rem;
  height: 2px;
  margin: -1px 0 0 -.7rem;
  background: currentColor;
  transition: transform var(--tr);
}
.menu-list__toggle::after { transform: rotate(90deg); }
/* Только ПРЯМОЙ пункт: минус ставится своему toggle, не вложенным
   (иначе у всех подкатегорий открытого «Каталога» тоже минус) */
.menu-list__item.is-open > .menu-list__link > .menu-list__toggle::after { transform: rotate(0deg); }

.menu-list__sub {
  display: none;
  background: var(--c-bg-offwhite);
}
/* Только ПРЯМОЙ ребёнок: открытие «Каталога» не раскрывает
   подкатегории глубже (иначе все уровни открыты разом) */
.menu-list__item.is-open > .menu-list__sub { display: block; }

.menu-list__sublink {
  display: block;
  padding: 1.2rem 2rem 1.2rem 3rem;
  font-size: 1.3rem;
  line-height: 1.8rem;
  color: var(--c-primary);
}
.menu-list__sublink:hover { color: var(--c-secondary); }
.menu-list__sub .menu-list__sublink { padding-left: 4rem; }

/* Уровень 2 внутри аккордеона «Каталог»: сдвиг от родителя —
   визуально видно, что подкатегория (как в эталоне каталога).
   display:flex обязателен: иначе span.menu-list__toggle сжат в 0×0
   и «+» не рисуется (линия-плюс рендерится псевдоэлементами toggle). */
.menu-list__sub .menu-list__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 3.2rem;
}

/* Подкатегории 2-го уровня (Котлы Buderus…) — как в эталоне:
   обычный шрифт (не uppercase), отступ от родителя. */
.menu-list__sub .menu-list__sublink {
  font-family: var(--ff-body);
  font-weight: 400;
  padding-left: 4rem;
}

/* --------------------------------------------------------------------------
   АККОРДЕОН
   -------------------------------------------------------------------------- */
.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.6rem 0;
  font-family: var(--ff-head);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-align: left;
  color: var(--c-fg);
  transition: var(--tr);
}
.acc__head:hover { color: var(--c-secondary); }

.acc__icon {
  flex: none;
  position: relative;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--c-secondary);
}
.acc__icon::before,
.acc__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform var(--tr);
}
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon::after { transform: rotate(0deg); }

.acc__body { display: none; padding-bottom: 1.6rem; }
.acc__item.is-open .acc__body { display: block; }

/* --------------------------------------------------------------------------
   ХЛЕБНЫЕ КРОШКИ
   -------------------------------------------------------------------------- */
.breadcrumb {
  font-family: var(--ff-alt);
  font-size: 1.2rem;
  line-height: 1.8rem;
  color: var(--c-fg-sub);
}
/* .breadcrumb — это <nav>, а список лежит внутри <ul>:
   без этого правила пункты встанут в столбик, т.к. <ul> блочный. */
.breadcrumb ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: flex; align-items: center; gap: .6rem; }
.breadcrumb li + li::before { content: "/"; color: var(--c-border-strong); }
.breadcrumb a { color: var(--c-fg-sub); }
.breadcrumb a:hover { color: var(--c-secondary); }
.breadcrumb [aria-current="page"] { color: var(--c-fg); }

/* --------------------------------------------------------------------------
   ПАГИНАЦИЯ
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  margin-top: 3rem;
}
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4rem;
  height: 4rem;
  padding: 0 1rem;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  font-family: var(--ff-alt);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-primary);
  transition: var(--tr);
}
.pagination a:hover { border-color: var(--c-secondary); color: var(--c-secondary); }
.pagination .is-current {
  background: var(--c-secondary);
  border-color: var(--c-secondary);
  color: var(--c-white);
}
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* --------------------------------------------------------------------------
   УВЕДОМЛЕНИЕ (вместо jGrowl)
   -------------------------------------------------------------------------- */
.toast-stack {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 26rem;
  max-width: 34rem;
  padding: 1.2rem 1.6rem;
  border-radius: var(--r-sm);
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 1.3rem;
  box-shadow: var(--sh-md);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: none; }
.toast--success { background: var(--c-success); }
.toast--error   { background: var(--c-danger); }
.toast svg { flex: none; width: 1.8rem; height: 1.8rem; fill: currentColor; }
@media (max-width: 575px) {
  .toast-stack { right: 1rem; left: 1rem; bottom: 1.5rem; }
  .toast { min-width: 0; width: 100%; }
}
