/* VietVed Trust — виджет. Токены темы с запасными значениями, чтобы блок жил и вне темы.
   Селекторы с префиксом .vvt — чтобы правила темы для .entry-content (a, h2, ul) не перебивали. */

/* Страница с виджетом: колонка контента на всю рабочую ширину вместо 860px */
.vvt-wide-page .page-content { max-width: var(--wrap, 1180px); }

.vvt {
	--vvt-ink: var(--color-ink, #0a0a0a);
	--vvt-slate: var(--color-slate, #45515e);
	--vvt-stone: #6b6f76; /* темнее --color-stone ради контраста 4.5:1 */
	--vvt-line: var(--color-hairline, #e5e7eb);
	--vvt-surface: var(--color-surface, #f7f8fa);
	--vvt-card: var(--color-canvas, #ffffff);
	--vvt-blue: var(--color-brand-blue, #1456f0);
	--vvt-blue-soft: rgba(20, 86, 240, 0.08);
	--vvt-coral: var(--color-brand-coral, #ff5530);
	--vvt-ok-bg: var(--color-success-bg, #e8ffea);
	--vvt-ok: #13805a;
	--vvt-r: var(--radius-xxl, 20px);

	font-family: var(--font-sans, 'Gilroy', 'Inter', Arial, sans-serif);
	color: var(--vvt-ink);
	background: var(--vvt-surface);
	border-radius: var(--radius-hero, 32px);
	padding: 40px;
	margin: 32px auto;
	box-sizing: border-box;
	width: 100%;
	max-width: 1080px;
}
.vvt *, .vvt *::before, .vvt *::after { box-sizing: border-box; }
.vvt p { margin: 0; }
.vvt ul { list-style: none; margin: 0; padding: 0; }
.vvt li { margin: 0; }

/* Шапка */
.vvt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.vvt .vvt-title { font-size: 36px; font-weight: 600; line-height: 1.2; letter-spacing: -0.8px; margin: 0; }
.vvt .vvt-subtitle { font-size: 17px; color: var(--vvt-slate); margin-top: 8px; }
.vvt-head__badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vvt-pill__text { display: inline-block; transform: translateY(2px); } /* Gilroy сидит высоко — опускаем на 2px */
.vvt a.vvt-msg { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.vvt a.vvt-msg:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.vvt-msg svg { width: 18px; height: 18px; }
.vvt-msg--telegram { background: #229ed9; }
.vvt-msg--whatsapp { background: #25d366; }
.vvt-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 9999px; font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.vvt-pill--ok { background: var(--vvt-ok-bg); color: var(--vvt-ok); }
.vvt-pill--demo { background: #fff3ef; color: #b33a1d; border: 1px dashed var(--vvt-coral); }
.vvt-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: vvt-pulse 2.4s ease-out infinite; }
@keyframes vvt-pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 128, 90, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(19, 128, 90, 0); } }
@media (prefers-reduced-motion: reduce) { .vvt-dot { animation: none; } }

/* Карточки */
.vvt-card { background: var(--vvt-card); border: 1px solid var(--vvt-line); border-radius: var(--vvt-r); padding: 28px; }

/* Ключевые факты: 3 колонки */
.vvt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.vvt-stat { display: flex; flex-direction: column; gap: 8px; }
.vvt-stat__value { font-size: 48px; font-weight: 700; line-height: 1.05; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; }
.vvt-stars { position: relative; display: inline-block; line-height: 0; }
.vvt-stars__base, .vvt-stars__fill { display: flex; gap: 4px; white-space: nowrap; }
.vvt-stars__base { color: var(--vvt-line); }
.vvt-stars__fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: #f5a524; }
.vvt-stars svg { flex: none; width: 40px; height: 40px; fill: currentColor; }
.vvt-stat__unit { font-size: 24px; font-weight: 600; letter-spacing: 0; }
.vvt-stat__label { font-size: 15px; color: var(--vvt-slate); line-height: 1.45; }
.vvt a.vvt-link { font-size: 14px; font-weight: 600; color: var(--vvt-blue); text-decoration: none; }
.vvt-stat a.vvt-link { margin-top: auto; padding-top: 4px; }
.vvt a.vvt-link:hover { text-decoration: underline; }

/* Соцсети: отдельный ряд широких карточек */
.vvt-social { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px !important; }
.vvt a.vvt-social__item { display: flex; align-items: center; gap: 16px; padding: 20px 24px; color: var(--vvt-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.vvt a.vvt-social__item:hover { border-color: var(--vvt-blue); box-shadow: 0 4px 16px rgba(20, 86, 240, .08); }
.vvt-social__icon { flex: none; display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; color: #fff; }
.vvt-social__icon svg { width: 24px; height: 24px; }
.vvt-social__icon--telegram { background: #229ed9; }
.vvt-social__icon--instagram { background: linear-gradient(45deg, #f09433, #dc2743 55%, #bc1888); }
.vvt-social__icon--youtube { background: #ff0000; }
.vvt-social__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vvt-social__name { font-size: 15px; font-weight: 600; }
.vvt-social__handle { font-weight: 400; color: var(--vvt-stone); }
.vvt-social__count { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; white-space: nowrap; }
.vvt-social__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* «подписчиков» → «подп.», когда карточка узкая (решает ширина карточки, а не экрана) */
.vvt a.vvt-social__item { container-type: inline-size; }
.vvt-social__word--short { display: none; text-decoration: none; border: 0; }
@container (max-width: 330px) {
	.vvt-social__word--full { display: none; }
	.vvt-social__word--short { display: inline; }
}
.vvt-social__arrow { margin-left: auto; font-size: 18px; color: var(--vvt-stone); }

/* Лента */
.vvt-feed { margin-top: 16px; }
.vvt .vvt-h3 { font-size: 22px; font-weight: 600; margin: 0 0 8px; }
.vvt-feed__item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--vvt-line); }
.vvt-feed__item:last-child { border-bottom: 0; padding-bottom: 0; }
.vvt-feed__icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--vvt-blue-soft); color: var(--vvt-blue); }
.vvt-feed__icon--review_published { background: #fff6e5; color: #b86e00; }
.vvt-feed__icon--service_completed { background: var(--vvt-ok-bg); color: var(--vvt-ok); }
.vvt-feed__body { display: flex; flex-direction: column; gap: 2px; }
.vvt-feed__type { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; color: var(--vvt-stone); }
.vvt-feed__text { font-size: 16px; font-weight: 600; line-height: 1.4; }
.vvt a.vvt-feed__text--link { color: var(--vvt-ink); text-decoration: underline; text-decoration-color: var(--vvt-line); text-underline-offset: 3px; }
.vvt a.vvt-feed__text--link:hover { color: var(--vvt-blue); text-decoration-color: currentColor; }
.vvt-feed__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.vvt-feed__when { font-size: 14px; color: var(--vvt-stone); white-space: nowrap; }

/* Факты для туриста */
.vvt-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.vvt-fact { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 9999px; background: var(--vvt-card); border: 1px solid var(--vvt-line); font-size: 14px; color: var(--vvt-slate); }
.vvt-fact svg { color: var(--vvt-blue); flex: none; }
.vvt .vvt-fact a { color: var(--vvt-blue); font-weight: 600; text-decoration: none; }

/* Подвал */
.vvt-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; }
.vvt-method { flex: 1 1 320px; }
.vvt-method summary { cursor: pointer; color: var(--vvt-blue); font-weight: 600; }
.vvt-method__body { margin-top: 10px; color: var(--vvt-slate); line-height: 1.55; display: grid; gap: 8px; max-width: 760px; }
.vvt-updated { color: var(--vvt-stone); font-size: 13px; }

.vvt a:focus-visible, .vvt summary:focus-visible { outline: 2px solid var(--vvt-blue); outline-offset: 2px; border-radius: 6px; }

@media (max-width: 640px) {
	.vvt { padding: 20px 16px; border-radius: 24px; margin: 24px auto; }
	.vvt .vvt-title { font-size: 26px; }
	.vvt-card { padding: 20px; }
	.vvt-stats, .vvt-social { grid-template-columns: 1fr; gap: 12px; }
	.vvt-stat__value { font-size: 40px; }
	.vvt-stars svg { width: 34px; height: 34px; }
	.vvt a.vvt-social__item { padding: 16px 18px; }
	.vvt-feed__item { grid-template-columns: 40px minmax(0, 1fr); }
	.vvt-feed__meta { grid-column: 2; flex-direction: row; align-items: baseline; gap: 12px; text-align: left; }
}

/* Страницы услуг (vph): секция с виджетом сразу после чёрного блока «Мы верим…» */
.vph-trust-section .vvt { margin: 48px auto 0; }
@media (max-width: 640px) {
	.vph-trust-section .vvt { margin-top: 32px; }
}
