/* Xizmat ko'rsatuvchilar — accordion slider */
.sp-directory-block {
	padding: 28px 0 40px;
	background: #f7f8fa;
}

/* /uslugi: main + keyingi blok — ortiqcha padding qatlami */
main#main-content.main-uslugi {
	padding-bottom: 0;
}

main#main-content.main-uslugi > .container {
	padding-bottom: 0;
}

main#main-content.main-uslugi .sp-directory-block {
	padding-top: 24px;
	padding-bottom: 20px;
}

main#main-content.main-uslugi .sp-directory-block .sp-directory__title.main-title {
	margin-bottom: 20px;
	padding-bottom: 12px;
}

main#main-content.main-uslugi + .full-block.cheap-objects-block.similar-objects-block {
	margin-top: 0;
	padding-top: 28px;
	padding-bottom: 40px;
}

.sp-directory-block .container {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sp-directory__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin: 0 auto;
	width: 100%;
}

.sp-directory__cta--after-accordion {
	margin-top: 22px;
	margin-bottom: 8px;
}

.sp-directory__cta-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 14px;
	border-radius: 14px;
	font-weight: 800;
	text-decoration: none;
	line-height: 1.1;
	color: #fff;
}

.sp-directory__cta-btn--call { background: #16a34a; }
.sp-directory__cta-btn--tg { background: #229ed9; }
.sp-directory__cta-btn--bot { background: #111827; }

.sp-directory__title {
	width: 100%;
	margin-bottom: 12px;
	text-align: center;
}

.sp-directory-block .sp-directory__title.main-title::before {
	left: 15%;
	right: 15%;
	width: auto;
}

.sp-directory__intro {
	margin: 0 auto 12px;
	max-width: 820px;
	width: 100%;
	font-size: 1.15rem;
	line-height: 1.55;
	color: #334155;
	text-align: center;
}

.sp-directory__disclaimer {
	margin: 0 auto 22px;
	max-width: 820px;
	width: 100%;
	font-size: 1.02rem;
	line-height: 1.55;
	color: #64748b;
	text-align: center;
}

.sp-directory__staff-block .sp-directory__disclaimer--inline {
	margin-bottom: 0;
}

.sp-directory__staff-lead,
.sp-directory__thanks,
.cheap-objects-block__lead {
	width: 100%;
	max-width: 820px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

.sp-directory__staff-block {
	width: 100%;
	max-width: 820px;
	margin: 0 auto 18px;
	text-align: center;
}

.sp-directory__staff-lead {
	margin: 0 auto 10px;
}

.sp-directory__disclaimer--inline {
	margin: 10px 0 0;
	padding: 0;
	font-size: 1rem;
	line-height: 1.5;
	color: #991b1b;
	font-weight: 600;
}

.sp-directory__staff-lead .content .sp-directory__disclaimer--inline {
	margin-top: 12px;
}

.sp-directory__staff-lead .content,
.sp-directory__thanks .content,
.cheap-objects-block__lead .content {
	font-size: 1.15rem;
	line-height: 1.55;
	color: #334155;
}

.sp-directory__staff-lead .content > p:first-child,
.cheap-objects-block__lead .content p {
	margin: 0 0 0;
}

.sp-directory__thanks {
	margin: 20px auto 24px;
}

.sp-directory__thanks .content {
	font-size: 1.08rem;
	color: #475569;
}

.cheap-objects-block__lead {
	margin: 0 auto 18px;
}

.cheap-objects-block .similar-title {
	margin-bottom: 16px;
}

.sp-directory__empty {
	margin: 0 auto 24px;
	width: 100%;
	text-align: center;
	color: #64748b;
	font-size: 0.95rem;
}

/* Accordion — yumshoq animatsiya */
.sp-accordion-wrap {
	--sp-acc-duration: 0.88s;
	--sp-acc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--sp-acc-panel-ease: cubic-bezier(0.16, 1, 0.3, 1);
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 0;
	width: 100%;
	align-self: stretch;
}

.sp-accordion {
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	min-width: 0;
	gap: 10px;
	height: 420px;
	min-height: 360px;
	overflow: hidden;
}

.sp-accordion-nav {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	border: none;
	border-radius: 8px;
	background: #92400e;
	color: #fff;
	font-size: 1rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s, opacity 0.2s;
}

.sp-accordion-nav:hover:not(:disabled) {
	background: #78350f;
}

.sp-accordion-nav:disabled {
	opacity: 0.35;
	cursor: default;
}

.sp-acc-card {
	flex: 1 1 0;
	min-width: 0;
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition:
		flex var(--sp-acc-duration) var(--sp-acc-ease),
		flex-grow var(--sp-acc-duration) var(--sp-acc-ease),
		box-shadow var(--sp-acc-duration) ease;
	position: relative;
	outline: none;
}

.sp-acc-card.is-active {
	flex: 5 1 0;
	min-width: 0;
	max-width: none;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.sp-acc-card__inner {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

.sp-acc-card__media {
	position: absolute;
	inset: 0;
	background-position: center top;
	background-size: cover;
	background-repeat: no-repeat;
	transform: scale(1.03);
	transition: transform var(--sp-acc-duration) var(--sp-acc-ease);
}

.sp-acc-card.is-active .sp-acc-card__media {
	transform: scale(1);
}

.sp-acc-card__media--placeholder {
	background-size: cover;
	background-position: center center;
	filter: saturate(0.85) contrast(1.05);
}

/* Chapda dumaloq profil, ism rasm tagida */
.sp-acc-card__profile {
	position: absolute;
	top: 10px;
	left: 8px;
	z-index: 5;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	max-width: 42%;
	pointer-events: none;
	transition:
		top 0.45s var(--sp-acc-ease),
		left 0.45s var(--sp-acc-ease);
}

.sp-acc-card.is-active .sp-acc-card__profile {
	top: 16px;
	left: 14px;
	max-width: 140px;
}

.sp-acc-card__avatar-ring {
	flex-shrink: 0;
	border-radius: 50%;
	overflow: hidden;
	background: #e5e7eb;
	border: 3px solid #fff;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
	transition:
		width 0.45s var(--sp-acc-ease),
		height 0.45s var(--sp-acc-ease),
		border-width 0.45s var(--sp-acc-ease);
}

.sp-acc-card:not(.is-active) .sp-acc-card__avatar-ring {
	width: 52px;
	height: 52px;
	border-width: 2px;
}

.sp-acc-card.is-active .sp-acc-card__avatar-ring {
	width: 112px;
	height: 112px;
	border-width: 4px;
}

.sp-acc-card__profile-name {
	display: block;
	margin: 6px 0 0;
	width: 100%;
	max-width: 100%;
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	text-align: center;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.75);
	transition: font-size 0.45s var(--sp-acc-ease), margin 0.45s var(--sp-acc-ease);
}

.sp-acc-card:not(.is-active) .sp-acc-card__profile-name {
	font-size: 0.82rem;
	margin-top: 4px;
}

.sp-acc-card.is-active .sp-acc-card__profile-name {
	font-size: 1.28rem;
	margin-top: 8px;
	letter-spacing: 0.02em;
}

.sp-acc-card__avatar {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sp-acc-card__avatar-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-weight: 800;
	color: #374151;
	background: linear-gradient(145deg, #f3f4f6 0%, #d1d5db 100%);
}

.sp-acc-card:not(.is-active) .sp-acc-card__avatar-initials {
	font-size: 1.1rem;
}

.sp-acc-card.is-active .sp-acc-card__avatar-initials {
	font-size: 2.5rem;
}

.sp-acc-card__shade {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.35) 0%,
		rgba(0, 0, 0, 0.12) 38%,
		rgba(0, 0, 0, 0.55) 72%,
		rgba(0, 0, 0, 0.78) 100%
	);
	pointer-events: none;
	z-index: 1;
}

.sp-acc-card__collapsed {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	padding: 14px 8px 12px 72px;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: flex-end;
	text-align: left;
	gap: 6px;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.sp-acc-card.is-active .sp-acc-card__collapsed {
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.35s ease;
}

.sp-acc-card__name--sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.sp-acc-card__collapsed-area {
	font-size: 1.12rem;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.95);
	line-height: 1.25;
	writing-mode: horizontal-tb;
	transform: none;
	width: 100%;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.sp-acc-card__panel {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 24px 22px 20px;
	color: #fff;
	opacity: 0;
	transform: translateY(10px);
	transition:
		opacity 0.4s ease,
		transform 0.45s var(--sp-acc-panel-ease);
	pointer-events: none;
}

.sp-acc-card.is-active .sp-acc-card__panel {
	opacity: 1;
	transform: translateY(0);
	padding-left: 138px;
	pointer-events: auto;
	transition:
		opacity 0.55s ease 0.2s,
		transform 0.6s var(--sp-acc-panel-ease) 0.16s,
		padding-left 0.45s var(--sp-acc-ease);
}

.sp-acc-card__type {
	margin: 0 0 8px;
	font-size: 0.95rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: rgba(255, 255, 255, 0.88);
}

.sp-acc-card__name {
	margin: 0 0 8px;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.15;
}

.sp-acc-card__area {
	margin: 0 0 10px;
	font-size: 1.12rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.95);
}

.sp-acc-card__area span {
	font-weight: 700;
}

.sp-acc-card__desc {
	margin: 0 0 14px;
	font-size: 1.02rem;
	line-height: 1.45;
	color: rgba(255, 255, 255, 0.9);
	max-width: 42ch;
}

.sp-acc-card__phone,
.sp-acc-card__phone-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border: none;
	border-radius: 999px;
	background: #fff;
	color: #111827 !important;
	font-size: 1rem;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
}

.sp-acc-card__phone:hover,
.sp-acc-card__phone-link:hover {
	background: #f3f4f6;
}

/* Apply — garmonika (tugma → forma) */
.sp-directory__apply.sp-apply-accordion {
	margin-top: 8px;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
	width: 100%;
	max-width: 720px;
}

.sp-apply-accordion__toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 22px;
	border: none;
	border-radius: 12px;
	background: #111827;
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	transition: background 0.25s ease, box-shadow 0.25s ease;
}

.sp-apply-accordion__toggle:hover {
	background: #1f2937;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.sp-apply-accordion__icon {
	font-size: 0.95rem;
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.sp-apply-accordion.is-open .sp-apply-accordion__icon {
	transform: rotate(180deg);
}

.sp-apply-accordion__panel {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition:
		max-height 0.55s cubic-bezier(0.22, 0.61, 0.36, 1),
		opacity 0.45s ease,
		margin 0.45s ease;
	margin-top: 0;
}

.sp-apply-accordion.is-open .sp-apply-accordion__panel {
	max-height: 900px;
	opacity: 1;
	margin-top: 14px;
}

.sp-apply-accordion__panel[hidden] {
	display: block;
}

.sp-apply-accordion.is-open .sp-apply-accordion__panel {
	padding: 20px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.sp-directory__apply-hint {
	margin: 0 0 16px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #64748b;
	text-align: center;
}

.sp-apply-form__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 12px;
}

.sp-apply-form__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: #334155;
}

.sp-apply-form__field input,
.sp-apply-form__field textarea {
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	font-size: 0.95rem;
	font-family: inherit;
}

.sp-apply-form__field--full { margin-bottom: 12px; }

.sp-apply-form__submit {
	padding: 12px 20px;
	border: none;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	font-weight: 800;
	font-size: 0.95rem;
	cursor: pointer;
}

.sp-apply-form__status { margin: 12px 0 0; font-size: 0.9rem; }
.sp-apply-form__status.is-ok { color: #16a34a; }
.sp-apply-form__status.is-err { color: #dc2626; }

@media (max-width: 991px) {
	.sp-accordion {
		height: 380px;
	}
	.sp-acc-card.is-active {
		flex: 4 1 0;
	}
}

@media (max-width: 767px) {
	.sp-accordion-wrap {
		flex-direction: column;
		align-items: stretch;
	}
	.sp-accordion-nav {
		display: none;
	}
	.sp-accordion {
		height: 360px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
	}
	.sp-acc-card {
		flex: 0 0 22%;
		min-width: 72px;
		scroll-snap-align: start;
	}
	.sp-acc-card.is-active {
		flex: 0 0 72%;
		min-width: 240px;
		max-width: none;
	}
}

@media (max-width: 575px) {
	.sp-apply-form__row {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sp-accordion-wrap {
		--sp-acc-duration: 0.01ms;
	}
	.sp-acc-card__panel {
		transition: none;
	}
}
