/* ============================================================
   Woodsol — styles.css
   Общий слой: резеты, шапка, меню, футер, модалка, cookie, формы.
   Палитра: dark #171a20 · copper #c08552/#8d5931 · green-CTA #69ae28 (текстовый вариант #527d22)
            aqua #1f7dc2 · paper #efece6
   Шрифты: Montserrat (заголовки) · Golos Text (текст) · IBM Plex Mono (метки)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: "Golos Text", system-ui, sans-serif;
	color: #232830;
	background: #efece6;
}
/* Интерлиньяж задаётся текстовым ролям, а не body: в макете у подписей,
   ссылок меню и подвала он «normal», и наследование от body делало их выше. */
p, li, td, th, dd, dt, blockquote, figcaption { line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
/* Блокировка прокрутки под модалкой.
   Было `overflow: hidden` — этого мало: страница под открытым окном всё равно
   прокручивалась (замер: уехала на 1500px при открытой модалке). position:fixed
   с отрицательным top держит надёжно и не теряет позицию. */
.ws-noscroll { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
a { color: var(--ws-copper); text-decoration: none; }
a:hover { opacity: .82; }
h1, h2, h3, h4 { font-family: "Montserrat", sans-serif; }
h1, h2, h3, h4, p, li, td, th, summary, dd, dt { overflow-wrap: break-word; }

/* Колонка контента одна на весь сайт: не шире 1240px, по центру, поля 40px.
   Раньше .ws-wrap давал 1100px, а секции с сеткой прямо на .ws-sec-* шли
   во всю ширину окна — на 1920px заголовки соседних блоков стояли на x40 и x410. */
.ws-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--ws-gutter); box-sizing: border-box; }

/* ---------------- Шапка ---------------- */
.ws-header {
	position: sticky; top: 0; z-index: 100;
	background: #171a20;
	/* В эталоне шапка 70px. 74px были расхождением без записанного решения:
	   при scroll-margin-top:80px у якорных секций запас сжимался с 10px до 6px. */
	height: 70px;
	/* Шапка тянется во всю ширину (тёмная полоса), но её содержимое стоит
	   в той же колонке 1240px, что и контент страницы. Раньше здесь было
	   просто padding: 0 var(--ws-gutter) — на 1920px логотип оказывался
	   на x40, а первый заголовок страницы на x340. */
	padding-left:  max(var(--ws-gutter), (100% - 1240px) / 2);
	padding-right: max(var(--ws-gutter), (100% - 1240px) / 2);
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
/* Оригинальный фирменный знак Sirca 600×152: ширина выводится из пропорций,
   не из отдельных букв/векторного суррогата. На тёмном фоне — белая версия. */
.ws-logo { display: flex; align-items: center; text-decoration: none; flex: none; min-width: 0; }
.ws-brandmark-picture { display: block; flex: none; line-height: 0; }
.ws-brandmark { display: block; width: auto; height: 40px; max-width: 160px; object-fit: contain; }
.ws-footer-brand .ws-brandmark { height: 36px; max-width: 144px; }

.ws-nav { margin-left: auto; }
.ws-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 22px; }
.ws-menu li, .ws-menu a { line-height: normal; }
.ws-menu a { color: #d8dbe0; font-size: 14px; font-weight: 500; }
.ws-menu a:hover { color: #fff; }
.ws-menu .current-menu-item > a, .ws-menu .current_page_item > a { color: #d0a077; }

.ws-cta { display: flex; align-items: center; gap: 16px; flex: none; }
.ws-msgr { display: flex; align-items: center; gap: 8px; }
.ws-msgr a { display: flex; }
.ws-msgr img { width: 28px; height: 28px; display: block; }
.ws-btn-cta {
	background: var(--ws-green-ink); color: #fff; border: none;
	font: 600 14px "Golos Text", sans-serif;
	padding: 11px 22px; border-radius: 10px; cursor: pointer;
	font-family: inherit; transition: background .15s;
}
.ws-btn-cta:hover { background: var(--ws-green-ink2); }
.ws-burger { display: none; background: none; border: none; padding: 8px; cursor: pointer; }

/* Мобильное меню */
@media (max-width: 980px) {
	.ws-nav {
		position: fixed; inset: 70px 0 auto 0; z-index: 99;
		background: #171a20; border-top: 1px solid #262b34;
		transform: translateY(-140%); transition: transform .25s ease;
		margin: 0; box-shadow: 0 24px 50px rgba(0,0,0,.4);
	}
	.ws-nav-open .ws-nav { transform: translateY(0); }
	.ws-menu { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0; }
	.ws-menu li { border-bottom: 1px solid #22262e; }
	.ws-menu a { display: block; padding: 15px var(--ws-gutter); font-size: 15px; }
	.ws-burger { display: inline-flex; }
	.ws-msgr { display: none; }
}
@media (max-width: 560px) {
	.ws-header { gap: 12px; }
	.ws-logo .ws-brandmark { height: clamp(30px, 9.5vw, 40px); }
	.ws-btn-cta { padding: 10px 16px; font-size: 13px; }
}

/* ---------------- Футер: завершение маршрута, общая сетка с секциями ---------------- */
.ws-footer { background: #101317; padding: 52px 0 24px; color: #c9ccd2; }
/* Подвал использует ту же внешнюю линию, что header, hero и тело страницы.
   max-width вместе с внутренним gutter сдвигал его содержимое ещё на 40px. */
.ws-footer-inner {
	max-width: none;
	margin: 0;
	padding-left: max(var(--ws-gutter), (100% - 1240px) / 2);
	padding-right: max(var(--ws-gutter), (100% - 1240px) / 2);
	box-sizing: border-box;
}
/* Не три равных пустых поля, а широкая бренд-колонка и два содержательных маршрута. */
.ws-footer-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, .8fr) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 76px);
	padding-bottom: 36px;
	border-bottom: 1px solid rgba(255,255,255,.12);
}
.ws-footer-cols > * { min-width: 0; }
.ws-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.ws-footer-about { font-size: 14px; color: #abb2ba; line-height: 1.75; max-width: 360px; }
.ws-footer-col { display: flex; flex-direction: column; gap: 13px; font-size: 14px; overflow-wrap: anywhere; }
.ws-footer-h { font: 600 11px "IBM Plex Mono", monospace; color: #9099a5; letter-spacing: .1em; margin-bottom: 2px; }
/* Меню подвала печатает wp_nav_menu списком: колонка уже flex-столбец,
   поэтому <ul> сбрасываем в такой же столбец с тем же шагом. */
.ws-footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ws-footer-col a { color: #c9ccd2; }
.ws-footer-col a:hover { color: #fff; }
.ws-footer-phone { color: #fff !important; font-weight: 600; font-size: 16px; }
.ws-footer-msgr { display: flex; gap: 10px; margin-top: 4px; }
.ws-footer-msgr img { width: 30px; height: 30px; }
.ws-footer-bottom {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
	align-items: start;
	padding-top: 20px; font-size: 12px; color: #949ba6; gap: 10px 24px; /* 3.85:1 -> 6.6:1 */
}
.ws-footer-bottom a { color: #949ba6; } /* 3.85:1 -> 6.6:1 на #101317 */
.ws-footer-bottom a span { color: #8a919b; }
.ws-footer-bottom > * { min-width: 0; overflow-wrap: anywhere; }
.ws-footer-bottom > :last-child { justify-self: end; white-space: nowrap; }
@media (max-width: 900px) {
	.ws-footer { padding-top: 40px; }
	.ws-footer-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 32px; }
	.ws-footer-cols > :first-child { grid-column: 1 / -1; }
	.ws-footer-bottom { grid-template-columns: minmax(0, 1fr) auto; }
	.ws-footer-bottom > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
	.ws-footer-bottom > :last-child { grid-column: 2; grid-row: 1; }
}
@media (max-width: 560px) {
	.ws-footer { padding-top: 34px; }
	.ws-footer-cols { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-bottom: 28px; }
	.ws-footer-cols > :first-child { grid-column: auto; }
	.ws-footer-col { gap: 10px; }
	.ws-footer-about { max-width: none; }
	.ws-footer-bottom { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.ws-footer-bottom > :nth-child(2), .ws-footer-bottom > :last-child { grid-column: auto; grid-row: auto; justify-self: start; }
}


/* ---------------- Формы ---------------- */
.ws-form { display: flex; flex-direction: column; gap: 12px; }
/* Пять preset-форм в lead modal: author display:flex не должен перекрывать hidden. */
.ws-form[hidden] { display: none; }
.ws-form input[type=text], .ws-form input[type=tel], .ws-form input[type=email], .ws-form textarea {
	border: 1.5px solid #e3dfd7; background: #faf8f4; border-radius: 10px;
	padding: 14px 16px; font: 400 15px "Golos Text", sans-serif; color: #232830; width: 100%;
}
.ws-form textarea { resize: vertical; }
.ws-form input:focus, .ws-form textarea:focus { outline: none; border-color: #c08552; }
.ws-form-submit {
	background: var(--ws-green-ink); color: #fff; border: none; font: 600 15px "Golos Text", sans-serif;
	padding: 14px; border-radius: 10px; cursor: pointer;
}
.ws-form-submit:hover { background: var(--ws-green-ink2); }
.ws-form-submit:disabled { opacity: .6; cursor: default; }
/* --- Ошибки полей --- */
/* Подпись под самим полем, а не одна строка на всю форму: человек должен
   видеть, ГДЕ ошибка, а не читать список того, что могло пойти не так. */
.ws-form input.is-invalid,
.ws-form textarea.is-invalid,
.ws-form select.is-invalid { border-color: #c0392b; background: #fdf6f5; }
/* Кольцо фокуса — тенью, а не обводкой: outline с отступом попадает
   в область прокрутки и в узкой модалке даёт горизонтальный скролл. */
.ws-form .is-invalid:focus { border-color: #c0392b; box-shadow: 0 0 0 3px rgba(192,57,43,.12); }
/* Согласие: помечаем сам чекбокс. Обводить весь абзац с ссылками незачем —
   читается как ошибка в тексте согласия, а не в галочке. */
.ws-consent.is-invalid .ws-cb { border-color: #c0392b; background: #fdf6f5; }
.ws-consent.is-invalid .ws-cb:checked { background: var(--ws-green-ink); border-color: var(--ws-green-ink); }
/* Текст ошибки — только для скринридера: из потока выведен, высоту формы
   не меняет. Видимый признак — рамка поля. */
.ws-sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* Поля сценария «расчёт объёма»: площадь и тип объекта в один ряд. */
.ws-form-calc { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.4fr); gap: 12px; }
.ws-form-calc[hidden] { display: none; }
.ws-form-calc input[type=number] {
	border: 1.5px solid #e3dfd7; background: #faf8f4; border-radius: 10px;
	padding: 14px 16px; font: 400 15px "Golos Text", sans-serif; color: #232830; width: 100%;
}
.ws-select {
	border: 1.5px solid #e3dfd7; background: #faf8f4; border-radius: 10px;
	padding: 14px 16px; font: 400 15px "Golos Text", sans-serif; color: #232830;
	width: 100%; appearance: none; cursor: pointer;
	background-image: linear-gradient(45deg, transparent 50%, #756e60 50%), linear-gradient(135deg, #756e60 50%, transparent 50%);
	background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
	background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
.ws-select:focus, .ws-form-calc input:focus { outline: none; border-color: #c08552; }
@media (max-width: 480px) { .ws-form-calc { grid-template-columns: minmax(0,1fr); } }

/* Место под статус зарезервировано заранее: без этого появление ответа
   сервера сдвигает кнопку и в модалке меняет её высоту. */
.ws-form-status { margin: 4px 0 0; font-size: 13px; line-height: 1.4; }
.ws-form-status[hidden] { display: none; }
.ws-form-status.is-ok { color: #4e8a1f; }
.ws-form-status.is-err { color: #c0392b; }
.ws-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Согласие + кастомный чекбокс */
/* Текст согласия на обработку ПДн — юридически значимый и самый мелкий на
   форме: 3.84:1 для него недопустимо. */
.ws-consent { display: flex; gap: 9px; align-items: flex-start; font: 400 11.5px/1.5 "Golos Text", sans-serif; color: #6f6a5e; cursor: pointer; }
.ws-consent span { flex: 1; }
.ws-consent a { color: var(--ws-copper); text-decoration: underline; }
.ws-cb {
	appearance: none; -webkit-appearance: none; flex: none;
	width: 18px; height: 18px; margin: 1px 0 0; border: 1.6px solid #c9c2b4;
	border-radius: 5px; background: #fff; cursor: pointer; position: relative; transition: .12s;
}
.ws-cb:checked { background: var(--ws-green-ink); border-color: var(--ws-green-ink); }
.ws-cb:checked::after {
	content: ""; position: absolute; left: 5px; top: 1.5px;
	width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.ws-cb:focus-visible { outline: 2px solid var(--ws-copper); outline-offset: 2px; }

/* ---------------- Модалка ---------------- */
.ws-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.ws-modal.is-open { display: flex; }
.ws-modal[hidden] { display: none; }
.ws-modal-backdrop { position: absolute; inset: 0; background: rgba(15,17,21,.62); cursor: default; }
.ws-modal-card {
	position: relative; width: 100%; max-width: 440px; background: #fff;
	border-radius: 18px; padding: 30px 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
/* Контактные формы могут быть выше невысокого экрана; прокрутка внутри окна, не страницы. */
#lead-modal .ws-modal-card { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; }
.ws-modal-x { position: absolute; top: 10px; right: 16px; font-size: 26px; line-height: 1; color: #8a8172; cursor: pointer; background: none; border: none; }
.ws-modal-title { font: 800 23px "Montserrat", sans-serif; color: #232830; margin: 0 0 6px; }
.ws-modal-sub { font: 400 14px/1.5 "Golos Text", sans-serif; color: #6a6256; margin: 0 0 20px; }

/* ---------------- Cookie ---------------- */
.ws-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 120;
	background: #171a20; border: 1px solid #2a2f38; border-radius: 14px;
	box-shadow: 0 20px 60px rgba(0,0,0,.45); padding: 16px 18px;
}
.ws-cookie[hidden] { display: none; }
.ws-cookie-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.ws-cookie-inner p { margin: 0; flex: 1; min-width: 230px; font: 400 12.5px/1.55 "Golos Text", sans-serif; color: #b6bcc5; }
.ws-cookie-inner a { color: #d0a077; text-decoration: underline; }
.ws-cookie-accept {
	background: var(--ws-green-ink); color: #fff; border: none; font: 600 13.5px "Golos Text", sans-serif;
	padding: 11px 26px; border-radius: 9px; cursor: pointer; white-space: nowrap;
}
.ws-cookie-accept:hover { background: var(--ws-green-ink2); }

/* ---------------- Карточки (каталог, блог) ---------------- */
.ws-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ws-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #e3dfd7; position: relative; display: flex; flex-direction: column; color: inherit; transition: box-shadow .15s, transform .15s; }
.ws-card:hover { box-shadow: 0 14px 34px rgba(0,0,0,.1); transform: translateY(-2px); color: inherit; }
.ws-card-tag { position: absolute; top: 12px; left: 12px; color: #fff; font: 600 11px "Golos Text", sans-serif; padding: 4px 10px; border-radius: 6px; z-index: 1; }
.ws-card-img { aspect-ratio: 16 / 10; background: #fff; display: flex; align-items: center; justify-content: center; padding: 14px; }
.ws-card-noimg { border: 1.5px dashed #cfc7ba; border-radius: 10px; padding: 16px 20px; font: 500 11px "IBM Plex Mono", monospace; color: #756e60; text-align: center; }
.ws-card-body { padding: 16px 18px 18px; border-top: 1px solid #efece6; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ws-cards--cat .ws-card-body { gap: 7px; }
/* В эталоне строка цены отбита от описания дополнительными 6px. */
.ws-card-body > .ws-text-15 { margin-top: auto; padding-top: 6px; }
/* В карточке вертикальный ритм задаёт gap контейнера; собственный
   margin-bottom заголовка (.ws-h6) в эталоне отсутствует и здесь давал
   двойной интервал (8px margin + 8px gap = 16px вместо 8px). */
/* Заголовок карточки каталога в эталоне 16px, а не базовые 15.5px. */
.ws-cards--cat .ws-h6 { font-size: 16px; }

/* ---------------- FAQ (details/summary) ---------------- */
summary { list-style: none; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
details[open] .ws-faq-plus { transform: rotate(45deg); }


/* ============================================================
   ДИЗАЙН-СИСТЕМА (вынесено из инлайн-стилей шаблонов)
   Один класс на роль. Варианты, отличавшиеся только дрейфом
   значений, сведены к одной шкале.
   ============================================================ */
:root {
	--ws-ink:      #171a20;
	--ws-ink-2:    #1d2129;
	--ws-text:     #232830;
	--ws-text-2:   #4a5058;
	/* Вторичный текст. Был #6e7480: 3.98:1 на бумажном фоне при кегле 12.5px —
	   ниже AA. Для тёмных подложек есть отдельный токен ниже. */
	--ws-muted:    #5f6570;
	/* Тот же вторичный текст на тёмной секции: светлый серый, 5.5:1 и выше. */
	--ws-muted-dark: #949ba6;
	--ws-muted-2:  #8a919b;
	/* Медный текст: var(--ws-copper) давал 4.17:1 на белом и 3.53:1 на бумажном фоне —
	   ниже AA для кикеров, артикулов и ссылок 11–14px. */
	--ws-copper:   #8d5931;
	--ws-copper-2: #c08552;
	--ws-copper-3: #d0a077;
	--ws-green:    #69ae28;
	/* Зелёный под белым текстом. Брендовый #69ae28 с белым даёт 2.73:1 —
	   ниже WCAG AA (4.5:1 для текста мельче 18.66px bold), а это подписи всех
	   кнопок сайта. Затемнённый вариант даёт 4.87:1 при том же тоне; исходный
	   остаётся для декора без текста (точки, заливка чекбокса). */
	--ws-green-ink:  #527d22;
	--ws-green-ink2: #476f1d;
	--ws-aqua:     #1f7dc2;
	--ws-paper:    #efece6;
	--ws-line:     #e3dfd7;
	--ws-r-sm: 7px;  --ws-r-md: 10px; --ws-r-lg: 14px; --ws-r-xl: 18px;
	/* Боковое поле колонки. В макете это ступени, а не плавная формула:
	   40px → 24px на планшете → 16px на телефоне. Прежний clamp(18px,5vw,40px)
	   давал на 768px 38.4px вместо 24px — колонка была уже макета на 29px
	   с каждой стороны. Самое заметное расхождение по отступам. */
	--ws-gutter: 40px;
}
@media (max-width: 980px) { :root { --ws-gutter: 24px; } }
@media (max-width: 560px) { :root { --ws-gutter: 16px; } }

/* --- Надзаголовки --- */
.ws-eyebrow { font: 600 12px "IBM Plex Mono", monospace; letter-spacing: .14em; color: var(--ws-copper); margin-bottom: 12px; }
.ws-eyebrow--sm { font-size: 11px; letter-spacing: .12em; }
.ws-eyebrow--mb14 { margin-bottom: 14px; }
.ws-eyebrow--xs { font-size: 10px; letter-spacing: .12em; }
/* Надзаголовок FAQ: в эталоне отступ 10px против общих 12px. */
.ws-eyebrow--faq { margin-bottom: 10px; }
/* Внутри ряда и «тесной» шапки отступ держит контейнер — в эталоне у самого
   надзаголовка его нет. Без этого ряд героя выше макета на 12px. */
.ws-row > .ws-eyebrow, .ws-sechead--tight .ws-eyebrow { margin-bottom: 0; }
.ws-eyebrow--dim { color: #fff; } /* полупрозрачный белый на зелёном давал 3.86:1 */
[class*="ws-bg-ink"] .ws-eyebrow, .ws-darkpanel .ws-eyebrow,
.ws-tile--dark .ws-eyebrow, .ws-tile--ink .ws-eyebrow { color: var(--ws-copper-3); }

/* --- Заголовки --- */
.ws-h1 { font: 800 clamp(30px, 4.4vw, 46px)/1.08 "Montserrat", sans-serif; color: #fff; margin: 0 0 14px; text-wrap: balance; }
/* Заголовок листингов в макете не «плывёт»: 46px до 560px, ниже — 34px
   (см. медиазапрос). Общий clamp давал на планшете 41–43px.
   На главной свои ступени — .home h1. */
body:not(.home) .ws-h1 { font-size: 46px; }
.ws-h1--xl { font-size: clamp(32px, 5vw, 52px); line-height: 1.08; margin-bottom: 18px; }
.ws-h2 { font: 800 clamp(28px, 4vw, 34px)/1.15 "Montserrat", sans-serif; color: var(--ws-text); margin: 0 0 16px; text-wrap: balance; }
.ws-h2--light { color: #fff; }
.ws-h2--sm { font-size: clamp(26px, 3.6vw, 32px); }
.ws-h3 { font: 800 clamp(22px, 2.6vw, 30px)/1.2 "Montserrat", sans-serif; color: var(--ws-text); margin: 0 0 12px; }
/* h4–h6 — «подзаголовки» (карточки, плитки, шаги, контакты). В эталоне это
   роль Golos Text (вес 600/700); Montserrat в макете встречается только
   в весе 800 (h1/h2/h3, статы, лого). Возврат гарнитуры к эталону. */
.ws-h4 { font: 700 19px/normal "Golos Text", sans-serif; color: var(--ws-text); margin: 0 0 6px; }
.ws-h5 { font: 700 17px/normal "Golos Text", sans-serif; color: var(--ws-text); margin: 0; }
/* В эталоне подзаголовок идёт без нижнего отступа: расстояние задаёт gap
   родителя. 8px остаются только там, где они в макете есть — у плиток. */
.ws-h6 { font: 700 15.5px/normal "Golos Text", sans-serif; color: var(--ws-text); margin: 0; }
.ws-h6--md { font-size: 16px; font-weight: 600; line-height: 1.3; }   /* заголовок карточки товара */
.ws-h6--16 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }  /* плитки: интерлиньяж normal */
.ws-h6--sm { font-size: 14px; font-weight: 600; }

/* --- Текст --- */
.ws-lead  { font-size: 16px; line-height: 1.6; color: var(--ws-text-2); margin: 0 0 22px; max-width: 640px; }
.ws-lead--light { color: #aab0b8; }
/* Лид на контактах: в эталоне 17px, без нижнего отступа, колонка 620px.
   Единичный вариант — модификатор на вхождение, базовый .ws-lead не трогаем. */
.ws-lead--contacts { font-size: 17px; line-height: 1.55; margin-bottom: 0; max-width: 620px; }
.ws-lead--lg { font-size: 18px; line-height: 1.55; margin-bottom: 26px; max-width: 620px; }
/* Лид в шапке листингов: 17px, колонка 620px, отступ 26px. */
.ws-lead--cat { font-size: 17px; line-height: 1.55; margin-bottom: 26px; max-width: 620px; }
/* Отдельные вхождения, где в эталоне отступ другой. */
.ws-lead--mb14 { margin-bottom: 14px; }
.ws-lead--mb24 { margin-bottom: 24px; }
.ws-lead--flush { margin-bottom: 0; }
.ws-lead--sm { font-size: 15.5px; }
.ws-prose { font-size: 16.5px; line-height: 1.7; color: #3a3f46; }
.ws-muted { font-size: 12.5px; line-height: 1.5; color: var(--ws-muted); }
.ws-muted--tight { line-height: normal; }
/* Крошки: woodsol_breadcrumbs() вешает .ws-muted на каждую ссылку,
   поэтому правило должно доставать и до потомков. */
/* Крошки — флекс-ряд: расстояние между пунктами задаёт gap, а не пробел
   в разметке. При 12.5px обычный пробел даёт около 3px, и «Главная › Каталог»
   читается одним слипшимся куском. Заодно ряд аккуратно переносится на узком
   экране, а не рвётся по середине пункта. */
.ws-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 9px;
	line-height: normal; font-weight: 500; }
.ws-crumbs .ws-muted { line-height: normal; font-weight: 500; }
.ws-crumbs__sep { flex: none; opacity: .9; }
.ws-muted--xs { font-size: 11px; }
.ws-muted--strong { font-size: 16px; font-weight: 600; line-height: normal; }
.ws-muted--lg { font-size: 13px; }
.ws-muted--xl { font-size: 13.5px; line-height: 1.55; }
.ws-muted--dim { color: var(--ws-muted-2); }
/* На зелёной панели в эталоне два размера: подпись под статом 13.5px/1.5
   и строки списка 13px/1.45. Раньше оба шли одним 13px/1.5. */
.ws-muted--onDark { font-size: 13.5px; line-height: 1.5; color: #fff; } /* полупрозрачный белый на зелёном давал 4.4:1 */
.ws-muted--onDark.ws-muted--row { font-size: 13px; line-height: 1.45; }
.ws-meta  { margin-top: auto; font-size: 12px; color: #756e60; }
.ws-kicker { font: 600 11px "Golos Text", sans-serif; color: var(--ws-copper); text-transform: uppercase; letter-spacing: .05em; }

/* --- Числа и артикулы --- */
.ws-num  { font: 600 22px "IBM Plex Mono", monospace; color: var(--ws-copper); }
/* Эталон: 17px-числа белые (подвал карточки героя), 20px и 26px — #c98a58.
   Базовый .ws-num (22px) в эталоне действительно var(--ws-copper) — его не трогаем. */
.ws-num--xs { font-size: 17px; color: #fff; }
.ws-num--sm { font-size: 20px; color: #c98a58; }
.ws-num--lg { font-size: 26px; color: #c98a58; }
.ws-sku  { font: 600 11.5px "IBM Plex Mono", monospace; color: var(--ws-copper); }
.ws-cards--rel .ws-sku { font-size: 11px; }
.ws-stat { font: 800 30px "Montserrat", sans-serif; color: var(--ws-copper-2); margin-bottom: 10px; }
/* В эталоне крупный стат цвета не задаёт — берёт его у панели (на зелёной
   он белый). Базовый .ws-stat остаётся медным: он так и стоит в плитках. */
.ws-stat--xl { font-size: clamp(32px, 5vw, 46px); line-height: 1; margin-bottom: 6px; color: inherit; }

/* --- Поверхности --- */
.ws-tile  { background: #fff; border: 1px solid var(--ws-line); border-radius: var(--ws-r-lg); padding: 22px; }
.ws-tile--sm { padding: 14px 18px; border-radius: 12px; flex: 1 1 0; min-width: 0; }
.ws-tile--dark { background: var(--ws-ink-2); border-color: rgba(255,255,255,.08); padding: 20px; color: #fff; }
.ws-tile--dark .ws-muted { margin-top: 6px; }
.ws-tile--ink  { background: var(--ws-ink); border-color: transparent; padding: 24px 22px; color: #fff; }
.ws-panel { background: #fff; border: 1px solid var(--ws-line); border-radius: 16px; padding: 24px 28px; }
/* Блок «Нужны цены и наличие?» в конце каталога — есть в макете, в теме его не было. */
.ws-shopcta { background: var(--ws-ink); border-radius: 20px; padding: 36px 40px; display: flex;
	align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ws-shopcta__t { font: 800 24px/normal "Montserrat", sans-serif; color: #fff; margin-bottom: 6px; }
.ws-shopcta__d { font-size: 14px; line-height: normal; color: var(--ws-muted-dark); } /* блок на тёмной подложке */
.ws-shopcta__btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* --- Кнопки --- */
.ws-btn { display: inline-block; background: var(--ws-green-ink); color: #fff; font: 600 14.5px "Golos Text", sans-serif;
          padding: 13px 26px; border-radius: var(--ws-r-md); border: none; cursor: pointer; text-align: center; }
.ws-btn:hover { background: var(--ws-green-ink2); color: #fff; }
.ws-btn--lg    { font-size: 15px; padding: 14px 28px; }
.ws-btn--sm    { font-size: 14px; padding: 13px 24px; }
.ws-btn--md    { padding: 14px 26px; }
.ws-btn--ink   { background: var(--ws-ink); padding: 13px 28px; }
.ws-btn--ink:hover { background: var(--ws-copper); }
.ws-btn--ghost { background: none; border: 1.5px solid rgba(255,255,255,.4); color: #fff; }
.ws-btn--ghost:hover { background: none; border-color: #c08552; color: #d0a077; }
.ws-btn--white { background: #fff; color: var(--ws-text); }
.ws-btn--white:hover { background: #f4efe8; color: var(--ws-text); }
.ws-btn--block { display: block; width: 100%; padding: 14px; }
/* Кнопка в карточке товара в эталоне мельче общей: 13.5px, поля 11px, радиус 9px. */
.ws-btn--card { padding: 11px; font-size: 13.5px; border-radius: 9px; }
.ws-chip { display: inline-block; appearance: none; padding: 10px 18px; border-radius: 999px; border: 1.5px solid #d9d4c9;
           font: 600 14px "Golos Text", sans-serif; color: var(--ws-text-2); background: #fff; cursor: pointer; }
.ws-chip:hover { border-color: var(--ws-copper-2); color: var(--ws-copper); }

/* --- Бейджи --- */
.ws-badge { display: inline-block; font: 600 11px "Golos Text", sans-serif; padding: 5px 11px; border-radius: var(--ws-r-sm); }
.ws-badge--ink    { font-family: "IBM Plex Mono", monospace; font-size: 10.5px; color: #c98a58; background: #22262e;
                    padding: 5px 10px; border-radius: 6px; }
.ws-badge--aqua   { background: #1b6ea9; color: #fff; border-radius: 999px; }
/* Бейджи лежат поверх обложки: полупрозрачная подложка делала их контраст
   производной от фотографии (замер давал 2.5–2.8:1). Подложка непрозрачная. */
.ws-badge--copper { background: #5a3418; color: #f0cfae; padding: 6px 12px; }
.ws-badge--paper  { background: #f3eee4; color: #4a5058; font-size: 12.5px; font-weight: 500; padding: 7px 14px; border-radius: 999px; }
.ws-badge--glass  { background: #21252c; color: #e4e7ec; font-size: 12px; padding: 6px 12px; }

/* --- Ряды и колонки --- */
/* В эталоне у рядов align-items не задан — работает stretch, и соседние
   элементы выравниваются по общей высоте. Центрирование теперь модификатор:
   так плитки и разделители перестают схлопываться по своему контенту. */
.ws-row { display: flex; flex-wrap: wrap; gap: 11px; }
.ws-row--center { align-items: center; }
.ws-row--sm { gap: 8px; }
.ws-row--lg { gap: 14px; }
.ws-row--xl { gap: 30px; flex-wrap: nowrap; }
.ws-row--tiles { gap: 12px; flex-wrap: nowrap; }
.ws-row--top { align-items: flex-start; gap: 10px; }
.ws-col { display: flex; flex-direction: column; gap: 16px; }
.ws-col--12 { gap: 12px; margin-bottom: 22px; }

/* Фильтры главной: на узких экранах — одна доступная прокручиваемая лента.
   Компонент владеет раскладкой сам, общие .ws-row и .ws-chip не меняем. */
@media (max-width: 1024px) {
  .ws-filterbar {
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 2px 0 9px;
    box-sizing: border-box;
    scroll-snap-type: x proximity;
    scroll-padding-inline: 2px;
    scrollbar-width: thin;
    scrollbar-color: #d9d4c9 transparent;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .ws-filterbar > .ws-chip {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    max-width: min(250px, 76vw);
    min-height: 64px;
    padding: 9px 14px;
    text-align: center;
    white-space: normal;
    line-height: 1.28;
    font-size: 13px;
    scroll-snap-align: start;
  }
}


/* --- Служебные --- */
.ws-bg-paper { background: var(--ws-paper); }
.ws-bg-white { background: #fff; }
.ws-bg-cream { background: #f7f5f1; }
.ws-flex1 { flex: 1 1 0; min-width: 0; }
.ws-minw0 { min-width: 0; }
.ws-mt-auto { margin-top: auto; }
.ws-mt-36 { margin-top: 36px; }
.ws-mt-56 { margin-top: 56px; }
.ws-mb-16 { margin-bottom: 16px; }
.ws-w100 { width: 100%; }

/* --- Тёмные и фактурные подложки --- */
.ws-bg-ink { background: var(--ws-ink);
	background-image: repeating-linear-gradient(116deg, transparent 0 23px, rgba(255,255,255,.023) 23px 24px),
	                  radial-gradient(660px 420px at 90% 0%, rgba(192,133,82,.20), transparent 64%),
	                  radial-gradient(700px 480px at 3% 100%, rgba(31,125,194,.15), transparent 66%);
	color: #fff; }
.ws-bg-ink--soft { background-color: var(--ws-ink-2);
	background-image: radial-gradient(620px 260px at 50% 0%, rgba(31,125,194,.11), transparent 72%); }
.ws-bg-ink--rounded { border-radius: 22px; overflow: hidden; }
.ws-bg-cream--glow { background-image: radial-gradient(760px 400px at 94% 6%, rgba(192,133,82,.08), transparent 66%); }

/* --- Шаги --- */
.ws-stepnum { width: 38px; height: 38px; border-radius: 50%; background: #f4efe8; color: var(--ws-copper-2);
	font: 600 13px "IBM Plex Mono", monospace; display: flex; align-items: center; justify-content: center; flex: none; }
.ws-steprow { display: flex; align-items: center; gap: 16px; padding: 15px 0; border-top: 1px solid var(--ws-paper); }
/* :first-child не срабатывал: перед первой строкой в панели стоит надзаголовок.
   Ловим и его — иначе над «00» появляется линия, которой в макете нет. */
.ws-steprow:first-child,
.ws-eyebrow + .ws-steprow { border-top: none; padding-top: 0; }
.ws-dot { width: 8px; height: 8px; background: var(--ws-green); border-radius: 50%; margin-top: 6px; flex: none; }
/* В шапке героя точка в эталоне другая: 9px и скруглением 2px, без сдвига вниз. */
.ws-dot--hero { width: 9px; height: 9px; border-radius: 2px; margin-top: 0; }

/* --- Аккордеон / FAQ --- */
.ws-acc   { background: #fff; border: 1px solid var(--ws-line); border-radius: 12px; padding: 2px 20px; }
.ws-acc-q { display: flex; align-items: center; gap: 14px; padding: 18px 0; font-weight: 600; font-size: 16px; color: var(--ws-text); }
.ws-acc-n { font: 600 12px "IBM Plex Mono", monospace; color: var(--ws-copper); flex: none; } /* copper-2 при 12px давал ~3:1 */
.ws-acc-a { margin: 0; padding: 0 0 20px 34px; font-size: 14px; line-height: 1.65; color: var(--ws-text-2); }
/* Ответ редактируется визуальным редактором, поэтому внутри приходит своя
   разметка: абзацы, списки, выделения. Собственные отступы тегов сбиваются
   на ритм блока, у последнего элемента нижний отступ снимается — иначе к
   20px паддинга контейнера добавлялись бы ещё 16px margin абзаца. */
.ws-acc-a > * { margin: 0 0 10px; font-size: inherit; line-height: inherit; color: inherit; }
.ws-acc-a > *:last-child { margin-bottom: 0; }
.ws-acc-a ul, .ws-acc-a ol { padding-left: 20px; }
.ws-acc-a li { margin-bottom: 4px; font-size: inherit; line-height: inherit; }
.ws-acc-a a { color: var(--ws-copper); }
.ws-faq-plus { font: 400 24px "IBM Plex Mono", monospace; color: var(--ws-copper); transition: transform .2s; flex: none; margin-left: auto; }

/* --- Таблицы --- */
/* Общая карточка остаётся неподвижной; только строки таблицы скроллятся. */
.ws-pricebox { background: #fff; border: 1px solid var(--ws-line); border-radius: var(--ws-r-lg); overflow: hidden; min-width: 0; }
.ws-tablewrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ws-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ws-table--wide { min-width: 700px; font-size: 14px; }
.ws-thead { background: var(--ws-ink); color: #fff; text-align: left; }
.ws-th { padding: 14px 18px; font: 600 12px "IBM Plex Mono", monospace; letter-spacing: .06em; }
.ws-td { padding: 14px 22px; }
.ws-td--b { font-weight: 600; }
.ws-td--muted { color: var(--ws-muted); }
/* Пять колонок как в макете: артикул · наименование · фасовка · розница · опт.
   Цены прижаты вправо, ширины — первой колонке и наименованию. */
.ws-table th:nth-child(n+4), .ws-table td:nth-child(n+4) { text-align: right; }
/* Пропорции колонок из макета: 130px · 1.6fr · .8fr · .7fr · .7fr.
   table-layout:fixed обязателен — иначе браузер раздаёт ширину по контенту
   и «ОПТ ОТ 10 ШТ» забирает лишнее у наименования. */
.ws-table--wide { table-layout: fixed; }
.ws-table--wide th:nth-child(1) { width: 11.3%; }
.ws-table--wide th:nth-child(2) { width: 37.3%; }
.ws-table--wide th:nth-child(3) { width: 18.7%; }
.ws-table--wide th:nth-child(4),
.ws-table--wide th:nth-child(5) { width: 16.35%; }
/* Интерлиньяж строк — normal, как в макете: общее правило для td/th давало
   1.55 и добавляло по 6px на строку, на восьми позициях — почти полсотни. */
.ws-table td, .ws-table th { line-height: normal; }
.ws-sku-cell { font: 600 12px "IBM Plex Mono", monospace; color: var(--ws-copper); }
/* Подвал прайс-таблицы: в макете он внутри той же карточки, а не отдельным
   блоком под ней — отсюда общая рамка сверху и светлая подложка. */
.ws-tfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px;
	flex-wrap: wrap; padding: 16px 22px; border-top: 1px solid var(--ws-paper); background: #fbfaf7; }
.ws-tfoot__note { font-size: 13px; color: var(--ws-muted); }
.ws-tfoot__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ws-btn--outline { background: none; border: 1.5px solid var(--ws-ink); color: var(--ws-ink);
	font-size: 13.5px; padding: 10px 20px; border-radius: 9px; }
.ws-btn--outline:hover { background: none; border-color: var(--ws-copper); color: var(--ws-copper); }
.ws-btn--xs { font-size: 13.5px; padding: 11px 20px; border-radius: 9px; }
.ws-specrow { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px;
	color: #3a3f46; border-bottom: 1px solid #f0ece4; }

/* --- Прочее --- */
.ws-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
/* В шапке секции заголовок в эталоне идёт с margin:0 — отступ держит сама шапка. */
.ws-sechead .ws-h2 { margin-bottom: 0; }
.ws-h2--mb26 { margin-bottom: 26px; }
.ws-h2--mb24 { margin-bottom: 24px; }
.ws-h2--flush { margin-bottom: 0; }
.ws-sechead--tight { align-items: center; margin-bottom: 8px; }
/* Вкладки карточки товара. Контейнер и панель раньше не имели стилей вовсе:
   в разметке .ws-tabs / .ws-tab-panel были, в CSS — нет. */
.ws-tabs { border: 1px solid var(--ws-line); border-radius: var(--ws-r-lg); background: #fff; overflow: hidden; }
.ws-tabs__nav { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 10px; border-bottom: 1px solid var(--ws-line); background: #fbf9f6; }
.ws-tab-panel { padding: 22px 24px; }
.ws-tab-panel[hidden] { display: none; }
.ws-tab { padding: 11px 20px; border-radius: 999px; border: 1.5px solid #d9d4c9;
	background: transparent; color: #4a5058; font: 600 14px "Golos Text", sans-serif; cursor: pointer; }
.ws-tab.is-active { border-color: #171a20; background: #171a20; color: #fff; }
/* Обложки статей работают как товарные превью: 190px без внутреннего отступа.
   Кадрирование делает .ws-card-cover через object-fit:cover, поэтому исходное
   соотношение сторон сохраняется и фото не выглядит сплющенным. */
.ws-cardimg--dark { padding: 0; background: linear-gradient(135deg, #22262e, #12151a); }
.ws-cards-3 .ws-card-body { padding: 18px 20px 20px; gap: 9px; }
.ws-vline { width: 1px; align-self: stretch; background: rgba(255,255,255,.12); }
.ws-hr-b { border-bottom: 1px solid var(--ws-line); }
.ws-hr-t { border-top: 1px solid var(--ws-paper); }
.ws-hr-light { height: 1px; background: rgba(255,255,255,.25); margin: 20px 0; }
.ws-prose--narrow { max-width: 820px; }
.ws-sticky { position: sticky; top: 90px; }
.ws-rel { position: relative; }
.ws-clip { overflow: hidden; }
.ws-hero { min-height: calc(100dvh - 70px - 95px); box-sizing: border-box; display: flex; align-items: center; }
/* Свечение героя в эталоне сильнее общего .ws-bg-ink (медные/аква радиальные
   пятна крупнее и ярче) — восстановлено под макет главной. */
.ws-hero.ws-bg-ink {
	background-image:
		repeating-linear-gradient(116deg, transparent 0 23px, rgba(255,255,255,.023) 23px 24px),
		radial-gradient(680px 460px at 88% 6%, rgba(192,133,82,.22), transparent 64%),
		radial-gradient(780px 560px at 4% 98%, rgba(31,125,194,.18), transparent 66%);
}
.ws-block { display: block; border: 0; }
.ws-h5--light, .ws-h6--light { color: #fff; }
.ws-h5--light { font-size: 19px; font-weight: 600; }
.ws-h5--lg { font-size: 20px; }
.ws-h6--light { font-size: 15px; font-weight: 600; }
.ws-meta--md { font-size: 14px; }
.ws-acc-n--light { color: #fff; font-size: 13px; }
.ws-muted--md { font-size: 13px; line-height: normal; color: var(--ws-muted); margin: 0 0 18px; }
/* Подводка под заголовком прайса: в эталоне это 15px, а не мелкий .ws-muted. */
.ws-note-15 { font-size: 15px; line-height: normal; color: var(--ws-muted); margin: 0 0 24px; }
.ws-text-15 { font-size: 15px; }
.ws-mt-20 { margin-top: 20px; }
.ws-mb-24 { margin-bottom: 24px; }
.ws-gap-9  { gap: 9px; }
.ws-gap-10 { gap: 10px; }
.ws-mb-18 { margin-bottom: 18px; }
.ws-mb-26 { margin-bottom: 26px; }
.ws-mb-34 { margin-bottom: 34px; }

/* ============================================================
   СЛОЙ РАСКЛАДКИ (вместо инлайн-стилей в шаблонах)
   Один источник правды для сеток и боковых полей секций.
   Правило: колонки объявляем через minmax(0,1fr), иначе широкий
   потомок (картинка, таблица, нерасширяемый flex-ряд) продавливает
   колонку по min-content и распирает страницу.
   ============================================================ */

/* --- Боковые поля секций: 40px на десктопе, 18px на телефоне --- */
/* :not(.ws-wrap) — обязательно. Проценты в padding считаются от ширины
   РОДИТЕЛЯ, а не самого элемента. Если на одном теге и .ws-wrap (max-width),
   и класс секции, то на 1920px поле бралось как (1920-1240)/2 = 340px при
   ширине элемента 1320px — колонка текста схлопывалась до 296px. */
.ws-sec-64:not(.ws-wrap),    .ws-sec-44-64:not(.ws-wrap), .ws-sec-34-44:not(.ws-wrap),
.ws-sec-40-46:not(.ws-wrap), .ws-sec-48-64:not(.ws-wrap), .ws-sec-34-46:not(.ws-wrap),
.ws-sec-48-48:not(.ws-wrap),
.ws-sec-56-48:not(.ws-wrap), .ws-sec-56:not(.ws-wrap), .ws-sec-22:not(.ws-wrap),    .ws-sec-44-20:not(.ws-wrap),
.ws-sec-24-40:not(.ws-wrap), .ws-sec-0-64:not(.ws-wrap),  .ws-sec-34-40:not(.ws-wrap),
.ws-sec-40-60:not(.ws-wrap) {
	/* Поля растут на широких экранах, чтобы колонка контента не превышала 1240px
	   и совпадала с секциями, где контент обёрнут в .ws-wrap. */
	padding-left:  max(var(--ws-gutter), (100% - 1240px) / 2);
	padding-right: max(var(--ws-gutter), (100% - 1240px) / 2);
}

/* Внутри секции боковые поля уже даны — .ws-wrap здесь только центрирует,
   иначе получается двойной отступ (секция 40px + обёртка 40px). */
.ws-sec-64 .ws-wrap,    .ws-sec-44-64 .ws-wrap, .ws-sec-34-44 .ws-wrap,
.ws-sec-40-46 .ws-wrap, .ws-sec-48-64 .ws-wrap, .ws-sec-34-46 .ws-wrap,
.ws-sec-48-48 .ws-wrap,
.ws-sec-56-48 .ws-wrap, .ws-sec-56 .ws-wrap, .ws-sec-22 .ws-wrap,    .ws-sec-44-20 .ws-wrap,
.ws-sec-24-40 .ws-wrap, .ws-sec-0-64 .ws-wrap,  .ws-sec-34-40 .ws-wrap,
.ws-sec-40-60 .ws-wrap {
	max-width: 1240px;
	padding-left: 0;
	padding-right: 0;
}
.ws-sec-64     { padding-top: 64px; padding-bottom: 64px; }
.ws-sec-44-64  { padding-top: 44px; padding-bottom: 64px; }
.ws-sec-40-60  { padding-top: 40px; padding-bottom: 60px; }
.ws-sec-34-44  { padding-top: 34px; padding-bottom: 44px; }
.ws-sec-40-46  { padding-top: 40px; padding-bottom: 46px; }
.ws-sec-48-64  { padding-top: 48px; padding-bottom: 64px; }
.ws-sec-34-46  { padding-top: 34px; padding-bottom: 46px; }
.ws-sec-56-48  { padding-top: 56px; padding-bottom: 48px; }
.ws-sec-56     { padding-top: 56px; padding-bottom: 56px; }
.ws-sec-22     { padding-top: 22px; padding-bottom: 22px; }
.ws-sec-44-20  { padding-top: 44px; padding-bottom: 20px; }
.ws-sec-24-40  { padding-top: 24px; padding-bottom: 40px; }
.ws-sec-0-64   { padding-top: 0;    padding-bottom: 64px; }
.ws-sec-34-40  { padding-top: 34px; padding-bottom: 40px; }

/* --- Крупные внутренние поля карточек --- */
.ws-pad-46 { padding: clamp(22px, 5vw, 46px); }
.ws-pad-40 { padding: clamp(20px, 5vw, 40px); }
/* Правая колонка контактов в эталоне центрирует форму по высоте панели. */
.ws-pad-44 { padding: clamp(20px, 5vw, 44px) clamp(20px, 5vw, 40px); display: flex; flex-direction: column; justify-content: center; }
/* В модалке кнопка в эталоне на пиксель выше, чем в формах на страницах. */
.ws-modal .ws-form-submit { padding: 15px; }

/* --- Сетки страниц --- */
.ws-g-hero    { display: grid; grid-template-columns: 1.18fr .82fr; gap: 44px; align-items: center; width: 100%; }
.ws-g-facts{display: grid;gap: 28px}
.ws-g-about   { display: grid; grid-template-columns: 1.1fr .9fr;  gap: 52px; align-items: center; }
.ws-g-syshead { display: grid; grid-template-columns: 1.15fr 1fr;  gap: 36px; align-items: end; margin-bottom: 30px; }
.ws-g-sys     { display: grid; grid-template-columns: 1.5fr 1fr;   gap: 24px; align-items: stretch; }
.ws-g-b2b     { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ws-g-4{display: grid;gap: 20px}
.ws-g-2{display: grid;gap: 14px}
.ws-g-2-start{display: grid;gap: 14px;align-items: start}
.ws-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch; }
.ws-art-grid  { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 44px; align-items: start; }
.ws-prod-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 44px; align-items: start; }
.ws-g-hero  > *, .ws-g-about > *, .ws-g-syshead > *,
.ws-g-b2b   > *, .ws-g-sys   > * { min-width: 0; }

/* --- Точки перелома --- */
/* В макете каталога сетка карточек переламывается на 980px, а не на 900:
   между 901 и 980 в теме оставалось четыре колонки против двух. */
@media (max-width: 1024px) {
	.ws-g-sys { grid-template-columns: minmax(0,1fr); }
	.ws-art-grid { grid-template-columns: minmax(0,1fr) 260px; gap: 32px; }
}
/* Три плитки «О бренде» в макете стоят в ряд (nowrap). На узком экране это
   даёт переполнение: у .ws-tile--sm min-width:0, поэтому плитка сжимается,
   а длинные слова внутри — нет. Разрешаем перенос и даём базис, при котором
   он вообще срабатывает: с flex-basis:0 строка никогда не переносится. */
@media (max-width: 700px) {
	.ws-row--tiles { flex-wrap: wrap; }
	.ws-row--tiles .ws-tile--sm { flex: 1 1 220px; }
}
@media (max-width: 900px) {
	.ws-g-hero, .ws-g-about, .ws-g-syshead, .ws-g-b2b,
	.ws-contact-grid, .ws-art-grid, .ws-prod-grid { grid-template-columns: minmax(0,1fr); gap: 32px; }
	.ws-art-grid aside { position: static; }
	.ws-cards{grid-template-columns: repeat(2, minmax(0,1fr))}
	.home h1 { font-size: 38px; line-height: 1.1; }
	.home h2 { font-size: 28px; line-height: 1.15; }
	.sys-arrow { display: none; }
}
@media (max-width: 560px) {
	.ws-cards{grid-template-columns: minmax(0,1fr)}
	/* Ряд статов героя в макете идёт в одну строку (nowrap) — на телефоне это
	   даёт горизонтальное переполнение: три блока с разделителями не помещаются
	   даже сжатыми до min-content. Разрешаем перенос и убираем разделители:
	   между строками они бессмысленны. Сознательное отступление от макета —
	   в самом макете этот экран на 320–375px переполнен. */
	.ws-row--xl { flex-wrap: wrap; column-gap: 24px; row-gap: 16px; }
	.ws-row--xl .ws-vsep { display: none; }
	.ws-row--tiles { flex-wrap: wrap; }
	/* Два полных читаемых CTA, вместо двух неравномерно сломанных строк. */
	.ws-hero__actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; width: 100%; }
	.ws-hero__actions .ws-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; box-sizing: border-box; padding: 12px 10px; font-size: 14px; white-space: nowrap; }
	/* Текст примечания и кнопки прайса всегда остаются на ширине карточки. */
	.ws-tfoot { padding: 16px; align-items: stretch; }
	.ws-tfoot__note { flex: 1 1 100%; }
	.ws-tfoot__btns { flex: 1 1 100%; }
	.ws-tfoot__btns > * { flex: 1 1 100%; text-align: center; }
	/* У блога и FAQ один gutter; контент не сужает ширину карточки. */
	.ws-cards-3 > .ws-card, .ws-g-2-start > .ws-acc { width: 100%; min-width: 0; box-sizing: border-box; }
	.ws-acc { padding-left: 16px; padding-right: 16px; }
	.ws-acc-q { gap: 10px; font-size: 15px; }
	.ws-acc-a { padding-left: 0; }
	.home h1 { font-size: 32px; }
	body:not(.home) .ws-h1 { font-size: 34px; }
	.ws-cookie { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
	.ws-cookie-inner { gap: 10px; }
	.ws-cookie-inner p { font-size: 11.5px; min-width: 0; }
	.ws-cookie-accept { width: 100%; padding: 10px 18px; }
}

/* ---------------- Пагинация WP ---------------- */

.ws-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ws-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; padding: 0 12px; border: 1px solid #d9d4c9; border-radius: 9px; color: #4a5058; font-weight: 600; margin: 0 3px; background: #fff; }
.ws-pagination .page-numbers.current { background: #171a20; color: #fff; border-color: #171a20; }
.ws-pagination a.page-numbers:hover { border-color: #c08552; color: var(--ws-copper); }
.ws-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ============================================================
   БЛОКИ ШАБЛОНОВ — вынесено из inline-стилей (§8 промта).
   Объявления перенесены дословно; единственное осознанное отличие —
   у .ws-trustbar снят `padding:22px 0`: инлайн-шорткат перекрывал
   боковые поля слоя раскладки (.ws-sec-22) и прибивал колонки к краям.
   ============================================================ */
/* Ряд теперь тянет элементы по высоте сам (.ws-row без align-items), align-self
   оставлен как страховка на случай ряда с центрированием. */
.ws-vsep { width:1px; align-self:stretch; background:rgba(255,255,255,.12); }
.ws-herocard { position:relative; border:1px solid rgba(255,255,255,.12); border-radius:20px; background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.015)); padding:20px 24px 22px; overflow:hidden; }
/* Упаковки имеют очищенный от невидимых полей alpha-crop; размер сцены
   следует за шириной, а не остаётся пустыми 318px на телефонах. */
.ws-herocard__stage { position:relative; width:100%; max-width:440px; margin-inline:auto; aspect-ratio: 1.3; height:auto; display:flex; align-items:flex-end; justify-content:center; overflow:hidden; }
.ws-herocard__glow { position:absolute; bottom:34px; left:50%; transform:translateX(-50%); width:80%; height:150px; background:radial-gradient(58% 100% at 50% 100%,rgba(192,133,82,.34),transparent 72%); filter:blur(7px); }
.ws-herocard__can--l { position:relative; width:33%; max-width:150px; height:auto; object-fit:contain; margin-right:-12%; filter:drop-shadow(0 20px 22px rgba(0,0,0,.55)); }
.ws-herocard__can--main { position:relative; z-index:2; width:58%; max-width:262px; height:auto; object-fit:contain; filter:drop-shadow(0 28px 30px rgba(0,0,0,.6)); }
.ws-herocard__can--r { position:relative; width:33%; max-width:150px; height:auto; object-fit:contain; margin-left:-12%; filter:drop-shadow(0 20px 22px rgba(0,0,0,.55)); }
.ws-herocard__tags { display:flex; flex-wrap:wrap; gap:8px; justify-content:center; margin-top:6px; }
.ws-herocard__foot { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.1); }
.ws-vsep--stretch { width:1px; align-self:stretch; background:rgba(255,255,255,.1); }
.ws-trustbar { background:#1d2129; background-image:radial-gradient(620px 200px at 50% 0%,rgba(31,125,194,.11),transparent 72%); border-top:1px solid rgba(255,255,255,.07); }
.ws-bg-about { background:#f7f5f1; background-image:radial-gradient(760px 400px at 94% 6%,rgba(192,133,82,.08),transparent 66%); }
.ws-shot { position:relative; display:flex; align-items:flex-end; justify-content:center; min-height:380px; }
.ws-shot__glow { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); width:60%; height:120px; background:radial-gradient(60% 100% at 50% 100%,rgba(169,111,66,.2),transparent 72%); filter:blur(6px); }
.ws-shot__img { position:relative; width:auto; max-width:100%; height:366px; object-fit:contain; filter:drop-shadow(0 22px 24px rgba(0,0,0,.16)); }
.ws-result { background:var(--ws-green-ink); border-radius:16px; padding:28px; color:#fff; display:flex; flex-direction:column; }
.ws-darkpanel { background:#171a20; border-radius:22px; overflow:hidden; background-image:repeating-linear-gradient(116deg,transparent 0 23px,rgba(255,255,255,.023) 23px 24px),radial-gradient(600px 320px at 90% 0%,rgba(192,133,82,.18),transparent 66%),radial-gradient(620px 380px at 4% 100%,rgba(31,125,194,.14),transparent 66%); }
.ws-contactlist { display:flex; flex-direction:column; gap:16px; font-size:15px; color:#c9ccd2; }
/* Ссылки в списке контактов — по ширине текста, а не колонки. Элемент flex
   растягивается на всю ширину, и кликабельной становилась вся строка: промах
   мимо телефона открывал звонилку, промах мимо почты — почтовый клиент. */
.ws-contactlist > a { align-self: flex-start; }
/* Строка контакта: квадрат с иконкой, над значением мелкая подпись.
   Было плоским списком без иконок и подписей. */
.ws-contactrow { display: flex; align-items: center; gap: 14px; }
.ws-contactrow__ic { width: 42px; height: 42px; border-radius: 11px; background: #22262e;
	display: flex; align-items: center; justify-content: center; flex: none; }
.ws-contactrow__lbl { font-size: 12px; color: var(--ws-muted-2); line-height: normal; }
.ws-contactrow__val { color: #c9ccd2; font-size: 14.5px; line-height: normal; }
.ws-contactrow a.ws-contactrow__val { color: #fff; font-weight: 600; font-size: 19px; }
.ws-contactrow a.ws-contactrow__val--sm { font-size: 16px; }
.ws-msgrow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.ws-msgrow__lbl { font-size: 13px; color: #c9ccd2; }
.ws-msgrow a { display: flex; }
.ws-msgrow img { width: 34px; height: 34px; display: block; }
.ws-mapbox { position:relative; border-radius:18px; overflow:hidden; border:1px solid #e3dfd7; }
.ws-mapcard { position:absolute; top:16px; left:16px; background:#fff; border-radius:12px; padding:16px 20px; box-shadow:0 12px 30px rgba(0,0,0,.16); max-width:280px; }
.ws-pagebox { max-width:820px; font-size:15.5px; line-height:1.7; color:#3a3f46; background:#fff; border:1px solid #e3dfd7; border-radius:16px; padding:clamp(24px,4vw,44px); }
.ws-artdecor { position:absolute; right:-38px; top:50%; transform:translateY(-46%); opacity:.12; pointer-events:none; }
.ws-arthero { background:#171a20; background-image:radial-gradient(640px 380px at 88% 0%,rgba(192,133,82,.16),transparent 70%); position:relative; overflow:hidden; }
.ws-artcover { height:320px; border-radius:18px; margin:0 0 32px; background:linear-gradient(135deg,#22262e,#12151a); display:flex; align-items:center; justify-content:center; box-shadow:0 20px 50px rgba(0,0,0,.25); position:relative; overflow:hidden; }
.ws-artcover__tags { position:absolute; top:16px; left:16px; display:flex; gap:8px; align-items:center; z-index:2; }
.ws-artcover__image { width:100%; height:100%; object-fit:cover; display:block; }
.ws-artkicker { font:600 11px 'IBM Plex Mono',monospace; color:var(--ws-copper); letter-spacing:.12em; margin-bottom:12px; }
.ws-artmeta { font-size:13.5px; color:#aab0b8; line-height:1.6; margin:0 0 16px; }
.ws-prodshot { background:#fff; border:1px solid #e3dfd7; border-radius:18px; padding:28px; display:flex; align-items:center; justify-content:center; min-height:380px; }
.ws-prodkicker { font:600 11px 'IBM Plex Mono',monospace; color:var(--ws-copper); letter-spacing:.1em; margin-bottom:10px; }
.ws-btn-alt { flex:1 1 150px; min-width:0; background:#fff; border:1.5px solid #d9d4c9; color:#232830; font:600 15px 'Golos Text',sans-serif; padding:15px; border-radius:10px; cursor:pointer; }
.ws-content--760 { max-width:760px; font-size:16px; line-height:1.7; color:#3a3f46; }
/* Раньше моно-стиль стоял только у первой ячейки шапки, остальные три шли
   обычным .ws-td — в макете все четыре одинаковые. Приведено к макету. */
.ws-thead th { padding: 13px 22px; font: 600 11.5px "IBM Plex Mono", monospace; letter-spacing: .06em; color: #c9ccd2; }
.ws-table--640 { max-width: 640px; }
.ws-table--mb  { margin-bottom: 24px; }
.ws-swatch { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(0,0,0,.12); }
.ws-tagchip { color: #fff; font: 600 12px "Golos Text", sans-serif; padding: 6px 13px; border-radius: 7px; }
/* Категории каталога: настоящие ссылки на рубрики, фильтр в секции товаров. */
.ws-catalog-toolbar { display: grid; gap: 24px; margin-bottom: 30px; }
.ws-catalog-toolbar__intro { display: grid; gap: 8px; }
.ws-catalog-toolbar__intro .ws-h2 { margin: 0; }
.ws-catalog-filters { display: grid; gap: 11px; padding: 20px 22px; border: 1px solid #ddd8cf;
    border-radius: 14px; background: #fff; }
.ws-catalog-filters__label { color: #8d5931; font: 600 11px "IBM Plex Mono", monospace;
    letter-spacing: .10em; text-transform: uppercase; }
.ws-catalog-filters__items { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.ws-catchip { display: inline-flex; align-items: center; min-height: 38px; padding: 9px 16px;
    border: 1px solid #ddd8cf; border-radius: 999px; background: #f7f5f1; color: #34383d;
    font: 600 13px/1.35 "Golos Text", sans-serif; text-decoration: none;
    transition: background .18s, color .18s, border-color .18s; }
.ws-catchip:hover, .ws-catchip:focus-visible { opacity: 1; border-color: var(--ws-green-ink);
    color: var(--ws-green-ink); }
.ws-catchip:focus-visible { outline: 2px solid var(--ws-green-ink); outline-offset: 2px; }
.ws-catchip.is-active, .ws-catchip[aria-current="page"] { background: var(--ws-green-ink);
    border-color: var(--ws-green-ink); color: #fff; }
.ws-catchip.is-active:hover { color: #fff; }
@media (max-width: 700px) {
    .ws-catalog-filters { padding: 16px; }
    .ws-catalog-filters__items { gap: 8px; }
    .ws-catchip { min-height: 40px; padding: 10px 13px; font-size: 12.5px; }
}
.ws-readtime { padding: 4px 0; }

/* ============================================================
   КОЛОНКА КОНТЕНТА — ОДНА НА ВЕСЬ САЙТ: 1240px
   В эталоне ширины разъезжались: главная 1240px, листинги 1160px,
   статья 1100px. На стыке страниц это видно — шапка и подвал стоят
   на месте, а содержимое прыгает влево-вправо при переходе.
   Сведено к колонке главной: одна ширина, один вертикальный ритм.
   Сознательное отступление от эталона.
   ============================================================ */
/* Колонка статьи держит ту же ширину, но текст внутри ограничен сеткой
   с колонкой-сайдбаром — читаемость от общей ширины здесь не страдает. */
.ws-wrap--art { max-width: 1240px; }
.ws-col-art { padding-left:  max(var(--ws-gutter), (100% - 1240px) / 2);
              padding-right: max(var(--ws-gutter), (100% - 1240px) / 2); }

/* --- Состояния, которых в теме не было (есть в макете) --- */
/* Меню рисует wp_nav_menu — подсветка вешается на классы WordPress;
   .is-current остаётся для встроенного фолбэка без назначенного меню. */
.ws-menu a.is-current,
.ws-menu .current-menu-item > a, .ws-menu .current_page_item > a,
.ws-menu .current-menu-parent > a, .ws-menu .current-menu-ancestor > a { color: #fff; }
.ws-chip.is-active { background: var(--ws-green-ink); color: #fff; border-color: var(--ws-green-ink); }
.ws-chip.is-active:hover { color: #fff; border-color: var(--ws-green-ink); }
.ws-chip[data-ws-filter] { cursor: pointer; }
/* Скрытая фильтром карточка: у .ws-card стоит display:flex, а он сильнее
   штатного поведения атрибута hidden — без этого правила карточка остаётся
   на месте. */
.ws-cards .ws-card[hidden] { display: none; }
.ws-crumbs, .ws-crumbs a, .ws-crumbs span { font-size: 12.5px; }
/* На тёмной шапке листингов крошки в эталоне светлее общего .ws-muted. */
[class*="ws-bg-ink"] .ws-crumbs .ws-muted:not(.ws-crumbs__cur),
.ws-arthero .ws-crumbs .ws-muted:not(.ws-crumbs__cur) { color: #8a919b; }
[class*="ws-bg-ink"] .ws-crumbs > span.ws-muted:not(.ws-crumbs__cur),
.ws-arthero .ws-crumbs > span.ws-muted:not(.ws-crumbs__cur) { color: #5b626c; }
.ws-crumbs .ws-crumbs__cur { color: var(--ws-copper-3, #d0a077); }

/* Кнопка «весь каталог» под сеткой — в макете она внизу секции, а не в шапке */
.ws-catalog-all { text-align: center; margin-top: 22px; }

/* Один непрерывный список уникальных товаров; без старых group/grid overrides. */
.ws-sec--catalog.ws-sec--catalog { padding-top: 52px; padding-bottom: 56px; }
.ws-catalog-grid { margin: 0; }
.ws-catalog-hero .ws-h1 { max-width: 1000px; }

/* Панель выбора cookie по категориям */
.ws-cookie-panel { display: flex; flex-direction: column; gap: 12px; }
.ws-cookie-panel[hidden] { display: none; }
.ws-cookie-row { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; color: #b6bcc5; }
.ws-cookie-row input { flex: none; margin: 2px 0 0; }
.ws-cookie-row strong { display: block; font-size: 13.5px; color: #fff; }
.ws-cookie-row em { display: block; font-style: normal; opacity: .8; font-size: 12px; line-height: 1.45; }
.ws-cookie-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ws-cookie-more { background: none; border: 1px solid rgba(255,255,255,.35); color: #d8dbe0;
	font: 600 13.5px "Golos Text", sans-serif; padding: 11px 22px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.ws-cookie-more:hover { border-color: #c08552; color: #fff; }

/* Карточка товара в режиме модалки: href нет, курсор всё равно как у ссылки */
.ws-card--modal { cursor: pointer; }
.ws-card--modal:focus-visible { outline: 2px solid var(--ws-copper-2); outline-offset: 2px; }
.ws-prodmodal__media { display: flex; align-items: center; justify-content: center; min-height: 180px; margin-bottom: 14px; }
.ws-prodmodal__media img { max-height: 200px; width: auto; object-fit: contain; }

/* ============================================================
   ПРИВЕДЕНИЕ СТРУКТУРЫ К ЭТАЛОНУ (preview-html) — §3 отчёта.
   Ссылки-CTA карточек, табы товара, цена, страница контактов,
   рубрики статьи, витрина блога, мелкие правки каталога.
   ============================================================ */

/* --- 1. CTA карточек: медная текстовая ссылка вместо кнопки --- */
/* Каталог: «Подробнее →», блог: «Читать →». В эталоне это ссылка,
   а не заливная кнопка (кнопкой карточка-CTA остаётся только на главной). */
.ws-cardlink { color: var(--ws-copper); font-weight: 600; font-size: 13.5px; }
/* Ссылка «Все статьи →» в шапке секции — на 1px крупнее карточной. */
.ws-headlink { color: var(--ws-copper); font-weight: 600; font-size: 14.5px; }

/* --- 2. Табы товара: голые «пилюли» + 2-колоночная карта характеристик --- */
/* Контейнер .ws-tabs остаётся (на нём висит JS-переключатель), но теряет
   рамку/фон карточки; .ws-tabs__nav — просто ряд пилюль. */
.ws-tabs { border: none; border-radius: 0; background: none; overflow: visible; }
.ws-tabs__nav { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-bottom: 26px;
	border-bottom: none; background: none; }
.ws-tab-panel { padding: 0; }
/* Таблица характеристик — пары «ключ-значение», а не равнозначные карточки:
   в контракт доборного ряда она не входит. Но при нечётном числе строк
   последняя оставляла пустой полполя — тянем её на обе колонки. */
.ws-specgrid__row:nth-child(2n+1):last-child { grid-column: 1 / -1; }
.ws-specgrid { background: #fff; border: 1px solid #e3dfd7; border-radius: 16px; overflow: hidden;
	display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.ws-specgrid__row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 22px;
	border-bottom: 1px solid #efece6; font-size: 14px; }
.ws-specgrid__row > span:first-child { color: #6e7480; }
.ws-specgrid__row > span:last-child { font-weight: 600; color: #232830; text-align: right; }
.ws-usegrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: start; }
.ws-usenote { background: #171a20; border-radius: 14px; padding: 24px; }
.ws-usenote__h { font: 600 11px "IBM Plex Mono", monospace; color: #d0a077; letter-spacing: .1em; margin-bottom: 14px; }
.ws-usenote__list { display: flex; flex-direction: column; gap: 12px; }
.ws-usenote__row { display: flex; gap: 10px; font-size: 13.5px; color: #c9ccd2; line-height: 1.5; }
.ws-usenote__row b { color: #c98a58; font-weight: 700; flex: none; }
.ws-docgrid{display: grid;gap: 12px}
.ws-doclink { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e3dfd7;
	border-radius: 12px; padding: 16px 18px; color: #232830; font-weight: 600; font-size: 14.5px; }
@media (max-width: 900px) { .ws-usegrid { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 700px) { .ws-specgrid{grid-template-columns: minmax(0,1fr)} }

/* --- 3. Цена товара: 800 40px Montserrat + мелкие «от»/единица --- */
.ws-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.ws-price__from, .ws-price__unit { font-size: 14px; color: #6e7480; }
.ws-price__val { font: 800 40px "Montserrat", sans-serif; color: #232830; line-height: 1; }

/* --- 4. Страница контактов: интро + ряд статов + панель с карточками --- */
.ws-cintro { margin-bottom: 32px; }
.ws-cintro p { font-size: 19px; line-height: 1.55; color: #3d3428; margin: 0; max-width: 900px; }
.ws-cstats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin-bottom: 36px; }
.ws-cstat { background: #fff; border: 1px solid #e3dfd7; border-radius: 14px; padding: 22px; }
.ws-cstat__n { font: 800 30px "Montserrat", sans-serif; color: #232830; margin-bottom: 6px; }
.ws-cstat__d { font-size: 13px; color: #6e7480; line-height: 1.5; }
.ws-cpanel { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: stretch;
	border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(20,22,26,.12); }
.ws-cpanel__side { background: #171a20; padding: 38px; background-image:
	repeating-linear-gradient(116deg, transparent 0 23px, rgba(255,255,255,.023) 23px 24px),
	radial-gradient(500px 280px at 90% 10%, rgba(192,133,82,.16), transparent 70%); }
.ws-cpanel__ttl { font: 800 24px "Montserrat", sans-serif; color: #fff; margin-bottom: 22px; }
.ws-cpanel__form { background: #fff; padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.ws-cform__ttl { font-weight: 700; font-size: 20px; margin-bottom: 6px; color: #232830; }
.ws-cform__note { font-size: 13px; color: #6e7480; margin-bottom: 20px; }
.ws-crows { display: flex; flex-direction: column; gap: 10px; }
.ws-crow { display: flex; align-items: center; gap: 14px; background: #22262e; border-radius: 12px; padding: 14px 16px; }
.ws-crow__ic { width: 42px; height: 42px; border-radius: 11px; background: #171a20; display: flex;
	align-items: center; justify-content: center; flex: none; }
.ws-crow__lbl { font-size: 12px; color: #8a919b; }
.ws-crow__val { color: #fff; font-weight: 600; font-size: 16px; }
.ws-crow__val--lg { font-size: 20px; }
.ws-crow__val--sm { color: #c9ccd2; font-weight: 400; font-size: 14.5px; }
.ws-cchips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-cchip { font-size: 12.5px; color: #c9ccd2; background: #22262e; border-radius: 999px; padding: 8px 14px; }
.ws-cmsg { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
	display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.ws-cmsg > span { font-size: 13px; color: #c9ccd2; }
.ws-cmsg img { width: 36px; height: 36px; display: block; }
@media (max-width: 900px) { .ws-cstats { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.ws-cpanel { grid-template-columns: minmax(0,1fr); } }
@media (max-width: 480px) { .ws-cstats { grid-template-columns: minmax(0,1fr); } }
/* Email в тёмной панели контактов на главной — белый (эталон). */
.ws-contactlist .ws-muted--strong { color: #fff; }

/* --- 5. Рубрики в статье: скруглённые строки вместо линованных --- */
.ws-rubrics { display: flex; flex-direction: column; gap: 2px; }
.ws-rubric { display: flex; align-items: center; justify-content: space-between; gap: 10px;
	padding: 9px 11px; border-radius: 8px; font-size: 14px; color: #3a3f46; }
.ws-rubric:hover, .ws-rubric.is-current { background: #f4efe8; color: var(--ws-copper); font-weight: 600; }
.ws-rubric__n { font: 600 12px "IBM Plex Mono", monospace; color: #756e60; flex: none; }
.ws-rubric:hover .ws-rubric__n, .ws-rubric.is-current .ws-rubric__n { color: var(--ws-copper); }

/* --- 6. Витрина блога: избранная 2-колоночная карточка + ряд статей --- */
.ws-feat { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; background: #171a20;
	border-radius: 18px; overflow: hidden; color: inherit; margin-bottom: 36px; }
.ws-feat__body { padding: 40px; }
.ws-feat__k { font: 600 11px "IBM Plex Mono", monospace; color: #d0a077; letter-spacing: .12em; margin-bottom: 14px; }
.ws-feat__ttl { font: 800 30px/1.2 "Montserrat", sans-serif; color: #fff; margin: 0 0 12px; text-wrap: balance; }
.ws-feat__ex { font-size: 14.5px; line-height: 1.6; color: #aab0b8; margin-bottom: 18px; }
.ws-feat__link { color: #c98a58; font-weight: 600; font-size: 14px; }
.ws-feat__cover { background: linear-gradient(135deg, #22262e, #12151a); display: flex;
	align-items: center; justify-content: center; min-height: 220px; overflow: hidden; }
.ws-feat__cover img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .ws-feat { grid-template-columns: minmax(0,1fr); } }
/* Карточка статьи: рубрика-чип + время чтения в верхней строке. */
.ws-artcat { font: 600 11px "Golos Text", sans-serif; background: #efece6; color: #4a5058;
	padding: 4px 10px; border-radius: 6px; }
.ws-readtime { font-size: 11.5px; color: #756e60; }

/* --- 7. Мелкие правки каталога под эталон --- */
/* Карточки страницы каталога: картинка выше (200px/16px), а единица цены — свой серый. */
.ws-cards--cat .ws-card-img { height: 200px; padding: 16px; }
.ws-card-img:has(.ws-card-noimg) { background: #f5f1ea; }
.ws-unit { font-size: 12px; color: var(--ws-muted); }
/* Универсальный отступ 8px сохраняется у других компонентов,
   но дублирующих «Подробнее» внутри полностью кликабельных товаров нет. */
.ws-mt-8 { margin-top: 8px; }

/* ============================================================
   ГОРИЗОНТАЛЬНАЯ ЛЕНТА КАРТОЧЕК (каталог на главной)
   В макете витрина главной — четыре карточки в ряд, разложенные по
   вкладкам рубрик. В теме товары приходят одним списком, поэтому
   вместо вкладок — лента: на десктопе видно ровно 4 карточки, остальные
   листаются стрелками или свайпом.

   Контракт разметки (front-page.php):
     .ws-scroller                       корень, data-ws-scroller
       .ws-scroller__viewport           окно прокрутки, data-ws-scroller-viewport
         .ws-cards                      лента карточек
       .ws-scroller__btn--prev/--next   стрелки, data-ws-scroller-prev/next

   Состояния на корне ставит main.js:
     .is-at-start / .is-at-end  — лента в начале / в конце (стрелка гаснет)
     .is-static                 — прокручивать нечего, стрелки не нужны

   Шаг прокрутки скрипт считает как «ширина карточки + gap» из
   getComputedStyle — при смене числа колонок ничего править не нужно.
   ============================================================ */
.ws-scroller { position: relative; }
.ws-scroller__viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	/* Поля под тень и подъём карточки на :hover — иначе overflow их срежет.
	   По горизонтали полей быть не должно: ширина карточки считается от
	   content-area окна, и лишние 2px сдвигают её так, что четвёртая
	   карточка перестаёт попадать в окно ровно. */
	padding: 6px 0 14px;
	margin: -6px 0 -14px;
}
.ws-scroller__viewport::-webkit-scrollbar { display: none; }

/* Лента: сетка .ws-cards внутри скроллера превращается в строку.
   Проценты в flex считаются от контент-области окна — однозначно,
   в отличие от grid с auto-колонками. */
.ws-scroller .ws-cards {
	display: flex;
	flex-wrap: nowrap;
	gap: 20px;
	grid-template-columns: none;
}
/* 4 карточки в окне: (100% − 3×gap) / 4. */
.ws-scroller .ws-card {
	flex: 0 0 calc((100% - 60px) / 4);
	min-width: 0;
	scroll-snap-align: start;
}

.ws-scroller__btn {
	position: absolute; top: 96px;
	transform: translateY(-50%);
	width: 44px; height: 44px;
	display: grid; place-items: center;
	background: rgba(255,255,255,.96);
	color: var(--ws-ink);
	border: 1px solid var(--ws-line);
	border-radius: 50%;
	box-shadow: 0 6px 18px rgba(23,26,32,.18);
	cursor: pointer; padding: 0; z-index: 3;
	transition: opacity .25s, visibility .25s, background .2s, transform .2s;
}
.ws-scroller__btn--prev { left: -18px; }
.ws-scroller__btn--next { right: -18px; }
.ws-scroller__btn:hover  { background: #fff; transform: translateY(-50%) scale(1.06); }
.ws-scroller__btn:active { transform: translateY(-50%) scale(.96); }
.ws-scroller__btn:focus-visible { outline: 2px solid var(--ws-copper-2); outline-offset: 2px; }
/* Гасим «лишнюю» стрелку, но не схлопываем раскладку. */
.ws-scroller.is-at-start .ws-scroller__btn--prev,
.ws-scroller.is-at-end   .ws-scroller__btn--next,
.ws-scroller.is-static   .ws-scroller__btn {
	opacity: 0; visibility: hidden; pointer-events: none;
}
/* Без скрипта стрелки бесполезны — свайп и трекпад работают и так. */
.no-js .ws-scroller__btn { display: none; }

@media (max-width: 1200px) {
	/* Стрелки уводить наружу больше некуда — прижимаем внутрь. */
	.ws-scroller__btn--prev { left: 6px; }
	.ws-scroller__btn--next { right: 6px; }
}
@media (max-width: 1024px) {
	.ws-scroller .ws-card { flex-basis: calc((100% - 40px) / 3); }
}
@media (max-width: 900px) {
	.ws-scroller .ws-card { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 560px) {
	.ws-scroller .ws-cards { gap: 14px; }
	.ws-scroller .ws-card { flex-basis: 100%; }
	.ws-scroller__btn { top: 88px; width: 40px; height: 40px; }
}
@media (prefers-reduced-motion: reduce) {
	.ws-scroller__viewport { scroll-behavior: auto; }
}

/* ============================================================
   OPT-SIRCA — быстрый просмотр материалов с данными Lakpro.
   Единственный владелец геометрии компонента; палитра Woodsul.
   ============================================================ */
.ws-modal-card--wide {
	max-width: 1010px; padding: 0; overflow: hidden;
	max-height: calc(100vh - 34px); max-height: calc(100dvh - 34px);
	display: flex; flex-direction: column;
}
.ws-pm { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ws-pm__overview { display: grid; grid-template-columns: minmax(0, 350px) minmax(0,1fr); }
.ws-pm__overview > * { min-width: 0; }
.ws-pm__media {
	background: #f7f3ed; padding: 30px 30px 24px;
	display: flex; flex-direction: column; min-height: 390px;
	border-right: 1px solid #ece6dd;
}
.ws-pm__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 24px; padding-right: 38px; }
.ws-pm__tag { color:#fff; font:700 10px "Golos Text",sans-serif; text-transform:uppercase; letter-spacing:.06em; padding:4px 9px; border-radius:99px; }
.ws-pm__cat { color:var(--ws-copper); font:600 11px "Golos Text",sans-serif; letter-spacing:.075em; text-transform:uppercase; }
.ws-pm__img { flex: 1; min-height: 265px; display:grid; place-items:center; padding:18px 4px; }
.ws-pm__img img { display:block; max-height:265px; max-width:100%; width:auto; height:auto; object-fit:contain; filter:drop-shadow(0 18px 20px rgba(22,27,25,.12)); }
.ws-pm__noimg { font:500 12px "Golos Text",sans-serif; color:var(--ws-muted); border:1px dashed var(--ws-line); border-radius:10px; padding:25px; text-align:center; }
.ws-pm__media-bottom { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ws-pm__sku { font:500 12px "IBM Plex Mono",monospace; color:#7f6f5e; overflow-wrap:anywhere; }
.ws-pm__colors { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:5px; }
.ws-pm__color { width:20px; height:20px; border-radius:50%; box-shadow:inset 0 0 0 1px rgba(0,0,0,.1); }
.ws-pm__color svg { display:block; width:100%; height:100%; }
.ws-pm__body { padding:34px 42px 30px; min-width:0; display:flex; flex-direction:column; align-items:stretch; }
.ws-pm__eyebrow { font:700 10px "Golos Text",sans-serif; letter-spacing:.16em; color:var(--ws-copper); text-transform:uppercase; margin-bottom:10px; }
.ws-pm__title { font:800 clamp(21px,2vw,27px)/1.23 "Montserrat",sans-serif; color:var(--ws-ink); margin:0 0 12px; padding-right:23px; overflow-wrap:anywhere; }
.ws-pm__note { color:var(--ws-text-2); font:400 14px/1.58 "Golos Text",sans-serif; margin:0 0 17px; display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.ws-pm__note[hidden] { display:none; }
.ws-pm__specs { display:grid; margin:0 0 16px; padding:0; gap:0; border-top:1px solid var(--ws-line); }
.ws-pm__spec { display:grid; grid-template-columns:minmax(110px,37%) minmax(0,1fr); gap:14px; padding:9px 0; border-bottom:1px solid var(--ws-line); font:400 12px/1.5 "Golos Text",sans-serif; }
.ws-pm__spec dt { color:var(--ws-muted); }
.ws-pm__spec dd { margin:0; color:var(--ws-text); font-weight:600; overflow-wrap:anywhere; }
.ws-pm__availability { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px 20px; margin-top:auto; padding-top:12px; }
.ws-pm__price { display:flex; flex-direction:column; gap:5px; min-width:0; }
.ws-pm__price-caption { font:600 10px "Golos Text",sans-serif; color:var(--ws-muted); text-transform:uppercase; letter-spacing:.09em; }
.ws-pm__price-amount { display:flex; align-items:baseline; gap:6px; }
.ws-pm__price-from { color:var(--ws-muted); font-size:12px; }
.ws-pm__price-val { color:var(--ws-ink); font:800 21px "Montserrat",sans-serif; }
.ws-pm__price-opt { font-size:12px; color:var(--ws-copper); }
.ws-pm__doc { color:var(--ws-copper); font:600 12px/1.5 "Golos Text",sans-serif; text-decoration:none; border-bottom:1px solid currentColor; overflow-wrap:anywhere; }
.ws-pm__details { margin-top:20px; display:inline-flex; align-self:flex-start; gap:8px; align-items:center; color:var(--ws-green-ink); font:700 13px/1.5 "Golos Text",sans-serif; text-decoration:none; border-bottom:1px solid currentColor; }
.ws-pm__details:hover, .ws-pm__doc:hover { color:var(--ws-copper); }
.ws-pm__form { background:#f7f5f1; border-top:1px solid var(--ws-line); padding:25px 32px 27px; display:grid; grid-template-columns:220px minmax(0,1fr); gap:26px; align-items:center; }
.ws-pm__form-intro { min-width:0; }
.ws-pm__form-kicker { color:var(--ws-copper); font:700 10px "Golos Text",sans-serif; letter-spacing:.12em; text-transform:uppercase; margin-bottom:7px; }
.ws-pm__form-intro h3 { color:var(--ws-ink); font:800 20px/1.26 "Montserrat",sans-serif; margin:0 0 9px; }
.ws-pm__form-intro p { color:var(--ws-text-2); font:400 13px/1.55 "Golos Text",sans-serif; margin:0; }
.ws-pm__form-content { min-width:0; }
#woodsol-product-quick-form .adk-form__grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:13px; row-gap:10px; }
#woodsol-product-quick-form .adk-form__field { min-width:0; width:100%; }
#woodsol-product-quick-form .adk-form__field[data-adk-field="consent"] { grid-column:1/-1; }
#woodsol-product-quick-form .adk-form__label:not(.adk-form__consent) { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; }
#woodsol-product-quick-form .adk-form__submit { width:100%; margin-top:12px; }
.ws-modal-card--wide .ws-modal-x { top:13px; right:14px; z-index:5; width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:#fff; border:1px solid var(--ws-line); font-size:25px; color:var(--ws-ink); box-shadow:0 2px 10px rgba(0,0,0,.06); }
.ws-modal-card--wide .ws-modal-x:hover { background:var(--ws-green-ink); color:#fff; }
.ws-pm [hidden] { display:none; }
@media(max-width:850px) {
	.ws-modal-card--wide { max-width:680px; }
	.ws-pm__overview { grid-template-columns:minmax(0,240px) minmax(0,1fr); }
	.ws-pm__media { padding:24px 20px 20px; min-height:320px; }
	.ws-pm__img { min-height:210px; }
	.ws-pm__img img { max-height:210px; }
	.ws-pm__body { padding:27px 26px 24px; }
	.ws-pm__form { grid-template-columns:minmax(0,1fr); gap:14px; padding:20px 24px; }
	.ws-pm__form-intro p { display:none; }
}
@media(max-width:580px) {
	.ws-modal { padding:8px; }
	.ws-modal-card--wide { max-height:calc(100dvh - 16px); border-radius:14px; }
	.ws-pm__overview { grid-template-columns:minmax(0,1fr); }
	.ws-pm__media { min-height:0; padding:16px 18px 14px; border-right:0; border-bottom:1px solid var(--ws-line); }
	.ws-pm__meta { min-height:20px; }
	.ws-pm__img { min-height:120px; padding:10px 4px; }
	.ws-pm__img img { max-height:170px; }
	.ws-pm__media-bottom { gap:9px; }
	.ws-pm__body { padding:21px 20px 24px; }
	.ws-pm__title { font-size:21px; padding-right:20px; }
	.ws-pm__note { -webkit-line-clamp:3; }
	.ws-pm__spec { grid-template-columns:minmax(90px,38%) minmax(0,1fr); gap:10px; }
	.ws-pm__form { padding:22px 20px; }
	#woodsol-product-quick-form .adk-form__grid { grid-template-columns:minmax(0,1fr); }
}

/* ============================================================
   СТРАНИЦА ТОВАРА — по эталону preview-html/product.dc.html
   Три секции с разными фонами: белая карточка, песочные вкладки,
   бумажный related. Раньше все три лежали в одной .ws-bg-paper
   и сливались в одно полотно.
   ============================================================ */
.ws-sec-48-48 { padding-top: 48px; padding-bottom: 48px; }
.ws-bg-sand   { background: #f7f5f1; }

/* Артикул кикером над h1 и заголовок 42px (в эталоне он мельче листингов). */
.ws-prodsku { font: 600 12px "IBM Plex Mono", monospace; letter-spacing: .12em;
	color: var(--ws-copper-3); margin-bottom: 10px; }
body:not(.home) .ws-h1--prod { font-size: 42px; line-height: 1.1; }

/* Две колонки и последовательность правой части повторяют карточку Sirca. */
.ws-pd { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 64px; align-items: start; }
.ws-pd > * { min-width: 0; }

/* Правая колонка: плашки → описание → 3 факта → цена → 2 действия → доверие. */
.ws-pd__info { display: flex; flex-direction: column; min-width: 0; }
.ws-pd__media { position: sticky; top: 90px; background: linear-gradient(180deg,#fff 0%,#f4efe8 100%);
	border: 1px solid var(--ws-line); border-radius: 18px 18px 18px 34px; padding: 30px; }
.ws-pd__tag { position: absolute; top: 18px; left: 18px; z-index: 1; color: #fff;
	font: 600 11.5px "Golos Text", sans-serif; padding: 5px 12px; border-radius: 7px; }
.ws-pd__shot { height: 400px; display: flex; align-items: center; justify-content: center; }
.ws-pd__shot img { max-height: 380px; max-width: 100%; width: auto; object-fit: contain;
	filter: drop-shadow(0 22px 26px rgba(0,0,0,.16)); }

.ws-pd__thumbs { display: flex; gap: 10px; justify-content: center; margin-top: 14px; flex-wrap: wrap; }
.ws-pd__thumb { width: 62px; height: 62px; background: #fff; border: 1px solid var(--ws-line);
	border-radius: 10px; display: flex; align-items: center; justify-content: center; padding: 6px;
	font: 500 9px "IBM Plex Mono", monospace; color: #756e60; text-align: center; }
.ws-pd__thumb.is-active { border: 2px solid var(--ws-copper-2); }
.ws-pd__thumb img { max-width: 100%; max-height: 100%; width: auto; object-fit: contain; }

.ws-pd__colors { margin-top: 22px; border-top: 1px solid var(--ws-line); padding-top: 18px; }
.ws-pd__colors-note { font-size: 12.5px; color: var(--ws-muted); margin-bottom: 10px; }
/* Кружок оттенка: в эталоне круг 30px, а не квадрат 34px с радиусом 8. */
.ws-dot-color { width: 30px; height: 30px; border-radius: 50%; flex: none;
	border: 1px solid rgba(0,0,0,.1); }

.ws-pd__stock { margin-left: auto; display: inline-flex; align-items: center; gap: 6px;
	font-size: 13px; font-weight: 600; color: #487f19; } /* 3.56:1 -> 4.86:1 на белом */
.ws-pd__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.ws-pd__chip { padding: 5px 12px; border-radius: 999px; background: #f4efe8;
	font-size: 12px; font-weight: 600; color: var(--ws-text); }
.ws-pd__lead { font-size: 16.5px; line-height: 1.6; color: var(--ws-text-2); margin: 0 0 24px; }
.ws-price__val--ask { font-size: 28px; }

/* Ключевые факты: ровно три колонки — расход, основа, фасовка. */
.ws-pd__key { display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
	gap: 12px; background: var(--ws-paper); border: 1px solid var(--ws-line);
	border-radius: 14px; padding: 16px 20px; margin-bottom: 24px; }
.ws-pd__key-item { display: flex;
	flex-direction: column; gap: 4px; min-width: 0; }
.ws-pd__key-label { font: 600 11px "Golos Text", sans-serif; color: var(--ws-copper);
	text-transform: uppercase; letter-spacing: .1em; }
.ws-pd__key-value { font: 700 14.5px/1.3 "Golos Text", sans-serif; color: var(--ws-text);
	overflow-wrap: break-word; }

/* Цена, опт и наличие — одна строка между пунктирными разделителями. */
.ws-pd__pricebox { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px;
	padding: 16px 0; border-top: 1px dashed var(--ws-line); border-bottom: 1px dashed var(--ws-line);
	margin-bottom: 20px; }
.ws-pd__pricebox .ws-price__from { font-size: 13px; color: var(--ws-muted); }
.ws-pd__pricebox .ws-price__val { font: 800 28px/1 "Montserrat", sans-serif; color: var(--ws-text); }
.ws-pd__price-opt { font-size: 13px; color: var(--ws-copper); font-weight: 700;
	padding: 3px 10px; background: rgba(192,133,82,.12); border-radius: 999px; }

@media (max-width: 560px) { .ws-pd__key { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.ws-pd__btns { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin-bottom: 22px; }
.ws-btn--flex { width: 100%; min-width: 0; padding: 14px; font-size: 15px; min-height: 52px;
	white-space: normal; justify-content: center; text-align: center; }

.ws-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ws-checklist li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ws-text-2); }
.ws-ico-check, .ws-ico-file { flex: none; }

/* Текст применения без памятки занимает всю ширину, а не половину. */
.ws-usegrid--solo { grid-template-columns: minmax(0,1fr); }
.ws-usetext { font-size: 15px; line-height: 1.7; color: var(--ws-text-2); }
.ws-usetext p { margin: 0 0 14px; }
.ws-usetext p:last-child { margin-bottom: 0; }

@media (max-width: 980px) {
	.ws-pd { grid-template-columns: minmax(0,1fr); gap: 30px; }
	.ws-pd__media { position: static; }
}
@media (max-width: 560px) {
	body:not(.home) .ws-h1--prod { font-size: 30px; }
	.ws-pd__shot { height: 300px; }
	.ws-pd__shot img { max-height: 280px; }
	.ws-pd__btns { grid-template-columns: minmax(0,1fr); }
	.ws-pd__stock { width: 100%; margin-left: 0; }
}

.ws-card-cover { width: 100%; height: 100%; object-fit: cover; display: block; }
.ws-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.ws-tag--green { background: var(--ws-green-ink); }
/* Синяя плашка с белым текстом: #1f7dc2 давал 4.4:1 при 11px. */
.ws-tag--blue { background: #1b6ea9; }
.ws-tag--dark { background: #171a20; }
.ws-card-product-img { max-height: 180px; width: auto; object-fit: contain; }
.ws-card-product-img--home { max-height: 165px; }
.ws-dot-color svg { display: block; width: 100%; height: 100%; }
.ws-pm__color svg { display: block; width: 100%; height: 100%; }

/* ── Cookie-баннер (Woodsol): скин проекта. Ядро на переопределяемых переменных,
      здесь только палитра — поведение/разметка общие. ── */
html .adk-cookie {
	--adk-cookie-bg: #171A20;
	--adk-cookie-fg: #EFECE6;
	--adk-cookie-accent: #A96F42;
	--adk-cookie-link: #D0A077;
}


/* ============================================================
   КОНТРАКТ ДОБОРНОГО РЯДА (woodsol)
   Число карточек в этих сетках задаёт владелец, поэтому ряд не
   имеет права обрываться ни при каком количестве. База — вдвое
   больше треков, карточка занимает два; если в последнем ряду
   осталось меньше карточек, они делят освободившиеся треки.
   Этот блок — единственный владелец grid-template-columns для
   перечисленных сеток: выше их горизонтальный контракт не задаётся.
   ============================================================ */
.ws-cards--cat,.ws-cards--rel,.ws-g-4{grid-template-columns:repeat(8,minmax(0,1fr))}
.ws-cards--cat>*,.ws-cards--rel>*,.ws-g-4>*{grid-column:span 2;min-width:0}
@media (min-width: 641px) {
.ws-cards--cat>:nth-child(4n+1):nth-last-child(3),.ws-cards--rel>:nth-child(4n+1):nth-last-child(3),.ws-g-4>:nth-child(4n+1):nth-last-child(3),.ws-cards--cat>:nth-child(4n+1):nth-last-child(3)~*,.ws-cards--rel>:nth-child(4n+1):nth-last-child(3)~*,.ws-g-4>:nth-child(4n+1):nth-last-child(3)~*{grid-column:span 2}
.ws-cards--cat>:nth-child(4n+1):nth-last-child(2),.ws-cards--rel>:nth-child(4n+1):nth-last-child(2),.ws-g-4>:nth-child(4n+1):nth-last-child(2),.ws-cards--cat>:nth-child(4n+1):nth-last-child(2)~*,.ws-cards--rel>:nth-child(4n+1):nth-last-child(2)~*,.ws-g-4>:nth-child(4n+1):nth-last-child(2)~*{grid-column:span 4}
.ws-cards--cat>:nth-child(4n+1):last-child,.ws-cards--rel>:nth-child(4n+1):last-child,.ws-g-4>:nth-child(4n+1):last-child{grid-column:span 8}
}
.ws-cards-3,.ws-g-facts,.ws-docgrid{grid-template-columns:repeat(6,minmax(0,1fr))}
.ws-cards-3>*,.ws-g-facts>*,.ws-docgrid>*{grid-column:span 2;min-width:0}
@media (min-width: 641px) {
.ws-cards-3>:nth-child(3n+1):nth-last-child(2),.ws-g-facts>:nth-child(3n+1):nth-last-child(2),.ws-docgrid>:nth-child(3n+1):nth-last-child(2),.ws-cards-3>:nth-child(3n+1):nth-last-child(2)~*,.ws-g-facts>:nth-child(3n+1):nth-last-child(2)~*,.ws-docgrid>:nth-child(3n+1):nth-last-child(2)~*{grid-column:span 3}
.ws-cards-3>:nth-child(3n+1):last-child,.ws-g-facts>:nth-child(3n+1):last-child,.ws-docgrid>:nth-child(3n+1):last-child{grid-column:span 6}
}
.ws-g-2,.ws-g-2-start{grid-template-columns:repeat(4,minmax(0,1fr))}
.ws-g-2>*,.ws-g-2-start>*{grid-column:span 2;min-width:0}
@media (min-width: 641px) {
.ws-g-2>:nth-child(2n+1):last-child,.ws-g-2-start>:nth-child(2n+1):last-child{grid-column:span 4}

}
@media (min-width: 641px) and (max-width:900px){
.ws-cards--cat,.ws-cards--rel,.ws-cards-3,.ws-docgrid,.ws-g-4,.ws-g-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
.ws-cards--cat>*,.ws-cards--rel>*,.ws-cards-3>*,.ws-docgrid>*,.ws-g-4>*,.ws-g-facts>*{grid-column:span 2}
.ws-cards-3>:nth-child(3n+1):nth-last-child(2),.ws-g-facts>:nth-child(3n+1):nth-last-child(2),.ws-docgrid>:nth-child(3n+1):nth-last-child(2),.ws-cards-3>:nth-child(3n+1):nth-last-child(2)~*,.ws-g-facts>:nth-child(3n+1):nth-last-child(2)~*,.ws-docgrid>:nth-child(3n+1):nth-last-child(2)~*{grid-column:span 2}
.ws-cards-3>:nth-child(3n+1):last-child,.ws-g-facts>:nth-child(3n+1):last-child,.ws-docgrid>:nth-child(3n+1):last-child{grid-column:span 2}
.ws-cards--cat>:nth-child(4n+1):nth-last-child(3),.ws-cards--rel>:nth-child(4n+1):nth-last-child(3),.ws-g-4>:nth-child(4n+1):nth-last-child(3),.ws-cards--cat>:nth-child(4n+1):nth-last-child(3)~*,.ws-cards--rel>:nth-child(4n+1):nth-last-child(3)~*,.ws-g-4>:nth-child(4n+1):nth-last-child(3)~*{grid-column:span 2}
.ws-cards--cat>:nth-child(4n+1):nth-last-child(2),.ws-cards--rel>:nth-child(4n+1):nth-last-child(2),.ws-g-4>:nth-child(4n+1):nth-last-child(2),.ws-cards--cat>:nth-child(4n+1):nth-last-child(2)~*,.ws-cards--rel>:nth-child(4n+1):nth-last-child(2)~*,.ws-g-4>:nth-child(4n+1):nth-last-child(2)~*{grid-column:span 2}
.ws-cards--cat>:nth-child(4n+1):last-child,.ws-cards--rel>:nth-child(4n+1):last-child,.ws-g-4>:nth-child(4n+1):last-child{grid-column:span 2}
.ws-cards--cat>:nth-child(2n+1):last-child,.ws-cards--rel>:nth-child(2n+1):last-child,.ws-cards-3>:nth-child(2n+1):last-child,.ws-docgrid>:nth-child(2n+1):last-child,.ws-g-4>:nth-child(2n+1):last-child,.ws-g-facts>:nth-child(2n+1):last-child{grid-column:span 4}
.ws-g-2,.ws-g-2-start{grid-template-columns:minmax(0,1fr)}
.ws-g-2>*,.ws-g-2-start>*{grid-column:1/-1}
}

/* На планшете последняя статья заполняет ширину ряда, но остаётся
   компактной: обложка слева, текст справа вместо гигантского фото. */
@media (min-width: 641px) and (max-width: 900px) {
  .ws-cards-3 > .ws-card:nth-child(2n+1):last-child { flex-direction: row; min-height: 210px; }
  .ws-cards-3 > .ws-card:nth-child(2n+1):last-child .ws-card-img { flex: 0 0 38%; aspect-ratio: auto; height: auto; }
  .ws-cards-3 > .ws-card:nth-child(2n+1):last-child .ws-card-body { flex: 1; min-width: 0; justify-content: center; }
}

@media (max-width:640px){
.ws-cards--cat,.ws-cards--rel,.ws-cards-3,.ws-docgrid,.ws-g-2,.ws-g-2-start,.ws-g-4,.ws-g-facts{grid-template-columns:minmax(0,1fr)}
.ws-cards--cat>*,.ws-cards--rel>*,.ws-cards-3>*,.ws-docgrid>*,.ws-g-2>*,.ws-g-2-start>*,.ws-g-4>*,.ws-g-facts>*{grid-column:1/-1}
}

/* Одинокая карточка доборного ряда — горизонтальная, а не растянутая.
   Контракт выше закрывает ряд при любом N, но карточка на всю ширину
   выглядит раздутой: картинка тонет в пустом поле, а текст жмётся к левому
   краю. Поэтому карточка, занявшая весь ряд, раскладывается в строку —
   медиа слева фиксированной долей, тело справа. Правило живёт рядом со
   своим контрактом и работает только на десктопе: ниже 900px ряд и так
   схлопывается. */
@media (min-width: 901px) {
	.ws-cards--cat > .ws-card:nth-child(4n+1):last-child,
	.ws-cards--rel > .ws-card:nth-child(4n+1):last-child,
	.ws-cards-3 > .ws-card:nth-child(3n+1):last-child {
		flex-direction: row;
		align-items: stretch;
	}
	.ws-cards--cat > .ws-card:nth-child(4n+1):last-child .ws-card-img,
	.ws-cards--rel > .ws-card:nth-child(4n+1):last-child .ws-card-img,
	.ws-cards-3 > .ws-card:nth-child(3n+1):last-child .ws-card-img {
		flex: 0 0 26%;
		height: auto;
		aspect-ratio: auto;
		border-right: 1px solid #efece6;
	}
	.ws-cards--cat > .ws-card:nth-child(4n+1):last-child .ws-card-body,
	.ws-cards--rel > .ws-card:nth-child(4n+1):last-child .ws-card-body,
	.ws-cards-3 > .ws-card:nth-child(3n+1):last-child .ws-card-body {
		border-top: none;
		justify-content: center;
		max-width: 74%;
	}
}
