/*
Theme Name: Electrino
Description: Витрина электроники на DarCommerce. Светлая техническая база, чернильные акценты, электрический синий, моно-цифры. Без конструкторов.
Author: Lev Daruev
Author URI: https://daruev.ru
Version: 0.4.0
Text Domain: electrino
*/

/* Токены ----------------------------------------------------------------- */

:root {
	--paper: #F4F5F7;
	--surface: #FFFFFF;
	--ink: #0B0D12;
	--ink-2: #4A5261;
	--ink-3: #6F7786;
	--line: #E5E8ED;
	--line-2: #D6DBE2;
	--accent: #2E5BFF;
	--accent-2: #1E43D6;
	--accent-soft: #6E92FF;
	--tint: #EDF1FF;
	--tint-2: #DCE5FF;
	--dark: #0A0C11;
	--dark-2: #12151D;
	--dark-3: #181C26;
	--dark-line: #242938;
	--dark-text: #C7CCD8;
	--dark-muted: #7A8194;
	--icon: #1E2F66;
	--ok: #0E8A5F;
	--ok-tint: #E4F5ED;

	--font: 'Golos Text', 'Segoe UI', system-ui, sans-serif;
	--mono: 'Electrino Zero', 'JetBrains Mono', 'Cascadia Mono', monospace;
	--display: var(--font);

	--r-lg: 18px;
	--r-md: 12px;
	--r-sm: 10px;

	--shadow-1: 0 14px 34px rgba(11, 13, 18, 0.10), 0 2px 8px rgba(11, 13, 18, 0.05);
	--shadow-2: 0 24px 60px rgba(11, 13, 18, 0.16);

	--container: 1280px;
	--gutter: 24px;
	--header-h: 72px;
	--h-sm: 38px;
	--h: 46px;
	--h-lg: 54px;

	/* Токены скина DarCommerce (store.css читает --dag-*) */
	--dag-acc: var(--accent);
	--dag-acc-2: var(--accent-2);
	--dag-tx: var(--ink);
	--dag-tx-faint: var(--ink-2);
	--dag-line: var(--line);
	--dag-ink-0: #FFFFFF;
	--dag-ink-2: var(--paper);
	--dag-mono: var(--mono);
}

/* Reset ------------------------------------------------------------------ */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

input, select, textarea { font-family: inherit; font-size: inherit; color: var(--ink); }
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }
input:-webkit-autofill, textarea:-webkit-autofill, select:-webkit-autofill { -webkit-text-fill-color: var(--ink); caret-color: var(--ink); }

h1, h2, h3, h4, p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

::selection { background: var(--accent); color: #fff; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }

.mono { font-family: var(--mono); }

/* Появление по скроллу: только opacity, без сдвигов ---------------------- */

html.js .reveal { opacity: 0; transition: opacity 0.7s ease; }
html.js .reveal.is-in { opacity: 1; }
html.js [data-stagger] > * { opacity: 0; transition: opacity 0.6s ease; }
html.js [data-stagger].is-in > * { opacity: 1; }
html.js [data-stagger].is-in > *:nth-child(2) { transition-delay: 0.06s; }
html.js [data-stagger].is-in > *:nth-child(3) { transition-delay: 0.12s; }
html.js [data-stagger].is-in > *:nth-child(4) { transition-delay: 0.18s; }
html.js [data-stagger].is-in > *:nth-child(5) { transition-delay: 0.24s; }
html.js [data-stagger].is-in > *:nth-child(6) { transition-delay: 0.3s; }
html.js [data-stagger].is-in > *:nth-child(7) { transition-delay: 0.36s; }
html.js [data-stagger].is-in > *:nth-child(8) { transition-delay: 0.42s; }

/* Кнопки и чипы ----------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: var(--h);
	padding: 0 22px;
	border-radius: var(--r-md);
	border: 1px solid transparent;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	transition: box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	white-space: nowrap;
}

.btn svg { width: 16px; height: 16px; flex: none; }

.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); box-shadow: 0 10px 24px rgba(46, 91, 255, 0.35); }

.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { box-shadow: 0 14px 34px rgba(46, 91, 255, 0.25); background: var(--tint); }

.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }

.btn--ghost-dark { background: rgba(255, 255, 255, 0.04); border-color: var(--dark-line); color: #fff; }
.btn--ghost-dark:hover { border-color: var(--dark-text); }

.btn--sm { height: var(--h-sm); padding: 0 16px; font-size: 13px; border-radius: var(--r-sm); }

.btn--lg { height: var(--h-lg); padding: 0 28px; font-size: 15px; border-radius: 14px; }

.chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	height: 34px;
	padding: 0 14px;
	border-radius: 999px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink-2);
	font-size: 13px;
	font-weight: 500;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover { border-color: var(--ink-3); color: var(--ink); }

.chip .mono { font-size: 12px; color: var(--ink-3); }
.chip:hover .mono { color: var(--ink-2); }

.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.active .mono { color: rgba(255, 255, 255, 0.6); }

/* Шапка ------------------------------------------------------------------- */

.topstrip { background: var(--ink); color: var(--dark-muted); font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.02em; }
.topstrip .container { display: flex; align-items: center; justify-content: space-between; height: 34px; gap: 16px; }
.topstrip a { color: var(--dark-text); transition: color 0.2s ease; }
.topstrip a:hover { color: #fff; }
.topstrip nav { display: flex; gap: 20px; }
.topstrip__facts { display: flex; align-items: center; gap: 22px; }
.topstrip__facts li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.topstrip__facts svg { width: 14px; height: 14px; color: var(--accent-soft); flex: none; }
.topstrip__facts b { color: #fff; font-weight: 600; }

.header { position: sticky; top: 0; z-index: 60; background: rgba(244, 245, 247, 0.84); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid var(--line); transition: box-shadow 0.25s ease, background-color 0.25s ease; }
.header.scrolled { box-shadow: 0 8px 30px rgba(11, 13, 18, 0.07); }
html.mega-open .header { background: var(--surface); }
.header__bar { display: flex; align-items: center; gap: 16px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-weight: 800; font-size: 21px; line-height: 1; letter-spacing: -0.04em; color: var(--ink); flex: none; }
.logo__mark { display: block; flex: none; width: 34px; height: 34px; border-radius: 10px; }
.logo .dot { color: var(--accent); }

.catalog-btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: var(--h);
	padding: 0 18px 0 14px;
	border: 0;
	border-radius: var(--r-md);
	background: var(--ink);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.catalog-btn:hover { background: #1B1F2A; box-shadow: 0 10px 24px rgba(11, 13, 18, 0.18); }
.catalog-btn[aria-expanded="true"] { background: var(--accent); }

/* Три полоски: в открытом состоянии гаснет средняя, крайние меняют цвет — без поворотов */
.catalog-btn__icon { display: grid; gap: 3px; width: 16px; }
.catalog-btn__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: opacity 0.2s ease; }
.catalog-btn[aria-expanded="true"] .catalog-btn__icon i:nth-child(2) { opacity: 0.35; }

form.search { flex: 1; display: flex; align-items: center; position: relative; max-width: 620px; }
.search > svg { position: absolute; left: 15px; width: 17px; height: 17px; color: var(--ink-2); pointer-events: none; z-index: 1; }
.search input {
	width: 100%;
	height: var(--h);
	padding: 0 44px 0 42px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	background: var(--surface);
	color: var(--ink);
	font-size: 14px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-webkit-appearance: none;
}
.search input::-webkit-search-cancel-button { display: none; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.search__kbd { position: absolute; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 6px; color: var(--ink-3); font-size: 11px; pointer-events: none; transition: opacity 0.2s ease; }
.search input:focus ~ .search__kbd { opacity: 0; }
.search.is-loading > svg { color: var(--accent); }

/* Подсказки поиска */
.suggest {
	position: absolute;
	top: calc(100% + 8px);
	left: 0;
	right: 0;
	z-index: 70;
	max-height: min(70vh, 560px);
	overflow-y: auto;
	padding: 8px;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-2);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease, visibility 0.18s;
}
.search.has-suggest .suggest { opacity: 1; visibility: visible; }
.suggest__group { padding: 10px 10px 6px; color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.suggest__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--r-sm); transition: background-color 0.15s ease; }
.suggest__item:hover, .suggest__item.is-cursor { background: var(--paper); }
.suggest__item--cat { grid-template-columns: minmax(0, 1fr) auto; }
.suggest__img { width: 44px; height: 44px; border-radius: 8px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.suggest__img img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.suggest__text { display: grid; gap: 1px; min-width: 0; }
.suggest__brand { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.suggest__name { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggest__price, .suggest__meta { font-size: 13px; font-weight: 600; white-space: nowrap; }
.suggest__meta { color: var(--ink-3); font-weight: 400; }
.suggest__all { grid-template-columns: minmax(0, 1fr) auto; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-sm) var(--r-sm); padding-top: 12px; color: var(--accent); font-size: 13.5px; font-weight: 600; }
.suggest__none { padding: 18px 12px; color: var(--ink-2); font-size: 14px; }

.header__end { margin-left: auto; display: flex; align-items: center; gap: 14px; flex: none; }

.topstrip__addr { display: inline-flex; align-items: center; gap: 6px; }
.topstrip__addr svg { width: 14px; height: 14px; color: var(--accent-soft); }

/* Телефон в шапке: номер + живой статус работы */
.hphone { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.hphone__icon { display: grid; place-items: center; width: var(--h); height: var(--h); border-radius: var(--r-md); background: var(--tint); color: var(--icon); transition: background-color 0.2s ease, color 0.2s ease; }
.hphone__icon svg { width: 19px; height: 19px; }
.hphone:hover .hphone__icon { background: var(--accent); color: #fff; }
.hphone__text { display: grid; gap: 1px; }
.hphone__num { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; transition: color 0.2s ease; }
.hphone:hover .hphone__num { color: var(--accent); }
.hphone__status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-3); font-size: 11.5px; white-space: nowrap; }
.hphone__status.is-open, .hphone__status.is-closed { font-weight: 500; }
.hphone__status.is-open { color: var(--ok); }
.hphone__status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hphone__status:not(.is-open):not(.is-closed)::before { display: none; }
.hmail { display: block; color: var(--ink); }
.hmail__icon { display: grid; place-items: center; width: var(--h); height: var(--h); border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.hmail__icon svg { width: 19px; height: 19px; }
.hmail:hover .hmail__icon { border-color: var(--accent); color: var(--accent); }

/* Мега-меню каталога */
.mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 65;
	background: var(--surface);
	border-bottom: 1px solid var(--line);
	box-shadow: 0 40px 80px rgba(11, 13, 18, 0.14), 0 0 0 100vmax rgba(10, 12, 17, 0.34);
	clip-path: inset(0 -100vw -100vh -100vw);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s;
}
html.mega-open .mega { opacity: 1; visibility: visible; }

.mega-scrim { display: none; }

.mega__inner { padding-top: 28px; padding-bottom: 26px; }
.mega__head { display: none; }
.mega__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mega__col { padding: 18px 20px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color 0.18s ease; }
.mega__col:hover { background: var(--paper); }
.mega__cat { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.mega__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--tint); color: var(--icon); transition: background-color 0.18s ease, color 0.18s ease; }
.mega__col:hover .mega__icon { background: var(--accent); color: #fff; }
.mega__name { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.mega__subs { display: grid; gap: 6px; margin-top: 14px; padding-left: 50px; }
.mega__subs a { color: var(--ink-2); font-size: 13.5px; transition: color 0.15s ease; }
.mega__subs a:hover { color: var(--accent); }
.mega__foot { display: flex; gap: 26px; padding-top: 18px; font-size: 12.5px; letter-spacing: 0.02em; }
.mega__foot a { color: var(--ink-2); transition: color 0.15s ease; }
.mega__foot a:first-child { color: var(--accent); font-weight: 600; }
.mega__foot a:hover { color: var(--ink); }
.mega__close { display: inline-flex; align-items: center; justify-content: center; width: var(--h); height: var(--h); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); }
.mega__close svg { width: 18px; height: 18px; }

/* Мини-корзина DarCommerce, перекрашенная под витрину --------------------- */

.dc-mini-root { flex: none; }

/* Кнопка корзины в шапке: store.css плагина грузится позже и обнуляет рамку, поэтому через .header */
.header .dc-mini-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--h);
	height: var(--h);
	padding: 0;
	border-radius: var(--r-md);
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.header .dc-mini-btn:hover { border-color: var(--ink); color: var(--ink); }

.header .dc-mini-btn svg { width: 19px; height: 19px; }

.header .dc-mini-btn .dc-cart-count { position: absolute; top: -7px; right: -7px; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--mono); font-size: 11px; font-weight: 600; box-shadow: 0 0 0 2px var(--paper); }
.header .dc-mini-btn .dc-cart-count[hidden] { display: none; }

/* Плавающая кнопка корзины задвоена с шапкой; wp_localize съедает boolean,
   config-фильтром она не гасится — глушим здесь. */
.dc-fab { display: none !important; }

/* Главная v3: витрина уровня фирменных сторов ------------------------------ */

.btn--pill { border-radius: 999px; padding: 0 24px; }
.btn--outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--outline:hover { background: var(--accent); color: #fff; box-shadow: 0 10px 24px rgba(46, 91, 255, 0.28); }

.link-more { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 16px; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
.link-more svg { width: 15px; height: 15px; }
.link-more:hover { color: var(--accent-2); text-decoration-color: currentColor; }
.link-more--lg { font-size: 18px; }

/* Заголовки витрины: «Главное. Серое уточнение» */
.h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 750; letter-spacing: -0.035em; line-height: 1.1; }
.h2 span { color: var(--ink-3); }
.h2 span::before { content: '. '; color: var(--ink); }


/* Бенто разделов */
.cats { padding-top: 28px; padding-bottom: 28px; }
.cats__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 212px; gap: 14px; }

.ctile {
	position: relative;
	display: block;
	padding: 22px 22px 0;
	border-radius: 24px;
	background: linear-gradient(160deg, #FFFFFF 0%, #F2F4F8 100%);
	overflow: hidden;
	transition: box-shadow 0.25s ease;
}
.ctile:hover { box-shadow: 0 22px 50px rgba(11, 13, 18, 0.10); }
.ctile__text { position: relative; z-index: 1; display: grid; gap: 4px; max-width: 70%; }
.ctile__name { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; transition: color 0.2s ease; }
.ctile:hover .ctile__name { color: var(--accent); }
.ctile__meta { color: var(--ink-3); font-size: 11.5px; }
.ctile__img { position: absolute; right: -4%; bottom: -6%; width: 62%; height: 70%; display: grid; place-items: end end; color: var(--accent); }
.ctile__img img { width: 100%; height: 100%; object-fit: contain; object-position: right bottom; mix-blend-mode: multiply; transition: filter 0.3s ease; }
.ctile:hover .ctile__img img { filter: brightness(1.02) contrast(1.05); }
.ctile__img svg { margin: 0 24px 34px 0; }

.ctile--big { grid-column: span 2; grid-row: span 2; padding: 32px 32px 0; background: linear-gradient(160deg, #F1F4FF 0%, #FAFBFF 60%, #FFFFFF 100%); }
.ctile--big .ctile__name { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.04em; }
.ctile--big .ctile__meta { font-size: 13px; }
.ctile--big .ctile__img { right: -2%; bottom: -4%; width: 78%; height: 72%; }
.ctile__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.ctile__sub { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); color: var(--ink-2); font-size: 12.5px; font-weight: 500; }

.ctile--all {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding-bottom: 20px;
	border: 1px solid var(--tint-2);
	background:
		radial-gradient(260px 200px at 100% 0%, rgba(46, 91, 255, 0.22), transparent 70%),
		radial-gradient(220px 160px at 0% 100%, rgba(143, 216, 255, 0.28), transparent 70%),
		linear-gradient(160deg, #F4F7FF 0%, #FFFFFF 100%);
}
.ctile--all .ctile__name { color: var(--accent-2); }
.ctile--all:hover { border-color: var(--accent-soft); box-shadow: 0 22px 50px rgba(46, 91, 255, 0.18); }
.ctile__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Стопка превью: круглые плашки внахлёст, последняя — счётчик остальных */
.stack { display: flex; align-items: center; }
.stack__item, .stack__more { display: grid; place-items: center; width: 46px; height: 46px; margin-left: -12px; border-radius: 50%; background: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(11, 13, 18, 0.10); overflow: hidden; }
.stack__item:first-child { margin-left: 0; }
.stack__item img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.stack__more { background: var(--tint); color: var(--accent-2); font-size: 11px; font-weight: 600; }

.ctile__go { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(46, 91, 255, 0.35); transition: background-color 0.2s ease, box-shadow 0.2s ease; }
.ctile__go svg { width: 20px; height: 20px; }
.ctile--all:hover .ctile__go { background: var(--accent-2); box-shadow: 0 10px 26px rgba(46, 91, 255, 0.45); }

/* Быстрый выбор */
.quick { padding-bottom: 64px; }
.quick__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.quick__block { display: grid; gap: 12px; align-content: start; min-width: 0; padding: 20px 22px; border-radius: 22px; background: var(--surface); }
.quick__label { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.quick__row { display: flex; flex-wrap: wrap; gap: 8px; }
.quick__row--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); }
.quick__row--scroll::-webkit-scrollbar { display: none; }
.qchip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: var(--h-sm); padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 550; white-space: nowrap; transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease; }
.qchip .mono { color: var(--ink-3); font-size: 11.5px; font-weight: 400; }
.qchip:hover { border-color: var(--ink); }
.qchip--brand { background: var(--paper); border-color: transparent; }
.qchip--brand:hover { background: var(--surface); border-color: var(--ink); }

/* Лучшее в разделах: табы */
.best { padding: 8px 0 24px; }
.best__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: #E9EBEF; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
	flex: none;
	height: 38px;
	padding: 0 16px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	background: transparent;
	color: var(--ink-2);
	font-size: 13.5px;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(100deg, var(--accent), #8FD8FF) border-box; box-shadow: 0 4px 14px rgba(46, 91, 255, 0.14); }
.best__pane[hidden] { display: none; }

/* Флагманы */
.flags { padding: 56px 0 8px; }
.flag { position: relative; display: grid; align-content: start; grid-template-rows: auto auto 1fr auto; gap: 6px; padding: 20px 20px 18px; border-radius: 24px; background: var(--surface); transition: box-shadow 0.25s ease; }
.flag:hover { box-shadow: 0 22px 50px rgba(11, 13, 18, 0.10); }
.flag__hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.flag__img { display: block; aspect-ratio: 1 / 1; margin-bottom: 12px; }
.flag__img img { width: 100%; height: 100%; object-fit: contain; }
.flag__name { font-size: 19px; font-weight: 700; letter-spacing: -0.025em; transition: color 0.2s ease; }
.flag:hover .flag__name { color: var(--accent); }
.flag__line { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
.flag__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.flag__price { font-size: 15px; font-weight: 600; }

/* Карусели: лента во всю ширину, левый край по сетке контейнера ----------- */
.rail { padding: 72px 0 8px; }
.best__tools { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.best__tools .tabs { min-width: 0; flex: 1 1 auto; max-width: 100%; }
.cnav { display: flex; gap: 8px; flex: none; }
.cnav__btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #E6E8ED; color: var(--ink); transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease; }
.cnav__btn svg { width: 20px; height: 20px; }
.cnav__btn:hover { background: var(--ink); color: #fff; }
.cnav__btn:disabled { opacity: 0.3; pointer-events: none; }

.carousel { position: relative; }
.carousel__track {
	--pad: max(var(--gutter), calc((100% - var(--container)) / 2));
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 272px;
	gap: 16px;
	padding: 6px var(--pad) 18px;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--pad);
	scrollbar-width: none;
	cursor: grab;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__track--wide { grid-auto-columns: 320px; }
.carousel__track .pcard { border-radius: 22px; }
.carousel__track.is-dragging, [data-drag].is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.carousel__track.is-dragging a, [data-drag].is-dragging a { pointer-events: none; }
.carousel__track img { -webkit-user-drag: none; user-select: none; }
[data-drag] { cursor: grab; }

.carousel__bar { position: relative; height: 3px; margin: 4px auto 0; width: min(240px, 40%); border-radius: 3px; background: #E3E6EB; overflow: hidden; }
.carousel__bar span { position: absolute; left: 0; top: 0; bottom: 0; width: 40px; border-radius: 3px; background: var(--ink); }
.carousel.is-static .carousel__bar { display: none; }

.more-card { display: flex; flex-direction: column; justify-content: space-between; padding: 22px; border-radius: 22px; border: 1px solid var(--tint-2); background: radial-gradient(240px 200px at 100% 0%, rgba(46, 91, 255, 0.18), transparent 70%), linear-gradient(160deg, #F4F7FF, #FFFFFF); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.more-card:hover { border-color: var(--accent-soft); box-shadow: 0 22px 50px rgba(46, 91, 255, 0.16); }
.more-card__n { color: var(--accent); font-size: 44px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.more-card__name { margin-top: auto; margin-bottom: 16px; font-size: 22px; font-weight: 750; letter-spacing: -0.03em; line-height: 1.15; color: var(--accent-2); }
.more-card .ctile__go { align-self: flex-end; }
.more-card:hover .ctile__go { background: var(--accent-2); }

/* Причины купить */
.whyus { padding: 72px 0 104px; }
.whyus .h2 { margin-bottom: 28px; }
.whyus__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.why { display: grid; align-content: start; gap: 10px; padding: 30px 28px 32px; border-radius: 24px; background: var(--surface); transition: box-shadow 0.25s ease; }
.why:hover { box-shadow: var(--shadow-1); }
.why svg { width: 34px; height: 34px; color: var(--accent); margin-bottom: 10px; }
.why h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.why p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* Отзывы: карусель карточек */
.reviews { padding: 24px 0 88px; }
.reviews__title { display: grid; gap: 10px; }
.reviews__score { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); font-size: 12px; }
.reviews__score b { color: var(--ink); font-size: 20px; font-weight: 600; }
.reviews__stars, .review__stars { display: inline-flex; gap: 2px; color: var(--accent); }
.reviews__stars svg { width: 15px; height: 15px; }
.carousel__track--review { grid-auto-columns: 380px; }
.review { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 26px 26px 22px; border-radius: 24px; background: var(--surface); transition: box-shadow 0.25s ease; }
.review:hover { box-shadow: 0 22px 50px rgba(11, 13, 18, 0.08); }
.review__stars svg { width: 14px; height: 14px; }
.review__text { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.55; letter-spacing: -0.005em; display: -webkit-box; -webkit-line-clamp: 7; -webkit-box-orient: vertical; overflow: hidden; }
.review__who { display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.review__avatar { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--accent-2); font-weight: 700; font-size: 15px; }
.review__name { font-size: 14px; font-weight: 650; }
.review__date { color: var(--ink-3); font-size: 11.5px; }

/* Финал: призыв + магазин */
.finale { background: var(--dark); color: #fff; }
.finale__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 88px; }
.finale__cta { display: grid; gap: 14px; justify-items: start; }
.finale__title { font-size: clamp(30px, 3.6vw, 52px); font-weight: 750; letter-spacing: -0.04em; line-height: 1.05; }
.finale__cta p { max-width: 460px; color: var(--dark-text); font-size: 16px; line-height: 1.55; }
.finale__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.finale__shop { display: grid; gap: 0; padding: 26px 28px; border: 1px solid var(--dark-line); border-radius: 24px; background: linear-gradient(160deg, rgba(46, 91, 255, 0.10), rgba(255, 255, 255, 0.02)); }
.finale__label { margin-bottom: 8px; color: var(--dark-muted); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.finale__row { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--dark-line); }
.finale__row:first-of-type { border-top: 0; }
.finale__row svg { width: 20px; height: 20px; color: var(--accent-soft); margin-top: 1px; }
.finale__row span { display: grid; gap: 2px; color: var(--dark-muted); font-size: 13.5px; }
.finale__row b { color: #fff; font-size: 16px; font-weight: 600; }

/* Секции и заголовки (карточка товара) -------------------------------------- */

.sec-head { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: baseline; gap: 12px; margin-bottom: 32px; }
.sec-index { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; }
.sec-index::before { content: '/ '; color: var(--ink-3); }
.sec-title { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.sec-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent); transition: color 0.2s ease; }
.sec-link:hover { color: var(--accent-2); }
.sec-link svg { width: 14px; height: 14px; }

/* Подвал ---------------------------------------------------------------------------- */

.footer { background: var(--dark); color: var(--dark-text); border-top: 1px solid var(--dark-line); }
.footer__hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px 0 44px; border-bottom: 1px solid var(--dark-line); }
.footer__logo { display: inline-flex; align-items: center; gap: 0.22em; font-family: var(--font); font-weight: 800; font-size: clamp(40px, 8vw, 112px); line-height: 1; letter-spacing: -0.035em; color: #fff; margin-bottom: 20px; }
.footer__logo .logo__mark { width: 0.8em; height: 0.8em; border-radius: 0.24em; }
.footer__logo .dot { color: var(--accent); }
.footer__main { display: grid; grid-template-columns: 1.45fr 1fr 1fr 1.05fr 1.3fr; gap: 40px; padding-top: 44px; padding-bottom: 44px; align-items: start; }
.footer__tag { max-width: 320px; font-size: 14px; line-height: 1.65; color: var(--dark-muted); }
.footer__h { color: var(--dark-muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; }
.footer nav { display: grid; gap: 10px; }
.footer nav a { color: var(--dark-text); font-size: 14px; transition: color 0.2s ease; }
.footer nav a:hover { color: #fff; }
.footer nav .mono { font-size: 13.5px; }
.footer .footer__phone { color: #fff; font-size: 16px; font-weight: 600; }
.footer__note { margin-top: 12px; color: var(--dark-muted); font-size: 13px; line-height: 1.6; }
.footer__bottom { border-top: 1px solid var(--dark-line); padding-top: 22px; padding-bottom: 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--dark-muted); font-family: var(--mono); font-size: 12px; }
.credit { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 14px; border: 1px solid var(--dark-line); border-radius: 999px; color: var(--dark-muted); transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease; }
.credit__label { font-size: 11.5px; }
.credit__name { color: #fff; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.credit svg { width: 14px; height: 14px; color: var(--accent-soft); }
.credit:hover { border-color: rgba(110, 146, 255, 0.55); color: var(--dark-text); box-shadow: 0 0 0 4px rgba(46, 91, 255, 0.10); }

/* Кнопка «плюс» — общая для витринных блоков: плюс ↔ галочка по is-added -------------- */

.pcard__add {
	position: relative;
	z-index: 2;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	border: 1px solid var(--line-2);
	background: var(--surface);
	color: var(--ink);
	display: inline-grid;
	place-items: center;
	cursor: pointer;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.pcard__add svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity 0.2s ease; }
.pcard__add .i-check { opacity: 0; }
.pcard__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(46, 91, 255, 0.35); }
.pcard__add.is-busy { opacity: 0.55; }
.pcard__add.is-added { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }
.pcard__add.is-added .i-plus { opacity: 0; }
.pcard__add.is-added .i-check { opacity: 1; }

/* Карточка товара каталога ------------------------------------------------------------- */

.grid-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.pcard {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pcard:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }

.pcard__imgwrap { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; }
.pcard__imgwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 11%; transition: filter 0.25s ease; }
.pcard:hover .pcard__imgwrap img { filter: brightness(1.03) contrast(1.03); }

.pcard__body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; border-top: 1px solid var(--line); }

.pcard__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10.5px; letter-spacing: 0.09em; text-transform: uppercase; }
.pcard__brand { color: var(--ink-3); }
.pcard__stock { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); }
.pcard__stock::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.pcard__name { font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; transition: color 0.2s ease; }
.pcard__name::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard:hover .pcard__name { color: var(--accent); }

.pcard__specs { color: var(--ink-2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pcard__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pcard__price { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }

/* Редакционная шапка каталога и страниц --------------------------------------------------- */

.cat-hero { position: relative; padding: 26px 0 30px; border-bottom: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.cat-hero::after { content: ''; position: absolute; right: -120px; top: -180px; width: 520px; height: 420px; background: radial-gradient(closest-side, rgba(46, 91, 255, 0.10), transparent); pointer-events: none; }
.cat-hero .container { position: relative; z-index: 1; }

.cat-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 18px; }
.cat-hero__title { font-family: var(--font); font-weight: 780; font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -0.035em; overflow-wrap: anywhere; }
.cat-hero__title--query { font-size: clamp(28px, 4vw, 48px); }
.cat-hero__count { flex: none; padding-bottom: 8px; color: var(--ink-3); font-size: 13px; letter-spacing: 0.04em; }
.cat-hero__count b { color: var(--accent); font-weight: 600; }
.cat-hero--page { padding-bottom: 34px; }

.pills { display: flex; gap: 8px; margin-top: 26px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; mask-image: linear-gradient(90deg, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pills::-webkit-scrollbar { display: none; }

.pill {
	flex: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: var(--h-sm);
	padding: 0 14px 0 12px;
	border: 1px solid var(--line-2);
	border-radius: 999px;
	background: var(--surface);
	color: var(--ink);
	font-size: 13.5px;
	font-weight: 550;
	white-space: nowrap;
	transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}
.pill:hover { border-color: var(--ink); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill__icon { display: inline-flex; color: var(--icon); }
.pill__n { color: var(--ink-3); font-size: 11.5px; }
.pill.active .pill__n { color: rgba(255, 255, 255, 0.6); }

/* Каталог ------------------------------------------------------------------------------ */

.catalog-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 28px; padding-bottom: 80px; }

.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; scrollbar-width: none; padding-right: 4px; }
.filters__head { display: none; }
.filters__apply { display: none; }

.filters__group { display: grid; gap: 10px; }
.filters__name { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }

.filters__list { display: grid; gap: 1px; }
.filters__list a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; font-size: 14px; color: var(--ink-2); transition: background-color 0.15s ease, color 0.15s ease; }
.filters__list a:hover { background: var(--surface); color: var(--ink); }
.filters__list a.active { background: var(--tint); color: var(--accent); font-weight: 600; }
.filters__list .mono { font-size: 11.5px; color: var(--ink-3); }

.filters__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filters__chips .chip { height: 32px; padding: 0 12px; font-size: 12.5px; }

.price__row { display: grid; grid-template-columns: 1fr 1fr var(--h); gap: 6px; }

.field {
	width: 100%;
	height: var(--h);
	padding: 0 12px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-sm);
	background: var(--surface);
	color: var(--ink);
	font-size: 13.5px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	-moz-appearance: textfield;
}
.field::-webkit-outer-spin-button, .field::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }

.field-btn { display: inline-grid; place-items: center; width: var(--h); height: var(--h); border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.field-btn svg { width: 18px; height: 18px; }
.field-btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.toolbar { display: flex; align-items: center; gap: 10px; min-height: var(--h); margin-bottom: 18px; }
.toolbar__filters { display: none; align-items: center; gap: 8px; height: var(--h); padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color 0.2s ease; }
.toolbar__filters svg { width: 17px; height: 17px; }
.toolbar__filters .mono { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11px; }
.toolbar__filters:hover { border-color: var(--ink); }

.toolbar__chips { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }

.achip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px 0 13px; border-radius: 999px; background: var(--tint); color: var(--accent-2); font-size: 13px; font-weight: 600; transition: background-color 0.2s ease, color 0.2s ease; }
.achip svg { width: 15px; height: 15px; opacity: 0.7; }
.achip:hover { background: var(--tint-2); }
.achip--reset { padding: 0 13px; background: transparent; color: var(--ink-2); font-weight: 500; }
.achip--reset:hover { background: transparent; color: var(--ink); }

.sort { flex: none; margin-left: auto; }
.sort select {
	height: var(--h);
	padding: 0 38px 0 14px;
	border: 1px solid var(--line-2);
	border-radius: var(--r-md);
	background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2359616F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
	color: var(--ink);
	font-size: 14px;
	font-weight: 500;
	appearance: none;
	cursor: pointer;
	transition: border-color 0.2s ease;
}
.sort select:hover { border-color: var(--ink); }
.sort select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }

.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog-grid--wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.search-page { padding-top: 28px; padding-bottom: 80px; }

.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination ul { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: var(--h); height: var(--h); padding: 0 10px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-family: var(--mono); font-size: 13.5px; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.pagination a.page-numbers:hover { border-color: var(--ink); color: var(--ink); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

.empty { display: grid; justify-items: start; gap: 12px; padding: 48px 0 80px; }
.empty__code { color: var(--accent); font-size: 13px; letter-spacing: 0.08em; }
.empty__title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.empty__text { color: var(--ink-2); margin-bottom: 8px; }
.empty__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Карточка товара (страница): паспорт ---------------------------------------------------- */

article.single { padding: 26px 0 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.breadcrumbs a { color: var(--ink-3); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--line-2); }
.breadcrumbs .current { color: var(--ink-2); max-width: 46ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.single__layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr); gap: 52px; align-items: start; margin-top: 22px; }

.gallery { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; }
.gallery__main { position: relative; aspect-ratio: 1 / 0.86; background: #fff; border: 1px solid var(--line); border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 9%; }
.gallery__label { position: absolute; top: 20px; right: 22px; z-index: 2; color: #6F7786; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery__thumbs[hidden] { display: none; }
.gallery__main video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery__main:has(video) .gallery__label { display: none; }
.gallery__play { display: inline-flex; align-items: center; justify-content: center; width: var(--h); height: var(--h); color: var(--ink); }
.gallery__play svg { width: 22px; height: 22px; }
.gallery__thumb { aspect-ratio: 1 / 1; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; padding: 0; transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 8%; }
.gallery__thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--tint); }
.gallery__thumb:hover { border-color: var(--ink-3); }

.single__info { display: grid; gap: 20px; }

.single__meta { display: flex; align-items: center; gap: 16px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.single__brand { color: var(--accent); font-weight: 600; transition: color 0.2s ease; }
.single__brand:hover { color: var(--accent-2); }
.stock-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); }
.stock-dot::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--ok-tint); }
.stock-dot.is-out { color: var(--ink-3); }
.stock-dot.is-out::before { box-shadow: 0 0 0 4px var(--line); }

.single__title { font-size: clamp(24px, 2.7vw, 36px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.12; }

.buy { display: grid; gap: 12px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 1px 0 rgba(11, 13, 18, 0.02); }
.buy__price { font-size: clamp(30px, 3vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; margin-bottom: 8px; }
.buy__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }

.qty { display: inline-grid; grid-template-columns: var(--h-lg) 48px var(--h-lg); height: var(--h-lg); border: 1px solid var(--line-2); border-radius: 14px; background: var(--surface); overflow: hidden; }
.qty__btn { display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); transition: background-color 0.15s ease, color 0.15s ease; }
.qty__btn svg { width: 16px; height: 16px; }
.qty__btn:hover { background: var(--paper); color: var(--ink); }
.qty__input { width: 100%; border: 0; background: transparent; text-align: center; font-size: 15px; font-weight: 600; color: var(--ink); -moz-appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty__input:focus { outline: none; }

.buy__add { position: relative; }
.buy__add .buy__done { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity 0.2s ease; }
.buy__add .buy__label { transition: opacity 0.2s ease; }
.buy__add.is-added { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }
.buy__add.is-added .buy__label { opacity: 0; }
.buy__add.is-added .buy__done { opacity: 1; }
.buy__add.is-busy, .buy__now.is-busy { opacity: 0.6; }
.buy__now { width: 100%; }

.buy__facts { display: grid; gap: 0; margin-top: 8px; border-top: 1px solid var(--line); }
.buy__facts li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 13px 0; border-bottom: 1px solid var(--line); }
.buy__facts li:last-child { border-bottom: 0; padding-bottom: 0; }
.buy__facts svg { width: 20px; height: 20px; color: var(--icon); margin-top: 1px; }
.buy__facts span { display: grid; gap: 2px; color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.buy__facts b { color: var(--ink); font-size: 14px; font-weight: 600; }

.single__sec { padding: 72px 0 0; }
.single__sec--related { padding-bottom: 88px; }

.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; margin: 0; border-top: 1px solid var(--ink); }
.specs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; transition: background-color 0.15s ease; }
.specs__row dt { color: var(--ink-2); }
.specs__row dd { margin: 0; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }

.single__desc { margin-top: 32px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.single__desc p + p { margin-top: 12px; }

/* Липкая панель покупки: появляется светом, без выезда */
.buybar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 55;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: saturate(1.4) blur(16px);
	-webkit-backdrop-filter: saturate(1.4) blur(16px);
	border-top: 1px solid var(--line);
	box-shadow: 0 -12px 34px rgba(11, 13, 18, 0.08);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s;
}
.buybar.is-on { opacity: 1; visibility: visible; }
.buybar__inner { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; height: 72px; }
.buybar__img { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.buybar__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.buybar__title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { font-size: 18px; font-weight: 600; white-space: nowrap; }
.buybar__add.is-added { background: var(--ok); box-shadow: none; }

/* Страницы: доставка, гарантия, контакты ------------------------------------------------ */

.page-plain { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; padding-top: 44px; padding-bottom: 96px; }

.page__content { display: grid; gap: 18px; max-width: 760px; color: var(--ink-2); font-size: 15.5px; line-height: 1.7; }
.page__content > p:empty { display: none; }
.page__content h2 { margin-top: 18px; color: var(--ink); font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.page__content h2:first-child { margin-top: 0; }
.page__content a { color: var(--accent); font-weight: 600; }

.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.info-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-grid p:empty, .info-grid br { display: none; }
.info-cell { display: grid; align-content: start; gap: 8px; padding: 20px 22px 22px 0; border-bottom: 1px solid var(--line); }
.info-cell + .info-cell { padding-left: 22px; border-left: 1px solid var(--line); }
.info-cell__n { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.info-cell h3 { margin: 0; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.info-cell h3 a { color: var(--ink); font-weight: 700; }
.info-cell p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }

.info-steps { display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.info-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.info-steps li::before { content: '0' counter(step); font-family: var(--mono); color: var(--accent); font-size: 13px; padding-top: 2px; }

.page__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 10px; justify-items: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.page__aside-label { color: var(--ink-3); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.page__aside-mail { font-size: 18px; font-weight: 600; color: var(--ink); transition: color 0.2s ease; }
.page__aside-mail:hover { color: var(--accent); }
.page__aside-link { color: var(--ink-2); font-size: 13.5px; transition: color 0.2s ease; }
.page__aside-link:hover { color: var(--accent); }
.page__aside p { color: var(--ink-2); font-size: 13.5px; margin-bottom: 8px; }

/* Корзина / чекаут (скин поверх store.css DarCommerce) ------------------------------------
   Две колонки: слева состав и итог, справа форма оформления, липкая на десктопе. */

.page-cart { padding-top: 36px; padding-bottom: 96px; }
.page-cart .dc-cart-root.is-empty { display: none; }

/* Корзину рисует store.js после ajax: пока её нет — тихий скелет, а не пустая полоса */
.js .page-cart .dc-cart-root:not(:has(.dc-cart, .dc-cart-empty)) { min-height: 360px; border-radius: var(--r-lg); background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.7) 50%, transparent 70%) 0 0 / 220% 100% no-repeat, var(--line); opacity: 0.55; animation: skeleton 1.4s linear infinite; }
@keyframes skeleton { from { background-position: 160% 0; } to { background-position: -60% 0; } }
.page-cart .dc-cart-root noscript { display: block; padding: 24px; }

.page-cart #dc-cart-root:not(.is-empty) { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 20px 40px; align-items: start; }
.page-cart #dc-cart-root > .dc-freeship { grid-column: 1; margin: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.page-cart #dc-cart-root > .dc-cart { grid-column: 1; }
.page-cart #dc-cart-root > .dc-checkout { grid-column: 2; grid-row: 1 / span 3; position: sticky; top: calc(var(--header-h) + 20px); }
.page-cart #dc-cart-root > .dc-cart-empty { grid-column: 1 / -1; }

.cart-empty, .cart-done { display: grid; justify-items: start; gap: 12px; }
.cart-empty[hidden], .cart-done[hidden] { display: none; }
.cart-empty__icon, .cart-done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--tint); color: var(--icon); margin-bottom: 8px; }
.cart-empty__icon svg, .cart-done__icon svg { width: 30px; height: 30px; }
.cart-empty__title, .cart-done__title { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.cart-empty__text, .cart-done__text { max-width: 520px; color: var(--ink-2); margin-bottom: 8px; }

/* Заказ принят */
.cart-done__icon { background: var(--ok-tint); color: var(--ok); }
.cart-done__label { color: var(--ink-3); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.cart-done__label b { color: var(--ink); font-weight: 600; }
.cart-done__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 720px; margin: 8px 0 12px; padding: 0; list-style: none; }
.cart-done__facts li { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); font-size: 14px; font-weight: 600; }
.cart-done__facts span { color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; }
.cart-done__facts a { transition: color 0.2s ease; }
.cart-done__facts a:hover { color: var(--accent); }
.cart-done__btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Состав заказа */
#dc-cart-root .dc-cart { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
#dc-cart-root .dc-cart th { text-align: left; font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
#dc-cart-root .dc-cart td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
#dc-cart-root .dc-cart tr:last-child td { border-bottom: 0; }
#dc-cart-root .dc-cart tfoot th { border-bottom: 0; border-top: 1px solid var(--line); font-family: var(--mono); font-weight: 500; }
#dc-cart-root .dc-cart tfoot tr:last-child th { padding-top: 18px; padding-bottom: 18px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: 0.04em; }
#dc-cart-root .dc-cart tfoot th { white-space: nowrap; }
#dc-cart-root .dc-cart tfoot tr:last-child th:nth-child(2) { font-size: 18px; letter-spacing: -0.02em; }
#dc-cart-root .dc-cart-title { font-weight: 600; }
#dc-cart-root .dc-cart-item { display: flex; align-items: center; gap: 14px; }
#dc-cart-root .dc-cart-thumb { width: 64px; height: 64px; border-radius: 12px; background: #fff; }
#dc-cart-root .dc-cart-thumb img { object-fit: contain; padding: 4px; }
#dc-cart-root .dc-cart-name { color: var(--ink); transition: color 0.2s ease; }
#dc-cart-root .dc-cart-name:hover { color: var(--accent); }
#dc-cart-root .dc-cart-title small { display: block; color: var(--ink-3); font-family: var(--mono); font-size: 11.5px; font-weight: 400; margin-top: 3px; }
#dc-cart-root .dc-cart-sum, #dc-cart-root .dc-cart td + td + td { font-family: var(--mono); white-space: nowrap; }
#dc-cart-root .dc-cart-qty { white-space: nowrap; color: var(--ink-3); font-size: 13px; }
#dc-cart-root .dc-cart-qty input { width: 72px; height: var(--h-sm); padding: 0 10px; margin-right: 6px; border: 1px solid var(--line-2); border-radius: var(--r-sm); font-family: var(--mono); font-size: 13px; }
#dc-cart-root .dc-cart-qty input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
#dc-cart-root .dc-cart tfoot td, #dc-cart-root .dc-cart-total { font-weight: 700; }
#dc-cart-root .dc-cart-remove { display: grid; place-items: center; width: var(--h-sm); height: var(--h-sm); min-width: 0; padding: 0; border-radius: var(--r-sm); color: var(--ink-3); }
#dc-cart-root .dc-cart-remove:hover { border-color: #DC2626; color: #DC2626; }
#dc-cart-root .dc-cart-remove svg { width: 17px; height: 17px; }

#dc-cart-root button, #dc-cart-root .dc-btn { height: var(--h); padding: 0 18px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface); font-size: 14px; font-weight: 600; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
#dc-cart-root button:hover, #dc-cart-root .dc-btn:hover { border-color: var(--ink); }
/* Плагин красит текст этих кнопок в #0b1a33: на тёмной поверхности он пропадает */
#dc-cart-root .dc-coupon .dc-btn-ghost, #dc-cart-root .dc-delivery-city .dc-btn-ghost { color: var(--ink); }
#dc-cart-root .dc-coupon .dc-btn-ghost:hover, #dc-cart-root .dc-delivery-city .dc-btn-ghost:hover { color: var(--accent); border-color: var(--accent); }

/* Форма оформления */
#dc-cart-root .dc-checkout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
#dc-cart-root .dc-checkout > * { grid-column: 1 / -1; margin: 0; }
#dc-cart-root .dc-checkout > input[name="name"], #dc-cart-root .dc-checkout > input[name="phone"] { grid-column: auto; }
.dc-form-title { margin: 0 0 4px; font-size: 20px; font-weight: 750; letter-spacing: -0.02em; }
#dc-cart-root .dc-checkout input[type="text"], #dc-cart-root .dc-checkout input[type="email"], #dc-cart-root .dc-checkout input[type="tel"], #dc-cart-root .dc-checkout textarea, #dc-cart-root .dc-checkout select, #dc-cart-root .dc-cart input[type="text"], #dc-cart-root .dc-cart input[type="email"] {
	width: 100%; height: var(--h); padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); font-size: 14px;
}
#dc-cart-root .dc-checkout textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
#dc-cart-root .dc-checkout input:focus, #dc-cart-root .dc-checkout textarea:focus, #dc-cart-root .dc-checkout select:focus, #dc-cart-root .dc-cart input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
#dc-cart-root .dc-checkout label { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
#dc-cart-root .dc-checkout input[type="checkbox"], #dc-cart-root .dc-checkout input[type="radio"] { flex: none; width: 17px; height: 17px; margin: 0; accent-color: var(--accent); }
#dc-cart-root .dc-coupon, #dc-cart-root .dc-delivery-city { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
#dc-cart-root .dc-coupon-msg:empty, #dc-cart-root .dc-checkout-msg:empty { display: none; }
#dc-cart-root .dc-coupon-msg, #dc-cart-root .dc-checkout-msg, #dc-cart-root .dc-delivery-note { font-size: 13px; color: var(--ink-2); }
#dc-cart-root .dc-delivery-list { display: grid; gap: 8px; }
#dc-cart-root .dc-delivery-option { padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); transition: border-color 0.2s ease, background-color 0.2s ease; }
#dc-cart-root .dc-delivery-option:has(input:checked) { border-color: var(--accent); background: var(--tint); color: var(--ink); }
#dc-cart-root .dc-delivery-option b { margin-left: auto; font-family: var(--mono); color: var(--ink); }
#dc-cart-root .dc-delivery-option small { color: var(--ink-3); }
#dc-cart-root .dc-consent { align-items: flex-start; }
#dc-cart-root .dc-consent input { margin-top: 2px; }
#dc-cart-root .dc-btn--primary, #dc-cart-root .dc-checkout button[type="submit"], #dc-cart-root .dc-cart-go { height: var(--h-lg); background: var(--accent); border-color: var(--accent); color: #fff; font-size: 15px; }
#dc-cart-root .dc-btn--primary:hover, #dc-cart-root .dc-checkout button[type="submit"]:hover, #dc-cart-root .dc-cart-go:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 10px 24px rgba(46, 91, 255, 0.35); }
.page-cart .dc-cart-empty { font-size: 18px; font-weight: 600; color: var(--ink); }

/* Оформление по шагам: форма на всю ширину, справа липкий итог */
.page-cart:has(.dcs) { display: flex; flex-direction: column; gap: 28px; }
.page-cart:has(.dcs) .page-cart__main, .page-cart:has(.dcs) #dc-cart-root:not(.is-empty) { display: contents; }
.page-cart:has(.dcs) .dc-freeship { order: 0; }
.page-cart:has(.dcs) .dc-cart { order: 1; }
.page-cart:has(.dcs) .cart-extras { order: 2; margin: 0; }
.page-cart:has(.dcs) .dc-checkout.dcs { order: 3; grid-row: auto; position: static; }
#dc-cart-root .dc-checkout.dcs { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; padding: 0; border: 0; background: none; box-shadow: none; }
#dc-cart-root .dc-checkout.dcs { width: 100%; max-width: none; }
#dc-cart-root .dc-checkout.dcs > .dc-form-title { grid-column: 1 / -1; grid-row: 1; margin: 0; }
#dc-cart-root .dc-checkout.dcs > .dcs__steps { grid-column: 1; grid-row: 2; }
#dc-cart-root .dc-checkout.dcs > .dcs-sum { grid-column: 2; grid-row: 2; }
.dcs__steps { display: grid; gap: 20px; min-width: 0; }
.dcs-step { display: grid; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.dcs-step__h { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.dcs-step__h i { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--tint); color: var(--accent); font-family: var(--mono); font-size: 13px; font-style: normal; font-weight: 600; }
.dcs-choices { display: grid; gap: 12px; }
.dcs-choices--1, .dcs-choices--2 { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.dcs-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dcs-choices--3 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
#dc-cart-root .dc-checkout .dcs-choice { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 4px 12px; min-height: 76px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease; }
#dc-cart-root .dc-checkout .dcs-choice input { position: absolute; opacity: 0; pointer-events: none; }
#dc-cart-root .dc-checkout .dcs-choice:hover { border-color: var(--ink-3); }
#dc-cart-root .dc-checkout .dcs-choice.is-on { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 3px var(--tint); }
#dc-cart-root .dc-checkout .dcs-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--accent); }
.dcs-choice__t { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.dcs-choice__n { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.dcs-choice__b { grid-column: 2; grid-row: 1; align-self: start; font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--ink-2); }
.dcs-choice.is-on .dcs-choice__b { color: var(--accent); }
.dcs-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.dcs-f { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.dcs-f--wide { grid-column: 1 / -1; }
#dc-cart-root .dc-checkout .dcs-f { display: grid; align-items: stretch; gap: 6px; }
.dcs-carriers { display: flex; flex-wrap: wrap; gap: 10px; }
#dc-cart-root .dc-checkout .dcs-chip { display: inline-flex; align-items: center; height: var(--h); padding: 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-md); font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color 0.2s ease, background-color 0.2s ease; }
#dc-cart-root .dc-checkout .dcs-chip input { position: absolute; opacity: 0; pointer-events: none; }
#dc-cart-root .dc-checkout .dcs-chip:hover { border-color: var(--ink-3); }
#dc-cart-root .dc-checkout .dcs-chip.is-on { border-color: var(--accent); background: var(--tint); }
.dcs-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.dcs-sum { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 12px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); }
.dcs-sum__h { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--ink); }
.dcs-sum__row, .dcs-sum__total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-2); }
.dcs-sum__row b { font-family: var(--mono); font-weight: 600; color: var(--ink); text-align: right; }
.dcs-sum__row.is-fee b { color: var(--accent); }
.dcs-sum__total { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; font-weight: 600; color: var(--ink); }
.dcs-sum__total b { font-family: var(--mono); font-size: 24px; letter-spacing: -0.02em; }
#dc-cart-root .dc-checkout.dcs button[type="submit"]:disabled { opacity: 0.5; pointer-events: none; }
@media (max-width: 1000px) {
	#dc-cart-root .dc-checkout.dcs { grid-template-columns: minmax(0, 1fr); }
	#dc-cart-root .dc-checkout.dcs > .dcs__steps, #dc-cart-root .dc-checkout.dcs > .dcs-sum { grid-column: 1; grid-row: auto; }
	.dcs-sum { position: static; }
	.dcs-choices--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.dcs-step { padding: 18px; }
	.dcs-choices--2 { grid-template-columns: minmax(0, 1fr); }
	.dcs-fields { grid-template-columns: minmax(0, 1fr); }
}

/* Шторка корзины: у названия свой ряд, количество и сумма под ним */
.dc-drawer .dc-drawer__row { grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "thumb info remove" "thumb qty sum"; gap: 6px 14px; align-items: center; }
.dc-drawer .dc-drawer__thumb { grid-area: thumb; width: 64px; height: 64px; align-self: start; background: #fff; }
.dc-drawer .dc-drawer__thumb img { object-fit: contain; padding: 4px; }
.dc-drawer .dc-drawer__info { grid-area: info; }
.dc-drawer .dc-drawer__remove { grid-area: remove; align-self: start; }
.dc-drawer .dc-drawer__qty { grid-area: qty; width: 84px; height: var(--h-sm); }
.dc-drawer .dc-drawer__sum { grid-area: sum; justify-self: end; }

/* 404 */

.simple-state { display: grid; justify-items: start; gap: 12px; padding: 72px 0 96px; }
.simple-state h1 { font-family: var(--font); font-size: clamp(34px, 5vw, 64px); font-weight: 780; line-height: 1.04; letter-spacing: -0.035em; }
.simple-state p { max-width: 460px; color: var(--ink-2); margin-bottom: 8px; }
.simple-state .code { font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: 0.1em; }

/* Тост корзины: появляется прозрачностью, место фиксировано ------------------------------ */

.toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 90;
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) auto 36px;
	align-items: center;
	gap: 14px;
	width: min(440px, calc(100vw - 32px));
	padding: 12px 12px 12px 12px;
	background: var(--ink);
	color: #fff;
	border-radius: var(--r-lg);
	box-shadow: 0 24px 60px rgba(11, 13, 18, 0.35);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.22s ease, visibility 0.22s;
}
.toast.is-on { opacity: 1; visibility: visible; }
.toast__img { width: 48px; height: 48px; border-radius: 10px; background: #fff; overflow: hidden; }
.toast__img:empty { background: var(--dark-3); }
.toast__img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.toast__body { display: grid; gap: 2px; min-width: 0; }
.toast__label { color: #7CE0B5; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.toast__title { font-size: 13.5px; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast__close { display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--dark-muted); transition: color 0.2s ease, background-color 0.2s ease; }
.toast__close svg { width: 16px; height: 16px; }
.toast__close:hover { color: #fff; background: var(--dark-3); }
.toast.is-error { grid-template-columns: minmax(0, 1fr) 36px; }
.toast.is-error .toast__img, .toast.is-error .toast__go { display: none; }
.toast.is-error .toast__label { color: #FF8A8A; }
.toast.is-error .toast__title { white-space: normal; }
html.buybar-on .toast { bottom: 96px; }

/* Мобильный таб-бар */

.tabbar { display: none; }

html.is-locked, html.is-locked body { overflow: hidden; }

/* Адаптив --------------------------------------------------------------------------------- */

@media (max-width: 1200px) {
	.catalog-grid--wide { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.mega__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
	.footer__main { grid-template-columns: 1fr 1fr; }
	.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.single__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
	.specs { grid-template-columns: minmax(0, 1fr); }
	.page-plain { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.page__aside { position: static; }
	.hphone__text { display: none; }
}

@media (max-width: 900px) {
	:root { --header-h: 60px; }

	/* backdrop-filter делает шапку контейнером для fixed-потомков — мега-меню бы обрезалось */
	.header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }

	.header__bar { column-gap: 10px; }
	.header.search-open .header__bar { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 10px; }
	.header .search { order: 3; flex: 1 1 100%; max-width: none; }
	.search__kbd { display: none; }
	.catalog-btn { display: none; }

	.mega { position: fixed; inset: 0; z-index: 95; overflow-y: auto; box-shadow: none; clip-path: none; }
	.mega__inner { padding-top: 16px; padding-bottom: 100px; }
	.mega__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
	.mega__title { font-size: 26px; font-weight: 780; letter-spacing: -0.03em; }
	.mega__grid { grid-template-columns: minmax(0, 1fr); border-left: 0; }
	.mega__col { padding: 14px 0; border-right: 0; }
	.mega__col:hover { background: transparent; }
	.mega__subs { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 50px; margin-top: 10px; }
	.mega__subs a { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; }
	.mega__foot { flex-wrap: wrap; gap: 14px 22px; }

	.catalog-layout { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }

	.toolbar__filters { display: inline-flex; }
	.toolbar { flex-wrap: wrap; }
	.toolbar__chips { order: 3; flex: 1 1 100%; }
	.toolbar__chips:empty { display: none; }

	.filters { position: fixed; inset: 0; z-index: 96; max-height: none; background: var(--paper); padding: 0 var(--gutter) 110px; overflow-y: auto; overflow-x: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s; }
	.filters.open { opacity: 1; visibility: visible; }
	.filters__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter); background: var(--paper); border-bottom: 1px solid var(--line); }
	.filters__title { font-size: 22px; font-weight: 780; letter-spacing: -0.03em; }
	.filters__close { display: grid; place-items: center; width: var(--h); height: var(--h); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); }
	.filters__close svg { width: 18px; height: 18px; }
	.filters__apply { display: block; position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(244, 245, 247, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
	.filters__apply .btn { width: 100%; }

	.single__layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.gallery { position: static; }

	/* Таб-бар и отступ под него */
	html body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
	.tabbar {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 80;
		display: grid;
		grid-template-columns: repeat(4, 1fr);
		height: calc(64px + env(safe-area-inset-bottom));
		padding-bottom: env(safe-area-inset-bottom);
		background: rgba(255, 255, 255, 0.94);
		backdrop-filter: saturate(1.4) blur(18px);
		-webkit-backdrop-filter: saturate(1.4) blur(18px);
		border-top: 1px solid var(--line);
	}
	.tabbar__item { position: relative; display: grid; place-items: center; align-content: center; gap: 4px; border: 0; background: transparent; color: var(--ink-2); font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; transition: color 0.2s ease; }
	.tabbar__item svg { width: 22px; height: 22px; }
	.tabbar__item.active, .tabbar__item[aria-expanded="true"] { color: var(--accent); }
	.tabbar__badge { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; }
	.tabbar__badge[hidden] { display: none; }

	.buybar { bottom: calc(64px + env(safe-area-inset-bottom)); }
	.buybar__inner { grid-template-columns: 44px minmax(0, 1fr) auto; height: 64px; gap: 12px; }
	.buybar__img { width: 44px; height: 44px; }
	.buybar__title { display: none; }
	.buybar__price { font-size: 16px; }
	.toast { right: 16px; left: 16px; width: auto; bottom: calc(76px + env(safe-area-inset-bottom)); }
	html.buybar-on .toast { bottom: calc(140px + env(safe-area-inset-bottom)); }
}

@media (max-width: 768px) {
	.topstrip .hide-m { display: none; }
	.breadcrumbs { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
	.breadcrumbs::-webkit-scrollbar { display: none; }
	.cat-hero { padding: 18px 0 22px; }
	.cat-hero__row { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
	.cat-hero__count { padding-bottom: 0; }
	.pills { margin-top: 18px; margin-right: calc(var(--gutter) * -1); }
	.catalog-grid, .catalog-grid--wide, .grid-products { gap: 10px; }
	.pcard__body { padding: 12px 12px 14px; }
	.pcard__stock { display: none; }
	.pcard__name { font-size: 13px; }
	.pcard__price { font-size: 14.5px; }
	.pcard__add { width: 36px; height: 36px; border-radius: 10px; }
	.single__sec { padding-top: 52px; }
	.specs__row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
	.buy { padding: 18px; }
	.info-grid, .info-grid--2 { grid-template-columns: minmax(0, 1fr); }
	.info-cell, .info-cell + .info-cell { padding: 16px 0; border-left: 0; }
	.footer__main { grid-template-columns: 1fr 1fr; gap: 30px; }
	.footer__main > div:first-child { grid-column: 1 / -1; }
	.footer__bottom { flex-direction: column; align-items: flex-start; }
	.sort select { max-width: 190px; }
}

@media (max-width: 480px) {
	.pcard__specs { display: none; }
	.buy__row { grid-template-columns: minmax(0, 1fr); }
	.qty { grid-template-columns: var(--h-lg) minmax(0, 1fr) var(--h-lg); }
}

@media (max-width: 1120px) {
	.cats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.quick__grid { grid-template-columns: minmax(0, 1fr); }
	.whyus__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.finale__inner { gap: 36px; }
}

@media (max-width: 900px) {
	.best__head { flex-direction: column; align-items: flex-start; }
	.tabs { max-width: 100%; }
}

@media (max-width: 768px) {
	.topstrip nav a:not(.topstrip__addr) { display: none; }
	.topstrip .container { gap: 14px; }
	.topstrip__facts { display: none; }
	.carousel__track { grid-auto-columns: 200px; gap: 10px; padding-bottom: 14px; }
	.carousel__track--wide { grid-auto-columns: 240px; }
	.cnav { display: none; }
	.more-card__n { font-size: 34px; }
	.cats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(164px, auto); gap: 10px; }
	.ctile { padding: 16px 16px 0; border-radius: 20px; }
	.ctile__name { font-size: 16px; }
	.ctile__text { max-width: 100%; }
	.ctile__img { width: 70%; height: 58%; }
	.ctile--big { grid-row: auto; padding: 20px 20px 0; min-height: 220px; }
	.ctile--big .ctile__text { max-width: 60%; }
	.ctile--big .ctile__img { width: 52%; height: 88%; }
	.ctile__subs { display: none; }
	.ctile--all { padding-bottom: 16px; }
	.quick { padding-bottom: 44px; }
	.quick__block { padding: 16px; border-radius: 18px; }
	.quick__row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; }
	.quick__row::-webkit-scrollbar { display: none; }
	.flag { padding: 14px 14px 12px; border-radius: 20px; }
	.flag__name { font-size: 16px; }
	.flag__line { display: none; }
	.rail { padding-top: 48px; }
	.flags { padding-top: 40px; }
	.whyus { padding: 48px 0 72px; }
	.whyus__grid { gap: 10px; }
	.why { padding: 22px 20px; }
	.finale__inner { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 56px; padding-bottom: 56px; }
	.finale__shop { padding: 20px; }
	.carousel__track--review { grid-auto-columns: 290px; }
	.review { padding: 20px 18px 18px; }
	.review__text { font-size: 14.5px; }
	.reviews { padding-bottom: 56px; }
	.sec-head { grid-template-columns: 40px minmax(0, 1fr) auto; margin-bottom: 24px; }
}

@media (max-width: 480px) {
	.whyus__grid { grid-template-columns: minmax(0, 1fr); }
}

/* Корзина и чекаут: адаптив */
@media (max-width: 1000px) {
	.page-cart #dc-cart-root:not(.is-empty) { grid-template-columns: minmax(0, 1fr); }
	.page-cart #dc-cart-root > .dc-checkout { grid-column: 1; grid-row: auto; position: static; }
	.cart-done__facts { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
	.page-cart { padding-top: 20px; padding-bottom: 72px; }
	#dc-cart-root .dc-cart thead { display: none; }
	#dc-cart-root .dc-cart tbody tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "title title title" "qty sum remove"; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
	#dc-cart-root .dc-cart tbody tr:last-child { border-bottom: 0; }
	#dc-cart-root .dc-cart tbody td { padding: 0; border: 0; }
	#dc-cart-root .dc-cart tbody .dc-cart-title { grid-area: title; }
	#dc-cart-root .dc-cart tbody .dc-cart-qty { grid-area: qty; }
	#dc-cart-root .dc-cart tbody .dc-cart-sum { grid-area: sum; text-align: right; }
	#dc-cart-root .dc-cart tbody td:last-child { grid-area: remove; }
	#dc-cart-root .dc-cart tfoot tr { display: flex; justify-content: space-between; gap: 12px; }
	#dc-cart-root .dc-cart tfoot th { padding: 12px 16px; background: transparent; }
	#dc-cart-root .dc-cart tfoot th:empty { display: none; }
	#dc-cart-root .dc-checkout { padding: 18px; }
	#dc-cart-root .dc-checkout > input[name="name"], #dc-cart-root .dc-checkout > input[name="phone"] { grid-column: 1 / -1; }
}

/* «Весь каталог»: занимает остаток последнего ряда бенто, при ширине от двух колонок — строкой */
.ctile--all { grid-column: span var(--s4, 1); }
.ctile--all.w4 { flex-direction: row; align-items: center; padding: 0 32px; }
.ctile--all.w4 .ctile__text { display: grid; gap: 6px; }
.ctile--all.w4 .ctile__name { font-size: 28px; }
.ctile--all.w4 .ctile__foot { gap: 28px; margin-left: auto; }
@media (max-width: 1120px) {
	.ctile--all { grid-column: span var(--s3, 1); }
	.ctile--all.w4 { flex-direction: column; align-items: stretch; padding: 22px 22px 20px; }
	.ctile--all.w4 .ctile__text { display: block; }
	.ctile--all.w4 .ctile__name { font-size: inherit; }
	.ctile--all.w4 .ctile__foot { margin-left: 0; gap: 10px; }
	.ctile--all.w3 { flex-direction: row; align-items: center; padding: 0 28px; }
	.ctile--all.w3 .ctile__text { display: grid; gap: 6px; }
	.ctile--all.w3 .ctile__name { font-size: 24px; }
	.ctile--all.w3 .ctile__foot { gap: 24px; margin-left: auto; }
}
@media (max-width: 768px) {
	.ctile--all { grid-column: span var(--s2, 1); }
	.ctile--all.w3 { flex-direction: column; align-items: stretch; padding: 16px 16px 16px; }
	.ctile--all.w3 .ctile__text { display: block; }
	.ctile--all.w3 .ctile__name { font-size: 16px; }
	.ctile--all.w3 .ctile__foot { margin-left: 0; gap: 10px; }
	.ctile--all.w2 { flex-direction: row; align-items: center; padding: 14px 16px; }
	.ctile--all.w2 .ctile__text { display: grid; gap: 4px; }
	.ctile--all.w2 .ctile__foot { gap: 14px; margin-left: auto; }
	.ctile--all.w2 .stack__item, .ctile--all.w2 .stack__more { width: 36px; height: 36px; margin-left: -10px; }
	.ctile--all.w2 .ctile__go { width: 40px; height: 40px; }
}


/* Карточки моделей: цвета и «Выбрать» ------------------------------------------------ */
/* Свотчи рисует DarCommerce (Storefront Studio); здесь только их место в карточке. */
.pcard__sw { min-height: 22px; }
.pcard .dc-sw { --dc-sw-ring-gap: var(--surface); --dc-sw-acc: var(--ink); }
.pcard .dc-sw--image img { object-fit: contain; padding: 2px; mix-blend-mode: multiply; }
.pcard__stock.is-out { color: var(--ink-3); }
a.pcard__add { text-decoration: none; }
.pcard__add:disabled { opacity: 0.4; pointer-events: none; }


/* Разделы и карточки моделей без боковой панели ------------------------------------------ */

.catalog-body { padding-top: 32px; padding-bottom: 88px; }
.catalog-grid--after { margin-top: 24px; }
.cat-hero--page { padding-bottom: 30px; }

/* Варианты товара: цвет и вторая ось отдельными карточками -------------------------------- */

.variants { display: grid; gap: 22px; }
.variants__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.variants__head b { color: var(--ink); font-weight: 650; }
.variants__list { display: flex; flex-wrap: wrap; gap: 10px; }

.vopt {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: var(--h);
	padding: 8px 18px;
	border: 1px solid var(--line-2);
	border-radius: 14px;
	background: var(--surface);
	color: var(--ink);
	text-align: center;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.vopt[hidden] { display: none; }
.vopt:hover { border-color: var(--ink-3); }
.vopt.active { border-color: var(--accent); background: var(--tint); box-shadow: 0 0 0 1px var(--accent); }
.vopt:focus, .vopt:focus-visible { outline: none; }
.vopt__name { font-size: 14px; font-weight: 650; line-height: 1.25; overflow-wrap: anywhere; }
.vopt--color { flex-direction: row; align-items: center; gap: 11px; }
.vopt__sw { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(11, 13, 18, 0.22); }
.vopt.is-oos { color: var(--ink-3); background: transparent; border-color: var(--line); border-style: dashed; cursor: default; pointer-events: none; }
.vopt.is-oos .vopt__name { text-decoration: line-through; }
.vopt.is-oos .vopt__sw { opacity: 0.35; filter: grayscale(1); }

/* Вкладки «Характеристики» и «Описание» -------------------------------------------------- */

.single__sec--tabs { padding-top: 64px; }
.ptabs__nav { display: flex; gap: 4px; margin-bottom: 28px; border-bottom: 1px solid var(--line-2); }
.ptabs__tab { position: relative; height: 50px; padding: 0 22px; margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--ink-2); font-size: 16px; font-weight: 650; transition: color 0.2s ease, border-color 0.2s ease; }
.ptabs__tab:hover { color: var(--ink); }
.ptabs__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.ptabs__panel[hidden] { display: none; }
.ptabs__panel .single__desc { margin-top: 0; }

/* Сопутствующие товары и «Рядом на полке» ------------------------------------------------- */

.single__sec--acc { padding-bottom: 0; }
.sec-note { margin: -16px 0 24px; color: var(--ink-2); font-size: 15px; }
.alt { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.alt > .pcard { flex: 1; }
@media (min-width: 900px) {
	.grid-products--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.grid-products--n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 66%; }
}
.alt__diff { margin: 0; padding: 0 4px; color: var(--ink-2); font-size: 12px; line-height: 1.5; height: 3em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Корзина: аксессуары к заказу ---------------------------------------------------------- */

.page-cart .dc-related { display: none; }
.cart-extras { margin-top: 48px; }
.cart-extras[hidden] { display: none; }
.cart-extras__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 780; letter-spacing: -0.03em; line-height: 1.1; }
.cart-extras__note { margin: 6px 0 20px; color: var(--ink-2); }
.cart-extras__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 6px 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: border-color 0.2s ease, box-shadow 0.2s ease; }
.cx:hover { border-color: var(--line-2); box-shadow: var(--shadow-1); }
.cx__img { display: block; width: 72px; height: 72px; border-radius: 12px; background: #fff; overflow: hidden; }
.cx__img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.cx__name { min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.2s ease; }
.cx__name:hover { color: var(--accent); }
.cx__price { font-size: 14.5px; font-weight: 600; white-space: nowrap; }
.cx__add { position: relative; flex: none; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease; }
.cx__add svg { grid-area: 1 / 1; width: 18px; height: 18px; transition: opacity 0.2s ease; }
.cx__add .i-check { opacity: 0; }
.cx__add:hover { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 8px 20px rgba(46, 91, 255, 0.35); }
.cx__add.is-busy { opacity: 0.55; }
.cx__add.is-added { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; }
.cx__add.is-added .i-plus { opacity: 0; }
.cx__add.is-added .i-check { opacity: 1; }
a.cx__add { text-decoration: none; }

@media (max-width: 900px) {
	.cart-extras__list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 768px) {
	.catalog-body { padding-top: 20px; padding-bottom: 64px; }
	.logo { font-size: 19px; }
	.logo__mark { width: 30px; height: 30px; border-radius: 9px; }
	.ptabs__tab { padding: 0 16px; font-size: 15px; }
	.single__sec--tabs { padding-top: 44px; }
	.cx { grid-template-columns: 60px minmax(0, 1fr) auto; }
	.cx__img { width: 60px; height: 60px; }
	.cx__price { grid-column: 2; grid-row: 2; }
	.cx__add { grid-column: 3; grid-row: 1 / span 2; }
}


/* Тёмная тема ------------------------------------------------------------------------------
   Страница объявляет обе схемы, поэтому браузер больше не «переворачивает» цвета сам.
   Фото товаров лежат на светлых подложках (плитки, карточки, галерея) — их белый фон остаётся белым. */

:root { color-scheme: light dark; --logo-plate: #0B0D12; --logo-glyph: #FFFFFF; }

@media (prefers-color-scheme: dark) {
	:root {
		--paper: #0D1017;
		--surface: #151A23;
		--ink: #EEF1F6;
		--ink-2: #B3BBC9;
		--ink-3: #8C96A8;
		--line: #232A37;
		--line-2: #343D4F;
		--accent: #3B6BFF;
		--accent-2: #6C8FFF;
		--accent-soft: #86A2FF;
		--tint: #1A2240;
		--tint-2: #27345E;
		--icon: #BCCBFF;
		--ok: #34C48F;
		--ok-tint: #12332A;
		--shadow-1: 0 14px 34px rgba(0, 0, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
		--shadow-2: 0 24px 60px rgba(0, 0, 0, 0.6);
		--logo-plate: #FFFFFF;
		--logo-glyph: #0B0D12;
		--dag-ink-0: var(--surface);
	}

	::selection { background: var(--accent); color: #fff; }

	.topstrip { background: var(--dark); }
	.header { background: rgba(13, 16, 23, 0.84); }
	.header.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5); }
	html.mega-open .header { background: var(--surface); }
	.mega { box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5), 0 0 0 100vmax rgba(0, 0, 0, 0.55); }

	/* Тёмные «таблетки» вместо инвертированных: белый текст остаётся читаемым */
	.catalog-btn { background: #263047; }
	.catalog-btn:hover { background: #303C58; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
	.catalog-btn[aria-expanded="true"] { background: var(--accent); }
	.chip.active, .pill.active, .pagination .page-numbers.current { background: #263047; border-color: #44537A; color: #fff; }
	.chip.active .mono, .pill.active .pill__n { color: rgba(255, 255, 255, 0.65); }
	.field-btn:hover, .cnav__btn:hover { background: #263047; border-color: #44537A; color: #fff; }
	.cnav__btn { background: #1E2533; color: var(--ink); }
	.toast { background: #1E2533; border: 1px solid var(--line-2); }

	.btn--ghost { border-color: var(--line-2); }
	.btn--ghost:hover { border-color: var(--ink-2); }
	.pill:hover, .vopt:hover { border-color: var(--ink-3); }
	.pcard:hover { border-color: var(--line-2); }


	.buybar { background: rgba(21, 26, 35, 0.92); box-shadow: 0 -12px 34px rgba(0, 0, 0, 0.5); }
	.tabbar { background: rgba(21, 26, 35, 0.94); }
	.filters__apply { background: rgba(13, 16, 23, 0.94); }
	.vopt.active { background: var(--tint); }
	.vopt__sw { border-color: rgba(255, 255, 255, 0.28); }
	.pcard .dc-sw--color { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5); }
	.pcard .dc-sw--color:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 2px var(--dc-sw-ring-gap), 0 0 0 3px color-mix(in srgb, var(--dc-sw-acc) 45%, transparent); }
	.pcard .dc-sw--color.is-active { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5), 0 0 0 2px var(--dc-sw-ring-gap), 0 0 0 4px var(--dc-sw-acc); }
	.pcard .dc-sw--image img { mix-blend-mode: normal; background: #fff; border-radius: 4px; }
	.single__brand, .sec-link, .cat-hero__count b { color: var(--accent-soft); }
	.single__brand:hover, .sec-link:hover { color: #fff; }
	.cat-hero::after { background: radial-gradient(closest-side, rgba(59, 107, 255, 0.16), transparent); }
	.search input:focus { box-shadow: 0 0 0 4px rgba(59, 107, 255, 0.25); }
	#dc-cart-root .dc-delivery-option:has(input:checked) { background: var(--tint); }
	.btn--white, .btn--white:hover { color: #0B0D12; }
	.btn--white:hover { background: #EDF1FF; }
}

/* Логотип: носорог и надпись, цвет берёт у текста */
.logo { color: var(--ink); }
.logo__mark { display: block; width: auto; height: 46px; border-radius: 0; }
.footer__logo .logo__mark { width: auto; height: clamp(56px, 6vw, 72px); border-radius: 0; color: #fff; }
/* Онлайн-чат --------------------------------------------------------------------- */
.chat [hidden] { display: none !important; }
.chat { position: fixed; right: 24px; bottom: 24px; z-index: 58; display: grid; justify-items: end; gap: 12px; }
body.has-buybar .chat { bottom: 96px; }
.chat__fab { position: relative; display: grid; place-items: center; width: 56px; height: 56px; padding: 0; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent); color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(46, 91, 255, 0.35); transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease; }
.chat__fab:hover { background: var(--accent-2); border-color: var(--accent-2); box-shadow: 0 14px 34px rgba(46, 91, 255, 0.45); }
.chat__fab svg { width: 24px; height: 24px; }
.chat__dot { position: absolute; top: 2px; right: 2px; width: 12px; height: 12px; border-radius: 50%; background: #E5484D; box-shadow: 0 0 0 2px var(--paper); }
.chat__panel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: 360px; max-height: min(560px, calc(100vh - 140px)); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface); box-shadow: 0 24px 60px rgba(11, 13, 18, 0.22); overflow: hidden; }
.chat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); }
.chat__title { font-size: 16px; font-weight: 700; color: var(--ink); }
.chat__sub { margin-top: 2px; font-size: 11.5px; color: var(--ink-3); }
.chat__x { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink-2); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease; }
.chat__x:hover { border-color: var(--ink); color: var(--ink); }
.chat__x svg { width: 16px; height: 16px; }
.chat__log { display: grid; align-content: start; gap: 8px; min-height: 160px; padding: 16px 20px; overflow-y: auto; background: var(--paper); }
.chat__m { max-width: 82%; padding: 9px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.chat__m--shop { justify-self: start; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.chat__m--me { justify-self: end; background: var(--accent); color: #fff; }
.chat__form { display: grid; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--line); }
.chat__intro { display: grid; gap: 10px; }
.chat__intro label { display: grid; gap: 4px; font-size: 12px; color: var(--ink-2); }
.chat__intro input, .chat__row textarea { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.chat__row textarea { height: 44px; padding: 11px 12px; resize: none; }
.chat__intro input:focus, .chat__row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.chat__row { display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
.chat__send { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--accent); border-radius: var(--r-md); background: var(--accent); color: #fff; cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease; }
.chat__send:hover { background: var(--accent-2); border-color: var(--accent-2); }
.chat__send:disabled { opacity: 0.5; pointer-events: none; }
.chat__send svg { width: 20px; height: 20px; }
.chat__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat__tg { display: flex; align-items: center; justify-content: center; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600; transition: border-color 0.2s ease, color 0.2s ease; }
.chat__tg:hover { border-color: var(--accent); color: var(--accent); }
.chat__msg { margin: 0; font-size: 12.5px; color: #DC2626; }
.chat__msg:empty { display: none; }
@media (max-width: 760px) {
	.chat { right: 16px; bottom: 84px; }
	body.has-buybar .chat { bottom: 148px; }
	.chat.is-open { left: 0; right: 0; bottom: 0; top: 0; align-content: end; justify-items: stretch; gap: 0; background: rgba(11, 13, 18, 0.4); }
	.chat.is-open .chat__fab { display: none; }
	.chat__panel { width: 100%; max-height: 86vh; border-radius: 20px 20px 0 0; }
}
@media (prefers-color-scheme: dark) { .logo { color: #F2F4F8; } }
@media (max-width: 768px) { .logo__mark { height: 40px; width: auto; } }

/* Переключатель темы */
.theme-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--h); height: var(--h); border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease; }
.theme-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-btn svg { width: 19px; height: 19px; }
.theme-btn__sun { display: none; }
:root[data-theme="dark"] .theme-btn__sun { display: block; }
:root[data-theme="dark"] .theme-btn__moon { display: none; }

/* Подсказки адреса */
.dcs-f { position: relative; }
.dcs-fields .dcs-f:has(input[name="street"]) { grid-column: 1 / -1; }
.addr-suggest { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 4px; max-height: 288px; overflow: auto; padding: 4px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); box-shadow: var(--shadow-1); }
.addr-suggest button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; line-height: 1.35; text-align: left; color: var(--ink); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease; }
.addr-suggest button svg { flex: none; width: 16px; height: 16px; color: var(--ink-3); }
.addr-suggest button:hover, .addr-suggest button.is-on { background: var(--tint); color: var(--accent-2); }
.addr-suggest button:hover svg, .addr-suggest button.is-on svg { color: var(--accent); }

/* ===== Правки 11.11: серые квадратные карточки, формы, мобильное меню ===== */

:root { --r-lg: 0px; --card: #EEF1F6; --card-line: #D8DDE6; }

.pcard, .carousel__track .pcard { background: var(--card); border-color: var(--card-line); border-radius: 0; }
.pcard:hover { border-color: var(--line-2); }
.pcard__imgwrap { background: transparent; }
.pcard__imgwrap img { mix-blend-mode: multiply; }
.pcard__body { border-top-color: var(--card-line); }
.gallery__main, .gallery__thumb { border-radius: 0; }

@media (prefers-color-scheme: dark) {
	:root { --card: var(--surface); --card-line: var(--line); }
	.pcard__imgwrap { background: #fff; }
	.pcard__imgwrap img { mix-blend-mode: normal; }
}

/* Страницы: две строки адреса и жирные часы */
.info-cell h3 > span { display: block; }
.info-cell p b { color: var(--ink); font-weight: 700; }

/* Форма «Если остались вопросы» */
.cform { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; max-width: 760px; }
.cform__f { display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.cform__f--wide { grid-column: 1 / -1; }
.cform input, .cform textarea { width: 100%; min-height: var(--h); padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; }
.cform textarea { min-height: 130px; padding: 12px 14px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.cform__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cform__foot { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
.cform__msg { margin: 0; font-size: 14px; color: var(--ink-2); }
.cform__msg.is-bad { color: #C62828; }
@media (max-width: 640px) { .cform { grid-template-columns: minmax(0, 1fr); } }

/* Согласия в оформлении заказа */
#dc-cart-root .dc-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
#dc-cart-root .dc-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); }
#dc-cart-root .dc-consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Телефон: гамбургер, меню и лупа (только мобильная шапка) */
.hamb, .hsearch-btn, .mmenu { display: none; }

@media (max-width: 900px) {
	.topstrip { display: none; }
	.hamb, .hsearch-btn { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--h); height: var(--h); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color 0.2s ease; }
	.hamb:hover, .hsearch-btn:hover { border-color: var(--ink); }
	.hamb svg, .hsearch-btn svg { width: 20px; height: 20px; }
	.header .search { display: none; }
	.header.search-open .search { display: flex; }
	.header__end { gap: 8px; }
	.header__end .theme-btn, .header__end .hmail { display: none; }

	.mmenu { display: block; position: fixed; inset: 0; z-index: 98; visibility: hidden; }
	.mmenu.is-open { visibility: visible; }
	.mmenu__scrim { position: absolute; inset: 0; background: rgba(11, 13, 18, 0.5); }
	.mmenu__panel { position: absolute; top: 0; bottom: 0; left: 0; display: grid; align-content: start; gap: 20px; width: min(88vw, 380px); padding: 14px 20px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; background: var(--paper); border-right: 1px solid var(--line); }
	.mmenu__head { display: flex; align-items: center; justify-content: space-between; }
	.mmenu__title { font-size: 22px; font-weight: 780; letter-spacing: -0.03em; color: var(--ink); }
	.mmenu__close { display: grid; place-items: center; width: var(--h); height: var(--h); padding: 0; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink); cursor: pointer; }
	.mmenu__close svg { width: 18px; height: 18px; }
	.mmenu__contacts { display: grid; gap: 8px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
	.mmenu__phone { font-size: 20px; font-weight: 700; color: var(--ink); }
	.mmenu__email { justify-self: start; padding-block: 5px; font-size: 15px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
	.mmenu__email:hover { color: var(--accent); }
	.mmenu__addr, .mmenu__hours { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
	.mmenu__hours b { color: var(--ink); font-weight: 700; }
	.mmenu__list { display: grid; margin: 0; padding: 0; list-style: none; }
	.mmenu__link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; text-align: left; cursor: pointer; transition: color 0.2s ease; }
	.mmenu__link:hover { color: var(--accent); }
	.mmenu__link svg { width: 18px; height: 18px; color: var(--ink-3); }
	.mmenu__theme { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; padding: 0 2px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
	.mmenu__switch { display: inline-flex; align-items: center; width: 46px; height: 28px; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); }
	.mmenu__switch i { width: 20px; height: 20px; border-radius: 50%; background: var(--ink-3); }
	.mmenu__theme[aria-pressed="true"] .mmenu__switch { justify-content: flex-end; border-color: var(--accent); background: var(--accent); }
	.mmenu__theme[aria-pressed="true"] .mmenu__switch i { background: #fff; }
	html.mmenu-open { overflow: hidden; }
}

@media (max-width: 360px) {
	.header__bar { padding-inline: 16px; column-gap: 8px; }
}

/* Контакты: адрес-ссылка на карты, часы одним размером */
.info-cell h3 a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
@media (min-width: 641px) { .info-cell h3 a { white-space: nowrap; } }

/* Заказ принят: часы работы двумя ровными строками */
.cart-done__facts li b { display: block; font-weight: 600; font-size: 14px; }

/* Сетка из двух колонок: второй ряд начинается с левого края, как первый */
.info-grid--2 > .info-cell:nth-child(2n+1) { padding-left: 0; border-left: 0; }
.page__aside-hours { display: block; margin-top: 6px; white-space: nowrap; }
