/*
 * Sujok.it — запись блога без Elementor.
 * Значения перенесены из Elementor-шаблона «Single» (ID 2941, post-2941.css).
 */

.sj-single {
	--sj-gold: #d8b771;
	--sj-violet: #4632da;
	--sj-text: #3d4459;
	--sj-line: rgba(159, 163, 173, 0.2);
	--sj-font-title: "Varela Round", sans-serif;
	--sj-font-text: "Montserrat", sans-serif;
	margin: 0;
	padding: 0;
	background: transparent;
}

/* ---------- Шапка записи: градиент + волна ---------- */
.sj-single__hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: content-box; /* как в Elementor: высота без учёта отступов */
	min-height: 500px;
	background-image: linear-gradient(130deg, #d8b771 28%, #00f2ff 100%);
	overflow: hidden;
}

.sj-single__hero-overlay {
	position: absolute;
	inset: 0;
	background: url("/wp-content/uploads/2020/04/Post-BG.png") center center / cover no-repeat;
	opacity: 0.15;
	pointer-events: none;
}

.sj-single__hero-inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 750px;
	padding: 10px 60px;
	text-align: center;
}

.sj-single__title {
	margin: 0 0 20px;
	padding: 0;
	font-family: var(--sj-font-title);
	font-size: 45px;
	font-weight: 300;
	line-height: 1.2em;
	text-transform: capitalize;
	color: #fff;
}

.sj-single__info {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-single__info-item {
	position: relative;
	margin: 0 25px;
	font-family: var(--sj-font-text);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6;
}

.sj-single__info-item:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 0;
	right: -25px;
	height: 100%;
	border-left: 1px solid #fff;
}

.sj-single__info-item a,
.sj-single__info-item a:hover {
	color: #fff;
	text-decoration: none;
}

.sj-single__wave {
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	line-height: 0;
	overflow: hidden;
	direction: ltr;
	transform: rotate(180deg);
	pointer-events: none;
}

.sj-single__wave svg {
	position: relative;
	left: 50%;
	display: block;
	width: calc(260% + 1.3px);
	height: 120px;
	transform: translateX(-50%) rotateY(180deg);
}

.sj-single__wave path {
	fill: #fff;
}

/* ---------- Тело записи ---------- */
.sj-single__body {
	position: relative;
	z-index: 2;
	max-width: 750px;
	margin: -120px auto 0;
	padding: 0;
}

.sj-single__body > * + * {
	margin-top: 10px;
}

.sj-single__thumb img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	border-radius: 15px;
	box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2);
}

.sj-single__spacer {
	height: 50px;
}

/* Share This Post */
.sj-single__share {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 10px;
	border-top: 1px solid var(--sj-line);
	border-bottom: 1px solid var(--sj-line);
}

.sj-single__share-title {
	margin: 0;
	font-family: var(--sj-font-title);
	font-size: 20px;
	font-weight: 300;
	line-height: 1.2em;
	text-transform: capitalize;
	color: var(--sj-violet);
}

.sj-single__share-list {
	display: flex;
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.sj-single__share-list li,
.sj-single__info-item {
	margin-bottom: 0;
}

.sj-single__share-title {
	margin: 0 !important;
}

.sj-single__share-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	background: #fff;
	color: rgba(47, 55, 89, 0.7);
	transition: color 0.2s;
}

.sj-single__share-btn:hover,
.sj-single__share-btn:focus {
	color: var(--sj-violet);
}

.sj-single__share-btn svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

/* Повтор заголовка над текстом (как в Elementor) */
.sj-single__subtitle {
	font-family: "Roboto", sans-serif;
	font-weight: 600;
	line-height: 1;
	color: #070707;
}

/* Текст записи */
.sj-single__content {
	color: var(--sj-text);
	font-family: var(--sj-font-text);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.6em;
	text-align: start;
}

.sj-single__content img {
	max-width: 100%;
	height: auto;
}

/* Previous / Next */
.sj-single__nav {
	display: flex;
	margin-bottom: 50px;
	padding: 45px 0;
	overflow: hidden;
}

.sj-single__nav-link {
	width: calc(50% - 0.5px);
	overflow: hidden;
	white-space: nowrap;
}

.sj-single__nav-link--next {
	text-align: end;
}

.sj-single__nav-link a {
	display: flex;
	align-items: center;
	gap: 20px;
	max-width: 100%;
	text-decoration: none;
}

.sj-single__nav-link--next a {
	justify-content: flex-end;
}

.sj-single__nav-sep {
	width: 1px;
	background-color: var(--sj-line);
}

.sj-single__nav-arrow {
	display: flex;
	flex-shrink: 0;
	color: var(--sj-gold);
}

.sj-single__nav-arrow svg {
	width: 20px;
	height: 20px;
	fill: currentColor;
}

.sj-single__nav-text {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.sj-single__nav-label {
	font-family: var(--sj-font-title);
	font-size: 16px;
	text-transform: uppercase;
	color: var(--sj-gold);
}

.sj-single__nav-title {
	overflow: hidden;
	text-overflow: ellipsis;
	font-family: var(--sj-font-text);
	font-size: 18px;
	font-weight: 300;
	color: var(--sj-text);
}

/* More To Explore */
.sj-single__more-title {
	margin: 0;
	font-family: var(--sj-font-title);
	font-size: 24px;
	font-weight: 300;
	line-height: 1.2em;
	text-transform: capitalize;
	color: var(--sj-gold);
}

.sj-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
	margin-top: 45px !important;
	margin-bottom: 0;
}

.sj-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	overflow: hidden;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.15);
	text-align: center;
	transition: box-shadow 0.25s;
}

.sj-card:hover {
	box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.15);
}

.sj-card__thumb {
	position: relative;
	display: block;
	padding-bottom: 50%;
	overflow: hidden;
}

.sj-card__thumb img {
	position: absolute;
	top: 50%;
	left: 50%;
	width: calc(100% + 1px);
	height: auto;
	max-width: none;
	transform: scale(1.01) translate(-50%, -50%);
}

.sj-card__thumb::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.35), transparent 75%);
	transition: opacity 0.3s ease-out;
}

.sj-card:hover .sj-card__thumb::after {
	opacity: 0.5;
}

.sj-card__badge {
	position: absolute;
	top: 0;
	left: 0;
	margin: 25px;
	padding: 0.6em 1.2em;
	border-radius: 5px;
	background: var(--sj-violet);
	color: #fff;
	font-family: var(--sj-font-text);
	font-size: 11px;
	line-height: 1;
	text-transform: capitalize;
}

.sj-card__text {
	margin-top: 30px;
	padding: 0 35px;
}

.sj-card__title {
	margin: 0 0 25px;
	font-family: var(--sj-font-title);
	font-size: 20px;
	font-weight: 400;
	line-height: 1.4em;
	text-transform: capitalize;
}

.sj-card__title a,
.sj-card__title a:hover {
	color: var(--sj-gold);
	text-decoration: none;
}

.sj-card__excerpt {
	margin-bottom: 20px;
}

.sj-card__excerpt p {
	margin: 0;
	font-family: var(--sj-font-text);
	font-size: 16px;
	line-height: 1.5em;
	color: #777;
}

.sj-card__meta {
	margin-top: auto;
	padding: 10px 35px;
	border-top: 1px solid #eaeaea;
	font-family: var(--sj-font-text);
	font-size: 14px;
	line-height: 1.3em;
	color: rgba(61, 68, 89, 0.5);
}

.sj-card__meta span + span::before {
	content: "•";
	margin: 0 5px;
}

/* ---------- Планшет ---------- */
@media (max-width: 1024px) {
	.sj-single__hero {
		min-height: 650px;
		padding: 0 5%;
	}

	.sj-single__wave svg {
		height: 195px;
	}

	.sj-single__title {
		font-size: 40px;
	}

	.sj-single__body {
		padding: 0 30px;
		max-width: 810px;
	}

	.sj-single__share-title {
		font-size: 24px;
	}
}

/* ---------- Телефон ---------- */
@media (max-width: 767px) {
	.sj-single__hero {
		min-height: 500px;
		padding: 10% 5% 0;
	}

	.sj-single__hero-inner {
		padding: 10px 0;
	}

	.sj-single__title {
		font-size: 30px;
	}

	.sj-single__body {
		padding: 20px 20px 0;
	}

	.sj-single__share {
		flex-direction: column;
		text-align: center;
	}

	.sj-single__share-title {
		font-size: 24px;
		line-height: 1.4em;
	}

	.sj-single__more-title {
		text-align: center;
		line-height: 1.4em;
	}

	.sj-cards {
		grid-template-columns: 1fr;
	}
}
