/* iComp — дизайн-система icomp.one (аудит impeccable 06.11.2026).
   Токены: https://claude.ai — «icomp.one» Design System. Подключается последним, поэтому перекрывает шаблон. */

:root {
	--ic-bg: #0a0a0b;
	--ic-surface: #16161a;
	--ic-surface-raised: #1f1f24;
	--ic-border: #2a2a30;
	--ic-border-strong: #71717a;
	--ic-ink: #f4f4f5;
	--ic-ink-muted: #a1a1aa;
	--ic-brand: #c6f432;
	--ic-on-brand: #0a0a0b;
	--ic-accent: #7c3aed;
	--ic-on-accent: #ffffff;
	--ic-danger: #dc2626;
	--ic-focus: #c6f432;
	--ic-font-display: "Rubik", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ic-font-sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body.theme-light {
	--ic-surface: #ffffff;
	--ic-surface-raised: #f4f4f5;
	--ic-border: #e4e4e7;
	--ic-ink: #18181b;
	--ic-ink-muted: #52525b;
	--ic-accent: #6d28d9;
	--ic-focus: #4d7c0f;
}

/* ── Шрифты: Rubik для заголовков, Nunito Sans для текста ── */
body, input, button, select, textarea, .btn, .font_body {
	font-family: var(--ic-font-sans) !important;
}
h1, h2, h3, .switcher-title, .index-block__title, .icomp-pd__title, .icomp-why__head h2, .catalog-detail__price, .price__new-val {
	font-family: var(--ic-font-display) !important;
}
.price__new-val, .price__old-val, .catalog-detail__price, [class*="price"] .price__new {
	font-variant-numeric: tabular-nums;
}

/* ── Фокус клавиатуры: шаблон гасит outline на :focus ── */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible, [tabindex]:focus-visible, [role="button"]:focus-visible, .btn:focus-visible {
	outline: 2px solid var(--ic-focus) !important;
	outline-offset: 2px !important;
}

/* ── Бейджи: 12px вместо 10px, «Хит» читаемым красным ── */
.sticker__item {
	font-size: 12px !important;
	line-height: 16px !important;
	letter-spacing: .04em;
	box-shadow: none !important;
}
.sticker__item--hit { --sticker_color: var(--ic-danger) !important; background: var(--ic-danger) !important; color: #fff !important; }
.sticker__item--new { --sticker_color: var(--ic-brand) !important; background: var(--ic-brand) !important; color: var(--ic-on-brand) !important; }
.sticker__item--recommend { --sticker_color: var(--ic-accent) !important; background: var(--ic-accent) !important; color: var(--ic-on-accent) !important; }

/* ── Рейтинг без отзывов не показываем: «★ 0» читается как плохая оценка ── */
.rating[title="Нет оценок"], .catalog-block__info-tech .rating[title="Нет оценок"] { display: none !important; }

/* ── Цели нажатия 44×44: «В избранное», «Сравнить» и другие кнопки-иконки ── */
.item-action__inner {
	min-width: 44px !important;
	min-height: 44px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.side-icons .item-action + .item-action { margin-top: 0 !important; }
.icomp-btn { min-height: 44px; padding-block: 12px; }

/* ── Роли цвета: лайм — покупка, фиолетовый — навигация и выбранное ── */
.icomp-cats__link.icomp-cats__link--active {
	background: var(--ic-accent) !important;
	color: var(--ic-on-accent) !important;
	border-color: var(--ic-accent) !important;
}
.icomp-cats__link.icomp-cats__link--active * { color: var(--ic-on-accent) !important; }

/* Логотипы брендов — на спокойной подложке, без лайма */
.brands-list .brands-list__item,
body.theme-dark .brands-list .brands-list__item, body.theme-dark .brands-list .item {
	background: var(--ic-surface-raised) !important;
	border: 1px solid var(--ic-border) !important;
}
.brands-list .brands-list__item:hover { background: var(--ic-surface) !important; border-color: var(--ic-border-strong) !important; }
body.theme-dark .brands-list .brands-list__image { filter: brightness(0) invert(1); opacity: .9; }

/* Мобильная полоса категорий: затухание у края — видно, что её можно листать */
.icomp-cats--m { position: relative; }
.icomp-cats--m::after {
	content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 40px; pointer-events: none;
	background: linear-gradient(to right, transparent, var(--ic-bg));
}
body.theme-light .icomp-cats--m::after { background: linear-gradient(to right, transparent, #fafafa); }

/* ── Читаемость ── */
.icomp-spot__card--purple .icomp-spot__kicker { color: var(--ic-on-accent) !important; opacity: 1 !important; }
.icomp-chat__form textarea::placeholder { color: var(--ic-ink-muted) !important; opacity: 1; }
body.theme-dark #bx-soa-order label, body.theme-dark #bx-soa-order .bx-soa-custom-label,
body.theme-dark #bx-soa-order .bx-soa-customer-label { color: var(--ic-ink-muted) !important; }

/* ── Описание товара: обычный текст, без рамки и цветной полосы внутри вкладки ── */
.js-detail-description p {
	border: 0 !important;
	border-left: 0 !important;
	background: none !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.js-detail-description > p:first-child { font-size: 17px; line-height: 26px; color: var(--ic-ink); }
.js-detail-description h2.icomp-desc-h {
	font-family: var(--ic-font-display) !important;
	font-size: 20px !important;
	line-height: 26px !important;
	font-weight: 600 !important;
	margin: 24px 0 8px !important;
}

/* ── Движение: уважение к «уменьшить движение» ── */
@media (prefers-reduced-motion: reduce) {
	.swiper-wrapper { transition-duration: 0s !important; }
	.catalog-block__item, .grid-list__item, .icomp-btn, .btn { transition: none !important; }
	.catalog-block__item:hover, .grid-list__item:hover { transform: none !important; }
}

/* Без висячих слов в описаниях и заголовках */
.js-detail-description p, .icomp-why__item span, .icomp-pd__lead { text-wrap: pretty; }
h1, h2, h3, .switcher-title { text-wrap: balance; }

/* Логотипы брендов: шаблон смешивает их через multiply — на тёмном фоне белый логотип пропадал */
body.theme-dark .brands-list .brands-list__image { mix-blend-mode: normal !important; }
/* Заголовки описания без цветной полосы */
.js-detail-description h2.icomp-desc-h { border-left: 0 !important; padding-left: 0 !important; }
/* Рейтинг в карточке товара без отзывов скрываем (метка ставится скриптом) */
.rating.icomp-no-reviews { display: none !important; }
/* Логотип Palit — на непрозрачной подложке, перекрашивать нельзя */
body.theme-dark .brands-list .brands-list__image[alt="Palit"] { filter: none !important; opacity: 1 !important; border-radius: 6px; }

/* Карточка товара: бейдж «Хит» под названием, а не над ним */
.catalog-detail__main { display: flex; flex-direction: column; }
.catalog-detail__main > * { order: 2; }
.catalog-detail__main > :nth-child(2) { order: 0; }
.catalog-detail__main > .catalog-detail__sticker-wrapper { order: 1; margin: 4px 0 8px; }

/* Таблица характеристик в описании — без своей рамки и фона внутри вкладки */
.js-detail-description table {
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}
.js-detail-description table tr + tr > td, .js-detail-description table tr + tr > th { border-top: 1px solid var(--ic-border) !important; }
.js-detail-description table td, .js-detail-description table th { background: transparent !important; }

/* Мобильная вкладка товара: вкладки не прилипают к краю карточки */
@media (max-width: 767px) {
	.grid-list__item.detail-block > .tabs { padding-inline: 16px; }
}

/* Вкладки товара: внутренний отступ, текст не прилипает к краю карточки */
.grid-list__item.detail-block > .tabs, .grid-list__item.detail-block > .tab-content { padding-inline: 24px; }
.grid-list__item.detail-block > .tab-content { padding-bottom: 24px; }
@media (max-width: 767px) { .grid-list__item.detail-block > .tabs, .grid-list__item.detail-block > .tab-content { padding-inline: 16px; } }

/* Первый экран: видео-слайды с текстом — затемнение слева, чтобы заголовок читался на светлом кадре */
.banners-big__item.vvideo .banners-big__inner-wrap {
	inset: 0;
	background: linear-gradient(90deg, rgba(10,10,11,.85) 0%, rgba(10,10,11,.6) 40%, rgba(10,10,11,0) 70%);
}
.banners-big__item.vvideo .banners-big__title, .banners-big__item.vvideo .banners-big__title-link { color: #f4f4f5 !important; }
.banners-big__item.vvideo .banners-big__text { max-width: 560px; }
.banners-big__item.vvideo .banners-big__text-block, .banners-big__item.vvideo .banners-big__text-wrapper { color: #d4d4d8 !important; }
@media (max-width: 767px) {
	.banners-big__item.vvideo .banners-big__inner-wrap { background: linear-gradient(0deg, rgba(10,10,11,.88) 0%, rgba(10,10,11,.5) 55%, rgba(10,10,11,0) 85%); }
}

/* Основные направления: 4 карточки */
.icomp-dirs__grid { grid-template-columns: repeat(4, 1fr) !important; }
@media (max-width: 1199px) { .icomp-dirs__grid { grid-template-columns: 1fr 1fr !important; } }
