/* DHQ-122: поп-ап записи на звонок.
   Блоки идут как в макете: hero, два списка, кто проведёт звонок, шаги с календарём, нижняя строка.
   Окно уже макета, поэтому содержимое прокручивается внутри него. */

.dhq-book-open {
	overflow: hidden;
}

.dhq-book {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(6, 3, 141, 0.6);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	font-family: Onest, sans-serif;
	animation: dhq-book-fade 0.2s ease-out;
}

.dhq-book[hidden] {
	display: none;
}

.dhq-book__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 760px;
	max-height: 100%;
	border-radius: 24px;
	background: #fff;
	box-shadow: 0 24px 64px rgba(6, 3, 141, 0.35);
	color: #212529;
	outline: none;
	animation: dhq-book-rise 0.25s ease-out;
}

/* Прокрутка внутри отдельного блока: полоса не вылезает за скруглённые углы окна. */
.dhq-book__scroll {
	flex: 0 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	border-radius: inherit;
}

.dhq-book__scroll::-webkit-scrollbar {
	width: 10px;
}

.dhq-book__scroll::-webkit-scrollbar-track {
	margin: 16px 0;
	background: transparent;
}

.dhq-book__scroll::-webkit-scrollbar-thumb {
	border: 3px solid transparent;
	border-radius: 10px;
	background: #b0bfd0;
	background-clip: padding-box;
}

.dhq-book__scroll::-webkit-scrollbar-thumb:hover {
	background: #2965ff;
	background-clip: padding-box;
}

@supports not selector(::-webkit-scrollbar) {
	.dhq-book__scroll {
		scrollbar-width: thin;
		scrollbar-color: #b0bfd0 transparent;
	}
}

@keyframes dhq-book-fade {
	from {
		opacity: 0;
	}
}

@keyframes dhq-book-rise {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.dhq-book,
	.dhq-book__dialog {
		animation: none;
	}
}

.dhq-book__dialog p,
.dhq-book__dialog ul,
.dhq-book__dialog ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Крестик рядом с окном: внутри он перекрывал бы текст и ленту Calendly. */
.dhq-book__close {
	position: absolute;
	top: 0;
	left: 100%;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-left: 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 4px 16px rgba(6, 3, 141, 0.25);
	color: #06038d;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.dhq-book__close:hover {
	background: #2965ff;
	color: #fff;
	transform: rotate(90deg);
}

.dhq-book__close:focus-visible {
	outline: 2px solid #2965ff;
	outline-offset: 2px;
}

/* Сбоку от окна места нет, поэтому крестик уходит в его угол. */
@media (max-width: 880px) {
	.dhq-book__close {
		top: 12px;
		right: 12px;
		left: auto;
		margin-left: 0;
	}
}

.dhq-book__eyebrow {
	margin-bottom: 8px !important;
	font-size: 12px;
	font-weight: 600;
	line-height: 16px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #2965ff;
}

.dhq-book__heading {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 500;
	line-height: 28px;
	color: #06038d;
}

/* Hero */
.dhq-book__hero {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 210px;
	gap: 32px;
	align-items: center;
	padding: 32px;
	border-bottom: 1px solid #dfe2e8;
	background: #f4f5f7;
}

.dhq-book__title {
	margin: 0 0 12px;
	font-size: 34px;
	font-weight: 500;
	line-height: 1.15;
	color: #06038d;
}

.dhq-book__lead {
	margin-bottom: 20px !important;
	font-size: 16px;
	line-height: 24px;
	color: #495057;
}

.dhq-book__cta {
	padding: 12px 24px;
	border: 0;
	border-radius: 2.5em;
	background: #2965ff;
	font-size: 16px;
	line-height: 1.2;
	color: #fff;
	cursor: pointer;
	transition: background-color 0.3s;
}

.dhq-book__cta:hover {
	background: #06038d;
}

.dhq-book__facts {
	border-top: 1px solid #dfe2e8 !important;
}

.dhq-book__facts li {
	padding: 12px 0;
	border-bottom: 1px solid #dfe2e8;
	font-size: 14px;
	font-weight: 500;
	line-height: 20px;
	text-align: right;
}

/* Два списка */
.dhq-book__columns {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 32px;
	padding: 32px;
	border-bottom: 1px solid #dfe2e8;
}

.dhq-book__numbers,
.dhq-book__checks {
	border-top: 1px solid #dfe2e8 !important;
	counter-reset: dhq-number;
}

.dhq-book__numbers li,
.dhq-book__checks li {
	position: relative;
	padding: 12px 0 12px 32px;
	border-bottom: 1px solid #dfe2e8;
	font-size: 14px;
	line-height: 20px;
}

.dhq-book__numbers li {
	counter-increment: dhq-number;
}

.dhq-book__numbers li::before {
	content: counter(dhq-number, decimal-leading-zero);
	position: absolute;
	top: 12px;
	left: 0;
	font-weight: 600;
	color: #2965ff;
}

.dhq-book__numbers strong {
	font-weight: 600;
}

.dhq-book__checks li::before {
	content: "";
	position: absolute;
	top: 17px;
	left: 3px;
	width: 11px;
	height: 6px;
	border-bottom: 1.5px solid #2965ff;
	border-left: 1.5px solid #2965ff;
	transform: rotate(-45deg);
}

.dhq-book__note {
	margin-top: 12px !important;
	font-size: 14px;
	line-height: 20px;
	color: #495057;
}

/* Кто проведёт звонок */
.dhq-book__person {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 32px;
	border-bottom: 1px solid #dfe2e8;
}

.dhq-book__person img {
	flex: none;
	width: 150px;
	height: 170px;
	border-radius: 24px;
	object-fit: cover;
}

.dhq-book__name {
	margin: 0;
	font-size: 26px;
	font-weight: 500;
	line-height: 32px;
	color: #06038d;
}

.dhq-book__role {
	margin-bottom: 12px !important;
	font-size: 15px;
	line-height: 22px;
	color: #495057;
}

.dhq-book__quote {
	font-size: 15px;
	line-height: 22px;
}

/* Шаги и календарь */
.dhq-book__booking {
	display: grid;
	grid-template-columns: 210px minmax(0, 1fr);
	gap: 24px;
	padding: 32px 24px 32px 32px;
	background: #f4f5f7;
}

.dhq-book__steps {
	counter-reset: dhq-step;
}

.dhq-book__steps li {
	position: relative;
	padding: 0 0 16px 36px;
	font-size: 14px;
	line-height: 20px;
	counter-increment: dhq-step;
}

.dhq-book__steps li::before {
	content: counter(dhq-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #06038d;
	font-size: 12px;
	font-weight: 600;
	line-height: 24px;
	text-align: center;
	color: #fff;
}

.dhq-book__on-mobile {
	display: none;
}

.dhq-book__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 660px;
	overflow: hidden;
	border: 1px solid #dfe2e8;
	border-radius: 12px;
	background: #fff;
}

.dhq-book__card-head {
	display: flex;
	flex: none;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 20px;
	border-bottom: 1px solid #dfe2e8;
}

.dhq-book__card-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 24px;
	color: #06038d;
}

.dhq-book__card-note {
	font-size: 13px;
	line-height: 18px;
	color: #495057;
}

.dhq-book__slot {
	flex: 1;
	min-height: 0;
}

.dhq-book__slot .calendly-inline-widget,
.dhq-book__slot iframe {
	width: 100%;
	height: 100%;
}

.dhq-book__fallback {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 20px;
	padding: 32px;
	text-align: center;
}

.dhq-book__fallback[hidden],
.dhq-book__slot[hidden] {
	display: none;
}

.dhq-book__fallback p {
	font-size: 16px;
	line-height: 24px;
}

.dhq-book__cta:disabled {
	background: #b0bfd0;
	cursor: default;
}

.dhq-book__fallback-link {
	font-size: 14px;
	line-height: 20px;
	color: #06038d;
	text-decoration: underline;
}

.dhq-book__fallback-link:hover {
	color: #2965ff;
}

/* Нижняя строка */
.dhq-book__footer {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 16px 32px;
	border-top: 1px solid #dfe2e8;
	font-size: 13px;
	line-height: 18px;
	color: #495057;
}

.dhq-book__footer a {
	color: #06038d;
	text-decoration: underline;
}

@media (max-width: 767px) {
	.dhq-book {
		padding: 0;
	}

	.dhq-book__dialog {
		max-width: none;
		height: 100%;
		border-radius: 0;
	}

	.dhq-book__hero,
	.dhq-book__columns,
	.dhq-book__booking {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
		padding: 24px 16px;
	}

	.dhq-book__hero {
		padding-top: 64px;
	}

	.dhq-book__title {
		font-size: 28px;
	}

	.dhq-book__facts li {
		text-align: left;
	}

	.dhq-book__person {
		align-items: flex-start;
		gap: 16px;
		padding: 24px 16px;
	}

	.dhq-book__person img {
		width: 96px;
		height: 112px;
		border-radius: 16px;
	}

	.dhq-book__name {
		font-size: 22px;
		line-height: 28px;
	}

	.dhq-book__on-desktop {
		display: none;
	}

	.dhq-book__on-mobile {
		display: inline;
	}

	.dhq-book__card {
		height: 700px;
	}

	.dhq-book__footer {
		padding: 16px;
	}
}
