/**
 * Стили каталога и страницы добавки.
 *
 * Все селекторы содержат префикс .vsd- — чужие стили темы Hello Elementor не затрагиваются.
 */

.vsd-catalog,
.vsd-single {
	--vsd-ink: #1f2933;
	--vsd-muted: #5b6672;
	--vsd-line: #e6e2db;
	--vsd-surface: #ffffff;
	--vsd-bg: #faf8f5;
	--vsd-accent: #1d6b5a;
	--vsd-radius: 5px;
	--vsd-green: #2e7d53;
	--vsd-yellow: #b7791f;
	--vsd-red: #b3402f;
	color: var(--vsd-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.55;
}

.vsd-container {
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 20px;
}

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

/* ------------------------------------------------------------------ */
/* Каталог: шапка, поиск, фильтры                                       */
/* ------------------------------------------------------------------ */

.vsd-catalog {
	padding: 28px 0 56px;
}

.vsd-catalog__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}

.vsd-catalog__title {
	margin: 0;
	font-size: 28px;
	letter-spacing: -0.01em;
}

.vsd-catalog__count {
	margin: 0;
	font-size: 14px;
	color: var(--vsd-muted);
	font-variant-numeric: tabular-nums;
}

.vsd-catalog__search {
	display: flex;
	gap: 10px;
	margin-bottom: 14px;
}

.vsd-catalog__input {
	flex: 1 1 auto;
	min-height: 44px;
	padding: 10px 14px;
	font: inherit;
	color: inherit;
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
}

.vsd-catalog__input:focus-visible {
	outline: 2px solid var(--vsd-accent);
	outline-offset: 2px;
}

.vsd-catalog__reset {
	min-height: 44px;
	padding: 0 16px;
	font: inherit;
	color: var(--vsd-muted);
	background: transparent;
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
	cursor: pointer;
}

.vsd-filters {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 22px;
}

.vsd-filters__row {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}

.vsd-filters__row::-webkit-scrollbar {
	display: none;
}

.vsd-pill,
.vsd-chip {
	flex: 0 0 auto;
	scroll-snap-align: start;
	min-height: 38px;
	padding: 8px 14px;
	font: inherit;
	font-size: 14px;
	line-height: 1.2;
	color: var(--vsd-ink);
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-radius: 999px;
	cursor: pointer;
	white-space: nowrap;
}

.vsd-pill.is-active,
.vsd-chip.is-active {
	color: #ffffff;
	background: var(--vsd-ink);
	border-color: var(--vsd-ink);
}

.vsd-pill--green.is-active {
	background: var(--vsd-green);
	border-color: var(--vsd-green);
}

.vsd-pill--yellow.is-active {
	background: var(--vsd-yellow);
	border-color: var(--vsd-yellow);
}

.vsd-pill--red.is-active {
	background: var(--vsd-red);
	border-color: var(--vsd-red);
}

.vsd-chip__dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	margin-right: 8px;
	vertical-align: baseline;
	background: var(--vsd-chip-bg, #e6e2db);
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 50%;
}

/* ------------------------------------------------------------------ */
/* Каталог: сетка и плитка                                              */
/* ------------------------------------------------------------------ */

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

.vsd-tile {
	display: flex;
	flex-direction: column;
	background: var(--vsd-tile-bg, #f7f5f1);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.vsd-tile[hidden] {
	display: none;
}

.vsd-tile:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(31, 41, 51, 0.12);
}

.vsd-tile:focus-visible {
	outline: 2px solid var(--vsd-accent);
	outline-offset: 2px;
}

.vsd-tile__media {
	position: relative;
	display: block;
	background: #ffffff;
}

.vsd-tile__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.vsd-tile__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	font-size: 22px;
	font-weight: 700;
	color: var(--vsd-muted);
	background: #f2efe9;
}

.vsd-tile__num {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 2px 8px;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	background: rgba(255, 255, 255, 0.86);
	border-radius: var(--vsd-radius);
}

.vsd-tile__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 14px 14px;
}

.vsd-tile__code {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--vsd-muted);
}

.vsd-tile__title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.25;
}

.vsd-tile__latin {
	font-size: 12px;
	font-style: italic;
	color: var(--vsd-muted);
}

.vsd-tile__tagline {
	font-size: 12px;
	color: var(--vsd-muted);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vsd-badge {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border-radius: var(--vsd-radius);
}

.vsd-tile .vsd-badge {
	align-self: flex-start;
	margin: 0 14px 14px;
}

.vsd-badge--green {
	color: var(--vsd-green);
	background: rgba(46, 125, 83, 0.12);
}

.vsd-badge--yellow {
	color: var(--vsd-yellow);
	background: rgba(183, 121, 31, 0.14);
}

.vsd-badge--red {
	color: var(--vsd-red);
	background: rgba(179, 64, 47, 0.12);
}

.vsd-catalog__empty {
	margin: 32px 0 0;
	font-size: 15px;
	color: var(--vsd-muted);
	text-align: center;
}

.vsd-catalog__empty[hidden] {
	display: none;
}

/* ------------------------------------------------------------------ */
/* Страница добавки                                                     */
/* ------------------------------------------------------------------ */

.vsd-single {
	padding: 24px 0 72px;
}

.vsd-single__empty {
	padding: 40px 0;
	color: var(--vsd-muted);
}

.vsd-hero {
	display: grid;
	grid-template-columns: 360px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
	padding: 24px;
	margin-bottom: 24px;
	background: var(--vsd-hero-bg, #f7f5f1);
	border-radius: var(--vsd-radius);
}

.vsd-hero__media {
	display: block;
	margin: 0;
}

.vsd-hero__image {
	display: block;
	width: 100%;
	height: auto;
	max-width: 800px;
	border-radius: var(--vsd-radius);
	background: #ffffff;
}

.vsd-hero__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	font-size: 40px;
	font-weight: 700;
	color: var(--vsd-muted);
	background: #ffffff;
	border-radius: var(--vsd-radius);
}

.vsd-hero__body {
	min-width: 0;
}

.vsd-hero__crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 13px;
	color: var(--vsd-muted);
}

.vsd-hero__crumbs a {
	color: var(--vsd-muted);
	text-decoration: none;
}

.vsd-hero__crumbs a:hover {
	color: var(--vsd-accent);
	text-decoration: underline;
}

.vsd-hero__identity {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 13px;
	color: var(--vsd-muted);
}

.vsd-hero__num {
	padding: 2px 8px;
	font-variant-numeric: tabular-nums;
	background: rgba(255, 255, 255, 0.8);
	border-radius: var(--vsd-radius);
}

.vsd-hero__code {
	font-weight: 700;
	letter-spacing: 0.08em;
}

.vsd-hero__title {
	margin: 0 0 6px;
	font-size: 34px;
	line-height: 1.15;
	letter-spacing: -0.015em;
}

.vsd-hero__latin {
	margin: 0 0 12px;
	font-size: 15px;
	font-style: italic;
	color: var(--vsd-muted);
}

.vsd-hero__tagline {
	margin: 12px 0 0;
	font-size: 17px;
}

.vsd-hero__badge {
	margin: 14px 0 0;
}

.vsd-hero__anchors {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}

.vsd-hero__anchor {
	display: inline-flex;
	align-items: center;
	min-height: 38px;
	padding: 8px 14px;
	font-size: 14px;
	color: var(--vsd-ink);
	background: rgba(255, 255, 255, 0.75);
	border: 1px solid var(--vsd-line);
	border-radius: 999px;
	text-decoration: none;
}

.vsd-hero__anchor:hover {
	border-color: var(--vsd-accent);
}

.vsd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	font-size: 15px;
	text-decoration: none;
	border-radius: var(--vsd-radius);
	border: 1px solid var(--vsd-line);
	background: var(--vsd-surface);
	color: var(--vsd-ink);
}

.vsd-btn--primary {
	background: var(--vsd-accent);
	border-color: var(--vsd-accent);
	color: #ffffff;
}

.vsd-plates {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin-bottom: 32px;
}

.vsd-plate {
	padding: 16px 18px;
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-left: 4px solid var(--vsd-accent);
	border-radius: var(--vsd-radius);
}

.vsd-plate__label {
	display: block;
	margin: 0 0 6px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vsd-muted);
}

.vsd-plate__text {
	display: block;
	margin: 0;
	font-size: 15px;
}

.vsd-layout {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr);
	gap: 36px;
	align-items: start;
}

.vsd-toc {
	position: sticky;
	top: 24px;
	max-height: calc(100vh - 48px);
	overflow-y: auto;
	padding: 16px;
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
}

.vsd-toc__title {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vsd-muted);
}

.vsd-toc__list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.vsd-toc__list li + li {
	margin-top: 2px;
}

.vsd-toc__link {
	display: block;
	padding: 7px 10px;
	font-size: 14px;
	color: var(--vsd-muted);
	text-decoration: none;
	border-left: 2px solid transparent;
	border-radius: 0 var(--vsd-radius) var(--vsd-radius) 0;
}

.vsd-toc__link:hover {
	color: var(--vsd-ink);
	background: var(--vsd-bg);
}

.vsd-toc__link.is-active {
	color: var(--vsd-ink);
	font-weight: 600;
	border-left-color: var(--vsd-accent);
	background: var(--vsd-bg);
}

.vsd-toc__note {
	margin: 14px 0 0;
	font-size: 12px;
	color: var(--vsd-muted);
}

.vsd-content {
	min-width: 0;
}

.vsd-section {
	padding-bottom: 8px;
	margin-bottom: 34px;
	scroll-margin-top: 24px;
}

.vsd-section__title {
	margin: 0 0 12px;
	font-size: 23px;
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.vsd-section h3 {
	margin: 22px 0 8px;
	font-size: 16px;
}

.vsd-section p {
	margin: 0 0 12px;
}

.vsd-lead {
	font-size: 17px;
}

.vsd-subtitle {
	color: var(--vsd-muted);
	font-style: italic;
}

.vsd-callout {
	padding: 16px 18px;
	margin-bottom: 14px;
	background: var(--vsd-bg);
	border-left: 4px solid var(--vsd-muted);
	border-radius: var(--vsd-radius);
}

.vsd-callout--green {
	border-left-color: var(--vsd-green);
}

.vsd-callout--yellow {
	border-left-color: var(--vsd-yellow);
}

.vsd-callout--red {
	border-left-color: var(--vsd-red);
}

.vsd-rule,
.vsd-note,
.vsd-timing {
	padding: 12px 14px;
	margin: 0 0 12px;
	font-size: 14px;
	background: var(--vsd-bg);
	border-radius: var(--vsd-radius);
}

.vsd-disclaimer {
	margin: 14px 0 0;
	font-size: 13px;
	color: var(--vsd-muted);
}

.vsd-facts {
	display: grid;
	gap: 10px;
	margin: 16px 0 0;
	padding: 0;
}

.vsd-fact {
	padding: 12px 14px;
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
}

.vsd-fact dt {
	margin-bottom: 4px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--vsd-muted);
}

.vsd-fact dd {
	margin: 0;
	font-size: 14px;
}

.vsd-list {
	margin: 0 0 12px;
	padding-left: 20px;
}

.vsd-list li + li {
	margin-top: 6px;
}

.vsd-list--pro li::marker {
	color: var(--vsd-green);
}

.vsd-list--con li::marker {
	color: var(--vsd-red);
}

.vsd-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.vsd-chips li {
	padding: 6px 12px;
	font-size: 14px;
	background: var(--vsd-bg);
	border: 1px solid var(--vsd-line);
	border-radius: 999px;
}

.vsd-checklist {
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.vsd-checklist li {
	display: grid;
	grid-template-columns: 190px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px dashed var(--vsd-line);
	font-size: 14px;
}

.vsd-checklist__label {
	font-weight: 600;
}

.vsd-sources {
	margin: 0;
	padding-left: 22px;
	font-size: 13px;
	color: var(--vsd-muted);
}

.vsd-sources li + li {
	margin-top: 6px;
}

/* ------------------------------------------------------------------ */
/* FAQ-аккордеон                                                        */
/* ------------------------------------------------------------------ */

.vsd-faq {
	border-top: 1px solid var(--vsd-line);
}

.vsd-faq__item {
	border-bottom: 1px solid var(--vsd-line);
}

.vsd-faq__trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	padding: 16px 2px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	text-align: left;
	color: inherit;
	background: none;
	border: 0;
	cursor: pointer;
}

.vsd-faq__sign {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}

.vsd-faq__sign::before,
.vsd-faq__sign::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 2px;
	background: var(--vsd-muted);
	transform: translateY(-50%);
	transition: transform 0.24s ease, opacity 0.24s ease;
}

.vsd-faq__sign::after {
	transform: translateY(-50%) rotate(90deg);
}

.vsd-faq__item.is-open .vsd-faq__sign::after {
	opacity: 0;
	transform: translateY(-50%) rotate(0deg);
}

.vsd-faq__panel {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows 0.28s ease;
}

.vsd-faq__item.is-open .vsd-faq__panel {
	grid-template-rows: 1fr;
}

.vsd-faq__answer {
	overflow: hidden;
	min-height: 0;
	font-size: 15px;
}

.vsd-faq__answer > * {
	padding: 0 2px 18px;
	margin: 0;
}

/* ------------------------------------------------------------------ */
/* Блок системы, связи и навигация                                      */
/* ------------------------------------------------------------------ */

.vsd-system {
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 20px;
	align-items: center;
	padding: 22px;
	margin: 0 0 32px;
	background: var(--vsd-bg);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
}

.vsd-system__logo {
	display: block;
	width: auto;
	max-width: 140px;
	max-height: 140px;
	object-fit: contain;
}

.vsd-system__title {
	margin: 0 0 6px;
	font-size: 19px;
}

.vsd-system__text {
	margin: 0 0 14px;
	font-size: 14px;
	color: var(--vsd-muted);
}

.vsd-system__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 0 0 4px;
}

.vsd-system__articles {
	margin: 12px 0 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 6px;
}

.vsd-system__articles a {
	font-size: 14px;
	color: var(--vsd-accent);
	text-decoration: none;
}

.vsd-system__articles a:hover {
	text-decoration: underline;
}

.vsd-pager {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 32px;
}

.vsd-pager__link {
	display: block;
	max-width: 46%;
	padding: 14px 16px;
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
	color: var(--vsd-ink);
	text-decoration: none;
}

.vsd-pager__link:hover {
	border-color: var(--vsd-accent);
}

.vsd-pager__link.is-empty {
	visibility: hidden;
}

.vsd-pager__link--next {
	text-align: right;
}

.vsd-pager__label {
	display: block;
	margin-bottom: 4px;
	font-size: 12px;
	color: var(--vsd-muted);
}

.vsd-pager__title {
	display: block;
	font-size: 15px;
	font-weight: 600;
}

.vsd-peers {
	margin-bottom: 36px;
}

.vsd-peers__title {
	margin: 0 0 14px;
	font-size: 19px;
}

.vsd-peers__list {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vsd-peer {
	background: var(--vsd-surface);
	border: 1px solid var(--vsd-line);
	border-radius: var(--vsd-radius);
}

.vsd-peer a {
	display: block;
	padding: 12px 14px;
	color: var(--vsd-ink);
	text-decoration: none;
}

.vsd-peer a:hover {
	border-color: var(--vsd-accent);
	background: var(--vsd-bg);
}

.vsd-peer__num,
.vsd-peer__code {
	display: inline-block;
	margin-right: 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--vsd-muted);
}

.vsd-peer__title {
	display: block;
	margin-top: 4px;
	font-size: 14px;
	font-weight: 600;
}

/* ------------------------------------------------------------------ */
/* Адаптивность                                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1100px) {
	.vsd-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.vsd-peers__list {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.vsd-grid,
	.vsd-peers__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.vsd-hero {
		grid-template-columns: minmax(0, 1fr);
	}

	.vsd-plates {
		grid-template-columns: minmax(0, 1fr);
	}

	.vsd-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.vsd-toc {
		position: static;
		max-height: none;
	}

	.vsd-checklist li {
		grid-template-columns: minmax(0, 1fr);
		gap: 2px;
	}
}

@media (max-width: 740px) {
	.vsd-container {
		padding: 0 14px;
	}

	.vsd-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 12px;
	}

	.vsd-peers__list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.vsd-catalog__title {
		font-size: 23px;
	}

	.vsd-hero__title {
		font-size: 27px;
	}

	.vsd-filters__row {
		scroll-snap-type: x mandatory;
	}

	.vsd-pill,
	.vsd-chip {
		scroll-snap-align: start;
	}

	.vsd-system {
		grid-template-columns: minmax(0, 1fr);
		justify-items: start;
	}

	.vsd-pager {
		flex-direction: column;
	}

	.vsd-pager__link,
	.vsd-pager__link--next {
		max-width: none;
		text-align: left;
	}
}

@media (prefers-reduced-motion: reduce) {
	.vsd-tile,
	.vsd-faq__panel,
	.vsd-faq__sign::before,
	.vsd-faq__sign::after {
		transition: none;
	}
}
