/**
 * Раздел «Сервисные центры» — rectechnhous.ru.
 *
 * Оформление подстроено под тему hq-pages: акцент и шрифт берутся из темы
 * (--color-accent-secondary, Stolzl), тёмный режим темы — body.dark.
 */

.rts-sc,
.rts-modal {
	--rts-accent: var(--color-accent-secondary, #2f5bea);
	--rts-accent-dark: var(--color-text-hover, #1f45c4);
	--rts-accent-soft: rgba(47, 91, 234, 0.08);
	--rts-ink: #212121;
	--rts-muted: #6b6b6b;
	--rts-line: #e6e6e6;
	--rts-bg: #ffffff;
	--rts-bg-soft: #f7f7f8;
	--rts-badge: #3b2d1b;
	--rts-green: #1e8e4b;
	--rts-star: #f5a623;
	--rts-radius: 10px;
	--rts-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 8px 24px rgba(0, 0, 0, 0.06);

	color: var(--rts-ink);
	font-family: inherit;
}

body.dark .rts-sc,
body.dark .rts-modal {
	--rts-ink: #ececec;
	--rts-muted: #a3a3a3;
	--rts-line: #333333;
	--rts-bg: #1b1b1b;
	--rts-bg-soft: #232323;
	--rts-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

.rts-sc h1,
.rts-sc h2,
.rts-sc h3 {
	font-family: inherit;
	color: var(--rts-ink);
}

.rts-sc a {
	color: inherit;
}

/* ---------------------------------------------------------------- Крошки */

.rts-breadcrumbs {
	margin: 18px 0 22px;
	font-size: 13px;
	color: var(--rts-muted);
}

.rts-breadcrumbs__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rts-breadcrumbs__item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.rts-breadcrumbs a {
	color: var(--rts-muted);
	text-decoration: none;
}

.rts-breadcrumbs a:hover {
	color: var(--rts-accent);
}

.rts-breadcrumbs i {
	font-size: 15px;
	opacity: 0.55;
}

/* --------------------------------------------------------- Шапка страницы */

.rts-page-head {
	margin-bottom: 26px;
}

.rts-page-title {
	margin: 0 0 10px;
	font-size: clamp(26px, 4vw, 40px);
	line-height: 1.18;
	font-weight: 800;
}

.rts-page-lead {
	max-width: 760px;
	margin: 0;
	color: var(--rts-muted);
	font-size: 16px;
	line-height: 1.65;
}

.rts-page-lead strong {
	color: var(--rts-ink);
}

.rts-section-title {
	margin: 0 0 14px;
	font-size: clamp(20px, 2.4vw, 26px);
	font-weight: 800;
	line-height: 1.3;
}

.rts-section-lead {
	margin: -6px 0 16px;
	color: var(--rts-muted);
	font-size: 15px;
}

/* -------------------------------------------------------------- Витрина */

.rts-hero {
	padding: 34px 32px;
	margin-bottom: 40px;
	background: linear-gradient(135deg, var(--rts-accent) 0%, var(--rts-accent-dark) 100%);
	border-radius: var(--rts-radius);
	color: #fff;
}

/* Специфичность выше, чем у `.rts-sc h1`, иначе тёмный --rts-ink
   перебивает белый и заголовок в красной шапке становится чёрным.
   !important — потому что тема сайта может красить h1 своим правилом. */
.rts-sc .rts-hero__title {
	margin: 0 0 12px;
	color: #fff !important;
	font-size: clamp(26px, 4.2vw, 42px);
	font-weight: 800;
	line-height: 1.15;
}

/* Страховка: любой заголовок внутри цветной шапки — белым. */
.rts-sc .rts-hero h1,
.rts-sc .rts-hero h2,
.rts-sc .rts-hero h3 {
	color: #fff !important;
}

.rts-hero__lead {
	max-width: 720px;
	margin: 0;
	font-size: 16px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.9);
}

.rts-hero__stats {
	display: flex;
	flex-wrap: wrap;
	gap: 14px 40px;
	margin: 26px 0 0;
	padding: 22px 0 0;
	list-style: none;
	border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.rts-hero__stats li {
	display: flex;
	flex-direction: column;
}

.rts-hero__stats strong {
	font-family: inherit;
	font-size: 28px;
	font-weight: 800;
	line-height: 1.1;
}

.rts-hero__stats span {
	font-size: 13px;
	color: rgba(255, 255, 255, 0.82);
}

/* ------------------------------------------------------ Плитка категорий */

.rts-devices {
	margin-bottom: 44px;
}

.rts-device-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rts-device-card a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
	height: 100%;
	padding: 20px 18px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: var(--rts-radius);
	text-decoration: none;
	transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.rts-device-card a:hover {
	border-color: var(--rts-accent);
	transform: translateY(-2px);
	box-shadow: var(--rts-shadow);
}

.rts-device-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: var(--rts-accent-soft);
	border-radius: 8px;
	color: var(--rts-accent);
	font-size: 24px;
}

.rts-device-card__name {
	font-family: inherit;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rts-ink);
}

.rts-device-card__count {
	font-size: 13px;
	color: var(--rts-muted);
}

/* ------------------------------------------------- Панель фильтров/сортировки */

.rts-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 14px 16px;
	margin-bottom: 18px;
	background: var(--rts-bg-soft);
	border: 1px solid var(--rts-line);
	border-radius: var(--rts-radius);
}

.rts-toolbar__count {
	flex: 1 1 240px;
	font-size: 15px;
}

.rts-toolbar__reset {
	margin-left: 10px;
	font-size: 13px;
	color: var(--rts-accent);
	text-decoration: underline;
}

.rts-toolbar__sort {
	display: flex;
	align-items: center;
	gap: 8px;
}

.rts-toolbar__sort-label {
	font-size: 13px;
	color: var(--rts-muted);
}

.rts-select {
	max-width: 230px;
	padding: 8px 12px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: 8px;
	color: var(--rts-ink);
	font-family: inherit;
	font-size: 14px;
}

.rts-filters-toggle {
	display: none;
}

.rts-filters {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 18px 26px;
	padding: 18px;
	margin-bottom: 26px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: var(--rts-radius);
}

.rts-filters__title {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rts-muted);
}

.rts-filters__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rts-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 7px 13px;
	background: var(--rts-bg-soft);
	border: 1px solid var(--rts-line);
	border-radius: 999px;
	color: var(--rts-ink);
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	transition: all 0.16s ease;
}

.rts-chip:hover {
	border-color: var(--rts-accent);
	color: var(--rts-accent);
}

.rts-chip.is-active {
	background: var(--rts-accent);
	border-color: var(--rts-accent);
	color: #fff;
}

.rts-chip--sm {
	padding: 5px 11px;
	font-size: 13px;
}

.rts-chip i {
	font-size: 15px;
}

/* -------------------------------------------------------------- Карточка */

.rts-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 32px;
}

.rts-card {
	position: relative;
	display: grid;
	grid-template-columns: 160px 1fr 210px;
	gap: 22px;
	padding: 20px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: var(--rts-radius);
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.rts-card:hover {
	border-color: #d0d0d0;
	box-shadow: var(--rts-shadow);
}

.rts-card.is-featured {
	border-color: var(--rts-accent);
}

.rts-card__promo {
	position: absolute;
	top: -10px;
	left: 20px;
	padding: 3px 10px;
	background: var(--rts-accent);
	border-radius: 999px;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.rts-card__media {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.rts-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: var(--rts-bg-soft);
	border-radius: 8px;
}

.rts-card__logo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.rts-card__initials {
	font-family: inherit;
	font-size: 38px;
	font-weight: 800;
	color: var(--rts-accent);
	opacity: 0.35;
}

.rts-card__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
}

.rts-card__rating-value {
	font-family: inherit;
	font-size: 19px;
	font-weight: 800;
}

.rts-card__reviews {
	width: 100%;
	color: var(--rts-muted);
	font-size: 13px;
	text-decoration: underline;
}

.rts-card__reviews:hover {
	color: var(--rts-accent);
}

/* Звёзды */

.rts-stars {
	display: inline-flex;
	gap: 1px;
}

.rts-star {
	position: relative;
	width: 14px;
	height: 14px;
	background: var(--rts-line);
	-webkit-mask: var(--rts-star-shape) center / contain no-repeat;
	mask: var(--rts-star-shape) center / contain no-repeat;
	--rts-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}

.rts-star.is-full {
	background: var(--rts-star);
}

.rts-star.is-half {
	background: linear-gradient(90deg, var(--rts-star) 50%, var(--rts-line) 50%);
}

/* Тело карточки */

.rts-card__body {
	min-width: 0;
}

.rts-card__head {
	margin-bottom: 10px;
}

.rts-card__title {
	margin: 0 0 8px;
	font-size: 19px;
	font-weight: 700;
	line-height: 1.3;
}

.rts-card__title a {
	text-decoration: none;
}

.rts-card__title a:hover {
	color: var(--rts-accent);
}

.rts-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.rts-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	background: var(--rts-badge);
	border-radius: 4px;
	color: #fff;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.5;
}

.rts-badge--official {
	background: var(--rts-accent);
}

.rts-badge--verified {
	background: var(--rts-green);
}

.rts-card__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 14px;
	color: var(--rts-muted);
}

.rts-card__meta-item {
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.rts-card__meta-item i {
	flex: none;
	margin-top: 2px;
	font-size: 16px;
	color: var(--rts-accent);
	opacity: 0.75;
}

.rts-status.is-open {
	color: var(--rts-green);
	font-weight: 500;
}

.rts-status.is-closed {
	color: #b3261e;
}

.rts-card__features {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.rts-feature {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: var(--rts-accent-soft);
	border-radius: 999px;
	color: var(--rts-accent);
	font-size: 12.5px;
}

.rts-card__prices {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.rts-card__prices th,
.rts-card__prices td {
	padding: 5px 0;
	border: 0;
	border-bottom: 1px dashed var(--rts-line);
	text-align: left;
	font-weight: 400;
	color: var(--rts-muted);
}

.rts-card__prices td {
	width: 120px;
	text-align: right;
	color: var(--rts-ink);
	font-weight: 600;
	white-space: nowrap;
}

.rts-free {
	color: var(--rts-green);
}

/* Кнопки карточки */

.rts-card__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
	align-self: start;
}

.rts-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 16px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.16s ease;
}

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

.rts-btn--primary:hover {
	background: var(--rts-accent-dark);
	border-color: var(--rts-accent-dark);
	color: #fff;
}

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

.rts-btn--ghost:hover {
	border-color: var(--rts-accent);
	color: var(--rts-accent);
}

.rts-btn--link {
	padding: 6px 0;
	background: none;
	color: var(--rts-muted);
	font-weight: 500;
}

.rts-btn--link:hover {
	color: var(--rts-accent);
}

.rts-btn--block {
	width: 100%;
}

.rts-phone {
	flex-direction: column;
	gap: 1px;
	line-height: 1.25;
}

.rts-phone__hint {
	font-size: 11px;
	font-weight: 400;
	opacity: 0.85;
}

.rts-phone.is-revealed .rts-phone__hint {
	display: none;
}

/* ------------------------------------------------------------- Пустой список */

.rts-empty {
	padding: 48px 20px;
	margin-bottom: 32px;
	background: var(--rts-bg-soft);
	border: 1px dashed var(--rts-line);
	border-radius: var(--rts-radius);
	text-align: center;
	color: var(--rts-muted);
}

.rts-empty i {
	font-size: 40px;
	color: var(--rts-accent);
	opacity: 0.4;
}

.rts-empty p {
	margin: 10px 0 18px;
	font-size: 16px;
}

/* ------------------------------------------------------------- Пагинация */

.rts-pagination {
	margin: 0 0 44px;
}

.rts-pagination__list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rts-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: 8px;
	color: var(--rts-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.16s ease;
}

.rts-pagination .page-numbers:hover,
.rts-pagination .page-numbers.current {
	background: var(--rts-accent);
	border-color: var(--rts-accent);
	color: #fff;
}

.rts-pagination .page-numbers.dots {
	border-color: transparent;
	background: none;
}

/* -------------------------------------------------------- Таблица цен, FAQ */

.rts-prices,
.rts-faq,
.rts-cities,
.rts-related,
.rts-how,
.rts-top,
.rts-seo-text {
	margin-bottom: 44px;
}

.rts-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

.rts-price-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
}

.rts-price-table th,
.rts-price-table td {
	padding: 12px 14px;
	border: 1px solid var(--rts-line);
	text-align: left;
	vertical-align: middle;
}

.rts-price-table thead th {
	background: var(--rts-bg-soft);
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	color: var(--rts-muted);
}

.rts-price-table tbody th {
	font-weight: 500;
}

.rts-price-table tbody td:nth-child(2) {
	font-weight: 700;
	white-space: nowrap;
}

.rts-price-table tbody td:last-child {
	color: var(--rts-muted);
	white-space: nowrap;
}

.rts-faq__list {
	border-top: 1px solid var(--rts-line);
}

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

.rts-faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 0;
	font-family: inherit;
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.4;
	cursor: pointer;
	list-style: none;
}

.rts-faq__q::-webkit-details-marker {
	display: none;
}

.rts-faq__q:hover {
	color: var(--rts-accent);
}

.rts-faq__q i {
	flex: none;
	font-size: 22px;
	color: var(--rts-accent);
	transition: transform 0.2s ease;
}

.rts-faq__item[open] .rts-faq__q i {
	transform: rotate(180deg);
}

.rts-faq__a {
	padding: 0 0 18px;
	color: var(--rts-muted);
	font-size: 15px;
	line-height: 1.7;
}

.rts-faq__a p {
	margin: 0;
}

.rts-tag-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* ------------------------------------------------------------ Как работает */

.rts-steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.rts-step {
	padding: 22px 20px;
	background: var(--rts-bg-soft);
	border-radius: var(--rts-radius);
}

.rts-step__num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	margin-bottom: 12px;
	background: var(--rts-accent);
	border-radius: 50%;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 800;
}

.rts-step__title {
	margin: 0 0 6px;
	font-size: 17px;
	font-weight: 700;
}

.rts-step p {
	margin: 0;
	color: var(--rts-muted);
	font-size: 14.5px;
	line-height: 1.6;
}

/* -------------------------------------------------------------- SEO-текст */

.rts-seo-text p {
	max-width: 860px;
	margin: 0 0 14px;
	color: var(--rts-muted);
	font-size: 15.5px;
	line-height: 1.75;
}

.rts-seo-text strong {
	color: var(--rts-ink);
}

/* ------------------------------------------------------- Страница центра */

.rts-center__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding-bottom: 22px;
	margin-bottom: 26px;
	border-bottom: 1px solid var(--rts-line);
}

.rts-center__title {
	margin: 0 0 10px;
	font-size: clamp(24px, 3.6vw, 36px);
	font-weight: 800;
	line-height: 1.2;
}

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

.rts-center__devices a {
	color: var(--rts-accent);
	text-decoration: underline;
}

.rts-center__rating {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 4px;
	padding: 14px 18px;
	background: var(--rts-bg-soft);
	border-radius: var(--rts-radius);
}

.rts-center__rating-value {
	font-family: inherit;
	font-size: 32px;
	font-weight: 800;
	line-height: 1;
}

.rts-center__rating-count {
	color: var(--rts-muted);
	font-size: 13px;
}

.rts-center__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 36px;
	align-items: start;
}

.rts-center__main > section {
	margin-bottom: 38px;
}

.rts-center__photo {
	margin: 0 0 30px;
}

.rts-center__photo img {
	width: 100%;
	height: auto;
	border-radius: var(--rts-radius);
}

.rts-center__text {
	color: var(--rts-muted);
	font-size: 15.5px;
	line-height: 1.75;
}

.rts-feature-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rts-feature-grid__item {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 14px;
	background: var(--rts-bg-soft);
	border-radius: 8px;
	font-size: 14.5px;
}

.rts-feature-grid__item i {
	font-size: 19px;
	color: var(--rts-accent);
}

.rts-note {
	margin: 12px 0 0;
	color: var(--rts-muted);
	font-size: 13px;
	font-style: italic;
}

/* Сайдбар */

.rts-sticky {
	position: sticky;
	top: 90px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.rts-panel {
	padding: 20px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: var(--rts-radius);
	box-shadow: var(--rts-shadow);
}

.rts-panel__title {
	margin: 0 0 16px;
	font-size: 17px;
	font-weight: 800;
}

.rts-panel__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.rts-panel__list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.5;
}

.rts-panel__list i {
	flex: none;
	margin-top: 2px;
	font-size: 18px;
	color: var(--rts-accent);
}

.rts-panel__list div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.rts-panel__label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--rts-muted);
}

.rts-panel__sub {
	color: var(--rts-muted);
	font-size: 13px;
}

.rts-panel__actions {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.rts-panel__legal {
	margin: 16px 0 0;
	padding-top: 14px;
	border-top: 1px solid var(--rts-line);
	color: var(--rts-muted);
	font-size: 12.5px;
}

.rts-hours {
	width: 100%;
	border-collapse: collapse;
	font-size: 14.5px;
}

.rts-hours th,
.rts-hours td {
	padding: 7px 0;
	border: 0;
	text-align: left;
	font-weight: 400;
}

.rts-hours th {
	color: var(--rts-muted);
	width: 46px;
}

.rts-hours td {
	text-align: right;
}

.rts-hours tr.is-today th,
.rts-hours tr.is-today td {
	color: var(--rts-accent);
	font-weight: 700;
}

.rts-dayoff {
	color: var(--rts-muted);
	opacity: 0.7;
}

/* Форма оценки в отзывах */

.rts-rating-field {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.rts-rating-field__label {
	font-weight: 600;
}

.rts-rating-input {
	display: inline-flex;
	flex-direction: row-reverse;
	gap: 3px;
}

.rts-rating-input input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.rts-rating-input label {
	width: 26px;
	height: 26px;
	background: var(--rts-line);
	cursor: pointer;
	-webkit-mask: var(--rts-star-shape) center / contain no-repeat;
	mask: var(--rts-star-shape) center / contain no-repeat;
	--rts-star-shape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
	transition: background 0.14s ease;
}

.rts-rating-input label:hover,
.rts-rating-input label:hover ~ label,
.rts-rating-input input:checked ~ label {
	background: var(--rts-star);
}

.rts-rating-input input:focus-visible + label {
	outline: 2px solid var(--rts-accent);
	outline-offset: 2px;
}

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

@media (max-width: 1024px) {
	.rts-center__grid {
		grid-template-columns: 1fr;
	}

	.rts-sticky {
		position: static;
	}
}

@media (max-width: 860px) {
	.rts-card {
		grid-template-columns: 120px 1fr;
	}

	.rts-card__actions {
		grid-column: 1 / -1;
		flex-direction: row;
		flex-wrap: wrap;
	}

	.rts-card__actions .rts-btn {
		flex: 1 1 150px;
	}

	.rts-filters-toggle {
		display: inline-flex;
	}

	.rts-filters {
		display: none;
	}

	.rts-filters.is-open {
		display: grid;
	}
}

@media (max-width: 560px) {
	.rts-hero {
		padding: 26px 20px;
	}

	.rts-hero__stats {
		gap: 14px 26px;
	}

	.rts-card {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.rts-card__media {
		flex-direction: row;
		align-items: center;
		gap: 14px;
	}

	.rts-card__logo {
		width: 84px;
		flex: none;
		aspect-ratio: 1;
	}

	.rts-card__rating {
		flex: 1;
	}

	.rts-center__head {
		flex-direction: column;
	}

	.rts-center__rating {
		align-items: flex-start;
		width: 100%;
	}

	.rts-device-grid {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
}

/* Подпись о происхождении рейтингов */

.rts-source-note {
	margin: -18px 0 26px;
	color: var(--rts-muted);
	font-size: 12.5px;
	font-style: italic;
}

/* ------------------------------------------------------------ Форма заявки */

.rts-modal[hidden] {
	display: none !important;
}

.rts-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.rts-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
}

.rts-modal__box {
	position: relative;
	width: 100%;
	max-width: 460px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 28px 26px;
	background: var(--rts-bg, #fff);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.rts-modal__close {
	position: absolute;
	top: 10px;
	right: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	background: none;
	border: 0;
	border-radius: 50%;
	color: var(--rts-muted, #6b6b6b);
	font-size: 24px;
	cursor: pointer;
}

.rts-modal__close:hover {
	background: var(--rts-bg-soft, #f7f7f8);
	color: var(--rts-accent, #2f5bea);
}

.rts-modal__title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 800;
}

.rts-modal__lead {
	margin: 0 0 20px;
	color: var(--rts-muted, #6b6b6b);
	font-size: 14.5px;
	line-height: 1.55;
}

.rts-field {
	margin: 0 0 14px;
}

.rts-field label {
	display: block;
	margin-bottom: 5px;
	font-size: 13px;
	font-weight: 600;
}

.rts-field input,
.rts-field select,
.rts-field textarea {
	width: 100%;
	padding: 11px 13px;
	background: var(--rts-bg, #fff);
	border: 1px solid var(--rts-line, #e6e6e6);
	border-radius: 8px;
	color: var(--rts-ink, #212121);
	font-family: inherit;
	font-size: 15px;
}

.rts-field input:focus,
.rts-field select:focus,
.rts-field textarea:focus {
	border-color: var(--rts-accent, #2f5bea);
	outline: 2px solid rgba(47, 91, 234, 0.15);
	outline-offset: 0;
}

.rts-req {
	color: var(--rts-accent, #2f5bea);
}

.rts-honeypot {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.rts-form-note {
	margin: 10px 0 0;
	color: var(--rts-muted, #6b6b6b);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.rts-form-result {
	margin: 12px 0 0;
	padding: 0;
	font-size: 14px;
	text-align: center;
}

.rts-form-result.is-ok {
	padding: 10px 12px;
	background: rgba(30, 142, 75, 0.1);
	border-radius: 8px;
	color: var(--rts-green, #1e8e4b);
}

.rts-form-result.is-error {
	padding: 10px 12px;
	background: rgba(179, 38, 30, 0.1);
	border-radius: 8px;
	color: #b3261e;
}

/* ------------------------------------------- Выбор производителя и района */

.rts-picker {
	margin: 0 0 26px;
	padding: 24px 22px;
	background: var(--rts-bg-soft);
	border-radius: var(--rts-radius);
}

.rts-picker__title {
	margin: 0 0 18px;
	font-size: clamp(19px, 2.4vw, 26px);
	font-weight: 700;
	text-align: center;
}

.rts-picker__brands {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 10px;
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.rts-picker__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 8px 10px;
	background: #5f6670;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: background 0.16s ease;
}

.rts-picker__brand:hover,
.rts-picker__brand.is-active {
	background: var(--rts-accent);
}

.rts-picker__selects {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 12px;
}

.rts-picker__select {
	width: 100%;
	max-width: none;
	padding: 12px 14px;
	font-size: 14px;
	text-transform: uppercase;
}

/* --------------------------------------------------------- Специализация */

.rts-special {
	display: inline-block;
	margin: 10px 0 0;
	padding: 6px 12px;
	background: var(--rts-bg-soft);
	border: 1px solid var(--rts-line);
	border-radius: 6px;
	color: var(--rts-ink);
	font-size: 13.5px;
	line-height: 1.45;
}

.rts-card__body .rts-special {
	margin: 0 0 10px;
}

/* ------------------------------------------------ Шапка карточки центра */

.rts-center__head-main {
	flex: 1 1 420px;
	min-width: 0;
}

.rts-center__head-side {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
}

.rts-center__contact {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 2px;
}

.rts-center__phone {
	color: var(--rts-accent) !important;
	font-family: inherit;
	font-size: 22px;
	font-weight: 800;
	text-decoration: none;
	white-space: nowrap;
}

.rts-center__phone-note {
	color: #d11a1a;
	font-size: 12px;
}

a.rts-center__rating {
	text-decoration: none;
}

.rts-address {
	margin: 0 0 12px;
}

.rts-address__summary {
	display: inline;
	color: var(--rts-accent);
	font-size: 15px;
	line-height: 1.5;
	cursor: pointer;
	list-style: none;
}

.rts-address__summary::-webkit-details-marker {
	display: none;
}

.rts-address__arrow {
	margin-left: 4px;
	font-size: 10px;
	vertical-align: middle;
	transition: transform 0.16s ease;
}

.rts-address[open] .rts-address__arrow {
	transform: rotate(180deg);
}

.rts-address__drop {
	display: inline-flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	padding: 12px 16px;
	background: var(--rts-bg);
	border: 1px solid var(--rts-line);
	border-radius: 8px;
	box-shadow: var(--rts-shadow);
	font-size: 14px;
}

.rts-address__drop p {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
}

.rts-address__drop i {
	color: var(--rts-accent);
	font-size: 16px;
}

.rts-address__drop a {
	color: var(--rts-accent);
	text-decoration: underline;
}

/* ---------------------------------------------- Меню и кнопки карточки */

.rts-panel--nav {
	padding: 6px 0;
}

.rts-center-nav {
	margin: 0;
	padding: 0;
	list-style: none;
}

.rts-center-nav a {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 20px;
	color: var(--rts-ink);
	font-size: 15px;
	text-decoration: none;
	transition: background 0.14s ease, color 0.14s ease;
}

.rts-center-nav a:hover {
	background: var(--rts-bg-soft);
	color: var(--rts-accent);
}

.rts-center-nav i {
	color: var(--rts-accent);
	font-size: 20px;
}

.rts-center-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

.rts-center-actions .rts-btn {
	padding: 10px 8px;
	font-size: 13.5px;
}

.rts-center-actions__wide {
	grid-column: 1 / -1;
}

/* ------------------------------------------------------------- Отзывы */

.rts-reviews {
	margin: 0 0 18px;
	padding: 0;
	list-style: none;
}

.rts-review {
	padding: 16px 0;
	border-bottom: 1px solid var(--rts-line);
}

.rts-review[hidden] {
	display: none;
}

.rts-review__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin-bottom: 8px;
}

.rts-review__author {
	font-weight: 700;
}

.rts-review__date {
	margin-left: auto;
	color: var(--rts-muted);
	font-size: 13px;
}

.rts-review__text {
	font-size: 15px;
	line-height: 1.65;
}

.rts-review__text p {
	margin: 0 0 8px;
}

.rts-review__reply {
	margin: 10px 0 0 18px;
	padding: 10px 14px;
	background: var(--rts-bg-soft);
	border-left: 3px solid var(--rts-accent);
	border-radius: 0 8px 8px 0;
}

.rts-review__reply .rts-review__author {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
}

.rts-reviews__empty {
	color: var(--rts-muted);
}

.rts-review-form {
	max-width: 640px;
	margin-top: 24px;
	padding: 22px 22px 16px;
	background: var(--rts-bg-soft);
	border-radius: var(--rts-radius);
	scroll-margin-top: 100px;
}

.rts-review-form__title {
	margin: 0 0 16px;
	font-size: 21px;
	font-weight: 700;
}

.rts-review-form .rts-field label {
	font-size: 14px;
	font-weight: 500;
}

.rts-field__hint {
	display: block;
	margin-top: 4px;
	color: var(--rts-muted);
	font-size: 12.5px;
	line-height: 1.4;
}

.rts-review-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.rts-captcha input {
	max-width: 140px;
}

.rts-review-form .rts-form-note {
	text-align: left;
}

.rts-review-form .rts-form-result {
	text-align: left;
}

.rts-center__main > section {
	scroll-margin-top: 100px;
}

@media (max-width: 1024px) {
	.rts-center__side .rts-panel--nav {
		display: none;
	}
}

@media (max-width: 560px) {
	.rts-center__head-side,
	.rts-center__contact {
		align-items: flex-start;
		width: 100%;
	}

	.rts-review-form__row {
		grid-template-columns: 1fr;
	}

	.rts-picker {
		padding: 18px 14px;
	}

	.rts-picker__brands {
		grid-template-columns: repeat(2, 1fr);
	}
}
