/* ==========================================================================
   perf.css — правки скорости и вёрстки (окт. 2026)
   Заменяет animate.css (72 КБ → только используемые анимации) и Font Awesome с CDN.
   ========================================================================== */

/* --- Главный слайдер: первый слайд виден сразу, до загрузки JS ----------- */
/* Раньше все слайды были display:none до инициализации flexslider → слайдер
   появлялся через 2–4 с и сдвигал страницу вниз (CLS 0.36–0.77). */
/* Обёртка .flex-viewport выводится сразу в HTML (см. main.php), flexslider её переиспользует. */
#mainslider .flex-viewport { container-type: inline-size; }
#mainslider .slides img { width: 100%; height: auto; }
/* до запуска скрипта (у списка ещё нет style) виден только первый слайд */
#mainslider .slides:not([style]) > li:first-child { display: block; }
/* до запуска резервируем место под точки-переключатели (точки 20 px + отступы 2×22 px + 10 px, которые лента добирает после запуска);
   после запуска у списка появляется style и резерв снимается в тот же кадр, когда добавляются точки */
#mainslider .slides:not([style]) { margin-bottom: 74px; }
/* flexslider при запуске ~100 мс держит ленту шириной 1600% с ещё не выстроенными слайдами —
   первая картинка раздувалась в 16 раз и сталкивала страницу вниз. Задаём слайдам итоговую ширину заранее. */
#mainslider .slides[style] > li:not([style]) { display: block; float: left; width: 100cqw; }

/* --- SVG-иконки (вместо <i class="fa ...">) --------------------------------- */
.ico { display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
.contact-button .ico { color: #fff; font-size: 24px; }
@media (max-width: 480px) { .contact-button .ico { font-size: 20px; } }
.contact-button:hover .ico { animation: shake 0.4s ease; }
.messenger-btn .ico { margin-right: 10px; font-size: 20px; }


/* --- Анимации из animate.css, которые реально используются (shake, flipInX, flipOutX) */
.animated { -webkit-animation-duration: 1s; animation-duration: 1s; -webkit-animation-fill-mode: both; animation-fill-mode: both; }
.animated.flipOutX {
  -webkit-animation-duration: .75s;
  animation-duration: .75s;
}
@-webkit-keyframes shake {
  from, to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  10%, 30%, 50%, 70%, 90% {
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
  }

  20%, 40%, 60%, 80% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }
}
@keyframes shake {
  from, to {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
  }

  10%, 30%, 50%, 70%, 90% {
    -webkit-transform: translate3d(-10px, 0, 0);
    transform: translate3d(-10px, 0, 0);
  }

  20%, 40%, 60%, 80% {
    -webkit-transform: translate3d(10px, 0, 0);
    transform: translate3d(10px, 0, 0);
  }
}
.shake {
  -webkit-animation-name: shake;
  animation-name: shake;
}
  -webkit-backface-visibility: visible;
  backface-visibility: visible;
  -webkit-animation-name: flip;
  animation-name: flip;
}
@-webkit-keyframes flipInX {
  from {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}
@keyframes flipInX {
  from {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
    opacity: 0;
  }

  40% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    -webkit-animation-timing-function: ease-in;
    animation-timing-function: ease-in;
  }

  60% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }

  80% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }

  to {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }
}
.flipInX {
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
  -webkit-animation-name: flipInX;
  animation-name: flipInX;
}
@-webkit-keyframes flipOutX {
  from {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }

  30% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }

  to {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
@keyframes flipOutX {
  from {
    -webkit-transform: perspective(400px);
    transform: perspective(400px);
  }

  30% {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }

  to {
    -webkit-transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
.flipOutX {
  -webkit-animation-name: flipOutX;
  animation-name: flipOutX;
  -webkit-backface-visibility: visible !important;
  backface-visibility: visible !important;
}


/* --- Превью товаров: у <img> теперь есть width/height (резерв места, без сдвигов) */
ul.showcase > li img, ul.products > li img { height: auto; }
ul.card .slider-wrapper img { height: auto; }

/* --- Cookie-баннер: компактная плашка вместо полосы на пол-экрана ------------
   (у кнопки «Только необходимые» был белый текст на белом фоне — «пустое окно») */
.cookie-notice {
	left: 12px; right: 12px; bottom: 12px;
	max-width: 640px; margin: 0 auto;
	padding: 12px 14px;
	display: flex; flex-wrap: nowrap; align-items: center; gap: 12px;
	background: #fff; color: #333; text-align: left;
	border: 1px solid #e3e6ea; border-radius: 10px;
	box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
	font-family: Arial, Helvetica, sans-serif;
}
.cookie-notice p { flex: 1 1 auto; margin: 0; font-size: 13px; line-height: 1.4; }
.cookie-notice a { color: #1e6dab; text-decoration: underline; }
.cookie-notice .cookie-notice-actions { flex: 0 0 auto; display: flex; gap: 8px; margin: 0; }
.cookie-notice .cookie-notice-actions button {
	margin: 0; padding: 8px 14px; min-height: 36px;
	font-size: 13px; line-height: 1.2; white-space: nowrap; border-radius: 6px;
}
.cookie-notice #accept-cookies { background: #1e6dab; color: #fff; border: 1px solid #1e6dab; }
.cookie-notice #accept-cookies:hover { background: #17588b; }
.cookie-notice #reject-cookies { background: #fff; color: #333; border: 1px solid #c9ced4; }
.cookie-notice #reject-cookies:hover { background: #f3f5f7; }
@media (max-width: 560px) {
	.cookie-notice { left: 8px; right: 8px; bottom: 8px; flex-wrap: wrap; gap: 10px; padding: 12px; }
	.cookie-notice .cookie-notice-actions { width: 100%; }
	.cookie-notice .cookie-notice-actions button { flex: 1 1 0; }
}

/* --- Значки «Хит / Новинка / −%» на карточках: аккуратный векторный кружок вместо растровой звезды 56 px */
ul.products > li .frame .special,
ul.showcase > li .frame .special {
	width: 34px; height: 34px; top: 8px; right: 8px;
	display: flex; align-items: center; justify-content: center;
	background: #e2364a; border-radius: 50%;
	box-shadow: 0 2px 6px rgba(226, 54, 74, .35);
	font: bold 11px/1 Arial, Helvetica, sans-serif; color: #fff; letter-spacing: -.3px;
}
ul.products > li .frame .special .special-ico,
ul.showcase > li .frame .special .special-ico { display: flex; font-size: 16px; }
ul.products > li .frame .special .ico,
ul.showcase > li .frame .special .ico { vertical-align: 0; }
@media only screen and (max-width: 767px) {
	ul.showcase > li .frame .special { width: 30px; height: 30px; background: #e2364a; font-size: 10px; line-height: 1; }
	ul.showcase > li .frame .special .special-ico { font-size: 14px; }
}

/* --- Размеры в карточке раздела: сетка 2 колонки, видны первые 5, остальные — по «+ ещё N» */
ul.products > li .sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 10px 8px 0; }
ul.products > li .sizes a,
ul.products > li .sizes .sizes-more {
	display: flex; align-items: center; justify-content: center; min-height: 32px; margin: 0; padding: 4px 6px;
	font: 13px/1.2 'Open Sans', Arial, sans-serif; color: #555; text-decoration: none; white-space: nowrap;
	background: #fff; border: 1px solid #cfd4da; border-radius: 6px; cursor: pointer;
}
ul.products > li .sizes a:hover,
ul.products > li .sizes .sizes-more:hover { border-color: #2976b3; color: #2976b3; }
ul.products > li .sizes a.active { color: #fff; background: #2976b3; border-color: #2976b3; }
ul.products > li .sizes.is-collapsed a.size-extra { display: none; }

ul.header > li.logo img, ul.footer > li.logo img { height: auto; }

/* --- Поддомен города: строка про доставку над шапкой (как было) */
.geo-strip { background: #eaf3fb; border-bottom: 1px solid #d3e4f2; color: #1e5484; font: 14px/1.4 Arial, Helvetica, sans-serif; text-align: center; padding: 8px 15px; }
.geo-strip a { color: #1e5484; }

/* --- Подвал: «Доставка», «Оптовым покупателям», «Ваш город» — в правой колонке, как остальные ссылки */
ul.footer .footer-extra { margin-top: 8px; }
/* плашка подвала: тот же серый, минимум прежние 242 px, но растёт, если ссылки переносятся (узкий экран / масштаб) */
footer .wrapper { height: auto; min-height: 242px; background: #f9f9f9; padding-bottom: 16px; }
footer .wrapper::after { content: ''; display: block; clear: both; }
ul.footer .footer-city-link { display: inline; padding: 0; gap: 0; font: inherit; color: #2976b3; text-decoration: underline; }
ul.footer .footer-city-link:hover { text-decoration: none; }

/* --- Окно выбора города -------------------------------------------------- */
.city-modal { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: flex-start; justify-content: center;
	padding: 6vh 12px 12px; background: rgba(20, 32, 48, .55); overflow-y: auto; }
.city-modal[hidden] { display: none; }
.city-modal-box { position: relative; width: 100%; max-width: 620px; background: #fff; border-radius: 12px; padding: 22px 22px 18px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, .25); font: 15px/1.4 Arial, Helvetica, sans-serif; color: #333; }
.city-modal-title { font: 22px/1.2 'caviar_dreams', Arial, sans-serif; color: #222; margin: 0 32px 8px 0; }
.city-modal-note { margin: 0 0 12px; font-size: 13px; color: #555; }
.city-modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none;
	font-size: 28px; line-height: 1; color: #666; cursor: pointer; border-radius: 50%; }
.city-modal-close:hover { background: #f0f3f6; color: #222; }
.city-search { display: block; width: 100%; height: 40px; padding: 0 12px; margin: 0 0 12px; border: 1px solid #c4cad1; border-radius: 8px; font-size: 15px; }
.city-search:focus { border-color: #2976b3; outline: none; box-shadow: 0 0 0 3px rgba(41, 118, 179, .15); }
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 12px; }
.city-list li { margin: 0; }
.city-list a { display: block; padding: 7px 8px; border-radius: 6px; color: #1e6dab; text-decoration: none; }
.city-list a:hover, .city-list a:focus-visible { background: #eaf3fb; }
.city-list a.current { background: #2976b3; color: #fff; font-weight: 700; }
.city-list li[hidden] { display: none; }
.city-empty { margin: 8px 0 0; font-size: 13px; color: #555; }
@media (max-width: 560px) { .city-list { grid-template-columns: 1fr 1fr; } .city-modal { padding-top: 12px; } }
body.city-modal-open { overflow: hidden; }

/* --- Мобильное меню (шторка): шире, плотный фон, разделы каталога и контакты */
.pushy { width: 290px; max-width: 86vw; background: #fff; box-shadow: -6px 0 24px rgba(0, 0, 0, .18); text-align: left; padding: 8px 0 24px;
	font-family: Arial, Helvetica, sans-serif; }
.pushy.pushy-right { text-align: left; }
.pushy-right { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); }
.pushy-open-right .pushy { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
.pushy-close { position: absolute; top: 6px; right: 8px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; color: #555; cursor: pointer; border-radius: 50%; }
.pushy-close:hover { background: #f0f3f6; }
.pushy ul.pushy-main { margin-top: 44px; }
.pushy .pushy-main a, .pushy .pushy-cats a { padding: 11px 20px; font-size: 15px; color: #222; text-transform: none; border-bottom: 1px solid #eef1f4; }
.pushy .pushy-main a.active, .pushy .pushy-main a:hover, .pushy .pushy-cats a:hover { color: #1e6dab; text-decoration: none; background: #f5f9fc; }
.pushy .pushy-main .home { display: inline; }
.pushy-title { padding: 18px 20px 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #777; }
.pushy-contacts { padding: 18px 20px 0; display: flex; flex-direction: column; gap: 10px; }
.pushy .pushy-contacts a { padding: 0; text-transform: none; }
.pushy .pushy-phone { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: #1e6dab; }
.pushy .pushy-phone .ico { font-size: 15px; }
.pushy-mess { display: flex; gap: 10px; }
.pushy .pushy-mess a { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; }
.pushy .pushy-mess .tg { background: #2aa3df; }
.pushy .pushy-mess .wa { background: #25d366; }
.pushy .pushy-mess .vk { background: #0077ff; }
.pushy .pushy-mail { font-size: 14px; color: #555; }
.pushy .pushy-main li, .pushy .pushy-main a { float: none; width: auto; height: auto; line-height: 1.3; margin: 0; }
.pushy .pushy-main a.home, .pushy .pushy-main a.active { background: #f5f9fc; color: #1e6dab; }
.pushy .pushy-main span.home { background: none; padding: 0; width: auto; height: auto; text-indent: 0; display: inline; }

/* --- Карточка товара: крупнее зона нажатия у «−/+» и строки размеров на телефоне */
ul.variants > li > ul.count .dec, ul.variants > li > ul.count .inc { position: relative; }
ul.variants > li > ul.count .dec::after, ul.variants > li > ul.count .inc::after { content: ''; position: absolute; inset: -8px; }
@media (max-width: 767px) {
	ul.variants > li > ul.count, ul.variants > li > ul.variant { height: 38px; }
	ul.variants > li > ul.count input { width: 32px; height: 30px; line-height: 30px; font-size: 15px; }
}

/* --- Окно «Товар в корзине» */
.cart-added-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 14px; }
.cart-added-actions a { display: inline-block; padding: 10px 18px; border-radius: 6px; font: 15px/1.2 Arial, Helvetica, sans-serif; text-decoration: none; }
.cart-added-go { background: #1e6dab; color: #fff !important; }
.cart-added-go:hover { background: #17588b; }
.cart-added-stay { border: 1px solid #c4cad1; color: #333 !important; }

/* --- Закреплённая панель «цена + в корзину» на телефоне (карточка товара) */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; align-items: center; gap: 12px;
	padding: 10px max(14px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(14px, env(safe-area-inset-left, 0px));
	background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .12); font-family: Arial, Helvetica, sans-serif; }
.buybar[hidden] { display: none; }
.buybar-price { flex: 1 1 auto; font-size: 20px; font-weight: 700; color: #222; white-space: nowrap; }
.buybar-btn { flex: 0 0 auto; padding: 12px 22px; border-radius: 8px; background: #1e6dab; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; }
body.has-buybar .contact-button { bottom: 84px; }
body.has-buybar footer { padding-bottom: 70px; }

/* --- Минимальная сумма заказа: предупреждаем заранее */
.cart-hint { margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: #fff6e5; border: 1px solid #f0d9a8; color: #6b4a0b; font: 14px/1.4 Arial, Helvetica, sans-serif; }
.cart-hint:empty { display: none; }
.card-min-order { margin: 10px 0 0; font: 13px/1.4 Arial, Helvetica, sans-serif; color: #666; text-align: center; }
.card-min-order a { color: #1e6dab; }

/* --- Блок «Для бизнеса» (ссылки на оптовые лендинги) */
.b2b-links { clear: both; margin: 24px 15px 8px; padding: 16px 18px; border: 1px solid #d3e4f2; border-radius: 10px; background: #f5f9fc; font-family: Arial, Helvetica, sans-serif; }
.b2b-links-title { font-size: 16px; font-weight: 700; color: #1e5484; margin-bottom: 10px; }
.b2b-links ul { display: flex; flex-wrap: wrap; gap: 8px; }
.b2b-links li { margin: 0; }
.b2b-links a { display: inline-block; padding: 7px 12px; border-radius: 999px; background: #fff; border: 1px solid #bcd5ea; color: #1e6dab; font-size: 14px; text-decoration: none; }
.b2b-links a:hover { background: #1e6dab; border-color: #1e6dab; color: #fff; }

/* --- Главная: преимущества для оптовиков под слайдером */
.b2b-strip-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 6px 0 4px; padding: 14px 16px; border-radius: 10px;
	background: #f5f9fc; border: 1px solid #d3e4f2; font-family: Arial, Helvetica, sans-serif; }
.b2b-usp { flex: 1 1 520px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 18px; }
.b2b-usp li { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.b2b-usp b { font-size: 15px; color: #1e5484; }
.b2b-usp span { font-size: 13px; color: #555; }
.b2b-usp-cta { flex: 0 0 auto; padding: 12px 20px; border-radius: 8px; background: #1e6dab; color: #fff; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.b2b-usp-cta:hover { background: #17588b; }
@media (max-width: 900px) { .b2b-usp { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .b2b-strip-in { margin: 6px 5px; } .b2b-usp-cta { width: 100%; text-align: center; } }

/* --- «Быстрый просмотр» отключён в site.js (клик ведёт на страницу товара) — не показываем надпись */
ul.showcase > li .frame a.pp:hover .helper, ul.products > li .frame a.pp:hover .helper { display: none; }

/* --- Галочка согласия в формах (была только в index.php — на лендингах не было стиля) */
.pdn-agree-label { display: block; margin: 12px 0; font-size: 13px; line-height: 1.35; text-align: left; }
.pdn-agree-label input { margin-right: 6px; vertical-align: middle; }
.pdn-agree-label input.error { outline: 2px solid #e2364a; outline-offset: 1px; }

.cookie-notice .cookie-notice-actions button { flex: 0 0 auto; }
@media (max-width: 560px) { .cookie-notice .cookie-notice-actions button { flex: 1 1 auto; } }
.city-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 4px; margin: 0; border: 0; background: none;
	font: inherit; color: #1e6dab; cursor: pointer; white-space: nowrap; }
.city-btn b { font-weight: 700; border-bottom: 1px dashed currentColor; }
.city-btn:hover b, .city-btn:focus-visible b { border-bottom-style: solid; }

/* --- Левая колонка каталога (разделы + фильтр): прилипает при прокрутке, но не выше окна —
       длинный фильтр прокручивается внутри колонки, а не прячется за нижний край экрана */
@media (min-width: 1024px) {
	/* position/top с !important: старый скрипт у подвала переводил колонку в absolute и она наезжала на текст;
	   обычный sticky сам останавливается в пределах колонки */
	.tree-n-filters-wrapper { position: sticky !important; top: 60px !important; max-height: calc(100vh - 80px); overflow-y: auto; overscroll-behavior: contain;
		scrollbar-width: thin; scrollbar-color: #bcd5ea transparent; padding-right: 4px; }
	.tree-n-filters-wrapper::-webkit-scrollbar { width: 6px; }
	.tree-n-filters-wrapper::-webkit-scrollbar-thumb { background: #bcd5ea; border-radius: 3px; }
}

/* --- Фильтр цены: «[ от ] – [ до ] ₽» в одну аккуратную строку */
.filters .prop-group .range { display: flex; align-items: center; gap: 6px; }
.filters .prop-group .range input { flex: 1 1 0; min-width: 0; width: auto; height: 32px; line-height: 30px; padding: 0 6px; text-align: center;
	border: 1px solid #c4cad1; border-radius: 6px; font-size: 14px; color: #333; background: #fff; }
.filters .prop-group .range input:focus { border-color: #2976b3; outline: none; }
.filters .prop-group .range-sep { color: #888; }
.filters .prop-group .range-unit { color: #555; font-size: 14px; }

/* --- Каталог на телефоне: две карточки в ряд (было по одной) */
@media only screen and (max-width: 537px) {
	ul.products { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 5px; }
	ul.products > li .frame { padding: 8px 6px 10px; }
	ul.products > li span.name { font-size: 14px; line-height: 1.25; height: auto; min-height: 36px; margin-top: 4px; }
	ul.products > li span.price { font-size: 15px; }
	ul.products > li span.price .oldprice { font-size: 12px; }
	ul.products > li .sizes { gap: 4px; padding: 8px 0 0; }
	ul.products > li .sizes a, ul.products > li .sizes .sizes-more { min-height: 28px; padding: 3px 2px; font-size: 12px; }
	ul.products > li .actions { display: flex; justify-content: center; gap: 6px; height: auto; margin-top: 10px; }
	ul.products > li .actions a { display: block; }
	ul.products > li .actions a.more { display: none; }
	ul.products > li .actions a.cad1c > span, ul.products > li .actions a.qcad > span { margin-left: 0; }
	ul.products > li .frame .special { width: 28px; height: 28px; top: 6px; right: 6px; }
	ul.products > li .frame .special .special-ico { font-size: 13px; }
	ul.products > li .item_dots { margin-top: 2px; }
}

/* --- Корзина: миниатюры товаров */
ul.s3-cart > li.cart-item { text-align: left; }
ul.s3-cart > li.cart-item .cart-thumb { display: inline-block; vertical-align: middle; margin-right: 12px; }
ul.s3-cart > li.cart-item .cart-item-name { display: inline-block; vertical-align: middle; max-width: calc(100% - 82px); }
ul.s3-cart .cart-thumb { flex: 0 0 auto; display: block; width: 64px; height: 64px; border: 1px solid #e3e6ea; border-radius: 6px; overflow: hidden; background: #fff; }
ul.s3-cart .cart-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
ul.s3-cart .cart-item-name { min-width: 0; }
@media (max-width: 767px) {
	ul.s3-cart > li.cart-item { display: flex; align-items: center; gap: 12px; }
	ul.s3-cart > li.cart-item .cart-thumb { margin-right: 0; width: 56px; height: 56px; }
	ul.s3-cart > li.cart-item .cart-item-name { max-width: none; }
}

/* --- Телефон/планшет: шапка охватывает «плавающие» элементы (иначе блок фильтра уезжал под неё),
       а колонка с фильтром не прилипает при прокрутке (на узком экране она стоит над товарами) */
@media (max-width: 1023px) {
	ul.header::after { content: ''; display: block; clear: both; }
	.tree-n-filters-wrapper { position: static !important; top: auto !important; max-height: none; overflow: visible; }
	.tree-n-filters::after { display: none; }
}
/* карточки в ряду: фото, название, цена и размеры — сверху; кнопки — прижаты к низу (ряды совпадают) */
ul.products > li .frame { justify-content: flex-start; }
ul.products > li .frame .actions { margin-top: auto; padding-top: 10px; }
ul.products > li .frame > a.pp, ul.products > li .frame > .price, ul.products > li .frame > .sizes { flex: 0 0 auto; }
/* невидимая «распорка» колонки (старый хак под прилипание) вылезала на ~230 px ниже подвала — пустота под ним */
.tree-n-filters::after { display: none !important; }

/* --- Кнопки карточки («Подробнее», «Купить в 1 клик», «В корзину») — в стиле кнопок размеров:
       «Подробнее» шириной в колонку размера, две иконки — во вторую колонку */
ul.products > li .actions,
ul.showcase > li .actions { display: grid; grid-template-columns: calc(50% - 3px) 1fr 1fr; column-gap: 6px; height: auto; margin-top: 15px; padding: 0 8px; }
ul.products > li .frame .actions { margin-top: auto; padding-top: 10px; }
ul.products > li .actions a,
ul.showcase > li .actions a {
	display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 32px; height: auto; margin: 0; padding: 0;
	font: 13px/1.2 'Open Sans', Arial, sans-serif; color: #555; text-decoration: none; white-space: nowrap;
	background: #fff; border: 1px solid #cfd4da; border-radius: 6px; box-sizing: border-box;
}
ul.products > li .actions a.more,
ul.showcase > li .actions a.more { width: auto; height: auto; font: 13px/1.2 'Open Sans', Arial, sans-serif; }
ul.products > li .actions a.cad1c > span,
ul.products > li .actions a.qcad > span,
ul.showcase > li .actions a.cad1c > span,
ul.showcase > li .actions a.cad > span { width: 28px; height: 28px; margin: 0; border: 0; border-radius: 0; background-color: transparent; background-size: 28px 112px; background-position: 0 0; }
ul.products > li .actions a.cad1c > span,
ul.showcase > li .actions a.cad1c > span { background-position: 0 -56px; }
ul.products > li .actions a:hover,
ul.showcase > li .actions a:hover { color: #fff; background-color: #2976b3; border-color: #2976b3; }
ul.products > li .actions a.qcad:hover > span,
ul.showcase > li .actions a.cad:hover > span { background-color: transparent; background-position: 0 -28px; }
ul.products > li .actions a.cad1c:hover > span,
ul.showcase > li .actions a.cad1c:hover > span { background-color: transparent; background-position: 0 -84px; }
@media only screen and (max-width: 537px) {
	/* на телефоне «Подробнее» скрыта (вся карточка — ссылка), две иконки встают ровно под колонки размеров */
	ul.products > li .actions { grid-template-columns: 1fr 1fr; column-gap: 4px; padding: 10px 0 0; }
	ul.products > li .actions a { min-height: 28px; }
	ul.products > li .actions a.cad1c > span, ul.products > li .actions a.qcad > span { width: 24px; height: 24px; background-size: 24px 96px; }
	ul.products > li .actions a.cad1c > span { background-position: 0 -48px; }
	ul.products > li .actions a.qcad:hover > span { background-position: 0 -24px; }
	ul.products > li .actions a.cad1c:hover > span { background-position: 0 -72px; }
}

/* --- Окно «Заказ в 1 клик»: какой товар заказывают (фото + название) */
#info-form .oc-goods { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; text-align: left; }
#info-form .oc-goods img { flex: 0 0 auto; width: 96px; height: auto; border: 1px solid #e3e6ea; border-radius: 6px; background: #fff; }
#info-form .oc-goods .oc-goods-name { font: 600 15px/1.3 'Open Sans', Arial, sans-serif; color: #333; text-decoration: none; }
#info-form .oc-goods .oc-goods-name:hover { color: #2976b3; }

/* --- Корень каталога на телефоне/планшете: список разделов повторял кнопки разделов над фильтром — скрыт */
@media only screen and (max-width: 1023px) {
	ul.presets.presets-dup { display: none; }
}

/* --- Карточка товара, телефон (≤479 px): строки размеров как таблица —
       слева «[✓] 140х205» и цена под ним, справа кнопка «Заказать», в соседней колонке «− 1 +»;
       высота строк одинаковая (58 px), между строками тонкая линия */
@media only screen and (max-width: 479px) {
	ul.variants { max-width: none; margin-top: 4px; }
	ul.variants > li > span { margin-bottom: 6px; }
	ul.variants > li > ul.count, ul.variants > li > ul.variant { height: 58px; margin: 0; border-bottom: 1px solid #edf0f3; box-sizing: border-box; }
	ul.variants > li > ul.variant { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-content: center; column-gap: 8px; row-gap: 3px; padding-right: 8px; }
	ul.variants > li > ul.variant > li { display: block; width: auto; margin: 0; padding: 0; text-align: left; min-width: 0; }
	ul.variants > li > ul.variant > li:nth-child(1) { grid-column: 1; grid-row: 1; }
	ul.variants > li > ul.variant > li:nth-child(2) { grid-column: 1; grid-row: 2; padding-left: 25px; font-size: 14px; }
	ul.variants > li > ul.variant > li:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
	ul.variants > li > ul.variant > li:nth-child(3) a { display: inline-block; padding: 6px 10px; font-size: 13px; line-height: 1.2; color: #2976b3; text-decoration: none; border: 1px solid #cfd4da; border-radius: 6px; background: #fff; }
	ul.variants > li > ul.variant > li:nth-child(3) a:active { background: #2976b3; border-color: #2976b3; color: #fff; }
	ul.variants > li > ul.count { display: flex; align-items: center; justify-content: center; max-width: none; }
	ul.variants > li > ul.count > li { display: block; width: auto; }
}

/* --- Лендинги: текст согласия в белой карточке формы наследовал белый цвет блока .lp-final — был не виден */
.lp-form-card .pdn-agree-label { color: #555; }
.lp-form-card .pdn-agree-label a { color: #2976b3; }

/* --- «Смотрите также» / витрины ul.showcase на телефоне: у карточки была фиксированная высота 230 px —
       кнопки вылезали за рамку. Высота по содержимому, ряды ровные, «Подробнее» скрыта (карточка — ссылка),
       две иконки — по колонке каждая (как в разделах каталога) */
@media only screen and (max-width: 767px) {
	ul.showcase { display: flex; flex-wrap: wrap; }
	ul.showcase > li { float: none; display: flex; }
	ul.showcase > li .frame { display: flex; flex-direction: column; width: 100%; height: auto !important; padding-bottom: 10px; box-sizing: border-box; }
	ul.showcase > li .actions { grid-template-columns: 1fr 1fr; column-gap: 6px; margin-top: auto; padding: 10px 8px 0; }
	ul.showcase > li .actions a.more { display: none; }
}

/* --- Шрифт не меньше 12 px (Яндекс отмечает мелкий текст): код телефона и почта в шапке/подвале на узких телефонах были 9 px */
@media only screen and (max-width: 375px) {
	ul.header > li.phone ul > li, ul.footer > li:nth-child(2) { font-size: 12px; }
}

/* --- Галочки согласия: обработка ПДн (обязательна) и сообщения о товарах (необязательна) — две отдельные строки */
.pdn-agree-label + .pdn-news-label { margin-top: -4px; }

/* --- Наши каналы (подписка): ВКонтакте, Telegram, MAX, Одноклассники — отдельно от «Написать нам» */
.channels { display: flex; flex-wrap: wrap; gap: 8px; }
.channels a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; font: 14px/1.2 'Open Sans', Arial, sans-serif; color: #333; text-decoration: none;
	background: #fff; border: 1px solid #cfd4da; border-radius: 8px; }
.channels a:hover { border-color: #2976b3; color: #2976b3; }
.channels a .ico { font-size: 18px; flex: 0 0 auto; }
.channels a.ch-vk .ico { color: #4a76a8; }
.channels a.ch-telegram .ico { color: #0088cc; }
.channels a.ch-max .ico { font-size: 20px; }
.channels-icons a.ch-max .ico { font-size: 22px; }
.channels a.ch-ok .ico { color: #ee8208; }
.popup-channels { width: 100%; margin-top: 18px; padding-top: 16px; border-top: 1px solid #eee; text-align: center; }
.popup-channels-title { font-size: 16px; font-weight: bold; color: #333; margin-bottom: 10px; }
.popup-channels-title span { font-weight: normal; color: #666; font-size: 14px; }
.popup-channels .channels { justify-content: center; }
/* подвал: только значки в белых кружках */
.footer-channels { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.footer-channels > span { font-size: 12px; }
.channels-icons { gap: 6px; }
.channels-icons a { padding: 0; width: 30px; height: 30px; justify-content: center; border-radius: 50%; border-color: transparent; }
.channels-icons a span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.channels-icons a .ico { font-size: 16px; }
@media only screen and (max-width: 767px) { .footer-channels { justify-content: center; } }
@media only screen and (min-width: 768px) { .footer-channels { justify-content: flex-end; } }
