/* ==========================================================================
   ADDINOL — тема addinol3
   Токены и новые компоненты. Подключается после style.css и переопределяет его.
   ========================================================================== */

/* Запасные шрифты с метриками Golos Text и Montserrat: пока грузятся веб-шрифты,
   Arial занимает столько же места, и после подмены верстка не сдвигается (CLS).
   Значения посчитаны по файлам шрифтов (средняя ширина кириллицы, ascent/descent). */
@font-face { font-family: "Golos Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 105.3%; ascent-override: 93.1%; descent-override: 20.9%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; src: local("Arial"), local("ArialMT"); size-adjust: 110.6%; ascent-override: 87.5%; descent-override: 22.7%; line-gap-override: 0%; }

:root {
	--brand: #00AAAD;         /* декор, иконки, бордюры */
	--brand-strong: #007A7D;  /* текст-ссылки и кнопки: 5,15:1 на белом */
	--brand-hover: #00676A;
	--brand-tint: #E3F3F3;
	--accent: #E3001B;        /* только скидки и «Акция» */
	--ink: #1B2426;
	--text: #3E4A4C;
	--muted: #5F6B6D;
	--line: #DDE3E3;
	--surface: #FFFFFF;
	--page: #F4F6F6;
	--success: #1E7B45;
	--danger: #C4161C;

	--font-body: "Golos Text", "Golos Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Montserrat", "Montserrat Fallback", "Golos Text", system-ui, sans-serif;

	--r: 8px;
	--s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
}

/* ---------- База ---------- */
body {
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.55;
	color: var(--text);
	background: var(--page);
	-webkit-tap-highlight-color: transparent;
}
a { color: var(--brand-strong); }
a:hover { color: var(--brand-hover); }
:focus-visible { outline: 3px solid var(--brand-strong) !important; outline-offset: 2px; }
button { touch-action: manipulation; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Кнопки старой темы: доступный контраст */
.button { background: var(--brand-strong); border-color: var(--brand-strong); transition: background-color .2s, color .2s; }
.button:hover { background: var(--brand-hover); color: #fff; }

/* ---------- Общие элементы ---------- */
.pp-cta, .ck-cta {
	display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
	min-height: 48px; padding: 0 var(--s5);
	background: var(--brand-strong); color: #fff !important;
	border: 0; border-radius: var(--r);
	font: 700 17px/1.2 var(--font-head);
	text-decoration: none; cursor: pointer;
	transition: background-color .15s;
}
.pp-cta:hover, .ck-cta:hover { background: var(--brand-hover); }
.pp-cta:disabled, .ck-cta:disabled { opacity: .7; cursor: progress; }

/* ==========================================================================
   Страница товара
   ========================================================================== */
.pp { color: var(--text); }
.pp h2 {
	clear: none; width: auto; border: 0; padding: 0; margin: 0 0 var(--s4);
	font: 700 22px/1.25 var(--font-head); color: var(--ink);
	text-wrap: balance;
}
#content .pp h2 { color: var(--ink); font-size: 22px; }
.pp h3 { font: 600 16px/1.35 var(--font-body); color: var(--ink); margin: 0 0 var(--s2); }

.pp-crumbs { font-size: 14px; color: var(--muted); margin: 0 0 var(--s4); display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.pp-crumbs a { color: var(--muted); }
.pp-crumbs a:hover { color: var(--brand-strong); }

.pp-top {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--s6);
	align-items: start;
}

/* Галерея */
.pp-gallery { display: grid; gap: var(--s3); }
.pp-main-img {
	display: block; background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r);
	padding: var(--s4);
}
#content .pp-main-img img, .pp-main-img img {
	display: block; width: 100%; max-width: 560px; height: auto; aspect-ratio: 1 / 1;
	object-fit: contain; margin: 0 auto;
}
.pp-thumbs { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pp-thumbs a { display: block; width: 72px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 4px; }
#content .pp-thumbs img, .pp-thumbs img { width: 100%; height: auto; margin: 0; }

/* Блок покупки */
.pp-buy {
	position: sticky; top: var(--s4);
	background: var(--surface);
	border: 1px solid var(--line); border-radius: var(--r);
	padding: var(--s5);
	display: grid; gap: var(--s4);
}
#main h1.pp-title, .pp-title {
	background: none; padding: 0; margin: 0; width: auto;
	font: 700 26px/1.2 var(--font-head); color: var(--ink);
	text-shadow: none; text-wrap: balance;
}
#main h1.pp-title::after { display: none; }
.pp-sku { margin: calc(var(--s3) * -1) 0 0; font-size: 14px; color: var(--muted); }

.pp-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-chips li {
	background: var(--brand-tint); color: #00595C;
	font-size: 13px; font-weight: 600; line-height: 1;
	padding: 6px 8px; border-radius: 4px; white-space: nowrap;
}
.pp-chips .pp-chips-more { background: transparent; padding: 0; }
.pp-chips .pp-chips-more a { display: inline-block; padding: 6px 8px; font-size: 13px; font-weight: 600; }

/* Переключатель объема */
.pp-volumes { border: 0; margin: 0; padding: 0; min-width: 0; }
.pp-volumes legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: var(--s2); padding: 0; }
.pp-volumes-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: var(--s2); }
.pp-vol {
	display: grid; gap: 2px; align-content: start;
	padding: var(--s2) var(--s3);
	border: 1px solid var(--line); border-radius: 6px;
	background: var(--surface); color: var(--text); text-decoration: none;
	font-variant-numeric: tabular-nums;
	transition: border-color .15s;
}
.pp-vol b { font-size: 15px; color: var(--ink); }
.pp-vol span { font-size: 14px; white-space: nowrap; }
.pp-vol small { font-size: 12px; color: var(--muted); }
a.pp-vol:hover { border-color: var(--brand-strong); color: var(--text); }
.pp-vol.is-current { border: 2px solid var(--brand-strong); padding: calc(var(--s2) - 1px) calc(var(--s3) - 1px); }

.pp-form { display: grid; gap: var(--s3); margin: 0; }
.pp-variants { display: grid; gap: var(--s2); }
.pp-variant { display: flex; align-items: center; gap: var(--s2); cursor: pointer; }
.pp-variant b { margin-left: auto; }

.pp-price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s3); }
.pp-price { margin: 0; font: 700 34px/1 var(--font-head); color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-price s { display: block; font: 400 16px/1.3 var(--font-body); color: var(--muted); margin-bottom: 4px; }
.pp-currency { font-size: 20px; font-weight: 600; }
.pp-per-liter { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.pp-stock { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; color: var(--success); }
.pp-stock.is-out { color: var(--danger); }
.pp-stock.is-out::before { content: "✕"; font-weight: 700; }
.pp-note { margin: 0; font-size: 14px; }

.pp-actions { display: flex; gap: var(--s3); }
.pp-actions .pp-cta { flex: 1; }
.pp-qty, .ck-qty {
	display: inline-flex; align-items: stretch;
	border: 1px solid #B8C4C5; border-radius: var(--r); background: var(--surface);
	overflow: hidden;
}
.pp-qty-btn, .ck-qty-btn {
	width: 44px; min-height: 46px; border: 0; background: transparent;
	font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.pp-qty-btn:hover, .ck-qty-btn:hover { background: var(--page); }
.pp-qty input, .ck-qty input {
	width: 44px !important; border: 0; text-align: center;
	font: 600 17px var(--font-body); color: var(--ink);
	-moz-appearance: textfield; appearance: textfield;
}
.pp-qty input::-webkit-inner-spin-button, .ck-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pp-help { border-top: 1px solid var(--line); padding-top: var(--s3); font-size: 14px; color: var(--muted); display: grid; gap: var(--s1); }
.pp-help p { margin: 0; }
.pp-help a { font-weight: 600; }

/* Характеристики, описание, доставка */
.pp-details { margin-top: var(--s6); display: grid; gap: var(--s5); }
.pp-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); scroll-margin-top: var(--s4); }
.pp > .pp-section { margin-top: var(--s5); }
.pp-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); }
.pp-specs div { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; gap: var(--s3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.pp-specs dt { color: var(--muted); font-size: 14px; }
.pp-specs dd { margin: 0; color: var(--ink); font-size: 15px; overflow-wrap: anywhere; }
.pp-body > * { max-width: 75ch; }
.pp-body p { margin: 0 0 var(--s3); }
.pp-body ul { padding-left: 20px; margin: 0 0 var(--s3); }
#content .pp-body img { max-width: 100%; width: auto; height: auto; }
.pp-delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s5); }
.pp-delivery p { margin: 0; font-size: 15px; }

.pp-related { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--s4); }
.pp-related li { display: grid; gap: var(--s2); align-content: start; }
.pp-related a { display: grid; gap: var(--s2); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
#content .pp-related img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pp-related b { font-variant-numeric: tabular-nums; color: var(--ink); }

/* Липкая панель покупки (мобильный) */
.pp-sticky { display: none; }

/* ==========================================================================
   Корзина и оформление
   ========================================================================== */
.ck { color: var(--text); }
#main h1.ck-title {
	background: none; padding: 0; width: auto; text-shadow: none;
	font: 700 28px/1.2 var(--font-head); color: var(--ink); margin: 0 0 var(--s5);
}
#main h1.ck-title::after { display: none; }
.ck-alert {
	background: #FDECEC; color: var(--danger); border: 1px solid #F3C3C4;
	border-radius: var(--r); padding: var(--s3) var(--s4); margin-bottom: var(--s4); font-weight: 600;
}
.ck-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
.ck-main { display: grid; gap: var(--s5); }

.ck-items { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.ck-item {
	display: grid; grid-template-columns: 80px minmax(0, 1fr) auto auto 40px;
	gap: var(--s4); align-items: center;
	padding: var(--s4); border-bottom: 1px solid var(--line);
}
.ck-item:last-child { border-bottom: 0; }
.ck-item-img img { display: block; width: 80px; height: 80px; object-fit: contain; }
#content .ck-item-img img { width: 80px; margin: 0; }
.ck-item-info { display: grid; gap: 2px; min-width: 0; }
.ck-item-info a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ck-item-info a:hover { color: var(--brand-strong); }
.ck-muted { color: var(--muted); font-size: 14px; }
.ck-item-sum { font-size: 17px; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 90px; text-align: right; }
.ck-remove { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; color: var(--muted); border-radius: 6px; }
.ck-remove:hover { color: var(--danger); background: #FDECEC; }

.ck-coupon { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); }
.ck-coupon summary { cursor: pointer; font-weight: 600; color: var(--brand-strong); }
.ck-coupon-row { display: flex; gap: var(--s2); margin-top: var(--s3); }
.ck-btn-secondary {
	min-height: 44px; padding: 0 var(--s4); border: 1.5px solid var(--brand-strong); border-radius: var(--r);
	background: var(--surface); color: var(--brand-strong); font-weight: 700; cursor: pointer;
}

.ck-step { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); margin: 0; padding: var(--s5); display: grid; gap: var(--s4); min-width: 0; }
.ck-step legend { font: 700 18px/1.3 var(--font-head); color: var(--ink); padding: 0 var(--s2); margin-left: calc(var(--s2) * -1); }
.ck-field { display: grid; gap: 6px; }
.ck-field label { font-weight: 600; color: var(--ink); font-size: 15px; }
.ck-req { font-weight: 400; font-size: 13px; color: var(--muted); }
.ck input[type="text"], .ck input[type="tel"], .ck input[type="email"], .ck textarea {
	width: 100%; min-height: 48px; padding: 10px 12px;
	font: 16px/1.4 var(--font-body); color: var(--ink);
	background: #fff; border: 1px solid #B8C4C5; border-radius: 6px;
}
.ck textarea { min-height: 88px; resize: vertical; }
.ck input:focus, .ck textarea:focus { border-color: var(--brand-strong); outline: none; box-shadow: 0 0 0 3px rgba(0, 122, 125, .2); }
.ck-field.has-error input { border-color: var(--danger); }
.ck-field-error { margin: 0; color: var(--danger); font-size: 14px; font-weight: 600; }
.ck-hint { margin: 0; color: var(--muted); font-size: 14px; }

.ck-deliveries { display: grid; gap: var(--s2); }
.ck-delivery {
	display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center;
	padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 6px; cursor: pointer;
	transition: border-color .15s;
}
.ck-delivery:has(input:checked) { border: 2px solid var(--brand-strong); padding: calc(var(--s3) - 1px) calc(var(--s4) - 1px); }
.ck-delivery input { width: 18px; height: 18px; accent-color: var(--brand-strong); margin: 0; }
.ck-delivery-name { font-weight: 600; color: var(--ink); }
.ck-delivery-price { color: var(--muted); font-size: 14px; white-space: nowrap; }

.ck-summary {
	position: sticky; top: var(--s4);
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
	padding: var(--s5); display: grid; gap: var(--s4);
}
#content .ck-summary h2 { clear: none; width: auto; border: 0; padding: 0; margin: 0; font: 700 20px/1.3 var(--font-head); color: var(--ink); }
.ck-summary dl { margin: 0; display: grid; gap: var(--s2); }
.ck-summary dl div { display: flex; justify-content: space-between; gap: var(--s3); font-size: 15px; }
.ck-summary dt { color: var(--muted); }
.ck-summary dd { margin: 0; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.ck-summary .ck-total { border-top: 1px solid var(--line); padding-top: var(--s3); margin-top: var(--s1); font-size: 20px; font-weight: 700; }
.ck-summary .ck-total dt { color: var(--ink); }
.ck-summary .ck-cta { width: 100%; }

.ck-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6); display: grid; gap: var(--s4); justify-items: start; }
.ck-empty p { margin: 0; font-size: 18px; }
.ck-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ck-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ==========================================================================
   Уведомление «Добавлено в корзину»
   ========================================================================== */
.v3-toast {
	position: fixed; z-index: 1000; right: var(--s5); bottom: var(--s5);
	width: min(360px, calc(100vw - 32px));
	background: var(--ink); color: #fff; border-radius: var(--r);
	padding: var(--s4); box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
	display: grid; gap: var(--s2);
	transform: translateY(16px); opacity: 0; pointer-events: none;
	transition: transform .2s ease-out, opacity .2s ease-out;
}
.v3-toast.is-open { transform: none; opacity: 1; pointer-events: auto; }
.v3-toast p { margin: 0; }
.v3-toast-title { font-weight: 700; }
.v3-toast-title::before { content: "✓ "; color: #7FD3A0; }
.v3-toast-name { font-size: 14px; color: #C9D6D7; }
.v3-toast-actions { display: flex; gap: var(--s2); margin-top: var(--s1); }
.v3-toast-go { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 6px; background: var(--brand); color: #0B2E2F !important; font-weight: 700; text-decoration: none; }
.v3-toast-close { min-height: 44px; padding: 0 var(--s4); border: 1px solid #5B6B6D; border-radius: 6px; background: transparent; color: #fff; cursor: pointer; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1100px) {
	.pp-top { gap: var(--s5); }
	.pp-specs { grid-template-columns: 1fr; }
	.ck-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

@media (max-width: 900px) {
	/* Мобильный порядок: название → фото → объем → цена и кнопка → допуски.
	   Блок покупки «растворяется», его дети встают в общий поток с галереей. */
	.pp-top { display: flex; flex-direction: column; align-items: stretch; gap: var(--s4); }
	.pp-buy { display: contents; }
	.pp-title { order: 1; }
	.pp-sku { order: 2; margin-top: calc(var(--s3) * -1); }
	.pp-gallery { order: 3; }
	.pp-volumes { order: 4; }
	.pp-form, .pp-top > .pp-buy > .pp-stock, .pp-note { order: 5; }
	.pp-chips { order: 6; }
	.pp-help { order: 7; }
	.pp-main-img { padding: var(--s2); }
	#content .pp-main-img img, .pp-main-img img { max-height: 240px; width: auto; }
	.pp-volumes-list {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(86px, 1fr);
		overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
		margin: 0 calc(var(--s4) * -1); padding: 2px var(--s4);
	}
	.pp-volumes-list::-webkit-scrollbar { display: none; }
	#main h1.pp-title, .pp-title { font-size: 22px; }
	.pp-price { font-size: 30px; }
	.pp-section { padding: var(--s4); }
	#content .pp h2 { font-size: 19px; }

	.pp-sticky:not([hidden]) {
		display: flex; align-items: center; gap: var(--s3);
		position: fixed; z-index: 900; left: 0; right: 0; bottom: 0;
		padding: var(--s2) var(--s4) calc(var(--s2) + env(safe-area-inset-bottom, 0px));
		background: var(--surface); border-top: 1px solid var(--line);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
	}
	.pp-sticky div { display: grid; min-width: 0; flex: 1; }
	.pp-sticky b { font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
	.pp-sticky span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.pp-sticky .pp-cta { min-height: 44px; padding: 0 var(--s4); font-size: 15px; }
	.v3-toast { left: var(--s4); right: var(--s4); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); width: auto; }

	.ck-grid { grid-template-columns: 1fr; }
	.ck-summary { position: static; }
	.ck-item { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "img info rm" "img qty sum"; gap: var(--s2) var(--s3); }
	.ck-item-img { grid-area: img; align-self: start; }
	.ck-item-img img, #content .ck-item-img img { width: 64px; height: 64px; }
	.ck-item-info { grid-area: info; }
	.ck-qty { grid-area: qty; justify-self: start; }
	.ck-item-sum { grid-area: sum; }
	.ck-remove { grid-area: rm; align-self: start; }
	.ck-step { padding: var(--s4); }
	#main h1.ck-title { font-size: 22px; }
}

/* ==========================================================================
   Каркас: шапка, меню, подвал
   ========================================================================== */
.v3-wrap { max-width: 1280px; margin: 0 auto; padding-left: var(--s5); padding-right: var(--s5); }
html.v3-lock, html.v3-lock body { overflow: hidden; }
.v3-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.v3-skip { position: absolute; left: var(--s4); top: -100px; z-index: 2000; background: var(--ink); color: #fff !important; padding: var(--s2) var(--s4); border-radius: 6px; }
.v3-skip:focus { top: var(--s2); }

/* Старая раскладка с левой колонкой больше не используется */
#content.v3-main { float: none; width: auto; margin: 0 auto; padding-top: var(--s5); padding-bottom: var(--s7); }
.v3-main > * { max-width: 100%; }

/* Утилитарная строка */
.v3-util { background: var(--ink); color: #D7E2E3; font-size: 14px; }
.v3-util-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s5); min-height: 36px; }
.v3-util p { margin: 0; }
.v3-util-phones { display: flex; gap: var(--s4); font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.v3-util-promise { color: #B7C7C8; }
.v3-util-nav { display: flex; align-items: center; gap: var(--s3); }
.v3-util-nav a { color: #D7E2E3; text-decoration: none; }
.v3-util-nav a:hover { color: #fff; text-decoration: underline; }
.v3-util-nav a[aria-current] { color: #fff; font-weight: 700; }
.v3-util-sep { width: 1px; height: 16px; background: #4A5A5C; }

/* Основная строка шапки */
.v3-header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 500; }
.v3-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: var(--s5); min-height: 84px; }
.v3-burger { display: none; }
.v3-logo { display: block; line-height: 0; }
.v3-logo img { width: 200px; height: auto; }
.v3-search { display: flex; align-items: stretch; height: 48px; border: 2px solid var(--brand-strong); border-radius: var(--r); overflow: hidden; background: #fff; }
.v3-search input[type="search"] { flex: 1; min-width: 0; width: auto; border: 0; padding: 0 var(--s4); font: 16px var(--font-body); color: var(--ink); background: transparent; -webkit-appearance: none; }
.v3-search input::placeholder { color: #7A8789; }
.v3-search input:focus { outline: none; }
.v3-search:focus-within { box-shadow: 0 0 0 3px rgba(0, 122, 125, .25); }
.v3-search button { display: inline-flex; align-items: center; gap: var(--s2); border: 0; background: var(--brand-strong); color: #fff; padding: 0 var(--s4); font: 700 15px var(--font-body); cursor: pointer; }
.v3-search button:hover { background: var(--brand-hover); }
.v3-finder { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4); border: 1.5px solid var(--brand-strong); border-radius: var(--r); color: var(--brand-strong); font-weight: 700; text-decoration: none; white-space: nowrap; }
.v3-finder:hover { background: var(--brand-tint); color: var(--brand-hover); }

/* Корзина в шапке */
#cart_informer.v3-cart { position: static; float: none; width: auto; height: auto; margin: 0; padding: 0; border: 0; background: none; font-size: 15px; }
.v3-cart-link { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 var(--s4); border-radius: var(--r); background: var(--page); color: var(--ink) !important; text-decoration: none; white-space: nowrap; }
.v3-cart-link:hover { background: var(--brand-tint); }
.v3-cart-link svg { color: var(--brand-strong); flex: none; }
.v3-cart-icon { position: relative; display: inline-flex; }
.v3-cart-link, .v3-cart-link * { text-decoration: none !important; }
.v3-cart-count { position: absolute; right: -10px; top: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.v3-cart-text b { font-variant-numeric: tabular-nums; }

/* Меню категорий */
.v3-nav { border-top: 1px solid var(--line); }
.v3-nav-list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0; }
.v3-nav-list > li:first-child > a { padding-left: 0; }
.v3-nav-item { position: relative; }
.v3-nav-item > a { display: block; padding: 12px 10px; color: var(--ink); font-weight: 600; font-size: 14.5px; white-space: nowrap; text-decoration: none; border-bottom: 3px solid transparent; }
.v3-nav-item > a:hover, .v3-nav-item > a[aria-current] { color: var(--brand-strong); border-bottom-color: var(--brand); }
.v3-nav-item.has-sub > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.v3-nav-sale { margin-left: auto; }
.v3-nav-sale > a { color: var(--accent); }
.v3-mega {
	position: absolute; left: 0; top: 100%; min-width: 280px; z-index: 600;
	background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r);
	box-shadow: 0 12px 28px rgba(27, 36, 38, .12); padding: var(--s3) 0;
	visibility: hidden; opacity: 0; transform: translateY(4px);
	transition: opacity .15s ease-out, transform .15s ease-out, visibility 0s .15s;
}
.v3-nav-item.has-sub:hover > .v3-mega, .v3-nav-item.has-sub:focus-within > .v3-mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.v3-nav-item.is-closed > .v3-mega { visibility: hidden !important; opacity: 0 !important; }
.v3-mega ul { list-style: none; margin: 0; padding: 0; }
.v3-mega li a { display: block; padding: 8px var(--s5); color: var(--text); text-decoration: none; }
.v3-mega li a:hover, .v3-mega li a[aria-current] { background: var(--brand-tint); color: var(--brand-hover); }
.v3-mega-all { display: block; margin-top: var(--s2); padding: 8px var(--s5) 4px; border-top: 1px solid var(--line); font-weight: 600; text-decoration: none; }

/* Мобильное меню */
.v3-drawer { position: fixed; inset: 0; z-index: 1500; }
.v3-drawer-backdrop { position: absolute; inset: 0; background: rgba(15, 25, 27, .5); opacity: 0; transition: opacity .2s; }
.v3-drawer-panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw);
	background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
	padding: var(--s4) var(--s4) calc(var(--s6) + env(safe-area-inset-bottom, 0px));
	transform: translateX(-100%); transition: transform .2s ease-out;
	display: flex; flex-direction: column; gap: var(--s3);
}
.v3-drawer.is-open .v3-drawer-backdrop { opacity: 1; }
.v3-drawer.is-open .v3-drawer-panel { transform: none; }
.v3-drawer-top { display: flex; align-items: center; justify-content: space-between; font: 700 18px var(--font-head); color: var(--ink); }
.v3-drawer-close { width: 44px; height: 44px; border: 0; background: var(--page); border-radius: var(--r); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.v3-drawer-finder { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r); background: var(--brand-strong); color: #fff !important; font-weight: 700; text-decoration: none; }
.v3-drawer-title { margin: var(--s3) 0 0; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.v3-drawer-cats, .v3-drawer-pages, .v3-drawer-cats ul { list-style: none; margin: 0; padding: 0; }
.v3-drawer-cats > li, .v3-drawer-pages > li { border-bottom: 1px solid var(--line); }
.v3-drawer-cats a, .v3-drawer-cats summary, .v3-drawer-pages a { display: flex; align-items: center; min-height: 48px; color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; }
.v3-drawer-cats summary { list-style: none; justify-content: space-between; }
.v3-drawer-cats summary::-webkit-details-marker { display: none; }
.v3-drawer-cats summary::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--muted); }
.v3-drawer-cats details[open] summary::after { content: "−"; }
.v3-drawer-cats ul { padding: 0 0 var(--s2) var(--s3); }
.v3-drawer-cats ul a { min-height: 44px; font-weight: 400; color: var(--text); }
.v3-drawer-contacts { margin-top: var(--s3); display: grid; gap: var(--s2); font-size: 15px; }
.v3-drawer-contacts p { margin: 0; }
.v3-drawer-contacts > p:not(.v3-drawer-langs) { font-weight: 600; color: var(--ink); }
.v3-drawer-langs { display: flex; gap: var(--s2); }
.v3-drawer-langs a { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--ink); }
.v3-drawer-langs a[aria-current] { border-color: var(--brand-strong); color: var(--brand-strong); font-weight: 700; }

/* Подвал */
.v3-footer { background: var(--ink); color: #C9D6D7; padding-top: var(--s7); font-size: 15px; }
.v3-footer a { color: #E4ECEC; text-decoration: none; }
.v3-footer a:hover { color: #fff; text-decoration: underline; }
.v3-footer-grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: var(--s6); }
.v3-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.v3-footer p { margin: 0; }
.v3-footer-brand { display: grid; gap: var(--s3); align-content: start; }
.v3-footer-brand img { width: 170px; height: auto; background: #fff; border-radius: 6px; padding: 6px 10px; }
.v3-footer-phone { font-size: 17px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.v3-footer-title { font: 700 14px var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: #8FA3A5 !important; margin-bottom: var(--s3) !important; }
.v3-footer-social { display: flex !important; gap: var(--s3) !important; margin-top: var(--s4) !important; }
.v3-footer-social img { display: block; width: 32px; height: 32px; }
.v3-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); margin-top: var(--s6); padding-top: var(--s4); padding-bottom: var(--s5); border-top: 1px solid #33413F; font-size: 14px; color: #8FA3A5; }

/* Каркас: адаптив */
@media (max-width: 1100px) {
	.v3-finder span { display: none; }
	.v3-finder { padding: 0 var(--s3); }
	.v3-util-promise { display: none; }
	.v3-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
	.v3-wrap { padding-left: var(--s4); padding-right: var(--s4); }
	.v3-util, .v3-nav { display: none; }
	.v3-head { grid-template-columns: auto 1fr auto auto; grid-template-areas: "burger logo finder cart" "search search search search"; gap: var(--s2); min-height: 0; padding-top: var(--s2); padding-bottom: var(--s3); }
	.v3-burger { grid-area: burger; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer; }
	.v3-logo { grid-area: logo; }
	.v3-logo img { width: 128px; }
	.v3-finder { grid-area: finder; min-height: 44px; width: 44px; padding: 0; justify-content: center; border: 0; }
	.v3-cart { grid-area: cart; }
	.v3-cart-link { min-height: 44px; padding: 0 10px; background: transparent; }
	.v3-cart-text { display: none; }
	.v3-search { grid-area: search; height: 44px; }
	.v3-search button span { display: none; }
	#content.v3-main { padding-top: var(--s4); padding-bottom: var(--s6); }
	.v3-footer-grid { grid-template-columns: 1fr; gap: var(--s5); }
}

/* Мобильный товар: крошки — одна ссылка «назад», короче строка наличия */
@media (max-width: 900px) {
	.pp-crumbs { margin-bottom: var(--s2); }
	.pp-crumbs a, .pp-crumbs span { display: none; }
	.pp-crumbs a:last-of-type { display: inline; }
	.pp-crumbs a:last-of-type::before { content: "‹ "; }
	.pp-sku { display: none; }
	.pp-stock { font-size: 14px; }
	.pp-top { gap: var(--s3); }
}

/* ==========================================================================
   Каталог
   ========================================================================== */
.pl { color: var(--text); }
#main h1.pl-title, .pl-title { background: none; padding: 0; margin: 0 0 var(--s4); width: auto; text-shadow: none; font: 700 30px/1.2 var(--font-head); color: var(--ink); text-wrap: balance; }
.pl-subcats { list-style: none; margin: 0 0 var(--s5); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.pl-subcats a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; }
.pl-subcats a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }

.pl-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s5); align-items: start; }
.pl-grid--nofilters { grid-template-columns: minmax(0, 1fr); }

/* Фильтры */
.pl-filters { position: sticky; top: var(--s4); max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.pl-filters-form { padding: var(--s4); display: grid; gap: var(--s4); }
.pl-filters-head { display: flex; align-items: center; justify-content: space-between; }
#content .pl-filters-head h2 { clear: none; width: auto; border: 0; padding: 0; margin: 0; font: 700 18px var(--font-head); color: var(--ink); }
.pl-filters-close { display: none; }
.pl-group { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s2); }
.pl-group + .pl-group { border-top: 1px solid var(--line); padding-top: var(--s4); }
.pl-group legend { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: var(--s2); padding: 0; }
.pl-options { display: grid; gap: 2px; }
.pl-opt { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s2); align-items: center; min-height: 34px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; cursor: pointer; font-size: 15px; }
.pl-opt:hover { background: var(--page); }
.pl-opt input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand-strong); }
.pl-opt input:checked + .pl-opt-name { font-weight: 700; color: var(--ink); }
.pl-opt-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pl-options.is-long:not(.is-open) .pl-opt--extra { display: none; }
.pl-more-values { justify-self: start; border: 0; background: none; padding: 4px 0; color: var(--brand-strong); font-weight: 600; font-size: 14px; cursor: pointer; }
.pl-filters-actions { display: none; }

/* Панель над списком */
.pl-toolbar { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.pl-count { margin: 0; color: var(--muted); font-size: 15px; }
.pl-sort { margin-left: auto; }
.pl-sort select { min-height: 40px; padding: 0 var(--s6) 0 var(--s3); border: 1px solid #B8C4C5; border-radius: 6px; background: #fff; color: var(--ink); font: 15px var(--font-body); cursor: pointer; }
.pl-filters-open { display: none; }
.pl-badge { display: inline-flex; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 10px; background: var(--brand-strong); color: #fff; font-size: 12px; font-weight: 700; }
.pl-active { list-style: none; margin: 0 0 var(--s4); padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.pl-active a { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 var(--s3); border-radius: 16px; background: var(--brand-tint); color: #00595C; font-weight: 600; font-size: 14px; text-decoration: none; }
.pl-active a:hover { background: #CDEAEA; }

/* Карточки */
.pl-products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.pl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); transition: border-color .15s, box-shadow .15s; }
.pl-card:hover { border-color: #C2D0D1; box-shadow: 0 6px 18px rgba(27, 36, 38, .06); }
.pl-card-img { display: block; aspect-ratio: 1; line-height: 0; }
#content .pl-card-img img, .pl-card-img img { width: 100%; height: 100%; object-fit: contain; margin: 0; }
.pl h3.pl-card-name { margin: 0; font: 600 15px/1.35 var(--font-body); color: var(--ink); }
.pl-card-name a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pl-card-name a:hover { color: var(--brand-strong); }
.pl-card-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.pl-card-chips li { background: var(--brand-tint); color: #00595C; font-size: 12px; font-weight: 600; line-height: 1; padding: 4px 6px; border-radius: 3px; }
.pl-card-buy { margin: auto 0 0; display: grid; gap: var(--s2); padding-top: var(--s2); }
.pl-card-variant { min-height: 38px; border: 1px solid #B8C4C5; border-radius: 6px; padding: 0 var(--s2); font: 14px var(--font-body); }
.pl-card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px var(--s2); font-variant-numeric: tabular-nums; }
.pl-card-price s { width: 100%; color: var(--muted); font-size: 14px; }
.pl-card-price b { font: 700 22px/1.1 var(--font-head); color: var(--ink); }
.pl-card-price b span { font-size: 15px; font-weight: 600; }
.pl-card-price small { color: var(--muted); font-size: 13px; }
.pl-card-cta { min-height: 44px; border: 0; border-radius: var(--r); background: var(--brand-strong); color: #fff; font: 700 15px var(--font-body); cursor: pointer; transition: background-color .15s; }
.pl-card-cta:hover { background: var(--brand-hover); }
.pl-card-cta:disabled { opacity: .7; }
.pl-card-out { margin: auto 0 0; color: var(--muted); font-size: 14px; }
.pl-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); margin: 0; }

.pl-more-wrap { display: flex; justify-content: center; margin-top: var(--s5); }
.pl-more { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s6); border: 1.5px solid var(--brand-strong); border-radius: var(--r); color: var(--brand-strong); font-weight: 700; text-decoration: none; background: var(--surface); }
.pl-more:hover { background: var(--brand-tint); }
.pl-more.is-loading { opacity: .7; pointer-events: none; }

/* Пагинация (старый шаблон pagination.tpl) */
.pl .pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: var(--s4) 0 0; }
.pl .pagination a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; margin: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); text-decoration: none; float: none; font-size: 15px; }
.pl .pagination a.selected { background: var(--brand-strong); border-color: var(--brand-strong); color: #fff; }
.pl .pagination a:hover:not(.selected) { border-color: var(--brand-strong); }

.pl-description { margin-top: var(--s6); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); max-width: 100%; }
.pl-description > * { max-width: 75ch; }
.pl-description p { margin: 0 0 var(--s3); }
.pl-description h2 { clear: none; width: auto; border: 0; padding: 0; margin: var(--s4) 0 var(--s2); font: 700 20px var(--font-head); color: var(--ink) !important; }
#content .pl-description img { max-width: 100%; width: auto; height: auto; }

@media (max-width: 900px) {
	#main h1.pl-title, .pl-title { font-size: 24px; margin-bottom: var(--s3); }
	.pl-subcats { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--s4) * -1) var(--s4); padding: 0 var(--s4) 2px; scrollbar-width: none; }
	.pl-subcats::-webkit-scrollbar { display: none; }
	.pl-subcats a { white-space: nowrap; }
	.pl-grid { grid-template-columns: minmax(0, 1fr); }
	.pl-filters-open { display: inline-flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4); border: 1.5px solid var(--brand-strong); border-radius: var(--r); background: var(--surface); color: var(--brand-strong); font: 700 15px var(--font-body); cursor: pointer; }
	.pl-count { order: 3; width: 100%; font-size: 14px; }
	.pl-sort select { max-width: 190px; }
	.pl-filters { position: fixed; z-index: 1500; inset: 0; max-height: none; border: 0; border-radius: 0; transform: translateY(100%); visibility: hidden; transition: transform .2s ease-out, visibility 0s .2s; }
	.pl-filters.is-open { transform: none; visibility: visible; transition: transform .2s ease-out; }
	.pl-filters-form { padding-bottom: 0; }
	.pl-filters-close { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: var(--r); background: var(--page); color: var(--ink); cursor: pointer; }
	.pl-opt { min-height: 44px; }
	.pl-filters-actions { display: flex; align-items: center; gap: var(--s4); position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); margin: 0 calc(var(--s4) * -1); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom, 0px)); }
	.pl-filters-actions .pp-cta { flex: 1; }
	.pl-reset { font-weight: 600; }
	.pl-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
	.pl-card { padding: var(--s2); }
	.pl h3.pl-card-name { font-size: 14px; }
	.pl-card-chips li:nth-child(n+2) { display: none; }
	.pl-card-price b { font-size: 19px; }
	.pl-card-cta { min-height: 42px; font-size: 14px; }
	.pl-description { padding: var(--s4); }
}

/* ==========================================================================
   Главная
   ========================================================================== */
.hm { display: grid; gap: var(--s6); }
.hm-hero {
	display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s6); align-items: center;
	background: #0F3F41; color: #fff; border-radius: 12px; padding: var(--s6) var(--s7);
}
.hm-hero-text { display: grid; gap: var(--s3); }
#main .hm h1, .hm-hero h1 {
	background: none; padding: 0; margin: 0; width: auto; text-shadow: none;
	font: 700 36px/1.15 var(--font-head); color: #fff; text-wrap: balance;
}
.hm-hero h1::after { display: none; }
.hm-hero-text p { margin: 0; font-size: 18px; color: #C9E3E3; max-width: 52ch; }
.hm-finder { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: var(--s5); display: grid; gap: var(--s3); }
.hm-finder-cta { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 56px; border-radius: var(--r); background: var(--brand); color: #0B2E2F !important; font: 700 18px var(--font-head); text-decoration: none; transition: background-color .15s; }
.hm-finder-cta:hover { background: #2DC0C2; }
.hm-visc-label { margin: var(--s2) 0 0; color: #B8D9DA; font-size: 15px; }
.hm-visc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.hm-visc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border: 1px solid rgba(255, 255, 255, .3); border-radius: 20px; color: #fff; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.hm-visc a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.hm-trust { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.hm-trust li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: grid; gap: 2px; }
.hm-trust b { color: var(--ink); font-size: 16px; }
.hm-trust span { color: var(--muted); font-size: 14px; }

.hm-section { display: grid; gap: var(--s4); }
#content .hm-section h2 { clear: none; width: auto; border: 0; padding: 0; margin: 0; font: 700 24px/1.2 var(--font-head); color: var(--ink); }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.hm-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }

.hm-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); }
.hm-cat { display: grid; gap: var(--s1); align-content: start; height: 100%; padding: var(--s4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s; }
.hm-cat:hover { border-color: var(--brand-strong); }
.hm-cat b { color: var(--ink); font: 700 16px/1.3 var(--font-head); }
.hm-cat span { color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hm-products { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pl-card-price b.is-sale { color: var(--accent); }

.hm-banner { display: block; width: 100%; height: auto; aspect-ratio: 5 / 1; border-radius: var(--r); }
#content img.hm-banner { width: 100%; margin: 0; }

.hm-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.hm-posts li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); display: grid; gap: var(--s2); align-content: start; }
.hm-posts a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.35; }
.hm-posts a:hover { color: var(--brand-strong); }
.hm-posts p { margin: 0; color: var(--muted); font-size: 14px; }

.hm-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5); }
.hm-text > * { max-width: 75ch; }
.hm-text p { margin: 0 0 var(--s3); }

@media (max-width: 1100px) {
	.hm-hero { grid-template-columns: 1fr; padding: var(--s5); gap: var(--s4); }
	.hm-trust, .hm-cats, .hm-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.hm-posts { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
	.hm { gap: var(--s5); }
	.hm-hero { padding: var(--s4); border-radius: 10px; }
	#main .hm h1, .hm-hero h1 { font-size: 24px; }
	.hm-hero-text p { font-size: 15px; }
	.hm-finder { padding: var(--s3); background: transparent; border: 0; }
	.hm-finder-cta { min-height: 52px; font-size: 16px; }
	.hm-trust { gap: var(--s2); }
	.hm-trust li { padding: var(--s3); }
	.hm-trust b { font-size: 14px; }
	.hm-trust span { font-size: 13px; }
	.hm-cats { gap: var(--s2); }
	.hm-cat { padding: var(--s3); }
	.hm-cat span { display: none; }
	.hm-products { gap: var(--s2); }
	#content .hm-section h2 { font-size: 20px; }
}

/* ==========================================================================
   Блог: статья и список
   ========================================================================== */
.bp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s6); align-items: start; }
.bp-article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6) var(--s7); min-width: 0; }
#main h1.bp-title, .bp-title { background: none; padding: 0; margin: 0 0 var(--s2); width: auto; text-shadow: none; font: 700 32px/1.2 var(--font-head); color: var(--ink); text-wrap: balance; max-width: 26ch; }
.bp-title::after { display: none; }
.bp-meta { margin: 0 0 var(--s5); color: var(--muted); font-size: 14px; }
.bp-text { max-width: 70ch; font-size: 17px; line-height: 1.7; color: var(--text); }
.bp-text p { margin: 0 0 var(--s4); }
.bp-text p[style*="center"] { text-align: left !important; }
.bp-text p:has(> img) { text-align: center !important; }
.bp-text h2, .bp-text h3, .bp-text .bp-sub {
	clear: none; width: auto; border: 0; padding: 0;
	margin: var(--s6) 0 var(--s3); font: 700 22px/1.3 var(--font-head); color: var(--ink) !important;
	scroll-margin-top: var(--s4);
}
.bp-text h3 { font-size: 19px; }
.bp-text .bp-sub b, .bp-text .bp-sub strong { font-weight: inherit; }
#content .bp-text img, .bp-text img { display: block; max-width: 100%; width: auto; height: auto; margin: var(--s2) auto; border-radius: 6px; }
.bp-text ul, .bp-text ol { margin: 0 0 var(--s4); padding-left: 24px; }
.bp-text li { margin-bottom: var(--s2); }
.bp-text table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; margin: 0 0 var(--s4); font-size: 15px; }
.bp-text td, .bp-text th { border: 1px solid var(--line); padding: 8px 10px; }

.bp-aside { position: sticky; top: var(--s4); display: grid; gap: var(--s4); }
.bp-aside-title { margin: 0 0 var(--s2); font-weight: 700; color: var(--ink); font-size: 15px; }
.bp-toc, .bp-finder, .bp-products { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.bp-toc ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; max-height: 40vh; overflow-y: auto; }
.bp-toc a { color: var(--text); text-decoration: none; }
.bp-toc a:hover { color: var(--brand-strong); text-decoration: underline; }
.bp-finder { background: #0F3F41; border-color: #0F3F41; display: grid; gap: var(--s3); }
.bp-finder p { margin: 0; color: #fff; font: 700 17px/1.3 var(--font-head); }
.bp-finder .pp-cta { background: var(--brand); color: #0B2E2F !important; min-height: 44px; font-size: 15px; padding: 0 var(--s3); }
.bp-finder .pp-cta:hover { background: #2DC0C2; }

.bp-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.bp-mini li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.bp-mini li + li { border-top: 1px solid var(--line); padding-top: var(--s3); }
#content .bp-mini img, .bp-mini img { width: 64px; height: 64px; object-fit: contain; margin: 0; }
.bp h3, .bp-inline h3 { margin: 0 0 6px; font: 600 14px/1.35 var(--font-body); }
.bp-mini h3 a { color: var(--ink); text-decoration: none; }
.bp-mini h3 a:hover { color: var(--brand-strong); }
.bp-mini-buy { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin: 0; }
.bp-mini-buy b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bp-mini-buy button { min-height: 36px; padding: 0 var(--s3); border: 1.5px solid var(--brand-strong); border-radius: 6px; background: var(--surface); color: var(--brand-strong); font: 700 13px var(--font-body); cursor: pointer; }
.bp-mini-buy button:hover { background: var(--brand-tint); }
.bp-inline { margin: var(--s2) 0 var(--s5); padding: var(--s4); background: var(--brand-tint); border-radius: var(--r); font-size: 15px; line-height: 1.4; }

.bl-list { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
.bl-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4) var(--s5); }
#content .bl-list h2 { clear: none; width: auto; border: 0; padding: 0; margin: 0 0 var(--s2); font: 700 18px/1.35 var(--font-head); color: var(--ink); }
.bl-list h2 a { color: var(--ink); text-decoration: none; }
.bl-list h2 a:hover { color: var(--brand-strong); }
.bl-list p { margin: 0; color: var(--muted); font-size: 15px; }
#main h1.bl-title, .bl-title { background: none; padding: 0; margin: 0 0 var(--s4); width: auto; text-shadow: none; font: 700 30px var(--font-head); color: var(--ink); }
.bl-title::after { display: none; }

@media (max-width: 1100px) {
	.bp-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s4); }
	.bp-article { padding: var(--s5); }
}
@media (max-width: 900px) {
	.bp-grid { grid-template-columns: minmax(0, 1fr); }
	.bp-article { padding: var(--s4); border: 0; background: transparent; padding: 0; }
	#main h1.bp-title, .bp-title { font-size: 24px; }
	.bp-text { font-size: 16px; }
	.bp-text h2, .bp-text h3, .bp-text .bp-sub { font-size: 19px; margin-top: var(--s5); }
	.bp-aside { position: static; }
	.bp-toc { display: none; }
	.bl-list { grid-template-columns: 1fr; }
	#main h1.bl-title, .bl-title { font-size: 24px; }
}

/* Карточка товара внутри текста статьи не наследует стили статьи */
.bp-text .bp-inline { text-align: left; }
.bp-text .bp-inline h3 { margin: 0 0 6px; font: 600 15px/1.35 var(--font-body); color: var(--ink) !important; }
.bp-text .bp-inline li { margin: 0; }
.bp-text .bp-inline img { margin: 0; border-radius: 0; }
.bp-text .bp-inline .bp-mini-buy { justify-content: flex-start; gap: var(--s4); }

/* ==========================================================================
   Документы, формы, заказ
   ========================================================================== */
.v3-doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s6) var(--s7); max-width: 900px; }
#main .v3-doc h1, .v3-doc-title { background: none; padding: 0; margin: 0 0 var(--s4); width: auto; text-shadow: none; font: 700 30px/1.2 var(--font-head); color: var(--ink); }
.v3-doc h1::after { display: none; }
.v3-doc-body { font-size: 17px; line-height: 1.7; max-width: 70ch; }
.v3-doc-body p { margin: 0 0 var(--s3); }
.v3-doc-body p[style*="center"] { text-align: left !important; }
.v3-doc-body ul, .v3-doc-body ol { padding-left: 24px; margin: 0 0 var(--s3); }
#content .v3-doc h2, .v3-doc h2 { clear: none; width: auto; border: 0; padding: 0; margin: var(--s5) 0 var(--s3); font: 700 21px/1.3 var(--font-head); color: var(--ink); }
#content .v3-doc img, .v3-doc img { max-width: 100%; width: auto; height: auto; margin: var(--s2) 0; }
.v3-doc table { border-collapse: collapse; display: block; overflow-x: auto; max-width: 100%; }
.v3-doc td, .v3-doc th { border: 1px solid var(--line); padding: 8px 10px; }
.v3-video { margin-top: var(--s5); max-width: 70ch; }
.v3-video iframe { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }

.v3-form .form, .v3-form form { width: auto; max-width: 480px; margin: 0; display: grid; gap: var(--s2); }
.v3-form label { font-weight: 600; color: var(--ink); font-size: 15px; margin-top: var(--s2); }
.v3 input[type="text"], .v3 input[type="password"], .v3 input[type="email"], .v3 input[type="tel"], .v3 textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; font: 16px/1.4 var(--font-body); color: var(--ink);
	background: #fff; border: 1px solid #B8C4C5; border-radius: 6px;
}
.v3 textarea { min-height: 96px; }
.v3 .v3-search input[type="search"] { border: 0; min-height: 0; }
.v3-form input[type="submit"], .od input[type="submit"], .v3-form .button, .od .button {
	float: none; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s5);
	background: var(--brand-strong); color: #fff; border: 0; border-radius: var(--r); font: 700 16px var(--font-body); cursor: pointer; margin-top: var(--s3);
}
.v3-form input[type="submit"]:hover, .od input[type="submit"]:hover { background: var(--brand-hover); color: #fff; }
.v3-form .message_error, .od .message_error { background: #FDECEC; color: var(--danger); border-radius: 6px; padding: var(--s3); font-weight: 600; }

.od { display: grid; gap: var(--s4); max-width: 900px; }
.od-thanks { background: #E4F3E8; border: 1px solid #B9DEC5; border-radius: var(--r); padding: var(--s4) var(--s5); }
.od-thanks p { margin: 0; }
.od-thanks-title { font: 700 22px var(--font-head); color: var(--success); margin-bottom: 4px !important; }
#main .od h1, .od h1 { background: none; padding: 0; margin: 0; width: auto; text-shadow: none; font: 700 26px/1.25 var(--font-head); color: var(--ink); }
.od h1::after { display: none; }
#content .od h2, .od h2 { clear: none; width: auto; border: 0; padding: 0; margin: var(--s3) 0 0; font: 700 20px var(--font-head); color: var(--ink); }
.od #purchases { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.od #purchases > div { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto auto; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); float: none; width: auto; }
.od #purchases > div:last-child { border-bottom: 0; }
.od #purchases > div > div { float: none; width: auto; margin: 0; padding: 0; }
.od #purchases .price { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.od #purchases .summ { font-weight: 700; font-size: 18px; color: var(--ink); }
#content .od #purchases img { width: 50px; height: 50px; object-fit: contain; margin: 0; }
.od table.order_info { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); border-collapse: separate; border-spacing: 0; }
.od table.order_info td { padding: 10px var(--s4); border-bottom: 1px solid var(--line); vertical-align: top; }
.od table.order_info tr:last-child td { border-bottom: 0; }
.od table.order_info td:first-child { color: var(--muted); width: 40%; }
.od ul#deliveries { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.od ul#deliveries li { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: var(--s3) var(--s4); display: grid; grid-template-columns: auto 1fr; gap: var(--s1) var(--s3); }
.od ul#deliveries li .description { grid-column: 2; font-size: 14px; color: var(--muted); }
.od ul#deliveries h3 { margin: 0; font: 600 16px var(--font-body); }

@media (max-width: 900px) {
	.v3-doc { padding: var(--s4); }
	#main .v3-doc h1, .v3-doc-title { font-size: 24px; }
	.v3-doc-body { font-size: 16px; }
	.od #purchases > div { grid-template-columns: 48px minmax(0, 1fr) auto; }
	.od #purchases > div > .amount, .od #purchases > div > .price:nth-of-type(3) { display: none; }
	#main .od h1, .od h1 { font-size: 22px; }
}

/* Базовые заголовки темы (в новом каркасе нет #main) */
.v3 h1 { font-family: var(--font-head); font-weight: 700; color: var(--ink); text-shadow: none; line-height: 1.2; text-wrap: balance; }
.v3-doc h1 { font-size: 30px; margin: 0 0 var(--s4); }
@media (max-width: 900px) { .v3-doc h1 { font-size: 24px; } }

/* Заголовок героя на темном фоне: белый, перебивает базовый .v3 h1 */
.v3 .hm-hero h1 { color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.v3 .hm-hero-text p { color: #D5ECEC; }
/* Счетчик корзины не наезжает на текст */
.v3-cart-icon + .v3-cart-text { margin-left: 6px; }

/* ==========================================================================
   Логотип: официальный знак ADDINOL + подпись магазина живым текстом
   ========================================================================== */
.v3-logo { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; line-height: 1; }
.v3-logo picture { display: block; line-height: 0; }
.v3-logo .v3-logo-mark { display: block; width: 188px; height: auto; }
.v3-logo-sub { display: grid; gap: 3px; padding-left: 14px; border-left: 2px solid var(--line); white-space: nowrap; }
.v3-logo-sub b { font: 700 14px/1.1 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.v3-logo-sub span { font: 500 12px/1.1 var(--font-body); color: var(--muted); letter-spacing: .02em; }
.v3-logo:hover .v3-logo-sub b { color: var(--brand-strong); }
.v3-footer-logo { display: inline-block; background: #fff; border-radius: 10px; padding: 12px 16px; line-height: 0; }
.v3-footer-logo img { display: block; width: 190px; height: auto; }
.v3-footer-brand > img { display: none; }
@media (max-width: 1240px) { .v3-logo-sub { display: none; } }
@media (max-width: 900px) {
	.v3-logo .v3-logo-mark { width: 132px; }
	.v3-logo-sub { display: none; }
}
@media (max-width: 380px) { .v3-logo .v3-logo-mark { width: 116px; } }
.v3-footer-logo { justify-self: start; }

/* Автоподсказки поиска (jquery.autocomplete) в стиле темы */
.autocomplete-suggestions { background: var(--surface) !important; border: 1px solid var(--line) !important; border-radius: 0 0 var(--r) var(--r); box-shadow: 0 12px 28px rgba(27, 36, 38, .14); padding: 4px 0; z-index: 1600 !important; }
.autocomplete-suggestions .autocomplete-suggestion { display: block; padding: 8px 14px 8px 56px !important; position: relative; min-height: 44px; font: 15px/1.3 var(--font-body); color: var(--ink); white-space: normal !important; cursor: pointer !important; }
.autocomplete-suggestions .autocomplete-suggestion img { position: absolute; left: 14px; top: 50%; margin-top: -16px; width: 32px; height: 32px; object-fit: contain; }
.autocomplete-suggestions .autocomplete-suggestion { line-height: 28px; }
.autocomplete-suggestions .selected { background: var(--brand-tint) !important; }
.autocomplete-suggestions strong { color: var(--brand-strong) !important; font-weight: 700 !important; }

/* Логотип: место зарезервировано до загрузки картинки */
.v3-logo picture { width: 188px; aspect-ratio: 220 / 37; }
@media (max-width: 900px) { .v3-logo picture { width: 132px; } }
@media (max-width: 380px) { .v3-logo picture { width: 116px; } }

/* Ссылка на сертификат авторизованного продавца */
.hm-trust-link { display: grid; gap: 2px; text-decoration: none; color: inherit; }
.hm-trust-link span { color: var(--brand-strong) !important; font-weight: 600; }
.hm-trust-link:hover b { color: var(--brand-strong); }
.pp-auth { margin: 0; display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.pp-auth svg { color: var(--success); flex: none; }
.pp-auth a { font-weight: 600; }
@media (max-width: 900px) { .pp-auth { order: 5; } }

/* ==========================================================================
   Подбор масла: форма (шапка, главная, /podbor-masel), страница, панель
   ========================================================================== */
.v3-ff { display: grid; gap: var(--s3); margin: 0; }
.v3-ff-label { display: flex; align-items: center; gap: var(--s2); font-weight: 600; font-size: 15px; }
.v3-ff-row { display: flex; gap: var(--s2); }
.v3-ff-input { flex: 1 1 auto; min-width: 0; height: 56px; padding: 0 var(--s4); border: 2px solid var(--brand-strong); border-radius: var(--r); background: #fff; color: var(--ink); font: 17px var(--font-body); -webkit-appearance: none; appearance: none; }
.v3-ff-input::placeholder { color: #7A8688; }
.v3-ff-btn { flex: none; height: 56px; padding: 0 var(--s5); border: 0; border-radius: var(--r); background: var(--brand-strong); color: #fff; font: 700 17px var(--font-head); cursor: pointer; transition: background-color .15s; }
.v3-ff-btn:hover { background: var(--brand-hover); }
.v3-ff-sub { margin: var(--s1) 0 0; font-size: 14px; color: var(--muted); }
.v3-ff-brands { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.v3-ff-brands a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 20px; background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; }
.v3-ff-brands a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
/* На темном фоне (банер главной и страницы подбора) */
.hm-finder .v3-ff-label, .fp-hero .v3-ff-label { color: #fff; }
.hm-finder .v3-ff-label { font: 700 18px var(--font-head); }
.hm-finder .v3-ff-label svg { color: #2DC0C2; flex: none; }
.hm-finder .v3-ff-input, .fp-hero .v3-ff-input { border-color: transparent; }
.hm-finder .v3-ff-btn, .fp-hero .v3-ff-btn { background: var(--brand); color: #0B2E2F; }
.hm-finder .v3-ff-btn:hover, .fp-hero .v3-ff-btn:hover { background: #2DC0C2; }
.fp-hero .v3-ff-sub { color: #B8D9DA; }
.fp-hero .v3-ff-brands a { background: transparent; border-color: rgba(255, 255, 255, .3); color: #fff; min-height: 36px; }
.fp-hero .v3-ff-brands a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* Страница /podbor-masel */
.fp { display: grid; gap: var(--s5); }
.fp .pp-crumbs span { color: var(--muted); }
.fp-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: var(--s7); align-items: center; background: #0F3F41; color: #fff; border-radius: 12px; padding: var(--s6) var(--s7); }
.fp-hero .v3-ff { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: 10px; padding: var(--s5); }
.fp-hero-text { display: grid; gap: var(--s3); }
#main .fp-hero h1, .fp-hero h1 { background: none; padding: 0; margin: 0; width: auto; text-shadow: none; font: 700 34px/1.15 var(--font-head); color: #fff; text-wrap: balance; }
.fp-hero h1::after { display: none; }
.fp-hero-text p { margin: 0; font-size: 17px; color: #C9E3E3; }
.fp-facts { list-style: none; margin: var(--s2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); font-size: 14px; color: #B8D9DA; }
.fp-facts li { display: flex; align-items: center; gap: 8px; }
.fp-facts li::before { content: ""; width: 10px; height: 5px; border: solid #2DC0C2; border-width: 0 0 2px 2px; transform: rotate(-45deg) translateY(-2px); }
.fp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.fp-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4) var(--s5); font-size: 14px; }
.fp-steps b { display: block; font-size: 16px; color: var(--ink); }
.fp-step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-strong); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.fp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s5); align-items: start; }
.fp-results { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; scroll-margin-top: var(--s4); }
.fp-results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2); padding: 14px var(--s5); border-bottom: 1px solid var(--line); }
#content .fp-results-head h2, .fp-results-head h2 { margin: 0; padding: 0; border: 0; width: auto; font: 700 18px var(--font-head); color: var(--ink); }
.fp-results-head span { font-size: 13px; color: var(--muted); }
.fp-frame { display: block; width: 100%; height: 900px; border: 0; background: #F2F2F2; }
.fp-aside { display: grid; gap: var(--s4); position: sticky; top: var(--s4); }
.fp-card { display: grid; gap: var(--s3); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s5); }
#content .fp-card h2, .fp-card h2 { margin: 0; padding: 0; border: 0; width: auto; font: 700 17px/1.3 var(--font-head); color: var(--ink); }
.fp-card p { margin: 0; font-size: 14px; }
.fp-found { border: 2px solid var(--brand); }
.fp-found-form { display: flex; height: 48px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.fp-found-form:focus-within { border-color: var(--brand-strong); }
.fp-found-form input { flex: 1 1 auto; min-width: 0; border: 0; padding: 0 12px; font: 16px var(--font-body); color: var(--ink); background: #fff; -webkit-appearance: none; appearance: none; }
.fp-found-form input:focus { outline: none; }
.fp-found-form button { flex: none; width: 48px; border: 0; background: var(--brand-strong); color: #fff; cursor: pointer; }
.fp-phone { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: var(--r); background: var(--brand-strong); color: #fff !important; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.fp-phone:hover { background: var(--brand-hover); }
.fp-phone.is-alt { background: transparent; border: 1px solid var(--brand-strong); color: var(--brand-strong) !important; }
.fp-phone.is-alt:hover { background: var(--brand-tint); }
.fp-visc { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s2); }
.fp-visc a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 20px; color: var(--ink); font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums; }
.fp-visc a:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.fp-auth { display: flex; gap: var(--s3); align-items: center; padding: 14px var(--s5); text-decoration: none; color: var(--text); font-size: 14px; }
.fp-auth svg { color: var(--success); flex: none; }
.fp-auth b { display: block; color: var(--ink); }
.fp-text { max-width: none; }
.fp-callbar { display: none; }

/* Панель быстрого подбора из шапки */
.v3-fpanel { position: fixed; inset: 0; z-index: 1000; }
.v3-fpanel[hidden] { display: none; }
.v3-fpanel-backdrop { position: absolute; inset: 0; background: rgba(15, 63, 65, .35); opacity: 0; transition: opacity .2s; }
.v3-fpanel-box { position: absolute; top: var(--fp-top, 90px); right: var(--fp-right, 24px); width: min(560px, calc(100vw - 32px)); box-sizing: border-box; background: #fff; border-radius: 12px; box-shadow: 0 12px 40px rgba(15, 63, 65, .25); padding: var(--s5); display: grid; gap: 14px; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .2s; }
.v3-fpanel.is-open .v3-fpanel-backdrop { opacity: 1; }
.v3-fpanel.is-open .v3-fpanel-box { opacity: 1; transform: none; }
.v3-fpanel-top { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.v3-fpanel-title { margin: 0; font: 700 20px var(--font-head); color: var(--ink); }
.v3-fpanel-close { flex: none; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--page); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.v3-fpanel-close:hover { background: var(--brand-tint); }
.v3-fpanel .v3-ff-input { height: 52px; }
.v3-fpanel .v3-ff-btn { height: 52px; font-size: 16px; }
.v3-fpanel-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: 14px; }
.v3-fpanel-foot a { font-weight: 700; }
.v3-finder[aria-expanded="true"] { background: var(--brand-strong); color: #fff; }

@media (max-width: 1100px) {
	.fp-hero { grid-template-columns: 1fr; gap: var(--s5); padding: var(--s6); }
	.fp-grid { grid-template-columns: 1fr; }
	.fp-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.fp { gap: var(--s4); padding-bottom: 80px; }
	.fp-hero { padding: var(--s5); }
	.fp-hero .v3-ff { padding: 0; background: none; border: 0; }
	#main .fp-hero h1, .fp-hero h1 { font-size: 26px; }
	.fp-hero-text p { font-size: 15px; }
	.fp-facts { display: none; }
	.fp-hero .v3-ff-row { flex-direction: column; }
	.fp-hero .v3-ff-brands { flex-wrap: nowrap; overflow-x: auto; margin-right: calc(-1 * var(--s5)); padding-right: var(--s5); scrollbar-width: none; }
	.fp-hero .v3-ff-brands li { flex: none; }
	.fp-hero .v3-ff-brands a { min-height: 44px; }
	.fp-steps { grid-template-columns: 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s2) 0; }
	.fp-steps li { border: 0; padding: var(--s2) var(--s4); background: none; }
	.fp-results { margin: 0 calc(-1 * var(--s4)); border-radius: 0; border-left: 0; border-right: 0; }
	.fp-results-head { padding: var(--s3) var(--s4); }
	.fp-results-head span { display: none; }
	.fp-aside { grid-template-columns: 1fr; }
	.fp-callbar { display: flex; align-items: center; gap: var(--s3); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0, 0, 0, .06); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); }
	.fp-callbar span { flex: 1 1 auto; font-size: 14px; line-height: 1.3; }
	.fp-callbar b { display: block; color: var(--ink); }
	.fp-callbar a { display: inline-flex; align-items: center; gap: var(--s2); min-height: 48px; padding: 0 18px; border-radius: var(--r); background: var(--brand-strong); color: #fff !important; font-weight: 700; text-decoration: none; }
	/* Панель из шапки — нижний лист */
	.v3-fpanel-box { top: auto; right: 0; left: 0; bottom: 0; width: auto; border-radius: 16px 16px 0 0; padding: var(--s4) var(--s4) calc(var(--s5) + env(safe-area-inset-bottom)); transform: translateY(24px); max-height: 90vh; overflow-y: auto; }
	.v3-fpanel .v3-ff-row { flex-direction: column; }
	.v3-fpanel .v3-ff-input, .v3-fpanel .v3-ff-btn { height: 56px; }
	.v3-fpanel .v3-ff-brands a { min-height: 44px; }
	.hm-finder .v3-ff-row { flex-direction: column; }
}

/* Характеристики-фильтры в карточке товара */
.pp-spec-values { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.pp-spec-values a, .pp-spec-values span { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: 16px; font-size: 14px; line-height: 1.2; }
.pp-spec-values a { background: var(--brand-tint); color: var(--brand-strong); text-decoration: none; font-weight: 600; }
.pp-spec-values a:hover { background: var(--brand-strong); color: #fff; }
.pp-spec-values span { background: var(--page); color: var(--text); }
.pp-chips li a { color: inherit; text-decoration: none; }
.pp-chips li a:hover { text-decoration: underline; }
.pp-specs { grid-template-columns: 1fr; }
.pp-specs div { grid-template-columns: minmax(140px, 220px) 1fr; }

@media (max-width: 900px) {
	.pp-specs div { grid-template-columns: 1fr; gap: var(--s2); }
}

/* Заглушка для товаров без фото */
.v3-noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100%; aspect-ratio: 1; background: var(--page); border-radius: var(--r); color: #9AA7A8; text-align: center; font-size: 13px; line-height: 1.3; padding: 12px; box-sizing: border-box; }
.v3-noimg span { color: var(--muted); }
.v3-noimg--big { max-width: 560px; gap: 12px; padding: 24px; }
.v3-noimg--big p { margin: 0; color: var(--muted); font-size: 15px; }
.v3-noimg--big .v3-noimg-title { color: var(--ink); font-weight: 600; font-size: 17px; }
.v3-noimg--big a { font-weight: 700; white-space: nowrap; }

/* Попередження про строки доставки */
.v3-notice { background: #FFF4D6; border-bottom: 1px solid #F0D58A; color: #5C4200; }
.v3-notice[hidden] { display: none; }
.v3-notice-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.v3-notice-row > svg { flex: none; color: #B07A00; }
.v3-notice-row p { margin: 0; flex: 1 1 auto; font-size: 14px; line-height: 1.4; }
.v3-notice-row a { color: #5C4200; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.v3-notice-close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #5C4200; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.v3-notice-close:hover { background: rgba(92, 66, 0, .1); }
.v3-alert { display: flex; gap: 10px; align-items: flex-start; border-radius: var(--r); padding: 12px 14px; margin: 0 0 var(--s4); }
.v3-alert p { margin: 0; }
.v3-alert--warn { background: #FFF4D6; border: 1px solid #F0D58A; color: #5C4200; }
.v3-alert--warn > svg { flex: none; color: #B07A00; margin-top: 1px; }
.ck-notice { font-size: 14px; line-height: 1.45; }

#content .v3-doc h3, .v3-doc h3 { margin: var(--s4) 0 var(--s2); padding: 0; border: 0; font: 700 17px/1.35 var(--font-head); color: var(--ink); }
.v3-doc .v3-alert p { margin: 0; }

/* Інформаційні сторінки: текст + права колонка */
.doc-layout { display: grid; grid-template-columns: minmax(0, 900px) minmax(260px, 340px); gap: var(--s5); align-items: start; }
.doc-layout .v3-doc { max-width: none; }
.doc-aside { display: grid; gap: var(--s4); position: sticky; top: var(--s4); }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: var(--s4) var(--s5); }
.doc-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
#content .doc-card h2, .doc-card h2 { margin: 0; padding: 0; border: 0; width: auto; font: 700 17px/1.3 var(--font-head); color: var(--ink); }
.doc-card-head a { font-size: 14px; font-weight: 600; white-space: nowrap; }
.doc-products, .doc-posts { list-style: none; margin: 0; padding: 0; display: grid; }
.doc-products li + li, .doc-posts li + li { border-top: 1px solid var(--line); }
.doc-products a { display: flex; gap: var(--s3); align-items: center; padding: 10px 0; text-decoration: none; color: var(--ink); }
.doc-products a:hover .doc-product-name { color: var(--brand-strong); text-decoration: underline; }
.doc-thumb { flex: none; width: 56px; height: 56px; border-radius: var(--r); background: var(--page); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #9AA7A8; }
.doc-thumb img { width: 56px; height: 56px; object-fit: contain; }
.doc-product-info { display: grid; gap: 2px; min-width: 0; }
.doc-product-name { font-size: 14px; line-height: 1.35; font-weight: 600; }
.doc-product-price { font-size: 14px; color: var(--muted); }
.doc-product-price b { color: var(--ink); }
.doc-product-price b.is-sale { color: var(--accent); }
.doc-posts a { display: block; padding: 10px 0; font-size: 14px; line-height: 1.4; font-weight: 600; text-decoration: none; }
.doc-posts a:hover { text-decoration: underline; }
.doc-help { display: grid; gap: var(--s2); }
.doc-help p { margin: 0; font-size: 14px; color: var(--text); }
.doc-help-phone { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: var(--s2); border-radius: var(--r); background: var(--brand-strong); color: #fff !important; font-weight: 700; text-decoration: none; font-variant-numeric: tabular-nums; }
.doc-help-phone:hover { background: var(--brand-hover); }
.doc-help-link { font-size: 14px; font-weight: 600; text-align: center; }
@media (max-width: 1100px) {
	.doc-layout { grid-template-columns: 1fr; }
	.doc-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

/* Картка товару: опис ліворуч, доставка й консультація праворуч */
.pp-details { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; }
.pp-details > #pp-specs { grid-column: 1 / -1; }
.pp-details-main { display: grid; gap: var(--s5); min-width: 0; }
.pp-details-side { display: grid; gap: var(--s4); position: sticky; top: var(--s4); }
.pp-side-card h2 { margin-bottom: var(--s3); }
.pp-side-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: var(--s3); }
.pp-side-list li { display: flex; gap: var(--s3); align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text); }
.pp-side-list svg { flex: none; color: var(--brand-strong); margin-top: 1px; }
.pp-side-list b { display: block; color: var(--ink); font-size: 15px; }
.pp-side-more { font-size: 14px; font-weight: 600; }
@media (max-width: 1100px) {
	.pp-details { grid-template-columns: 1fr; }
	.pp-details-side { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}
#content .pp-side-card h2, .pp-side-card h2 { font-size: 19px; }

/* Фасовки без наявності: показуємо, але приглушено */
.pp-vol.is-out { background: var(--page); border-style: dashed; }
.pp-vol.is-out.is-current { border-style: solid; }
.pp-vol.is-out b, .pp-vol.is-out span { color: var(--muted); }
.pp-vol small.pp-vol-out { color: var(--muted); font-weight: 600; }

/* Нова Пошта в кошику: спосіб отримання + пошук міста/відділення/вулиці */
.ck-np { display: grid; gap: var(--s4); padding: var(--s4); background: var(--page); border-radius: var(--r); }
.ck-np[hidden], .ck-np [hidden] { display: none; }
.ck-np-types { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--s2); }
.ck-np-types legend { font: 600 15px/1.4 var(--font-body); color: var(--ink); padding: 0; margin: 0 0 var(--s2); }
.ck-np-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.ck-np-options .ck-delivery { grid-template-columns: auto 1fr; background: var(--surface); }
.ck-np-options .ck-delivery.is-off { opacity: .55; cursor: not-allowed; }
.ck-np-addr { display: grid; gap: var(--s4); }
.ck-np-house { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.np-combo { position: relative; }
.np-list {
	position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px);
	max-height: 300px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: 6px;
	box-shadow: 0 8px 24px rgba(27, 36, 38, .14);
}
.np-list li { padding: 10px 12px; font-size: 15px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.np-list li[role=option]:hover, .np-list li[aria-selected=true] { background: var(--brand-tint); }
.np-list li.np-note { color: var(--muted); cursor: default; }
@media (max-width: 640px) {
	.ck-np { padding: var(--s3); }
	.ck-np-options { grid-template-columns: 1fr; }
}

/* Кошик: «Не телефонувати мені» */
.ck-check { display: flex; gap: var(--s2); align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text); cursor: pointer; }
.ck-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand-strong); }

/* Головна: блок «Каталог» — тонована секція (варіант 1) */
.hm-catalog { background: var(--brand-tint); border: 1px solid #C5E3E3; border-radius: 16px; padding: var(--s6); gap: var(--s5); }
.hm-catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s4); }
.hm-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-strong); }
#content .hm-catalog h2 { font-size: 30px; font-weight: 800; }
.hm-catalog-cta { display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 18px; border-radius: var(--r); background: var(--brand-strong); color: #fff !important; font-weight: 700; text-decoration: none; white-space: nowrap; }
.hm-catalog-cta:hover { background: var(--brand-hover); }
.hm-catalog .hm-cats { gap: var(--s4); }
.hm-catalog .hm-cat { gap: var(--s3); padding: var(--s5); border: 1px solid transparent; border-radius: 12px; box-shadow: 0 1px 2px rgba(15, 63, 65, .08); align-content: stretch; grid-template-rows: auto auto 1fr auto; transition: border-color .15s, box-shadow .15s; }
.hm-catalog .hm-cat:hover { border-color: var(--brand-strong); box-shadow: 0 6px 18px rgba(15, 63, 65, .12); }
.hm-catalog .hm-cat b { font-size: 18px; }
.hm-cat-icon { width: 48px; height: 48px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-strong); display: flex; align-items: center; justify-content: center; }
.hm-catalog .hm-cat span.hm-cat-icon { display: flex; overflow: visible; }
.hm-catalog .hm-cat .hm-cat-count { display: block; align-self: end; font-size: 14px; font-weight: 600; color: var(--brand-strong); -webkit-line-clamp: unset; }
@media (max-width: 900px) {
	.hm-catalog { padding: var(--s4); gap: var(--s4); border-radius: 12px; }
	.hm-catalog-head { flex-direction: column; align-items: stretch; }
	.hm-catalog-cta { justify-content: center; }
	#content .hm-catalog h2 { font-size: 22px; }
	.hm-catalog .hm-cats { gap: var(--s2); }
	.hm-catalog .hm-cat { padding: var(--s3); gap: var(--s2); }
	.hm-cat-icon { width: 40px; height: 40px; }
	.hm-catalog .hm-cat b { font-size: 15px; }
	.hm-catalog .hm-cat .hm-cat-count { font-size: 13px; }
}

/* Блог: обкладинки в списку статей */
.bl-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.bl-list li { padding: 0; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.bl-list li:hover { border-color: var(--brand-strong); box-shadow: 0 6px 18px rgba(15, 63, 65, .10); }
.bl-cover { display: block; aspect-ratio: 16 / 9; background: var(--brand-tint); }
.bl-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bl-text { padding: var(--s4) var(--s5) var(--s5); display: grid; gap: var(--s2); align-content: start; }
#content .bl-list h2 { margin: 0; font-size: 17px; }
.bl-list p { font-size: 14px; line-height: 1.5; }
.bp-cover { margin: 0 0 var(--s5); }
.bp-cover img { display: block; width: 100%; height: auto; border-radius: var(--r); }
@media (max-width: 1100px) { .bl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .bl-list { grid-template-columns: 1fr; } .bl-text { padding: var(--s3) var(--s4) var(--s4); } }

/* Укрпошта: два способи отримання, підказка з індексом */
.ck-up-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.up-house-hint.is-warn { color: #6B4E00; font-weight: 600; }
@media (max-width: 640px) { .ck-up-options { grid-template-columns: 1fr; } }
