/* SVT Reviews: блок отзывов на страницах товаров. Все правила начинаются с .svtr. */
.svtr {
	--svtr-text: #1a1a1a;
	--svtr-muted: #6b6b6b;
	--svtr-line: #e6e6e6;
	--svtr-bg: #f6f6f4;
	--svtr-accent: #2b2b2b;
	clear: both;
	margin: 0;
	padding: 56px 0 64px;
	color: var(--svtr-text);
	scroll-margin-top: 140px;
}
.svtr *,
.svtr *::before,
.svtr *::after { box-sizing: border-box; }
.svtr__in { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.svtr__title {
	margin: 0 0 6px;
	font-size: clamp(22px, 2.6vw, 30px);
	font-weight: 700;
	line-height: 1.25;
	text-transform: uppercase;
	letter-spacing: .02em;
}
.svtr__count { margin: 0 0 28px; color: var(--svtr-muted); font-size: 15px; }
.svtr .svtr__list { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.svtr__item {
	display: flex;
	gap: 18px;
	margin: 0;
	padding: 24px 26px;
	border-radius: 6px;
	background: var(--svtr-bg);
	scroll-margin-top: 140px;
}
.svtr__item:target { outline: 2px solid var(--svtr-accent); outline-offset: 2px; }
.svtr__avatar {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--svtr-accent);
	color: #fff;
	font-size: 20px;
	font-weight: 700;
}
.svtr__body { flex: 1 1 auto; min-width: 0; }
.svtr__name { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.svtr__text { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.svtr__text.is-collapsed {
	position: relative;
	max-height: 10.5em;
	overflow: hidden;
}
.svtr__text.is-collapsed::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 3.2em;
	background: linear-gradient(rgba(246, 246, 244, 0), var(--svtr-bg));
}
.svtr .svtr__more {
	all: unset;
	display: inline-block;
	margin-top: 12px;
	padding: 9px 18px;
	border-radius: 4px;
	background: var(--svtr-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.svtr .svtr__more:hover,
.svtr .svtr__more:focus-visible { background: #000; }
.svtr .svtr__more:focus-visible { outline: 2px solid var(--svtr-accent); outline-offset: 2px; }
.svtr .svtr__more[hidden] { display: none; }
@media (max-width: 600px) {
	.svtr { padding: 40px 0 48px; }
	.svtr__item { flex-direction: column; gap: 12px; padding: 18px 16px; }
	.svtr__avatar { width: 40px; height: 40px; font-size: 17px; }
}

/* ---------- 2.0: звёзды, город, дата, фото ---------- */
.svtr__city { font-weight: 400; color: var(--svtr-muted); }
.svtr__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: -4px 0 10px; font-size: 14px; color: var(--svtr-muted); }
.svtr__stars { font-size: 17px; letter-spacing: 1px; line-height: 1; }
.svtr__stars-on { color: #f2b600; }
.svtr__stars-off { color: #d9d9d9; }
.svtr .svtr__photos { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.svtr__photos li { margin: 0; }
.svtr__photos a { display: block; border-radius: 4px; overflow: hidden; }
.svtr__photos img { display: block; width: 96px; height: 96px; object-fit: cover; transition: opacity .2s; }
.svtr__photos a:hover img { opacity: .85; }

/* ---------- Кнопки над списком ---------- */
.svtr__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: -12px 0 26px; }
.svtr .svtr__write,
.svtr .svtr-form__submit {
	all: unset;
	display: inline-block;
	box-sizing: border-box;
	padding: 12px 24px;
	border-radius: 4px;
	background: var(--svtr-accent);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .02em;
	cursor: pointer;
	transition: background-color .2s;
}
.svtr .svtr__write:hover,
.svtr .svtr__write:focus-visible,
.svtr .svtr-form__submit:hover,
.svtr .svtr-form__submit:focus-visible { background: #08cbcf; }
.svtr .svtr__write:focus-visible,
.svtr .svtr-form__submit:focus-visible { outline: 2px solid var(--svtr-accent); outline-offset: 2px; }
.svtr .svtr__write[aria-expanded="true"] { background: #08cbcf; }
.svtr .svtr-form__submit[disabled] { opacity: .6; cursor: wait; }
.svtr .svtr__ext {
	display: inline-block;
	padding: 11px 18px;
	border: 1px solid var(--svtr-accent);
	border-radius: 4px;
	color: var(--svtr-accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: background-color .2s, color .2s;
}
.svtr .svtr__ext:hover,
.svtr .svtr__ext:focus-visible { background: var(--svtr-accent); color: #fff; }

/* ---------- Форма ---------- */
.svtr .svtr-form {
	display: grid;
	gap: 16px;
	max-width: 760px;
	margin: 0 0 32px;
	padding: 26px;
	border-top: 3px solid #08cbcf;
	border-radius: 6px;
	background: var(--svtr-bg);
}
.svtr .svtr-form[hidden] { display: none; }
.svtr .svtr-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.svtr .svtr-form__field { display: grid; gap: 6px; font-size: 15px; font-weight: 600; }
.svtr .svtr-form__field input,
.svtr .svtr-form__field textarea {
	box-sizing: border-box;
	width: 100%;
	padding: 11px 12px;
	border: 1px solid #cfcfcf;
	border-radius: 4px;
	background: #fff;
	font: inherit;
	font-size: 16px;
	font-weight: 400;
	color: var(--svtr-text);
}
.svtr .svtr-form__field textarea { min-height: 140px; resize: vertical; }
.svtr .svtr-form__field input:focus,
.svtr .svtr-form__field textarea:focus { border-color: #08cbcf; outline: 2px solid rgba(8, 203, 207, .25); outline-offset: 0; }
.svtr .svtr-form__req { color: #c62828; }
.svtr .svtr-form__hint { font-size: 13px; font-weight: 400; color: var(--svtr-muted); }
.svtr .svtr-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.svtr .svtr-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.svtr .svtr-form__rating { margin: 0; padding: 0; border: 0; }
.svtr .svtr-form__rating legend { margin: 0 0 4px; padding: 0; font-size: 15px; font-weight: 600; }
.svtr .svtr-rate { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.svtr .svtr-rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.svtr .svtr-rate label { padding: 0 3px; font-size: 34px; line-height: 1; color: #d0d0d0; cursor: pointer; transition: color .15s, transform .15s; }
.svtr .svtr-rate label:hover,
.svtr .svtr-rate label:hover ~ label,
.svtr .svtr-rate input:checked ~ label { color: #f2b600; }
.svtr .svtr-rate input:focus-visible + label { outline: 2px solid #08cbcf; outline-offset: 2px; border-radius: 3px; }
.svtr .svtr-rate label:active { transform: scale(.9); }

.svtr .svtr-form__photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.svtr .svtr-form__file { position: relative; display: inline-block; cursor: pointer; }
.svtr .svtr-form__file input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.svtr .svtr-form__file span {
	display: inline-block;
	padding: 10px 18px;
	border: 1px dashed #8a8a8a;
	border-radius: 4px;
	background: #fff;
	font-size: 14px;
	font-weight: 600;
}
.svtr .svtr-form__file:hover span,
.svtr .svtr-form__file input:focus-visible + span { border-color: #08cbcf; color: #000; }
.svtr .svtr-form__previews { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; margin: 0; padding: 0; list-style: none; }
.svtr .svtr-form__previews:empty { display: none; }
.svtr .svtr-form__previews li { position: relative; margin: 0; }
.svtr .svtr-form__previews img { display: block; width: 84px; height: 84px; border-radius: 4px; object-fit: cover; }
.svtr .svtr-form__previews button {
	all: unset;
	position: absolute;
	top: -7px;
	right: -7px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #333;
	color: #fff;
	font-size: 15px;
	line-height: 22px;
	text-align: center;
	cursor: pointer;
}
.svtr .svtr-form__consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.svtr .svtr-form__consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.svtr .svtr-form__consent a { color: inherit; }
.svtr .svtr-form__bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.svtr .svtr-form__note { font-size: 13px; color: var(--svtr-muted); }
.svtr .svtr-form__alt { margin: -4px 0 0; font-size: 14px; color: var(--svtr-muted); }
.svtr .svtr-form__alt a { color: var(--svtr-text); }
.svtr .svtr-form__error { margin: 0; padding: 10px 14px; border-left: 3px solid #c62828; background: #fdecea; font-size: 14px; color: #8e1c1c; }
.svtr .svtr-form__error[hidden] { display: none; }
.svtr-form__done {
	max-width: 760px;
	margin: 0 0 28px;
	padding: 18px 22px;
	border-top: 3px solid #08cbcf;
	border-radius: 6px;
	background: var(--svtr-bg);
	font-size: 16px;
	font-weight: 600;
}
@media (max-width: 600px) {
	.svtr .svtr-form { padding: 18px 16px; }
	.svtr .svtr-form__row { grid-template-columns: 1fr; }
	.svtr__actions .svtr__write { flex: 1 1 100%; text-align: center; }
	.svtr__actions .svtr__ext { flex: 1 1 auto; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
	.svtr .svtr__write, .svtr .svtr-form__submit, .svtr-rate label { transition: none; }
}

/* Защита от стилей темы для полей формы. */
.svtr .svtr-rate input { margin: 0; padding: 0; border: 0; -webkit-appearance: none; appearance: none; }
.svtr .svtr-rate label { display: inline-block; margin: 0; width: auto; }
.svtr .svtr-form__field input,
.svtr .svtr-form__field textarea { box-shadow: none; min-height: 0; border-width: 1px; }

/* ---------- «Контакты»: отзывы о компании — по центру, на светлой полосе во всю ширину ---------- */
.svtr--company {
	--svtr-band: #f6f6f4;
	--svtr-bg: #fff;
	margin-top: 48px;
	background: var(--svtr-band);
	/* Полоса во всю ширину окна без горизонтальной прокрутки. */
	box-shadow: 0 0 0 100vmax var(--svtr-band);
	clip-path: inset(0 -100vmax);
	text-align: center;
}
.svtr--company .svtr__count { max-width: 560px; margin-inline: auto; }
.svtr--company .svtr__actions { justify-content: center; margin-top: 0; }
.svtr--company .svtr-form,
.svtr--company .svtr-form__done { margin-inline: auto; text-align: left; }
.svtr--company .svtr__list { max-width: 860px; margin-inline: auto; text-align: left; }
.svtr--company .svtr__text.is-collapsed::after { background: linear-gradient(rgba(255, 255, 255, 0), #fff); }
/* Если блок последний на странице — полоса доходит до подвала, без белого зазора темы. */
[data-vertical-spacing*="bottom"] .entry-content > .svtr--company:last-child {
	margin-bottom: calc(-1 * var(--theme-content-vertical-spacing, 0px));
}
