.article {
	margin-bottom: 80px !important;
}

.article-content {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.article-content-img {
	position: relative;
	height: 500px;
	width: 100%;
}

.article-content-img img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 30px;
}

.article-content-img__date {
	position: absolute;
	bottom: 0;
	left: 0;

	display: flex;
	align-items: center;
	gap: 20px;
}

.article-content-img__date .date {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: var(--color-light-gray);
	padding: 6.5px 10px;
	border-radius: 30px;
	width: 280px;
	height: 40px;
}

.article-content-img__date .date img {
	width: 24px;
	height: 24px;
}

.article-content-img__date .date span {
	font-size: 16px;
	line-height: 20px;
}

.article-content-img__date .share-btn {
	flex-shrink: 0;
	background: var(--color-light-gray);
	border: none;
	cursor: pointer;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.article-content-img__date .share-btn:hover {
	background: var(--color-primary);
}

.article-content-img__date .share-btn:hover svg {
	fill: var(--color-white);
}

.article-content-text div:has(table) {
	overflow-x: auto;
}

.article-content-text h1 {
	margin-bottom: 30px;
}

.article-content-text p {
	font-size: 18px;
	line-height: 23px;
}

.article-content-text__list {
	font-size: 18px;
	line-height: 23px;
}

.article-content-text__list ol {
	margin-left: 20px !important;
}

/* Стили для секции автора статьи */
.author-section {
	background-color: var(--color-light-background);
}

.author-section .section-title {
	font-size: 38px;
	line-height: 46px;
	font-weight: 400;
	margin-bottom: 50px;
	color: var(--color-dark);
}

.author-wrapper {
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.author-card {
	display: flex;
	gap: 20px;
	width: 100%;
	background-color: #ffffff;
	overflow: hidden;
}

.author-image {
	border-radius: 30px;
	width: 280px;
	aspect-ratio: 1/1.1;
	flex-shrink: 0;
	overflow: hidden;
}

.author-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.author-content {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	gap: 20px;
}

.author-info {
	padding: 30px;
	border-radius: 30px;
	display: flex;
	flex-direction: column;
	background-color: var(--color-light-gray);
	width: 100%;
}

.author-name {
	font-size: 38px;
	line-height: 46px;
	font-weight: 400;
	margin-bottom: 20px;
	color: var(--color-dark);
}

.author-position {
	margin-bottom: 25px;
}

.author-badge {
	display: inline-block;
	background-color: var(--accent-primary);
	color: #ffffff;
	padding: 5px 15px;
	border-radius: 30px;
	font-size: 16px;
	line-height: 20px;
	font-weight: 400;
}

.author-description {
	font-size: 16px;
	line-height: 1.5;
	color: var(--color-secondary-text);
	margin: 0;
	max-width: 500px;
}

.specialist-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px 24px;
	background-color: transparent;
	color: var(--color-primary);
	border: 1px solid black;
	border-radius: 100px;
	width: 100%;
}

.specialist-btn:hover {
	background-color: var(--accent-primary);
	color: #ffffff;
	border-color: var(--accent-primary);
}

@media (max-width: 992px) {
	.other-articles-slider {
		width: 100%;
	}

	.swiper-slide {
		width: 100% !important;
	}
}

/* Адаптив для мобильных устройств */
@media (max-width: 768px) {
	.author-card {
		flex-direction: column;
	}

	.author-image {
		width: 100%;
	}

	.author-info {
		padding: 20px;
	}

	.author-description {
		max-width: 100%;
		margin-bottom: 20px;
	}

	.author-btn {
		max-width: 100%;
	}

	.news-navigation {
		flex-direction: column;
		gap: 20px;
	}

	.articles-navigation {
		flex-direction: column;
		gap: 20px;
	}
}

/* Стили для модального окна шаринга */
.share-modal-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	align-items: center;
	justify-content: center;
}

.share-modal-overlay.active {
	display: flex;
}

.share-modal {
	position: relative;
	background-color: white;
	border-radius: 30px;
	padding: 50px 100px;
	width: 100%;
	max-width: 424px;
	position: relative;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.share-modal-close {
	position: absolute;
	top: 30px;
	right: 30px;
	border: none;
	background: transparent;
	cursor: pointer;
	padding: 8px;
	margin: -8px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s;
}

.share-modal-close:hover {
	background-color: rgba(0, 0, 0, 0.05);
}

.social-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 12px;
	transition: transform 0.2s;
}

.social-icon:hover {
	transform: scale(1.05);
}

.social-icon img {
	width: 48px;
	height: 48px;
}

@media (max-width: 576px) {
	.share-modal {
		width: calc(100% - 32px);
		padding: 20px;
	}

	.social-icons {
		grid-template-columns: repeat(2, 1fr);
	}

	.social-icon img {
		width: 40px;
		height: 40px;
	}
}
