/* Общие блоки SEO-страниц и статей: типографика, «показать ещё», цены, слайдер работ.
   Подключается из includes/head.php для страниц с 'parent' в config.php. */

.seo-landing,
.seo-price,
.seo-works {
	--s-primary: var(--primary, #2563eb);
	--s-accent: var(--accent, #22d3ee);
	--s-dark: var(--secondary, #0f2540);
	--s-muted: var(--muted, #64748b);
	--s-border: var(--border, #e2e8f0);
	--s-bg: var(--bg, #f4f7fc);
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ───────── Посадочные страницы: спокойная типографика ───────── */
.seo-landing {
	padding: clamp(112px, 12vw, 150px) 0 clamp(40px, 5vw, 72px);
	color: #33404f;
	font-size: 1rem;
	line-height: 1.7;
}
.seo-breadcrumbs {
	font-size: 0.875rem;
	line-height: 1.5;
	color: var(--s-muted);
	margin-bottom: 20px;
}
.seo-breadcrumbs a {
	color: inherit;
	text-decoration: none;
}
.seo-breadcrumbs a:hover {
	color: var(--s-primary);
}
.seo-landing__eyebrow {
	display: inline-block;
	margin: 0 0 12px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.08);
	color: var(--s-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.seo-landing h1 {
	margin: 0 0 16px;
	font-size: clamp(1.375rem, 2.4vw, 1.875rem);
	line-height: 1.25;
	font-weight: 800;
	color: var(--s-dark);
}
.seo-landing .seo-lead {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.65;
	color: var(--s-muted);
}
.seo-section {
	margin-top: 28px;
}
.seo-section h2,
.seo-faqs h2,
.seo-cta h2 {
	margin: 0 0 10px;
	font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
	line-height: 1.3;
	font-weight: 800;
	color: var(--s-dark);
}
.seo-section p,
.seo-faq p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.7;
}
.seo-text {
	margin-top: 8px;
}
.seo-landing .seo-lead,
.seo-section p,
.seo-faq p,
.seo-cta p {
	max-width: 62rem;
}

/* ───────── «Показать ещё / Скрыть» ───────── */
.seo-clamp {
	position: relative;
	overflow: hidden;
}
.seo-clamp.is-clamped {
	transition: max-height 0.35s ease;
}
.seo-clamp.is-clamped:not(.is-open)::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 90px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
	pointer-events: none;
}
.seo-clamp__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 14px 0 4px;
	padding: 11px 22px;
	border: 1.5px solid var(--s-primary);
	border-radius: 10px;
	background: #fff;
	color: var(--s-primary);
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s, color 0.2s;
}
.seo-clamp__btn:hover {
	background: var(--s-primary);
	color: #fff;
}
.seo-clamp__btn::after {
	content: "";
	width: 8px;
	height: 8px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
	transition: transform 0.25s;
}
.seo-clamp__btn[aria-expanded="true"]::after {
	transform: translateY(2px) rotate(-135deg);
}

/* ───────── Цены ───────── */
.seo-price {
	margin: 36px 0 0;
	padding: clamp(18px, 3vw, 28px);
	border: 1px solid var(--s-border);
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 6px 24px rgba(15, 37, 64, 0.06);
	color: #33404f;
}
.seo-price__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px 16px;
	margin-bottom: 8px;
}
.seo-price__title {
	margin: 0;
	font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
	line-height: 1.3;
	font-weight: 800;
	color: var(--s-dark);
}
.seo-price__label {
	font-size: 0.8125rem;
	color: var(--s-muted);
}
.seo-price__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.seo-price__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 0;
	border-bottom: 1px solid var(--s-border);
}
.seo-price__row:last-child {
	border-bottom: 0;
}
.seo-price__name {
	display: block;
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--s-dark);
}
.seo-price__sub {
	display: block;
	margin-top: 2px;
	font-size: 0.8125rem;
	line-height: 1.4;
	color: var(--s-muted);
}
.seo-price__value {
	flex: none;
	font-size: 1.0625rem;
	font-weight: 800;
	color: var(--s-primary);
	white-space: nowrap;
}
.seo-price__row.is-main .seo-price__name::after {
	content: "эта услуга";
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--s-primary);
	font-size: 0.6875rem;
	font-weight: 700;
	vertical-align: 2px;
}
.seo-price__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 20px;
	margin-top: 8px;
	padding-top: 16px;
	border-top: 1px dashed var(--s-border);
}
.seo-price__note {
	margin: 0;
	max-width: 440px;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--s-muted);
}
.seo-btn {
	display: inline-block;
	padding: 12px 22px;
	border: 0;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--s-primary), #1d4ed8);
	color: #fff;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.15s, box-shadow 0.2s;
}
.seo-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* ───────── Слайдер работ ───────── */
.seo-works {
	margin: 36px 0 0;
}
.seo-works__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 14px;
}
.seo-works__title {
	margin: 0;
	font-size: clamp(1.125rem, 1.8vw, 1.3125rem);
	line-height: 1.3;
	font-weight: 800;
	color: var(--s-dark);
}
.seo-works__hint {
	margin: 4px 0 0;
	font-size: 0.8125rem;
	color: var(--s-muted);
}
.seo-slider {
	position: relative;
}
.seo-slider__track {
	display: flex;
	gap: 12px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	padding-bottom: 2px;
}
.seo-slider__track::-webkit-scrollbar {
	display: none;
}
.seo-slider__item {
	position: relative;
	flex: 0 0 calc((100% - 24px) / 3);
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	scroll-snap-align: start;
	background: var(--s-bg);
	cursor: zoom-in;
}
.seo-slider__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s;
}
.seo-slider__item:hover img {
	transform: scale(1.05);
}
.seo-slider__item::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(15, 37, 64, 0.35), transparent 45%);
	opacity: 0;
	transition: opacity 0.25s;
}
.seo-slider__item:hover::after {
	opacity: 1;
}
.seo-slider__arrow {
	position: absolute;
	top: 50%;
	z-index: 2;
	width: 42px;
	height: 42px;
	margin-top: -21px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: var(--s-dark);
	box-shadow: 0 4px 16px rgba(15, 37, 64, 0.22);
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: opacity 0.2s, transform 0.15s;
}
.seo-slider__arrow:hover {
	transform: scale(1.08);
}
.seo-slider__arrow[disabled] {
	opacity: 0;
	pointer-events: none;
}
.seo-slider__arrow--prev {
	left: -10px;
}
.seo-slider__arrow--next {
	right: -10px;
}
.seo-slider__arrow svg {
	width: 20px;
	height: 20px;
}


/* ───────── FAQ, CTA, ссылки «см. также» ───────── */
.seo-faqs {
	margin-top: 36px;
}
.seo-faq {
	padding: 14px 0;
	border-bottom: 1px solid var(--s-border);
}
.seo-faq summary {
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.5;
	color: var(--s-dark);
	cursor: pointer;
}
.seo-faq p {
	margin-top: 8px;
	color: #44505f;
}
.seo-cta {
	margin-top: 36px;
	padding: clamp(20px, 3vw, 28px);
	border-radius: 18px;
	background: var(--s-bg);
}
.seo-cta p {
	margin: 0;
	font-size: 1rem;
	line-height: 1.65;
}
.seo-cta a {
	display: inline-block;
	margin-top: 14px;
	padding: 12px 22px;
	border-radius: 10px;
	background: linear-gradient(90deg, var(--s-primary), #1d4ed8);
	color: #fff;
	font-size: 0.9375rem;
	font-weight: 700;
	text-decoration: none;
}
.seo-related {
	margin-top: 28px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	font-size: 0.9375rem;
}
.seo-related a {
	color: var(--s-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ───────── Статьи: чуть спокойнее шрифты ───────── */
.article-body__content {
	font-size: 1rem;
}
.article-hero__lead {
	font-size: 1.0625rem;
}
.article-body__content .seo-clamp > h2:first-child {
	margin-top: 0;
}
.article-body__content .seo-price,
.article-body__content .seo-works {
	line-height: 1.5;
}

/* ───────── Адаптив ───────── */
@media (max-width: 767px) {
	.seo-slider__item {
		flex-basis: calc((100% - 12px) / 1.35);
	}
	.seo-slider__arrow {
		display: none;
	}
	.seo-price__row {
		align-items: flex-start;
	}
	.seo-price__foot {
		flex-direction: column;
		align-items: stretch;
	}
	.seo-btn {
		text-align: center;
	}
}
@media (min-width: 768px) and (max-width: 1023px) {
	.seo-slider__item {
		flex-basis: calc((100% - 12px) / 2);
	}
}
@media (prefers-reduced-motion: reduce) {
	.seo-clamp.is-clamped,
	.seo-slider__track,
	.seo-slider__item img {
		transition: none;
		scroll-behavior: auto;
	}
}

/* ───────── Блок «Полезные материалы» (карточки) ───────── */
.seo-hub {
	--s-primary: var(--primary, #2563eb);
	--s-accent: var(--accent, #22d3ee);
	--s-dark: var(--secondary, #0f2540);
	--s-muted: var(--muted, #64748b);
	--s-border: var(--border, #e2e8f0);
	padding: clamp(40px, 5vw, 72px) 0;
	background: var(--bg, #f4f7fc);
	font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.seo-hub__head {
	max-width: 46rem;
	margin-bottom: clamp(20px, 3vw, 32px);
}
.seo-hub__eyebrow {
	display: inline-block;
	margin-bottom: 10px;
	padding: 4px 12px;
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.1);
	color: var(--s-primary);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.seo-hub__title {
	margin: 0 0 8px;
	font-size: clamp(1.375rem, 2.6vw, 2rem);
	line-height: 1.25;
	font-weight: 800;
	color: var(--s-dark);
}
.seo-hub__lead {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: var(--s-muted);
}
.seo-hub__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(12px, 1.6vw, 20px);
}
.seo-hub__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 22px 22px 18px;
	border: 1px solid var(--s-border);
	border-radius: 18px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 3px rgba(15, 37, 64, 0.06);
	transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.seo-hub__card::before {
	content: "";
	position: absolute;
	left: 22px;
	right: 22px;
	top: 0;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: linear-gradient(90deg, var(--s-primary), var(--s-accent));
	opacity: 0;
	transition: opacity 0.25s;
}
.seo-hub__card:hover,
.seo-hub__card:focus-visible {
	transform: translateY(-4px);
	border-color: rgba(37, 99, 235, 0.35);
	box-shadow: 0 14px 32px rgba(15, 37, 64, 0.12);
}
.seo-hub__card:hover::before,
.seo-hub__card:focus-visible::before {
	opacity: 1;
}
.seo-hub__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	margin-bottom: 6px;
	border-radius: 13px;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(34, 211, 238, 0.18));
	color: var(--s-primary);
	transition: background 0.25s, color 0.25s;
}
.seo-hub__card:hover .seo-hub__icon {
	background: linear-gradient(135deg, var(--s-primary), var(--s-accent));
	color: #fff;
}
.seo-hub__icon svg {
	width: 24px;
	height: 24px;
}
.seo-hub__name {
	font-size: 1.0625rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--s-dark);
}
.seo-hub__text {
	flex: 1;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--s-muted);
}
.seo-hub__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 6px;
	padding-top: 14px;
	border-top: 1px solid var(--s-border);
	font-size: 0.875rem;
}
.seo-hub__price {
	font-weight: 800;
	color: var(--s-dark);
}
.seo-hub__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	color: var(--s-primary);
}
.seo-hub__more::after {
	content: "→";
	transition: transform 0.25s;
}
.seo-hub__card:hover .seo-hub__more::after {
	transform: translateX(4px);
}
@media (max-width: 1023px) {
	.seo-hub__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 599px) {
	.seo-hub__grid {
		grid-template-columns: 1fr;
	}
}
@media (prefers-reduced-motion: reduce) {
	.seo-hub__card,
	.seo-hub__icon,
	.seo-hub__more::after {
		transition: none;
	}
}
