/* Контейнер */
.hero {
    background: #fbfbfb;
}

@media (min-width: 576px) {
  .hero {
    margin-left: calc((576px - 100vw) / 2);
    margin-right: calc((576px - 100vw) / 2);
  }
}
@media (min-width: 768px) {
  .hero {
    margin-left: calc((768px - 100vw) / 2);
    margin-right: calc((768px - 100vw) / 2);
  }
}
@media (min-width: 992px) {
  .hero {
    margin-left: calc((992px - 100vw) / 2);
    margin-right: calc((992px - 100vw) / 2);
  }
}
@media (min-width: 1200px) {
  .hero {
    margin-left: calc((1200px - 100vw) / 2);
    margin-right: calc((1200px - 100vw) / 2);
  }
}
@media (min-width: 1680px) {
  .hero {
    margin-left: calc((1680px - 100vw) / 2);
    margin-right: calc((1680px - 100vw) / 2);
  }
}

.hero__container {
	margin: 0 auto;

	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 24px;
	align-items: center;
	height: calc(100vh - 80px);
}

/* Левая колонка */
.hero__content {
	padding-right: 24px;
}

.hero__title {
	font-size: clamp(32px, 3.4vw, 50px);
    line-height: 1.05;
    font-weight: 400;
    color: #222222;
    margin: 0 0 20px;
}

.hero__divider {
	height: 2px;
	width: 100%;
	max-width: 560px;
	background: #E5E5E5;
	margin: 12px 0 20px;
}

.hero__description {
	color: #6c757d;
	font-size: clamp(14px, 1.4vw, 22px);
	line-height: 1.55;
	margin-bottom: 20px;
}

.hero__button {
	display: inline-block;
	padding: 10px 18px;
	border: 1px solid #B9B9B9;
	text-decoration: none;
	color: #222222;
	transition: .2s ease;
	font-size: 14px;
	line-height: 1;
}

.hero__button:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
}

/* Карточки статей */
.hero__articles {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 28px;
}

.hero__article {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 12px;
	padding: 12px;
	border-radius: 12px;
	background: #f8f9fa;
	text-decoration: none;
	color: inherit;
}

.hero__article-image {
	width: 72px;
	height: 54px;
	overflow: hidden;
}

.hero__article-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.hero__article-type {
	display: inline-block;
	font-size: 12px;
	color: #539E53;
	margin-bottom: 6px;
}

.hero__article-title {
	font-size: 14px;
	line-height: 1.3;
	color: #222222;
	margin: 0;
}

/* Правая колонка (картинка) */
.hero__media {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.hero__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Адаптив */
@media (max-width: 1024px) {
	.hero__container {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.hero__content {
		padding-right: 0;
	}

	.hero__media {
		min-height: 320px;
	}

	.hero__articles {
		grid-template-columns: 1fr;
	}
}



.page-detail {
	display:flex;
	flex-direction:column;
	gap:50px;
}

.title-detail{
	display:flex;
	flex-direction:column;
	justify-content: flex-start;
	align-items: flex-start;
	gap:10px;
}

.tag {
	padding:5px 10px;
	font-size:24px;
	color:white;
	background-color:#539E53;
	border-radius:8px;
}

.title-name-date {
	width:100%;
	display:flex;
	justify-content:space-between;

	@media (max-width: 1200px) {
		flex-direction: column;
	}
	    
}

.title-date {
	color:#AFADA4;
	font-size:24px;
}

.title-img {
	width:100%;
	max-height: 620px;
	object-fit: cover;
	border-radius:10px;
}



.content-container {
	display:flex;
	flex-direction:row;
	@media (max-width: 1200px) {
		flex-direction: column-reverse;
	}
	gap:50px;
}

.content-post {
	flex:2;
	font-size:24px;
}
.page-detail .title-name {
    font-size: clamp(1.5rem, 2.5vw, 2.8rem);
}
.content-post img {
	max-width: 100%;
}
.content-card-catalog {
	display: flex;
	flex-direction: column;
	flex:1;
	gap:10px;
}

.other-posts-container {
	display: flex;
	flex-direction: column;
}
.other-posts-cards {
	display: flex;
	gap:20px;
}

@media (max-width: 1200px) {
	.tag {
		font-size:16px;
	}

	.title-date  {
		font-size:18px;
	}
	.content-post{
		font-size:18px;
	}
	.title-img {
		max-height: 400px;
	}
}

@media (max-width: 375px) {
	.tag {
		font-size:14px;
	}
	.content-post {
		font-size:12px;
	}
	.title-date{
		font-size:12px;
	}
	.title-img {
		max-height: 200px;
	}
}

.video-post {
	border-radius: 10px;
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 66%; /* Соотношение 16:9 */
	overflow: hidden;
}
.video-post  iframe,
.video-post  video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}