* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

.container {
	height: auto !important;
	min-height: 100dvh;
}

/* ШАПКА (как на странице новостей) */
.zap-head {
	width: 100%;
	height: 91px;
	border: 1px solid #3c3c3c;
	background-color: transparent;
	display: flex;
	align-items: center;
	gap: 69px;
}

.back {
	width: 91px;
	height: 91px;
	border: 1px solid #3c3c3c;
	background-color: #161616;
	cursor: pointer;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.4s ease;
}

.back:hover {
	background-color: #202020;
}

.back img {
	transform: rotate(90deg);
}

.zap-name p {
	margin: 0;
	color: white;
	font-family: "Vetrino";
	font-size: 48px;
	font-weight: 400;
}

@media (max-width: 440px) {
	.zap-head {
		gap: 24px;
	}
	.zap-name p {
		font-size: 30px;
	}
}

/* ОСНОВНОЙ БЛОК */
.zap-body {
	display: flex;
	flex-wrap: wrap;
	border-left: 1px solid #3c3c3c;
	border-right: 1px solid #3c3c3c;
}

.zap-left {
	flex: 1 1 720px;
	min-width: 0;
	border-right: 1px solid #3c3c3c;
	padding: 40px;
}

.zap-right {
	flex: 1 1 480px;
	min-width: 0;
	padding: 40px;
}

@media (max-width: 980px) {
	.zap-left {
		border-right: none;
		border-bottom: 1px solid #3c3c3c;
		flex-basis: 100%;
	}
	.zap-right {
		flex-basis: 100%;
	}
}

@media (max-width: 440px) {
	.zap-left,
	.zap-right {
		padding: 26px 18px;
	}
}

/* Окно шага */
.panel {
	background-color: #161616;
	border: 1px solid #2f2f2f;
	border-radius: 14px;
	padding: 22px;
}

.panel-head {
	padding-bottom: 18px;
	margin-bottom: 20px;
	border-bottom: 1px solid #2f2f2f;
}

.step-title {
	color: white;
	font-family: "Vetrino";
	font-size: 26px;
	font-weight: 400;
	margin-bottom: 6px;
}

.step-sub {
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 400;
}

.step + .step {
	margin-top: 22px;
}

/* ВЫБОР ТИПА КОНСУЛЬТАЦИИ */
.type-row {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
	align-items: stretch;
}

.type-card {
	flex: 1 1 0;
	min-width: 200px;
	display: flex;
	flex-direction: column;
	background-color: #1c1c1c;
	border: 1px solid #2f2f2f;
	border-radius: 12px;
	padding: 20px;
	cursor: pointer;
	transition:
		border 0.4s ease,
		background-color 0.4s ease;
}

@media (max-width: 560px) {
	.type-row {
		flex-direction: column;
	}
	.type-card,
	.sum-card .type-card {
		min-width: 0;
		width: 100%;
	}
}

.type-card:hover {
	border: 1px solid #6c6c6c;
}

.type-card.active {
	border: 1px solid white;
	background-color: #282828;
}

.type-card h3 {
	display: flex;
	align-items: center;
	gap: 9px;
	color: white;
	font-family: "SF Pro Display";
	font-size: 18px;
	font-weight: 500;
	margin-bottom: 8px;
}

.type-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}

.type-card p {
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
}

.type-card .price-tag {
	display: block;
	margin-top: auto;
	padding-top: 14px;
	color: white;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 600;
}

/* КАЛЕНДАРЬ */
.cal {
	background-color: transparent;
}

.cal-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 18px;
}

.cal-month {
	color: white;
	font-family: "SF Pro Display";
	font-size: 18px;
	font-weight: 500;
	text-transform: capitalize;
}

.cal-nav {
	width: 38px;
	height: 38px;
	border: 1px solid #2f2f2f;
	border-radius: 8px;
	background-color: #202020;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		border 0.4s ease,
		opacity 0.3s ease;
}

.cal-nav:hover {
	border: 1px solid white;
}

.cal-nav:disabled {
	opacity: 0.3;
	cursor: default;
	border: 1px solid #2f2f2f;
}

.cal-nav img {
	width: 16px;
}

.cal-nav.prev img {
	transform: rotate(90deg);
}

.cal-nav.next img {
	transform: rotate(-90deg);
}

.cal-weekdays,
.cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
}

.cal-weekdays {
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #2a2a2a;
}

.cal-weekdays span {
	text-align: center;
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 13px;
	font-weight: 500;
	padding: 2px 0;
	text-transform: uppercase;
}

.cal-day {
	position: relative;
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 8px;
	background-color: #1c1c1c;
	color: #cfcfcf;
	font-family: "SF Pro Display";
	font-size: 15px;
	font-weight: 400;
	cursor: pointer;
	border: 1px solid #2a2a2a;
	transition:
		background-color 0.25s ease,
		border 0.25s ease,
		color 0.25s ease;
}

.cal-day:hover {
	background-color: #242424;
	border: 1px solid #6c6c6c;
}

.cal-day.empty {
	cursor: default;
	background-color: transparent;
	border: 1px solid transparent;
}

.cal-day.disabled {
	color: #3c3c3c;
	cursor: default;
	background-color: #161616;
	border: 1px solid #222222;
}

.cal-day.disabled:hover {
	background-color: #161616;
	border: 1px solid #222222;
}

/* Выходные (сб/вс) — красные и некликабельные */
.cal-day.weekend {
	background-color: #261919;
	border: 1px solid #3a2525;
	color: #c08080;
	cursor: default;
}

.cal-day.weekend:hover {
	background-color: #261919;
	border: 1px solid #3a2525;
}

.cal-day.selected {
	background-color: white;
	color: black;
	font-weight: 600;
	border: 1px solid white;
}

.cal-day.selected:hover {
	background-color: white;
	border: 1px solid white;
}

/* День с заседанием — точка-маркер */
.cal-day.has-hearing {
	border-color: #4a3030;
}

.hday-dot {
	position: absolute;
	bottom: 5px;
	left: 50%;
	transform: translateX(-50%);
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background-color: #e05656;
	pointer-events: none;
}

.cal-day.selected .hday-dot {
	background-color: #b03030;
}

/* ВРЕМЯ */
.time-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
	gap: 12px;
}

.time-slot {
	height: 44px;
	background-color: #202020;
	border: 1px solid #2f2f2f;
	border-radius: 8px;
	color: #cfcfcf;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 400;
	cursor: pointer;
	transition:
		background-color 0.3s ease,
		border 0.3s ease,
		color 0.3s ease;
}

.time-slot:hover {
	border: 1px solid #6c6c6c;
}

.time-slot.selected {
	background-color: white;
	color: black;
	font-weight: 600;
	border: 1px solid white;
}

.time-slot.taken {
	color: #3c3c3c;
	background-color: #131313;
	border: 1px solid #242424;
	cursor: default;
	text-decoration: line-through;
}

.time-slot.taken:hover {
	border: 1px solid #242424;
}

.time-slot.taken.hearing {
	color: #7a4a4a;
	background-color: #1f1414;
	border: 1px solid #3a2424;
}

.time-slot.taken.hearing:hover {
	border: 1px solid #3a2424;
}

/* Плашка с заседанием над сеткой времени */
.hearing-note {
	grid-column: 1 / -1;
	display: flex;
	align-items: center;
	gap: 10px;
	background-color: #1f1414;
	border: 1px solid #3a2424;
	border-radius: 8px;
	padding: 12px 14px;
	color: #d49a9a;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 400;
	line-height: 1.5;
}

.hearing-note::before {
	content: "";
	flex-shrink: 0;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: #e05656;
}

.hearing-note b {
	color: #eebcbc;
	font-weight: 600;
}

.time-empty {
	grid-column: 1 / -1;
	color: #5a5a5a;
	font-family: "SF Pro Display";
	font-size: 15px;
	font-weight: 400;
	text-align: center;
	padding: 22px 0;
}

/* ФОРМА / ИТОГ (правая колонка) */
.sum-card {
	background-color: #161616;
	border: 1px solid #2f2f2f;
	border-radius: 12px;
	padding: 28px;
	position: sticky;
	top: 24px;
}

.sum-title {
	color: white;
	font-family: "Vetrino";
	font-size: 26px;
	font-weight: 400;
	padding-bottom: 18px;
	margin-bottom: 22px;
	border-bottom: 1px solid #2f2f2f;
}

/* Блок выбора формата внутри карточки записи */
.fmt-block {
	margin-bottom: 22px;
}

.fmt-label {
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 400;
	margin-bottom: 12px;
}

.sum-card .type-card {
	padding: 16px;
	min-width: 140px;
}

.sum-card .type-card h3 {
	font-size: 17px;
	margin-bottom: 6px;
}

.sum-card .type-card .price-tag {
	margin-top: 12px;
}

.sum-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid #2f2f2f;
}

.sum-row .label {
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 15px;
	font-weight: 400;
	flex-shrink: 0;
}

.sum-row .value {
	color: white;
	font-family: "SF Pro Display";
	font-size: 15px;
	font-weight: 500;
	text-align: right;
}

.sum-row .value.empty {
	color: #4c4c4c;
	font-weight: 400;
}

.field {
	margin-top: 16px;
}

.field label {
	display: block;
	color: #6c6c6c;
	font-family: "SF Pro Display";
	font-size: 14px;
	font-weight: 400;
	margin-bottom: 8px;
}

.field input,
.field textarea {
	width: 100%;
	height: 46px;
	background-color: #111111;
	border: 1px solid #2f2f2f;
	border-radius: 8px;
	color: white;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 400;
	padding: 0 14px;
	outline: none;
	transition: border 0.3s ease;
}

.field textarea {
	height: auto;
	min-height: 92px;
	padding: 12px 14px;
	resize: vertical;
	line-height: 1.45;
}

.field input::placeholder,
.field textarea::placeholder {
	color: #4c4c4c;
}

.field input:focus,
.field textarea:focus {
	border: 1px solid white;
}

/* Согласие на обработку данных */
.consent-row {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	margin-top: 22px;
	cursor: pointer;
}

/* Прячем нативный чекбокс, оставляя его доступным */
.consent-row input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}

/* Кастомная галочка */
.consent-box {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	margin-top: 1px;
	border-radius: 6px;
	background-color: #1c1c1c;
	border: 1.5px solid #3a3a3a;
	display: flex;
	align-items: center;
	justify-content: center;
	transition:
		background-color 0.25s ease,
		border-color 0.25s ease,
		box-shadow 0.25s ease;
}

.consent-row:hover .consent-box {
	border-color: #5a7fd6;
}

.consent-box svg {
	width: 14px;
	height: 14px;
	display: block;
}

.consent-box svg path {
	fill: none;
	stroke: #ffffff;
	stroke-width: 3;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 24;
	stroke-dashoffset: 24; /* спрятана */
	transition: stroke-dashoffset 0.3s ease 0.05s;
}

/* Отмечено: синий фон, белая галочка прорисовывается */
.consent-row input:checked + .consent-box {
	background-color: #2f80ed;
	border-color: #2f80ed;
	box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.18);
	animation: consent-pop 0.3s ease;
}

.consent-row input:checked + .consent-box svg path {
	stroke-dashoffset: 0;
}

/* Фокус с клавиатуры */
.consent-row input:focus-visible + .consent-box {
	border-color: #2f80ed;
	box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.25);
}

@keyframes consent-pop {
	0% {
		transform: scale(1);
	}
	40% {
		transform: scale(0.85);
	}
	100% {
		transform: scale(1);
	}
}

.consent-text {
	color: #8a8a8a;
	font-family: "SF Pro Display";
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
}

.consent-text a {
	color: #cfcfcf;
	text-decoration: underline;
	text-underline-offset: 2px;
	transition: color 0.4s ease;
}

.consent-text a:hover {
	color: white;
}

/* Итого к оплате */
.pay-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid #3a3a3a;
}

.pay-total .pt-label {
	color: #cfcfcf;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 500;
}

.pay-total .pt-value {
	color: #ffffff;
	font-family: "SF Pro Display";
	font-size: 24px;
	font-weight: 700;
	letter-spacing: 0.3px;
}

/* Кнопка «Оплатить и записаться» (красная, Альфа) */
.btn-pay-book {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 52px;
	margin-top: 22px;
	color: #ffffff;
	border: none;
	border-radius: 10px;
	background-color: #ef3124;
	font-family: "SF Pro Display";
	font-size: 17px;
	font-weight: 600;
	cursor: pointer;
	transition:
		background-color 0.3s ease,
		opacity 0.3s ease;
}

.btn-pay-book .alfa-ico {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

.btn-pay-book:hover {
	background-color: #d62619;
}

.btn-pay-book:disabled {
	opacity: 0.4;
	cursor: default;
	background-color: #ef3124;
}

.btn-send {
	width: 100%;
	height: 48px;
	margin-top: 24px;
	color: black;
	border: none;
	border-radius: 8px;
	background-color: white;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition:
		color 0.6s ease,
		border 0.6s ease,
		background-color 0.6s ease,
		opacity 0.3s ease;
}

.btn-send:hover {
	color: white;
	background-color: #202020;
	border: 0.5px solid white;
}

.btn-send:disabled {
	opacity: 0.35;
	cursor: default;
	color: black;
	background-color: white;
	border: none;
}

.send-hint {
	margin-top: 14px;
	color: #4c4c4c;
	font-family: "SF Pro Display";
	font-size: 13px;
	font-weight: 400;
	line-height: 1.5;
	text-align: center;
}

/* Успех */
.zap-done {
	display: none;
	background-color: #161616;
	border: 1px solid #2f2f2f;
	border-radius: 12px;
	padding: 28px;
	margin-top: 22px;
}

.zap-done.show {
	display: block;
}

.zap-done h3 {
	color: white;
	font-family: "SF Pro Display";
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 10px;
}

.zap-done p {
	color: #838383;
	font-family: "SF Pro Display";
	font-size: 15px;
	font-weight: 400;
	line-height: 1.6;
}

.btn-pay-link {
	width: 100%;
	height: 46px;
	margin-top: 18px;
	color: black;
	border: none;
	border-radius: 8px;
	background-color: white;
	font-family: "SF Pro Display";
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition:
		color 0.6s ease,
		border 0.6s ease,
		background-color 0.6s ease;
}

.btn-pay-link:hover {
	color: white;
	background-color: #202020;
	border: 0.5px solid white;
}
