/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/menu/style.css */
/* HEADER TOP MENU */
.header-top-menu .menu__links {
  display: flex;
  column-gap: 44px;
  align-items: center;
}
/* ВНИМАНИЕ (LPD-16, 5/5): верхняя полоса меню лежит на БЕЛОМ фоне (тёмная подложка —
   у шапки с логотипом ниже). Активный пункт здесь на #1C7BAC даёт 4.69:1 — трогать не нужно.
   Осветлённый акцент, наоборот, ломает контраст (3.39:1). Тёмный фон — только у меню футера. */

/* FOOTER MENU */
.footer-menu-links {
  display: flex;
  row-gap: 20px;
  flex-direction: column;
}
.footer-menu-links .menu__title {
  font-size: 1rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-2);
  color: var(--primary-white-blue);
}
/* LPD-17 Э9: заголовок-переключатель — <button>; на десктопе он выглядит и ведёт
   себя как обычный заголовок (списки там раскрыты всегда). */
.footer-menu-links .menu__title--toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: default;
}
.footer-menu-links .menu__links {
  display: flex;
  row-gap: 15px;
  flex-direction: column;

  font-size: 0.88rem;
  font-weight: var(--fw-regular);
  color: var(--primary-white);

  /* LPD-16 (5/5): футер тёмный — активный пункт на общем --primary-grey-blue (#1C7BAC)
     давал 3.51:1. На мобильных это единственный видимый активный пункт (верхнее меню скрыто). */
  --link-active-color: var(--color-accent-on-dark);
}
/* LPD-17 Э9 (ТЗ §5.5 стр. 8): на мобильном меню подвала действительно сворачивается.
   Правило скрытия стояло закомментированным, поэтому клик по заголовку переключал
   класс .show вхолостую, а четыре раскрытых списка растягивали подвал на экраны. */
@media screen and (max-width: 768px) {
  .footer-menu-links .menu__title--toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    column-gap: 12px;
    min-height: 44px; /* WCAG 2.5.5 */
    cursor: pointer;
  }
  /* Шеврон рисуем рамкой: отдельная иконка ради одного треугольника не нужна */
  .footer-menu-links .menu__title--toggle::after {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    margin-right: 4px;
    border-right: 2px solid var(--color-text-on-dark-muted);
    border-bottom: 2px solid var(--color-text-on-dark-muted);
    transform: translateY(-2px) rotate(45deg);
    transition: transform .2s ease;
  }
  .footer-menu-links .menu__title--toggle[aria-expanded="true"]::after {
    transform: translateY(2px) rotate(-135deg);
  }
  .footer-menu-links .menu__links:not(.show) {
    display: none;
  }
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/footer/style.css */
footer {
  overflow: hidden;

  @media screen and (max-width: 768px) {
    /* Панель 56px + воздух: пересчитано вместе с её высотой (ТЗ §7.4) */
    padding-bottom: 72px;
  }
}

.footer-wrap {
  margin: 0 auto;
  width: var(--container);
}

/* TOP */
#footer_top {
  --link-color: var(--primary-white);
  /* LPD-17 Э9 (ТЗ §7.4): ховер ссылок подвала — акцент для тёмного фона.
     Дефолтный --primary-blue (#1877B8) на #191F2D даёт 3.4:1 и на наведении
     ссылка становилась хуже читаемой, чем в покое. */
  --link-hover-color: var(--color-accent-on-dark);

  display: flex;
  column-gap: 105px;
  align-items: stretch;
  justify-content: space-between;

  padding: 56px 0;
  color: var(--primary-white);
  position: relative;

  @media screen and (max-width: 768px) {
    padding: 30px 0 36px;
    row-gap: 16px;
    column-gap: 0;
    flex-wrap: wrap;
    justify-content: start;
  }
}
#footer_top::before {
  content: '';
  z-index: -1;
  position: absolute;
  top: 0;
  left: 50%;
  bottom: 0;
  background-color: var(--primary-grey);
  width: 1000vw;
  transform: translateX(-50%);
}
#footer_left {
  width: 300px;
  display: flex;
  row-gap: 24px;
  flex-direction: column;
  
  @media screen and (max-width: 768px) {
    width: 100%;
  }
}
#footer__logo {
  max-width: 300px;
}
/* 06.08.2026: блок «Рассчитаем под ваш проект» на месте формы подписки.
   Ширину не задаём — колонка #footer_left уже 300px, а на мобильном она 100%.
   Кнопка растянута по колонке: на 375px это даёт тач-цель во всю ширину,
   что для подвала удобнее, чем кнопка по содержимому. */
.footer-cta {
  display: flex;
  row-gap: 12px;
  flex-direction: column;
  align-items: flex-start;
}
.footer-cta__text {
  font-size: 14px;
  line-height: 1.45;
  color: var(--primary-white);
  opacity: .85;
}
.footer-cta__button {
  width: 100%;
}
#footer__socials {
  display: flex;
  column-gap: 24px;
  align-items: center;
}
.footer-socials-title {
  white-space: nowrap;
  font-weight: var(--fw-regular);
  font-size: 0.88rem;
}
.socials.footer-socials .icon {
  --icon-size: 32px;
  --icon-fill: var(--primary-light-grey2);
}

/* LPD-19 (A-03): иконки соцсетей в подвале были 32×32 при норме 44. Сама иконка
   остаётся 32px (правило выше) — растёт только зона нажатия, поэтому вид подвала не
   меняется. Только мобильная ширина: на десктопе указатель точный, а в подвале плотная
   раскладка. В попапе обратного звонка те же иконки уже 46×46 — там править нечего.
   ⚠️ Селектор целится в `.link` ВНУТРИ обёртки, а не в саму `.socials__link`: последняя —
   это <div>, а кликабельна вложенная <a class="link link--icon">. Правило на обёртке
   раздувает некликабельный контейнер и тач-цель не увеличивает вовсе. */
.socials.footer-socials .socials__link .link {
  @media screen and (max-width: 768px) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}
#footer_info_links {
  @media screen and (max-width: 768px) {
    margin-top: 16px;
    width: 100%;
    max-width: 245px;
  }

  @media screen and (max-width: 500px) {
    max-width: none;
  }
}
#footer_catalog_links {
  @media screen and (max-width: 768px) {
    padding-top: 16px;
    width: 100%;
    max-width: 245px;
  }

  @media screen and (max-width: 500px) {
    max-width: none;
    border-top: 1px solid var(--primary-grey5);
  }
}
#footer_right {
  @media screen and (max-width: 768px) {
    padding-top: 16px;
    width: 100%;
    max-width: 245px;
  }

  @media screen and (max-width: 500px) {
    max-width: none;
    border-top: 1px solid var(--primary-grey5);
  }
}
#footer_right .list__item {
  font-size: 0.88rem;
}
#footer_right .list__item::before {
  top: 8px;
}

/* BOTTOM */
#footer_bottom {
  --link-color: var(--primary-color);

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 12px 0;
  font-size: .88rem;

  @media screen and (max-width: 768px) {
    row-gap: 12px;
    flex-direction: column;
    align-items: start;
  }
}
/* LPD-16 (5/5) Оплата и реквизиты в подвале */
.footer-payments {
  display: flex;
  align-items: center;
}
.footer-payments__img {
  height: 24px;
  width: auto;
  max-width: 100%;
  opacity: .85;
}
#footer_requisites {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0 0 12px;
  font-size: .75rem;
  line-height: 1.4;
  color: var(--primary-grey2);
}
@media screen and (max-width: 768px) {
  #footer_requisites {
    gap: 3px 12px;
    /* правая зона занята фиксированным чат-виджетом — переносим строку до него */
    padding-right: 64px;
  }
}
/* MOBILE PANEL — LPD-17 Э9 (ТЗ §7.4).
   Было: 50px, тень вверх и пять немых иконок 22px без подписей (имя жило только
   в aria-label). Стало: 56px, волосяная граница вместо тени, иконка 24px + подпись
   11/600, активный раздел акцентом. */
.footer-mobile-panel {
  z-index: 5;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;

  display: flex;
  align-items: stretch;

  width: 100%;
  /* env(safe-area-inset-bottom) — полоса под домашним индикатором iPhone (34px в портрете,
     0 на устройствах без выреза). Без неё подписи «Главная/Каталог/…» упирались в
     индикатор, а нижние пиксели панели уходили под него. Высота растёт ровно на эту
     полосу, содержимое остаётся на своих 56px. */
  height: calc(56px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-hairline);

  @media screen and (min-width: 769px) {
    display: none;
  }
}
.footer-mobile-panel__item {
  /* Зона тапа — равная доля ширины на всю высоту панели (WCAG 2.5.5). */
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  row-gap: 2px;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-mobile-panel__item .icon {
  --icon-size: 24px;
  --icon-fill: var(--color-text-muted);
}
.footer-mobile-panel__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-mobile-panel__label {
  font-size: 11px;
  font-weight: var(--fw-semibold);
  line-height: var(--leading-none);
  white-space: nowrap;
}
.footer-mobile-panel__item:is(:hover, .link--active, .button--active) {
  color: var(--color-accent-strong);
}
.footer-mobile-panel__item:is(:hover, .link--active, .button--active) .icon {
  --icon-fill: var(--color-accent-strong);
}
/* Счётчик — бейдж у иконки, а не подпись: подпись занята названием раздела */
.footer-mobile-panel__count {
  position: absolute;
  left: 60%;
  bottom: 60%;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  background-color: var(--color-accent);
  font-size: 10px;
  font-weight: var(--fw-bold);
  line-height: var(--leading-none);
  color: var(--primary-white);
  font-variant-numeric: tabular-nums;
}
/* Пульс при изменении корзины/избранного. 19.08.2026: на телефоне цифра менялась
   бесшумно, и добавление товара выглядело как «ничего не произошло» — замечание
   владельца. Класс ставит и снимает basket/script.js (и его близнец в account).
   Этот же keyframes использует счётчик в шапке — basket/header/style.css. */
@keyframes counter-bump {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}
.footer-mobile-panel__count.counter-bump {
  animation: counter-bump .4s ease-out;
}
@media screen and (prefers-reduced-motion: reduce) {
  .footer-mobile-panel__count.counter-bump {
    animation: none;
  }
}

/* LPD-19 (M-07): последний магический цвет подвала. #252e3b — прорезь глифа в плашке
   третьей соцсети; заменён на ближайший объявленный токен --color-ink-raised (#232A38),
   разница ниже порога различимости. Остальные упоминания цветов в этом файле сидят
   внутри комментария про контраст (строка 19) и значениями не являются.
   ⚠️ Вне этой правки: плашка той же иконки залита #259EDC — акцентом, который LPD-16 1.4
   заменил на #1877B8 ради WCAG. Цвет задан в самом SVG, не здесь. */
.footer-socials .socials__link:nth-child(3) .icon svg path:last-child {
  fill: var(--color-ink-raised);
}

/* LPD-19 (A-03): юридические ссылки подвала (политика, согласие, условия продажи) были
   18px в высоту. В перечне A-03 их нет — они появились позже аудита, вместе с юрправками
   06.08, — но дефект тот же. Это стопка ссылок, поэтому зону нажатия расширяем реальной
   высотой, а не псевдоэлементом: иначе соседние цели наложились бы. */
.menu.footer-bottom-links .menu__links .link {
  @media screen and (max-width: 768px) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/cookie/style.css */
/* Уведомление о cookie. 06.08.2026, задача 7 плана lpd-19-legal-remediation.

   Полоса снизу, а не модальное окно: уведомление информирует, а не спрашивает
   разрешения (счётчик по решению владельца стартует сразу), поэтому перекрывать
   им контент и требовать реакции незачем. */
.cookie-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 98; /* под шапкой (99), над остальным */

  padding: 14px 0;
  background-color: var(--color-bg);
  border-top: 1px solid var(--color-hairline);
  box-shadow: 0 -4px 16px rgba(30, 30, 30, .08);
}
.cookie-notice[hidden] {
  display: none;
}
.cookie-notice__inner {
  margin: 0 auto;
  width: var(--container);

  display: flex;
  column-gap: 24px;
  row-gap: 12px;
  align-items: center;
  justify-content: space-between;

  @media screen and (max-width: 768px) {
    flex-direction: column;
    align-items: stretch;
  }
}
.cookie-notice__text {
  /* Текст забирает свободное место, кнопка — только своё. Без явного flex базовая
     ширина текста считается по min-content: он сжимается в узкую колонку, а кнопка
     растягивается на весь остаток. */
  flex: 1 1 auto;
  min-width: 0;

  font-size: 0.81rem;
  line-height: 1.45;
  color: var(--color-text-secondary);
}
.cookie-notice__text a {
  --link-color: var(--primary-blue);
}
.cookie-notice .cookie-notice__button {
  --button-height: 44px; /* тач-цель по правилу AGENTS.md */
  flex: 0 0 auto;
  width: auto;
  min-width: 160px;

  @media screen and (max-width: 768px) {
    width: 100%;
  }
}

/* На мобильном снизу висит панель навигации (footer/panel, 56px + воздух).
   Без отступа уведомление легло бы прямо на неё. */
@media screen and (max-width: 768px) {
  .cookie-notice {
    bottom: 72px;
  }
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/float/style.css */
.float {
  z-index: 5;
  position: fixed;
  right: 20px;
  bottom: 20px;

  /* 70px = высота .footer-mobile-panel (56px) плюс зазор 14px; env(safe-area-inset-bottom)
     добавляет полосу домашнего индикатора, на которую панель подросла. */
  @media screen and (max-width: 768px) {
    bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

/* В корзине и на оформлении к нижней панели добавляется вторая фиксированная полоса —
   кнопка «Оформить заказ» на всю ширину (#basket-checkout .button, 65px, bottom: 56px).
   Виджет стоял на своих 70px и садился прямо на её правый край: у виджета z-index 5,
   у кнопки 4, поэтому круг перекрывал сумму заказа и часть зоны нажатия — на телефоне
   промах по кнопке оплаты вместо открытия чата.

   Поднимаем виджет над кнопкой: 56px панель + 65px кнопка + тот же зазор 14px. Условие
   на #basket-checkout, а не на класс страницы: класса корзины на <body> нет
   (setBodyClasses в теме не вызывается), зато сама кнопка есть ровно на тех двух
   страницах, где мешает. :has() в теме уже используется — _blocks/steps/style.css. */
body:has(#basket-checkout) .float {
  @media screen and (max-width: 768px) {
    bottom: calc(135px + env(safe-area-inset-bottom, 0px));
  }
}

.float__buttons {
  z-index: 0;
  position: absolute;
  left: 50%;
  bottom: calc(100% - 30px);
  transform: translateX(-50%);
  opacity: 0;
  visibility: hidden;
  padding: 10px 8px 30px;
  transition: .3s;
}
.float__buttons::before {
  content: '';
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: calc(100% - 24px);
  border-radius: var(--radius-sm);
  background-color: var(--primary-white);
  box-shadow: var(--shadow-1);
}
/* LPD-17 Э11: раскрытое состояние — это либо наведение (чистый CSS), либо явное
   переключение кликом/клавиатурой (класс float--open от script.js). Прежний
   класс float--hover ставился ОБОИМИ путями сразу — инлайновым onmouseenter в
   разметке и обработчиком клика со своим флагом — из-за чего они расходились и
   кнопка «залипала». Селекторы ниже читают одно и то же состояние. */
.float:hover .float__buttons,
.float--open .float__buttons {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% - 2px);
}
.float__buttons .socials {
  row-gap: 12px;
  flex-direction: column;
  position: relative;
}
.float__buttons .link {
  --link-icon-fill: var(--color-ink);
  --link-active-icon-fill: var(--color-ink);
}
.float__buttons .link:hover {
  --link-icon-fill: var(--color-accent);
  --link-active-icon-fill: var(--color-accent);
}
/* LPD-19 (A-03): плавающие кнопки связи были 32×32. В перечне A-03 они не названы —
   там только подвал и шапка, — но это ровно та же мелкая цель вне основной навигации,
   причём на постоянном оверлее и с самой высокой ценой промаха: это основной способ
   позвонить с телефона. Иконка остаётся 32px, растёт только зона нажатия. */
.float__buttons .socials__link .link {
  @media screen and (max-width: 768px) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
}
.float__buttons .icon {
  --icon-size: 32px;
  overflow: hidden;
  /* border-radius: var(--radius-sm); */
  /* background-color: var(--primary-white); */
}

/* LPD-17 Э11 (ТЗ §3.5): зелёный снят. Кнопка была --primary-green3 #7ac142 в
   покое и --primary-green5 #2ED6BF в раскрытом состоянии — единственный крупный
   зелёный объект на сайте, который спорил со статусом «в наличии»
   (--color-stock-in) и висел поверх любой страницы.

   Взят --color-ink: это цвет рамы сайта (шапка, подвал, тёмные секции), белая
   иконка на нём даёт 16.5:1, и виджет перестаёт претендовать на роль акцента.
   Синим он становится ровно на время взаимодействия — правило §3.4 «синяя
   заливка остаётся у действия» не нарушено: постоянной синей поверхности на
   экране не появляется. */
.float-button {
  --button-width: 60px;
  --button-height: 60px;
  --button-icon-size: 24px;
  --button-background: var(--color-ink);
  --button-hover-background: var(--color-accent);
  /* Белое кольцо обязательно, а не для красоты: кнопка fixed и проезжает над
     тёмными поверхностями сайта, которые сделаны тем же --color-ink — замер
     показал точки с контрастом 1:1 (тёмная секция «Почему мы» на главной, тёмный
     блок на категории). Заливка там сливается с фоном, и границу кнопки держит
     только это кольцо: 16.5:1 к ink. На белом поле оно невидимо, работает
     заливка. Требование WCAG 1.4.11 к нетекстовым элементам закрыто на любой
     подложке. */
  --button-border: var(--primary-white);

  cursor: pointer;
  border-radius: var(--radius-circle);
  box-shadow: 0 0 0 1px var(--primary-white), var(--shadow-1);

  @media screen and (max-width: 768px) {
  --button-width: 50px;
  --button-height: 50px;
  }
}
.float:hover .float-button,
.float--open .float-button {
  --button-background: var(--color-accent);
  --button-hover-background: var(--color-accent);
}
.float:hover .float-button .icon--message,
.float--open .float-button .icon--message {
  display: none;
}
.float-button .icon--close {
  --button-icon-size: 32px;
}
.float:not(:hover):not(.float--open) .float-button .icon--close {
  display: none;
}
.float-button::before, .float-button::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
    -webkit-transform: translate(-50%, -50%);
    -moz-transform: translate(-50%, -50%);
    -o-transform: translate(-50%, -50%);
  border-radius: var(--radius-circle);
  border: 2px solid var(--button-background);
  width: 105%;
  height: 105%;
  opacity: .9;
  animation: floatButton_animate 2s infinite cubic-bezier(.1,.2,.3,1);
    -webkit-animation: floatButton_animate 2s infinite cubic-bezier(.1,.2,.3,1);
    -moz-animation: floatButton_animate 2s infinite cubic-bezier(.1, .2, .3, 1);
    -o-animation: floatButton_animate 2s infinite cubic-bezier(.1, .2, .3, 1);
  box-sizing: border-box;
  cursor: pointer;
  pointer-events: none;
}
.float-button::after {
  -webkit-animation-delay: -1.5s;
  animation-delay: -1.5s;
}
.float:hover .float-button::before,
.float:hover .float-button::after,
.float--open .float-button::before,
.float--open .float-button::after {
  content: none;
}
@keyframes floatButton_animate {
  100% {
    width: 200%;
    height: 200%;
    border-color: transparent;
    opacity: 0;
  }
}

/* Иконки соцсетей приходят готовым SVG из админки (pxl.getSocials → icon_str), и
   в разметке у путей зашит fill="#259EDC" — тот самый яркий синий, который Э6
   убрал из палитры темы. Презентационный атрибут на самом <path> не перебивается
   ни --link-icon-fill, ни fill на родительском <svg>, поэтому перекраска
   возможна только правилом по <path>.

   Было: пять правил по :nth-child со своим набором путей у каждой иконки и
   fill: #7ac142 !important. Они держались на ПОРЯДКЕ соцсетей в админке —
   добавление или перестановка ссылки красила не тот путь; вдобавок каждая
   иконка выходила двухцветной (зелёная подложка + синий глиф).

   Стало: одно правило по значению самого атрибута. Оно попадает ровно в те пути,
   что пришли синими, не зависит от порядка ссылок и не трогает белый глиф
   пятой иконки (fill="#ffffff") — иначе он слился бы с подложкой.

   Цвет берётся из --link-icon-fill, который уже объявлен выше на самой ссылке и
   переключается на синий по :hover — второго источника правды не заводим. */
.float__buttons .socials__link .icon svg path[fill="#259EDC"] {
  fill: var(--link-icon-fill, var(--color-ink));
  transition: fill 0.3s;
}
/* Пока висит тост «добавлено в корзину» (basket/script.js ставит на body класс
   has-basket-toast), кнопка чата уступает ему место: оба сидят в правом нижнем углу,
   и на 375px они накладываются друг на друга. Подтверждение заказа важнее чата, а
   висит оно 5 секунд. */
body.has-basket-toast .float {
  opacity: 0;
  visibility: hidden;
  transition: opacity .18s ease, visibility .18s ease;
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/popup/style.css */
.popup {
  z-index: 9999;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s;
}
.popup--open {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.popup__overlay {
  z-index: 0;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  
  opacity: .6;
  background-color: var(--primary-grey);
}
.popup__container {
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  width: var(--popup-container-width, 480px);
  max-width: 90%;
  min-height: 80px;
  max-height: calc(100vh - var(--popup-height-offset, 80px));
  padding: var(--popup-container-padding, 46px);
  padding-top: var(--popup-container-padding-top, var(--popup-container-padding, 30px));
  padding-right: 0;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--primary-white);

  @media screen and (max-width: 525px) {
    max-width: 100%;
    height: 100%;
    max-height: 100%;

    padding: var(--popup-mobile-container-padding, 24px);
    padding-top: var(--popup-mobile-container-padding-top, var(--popup-mobile-container-padding, 30px));
  }
}
.popup--top .popup__container {
  left: 50%;
  top: 138px;
  transform: translate(-50%, 0);
}
.on-scroll .popup--top .popup__container {
  top: 94px !important;
}
.popup--right .popup__container {
  left: auto;
  right: calc((100vw - var(--container)) / 2);
  top: 50%;
  transform: translate(0, -50%);
}
.popup--top.popup--right .popup__container {
  left: auto;
  right: calc((100vw - var(--container)) / 2);
  top: 138px;
  transform: translate(0, 0);
}
.popup__body {
  padding-right: var(--popup-container-padding, 54px);
  overflow-y: auto;
  scroll-behavior: smooth;
  max-height: calc(100vh - var(--popup-height-offset, 80px) - (var(--popup-container-padding-top, var(--popup-container-padding, 30px)) + var(--popup-container-padding, 46px)));

  @media screen and (max-width: 525px) {
    width: calc(100% + var(--popup-mobile-container-padding, 24px));
    max-width: calc(100% + var(--popup-mobile-container-padding, 24px));
    max-height: calc(100vh * 1);
    padding-right: var(--popup-mobile-container-padding, 24px);
  }
}
.popup--top .popup__body {
  --popup-height-offset: 138px;
  /* padding-bottom: 138px; */
}
.on-scroll .popup--top .popup__body {
  --popup-height-offset: 94px;
  /* padding-bottom: 94px; */
}

.popup__close {
  z-index: 2;
  position: absolute;
  right: 20px;
  top: 20px;
  
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: .3s;
  border: 1px solid transparent;
  background-color: var(--primary-white-grey);
}
.popup__close svg {
  width: 15px;
  height: 15px;
}
.popup__close svg path {
  transition: .3s;
  fill: var(--primary-light-grey2);
}
.popup__close:hover {
  border-color: var(--primary-blue);
  background-color: var(--primary-light-blue);
  box-shadow: 0px 6px 8.2px 0px var(--primary-blue-opacity);
}
.popup__close:hover svg path {
  fill: var(--primary-white);
}
.popup__close:hover:active {
  box-shadow: none;
  border-color: transparent;
  background-color: var(--primary-grey-blue);
}

.popup__title {
  font-size: var(--popup-title-size, 1.25rem);
  font-weight: var(--fw-bold);
  font-family: var(--font-2);
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 24px;

  display: flex;
  column-gap: 12px;
  align-items: center;
  justify-content: center;
  /* Крестик закрытия висит absolute в правом верхнем углу (40px + 20px отступа): без
     коридора под него заголовок «Заказать звонок» на 320px заезжал под кнопку и терял
     последнюю букву. Слева столько же, чтобы центровка осталась честной. */
  padding-inline: 52px;
  flex-wrap: wrap;
  overflow-wrap: break-word;
}
.popup__title[data-align="left"] {
  text-align: left;
  justify-content: start;
  /* Коридор под крестик нужен только справа: слева он сдвинул бы левый заголовок
     («Ваш заказ», «Заявка отправлена») на 52px от края попапа. */
  padding-left: 0;
}
.popup__title span {
  font-weight: var(--fw-regular);
}

/* LPD-15 (2.4) Быстрый заказ «в 1 клик» */
.quickorder__hint {
  margin: 0 0 4px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--primary-grey2);
}
.quickorder__product {
  margin-bottom: 4px;
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  color: var(--primary-color);
}
.quickorder__product:empty {
  display: none;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/popup/basket/style.css */
#popup-basket {
  @media screen and (max-width: 768px) {
    display: none !important;
  }
}

#popup-basket .popup__container {
  --popup-title-size: 1.5rem;
  --popup-container-width: 600px;
  --popup-container-padding: 34px;
  --popup-container-padding-top: 32px;

  /* padding-bottom: 120px; */
}
#popup-basket .popup__title span {
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  font-family: var(--font);
  color: var(--primary-grey5);
  margin-top: auto;
}

.basket-popup {
  display: flex;
  row-gap: 30px;
  flex-direction: column;
}
.basket-popup__item {
  display: flex;
  column-gap: 24px;
  align-items: center;
}
.basket-popup__image {
  width: 110px;
  min-width: 110px;
  height: 82px;
  overflow: hidden;
}
.basket-popup__image img {
  display: block;
  object-fit: cover;
}
.basket-popup__name {
  width: 100%;
  min-height: 43px;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  color: var(--primary-color);
}
.basket-popup__article {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--primary-grey3);
}
.basket-popup__option {
  margin-top: 10px;
  font-size: 0.8rem;
}
.basket-popup__prices {
  min-height: 43px;
  min-width: 120px;
  display: flex;
  row-gap: 6px;
  flex-direction: column;
  align-items: end;
}
.basket-popup__price {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--primary-color);
}
.basket-popup__oldprice {
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  text-decoration: line-through;
  color: var(--primary-white-blue);
}
.basket-popup__separator {
  width: 100%;
  height: 1px;
  background-color: var(--primary-grey-opacity3);
}

.basket-popup-buttons {
  --button-height: 53px;
  --button-font-size: 1rem;

  display: flex;
  column-gap: 24px;
  align-items: center;
  margin-top: 35px;
}

/* ─── ТОСТ «ДОБАВЛЕНО В КОРЗИНУ». 19.08.2026 ────────────────────────────────────
   Подтверждение для телефона: попап корзины на ≤768px скрыт правилом в начале этого
   же файла, и до этой правки нажатие «В корзину» не давало на экране ничего. Тост
   живёт только на мобильной ширине — на десктопе ту же работу делает попап.
   Стили лежат здесь, а не в basket/style.css: тот грузится лишь на странице корзины,
   а тост нужен там, где есть кнопка «В корзину», то есть на любой странице каталога.
   Разметку создаёт basket/script.js, точное значение bottom тоже ставит он: низ экрана
   занят по-разному (панель навигации, кнопки покупки на карточке, уведомление о cookie). */
.basket-toast {
  z-index: 97; /* выше панели (5) и чат-виджета, ниже cookie-уведомления (98) и шапки (99) */
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 68px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 12px;
  row-gap: 12px;
  align-items: start;

  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
  box-shadow: 0 10px 30px rgba(25, 31, 45, .18);

  opacity: 0;
  transform: translateY(14px);
  transition: opacity .18s ease, transform .18s ease;
}
.basket-toast--visible {
  opacity: 1;
  transform: none;
}
.basket-toast[hidden] {
  display: none;
}
.basket-toast__mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-circle);
  background-color: var(--color-stock-in);
  color: var(--primary-white);
}
.basket-toast__body {
  min-width: 0; /* иначе длинное название распирает грид и тост вылезает за экран */
}
.basket-toast__title {
  font-size: 0.94rem;
  font-weight: var(--fw-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text);
}
.basket-toast__name {
  margin-top: 4px;
  /* Название позиции бывает длинным («Вагонка штиль из сосны 12.5х96 мм 6 м, сорт AB») —
     две строки, дальше многоточие: тост не должен расти на пол-экрана. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: 0.81rem;
  line-height: 1.35;
  color: var(--color-text-secondary);
}
.basket-toast__name[hidden],
.basket-toast__meta[hidden] {
  display: none;
}
.basket-toast__meta {
  margin-top: 6px;
  font-size: 0.88rem;
  font-weight: var(--fw-semibold);
  line-height: var(--leading-none);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}
.basket-toast__close {
  /* Тач-цель 44px (AGENTS.md), сам крестик мелкий — отсюда отрицательные поля:
     без них кнопка распирала бы верхнюю строку тоста. */
  width: 44px;
  height: 44px;
  margin: -12px -12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;

  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  color: var(--color-text-muted);
}
.basket-toast__link {
  grid-column: 1 / -1;
  /* width обязателен: normalize.css:195 даёт всем <a> max-width: max-content, и без него
     кнопка съёживается по тексту вместо ширины тоста (ловушка описана в DOMAIN_MAP §12). */
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: var(--radius-md);
  background-color: var(--color-accent);
  color: var(--primary-white);
  font-size: 0.94rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
}
.basket-toast__link:hover {
  color: var(--primary-white);
}
@media screen and (prefers-reduced-motion: reduce) {
  .basket-toast {
    transition: none;
    transform: none;
  }
}
/* Десктопу тост не нужен — правило последним, чтобы перекрыть .basket-toast--visible. */
@media screen and (min-width: 769px) {
  .basket-toast {
    display: none;
  }
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/popup/wishlist/style.css */
#popup-wishlist {
  @media screen and (max-width: 768px) {
    display: none !important;
  }
}

#popup-wishlist .popup__container {
  --popup-title-size: 1.5rem;
  --popup-container-width: 600px;
  --popup-container-padding: 34px;
  --popup-container-padding-top: 32px;

  /* padding-bottom: 120px; */
}
#popup-wishlist .popup__title span {
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  font-family: var(--font);
  color: var(--primary-grey5);
  margin-top: auto;
}

.wishlist-popup {
  display: flex;
  row-gap: 30px;
  flex-direction: column;
}
.popup__body.loader .wishlist-popup {
  display: none;
}

.wishlist-popup__item {
  display: flex;
  column-gap: 24px;
  align-items: center;
}
.wishlist-popup__image {
  width: 110px;
  min-width: 110px;
  height: 82px;
}
.wishlist-popup__name {
  width: 100%;
  min-height: 43px;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  color: var(--primary-color);
}
.wishlist-popup__prices {
  min-height: 43px;
  min-width: 120px;
  display: flex;
  row-gap: 6px;
  flex-direction: column;
  align-items: end;
}
.wishlist-popup__price {
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--primary-color);
}
.wishlist-popup__oldprice {
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  text-decoration: line-through;
  color: var(--primary-white-blue);
}
.wishlist-popup__separator {
  width: 100%;
  height: 1px;
  background-color: var(--primary-grey-opacity3);
}

.wishlist-popup-buttons {
  --button-height: 53px;
  --button-font-size: 1rem;

  display: flex;
  column-gap: 24px;
  align-items: center;
  margin-top: 35px;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/fields/text/style.css */
.field--text {
  width: 100%;
  height: 100%;

  display: flex;
  row-gap: 8px;
  flex-direction: column;
}
.field--text input {
  padding: 0;
  padding-left: var(--field-text-padding, 20px);
  padding-right: var(--field-text-padding, 20px);
  border-radius: var(--radius-sm);
  background-color: transparent;
  width: var(--field-text-width, 100%);
  height: var(--field-text-height, 54px);
  border: 1px solid var(--field-text-border, var(--primary-white-opacity2));
  background-color: var(--field-text-background, var(--primary-white-opacity));
  color: var(--field-text-color, var(--primary-color));
  font-size: var(--field-text-fsize, 0.88rem);
  font-weight: var(--field-text-weight, 300);
}
.field--text input:focus {
  border-color: var(--field-text-focus-border, var(--field-text-border, var(--primary-white-opacity2)));
}
.field--text.field--error input {
  border: 1px solid var(--field-text-border-error, var(--primary-red));
}
.field--text.field--success input {
  border: 1px solid var(--field-text-border-success, var(--primary-green3));
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/style.css */
.form {
  --field-text-background: #ECF0F2;
  --field-placeholder: var(--color-placeholder);
  --field-text-focus-border: var(--primary-light-grey);

  display: flex;
  row-gap: 18px;
  flex-direction: column;
}
.form__groups {
  display: flex;
  row-gap: 24px;
  flex-direction: column;
}
.form__group, .form__subgroup {
  position: relative;
  display: flex;
  row-gap: 14px;
  flex-direction: column;
}
.form__group-title {
  min-width: 100%;
  margin-bottom: 20px;
  font-size: 1.5rem;
  font-weight: var(--fw-semibold);
  font-family: var(--font-2);
  color: var(--primary-color);

  @media screen and (max-width: 768px) {
    margin-bottom: 8px;
    font-size: 1.25rem;
  }
}
.form__group--inline, .form__subgroup--inline {
  column-gap: 24px;
  align-items: start;
  flex-direction: row;

  @media screen and (max-width: 768px) {
    row-gap: 14px;
    flex-direction: column;
  }
}
.form__group-html {
  width: 100%;
  margin-top: 18px;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  /* LPD-16 (5/5): было --primary-light-grey2 (#87929F) — 3.16:1 на белом.
     Роль текста — пояснение/вторичка, поэтому берём семантический --color-text-muted (4.89:1).
     Сам токен палитры не меняем: он нужен светлым для иконок и границ. */
  color: var(--color-text-muted);
}

.form__agree {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  text-align: center;
  /* LPD-16 (5/5): было --primary-light-grey (#88A3BD) — 2.52-2.62:1 на белом.
     Это тот самый «под-хвост» пункта 1/5, отложенный из-за неясности фонов: рантайм-замер
     показал, что .form__agree ВЕЗДЕ на белом (корзина, чекаут, попап звонка, попап входа),
     тёмных контекстов нет → затемнение безопасно. Согласие на обработку ПДн — юридический
     текст, он обязан читаться. */
  color: var(--color-text-muted);
}
.form__agree:not(:first-child) {
  margin-top: 18px;
}
/* 07.08.2026: согласие переехало из хвоста формы внутрь .form__groups — оно стоит перед
   группой с кнопкой отправки. Расстояние там задаёт row-gap: 24px, свой margin лишний
   (иначе над кнопкой копится 42px и блок отрывается от формы). Специфичность равна
   правилу выше, поэтому правило идёт ниже по файлу. */
.form__groups .form__agree {
  margin-top: 0;
}

/* 06.08.2026 (задача 3 плана lpd-19-legal-remediation): согласие стало чекбоксом.
   text-align: center выше рассчитан на строку текста без элемента управления —
   у чекбокса он растянул бы галочку по центру и оторвал её от подписи. */
.form__agree .form__agree-checkbox {
  text-align: left;
  /* Тач-цель: сам чекбокс 20px, но кликается вся строка с подписью.
     На узких экранах подпись переносится и высота растёт, минимум держим здесь. */
  min-height: 44px;
  align-items: center;
}
/* Селектор из двух классов намеренно: у элемента классы .checkbox__label и
   .form__agree-text одновременно, а fields/checkbox/style.css попадает в бандл позже,
   и по одному классу его display:flex побеждает. */
.form__agree .form__agree-text {
  /* .checkbox__label — флекс-контейнер (там внутри одна короткая подпись). Здесь подпись
     длинная и со ссылками: во флексе каждый инлайновый кусок становится отдельным
     флекс-элементом, текст рвётся на колонки и часть уезжает за границу блока.
     Возвращаем обычный поток. */
  display: block;
  line-height: 1.4;
  /* Наследуем размер и цвет от .form__agree — юридический текст остаётся
     вторичным по виду, но читаемым (--color-text-muted, 4.89:1 на белом). */
  font-size: inherit;
  color: inherit;
}
.form__agree-text a {
  --link-color: var(--primary-blue);
  /* 07.08.2026: `.link` объявлен `display: inline-block` (common.css), а такой элемент
     переносится на новую строку целиком, не разрываясь по словам. На 375px длинная ссылка
     не влезала в остаток строки и уезжала вниз, оставляя «Я даю» висеть в одиночку.
     Внутри сплошного юридического текста ссылка должна вести себя как обычный инлайн. */
  display: inline;
}
.form__agree--error .checkbox__control {
  border-color: var(--primary-red);
}
.form__agree-error {
  margin-top: 6px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--primary-red);
}

.form__error {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--primary-red);
}
.form__error a {
  --link-color: var(--primary-blue);
}

.field {
  z-index: 0;
  position: relative;
}
.field__label {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--field-label-color, var(--primary-light-grey));
}
.field__label-required {
  color: var(--primary-red);
}
.field__error {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--primary-red);
  z-index: 1;
  /* position: absolute; */
  /* right: 8px; */
  /* top: 50%; */
  /* padding: 6px 10px; */
  /* border-radius: var(--radius-sm); */
  /* transform: translateY(-50%); */
  /* background-color: var(--primary-white); */
}
.field__label ~ .field__error {
  /* margin-top: 11px; */
}

.field__label-required {
  display: none !important;
}

.form-success {
  display: flex;
  row-gap: 24px;
  flex-direction: column;
  align-items: center;
  padding: 30px 0;
}
.form-success .icon {
  --icon-fill: none;
  width: 60px;
  height: 60px;
}
.form-success .checkmark {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  display: block;
  stroke-width: 2;
  stroke: #fff;
  stroke-miterlimit: 10;
  margin: 10% auto;
  box-shadow: inset 0px 0px 0px var(--primary-green3);
  animation: checkmark_fill .4s ease-in-out .4s forwards, checkmark_scale .3s ease-in-out .9s both;
}
.form-success .checkmark__check {
  transform-origin: 50% 50%;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: checkmark_stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}
.form-success .checkmark__circle {
  stroke-dasharray: 166;
  stroke-dashoffset: 166;
  stroke-width: 2;
  stroke-miterlimit: 10;
  stroke: var(--primary-green3);
  fill: none;
  animation: checkmark_stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}
@keyframes checkmark_stroke {
  100% {
    stroke-dashoffset: 0;
  }
}
@keyframes checkmark_scale {
  0%, 100% {
    transform: none;
  }
  50% {
    transform: scale3d(1.1, 1.1, 1);
  }
}
@keyframes checkmark_fill {
  100% {
    box-shadow: inset 0px 0px 0px 30px #7ac142;
  }
}
.form-success__text {
  font-size: 1.125rem;
  font-weight: var(--fw-regular);
  text-align: center;
  color: var(--primary-accent);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/fields/submit/style.css */
.field--submit .button {
  --button-height: 58px;
}
.field--submit .form__error ~ .button {
  margin-top: 12px;
}
.form__group .field--submit:not(:first-child) {
  margin-top: 10px;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/templates/callback/style.css */
.callback-to-whatsapp {
  --button-height: 58px;
  --button-color: var(--primary-green2);
  --button-background: var(--primary-white);
  --button-border: var(--primary-green2);
  --button-icon-fill: var(--primary-green2);
  --button-icon-size: 34px;

  justify-content: space-between;
}
.callback-to-whatsapp:hover {
  --button-hover-background: var(--primary-green2);
  --button-border: var(--primary-green2);
  --button-hover-icon-fill: var(--primary-white);
  --button-hover-shadow: var(--primary-green-opacity2);
  --button-active-icon-fill: var(--primary-white);
}
.callback-to-whatsapp .icon {
  order: 9;
}

.callback-to-telegram {
  --button-height: 58px;
  --button-color: #2AABEE;
  --button-background: var(--primary-white);
  --button-border: #2AABEE;
  --button-icon-fill: #2AABEE;
  --button-icon-size: 34px;

  justify-content: space-between;
}
.callback-to-telegram:hover {
  --button-hover-background: #2AABEE;
  --button-border: #2AABEE;
  --button-hover-icon-fill: var(--primary-white);
}
.callback-to-telegram .icon {
  order: 9;
}

.callback-to-max {
  --button-height: 58px;
  --button-color: #6C4DFF;
  --button-background: var(--primary-white);
  --button-border: #6C4DFF;
  --button-icon-fill: #6C4DFF;
  --button-icon-size: 34px;
  
  justify-content: space-between;
}

.callback-to-max:hover {
  --button-hover-background: #6C4DFF;
  --button-border: #6C4DFF;
  --button-hover-icon-fill: var(--primary-white);
  --button-hover-shadow: rgba(108, 77, 255, 0.35);
}

.callback-to-max .icon {
  order: 9;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/fields/textarea/style.css */
.field--textarea {
  width: 100%;
  height: 100%;

  display: flex;
  row-gap: 8px;
  flex-direction: column;
}
.field--textarea textarea {
  padding: 0;
  padding-top: var(--field-text-top-padding, 16px);
  padding-left: var(--field-text-padding, 20px);
  padding-right: var(--field-text-padding, 20px);
  border-radius: var(--radius-sm);
  background-color: transparent;
  width: var(--field-text-width, 100%);
  height: var(--field-text-height, 162px);
  border: 1px solid var(--field-text-border, var(--primary-white-opacity2));
  background-color: var(--field-text-background, var(--primary-white-opacity));
  color: var(--field-text-color, var(--primary-color));
  font-size: var(--field-text-fsize, 0.88rem);
  font-weight: var(--field-text-weight, 300);
}
.field--textarea textarea:focus {
  border-color: var(--field-text-focus-border, var(--field-text-border, var(--primary-white-opacity2)));
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/templates/review/style.css */
#popup-add-review .popup__title {
  --icon-size: 35px;
  --icon-fill: var(--icon-star-active);
  column-gap: 4px;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/fields/password/style.css */
.field--password {
  width: 100%;
  height: 100%;

  display: flex;
  row-gap: 8px;
  flex-direction: column;
}
.field--password input {
  padding: 0;
  padding-left: var(--field-text-padding, 20px);
  padding-right: var(--field-text-padding, 20px);
  border-radius: var(--radius-sm);
  /* background-color: transparent; */
  width: var(--field-text-width, 100%);
  height: var(--field-text-height, 54px);
  border: 1px solid var(--field-text-border, var(--primary-white-opacity2));
  background-color: var(--field-text-background, var(--primary-white-opacity));
  color: var(--field-text-color, var(--primary-color));
  font-size: var(--field-text-fsize, 0.88rem);
  font-weight: var(--field-text-weight, 300);
}
.field--password input:focus {
  border-color: var(--field-text-focus-border, var(--field-text-border, var(--primary-white-opacity2)));
}

.field__password {
  width: 100%;
  z-index: 0;
  position: relative;
}
.field__password-eyes {
  z-index: 1;
  position: absolute;
  right: 1px;
  top: 1px;
  width: 45px;
  height: calc(100% - 2px);
  background-color: var(--field-text-background, var(--primary-white-opacity));
  display: flex;
  align-items: center;
  justify-content: start;
  cursor: pointer;
  user-select: none;
}
.field__password-eyes .icon {
  --icon-size: 23px;
  --icon-fill: var(--primary-light-grey);
}
.field--password:not(.field--password-shown) .field__password-eyes .icon--eye-open {
  display: none;
}
.field--password.field--password-shown .field__password-eyes .icon--eye-close {
  display: none;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/fields/checkbox/style.css */
.checkbox {
  display: flex;
  column-gap: 12px;
  align-items: start;
  cursor: pointer;
}
.field__checkbox-items {
  display: flex;
  row-gap: 10px;
  flex-direction: column;
}
.checkbox__control {
  width: var(--checkbox-size, 20px);
  height: var(--checkbox-size, 20px);
  min-width: var(--checkbox-size, 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-blue);
  background-color: transparent;
  transition: .3s;
  margin-top: 2px;
}
.checkbox__input:checked ~ .checkbox__control {
  background-color: var(--primary-blue);
}
.checkbox__control .icon {
  --icon-size: 16px;
  --icon-fill: var(--primary-white);
}
.checkbox__input:not(:checked) ~ .checkbox__control .icon {
  opacity: 0;
}
.checkbox__label {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--primary-grey5);
  min-height: calc(var(--checkbox-size, 20px) + 2px);
  display: flex;
  align-items: center;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/templates/authorization/style.css */
.authorization-wrap {
  max-width: 500px;
}
.authorization-wrap .checkbox__control {
  --checkbox-size: 13px;

  position: relative;
  background-color: transparent !important;
}
.authorization-wrap .checkbox__control .icon {
  display: none;
}
.authorization-wrap .checkbox__input:checked ~ .checkbox__control::before {
  content: '';
  z-index: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  background-color: var(--primary-blue);
}
.authorization-wrap .checkbox__label {
  color: var(--primary-light-grey);
}
.authorization-wrap .field--forgotten_password {
  margin-left: auto;
}
.authorization-wrap a[href="#popup-forgotten-password"] {
  --link-font-size: 0.75rem;
  --link-color: var(--primary-light-grey);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/popup/account/style.css */
/* ACCOUNT POPUP FORM */
#popup-account:not(.account-login) .popup__container {
  --popup-container-width: 800px;
  --popup-mobile-container-width: 400px;
  --popup-container-padding: 0px;
  --popup-mobile-container-padding: 0px;
}

.account-form {
  display: flex;
  column-gap: 0;
  align-self: stretch;

  @media screen and (max-width: 768px) {
    row-gap: 0;
    flex-direction: column;
  }
}
.account-form__sidebar {
  width: 370px;
  min-width: 370px;
  min-height: 600px;
  z-index: 1;
  position: relative;
  display: flex;
  row-gap: 0;
  flex-direction: column;
  justify-content: space-between;
  padding: 36px;
  /* padding-right: 0; */

  @media screen and (max-width: 768px) {
    width: 100%;
    min-width: 100%;
    height: 130px;
    min-height: auto;
    padding: 0;
    justify-content: end;
  }
}

.account-form__background {
  z-index: -1;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.account-form__background :is(img, picture) {
  display: block;
  object-fit: cover;
}

.account-form__logo {
  width: 205px;

  @media screen and (max-width: 768px) {
    display: none;
  }
}

.account-form__tabs {
  display: flex;
  row-gap: 0;
  flex-direction: column;
  align-items: end;
  margin-right: -36px;

  @media screen and (max-width: 768px) {
    column-gap: 0;
    flex-direction: row;
    margin-right: 0;
  }
}
.account-form__button {
  width: 180px;
  height: 50px;
  text-align: center;
  font-size: 1.188rem;
  font-weight: var(--fw-regular);
  color: var(--primary-white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px 0 0 2px;
  z-index: 0;
  position: relative;

  @media screen and (max-width: 768px) {
    width: 50%;
    min-width: 50%;
    border-radius: 2px 2px 0 0;
    font-size: 1rem;
  }
}
.account-form__button[data-account-form-button-active="Y"] {
  pointer-events: none;
  color: var(--primary-color);
  background-color: var(--primary-white);
}
.account-form__button[data-account-form-button-active="Y"]::before, .account-form__button[data-account-form-button-active="Y"]::after {
  content: '';
  z-index: 1;
  position: absolute;
  right: 0;
  width: 22px;
  height: 20px;

  @media screen and (max-width: 768px) {
    display: none;
  }
}
.account-form__button[data-account-form-button-active="Y"]::before {
  top: -21px;
  right: -1px;
  rotate: -90deg;

  border-radius: 0 0 0 10px;
	-moz-border-radius: 0 0 0 10px;
	-webkit-border-radius: 0 0 0 10px;

	-webkit-box-shadow: -10px 0 0 0 #fff;
	box-shadow: -10px 0 0 0 #fff;
}
.account-form__button[data-account-form-button-active="Y"]::after {
  bottom: -21px;
  right: -1px;
  rotate: -90deg;

  border-radius: 0 0 10px 0;
	-moz-border-radius: 0 0 10px 0;
	-webkit-border-radius: 0 0 10px 0;

	-webkit-box-shadow: 10px 0 0 0 #fff;
	box-shadow: 10px 0 0 0 #fff;
}

.account-form__socials {
  @media screen and (max-width: 768px) {
    display: none;
  }
}
.account-form__socials a {
  --link-icon-fill: var(--primary-white);
  opacity: .42;
  transition: opacity .3s;
}
.account-form__socials a:hover {
  opacity: 1;
}
.account-form__agree {
  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  color: var(--primary-white);

  @media screen and (max-width: 768px) {
    display: none;
  }
}

.account-form__forms {
  width: 100%;
}
.account-form__wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 74px;

  @media screen and (max-width: 768px) {
    padding: 30px 34px;
  }
}
.account-form__wrap:not([data-account-form-active="Y"]) {
  display: none;
}
.account-form__wrap > * {
  width: 100%;
}
.account-form__wrap input {
  --field-text-height: 50px;
}


/* ACCOUNT POPUP */
.account-popup {
  display: flex;
  row-gap: 32px;
  flex-direction: column;
}
.account-headline {
  display: flex;
  column-gap: 14px;
  align-items: center;
}
.account-photo {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-circle);
  background-color: var(--primary-white-grey);
}
.account-info {
  display: flex;
  row-gap: 8px;
  flex-direction: column;
}
.account-fio {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  font-family: var(--font-2);
  color: var(--primary-blue);
}
.account-telephone {
  font-size: 0.813rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-2);
  color: var(--primary-color);
}
.account-links {
  display: flex;
  row-gap: 30px;
  flex-direction: column;
}
.account-link .link {
  --link-font-size: 1rem;
  --link-font-weight: var(--fw-regular);
  --link-active-font-weight: var(--fw-bold);
  --link-font-family: var(--font);
  --link-color: var(--primary-grey2);
  --link-hover-color: var(--primary-color);
  --link-active-color: var(--primary-color);

  --link-icon-size: 22px;
  --link-icon-fill: var(--primary-grey2);
  --link-hover-icon-fill: var(--primary-blue);
  --link-active-icon-fill: var(--primary-blue);
}
.account-logout .link {
  --link-font-size: 0.938rem;
  --link-font-weight: var(--fw-bold);
  --link-font-family: var(--font-2);
  --link-color: var(--primary-color);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/popup/city/style.css */
#popup-city .popup__container {
  --popup-container-width: 800px;
}

.city-list {
  display: grid;
  row-gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.city-list__item a {
  --link-color: var(--primary-color);

  font-weight: var(--fw-regular);
  font-size: 1rem;
}
.city-list__item--current a {
  --link-color: var(--primary-blue);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/templates/kalkulyator_raschyota/style.css */
#popup-kalkulyator-raschyota .popup__container {
  --popup-container-width: 1200px;
  --popup-container-padding: 57px;
  --popup-container-padding-top: 49px;
  --popup-title-size: 2.25rem;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/header/style.css */
/* TOP */
/* LPD-17 Э8 (ТЗ §7.1): верхняя полоса — служебная строка на светлом поле.
   Раньше фон был transparent и полоса ничем не отделялась от тёмной шапки под
   ней: две зоны читались одним блоком высотой 130px. Теперь у неё своё поле и
   волосяная граница, а цвет текста — роль вторичного текста (7.41:1). */
#header_top {
  --link-color: var(--color-text-secondary);

  padding: 8px 0;
  color: var(--color-text-secondary);
  background-color: var(--color-bg);
  border-bottom: 1px solid var(--color-hairline);
  font-size: var(--fs-13);
  font-weight: var(--fw-regular);

  display: flex;
  align-items: center;
  column-gap: 44px;

  @media screen and (max-width: 768px) {
    display: none !important;
  }
}
#header_city {
  display: flex;
  align-items: center;
  column-gap: 44px;
  white-space: nowrap;
}
#header_city .city-title {
  display: flex;
  column-gap: 8px;
  align-items: center;
}
#header_city .city-title .icon {
  --icon-size: 20px;
  --icon-fill: var(--primary-blue);
}
#header_city .warehouse-title {
  display: flex;
  column-gap: 8px;
  align-items: center;
}
#header_city .warehouse-title .icon {
  --icon-size: 20px;
  --icon-fill: var(--primary-blue);
}
#header_schedule {
  margin-left: auto;
}
#header_socials {
  
}

/* CENTER */
header {
  position: sticky;
  top: 0;
  z-index: 99;
}
/* LPD-17 Э10: тёмное поле шапки во всю ширину окна.
   Заливка стояла на самом #header_center, а он — .container, то есть не шире
   1416px. На мониторе от ~1460px шапка обрывалась тёмной коробкой с белыми
   полями по бокам, тогда как hero, тёмная секция «Почему мы» и подвал идут
   от края до края — шапка была единственной тёмной полосой сайта, которая
   этого не делала.
   Псевдоэлемент висит на <header>: он и так full-width и уже positioned
   (sticky), поэтому inset:0 даёт ровно нужную полосу — без 1000vw, которым
   тот же приём решён в подвале, и без риска горизонтальной прокрутки.
   На мобильном тёмное поле рисует #header_logo::before высотой 75px (строка
   логотипа тёмная, поиск под ней — на светлом), поэтому там правило не нужно. */
@media screen and (min-width: 769px) {
  header::before {
    content: '';
    z-index: -1;
    position: absolute;
    inset: 0;
    background-color: var(--primary-grey);
  }
}
#header_center {
  padding: var(--container-padding);
  color: var(--primary-white);

  display: flex;
  align-items: stretch;
  position: relative;

  @media screen and (max-width: 768px) {
    flex-wrap: wrap;
    width: 100%;
    z-index: 1;
    position: relative;
  }
}
#header_logo {
  height: 50px;
  min-width: 205px;

  @media screen and (max-width: 768px) {
    width: 180px;
    min-width: 180px;
  }
}
@media screen and (max-width: 768px) {
  #header_logo::before {
    content: '';
    z-index: -1;
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    height: 75px;
    background-color: var(--primary-grey);
  }
}
#header_menu_catalog {
  min-width: 156px;
  margin-left: 50px;

  @media screen and (max-width: 768px) {
    min-width: 56px;
    margin-left: auto;
  }
}
@media screen and (max-width: 768px) {
  #header_menu_catalog .button__text {
    display: none;
  }
}
#header_search {
  width: 100%;
  margin-left: 24px;

  @media screen and (max-width: 768px) {
    margin-left: 0;
    margin-top: 24px;
  }
}
body.on-scroll #header_search {
  @media screen and (max-width: 768px) {
    /* opacity: 0;
    pointer-events: none; */
    display: none;
  }
}
#header_search input {
  @media screen and (max-width: 768px) {
    /* LPD-17 Э8: та же приподнятая тёмная поверхность, что на десктопе —
       было #373C48 против #232A38, поле поиска отличалось тоном по ширине экрана. */
    --field-text-background: var(--color-ink-raised);
  }
}
#header_callback {
  width: auto;
  margin-left: 28px;

  display: flex;
  row-gap: 6px;
  flex-direction: column;
  align-items: end;
  justify-content: center;

  @media screen and (max-width: 768px) {
    display: none !important;
  }
}
#header_callback .header-phone {
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  font-family: var(--font-2);
}
#header_callback .header-phone:hover {
  color: var(--primary-blue);
}
#header_callback a.header-callback {
  font-size: 0.88rem;
  font-weight: var(--fw-regular);
  font-family: var(--font);
  text-decoration: none;
  color: var(--primary-white-blue);
  border-bottom: 1px solid var(--primary-white-blue);
}
#header_callback a.header-callback:hover {
  border-bottom: 1px solid transparent;
}
/* LPD-17 Э8 (ТЗ §7.1): три иконки без рамок-коробок.
   Было: у каждой кнопки подложка rgba(255,255,255,.13) и светлая рамка, ширина
   зоны 100px — три «коробки» спорили с логотипом и кнопкой «Каталог». Стало:
   иконка на своём тёмном поле, подложка появляется только на наведении/фокусе.
   Размер 46px — тот же, что у поля поиска и кнопки «Каталог» рядом. */
#header_wishlist {
  min-width: 46px;
  margin-left: 20px;

  @media screen and (max-width: 768px) {
    display: none !important;
  }
}
#header_basket {
  min-width: 46px;
  margin-left: 8px;

  @media screen and (max-width: 768px) {
    display: none !important;
  }
}
#header_account {
  min-width: 46px;
  margin-left: 8px;

  @media screen and (max-width: 768px) {
    display: none !important;
  }
}
/* Счётчик-бейдж был рассчитан на кнопку-коробку шириной 100px (right:20px) и на
   узкой иконке наезжал на сам глиф. Пересчитан под 46px; правило мобильной
   панели (.footer-mobile-panel-*) не затрагивается — оно живёт своим смещением. */
#header_center :is(.header-wishlist-button, .header-basket-button, .header-account-button) .button__text {
  right: 0;
  top: 0;
  width: 18px;
  height: 18px;
  font-size: 0.65rem;
  border-radius: var(--radius-circle);
}
#header_center :is(.header-wishlist-button, .header-basket-button, .header-account-button) {
  --button-width: 46px;
  --button-background: transparent;
  --button-border: transparent;
  --button-icon-fill: var(--primary-white);
  --button-hover-background: var(--color-ink-raised);
  --button-hover-border: var(--color-ink-raised);
  --button-hover-icon-fill: var(--primary-white);
  --button-hover-shadow: transparent;
  --button-active-background: var(--color-ink-raised);
  --button-active-icon-fill: var(--primary-white);
}

#header_menu_catalog {
  @media screen and (max-width: 768px) {
    display: flex;
    column-gap: 24px;
    align-items: center;
  }
}
.header-mobile-telephone {
  --link-icon-size: 32px;
  --link-icon-fill: var(--primary-white);

  /* LPD-19 (A-03): элемент был ровно 32×32 при норме 44. Иконка остаётся 32px —
     растёт только зона нажатия. Медиазапрос не нужен: блок и так существует лишь на
     мобильной ширине (ниже он скрыт при ≥769px). */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;

  @media screen and (min-width: 769px) {
    display: none;
  }
}

/* ПЛАНШЕТ (769-1047px) — раскладка между мобильным брейкпоинтом и десктопом.

   До 06.08.2026 этого диапазона у темы не было: вместо него в common.css стояло
   `html { min-width: 1048px }`, то есть сайт просто получал горизонтальный скролл.
   Диапазон покрывает iPad в портрете (810-834), половину экрана ноутбука и
   небольшие окна — постоянная прокрутка вбок там заметно хуже, чем перенос строк.

   Что именно не помещалось (замер на 846px, контейнер 806px):
   - #header_top: min-content 880px, из них 646px — меню в одну строку;
   - #header_center: сумма фиксированных ширин и отступов 788px, поэтому
     #header_search получал 18px и схлопывался в иконку.

   Правки минимальные — разрешаем перенос там, где он и так безопасен. */
@media screen and (min-width: 769px) and (max-width: 1047px) {
  /* Служебная полоса переносится: город и меню в первой строке, режим работы
     и соцсети — во второй. margin-left:auto у #header_schedule продолжает
     прижимать его вправо в своей строке. Гэп 44px здесь избыточен. */
  #header_top {
    flex-wrap: wrap;
    column-gap: 20px;
    row-gap: 2px;
  }

  /* Поиск уходит на собственную строку целиком. order нужен, чтобы он встал
     ПОСЛЕ иконок: без него он остаётся третьим по потоку и утаскивает за собой
     на вторую строку телефон, избранное, корзину и кабинет. */
  #header_center {
    flex-wrap: wrap;
  }
  #header_search {
    order: 10;
    width: 100%;
    margin-left: 0;
    margin-top: 14px;
  }
}


/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/menu/catalog_bigmenu.css */
/* ═══ LPD-17 Э8: мегаменю одной панелью (ТЗ §7.2) ══════════════════════════
   Было: z-index:-1 (панель рисовалась ПОД шапкой, отсюда и ограничение по ширине,
   §2 п. 3), тёмный левый рельс на 340px с hover-переключением одной группы и
   правая область, где 36 ссылок раскладывались в 10 строк с колонками по 250px.
   Стало: одна светлая панель во всю ширину контейнера, высота по контенту,
   все группы видны сразу — 9 групп и 36 ссылок помещаются на один экран. */
/* Обёртка — прозрачный слой во всю ширину: сама панель это карточка внутри
   контейнера. pointer-events снимается, иначе клик по пустому полю слева/справа
   от карточки считался бы «кликом внутри меню» и панель не закрывалась бы. */
#catalog-bigmenu {
  z-index: 40;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  /* поля вокруг карточки: сверху — просвет до шапки, снизу — чтобы панель не
     упиралась в первый заголовок страницы */
  padding: 10px 0 24px;
  pointer-events: none;
}
/* Панель-карточка: своё поле, контур и тень. Раньше фон, тень и скролл висели на
   обёртке во всю ширину — белая панель на белой странице читалась как «страница
   разъехалась», без границ слева, справа и снизу. */
#catalog-bigmenu > .container {
  pointer-events: auto;
  /* ширина задаётся явно: обёртка абсолютная и растянута на всю ширину окна,
     поэтому наследуемая ширина контейнера тут не срабатывает */
  width: var(--container);
  margin-inline: auto;
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-bg);
  box-shadow: var(--shadow-3);
}

@media screen and (max-width: 768px) {
  #catalog-bigmenu {
    /* Панель начинается ниже поля поиска — раньше top:75px перекрывал его,
       и поиск при открытом каталоге был недоступен (§2 п. 4, §7.3 п. 1). */
    top: 100%;
    padding: 8px 0 12px;
  }
  /* 2026-08-10. На телефоне панель занимает всю ширину окна, а не карточку с полями.
     Прежний вид — карточка шириной --container с боковыми границами и скруглением —
     оставлял по краям полосы фона страницы, и меню читалось как всплывшее окно поверх
     контента. На узком экране это просто съедало ширину: заголовкам разделов её и так
     не хватало (см. правку .catalog-bigmenu__title выше). Верхнее и нижнее скругление
     тоже снято: панель примыкает к полю поиска сверху и к краю экрана снизу. */
  #catalog-bigmenu {
    padding: 0 0 12px;
  }
  #catalog-bigmenu > .container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    max-height: calc(100vh - 178px);
    padding: 8px 16px 16px;
    border-inline: 0;
    border-radius: 0;
  }
}
body:not(.catalog-bigmenu-open) #catalog-bigmenu {
  display: none;
}

/* Промо-строка над сеткой: разделы без вложенных пунктов (сегодня «Все акции»).
   Как колонка сетки такой раздел съедал четверть ширины пустотой. */
.catalog-bigmenu__top {
  display: flex;
  column-gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-hairline);
}
.catalog-bigmenu__promo {
  display: inline-flex;
  column-gap: 8px;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  color: var(--color-accent-strong);
  text-decoration: none;
}
.catalog-bigmenu__promo:hover {
  border-color: var(--color-border-strong);
  color: var(--color-accent-strong);
}
/* Хаб каталога — основное действие строки, поэтому заливкой, а не контуром */
.catalog-bigmenu__promo--hub {
  border-color: var(--color-accent);
  background-color: var(--color-accent);
  color: var(--primary-white);
}
.catalog-bigmenu__promo--hub:hover {
  border-color: var(--color-accent);
  background-color: var(--primary-light-blue);
  color: var(--primary-white);
}
.catalog-bigmenu__promo .icon {
  --icon-size: 18px;
  --icon-fill: currentColor;
}

@media screen and (max-width: 768px) {
  .catalog-bigmenu__promo {
    min-height: 44px; /* WCAG 2.5.5 */
  }
  /* 2026-08-10. Зазор между «Весь каталог» и «Все акции». Базовые 12px рассчитаны на
     десктоп; на телефоне кнопки крупнее (44px по WCAG) и вплотную читались как одна
     группа. Правило стоит именно здесь, после базового .catalog-bigmenu__top: в
     мобильной секции выше оно проигрывало ему по порядку в файле при равной
     специфичности — проверено замером, зазор оставался 12px. */
  .catalog-bigmenu__top {
    column-gap: 16px;
    row-gap: 10px;
  }
}

/* Сетка групп + пятая колонка справа (ТЗ §7.2). Промо-строка живёт выше и на
   всю ширину, поэтому во flex входит только тело панели. */
.catalog-bigmenu__body {
  display: flex;
  column-gap: 32px;
  align-items: flex-start;

  @media screen and (max-width: 991px) {
    flex-direction: column;
    row-gap: 24px;
    /* 2026-08-10. Обязательно: с наследованным align-items:flex-start дети
       колоночного flex получают ширину по содержимому. Сетка групп сжималась до
       303px при доступных 343px, и справа от шевронов оставалась пустая полоса в
       40px — разделители обрывались, не доходя до края панели. */
    align-items: stretch;
  }
}
.catalog-bigmenu__grid {
  flex: 1 1 auto;
  min-width: 0;
}

/* Колонки приходят из PXL уже разложенными (getMenuColumns) — сетка просто ставит
   их рядом. CSS-многоколоночник балансировал по строкам и на группах в 2–8 пунктов
   давал перекос до 120px, а на широком экране оставлял последнюю колонку с одной
   группой из двух пунктов. */
.catalog-bigmenu__grid {
  display: grid;
  grid-template-columns: repeat(var(--bigmenu-columns, 4), minmax(0, 1fr));
  column-gap: var(--grid-gap);

  @media screen and (max-width: 1200px) {
    --bigmenu-columns: 2;
  }

  @media screen and (max-width: 768px) {
    --bigmenu-columns: 1;
  }
}
.catalog-bigmenu__column {
  min-width: 0;
  display: flex;
  row-gap: 26px;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    row-gap: 0;
  }
}

.catalog-bigmenu__group {
  min-width: 0;
}

.catalog-bigmenu__head {
  display: flex;
  column-gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

/* Чип 40×40: монограмма на светлой подложке. Иконка-глиф здесь врала — одна
   древесная иконка повторялась у «Террас», «Вагонки» и «Бруса» (ТЗ §7.2). */
.catalog-bigmenu__chip {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-field);
  font-size: var(--fs-18);
  font-weight: var(--fw-extrabold);
  font-family: var(--font-2);
  line-height: var(--leading-none);
  color: var(--color-text-secondary);
}
/* Кадр материала кропается по центру: исходники разного формата (ресайзер темы
   вписывает картинку в бокс, сохраняя пропорцию исходника — §2 п. 14).
   Контур обязателен: часть кадров почти белая (крепёж, светлая доска) и без
   границы чип растворяется в поле панели. */
.catalog-bigmenu__chip--image {
  border: 1px solid var(--color-hairline);
}
.catalog-bigmenu__chip--image :is(img, picture) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-bigmenu__title {
  min-width: 0;
  /* 15px и balance: «Вагонка и интерьер» на 16px ломалось так, что во второй
     строке оставалось одно слово. */
  font-size: var(--fs-15);
  text-wrap: balance;
  font-weight: var(--fw-bold);
  font-family: var(--font-2);
  line-height: var(--leading-tight);
  color: var(--color-text);
  text-decoration: none;
}
a.catalog-bigmenu__title:hover {
  color: var(--color-accent-strong);
}

/* Шеврон раскрытия нужен только мобильному аккордеону */
.catalog-bigmenu__toggle {
  display: none;
}

.catalog-bigmenu__list {
  display: flex;
  row-gap: 6px;
  flex-direction: column;
  margin: 0;
  padding: 0;
  list-style: none;
}
.catalog-bigmenu__child {
  list-style: none;
}
.catalog-bigmenu__link {
  display: flex;
  column-gap: 10px;
  align-items: baseline;
  justify-content: space-between;
  /* 2026-08-10. Обязательно, иначе space-between не работает: normalize.css темы
     задаёт всем ссылкам `a { width: max-content }`. Для inline-ссылки ширина
     игнорируется, но здесь display:flex — и строка ужималась по содержимому.
     Пункты вставали лесенкой разной длины, счётчик прилипал к названию вместо
     правого столбца, а тап-цель 44px была уже строки: на телефоне пункты
     читались как висящие в пустоте. Те же грабли уже описаны в common.css
     (.channel) и в contacts/style.css. */
  width: auto;
  padding: 2px 0;
  font-size: var(--fs-14);
  font-weight: var(--fw-regular);
  color: var(--color-text-secondary);
  text-decoration: none;
}
.catalog-bigmenu__link:hover {
  color: var(--color-accent-strong);
}
.catalog-bigmenu__link-text {
  min-width: 0;
}
/* Счётчик живых товаров поддерева — правым столбцом, моноширинными цифрами */
.catalog-bigmenu__count {
  flex: 0 0 auto;
  font-size: var(--fs-13);
  color: var(--color-text-muted);
  font-variant-numeric: tabular-nums;
}

.catalog-bigmenu__all {
  display: inline-flex;
  column-gap: 6px;
  align-items: center;
  margin-top: 10px;
  min-height: 24px;
  font-size: var(--fs-13);
  font-weight: var(--fw-bold);
  color: var(--color-accent-strong);
  text-decoration: none;
}
.catalog-bigmenu__all:hover {
  text-decoration: underline;
}
.catalog-bigmenu__all .icon {
  --icon-fill: currentColor;
  --icon-size: 13px;
}

/* Пятая колонка — «Подобрать по материалу» */
.catalog-bigmenu__aside {
  flex: 0 0 300px;
  width: 300px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background-color: var(--color-field);

  @media screen and (max-width: 991px) {
    flex: 1 1 auto;
    width: 100%;
  }
}
.catalog-bigmenu__aside-title {
  margin-bottom: 12px;
  font-size: var(--fs-14);
  font-weight: var(--fw-bold);
  font-family: var(--font-2);
  color: var(--color-text);
}
.catalog-bigmenu__list--materials {
  row-gap: 6px;
}

@media screen and (max-width: 768px) {
  /* Мобильный аккордеон (ТЗ §7.3 п. 2): тап-цель раскрытия — ВСЯ строка 56px,
     а не только шеврон у правого края. Кнопка растянута на строку абсолютом, чип
     и заголовок лежат под ней и не перехватывают тап. Ссылка на сам раздел на
     мобильном живёт в «Смотреть все →» внутри раскрытого списка — так строка
     остаётся одним предсказуемым действием, а не двумя целями в 8px друг от друга. */
  .catalog-bigmenu__group {
    border-bottom: 1px solid var(--color-hairline);
  }
  .catalog-bigmenu__head {
    position: relative;
    margin-bottom: 0;
    min-height: 56px;
  }
  .catalog-bigmenu__head > :is(.catalog-bigmenu__chip, .catalog-bigmenu__title) {
    pointer-events: none;
  }
  .catalog-bigmenu__title {
    flex: 1 1 auto;
    font-size: var(--fs-16);
    /* Шеврон лежит поверх всей строки (кнопка ниже — position:absolute; inset:0),
       поэтому длинный заголовок заезжал прямо под него: «Фасад и отделка»,
       «Террасы и настил», «Вагонка и интерьер» и «Термодревесина» упирались
       последней буквой в стрелку. Резервируем под неё место здесь, а не паддингом
       на .catalog-bigmenu__head: у head тот же inset:0 у кнопки, и его паддинг
       сдвинул бы саму стрелку внутрь строки. 44px = иконка 20px + её отступ 10px
       + 14px воздуха: при 34px самый длинный заголовок («Вагонка и интерьер»)
       подходил к стрелке вплотную — формально без наложения, но читалось тесно. */
    padding-right: 44px;
  }
  .catalog-bigmenu__toggle {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px 0 0;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .catalog-bigmenu__toggle .icon {
    --icon-size: 20px;
    --icon-fill: var(--color-text-muted);
  }
  .catalog-bigmenu__group[data-catalog-bigmenu-parent-active="Y"] .catalog-bigmenu__toggle .icon {
    transform: scale(1, -1);
  }
  .catalog-bigmenu__list[data-catalog-bigmenu-childs-active="N"] {
    display: none;
  }
  /* «Смотреть все» принадлежит списку: у свёрнутой группы оно висело отдельной
     строкой под заголовком и читалось как чужой пункт. */
  .catalog-bigmenu__group[data-catalog-bigmenu-parent-active="N"] .catalog-bigmenu__all {
    display: none;
  }
  /* 2026-08-10. Пункты раскрытого раздела читались как висящие сами по себе:
     они начинались от края панели — вровень с чипом раздела, — а между строками
     стоял зазор 6px поверх тап-цели 44px, из-за чего текст плавал в пустоте и не
     принадлежал ни заголовку сверху, ни соседнему пункту снизу.
     Отступ 52px = чип 40px + его зазор 12px: пункты встают ровно под заголовком
     раздела. Зазор снят — строки идут сплошной колонкой с шагом 44px (тап-цель
     не уменьшилась, изменился только воздух между целями). */
  .catalog-bigmenu__list {
    row-gap: 0;
    padding: 0 0 12px 52px;
  }
  .catalog-bigmenu__link {
    min-height: 44px; /* WCAG 2.5.5 */
    align-items: center;
  }
  .catalog-bigmenu__all {
    margin-left: 52px;
    margin-bottom: 12px;
    min-height: 44px;
  }
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/catalog/header/style.css */
.header-catalog-button {
  --button-height: 100%;
  --button-icon-size: 26px;
  --button-column-gap: 12px;
  --button-font-weight: var(--fw-bold);
  --button-font-family: var(--font-2);
  --button-active-color: var(--primary-blue);
  --button-active-background: var(--primary-white);

  @media screen and (max-width: 768px) {
    --button-width: 60px;
    --button-icon-fill: var(--primary-white);
    --button-background: var(--primary-white-opacity);
  }

  text-transform: uppercase;
}
body.catalog-bigmenu-open .header-catalog-button {
  --button-color: var(--primary-blue);
  --button-icon-fill: var(--primary-blue);
  --button-background: var(--primary-white);
  --button-hover-color: var(--primary-blue);
  --button-hover-icon-fill: var(--primary-blue);
  --button-hover-background: var(--primary-white);
}
.header-catalog-button .icon--catalog-wood {
  @media screen and (max-width: 768px) {
    display: none;
  }
}
.header-catalog-button .icon--mobile-menu {
  @media screen and (min-width: 769px) {
    display: none;
  }
}
.header-catalog-button .icon--close {
  --button-icon-size: 32px;
}
body:not(.catalog-bigmenu-open) .header-catalog-button .icon--close {
  display: none;
}
body.catalog-bigmenu-open .header-catalog-button :is(.icon--catalog-wood, .icon--mobile-menu) {
  display: none;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/form/fields/search/style.css */
.field--search {
  width: 100%;
  height: 100%;

  display: flex;
  row-gap: 8px;
  flex-direction: column;
}
.field--search input {
  padding: 0;
  padding-left: var(--field-text-padding, 20px);
  padding-right: var(--field-text-padding, 20px);
  border-radius: var(--radius-sm);
  background-color: transparent;
  width: var(--field-text-width, 100%);
  height: var(--field-text-height, 54px);
  border: 1px solid var(--field-text-border, var(--primary-white-opacity2));
  background-color: var(--field-text-background, var(--primary-white-opacity));
  color: var(--field-text-color, var(--primary-color));
  font-size: var(--field-text-fsize, 0.88rem);
  font-weight: var(--field-text-weight, 300);
}
.field--search input:focus {
  border-color: var(--field-text-focus-border, var(--field-text-border, var(--primary-white-opacity2)));
}
.field--search.field--error input {
  border: 1px solid var(--field-text-border-error, var(--primary-red));
}

.field__control {
  z-index: 0;
  position: relative;
}
.field__control .button {
  --button-width: 55px;
  --button-height: calc(100% - 16px);

  z-index: 1;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
}
.field__control input:placeholder-shown ~ .button {
  display: none;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/search/header/style.css */
/* LPD-17 Э8 (ТЗ §7.1): поиск живёт на приподнятой тёмной поверхности, а не на
   полупрозрачной белой плёнке: rgba(255,255,255,.13) поверх #191F2D давала
   непредсказуемый тон и спорила с рамками иконок справа. --color-ink-raised —
   штатная роль «приподнятая поверхность внутри тёмного» из Э3. */
.header-search-input input {
  --field-placeholder: var(--color-text-on-dark-muted);
  --field-text-color: var(--primary-white);
  --field-text-background: var(--color-ink-raised);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/wishlist/header/style.css */
.header-wishlist-button {
  --button-icon-size: 22px;
  --button-background: var(--primary-white-opacity);
  --button-border-color: var(--primary-white-opacity2);
  --button-active-background: var(--primary-white);
  --button-active-icon-color: var(--primary-blue);

  text-transform: uppercase;
}
/* 19.08.2026: .footer-mobile-panel-wishlist убрана по той же причине, что и у корзины
   (basket/header/style.css): счётчик панели — это .footer-mobile-panel__count. */
.header-wishlist-button .button__text {
  position: absolute;
  right: 20px;
  top: 10px;
  color: var(--primary-white);
  background-color: var(--primary-blue);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);

  @media screen and (max-width: 768px) {
    right: -10px;
    top: -5px;
  }
}
.header-wishlist-button .button__text.counter-bump {
  animation: counter-bump .4s ease-out; /* keyframes — в footer/style.css */
}
@media screen and (prefers-reduced-motion: reduce) {
  .header-wishlist-button .button__text.counter-bump {
    animation: none;
  }
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/basket/header/style.css */
.header-basket-button {
  --button-icon-size: 22px;
  --button-background: var(--primary-white-opacity);
  --button-border-color: var(--primary-white-opacity2);
  --button-active-background: var(--primary-white);
  --button-active-icon-color: var(--primary-blue);

  text-transform: uppercase;
}
/* 19.08.2026: из селектора убрана .footer-mobile-panel-basket. Бейдж нижней панели
   называется .footer-mobile-panel__count и стилизован в footer/style.css; сюда он
   попадал только потому, что скрипт корзины ошибочно дописывал панели .button__text —
   и тот, будучи absolute, отсчитывался от всей панели и уезжал в её правый угол. */
.header-basket-button .button__text {
  position: absolute;
  right: 20px;
  top: 10px;
  color: var(--primary-white);
  background-color: var(--primary-blue);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);

  @media screen and (max-width: 768px) {
    right: -10px;
    top: -5px;
  }
}
/* keyframes counter-bump объявлен в footer/style.css рядом со счётчиком панели —
   оба бандла (header и footer) грузятся на каждой странице, дублировать незачем. */
.header-basket-button .button__text.counter-bump {
  animation: counter-bump .4s ease-out;
}
@media screen and (prefers-reduced-motion: reduce) {
  .header-basket-button .button__text.counter-bump {
    animation: none;
  }
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/account/header/style.css */
.header-account-button {
  --button-icon-size: 22px;
  --button-background: var(--primary-white-opacity);
  --button-border-color: var(--primary-white-opacity2);
  --button-active-background: var(--primary-white);
  --button-active-icon-color: var(--primary-blue);

  text-transform: uppercase;
}
.header-account-button .button__text {
  position: absolute;
  right: 20px;
  top: 10px;
  color: var(--primary-white);
  background-color: var(--primary-blue);
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  border-radius: var(--radius-sm);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/breadcrumbs/style.css */
.breadcrumbs {
  display: flex;
  column-gap: 12px;
  align-items: center;
  /* LPD-17: вместо обрезки хвоста (см. комментарий внизу файла) — длинная цепочка
     не переносится и скроллится по горизонтали. На десктопе самая глубокая цепочка
     (карточка товара, 6 пунктов) умещается целиком; скролл работает на мобильном. */
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.breadcrumbs::-webkit-scrollbar {
  display: none;
}
.breadcrumbs__item {
  white-space: nowrap;
}
.breadcrumbs__separator {
  width: 1px;
  min-width: 1px;
  height: 8px;
  transform: translateY(2px);
  background-color: var(--primary-grey2);
}
.breadcrumbs__link {
  --link-color: var(--primary-grey2);

  font-size: 0.75rem;
  font-weight: var(--fw-regular);
  font-family: var(--font);
}
.breadcrumbs__link:hover {
  --link-hover-color: var(--primary-blue);
}
/* LPD-17: здесь стояло .breadcrumbs li:nth-child(1n + 6) { display:none } —
   обрезка «хвоста» длинных цепочек. Разделители — тоже <li>, поэтому с 6-го li
   скрывался сам текущий пункт: на «Вагонке» посетитель видел только
   «Главная · Каталог · Пиломатериалы», на карточке товара скрывалась половина пути.
   Заменено на overflow-x: auto у .breadcrumbs (см. выше). */
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/rating/inline/style.css */
.rating-inline {
  display: flex;
  column-gap: 6px;
  align-items: center;
}
.rating-inline__star {
  --icon-size: 14px;
  --icon-fill: var(--primary-orange);
  transform: translateY(-2px);
}
.rating-inline__total {
  font-weight: var(--fw-medium);
  font-size: 0.813rem;
  color: var(--primary-grey);
}
.rating-inline__separator {
  width: 2px;
  height: 2px;
  background-color: var(--primary-blue);
}
.rating-inline__count {
  font-weight: var(--fw-regular);
  font-size: 0.813rem;
  color: var(--primary-blue);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/product/style.css */
#product {
  width: 100%;
  display: flex;
  row-gap: var(--page-containers-offset);
  flex-direction: column;
}

.product-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.product-headline__left {
  display: flex;
  row-gap: 20px;
  flex-direction: column;
}
.product-name {
  padding-right: 40px;

  @media screen and (max-width: 768px) {
    padding-right: 0px;
  }
}
.product-name h1 {
  font-size: 1.5rem;
  /* LPD-17 Э1: было --fw-regular, но из-за сломанных дескрипторов @font-face
     фактически рендерился Black. После починки вес 400 дал бы Regular — заголовок
     карточки товара резко похудел бы. 800 сохраняет текущий вид и совпадает
     с ролью H1 из ТЗ (RF Dewi 800). */
  font-weight: var(--fw-extrabold);
  font-family: var(--font-2);

  @media screen and (max-width: 768px) {
    font-size: 1.25rem;
  }
}
.product-headline__bottom {
  display: flex;
  column-gap: 32px;
  align-items: center;

  @media screen and (max-width: 768px) {
    column-gap: 16px;
  }
}
.product-headline__article-link {
  --link-color: var(--primary-grey5);
  --link-font-size: 0.813rem;
  --link-font-weight: var(--fw-regular);
}
.product-headline__article-link .icon {
  --link-icon-size: 16px;

  order: 2;
}
.product-headline__right {
  @media screen and (max-width: 768px) {
    margin-top: auto;
  }
}
.product-headline__share {
  --link-color: var(--primary-grey5);
  --link-icon-size: 18px;
  --link-icon-fill: var(--primary-blue);

  font-weight: var(--fw-regular);
  font-size: 0.875rem;
}
.product-headline__share .link__text {
  @media screen and (max-width: 768px) {
    display: none;
  }
}

/* DETAIL */
/* LPD-18 Э3. Две колонки вместо трёх.
   Было: галерея (4.5/12) | параметры (4.5/12) | покупка — и центральная колонка держала две
   строки характеристик со ссылкой, то есть треть первого экрана занимала пустота. Стало:
   слева весь контент товара (галерея, затем переключатель вариантов и характеристики),
   справа — липкий блок покупки во всю высоту.
   Сетка именованными областями, а не порядком: на мобильном она распускается в один столбец,
   где блок покупки обязан идти ПЕРВЫМ (order:1 у .product-buy ниже) — цена и кнопка должны
   встречаться до простыни характеристик. */
.product-detail {
  --product-detail-collumns-gap: 30px;

  margin-top: -40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.62fr);
  grid-template-areas:
    "media buy"
    "params buy";
  align-items: start;
  column-gap: 0;

  @media screen and (max-width: 768px) {
    margin-top: -14px;
    row-gap: 16px;
    display: flex;
    flex-direction: column;
  }
}

/* IMAGES */
.product-slider {
  --thumbs-slider-item-size: 74px;

  grid-area: media;
  display: flex;
  column-gap: 22px;
  align-items: stretch;
  min-width: 0;
  padding-right: var(--product-detail-collumns-gap);
  /* Sticky снят: галерея больше не отдельная колонка, а верх левой. Липнуть должен только
     блок покупки, иначе при прокрутке к характеристикам фото уезжает поверх них. */

  @media screen and (max-width: 768px) {
    margin-bottom: 5px;
    padding-right: 0;
  }
}
.product-slider__thumbs {
  --slider-height: 100%;

  min-width: var(--thumbs-slider-item-size);
  max-width: var(--thumbs-slider-item-size);
  overflow: hidden;
  height: 355px;

  @media screen and (max-width: 768px) {
    display: none;
  }
}
.product-slider__thumbs :is(.block-slider, .container, .block-slider__container, .block-slider__swiper) {
  height: calc(1 * 100%);
  max-height: 100vw;
}
.product-slider__thumbs .block-slider__swiper {
  padding-bottom: 0;
}
.product-slider__thumbs .block-slider__item {
  width: var(--thumbs-slider-item-size);
  height: var(--thumbs-slider-item-size);
}
.product-slider__thumbs .block-slider__image {
  width: var(--thumbs-slider-item-size);
  height: var(--thumbs-slider-item-size);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-grey-opacity4);
}
.product-slider__thumbs .swiper-slide-thumb-active .block-slider__image {
  border-color: var(--primary-blue);
}
.product-slider__thumbs img {
  object-fit: cover;
  aspect-ratio: 1.19 / 1;
}
.product-slider__images {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-sm);
  border: 1px solid var(--primary-grey-opacity5);

  @media screen and (max-width: 768px) {
    width: var(--container);
  }
}
#product-slider-images, #product-slider-images :is(.container, .block-slider__container, .block-slider__swiper) {
  height: 100%;
}
.product-slider__images img {
  object-fit: cover;
  aspect-ratio: 1.22 / 1;
  /* LPD-18 Э3: галерея стала шире (левая колонка вместо трети экрана), и при свободной
     пропорции кадр вырастал до ~600px, выдавливая цену и кнопку за первый экран. */
  max-height: 460px;
}

/* ═══ LPD-18 Э3. Переключатель вариантов ═══
   Живёт в центральной колонке, которая до этого держала две строки характеристик и ссылку —
   на первом экране там зияла пустота шириной в треть страницы. */
.variant-axes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  /* Родитель .product-parameters — колоночный flex с flex-wrap:wrap, а в такой раскладке
     дети НЕ растягиваются до его ширины, а берут ширину по содержимому. Из-за этого ряд
     чипов раздувал контейнер до 398px при родителе 351px и уезжал под его overflow:hidden
     вместо переноса. Ширину задаём явно, min-width:0 снимает дефолтный min-width:auto. */
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.variant-axis,
.variant-axis__chips {
  min-width: 0;
  max-width: 100%;
}

.variant-axis__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.variant-axis__name {
  font-size: .875rem;
  font-weight: var(--fw-bold);
  color: var(--color-text);
}

.variant-axis__note {
  font-size: .75rem;
  color: var(--color-text-muted);
}

.variant-axis__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.variant-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
  min-height: 44px;
  justify-content: center;
  padding: 7px 13px;
  width: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--primary-white);
  font-size: .8125rem;
  font-weight: var(--fw-semibold);
  line-height: var(--leading-tight);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}

.variant-chip:hover,
.variant-chip:focus-visible {
  border-color: var(--color-border-strong);
  color: var(--color-text);
}

.variant-chip__price {
  font-size: .6875rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text-muted);
  white-space: nowrap;
}

/* Текущий вариант отмечен рамкой, а не заливкой: заливка синим сделала бы его похожим на
   кнопку действия, хотя нажимать на него незачем. */
.variant-chip--current {
  border-color: var(--color-accent);
  box-shadow: inset 0 0 0 1px var(--color-accent);
  background-color: var(--primary-blue-opacity2);
  color: var(--color-text);
  cursor: default;
}

.variant-chip--current .variant-chip__price {
  color: var(--color-accent-strong);
}

.variant-chip--absent {
  border-style: dashed;
  color: var(--color-text-muted);
  cursor: default;
}

/* PARAMETERS */
.product-parameters {
  /* LPD-18 Э3: параметры переехали под галерею в левую колонку. min-width 4.5/12 снят —
     он держал их отдельным столбцом и был причиной пустоты в центре первого экрана. */
  grid-area: params;
  padding-right: var(--product-detail-collumns-gap);
  padding-top: 28px;
  min-width: 0;

  display: flex;
  row-gap: 28px;
  flex-wrap: wrap;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    order: 2;
    width: 100%;
    padding-right: 0;
    min-width: none;
    overflow: hidden;
    max-width: var(--container);
  }
}

/* ATTRIBUTES */
.product-attributes {
  /* display: flex;
  row-gap: 8px;
  flex-direction: column;
  width: min-content; */
}
.product-attributes tbody {
  @media screen and (max-width: 768px) {
    display: flex;
    row-gap: 6px;
    flex-direction: column;
  }
}
.product-attribute {
  font-weight: var(--fw-regular);
  font-size: 0.813rem;
  font-family: var(--font);
}
.product-attribute td {
  padding: 5px;
  vertical-align: top;

  @media screen and (max-width: 768px) {
    width: 100%;
    max-width: 100%;
    display: block;
  }
}
.product-attribute span {
  color: var(--primary-grey5);
}
.product-attribute strong {
  font-weight: var(--fw-regular);
  white-space: break-spaces;
  color: var(--primary-color);
}


/* OFFERS */
.product-offers-wrap {
  display: flex;
  row-gap: 28px;
  flex-direction: column;
}
.product-offers {
  display: flex;
  row-gap: 32px;
  flex-direction: column;
}
.product-offers__group {
  display: flex;
  row-gap: 16px;
  flex-direction: column;
}
.product-offers__title {
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  font-family: var(--font);
  color: var(--product-offers-title-color, var(--primary-color));
}
.product-offers__list {
  display: grid;
  row-gap: 8px;
  column-gap: 8px;
  /* flex-wrap: wrap; */
  box-sizing: border-box;
  grid-template-columns: repeat( auto-fill, minmax(112px, 1fr) );
}
.product-offers__item {
  cursor: pointer;
  width: 100%;
  min-height: 34px;
  align-self: stretch;
  justify-self: center;
  box-sizing: border-box;
  /* padding: 0 8px; */
  border: 1px solid var(--product-offers-item-border-color, var(--primary-grey-opacity4));
}
.product-offers__detail {
  display: flex;
  row-gap: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 8px 8px;
  box-sizing: border-box;
}
.product-offers__item--active {
  pointer-events: none;
}
.product-offers__item--disabled {
  pointer-events: none;
  opacity: .5;
}
.product-offers__item:hover, .product-offers__item--active {
  border-color: var(--product-offers-item-border-hover-color, var(--primary-blue));
}
.product-offers__name {
  font-weight: var(--fw-regular);
  font-size: 0.813rem;
  font-family: var(--font);
  text-align: center;
  /* white-space: nowrap; */
  color: var(--product-offers-item-name-color, var(--primary-color));
}
.product-offers__item:hover .product-offers__name, .product-offers__item--active .product-offers__name {
  color: var(--product-offers-item-name-hover-color, var(--primary-blue));
}
.product-offers__text {
  font-weight: var(--fw-regular);
  font-size: 0.813rem;
  font-family: var(--font);
  color: var(--product-offers-item-text-color, var(--primary-grey2));
}

/* BACK TO LEVEL (LPD-14 Э2): возврат с позиции на срез размеров.
   Единственная навигационная ссылка на карточке позиции — цвет ссылки берём
   штатный (--primary-blue из .link), приглушать её нечем. */
.product-back-level {
  display: flex;
}
.product-back-level__link {
  --link-font-size: 0.875rem;
  --link-font-weight: var(--fw-regular);
  --link-font-family: var(--font);
  /* width:auto гасит глобальное `a { width: max-content }`: на 360px строка «Другие
     размеры и сорта: Блок-хаус из лиственницы» растягивалась до 366px и хвост срезался
     контейнером параметров. */
  width: auto;
}

.product-offers-wrap--table {
  width: 100%;
}
.product-offers--table {
  row-gap: 18px;
}
.product-offers-table__header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  column-gap: 24px;
}
.product-offers-table__header h2 {
  margin: 0 0 8px;
  font-weight: var(--fw-semibold);
  font-size: 1.375rem;
  line-height: 1.25;
  font-family: var(--font-2);
  color: var(--primary-color);
}
.product-offers-table__header p {
  margin: 0;
  font-weight: var(--fw-regular);
  font-size: 0.938rem;
  line-height: var(--leading-comfortable);
  color: var(--primary-grey5);
}
.product-offers-table__rows {
  display: flex;
  row-gap: 12px;
  flex-direction: column;
}
.product-offers-table__row {
  display: grid;
  grid-template-columns: 128px minmax(260px, 1fr) minmax(410px, 0.92fr);
  column-gap: 24px;
  align-items: center;
  padding: 20px 22px;
  border: 1px solid var(--primary-grey-opacity4);
  border-radius: 6px;
  background-color: var(--primary-white);
}
.product-offers-table__row--active {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 1px var(--primary-blue);
}
.product-offers-table__image {
  display: block;
  width: 128px;
  height: 104px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary-grey-opacity5);
  background-color: var(--primary-white-grey);
}
.product-offers-table__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.product-offers-table__main {
  min-width: 0;
  display: flex;
  row-gap: 10px;
  flex-direction: column;
}
.product-offers-table__name {
  font-weight: var(--fw-semibold);
  font-size: 1.125rem;
  line-height: var(--leading-snug);
  color: var(--primary-color);
}
.product-offers-table__name:hover {
  color: var(--primary-blue);
}
.product-offers-table__specs {
  display: flex;
  row-gap: 6px;
  column-gap: 14px;
  flex-wrap: wrap;
  font-size: 0.875rem;
  line-height: var(--leading-normal);
  color: var(--primary-grey5);
}
.product-offers-table__specs span {
  display: inline-flex;
  column-gap: 4px;
  min-width: 0;
}
.product-offers-table__specs strong {
  font-weight: var(--fw-medium);
  color: var(--primary-grey2);
}
.product-offers-table__stock {
  display: inline-flex;
  column-gap: 8px;
  align-items: center;
  width: fit-content;
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  color: var(--primary-gey-green);
}
.product-offers-table__stock-icon {
  width: 12px;
  height: 12px;
  padding: 2px;
  flex: 0 0 auto;
  background-color: var(--product-offer-stock-bg, var(--primary-green-opacity));
}
.product-offers-table__stock-icon::before {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--product-offer-stock-dot, var(--primary-green-opacity2));
}
.product-offers-table__stock-icon--no {
  --product-offer-stock-bg: var(--primary-red-opacity);
  --product-offer-stock-dot: var(--primary-red-opacity2);
}
.product-offers-table__stock-icon--middle {
  --product-offer-stock-bg: var(--primary-yellow-opacity);
  --product-offer-stock-dot: var(--primary-yellow-opacity2);
}
.product-offers-table__stock-icon--few {
  --product-offer-stock-bg: var(--primary-orange-opacity);
  --product-offer-stock-dot: var(--primary-orange-opacity2);
}
.product-offers-table__commerce {
  display: grid;
  grid-template-columns: minmax(112px, auto) minmax(138px, auto) minmax(170px, 1fr);
  column-gap: 18px;
  align-items: center;
  width: 100%;
  min-width: 0;
}
.product-offers-table__price-box {
  width: 100%;
  min-width: 0;
}
.product-offers-table__price {
  font-weight: var(--fw-bold);
  font-size: 1.25rem;
  line-height: 1.15;
  white-space: nowrap;
  color: var(--primary-color);
}
.product-offers-table__price--request {
  font-size: 1rem;
  white-space: normal;
}
.product-offers-table__oldprice {
  margin-top: 2px;
  font-size: 0.813rem;
  text-decoration: line-through;
  color: var(--primary-grey3);
}
.product-offers-table__measure {
  margin-top: 4px;
  font-size: 0.875rem;
  line-height: var(--leading-tight);
  color: var(--primary-grey5);
}
.product-offers-table__qty {
  display: flex;
  row-gap: 6px;
  flex-direction: column;
  font-size: 0.813rem;
  line-height: var(--leading-tight);
  color: var(--primary-grey5);
}
.product-offers-table__stepper {
  display: grid;
  grid-template-columns: 44px 54px 44px;
  height: 48px;
  overflow: hidden;
  border: 1px solid var(--primary-grey-opacity4);
  border-radius: 5px;
  background-color: var(--primary-white);
}
.product-offers-table__stepper button,
.product-offers-table__stepper input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  color: var(--primary-color);
}
.product-offers-table__stepper button {
  cursor: pointer;
  font-size: 1.625rem;
  line-height: var(--leading-none);
  color: var(--primary-grey5);
}
.product-offers-table__stepper button:hover {
  color: var(--primary-blue);
}
.product-offers-table__stepper input {
  font-weight: var(--fw-semibold);
  font-size: 1rem;
  text-align: center;
  appearance: textfield;
}
.product-offers-table__stepper input::-webkit-outer-spin-button,
.product-offers-table__stepper input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}
.product-offers-table__actions {
  display: flex;
  row-gap: 10px;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  justify-self: stretch;
}
.product-offers-table__checkout,
.product-offers-table__basket,
.product-offers-table__callback {
  --button-width: 100%;
  --button-padding: 0 18px;
  --button-font-size: 0.938rem;
  white-space: nowrap;
}
.product-offers-table__actions .button {
  width: 100% !important;
}

@media screen and (max-width: 1180px) {
  .product-offers-table__row {
    grid-template-columns: 112px minmax(220px, 1fr);
  }
  .product-offers-table__commerce {
    grid-column: 2;
    grid-template-columns: minmax(112px, auto) minmax(138px, auto) minmax(170px, 1fr);
  }
  .product-offers-table__image {
    width: 112px;
    height: 96px;
  }
}

@media screen and (max-width: 768px) {
  .product-offers-wrap--table {
    width: var(--container);
    max-width: var(--container);
  }
  .product-offers-table__header h2 {
    font-size: 1.125rem;
  }
  .product-offers-table__header p {
    font-size: 0.875rem;
  }
  .product-offers-table__row {
    grid-template-columns: 88px minmax(0, 1fr);
    row-gap: 16px;
    column-gap: 14px;
    padding: 14px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .product-offers-table__image {
    width: 88px;
    height: 84px;
  }
  .product-offers-table__name {
    font-size: 0.938rem;
    line-height: 1.32;
  }
  .product-offers-table__specs {
    row-gap: 4px;
    font-size: 0.813rem;
  }
  .product-offers-table__specs span {
    display: flex;
    width: 100%;
  }
  .product-offers-table__commerce {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    row-gap: 14px;
  }
  .product-offers-table__price {
    font-size: 1.125rem;
  }
  .product-offers-table__qty {
    width: 100%;
  }
  .product-offers-table__stepper {
    grid-template-columns: 48px 1fr 48px;
  }
  .product-offers-table__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .product-offers-table__checkout,
  .product-offers-table__basket,
  .product-offers-table__callback {
    min-height: 48px;
    white-space: normal;
  }
}

/* BUY BLOCK */
.product-buy {
  /* LPD-18 Э3: правая колонка на всю высоту двух левых рядов. Рамка и белый фон появились
     вместе с ней: раньше блок висел в воздухе без границы и на длинной странице терялся. */
  grid-area: buy;
  display: flex;
  row-gap: 24px;
  flex-direction: column;
  padding: 20px 24px;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background-color: var(--color-surface);
  box-shadow: 0 1px 2px rgba(25, 31, 45, .06), 0 8px 24px rgba(25, 31, 45, .06);
  top: 120px;
  position: sticky;

  @media screen and (max-width: 768px) {
    order: 1;
    width: 100%;
    padding: 0;
    position: initial;
  }
}
.product-prices {
  display: flex;
  column-gap: 10px;
  align-items: center;
}
.product-price {
  font-weight: var(--fw-semibold);
  font-size: 1.625rem;
  font-family: var(--font);
  color: var(--primary-color);

  display: flex;
  column-gap: 3px;
  align-items: flex-start;
}
.product-price span {
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  transform: translateY(4px);
}
.product-oldprice {
  font-weight: var(--fw-regular);
  font-size: 0.875rem;
  font-family: var(--font);
  text-decoration: line-through;
  color: var(--primary-grey3);
}
.product-mesure {
  font-weight: var(--fw-regular);
  font-size: 0.875rem;
  font-family: var(--font);
  text-decoration: line-through;
  color: var(--primary-grey2);
}
.product-minimum {
  font-weight: var(--fw-regular);
  font-size: 0.875rem;
  font-family: var(--font);
  color: var(--primary-grey2);
  margin-top: -20px;
}
.product-buttons {
  display: flex;
  row-gap: 20px;
  column-gap: 16px;
  flex-wrap: wrap;

  @media screen and (max-width: 768px) {
    position: fixed;
    left: 0;
    bottom: 50px;
    right: 0;
    padding: 12px;
    z-index: 9;
    width: 100vw;
    flex-wrap: nowrap;
    overflow: hidden;
    border-radius: 5px 5px 0 0;
    background-color: var(--primary-white);
    box-shadow: 0 -3px 4px 0 var(--primary-color-opacity2);
  }
}
.product-add-basket {
  @media screen and (max-width: 768px) {
    width: 100% !important;
  }
}
.product-checkout ~ .product-add-basket {
  @media screen and (max-width: 768px) {
    width: calc(50% - 10px) !important;
  }
}
.product-checkout {
  order: 3;
  
  @media screen and (max-width: 768px) {
    order: -1;
    width: calc(50% - 10px) !important;
  }
}
.product-offers-table__checkout ~ .product-offers-table__basket {
  @media screen and (max-width: 768px) {
    width: 100% !important;
  }
}
.product-offers-table__checkout {
  order: 0;
}
.product-offers-table__basket {
  order: 1;
}
[href="#wishlist-add"] .icon--wishlist-fill {
  display: none;
}
[href="#wishlist-delete"] .icon--wishlist {
  display: none;
}
[href="#wishlist-delete"] .icon {
  --button-icon-fill: var(--primary-blue);
}
.product-add-wishlist {
  @media screen and (max-width: 768px) {
    display: none;
  }
}

.product-stock {
  display: flex;
  column-gap: 12px;
  align-items: center;

  padding: 0 24px;
  height: 48px;
  background-color: var(--primary-white-grey);
}
.product-stock__info {
  display: flex;
  column-gap: 20px;
  align-items: center;
  font-weight: var(--fw-regular);
  font-size: 0.813rem;
  color: var(--primary-gey-green);
}
[class^="product-stock__info-"] {
  width: 10px;
  height: 10px;
  padding: 2px;
  background-color: var(--product-stock-background, var(--primary-green-opacity));
}
[class^="product-stock__info-"]::before {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--product-stock-background2, var(--primary-green-opacity2));
}
.product-stock__info-no {
  --product-stock-background: var(--primary-red-opacity);
  --product-stock-background2: var(--primary-red-opacity2);
}
.product-stock__info-many {
  --product-stock-background: var(--primary-green-opacity);
  --product-stock-background2: var(--primary-green-opacity2);
}
.product-stock__info-middle {
  --product-stock-background: var(--primary-yellow-opacity);
  --product-stock-background2: var(--primary-yellow-opacity2);
}
.product-stock__info-few {
  --product-stock-background: var(--primary-orange-opacity);
  --product-stock-background2: var(--primary-orange-opacity2);
}
.product-stock__quantity {
  font-weight: var(--fw-regular);
  font-size: 0.813rem;
  font-family: var(--font);
  color: var(--primary-blue);
}

/* LPD-15 (2.3) REASSURANCE у цены */
.product-reassurance {
  display: flex;
  flex-direction: column;
  row-gap: 10px;
  padding: 14px 24px;
  background-color: var(--primary-white-grey);
}

.product-reassurance__item {
  display: flex;
  column-gap: 10px;
  align-items: center;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  color: var(--primary-color);
}

.product-reassurance .icon {
  --icon-size: 18px;
  --icon-fill: var(--primary-blue);
  min-width: 18px;
}

.product-reassurance__pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 6px;
  column-gap: 12px;
  font-size: 0.8125rem;
  color: var(--primary-grey2);
}

.product-reassurance__pay img {
  width: auto;
  height: 18px;
  max-width: 100%;
}

/* ORDER TERMS — условия заказа и отгрузки (LPD-23 T7, ТЗ R5.3).
   Карточка с контуром и пункты на волосяных разделителях: не чеклист (там галочки
   у proof_quality), не таблица (grade_defects) и не проза — пары «термин → что это
   значит». Иконок нет намеренно: truck и pickup заняты соседним .product-reassurance
   в той же колонке, повтор глифа читался бы как повтор смысла (ТЗ, Images/icons). */
.order-terms {
  font-family: var(--font);
  border: 1px solid var(--color-hairline);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--color-text);
}

/* Внутри .product-buy (оффер, одиночный товар): колонка уже в рамке, вторая рамка
   подряд читалась бы как чужой блок — остаётся только верхний разделитель. */
.order-terms--buy {
  border: 0;
  border-top: 1px solid var(--color-hairline);
  border-radius: 0;
  padding: 20px 0 0;
}

/* Карточка-семейство: блока покупки нет, занимаем его колонку сетки .product-detail.
   Липкость та же, что у .product-buy, — иначе карточка условий уезжает вверх на первом
   же экране прокрутки витрины. */
.order-terms--column {
  grid-area: buy;
  position: sticky;
  top: 120px;
  min-width: 0;
  background-color: var(--color-surface);
}

.order-terms__title {
  font-family: var(--font-2);
  font-size: var(--fs-16);
  font-weight: var(--fw-bold);
  line-height: 1.3;
  color: var(--color-text);
  margin: 0;
}

.order-terms__intro {
  margin-top: 8px;
  font-size: var(--fs-13);
  line-height: 1.45;
  color: var(--color-text-muted);
}

.order-terms__intro p {
  margin: 0;
}

.order-terms__intro p + p {
  margin-top: 8px;
}

.order-terms__list {
  margin: 16px 0 0;
  padding: 0;
}

.order-terms__item {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--color-hairline);
}

.order-terms__item:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.order-terms__term {
  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: 1.35;
  color: var(--color-text);
}

.order-terms__text {
  margin: 4px 0 0;
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Грабли проекта: normalize.css:195 даёт всем <a> ширину max-content — в узкой колонке
   такая ссылка не сжимается и распирает карточку, а хвост срезается (DOMAIN_MAP §12). */
.order-terms a {
  width: auto;
  max-width: 100%;
}

@media screen and (max-width: 768px) {
  .order-terms--column {
    /* .product-detail на телефоне — flex-столбец: у .product-buy order 1, у параметров 2.
       Условия идут последними. */
    order: 3;
    width: 100%;
    position: static;
    top: auto;
  }
}

/* DESCRIPTION */
.product-description-title {
  font-weight: var(--fw-extrabold);
  font-size: 1.25rem;
  font-family: var(--font-2);
  color: var(--primary-color);

  padding-bottom: 12px;
  width: max-content;
  border-bottom: 1px solid var(--primary-blue);
  transform: translateY(1px);
}
.product-description {
  padding-top: 32px;
  border-top: 1px solid var(--primary-grey-opacity3);
}

#popup-palitra {
  --popup-container-width: 800px;
  --popup-title-size: 1.5rem;
}

@media screen and (max-width: 768px) {
  footer {
    padding-bottom: 120px;
  }
}

/* GRADE GLOSSARY (UX-3): подсказка активного сорта. Полный глоссарий перенесён
   на уровень L3 — блок _blocks/grade_glossary (LPD-14 Э4, правило §5.1),
   с карточки на него ведёт однострочная ссылка. */
.product-offers__grade-hint {
  margin: 0;
  font-weight: var(--fw-regular);
  font-size: 0.875rem;
  line-height: var(--leading-comfortable);
  font-family: var(--font);
  color: var(--primary-grey5);
}
.product-offers__grade-link {
  display: inline-flex;
  align-items: center;
  width: auto;
  min-height: 44px;
  font-weight: var(--fw-medium);
  font-size: 0.875rem;
  line-height: var(--leading-comfortable);
  font-family: var(--font);
  color: var(--primary-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.product-offers__grade-link:hover {
  text-decoration: none;
}
.product-offers__grade-link:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/slider/style.css */
.block-slider {
  --slider-pagination-bottom: 40px;

  height: var(--slider-height, auto);

  @media screen and (max-width: 768px) {
    --slider-body-left-padding: 24px;
    --slider-body-top-padding: 42px;

    overflow: hidden;
  }
}
.block-slider > .container {
  display: flex;
  row-gap: 30px;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    row-gap: 6px;
  }
}
.block-slider .block-slider__swiper {
  height: var(--slider-height, auto);
}

.block-slider__title {
  margin-bottom: 14px;
}

.block-slider__wrap {
  align-items: stretch;
}

.block-slider__item {
  height: auto;
}

.block-slider__html, .block-slider__html > *  {
  height: 100%;
}

.block-slider__image {
  height: 100%;
  z-index: 0;
  position: relative;
}
.block-slider__image :is(img, picture) {
  display: block;

  @media screen and (max-width: 768px) {
    object-fit: cover;
  }
}

.block-slider__body {
  z-index: 1;
  position: absolute;
  left: var(--slider-body-left-padding, 100px);
  top: var(--slider-body-top-padding, 64px);
  /* top: 50%; */
  /* transform: translateY(-50%); */
  min-height: 300px;

  display: flex;
  row-gap: 12px;
  /* justify-content: center; */
  flex-direction: column;

  @media screen and (max-width: 768px) {
    height: calc(100% - var(--slider-body-top-padding) * 2 - 50px - var(--slider-pagination-bottom));
    right: var(--slider-body-left-padding, 100px);
  }
}

.block-slider__title {
  font-size: 6.875rem;
  font-weight: var(--fw-bold);
  font-family: var(--font-2);

  background: linear-gradient(180deg, var(--slider-title-color, var(--primary-white)) 0%, rgba(255, 255, 255, 0.21) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  
  @media screen and (max-width: 768px) {
    font-size: 2.875rem;
    height: auto;
    max-height: 70px;
  }
}
.block-slider__title img {
  width: max-content;
}

.block-slider__subtitle {
  font-size: 2.125rem;
  font-weight: var(--fw-light);
  font-family: var(--font-2);
  color: var(--slider-subtitle-color, var(--primary-white));

  @media screen and (max-width: 768px) {
    font-size: 1.25rem;
  }
}

.block-slider__buttons:not(:first-child) {
  margin-top: 42px;

  @media screen and (max-width: 768px) {
    margin-top: auto;
  }
}
.block-slider__button {
  --button-font-size: 1.125rem;
  --button-width: max-content;
  --button-padding: 0 52px;
  --button-height: 56px;
}

.block-slider--carousel .block-slider__swiper {
  padding-bottom: 41px;

  @media screen and (max-width: 768px) {
    overflow: initial;
  }
}

.block-slider--default .block-slider__thumbs {
  z-index: 1;
  position: absolute;
  left: 0;
  right: 0;
  top: auto;
  bottom: 0;

  display: flex;
  column-gap: 0;
  align-items: center;

  backdrop-filter: blur(4px);
  background-color: var(--primary-white-opacity);
}
.block-slider--default .block-slider__thumb {
  width: 100%;
  min-width: 350px;
  height: 70px;
  padding: 0 30px;
  cursor: pointer;
  z-index: 0;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.88rem;
  font-weight: var(--fw-medium);
  font-family: var(--font);
  text-transform: uppercase;
  color: var(--slider-thumbs-text-color, var(--primary-white-blue2));
  transition: .3s;
}
.block-slider--default .block-slider__thumb--active {
  color: var(--slider-thumbs-text-active-color, var(--primary-white));
}
.block-slider--default .block-slider__thumb:hover {
  color: var(--slider-thumbs-text-hover-color, var(--primary-white));
}
.block-slider--default .block-slider__thumb a {
  border-bottom: 1px solid transparent;
}
.block-slider--default .block-slider__thumb a:hover {
  color: currentColor;
  border-color: currentColor;
}
.block-slider--default .block-slider__thumb a::before {
  content: '';
  display: block;
  z-index: 1;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.block-slider--default .block-slider__pagination {
  width: max-content;
  left: var(--slider-body-left-padding, 100px);
  bottom: var(--slider-pagination-bottom, 40px);

  display: flex;
  column-gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.block-slider--default .block-slider__thumbs ~ .block-slider__pagination {
  --slider-pagination-bottom: 144px;
  /* bottom: var(--slider-pagination-bottom, 100px); */
}
.block-slider--default .swiper-pagination-bullet {
  --swiper-pagination-bullet-width: 12px;
  --swiper-pagination-bullet-height: 12px;
  --swiper-pagination-bullet-border-radius: var(--radius-sm);
  --swiper-pagination-bullet-horizontal-gap: 0px;
  --swiper-pagination-color: var(--primary-white);
  --swiper-pagination-bullet-inactive-color: var(--primary-white);
  
  opacity: 1;
  position: relative;
  font-size: 0 !important;
}
.block-slider--default .swiper-pagination-bullet-active::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  background-color: var(--primary-grey2);
  transform: translateX(-50%) translateY(-50%);
}

.block-slider__scrollbar {
  --swiper-scrollbar-top: 40px;
  --swiper-scrollbar-bottom: 0;
  --swiper-scrollbar-size: 1px;
  --swiper-scrollbar-sides-offset: 0;

  width: 100% !important;
}
.block-slider--default .block-slider__scrollbar {
  --swiper-scrollbar-top: auto;
  --swiper-scrollbar-bottom: 8px;
  --swiper-scrollbar-border-radius: var(--radius-sm);
  --swiper-scrollbar-bg-color: var(--primary-white-blue2);
  --swiper-scrollbar-drag-bg-color: var(--primary-white-blue2);
}
.block-slider--default .block-slider__thumbs ~ .block-slider__scrollbar {
  --swiper-scrollbar-top: auto;
  --swiper-scrollbar-bottom: 70px;
}
.block-slider--default .block-slider__scrollbar .swiper-scrollbar-drag {
  height: 2px;
}
.block-slider--carousel .block-slider__scrollbar {
  /* margin-top: 60px; */
  position: relative !important;
}

.block-slider__pagination {
  --swiper-pagination-bottom: 0;
  --swiper-pagination-bullet-size: 38px;
  --swiper-pagination-bullet-border-radius: var(--radius-sm);
  --swiper-pagination-bullet-inactive-color: transparent;
  --swiper-pagination-bullet-inactive-opacity: 1;

  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-top: 40px;
  user-select: none;
}
.block-slider__pagination .swiper-pagination-bullet {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: var(--fw-regular);
  color: var(--primary-grey5);
}
.block-slider__pagination .swiper-pagination-bullet-active {
  --swiper-pagination-color: transparent;

  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

/* Если внутри другого блока */
[class^="block-"] .block-slider, [class^="block-"] .block-slider :is(.block-slider__container, .block-slider__swiper) {
  height: 100%;
}
[class^="block-"] .block-slider .block-slider__swiper {
  /* padding-bottom: 61px; */
}

/*  */
.works-carousel :is(picture, img) {
  object-fit: cover;
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/noscript_order/style.css */
/* LPD-19 (U-02): сообщение о покупке без JavaScript.

   Стиль намеренно спокойный, а не тревожный: посетитель не сделал ничего плохого, ему
   просто объясняют, как купить. Поэтому нейтральная поверхность и hairline вместо
   красной рамки предупреждения.

   Блок виден только внутри <noscript>, то есть при выключенном JS. Проверять его в
   браузере нужно с отключённым JavaScript — иначе разметки не будет в DOM вовсе. */
/* Подложка — --color-surface (белая, штатная поверхность карточек). НЕ
   --color-surface-sunken: у неё в common.css стоит прямая пометка «ТЕКСТ НА НЕЙ
   ЗАПРЕЩЁН» — это фон боксов фото, скелетонов и трека ползунка. Контур берёт на себя
   роль выделения. */
.noscript-order {
  margin-top: 16px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 8px);
  background-color: var(--color-surface);
}

.noscript-order__text {
  margin: 0;
  font-size: var(--fs-15);
  line-height: var(--leading-normal, 1.5);
  color: var(--color-text);
}

.noscript-order__phone {
  margin-top: 12px;
  font-size: var(--fs-20);
  font-weight: var(--fw-semibold);
}

/* Тач-цель: номер здесь — основной способ купить, он не должен быть мельче 44px
   (то же правило, что в A-03). */
.noscript-order__phone .phone-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--color-text);
  text-decoration: none;
}

.noscript-order__phone .phone-link:hover,
.noscript-order__phone .phone-link:focus-visible {
  color: var(--primary-blue);
}

.noscript-order__more {
  margin: 8px 0 0;
  font-size: var(--fs-14);
  color: var(--color-text-secondary);
}

.noscript-order__more a {
  color: var(--primary-blue);
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/product/area_calculator/style.css */
/* LPD-15 (2.7 sub3): калькулятор количества по площади */
.area-calc {
  display: flex;
  flex-direction: column;
  row-gap: 12px;
  padding: 16px 20px;
  border: 1px solid var(--primary-grey-opacity5);
  border-radius: var(--radius-xl);
  background-color: var(--primary-white);
}

.area-calc__title {
  font-family: var(--font-2);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--primary-color);
}

.area-calc__fields {
  display: flex;
  gap: 12px;
}

.area-calc__field {
  display: flex;
  flex-direction: column;
  row-gap: 4px;
  flex: 1 1 0;
  min-width: 0;
}

.area-calc__label {
  font-size: 0.8125rem;
  color: var(--primary-grey2);
}

.area-calc__field input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--primary-grey-opacity5);
  border-radius: var(--radius-lg);
  font-family: inherit;
  font-size: 1rem;
  color: var(--primary-color);
  background-color: var(--primary-white-grey);
}

.area-calc__result {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 12px;
  row-gap: 2px;
  font-size: 0.9375rem;
  color: var(--primary-color);
}

.area-calc__result strong {
  font-weight: var(--fw-bold);
}

.area-calc__sum {
  color: var(--primary-blue);
}

.area-calc__add {
  min-height: 48px;
  justify-content: center;
  background-color: var(--primary-blue);
  color: #fff;
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-lg);
}

.area-calc__add:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.area-calc__hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--primary-grey2);
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/rating/stars/style.css */
.rating-stars {
  display: flex;
  column-gap: 13px;
  align-items: center;
}
.rating-star {
  --icon-size: 16px;
  --icon-fill: transparent;
}
.rating-star .icon svg {
  stroke-width: 1px;
  stroke: var(--rating-star-icon-fill, var(--primary-orange));
}
.rating-star--active .icon {
  --icon-fill: var(--rating-star-icon-fill, var(--primary-orange));
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/rating/sidebar/style.css */
.rating-sidebar {
  display: flex;
  row-gap: 60px;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    row-gap: 16px;
  }
}

.rating-sidebar__headline {
  display: flex;
  column-gap: 18px;
  align-items: start;

  @media screen and (max-width: 768px) {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--primary-grey-opacity6);
  }
}

/* LPD-17 Э7: оценка — первое, что читается в блоке. Была строкой «Рейтинг 5.0»
   в 20px рядом с декоративной картинкой-кавычкой (test/rating-quote.png, 82px);
   картинка снята вместе с разметкой — место отдано самой оценке. */
.rating-sidebar__score {
  font-size: var(--fs-40);
  font-weight: var(--fw-extrabold);
  font-family: var(--font-2);
  line-height: var(--leading-none);
  color: var(--color-text);
  font-variant-numeric: tabular-nums;
}

.rating-sidebar__info {
  display: flex;
  row-gap: 4px;
  flex-direction: column;
}

.rating-sidebar__text {
  font-weight: var(--fw-regular);
  font-size: var(--fs-13);
  font-family: var(--font);
  color: var(--color-text-muted);
}

.rating-sidebar__providers {
  display: flex;
  row-gap: 24px;
  flex-direction: column;

  @media screen and (max-width: 768px) {
    column-gap: 60px;
    flex-direction: row;
  }
}

.rating-sidebar__provider {
  display: flex;
  column-gap: 12px;
  align-items: end;

  @media screen and (max-width: 768px) {
    row-gap: 5px;
    align-items: start;
    flex-direction: column;
  }
}

.rating-sidebar__provider-logo {
  min-width: 100px;
}
.rating-sidebar__provider-logo img {
  width: initial;
}

.rating-sidebar__provider-link {
  transform: translateY(-6px);

  @media screen and (max-width: 768px) {
    transform: none;
  }
}

/* LPD-19 (A-03): ссылка на отзывы провайдера была 22px в высоту. */
.rating-sidebar__provider-link .link {
  @media screen and (max-width: 768px) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

.rating-sidebar__list {
  position: relative;
  display: flex;
  row-gap: 4px;
  flex-direction: column;
}
.rating-sidebar__list::before {
  content: '';
  display: block;
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  height: 1px;
  background-color: var(--primary-grey-opacity6);

  @media screen and (max-width: 768px) {
    display: none;
  }
}
.rating-sidebar__item {
  display: flex;
  column-gap: 8px;
  align-items: center;
}
.rating-sidebar__total {
  min-width: 50px;
  font-weight: var(--fw-regular);
  font-size: 0.688rem;
  font-family: var(--font);
  color: var(--primary-grey5);
}
.rating-sidebar__progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--primary-grey-opacity6);
}
.rating-sidebar__progress-bar {
  width: 0;
  height: 100%;
  background-color: var(--primary-blue);
}
.rating-sidebar__count {
  min-width: 30px;
  font-weight: var(--fw-regular);
  font-size: 0.688rem;
  font-family: var(--font);
  color: var(--primary-grey5);
}
/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/reviews/item/detail/style.css */
/* LPD-17 Э7 (ТЗ §6.4): карточка отзыва — поверхность, звёзды, текст, подвал с
   купленным товаром. Обложка-градиент с одной буквой во всю ширину снята вместе
   с разметкой: буква была первой буквой НАЗВАНИЯ ТОВАРА, то есть заполнителем
   пустоты поверх неверных данных (§2 п. 10). */
.reviews-item-detail {
  /* Карточки одной высоты: ширину задаёт слайд, высоту тянет строка слайдера,
     подвал прижат книзу — «Читать полностью» больше не болтается на трёх уровнях. */
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface);
}

.reviews-item-detail__rating {
  margin-bottom: 12px;
}
.reviews-item-detail__rating .rating-stars {
  display: flex;
  column-gap: 2px;
}
.reviews-item-detail__rating .rating-star .icon {
  --icon-size: 16px;
}

.reviews-item-detail__text {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  font-size: var(--fs-15);
  font-weight: var(--fw-regular);
  font-family: var(--font);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
}

.reviews-item-detail__open {
  margin-top: 8px;
  width: max-content;
}
.reviews-item-detail__open .link {
  --link-font-size: var(--fs-14);

  /* LPD-19 (A-03): «Читать полностью» было 123×19 — тач-цель вдвое ниже нормы.
     Высота настоящая, не псевдоэлемент: ссылка одна в своём контейнере, накладываться
     не на что, а невидимая зона в списке отзывов сбивала бы попадание по соседней
     карточке. Только мобильная ширина — на десктопе указатель точный. */
  @media screen and (max-width: 768px) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* Подвал: миниатюра купленного товара + его название + автор и дата отзыва */
.reviews-item-detail__foot {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  column-gap: 12px;
  align-items: center;
  border-top: 1px solid var(--color-hairline);
}
.reviews-item-detail__product-image {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background-color: var(--color-surface-sunken);
}
.reviews-item-detail__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reviews-item-detail__product {
  min-width: 0;
}
.reviews-item-detail__product-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;

  font-size: var(--fs-14);
  font-weight: var(--fw-semibold);
  line-height: var(--leading-normal);
  color: var(--color-text);
}
.reviews-item-detail__meta {
  margin-top: 2px;
  display: flex;
  column-gap: 8px;
  flex-wrap: wrap;
  font-size: var(--fs-13);
  color: var(--color-text-muted);
}
.reviews-item-detail__date {
  font-variant-numeric: tabular-nums;
}

/* Раскрытие в попапе: карточка показывается целиком, без рамки и клэмпа */
#reviews_item_detail {
  --popup-container-padding: 46px;
}
#reviews_item_detail .reviews-item-detail {
  height: auto;
  border: 0;
  padding: 0;
}
#reviews_item_detail .reviews-item-detail__text {
  display: block;
}
#reviews_item_detail .reviews-item-detail__open {
  display: none;
}

/* https://www.krasnodar.lespromdom.ru/catalog/view/theme/LESPROM/template/_blocks/reviews/carousel/style.css */
.reviews-carousel {
  padding: 60px 0;
  background-color: var(--primary-white-grey);

  @media screen and (max-width: 768px) {
    padding: 30px 0;
  }
}
/* .reviews-carousel::before {
  content: '';
  z-index: -1;
  position: absolute;
  left: 50%;
  top: 0;
  height: 100%;
  width: 2000vw;
  transform: translateX(-50%);
  background-color: var(--primary-white-grey);
} */
.reviews-carousel > .container {
  display: flex;
  row-gap: 24px;
  flex-direction: column;
}

.reviews-carousel__container {
  display: flex;
  column-gap: 24px;
  align-items: stretch;

  @media screen and (max-width: 768px) {
    row-gap: 40px;
    flex-direction: column;
    position: relative;
    padding-bottom: 100px;
  }
}

.reviews-carousel__sidebar {
  display: flex;
  row-gap: 60px;
  flex-direction: column;

  width: var(--reviews-carousel-sidebar-size, var(--column-size));
}
.reviews-carousel__page-all {
  margin-top: auto;

  @media screen and (max-width: 768px) {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
  }
}

.reviews-carousel__slider {
  width: 100%;
  overflow: hidden;
}
