/* ==========================================================================
   «Контакты», пятая версия (03.10.2026) — дополнения к contacts-v3.css.
   Оформление страницы — прежнее, по макету Амира (корень .ct3); здесь только
   новое: выбор темы обращения плашками, строка «как ответим» под текстом
   блока, ошибки полей, подсказка про прописку и ссылка «Условия рассрочки»
   в разделе рассрочки. Цвета — токены vars.css.
   ========================================================================== */

/* строка «как ответим» под текстом блока помощи */
.ct5-note {
	margin-top: 20px;
	font-size: 16px;
	line-height: 1.6;
	color: var(--gray);
}

.ct5-note a {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
}

.ct5-note a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* темы обращения — белые плашки, выбранная с фиолетовой рамкой */
.ct5-topics {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ct5-topic {
	position: relative;
	cursor: pointer;
}

.ct5-topic input {
	position: absolute;
	inset: 0;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ct5-topic span {
	display: inline-flex;
	align-items: center;
	height: 44px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 14px;
	background: var(--white);
	font-size: 15px;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.ct5-topic:hover span {
	border-color: color-mix(in srgb, var(--accent) 35%, transparent);
}

.ct5-topic input:checked + span {
	border-color: var(--accent);
	color: var(--accent);
	font-weight: 600;
}

.ct5-topic input:focus-visible + span {
	outline: 2px solid color-mix(in srgb, var(--accent) 40%, transparent);
	outline-offset: 2px;
}

.ct5-gap {
	margin-top: 18px;
}

.ct5-err {
	display: block;
	margin-top: 8px;
	font-size: 14px;
	color: var(--badge-red);
}

/* раздел рассрочки */
.ct5-terms {
	color: var(--accent);
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ct5-terms:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ct5-hint {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.4;
	color: var(--gray);
}

.ct5-hint svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

@media (max-width: 768px) {
	.ct5-note {
		margin-top: 12px;
		font-size: 14px;
	}

	.ct5-topic span {
		height: 40px;
		padding: 0 14px;
		font-size: 14px;
	}

	.ct5-hint {
		align-items: flex-start;
		font-size: 14px;
	}

	.ct5-hint svg {
		width: 16px;
		height: 16px;
		margin-top: 2px;
	}
}
