/* Dreamstone Service Pages.
   Основной дизайн приходит из CSS эталонной страницы Elementor (post-XXXX.css)
   и стилей виджетов Elementor. Здесь только то, что делал Swiper. */

.dssp-el .elementor-main-swiper {
	overflow: hidden;
	--dssp-gap: 10px;
	--dssp-per: 3;
}
@media (max-width: 1024px) {
	.dssp-el .elementor-main-swiper { --dssp-per: 2; }
}
@media (max-width: 767px) {
	.dssp-el .elementor-main-swiper { --dssp-per: 1; }
}

.dssp-el .elementor-main-swiper .swiper-wrapper {
	display: flex;
	transition: transform .5s ease;
	will-change: transform;
}
.dssp-el .elementor-main-swiper .swiper-slide {
	flex: 0 0 auto;
	width: calc((100% - (var(--dssp-per) - 1) * var(--dssp-gap)) / var(--dssp-per));
	margin-right: var(--dssp-gap);
	height: auto;
}

.dssp-el .elementor-swiper-button { cursor: pointer; }
.dssp-el .elementor-swiper-button.is-hidden { display: none; }

.dssp-reviews-title {
	width: 100%;
	text-align: center;
	margin: 0 0 20px;
}

.dssp-faq-anchor {
	position: relative;
	top: -120px;
	height: 0;
	width: 100%;
}

/* ---------------- Доп. блоки: портфолио, перелинковка, AI ---------------- */
.dssp-x {
	--dssp-accent: #C98A26;
	--dssp-text: var(--e-global-color-text, #333);
	--dssp-line: #e6e1d8;
	padding: 48px 20px;
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	color: var(--dssp-text);
}
.dssp-x__inner {
	max-width: var(--content-width, 1140px);
	margin: 0 auto;
}
.dssp-x .elementor-widget-heading { margin-bottom: 18px; }

/* Портфолио */
.dssp-pf { background: #faf8f4; }
.dssp-pf__inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}
.dssp-pf__inner--noimg { grid-template-columns: 1fr; max-width: 760px; text-align: center; }
.dssp-pf__media { display: block; border-radius: 10px; overflow: hidden; }
.dssp-pf__media img {
	display: block;
	width: 100%;
	height: 100%;
	max-height: 420px;
	object-fit: cover;
	transition: transform .4s ease;
}
.dssp-pf__media:hover img { transform: scale(1.03); }
.dssp-pf__inner:not(.dssp-pf__inner--noimg) .elementor-widget-heading,
.dssp-pf__inner:not(.dssp-pf__inner--noimg) .elementor-heading-title,
.dssp-pf__inner:not(.dssp-pf__inner--noimg) .elementor-widget-text-editor { text-align: left !important; }
.dssp-pf .elementor-widget-button { width: auto !important; max-width: 100%; margin-top: 8px; }
.dssp-pf__inner--noimg .elementor-widget-button { margin-left: auto; margin-right: auto; }
.dssp-pf .elementor-widget-text-editor { margin-bottom: 14px; }
@media (max-width: 767px) {
	.dssp-pf__inner { grid-template-columns: 1fr; gap: 24px; }
	.dssp-pf__inner:not(.dssp-pf__inner--noimg) .elementor-widget-heading,
	.dssp-pf__inner:not(.dssp-pf__inner--noimg) .elementor-heading-title,
	.dssp-pf__inner:not(.dssp-pf__inner--noimg) .elementor-widget-text-editor { text-align: center !important; }
	.dssp-pf .elementor-widget-button { width: 100% !important; }
}

/* Перелинковка */
.dssp-links .elementor-widget-heading { text-align: center; }
.dssp-links__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
@media (max-width: 1024px) { .dssp-links__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .dssp-links__grid { grid-template-columns: 1fr; } }
.dssp-links__item { margin: 0; padding: 0; }
.dssp-links__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid var(--dssp-line);
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none !important;
	color: var(--dssp-text) !important;
	transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.dssp-links__card:hover,
.dssp-links__card:focus-visible {
	border-color: var(--dssp-accent);
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}
.dssp-links__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #f3efe8; }
.dssp-links__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dssp-links__title {
	display: block;
	padding: 16px 18px 6px;
	font-family: var(--e-global-typography-primary-font-family, inherit), sans-serif;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.dssp-links__more {
	display: block;
	margin-top: auto;
	padding: 6px 18px 16px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--dssp-accent);
}

/* Спросить у AI: компактная строка внизу */
.dssp-ai {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px;
	max-width: var(--content-width, 1140px);
	margin: 0 auto;
	padding: 12px 20px 20px;
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	font-size: 13px;
	line-height: 1.3;
	color: #8c8c8c;
}
.dssp-ai__label { margin-right: 4px; }
.dssp-el .dssp-ai .dssp-ai__btn {
	display: inline-block;
	padding: 3px 10px;
	border: 1px solid #e6dccb;
	border-radius: 999px;
	background: transparent;
	color: #9a6a1c;
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	box-shadow: none;
	outline-offset: 2px;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dssp-el .dssp-ai .dssp-ai__btn:hover,
.dssp-el .dssp-ai .dssp-ai__btn:focus-visible {
	background: #C98A26;
	border-color: #C98A26;
	color: #fff;
}

/* Строка локаций (Service areas: Richmond, VA · Henrico, VA …) */
.dssp-areas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 8px;
	max-width: var(--content-width, 1140px);
	margin: 0 auto;
	padding: 28px 20px 6px;
	font-family: var(--e-global-typography-text-font-family, inherit), sans-serif;
	font-size: 14px;
	line-height: 1.3;
	color: #6b6b6b;
}
.dssp-areas__label { font-weight: 600; margin-right: 4px; color: #333; }
.dssp-el .dssp-areas .dssp-areas__link {
	display: inline-block;
	padding: 5px 12px;
	border: 1px solid #e6dccb;
	border-radius: 999px;
	background: #fff;
	color: #333;
	font-size: 13px;
	text-decoration: none;
	transition: border-color .15s ease, color .15s ease;
}
.dssp-el .dssp-areas .dssp-areas__link:hover,
.dssp-el .dssp-areas .dssp-areas__link:focus-visible { border-color: #C98A26; color: #9a6a1c; }

.dssp-guides { padding-top: 8px; }

/* Шорткод [dreamstone_services]: карточки как на странице /services/ */
.dssp-hub { width: 100%; }
.dssp-hub__title { text-align: center; margin: 0 0 20px; }
.dssp-hub__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 20px;
}
.dssp-hub .dssp-hub__item.e-con {
	width: auto !important;
	max-width: none !important;
	min-width: 0;
	margin: 0 !important;
	display: flex;
	flex-direction: column;
}
.dssp-hub .elementor-widget-image { width: 100%; }
.dssp-hub__img { display: block; }
.dssp-hub__img img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 800 / 534;
	object-fit: cover;
}
.dssp-hub__ph { display: block; aspect-ratio: 800 / 534; background: #f3efe8; }
.dssp-hub .elementor-heading-title { font-size: 20px; line-height: 1.3; margin: 12px 0 0; }
.dssp-hub .elementor-heading-title a { color: inherit; text-decoration: none; }
