/* Схема молочных зубов (заказ-наряд №4)
   Процентные координаты привязаны к пропорциям картинки 2200×648 */

.tooth-schema.tooth-schema_milk,
.tooth-schema_milk {
	position: relative !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0 0 1.25rem !important;
	padding: 0 !important;
	/* жёстко держим пропорции PNG — оверлей не «уедет» при адаптиве */
	aspect-ratio: 2200 / 648;
	line-height: 0;
	overflow: visible;
	box-sizing: border-box !important;
}

.tooth-schema_milk .tooth__image {
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	object-fit: fill !important;
	display: block !important;
	pointer-events: none;
	user-select: none;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

.tooth-schema_milk .tooth-checkboxes {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.tooth-schema_milk .tooth {
	position: absolute;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	z-index: 2;
	/* зона клика масштабируется с шириной схемы */
	width: clamp(0.95rem, 2.6%, 1.35rem);
	height: clamp(0.95rem, 2.6%, 1.35rem);
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

.tooth-schema_milk .tooth__checkbox {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	pointer-events: none;
	margin: 0;
}

.tooth-schema_milk .tooth__mark {
	display: block;
	width: 100%;
	height: 100%;
	cursor: pointer;
	border-radius: 50%;
	position: relative;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* Точка выбора — 0.6rem, центр всегда в % позиции зуба */
.tooth-schema_milk .tooth__mark::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0.6rem;
	height: 0.6rem;
	margin: -0.3rem 0 0 -0.3rem;
	border-radius: 50%;
	background: transparent;
	border: 1.5px solid transparent;
	box-sizing: border-box;
	transition: background 0.15s ease, border-color 0.15s ease;
	pointer-events: none;
}

.tooth-schema_milk .tooth:hover .tooth__mark::before {
	border-color: rgba(19, 171, 176, 0.7);
	background: rgba(19, 171, 176, 0.25);
}

.tooth-schema_milk .tooth__checkbox:checked + .tooth__mark::before {
	background: #13abb0;
	border-color: #0e8e92;
}

/* Координаты — % от блока схемы (= от картинки) */
.tooth-schema_milk .tooth:nth-child(1)  { top: 66%; left: 14%; }     /* 55 */
.tooth-schema_milk .tooth:nth-child(2)  { top: 51%; left: 15.8%; }   /* 54 */
.tooth-schema_milk .tooth:nth-child(3)  { top: 40%; left: 17.8%; }   /* 53 */
.tooth-schema_milk .tooth:nth-child(4)  { top: 33%; left: 19.8%; }   /* 52 */
.tooth-schema_milk .tooth:nth-child(5)  { top: 30.5%; left: 23%; }   /* 51 */
.tooth-schema_milk .tooth:nth-child(6)  { top: 30.5%; left: 26.8%; } /* 61 */
.tooth-schema_milk .tooth:nth-child(7)  { top: 33%; left: 30%; }     /* 62 */
.tooth-schema_milk .tooth:nth-child(8)  { top: 40%; left: 32.2%; }   /* 63 */
.tooth-schema_milk .tooth:nth-child(9)  { top: 51%; left: 34.2%; }   /* 64 */
.tooth-schema_milk .tooth:nth-child(10) { top: 66%; left: 36%; }     /* 65 */

.tooth-schema_milk .tooth:nth-child(11) { top: 34%; left: 58.8%; }   /* 85 */
.tooth-schema_milk .tooth:nth-child(12) { top: 48.5%; left: 60.5%; } /* 84 */
.tooth-schema_milk .tooth:nth-child(13) { top: 57.5%; left: 63.5%; } /* 83 */
.tooth-schema_milk .tooth:nth-child(14) { top: 63%; left: 66%; }     /* 82 */
.tooth-schema_milk .tooth:nth-child(15) { top: 66.5%; left: 69%; }   /* 81 */
.tooth-schema_milk .tooth:nth-child(16) { top: 66.5%; left: 71.5%; } /* 71 */
.tooth-schema_milk .tooth:nth-child(17) { top: 63%; left: 74.5%; }   /* 72 */
.tooth-schema_milk .tooth:nth-child(18) { top: 57.5%; left: 77%; }   /* 73 */
.tooth-schema_milk .tooth:nth-child(19) { top: 48.5%; left: 80%; }   /* 74 */
.tooth-schema_milk .tooth:nth-child(20) { top: 34%; left: 81.8%; }   /* 75 */

/* Планшет: чуть шире колонки */
@media (min-width: 768px) and (max-width: 991px) {
	.tooth-schema.tooth-schema_milk,
	.tooth-schema_milk {
		width: calc(100% + 64px) !important;
		max-width: none !important;
		margin-left: -32px !important;
		margin-right: -32px !important;
	}
}

/* Десктоп: схема шире колонки формы */
@media (min-width: 992px) {
	.tooth-schema.tooth-schema_milk,
	.tooth-schema_milk {
		width: calc(100% + 220px) !important;
		max-width: 1180px !important;
		margin-left: -110px !important;
		margin-right: -110px !important;
	}
}

/* На очень узких экранах не раздуваем в стороны */
@media (max-width: 767px) {
	.tooth-schema.tooth-schema_milk,
	.tooth-schema_milk {
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
	}
}
