/* ==========================================================================
   Страница одиночной новости (single-news.php)
   Десктоп — Figma node 189:9012, мобильная — node 189:8151
   ========================================================================== */

.article {
	background: #f8f8fa;
}

.article-container {
	max-width: 1560px; /* 1520px контента + по 20px паддинга с каждой стороны */
	margin: 0 auto;
	padding: 0 20px;
}

/* --- Hero --- */
.article-hero {
	position: relative;
	width: 100%;
	height: 600px;
	overflow: hidden;
}

.article-hero__bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-hero__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.article-hero__content {
	position: absolute;
	left: 10px;
	right: 10px;
	bottom: 40px;
	color: #fff;
}

.article-hero__title {
	font-size: 24px;
	font-weight: 600;
	line-height: 1.2;
	margin: 0 0 16px;
	max-width: 700px;
	color: #fff;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.article-hero__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	font-size: 14px;
}

.article-hero__meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	white-space: nowrap;
}

.article-hero__icon {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* --- Layout: контент + сайдбар --- */
.article-layout {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 32px 0 0;
}

.article-content {
	width: 100%;
}

.article-content p {
	font-size: 18px;
	line-height: 1.5;
	color: var(--color-text);
}

.article-content h2,
.article-content h3 {
	font-size: 18px;
	font-weight: 600;
	line-height: 1.2;
	margin: 24px 0 16px;
}

.article-content img {
	width: 100%;
	border-radius: 16px;
	margin: 8px 0 16px;
	display: block;
}

/* --- CTA "Понравилась статья?" --- */
.article-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: #fff;
	border-radius: 24px;
	padding: 20px 24px;
	margin-top: 24px;
}

.article-cta__label {
	font-size: 18px;
	font-weight: 500;
	margin: 0;
}

.article-cta__actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.article-like-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	padding: 0;
	border: none;
	background: none;
	color: var(--color-text);
	cursor: pointer;
	transition: color 0.15s ease, transform 0.15s ease;
}

.article-like-btn svg {
	width: 100%;
	height: 100%;
}

.article-like-btn:hover {
	transform: scale(1.08);
}

.article-like-btn.is-liked {
	color: #e0455f;
}

.article-like-btn.is-liked svg path {
	fill: currentColor;
}

.article-share-btn {
	border: none;
	cursor: pointer;
	font: inherit;
}

/* --- Сайдбар "Последние статьи" --- */
.article-sidebar__title {
	font-size: 22px;
	font-weight: 700;
	margin: 0 0 16px;
}

.article-sidebar__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.article-sidebar__card {
	display: block;
	background: #fff;
	border-radius: 24px;
	padding: 16px;
	text-decoration: none;
	color: inherit;
}

.article-sidebar__card-photo {
	position: relative;
	height: 200px;
	border-radius: 16px;
	overflow: hidden;
	background: rgba(35, 113, 109, 0.1);
	margin-bottom: 12px;
}

.article-sidebar__card-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-sidebar__card-date {
	position: absolute;
	top: 16px;
	left: 16px;
	background: rgba(255, 255, 255, 0.85);
	backdrop-filter: blur(5px);
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 14px;
}

.article-sidebar__card-title {
	font-size: 18px;
	line-height: 1.2;
	margin: 0;
}

/* --- Плавающая кнопка (декоративная) --- */
.article-floating-btn {
	position: fixed;
	right: 32px;
	bottom: 32px;
	width: 72px;
	height: 72px;
	border-radius: 999px;
	background: #23716d;
	display: none; /* включаем только на десктопе ниже */
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(35, 113, 109, 0.35);
	z-index: 40;
}

.article-floating-btn svg {
	width: 32px;
	height: 32px;
}

/* ==========================================================================
   Десктоп (≥1024px) — двухколоночный layout, hero выше и с закруглением
   ========================================================================== */
@media (min-width: 1024px) {
	.article-hero {
		height: 526px;
		border-radius: 32px;
		margin: 80px auto 0;
	}

	.article-hero__content {
		left: 60px;
		right: 60px;
		bottom: 48px;
	}

	.article-hero__title {
		font-size: 40px;
		max-width: 854px;
	}

	.article-hero__meta {
		font-size: 16px;
	}

	.article-hero__icon {
		width: 18px;
		height: 18px;
	}

	.article-layout {
		flex-direction: row;
		align-items: flex-start;
		gap: 20px;
		padding: 48px 0 0;
	}

	.article-content {
	}

	.article-sidebar {
		flex: 0 0 365px;
	}

	.article-floating-btn {
		display: flex;
	}
}
