/* Выпадающее меню «Каталог»: пункт с подменю («Бетон») выглядит и подсвечивается так же, как остальные пункты. Подключается в chunks/header.tpl */
body.site-lighttheme .header .header__top-sublist > .openable-submenu > a { position: relative; justify-content: center; color: #444a50; padding: 10px 7px; }
body.site-lighttheme .header .header__top-sublist > .openable-submenu > a::after { position: absolute; right: 10px; top: 50%; margin: -3px 0 0; border-color: #444a50; }
/* наведение: белая полоса и цвет текста, как у соседних пунктов */
body.site-lighttheme .header .header__top-sublist > .openable-submenu > a:hover { background: var(--light-surface) !important; color: var(--light-button-hover) !important; }
body.site-lighttheme .header .header__top-sublist > .openable-submenu > a:hover::after { border-color: var(--light-button-hover); }
/* крайние пункты повторяют скругление рамки списка, чтобы полоса не вылезала за углы */
body.site-lighttheme .header__top-list > li > .header__top-sublist > li:first-child, body.site-lighttheme .header__top-list > li > .header__top-sublist > li:first-child > a { border-radius: 11px 11px 0 0; }
body.site-lighttheme .header__top-list > li > .header__top-sublist > li:last-child, body.site-lighttheme .header__top-list > li > .header__top-sublist > li:last-child > a { border-radius: 0 0 11px 11px; }
/* вложенный список марок */
body.site-lighttheme .header .header__top-sublist > .openable-submenu > .header__top-sublist { padding: 6px 10px; box-shadow: 0 14px 26px -14px rgba(40, 50, 60, .55); }

/* Плавающая карточка корзины у таблицы цен (класс .sticked) на экранах шире 768px: аккуратная раскладка вместо столбика */
@media (min-width: 769px) {
  body .table__info.sticked { width: 250px; max-width: 250px; height: auto; }
  body .table__info.sticked .table__info-quantity { flex-direction: row; justify-content: space-between; align-items: center; gap: 10px; height: auto; padding: 14px 18px; font-size: 14px; text-align: left; }
  body .table__info.sticked .table__info-quantity span:first-child { color: #69727b; }
  body .table__info.sticked .table__info-quantity-result { font-size: 16px; font-weight: 700; }
  body .table__info.sticked .table__info-summ { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; column-gap: 6px; height: auto; padding: 14px 18px 16px; text-align: left; }
  body .table__info.sticked .table__info-summ span:first-child { flex: 0 0 100%; font-size: 14px; color: #69727b; margin-bottom: 2px; }
  body .table__info.sticked .table__info-summ-result { font-size: 24px; font-weight: 700; line-height: 1.1; }
  body .table__info.sticked .table__info-summ span:last-child { font-size: 15px; }
  body .table__info.sticked .table__info-button { height: 52px; }
}

/* карточка товара: рейтинг, цена, контакты */
body .n-product .n-product__content { display: flex; flex-direction: column; align-items: flex-start; flex-wrap: nowrap; gap: 16px; }
body.site-lighttheme .n-product .pkc-pi__rating { display: flex; align-items: center; gap: 7px; font-size: 15px; line-height: 1; }
body.site-lighttheme .n-product .pkc-pi__rating b { font-size: 18px; font-weight: 700; color: #34393e; }
body.site-lighttheme .n-product .pkc-pi__rating span { color: #69727b; }
body .n-product .n-product__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 26px; margin: 0; padding: 0; width: 100%; }
body.site-lighttheme .n-product .n-product__price { margin: 0; font-size: 30px; font-weight: 700; line-height: 1.1; color: #34393e; white-space: nowrap; }
body.site-lighttheme .n-product .n-product__price span { color: inherit; font-size: inherit; }
body .n-product .n-product__control { margin: 0; }
body .n-product .pkc-pi__meta { display: flex; flex-direction: column; gap: 5px; width: 100%; padding-top: 16px; border-top: 1px solid #d9dee2; }
body.site-lighttheme .n-product .pkc-pi__phone { font-size: 20px; font-weight: 700; color: #34393e; text-decoration: none; }
body.site-lighttheme .n-product .pkc-pi__phone:hover { color: #4a7fae; }
body.site-lighttheme .n-product .pkc-pi__note { font-size: 14px; color: #69727b; line-height: 1.4; }
body .n-product .n-product__content > .u-clear { display: none; }
body .n-product .n-product__title { margin-bottom: 4px; }

/* таблицы цен и строка корзины */
body.site-lighttheme .pricetable-wrapper { background: #fff !important; border: 1px solid #e3e7ea; border-radius: 16px !important; box-shadow: 0 14px 34px -22px rgba(40,50,60,.5) !important; overflow: hidden; }
body.site-lighttheme .pricetable-wrapper table.pricetable { width: 100%; border-collapse: collapse; background: #fff; margin: 0; }
body.site-lighttheme .pricetable-wrapper .pricetable th { background: #f3f5f6 !important; color: #7a838b !important; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 15px 22px !important; border: 0 !important; border-bottom: 1px solid #e3e7ea !important; text-align: left; }
body.site-lighttheme .pricetable-wrapper .pricetable tbody tr { background: #fff !important; transition: background .15s; }
body.site-lighttheme .pricetable-wrapper .pricetable tbody tr:hover { background: #f5f9fc !important; }
body.site-lighttheme .pricetable-wrapper .pricetable td { padding: 13px 22px !important; border: 0 !important; border-bottom: 1px solid #eef1f3 !important; background: transparent !important; font-size: 15px; vertical-align: middle; }
body.site-lighttheme .pricetable-wrapper .pricetable tbody tr:last-child td { border-bottom: 0 !important; }
body.site-lighttheme .pricetable-wrapper .pricetable td:first-child, body.site-lighttheme .pricetable-wrapper .pricetable td:first-child span, body.site-lighttheme .pricetable-wrapper .pricetable td:first-child a { font-weight: 600; color: #34393e; text-decoration: none; }
body.site-lighttheme .pricetable-wrapper .pricetable td:first-child a:hover { color: #4a7fae; }
body.site-lighttheme .pricetable-wrapper .pricetable th:last-child, body.site-lighttheme .pricetable-wrapper .pricetable td:last-child { text-align: right; }
body.site-lighttheme .table__volume { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid #d9dee2 !important; border-radius: 999px !important; background: #fff !important; box-shadow: none !important; }
body.site-lighttheme .table__volume button { width: 30px; height: 30px; padding: 0; border: 0 !important; border-radius: 50% !important; background: #f1f4f6 !important; color: #4a7fae !important; font-size: 18px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
body.site-lighttheme .table__volume button:hover { background: #4a7fae !important; color: #fff !important; }
body.site-lighttheme .table__volume .table__volume-input { width: 44px !important; height: 30px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; text-align: center; font-weight: 600; font-size: 15px; color: #34393e; }
@media (min-width: 769px) {
body.site-lighttheme .table__info:not(.sticked) { display: flex; align-items: center; gap: 30px; margin: 0 0 12px; padding: 6px 6px 6px 24px; background: #fff !important; border: 1px solid #e3e7ea; border-radius: 14px !important; box-shadow: none !important; }
body.site-lighttheme .table__info:not(.sticked) > div { background: transparent !important; border: 0 !important; padding: 0 !important; margin: 0 !important; font-size: 15px; }
body.site-lighttheme .table__info:not(.sticked) > div > span:first-child { color: #7a838b; font-weight: 400; }
body.site-lighttheme .table__info:not(.sticked) .table__info-quantity-result, body.site-lighttheme .table__info:not(.sticked) .table__info-summ-result, body.site-lighttheme .table__info:not(.sticked) .table__info-summ-result + span { color: #34393e; font-weight: 700; font-size: 17px; }
body.site-lighttheme .table__info:not(.sticked) .table__info-button { margin-left: auto !important; padding: 14px 26px !important; border-radius: 10px !important; background: linear-gradient(100deg,#74b4e4,#4a7fae) !important; color: #fff !important; font-weight: 700; letter-spacing: .03em; text-decoration: none; transition: filter .2s; }
body.site-lighttheme .table__info:not(.sticked) .table__info-button:hover { filter: brightness(1.08); }
}

/* корзина внутри обёртки таблицы (страницы товаров): без белой подложки между блоками */
body.site-lighttheme .pricetable-container:has(.table__info-wrapper) { box-shadow: none !important; overflow: visible !important; background: transparent !important; }
body.site-lighttheme .pricetable-wrapper:has(.table__info-wrapper) { background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; }
body.site-lighttheme .pricetable-wrapper:has(.table__info-wrapper) table.pricetable { border-collapse: separate; border-spacing: 0; border: 1px solid #e3e7ea; border-radius: 16px; overflow: hidden; box-shadow: 0 14px 34px -22px rgba(40,50,60,.5); }

/* карточка товара: единый шрифт и вид как у таблиц */
body.site-lighttheme .n-product, body.site-lighttheme .n-product *:not(.n-product__title) { font-family: MuseoSans, Arial, sans-serif !important; }
body.site-lighttheme .n-product { background: #fff; border: 1px solid #e3e7ea; border-radius: 16px; box-shadow: 0 14px 34px -22px rgba(40,50,60,.5); padding: 20px; gap: 26px; align-items: stretch; }
body.site-lighttheme .n-product .n-product__banner { margin: 0; display: flex; }
body.site-lighttheme .n-product .n-product__banner img { border-radius: 12px; object-fit: cover; height: 100%; }
body.site-lighttheme .n-product .n-product__content { justify-content: center; padding: 4px 0; }
body.site-lighttheme .n-product .n-product__title { font-size: 32px; line-height: 1.15; margin: 0; }
body.site-lighttheme .n-product .n-product__price { font-size: 28px; font-weight: 700; }
body.site-lighttheme .n-product .n-product__control { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 15px 30px; border-radius: 999px; }
body.site-lighttheme .n-product .pkc-pi__meta { border-top-color: #eef1f3; }
@media (max-width: 768px) { body.site-lighttheme .n-product { padding: 14px; gap: 16px; } body.site-lighttheme .n-product .n-product__title { font-size: 26px; } }

/* карточка товара как пункты меню: белая, без тени */
body.site-lighttheme .n-product { border: 1px solid #d9dee2; border-radius: 12px; box-shadow: none; }

/* страница товара: карточка справа от меню, остальное на всю ширину */
@media (min-width: 1000px) {
body.site-lighttheme .with-aside:has(> .with-aside__content > .about-product) { display: block; }
body.site-lighttheme .with-aside:has(> .with-aside__content > .about-product)::after { content: ""; display: block; clear: both; }
body.site-lighttheme .with-aside:has(> .with-aside__content > .about-product) > .sidemenu { float: left; width: 265px; margin: 0 30px 24px 0; position: static; }
body.site-lighttheme .with-aside > .with-aside__content:has(> .about-product), body.site-lighttheme .with-aside > .with-aside__content > .about-product { display: block; width: auto; max-width: none; overflow: visible; }
body.site-lighttheme .with-aside > .with-aside__content:has(> .about-product) > .breadcrumbs, body.site-lighttheme .with-aside > .with-aside__content > .about-product > .about-product__content { display: flow-root; width: auto !important; min-width: 0; flex: none; }
body.site-lighttheme .with-aside > .with-aside__content > .about-product > .about-product__content ~ * { clear: both; width: auto; max-width: none; }
body.site-lighttheme .with-aside > .with-aside__content > .about-product > .text-block { padding-top: 8px; }
body.site-lighttheme .with-aside > .with-aside__content:has(> .about-product) > .breadcrumbs { display: flex !important; width: auto !important; }
}

/* боковое меню: одна белая карточка */
body.site-lighttheme .sidemenu .sidemenu__block { background: #fff !important; border: 1px solid #d9dee2 !important; border-radius: 12px !important; padding: 8px !important; display: flex; flex-direction: column; gap: 0; box-shadow: none; }
body.site-lighttheme .sidemenu .sidemenu__title { display: block; margin: 0 0 6px; padding: 14px 16px; border: 0 !important; border-radius: 8px !important; background: linear-gradient(100deg,#74b4e4,#4a7fae) !important; color: #fff !important; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; text-align: center; cursor: pointer; box-shadow: none !important; transition: filter .2s; }
body.site-lighttheme .sidemenu .sidemenu__title:hover { filter: brightness(1.08); }
body.site-lighttheme .sidemenu .sidemenu__list { margin: 0; padding: 0; display: block; list-style: none; }
body.site-lighttheme .sidemenu .sidemenu__list-item { margin: 0 !important; padding: 0; border: 0 !important; border-top: 1px solid #eef1f3 !important; border-radius: 0 !important; background: transparent !important; }
body.site-lighttheme .sidemenu .sidemenu__list-item:first-child { border-top: 0 !important; }
body.site-lighttheme .sidemenu .sidemenu__list-item.hidden { display: none; }
body.site-lighttheme .sidemenu .sidemenu__list-item a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px; margin: 0; border: 0 !important; border-radius: 8px !important; background: transparent !important; box-shadow: none !important; color: #34393e !important; font-size: 14px; font-weight: 600; text-transform: none; letter-spacing: 0; text-decoration: none; transition: background .15s, color .15s; }
body.site-lighttheme .sidemenu .sidemenu__list-item a::after { content: ""; flex: none; width: 6px; height: 6px; border-right: 2px solid #b8c0c7; border-top: 2px solid #b8c0c7; transform: rotate(45deg); transition: border-color .15s, transform .15s; }
body.site-lighttheme .sidemenu .sidemenu__list-item a:hover { background: #f1f6fa !important; color: #4a7fae !important; }
body.site-lighttheme .sidemenu .sidemenu__list-item a:hover::after { border-color: #4a7fae; transform: translateX(2px) rotate(45deg); }

/* заголовок формы заявки — обычная толщина */
.callback-form__title { font-weight: 400 !important; }

/* меньше отступ между вводным текстом и заголовком прайса */
.text-block:has(+ section.pricelist) { margin-bottom: 24px !important; }

/* прайс: высота по текущей вкладке, без пустоты под короткими таблицами */
.pricelists-container { min-height: 0 !important; }
/* заголовки преимуществ были белыми — делаем чёрными */
.advantages__card-title { color: #222 !important; }

/* заголовок FAQ был белым */
.faq > .header1 { color: #444a50 !important; }

/* логотипы партнёров и клиентов одного размера */
.partners__item img, .clients__item img { width: 322px !important; max-width: 100% !important; height: auto !important; }
/* «Схема работы»: заголовок не наезжает на иконки */
@media (min-width: 1000px) { .working-scheme__container { margin-top: 310px !important; } }
/* страница «Наши заводы»: тёмный заголовок, карточка завода скрыта, сразу карта */
#sectionFactories .n-section__title { color: #222 !important; }
#sectionFactories .n-cards { display: none !important; }
#sectionFactories { padding-bottom: 20px !important; }

/* ===== таблица товаров (раствор и др.): белая карточка в общем стиле ===== */
.razvod-table { background:#fff !important; border:1px solid #d9dee2 !important; border-radius:12px !important; overflow:hidden !important; box-shadow:none !important; }
.razvod-table table { width:100% !important; border-collapse:collapse !important; background:transparent !important; }
.razvod-table thead tr, .razvod-table thead th { background:#f5f7f9 !important; }
.razvod-table thead th { font-family:MuseoSans,Arial,sans-serif !important; font-size:12px !important; font-weight:700 !important; letter-spacing:.06em !important; text-transform:uppercase !important; color:#7b8590 !important; padding:14px 20px !important; text-align:left !important; border:0 !important; border-bottom:1px solid #e6eaed !important; }
.razvod-table .razvod-table__row { background:#fff !important; box-shadow:none !important; transform:none !important; border:0 !important; border-bottom:1px solid #eef1f3 !important; transition:background .15s !important; }
.razvod-table .razvod-table__row:last-child { border-bottom:0 !important; }
.razvod-table .razvod-table__row:hover { background:#f6f9fb !important; box-shadow:none !important; }
.razvod-table .razvod-table__row td { padding:14px 20px !important; vertical-align:middle !important; border:0 !important; background:transparent !important; font-family:MuseoSans,Arial,sans-serif !important; }
.razvod-table .razvod-table__row td:first-child { width:150px !important; }
.razvod-table .razvod-table__row td:first-child > div { display:block !important; }
.razvod-table .razvod-table__row img { width:120px !important; height:72px !important; object-fit:cover !important; border-radius:8px !important; display:block !important; }
.razvod-table .razvod-table__in-stock { display:inline-flex !important; align-items:center !important; gap:6px !important; margin:0 0 8px !important; padding:3px 10px !important; border-radius:999px !important; background:#e9f6ec !important; color:#2e8b45 !important; font-size:12px !important; font-weight:500 !important; line-height:1.4 !important; }
.razvod-table .razvod-table__in-stock::before { position:static !important; transform:none !important; width:6px !important; height:6px !important; border-radius:50% !important; background:#34a853 !important; margin:0 !important; }
.razvod-table .razvod-table__row td a { font-size:17px !important; font-weight:700 !important; color:#2b3035 !important; text-decoration:none !important; border:0 !important; }
.razvod-table .razvod-table__row td a:hover { color:#4a7fae !important; }
.razvod-table .razvod-table__row td:nth-child(3) { font-size:16px !important; font-weight:700 !important; color:#2b3035 !important; white-space:nowrap !important; }
.razvod-table .razvod-table__row td:last-child { text-align:right !important; width:190px !important; }
.razvod-table .razvod-table__row button { background:linear-gradient(135deg,#6aa9dc 0%,#3f78b5 100%) !important; color:#fff !important; border:0 !important; border-radius:999px !important; box-shadow:0 4px 12px rgba(63,120,181,.25) !important; padding:12px 30px !important; min-width:0 !important; width:auto !important; height:auto !important; font-family:MuseoSans,Arial,sans-serif !important; font-size:13px !important; font-weight:700 !important; letter-spacing:.04em !important; text-transform:uppercase !important; cursor:pointer !important; transition:transform .15s, box-shadow .15s !important; }
.razvod-table .razvod-table__row button:hover { transform:translateY(-1px) !important; box-shadow:0 6px 16px rgba(63,120,181,.35) !important; }
@media (max-width: 767px) {
  .razvod-table thead { display:none !important; }
  .razvod-table .razvod-table__row td { padding:10px 12px !important; }
  .razvod-table .razvod-table__row img { width:84px !important; height:56px !important; }
  .razvod-table .razvod-table__row button { padding:10px 16px !important; }
}

.razvod-table .razvod-table__in-stock { white-space:nowrap !important; }
/* ===== «Вы недавно смотрели» / похожие товары ===== */
.similar-products__title { color:#444a50 !important; }
.similar-products__slider-card { background:#fff !important; border:1px solid #d9dee2 !important; border-radius:12px !important; box-shadow:none !important; padding:12px 12px 18px !important; box-sizing:border-box !important; text-decoration:none !important; transition:border-color .15s, box-shadow .15s !important; }
.similar-products__slider-card:hover { border-color:#b9c7d3 !important; box-shadow:0 6px 18px rgba(40,60,80,.08) !important; }
.similar-products__slider-card-img { border:0 !important; border-radius:8px !important; overflow:hidden !important; background:#eef1f3 !important; width:100% !important; height:auto !important; aspect-ratio:4/3 !important; }
.similar-products__slider-card-img img { width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; }
.similar-products__slider-card-link { margin-top:14px !important; text-align:center !important; }
.similar-products__slider-card-title { font-family:MuseoSans,Arial,sans-serif !important; font-size:16px !important; font-weight:700 !important; color:#2b3035 !important; text-decoration:none !important; border:0 !important; line-height:1.3 !important; height:auto !important; }
.similar-products__slider-card-title::after, .similar-products__slider-card-title::before { display:none !important; }
.similar-products__slider-card:hover .similar-products__slider-card-title { color:#4a7fae !important; }
.similar-products__slider-card-price { margin:6px auto 0 !important; font-family:MuseoSans,Arial,sans-serif !important; font-size:15px !important; font-weight:500 !important; color:#4a7fae !important; }

/* ===== блок «Регионы / Районы / Метро»: белая карточка, вкладки-таблетки, ровная сетка ссылок ===== */
.regions__block { background:#fff !important; border:1px solid #d9dee2 !important; border-radius:12px !important; padding:24px 28px 28px !important; box-sizing:border-box !important; }
.regions__content { display:block !important; width:100% !important; }
.regions__controls { margin:0 0 22px !important; }
.regions__controls-radio { display:inline-flex !important; gap:4px !important; padding:4px !important; background:#f1f4f6 !important; border-radius:999px !important; flex-wrap:wrap !important; }
.regions__controls-radio input { position:absolute !important; opacity:0 !important; pointer-events:none !important; }
.regions__controls-radio label { margin:0 !important; padding:10px 22px !important; border:0 !important; border-radius:999px !important; background:transparent !important; box-shadow:none !important; font-family:MuseoSans,Arial,sans-serif !important; font-size:15px !important; font-weight:500 !important; color:#444a50 !important; cursor:pointer !important; transition:background .15s, color .15s !important; height:auto !important; line-height:1.2 !important; }
.regions__controls-radio label::before, .regions__controls-radio label::after { display:none !important; }
.regions__controls-radio label:hover { color:#4a7fae !important; }
.regions__controls-radio input:checked + label { background:linear-gradient(135deg,#6aa9dc 0%,#3f78b5 100%) !important; color:#fff !important; box-shadow:0 3px 10px rgba(63,120,181,.25) !important; }
.regions__list.visible { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; column-gap:28px !important; row-gap:2px !important; width:100% !important; }
.regions__list.visible .regions__list-column { display:contents !important; }
.regions__list a { display:flex !important; align-items:center !important; gap:8px !important; padding:7px 10px !important; margin:0 !important; border:0 !important; border-radius:8px !important; text-decoration:none !important; font-family:MuseoSans,Arial,sans-serif !important; font-size:14px !important; line-height:1.3 !important; color:#444a50 !important; transition:background .15s, color .15s !important; }
.regions__list a::before { content:"" !important; flex:0 0 6px !important; width:6px !important; height:6px !important; border-radius:50% !important; background:#9fc3e3 !important; position:static !important; transform:none !important; }
.regions__list a::after { display:none !important; }
.regions__list a:hover { background:#f1f6fa !important; color:#4a7fae !important; }
.regions__list a:hover::before { background:#4a7fae !important; }
@media (max-width: 1023px) { .regions__list.visible { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width: 600px) { .regions__block { padding:16px !important; } .regions__list.visible { grid-template-columns:1fr !important; } }

html body .regions .regions__block, html body.site-lighttheme .regions .regions__block { background:#fff !important; max-width:none !important; width:100% !important; align-self:stretch !important; }

html body .regions .regions__block, html body.site-lighttheme .regions .regions__block { border:1px solid #d9dee2 !important; border-radius:12px !important; }
html body .regions .regions__content, html body.site-lighttheme .regions .regions__content { border:0 !important; padding:0 !important; background:transparent !important; }

/* Пустые блоки на региональных страницах (нет карточек) — скрываем */
section.razvod-cards:not(:has(.razvod-cards__cards > *)) { display: none !important; }
section.our-services:not(:has(.our-services__cards > *)) { display: none !important; }

/* «Популярные товары» без товаров (только ссылка на политику) — скрываем */
section.popular:not(:has(.popular__link ~ .popular__link)) { display: none !important; }
