.news_top{
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
}
.news_top_actions{
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.news_top a{
	text-decoration: none;
	color: var(--color-prime, #30964e);
	font-weight: 500;
	transition: opacity .15s;
}
.news_top a:hover{
	opacity: .75;
	text-decoration: underline;
}

/* Карусель на главной */
.news_wrap{
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	margin-top: 20px;
}
.news_wrap .news_card_wrap{
	position: relative;
	width: 24%;
	min-width: 24%;
	margin-right: 40px;
}
.news_wrap .news_card{
	position: relative;
	padding: 15px 15px 30px;
	width: 100%;
	min-width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	margin-right: 0;
	min-height: 325px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s;
}
.news_wrap .news_card_media{
	height: 180px;
	border-radius: inherit;
	overflow: hidden;
	background: rgba(0,0,0,.03);
}
.news_wrap .news_card_media img{
	width: 100%;
	height: 100%;
	object-fit: contain;
}
.news_wrap .news_card_body{
	display: flex;
	flex-direction: column;
	flex: 1;
}
.news_wrap .news_card_date{
	margin: 16px 0;
}
.news_wrap .news_card_title{
	padding-right: 20px;
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: inherit;
}

/* Страница /novosti */
.news_page_inner{
	padding: 40px 0 72px;
}
.news_page_header{
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 36px;
	padding-bottom: 28px;
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.news_page_header_main{
	flex: 1;
	min-width: 0;
}
.news_page .news_page_title{
	margin: 0;
	font-size: clamp(32px, 4.5vw, 52px);
	line-height: 1.1;
	letter-spacing: -.02em;
}
.news_page_lead{
	margin: 12px 0 0;
	max-width: 560px;
	font-size: 15px;
	line-height: 1.55;
	opacity: .65;
}
.news_page_empty{
	margin: 0;
	padding: 48px 24px;
	text-align: center;
	font-size: 15px;
	opacity: .6;
	border: 1px dashed rgba(0,0,0,.12);
	border-radius: 12px;
}
.news_list_grid{
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
}
.news_list_grid .news_card_wrap{
	position: relative;
	width: auto;
	min-width: 0;
	margin: 0;
}
.news_list_grid .news_card{
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 0;
	min-height: 0;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	border: 1px solid rgba(0,0,0,.07);
	box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.news_list_grid .news_card:hover{
	transform: translateY(-3px);
	border-color: rgba(48, 150, 78, .25);
	box-shadow: 0 14px 36px rgba(15, 23, 42, .1);
}
.news_list_grid .news_card_media{
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 200px;
	padding: 14px 16px;
	overflow: hidden;
	background: rgba(0,0,0,.03);
	border-bottom: 1px solid rgba(0,0,0,.05);
	box-sizing: border-box;
}
.news_list_grid .news_card_media img{
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center;
}
.news_list_grid .news_card:hover .news_card_media img{
	transform: none;
}
.news_list_grid .news_card_body{
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 10px;
	padding: 16px 18px 20px;
}
.news_list_grid .news_card_date{
	margin: 0;
	font-size: 13px;
	letter-spacing: .02em;
	opacity: .65;
}
.news_list_grid .news_card_title{
	margin: 0;
	font-size: 15px;
	line-height: 1.45;
	font-weight: 500;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	transition: color .15s;
}
.news_list_grid .news_card:hover .news_card_title{
	color: var(--color-prime, #30964e);
}

/* Страница отдельной новости */
.news_article_inner{
	padding: 40px 0 72px;
	max-width: 820px;
}
.news_article_header{
	position: relative;
	margin-bottom: 28px;
	padding-bottom: 24px;
	padding-right: 36px;
	border-bottom: 1px solid rgba(0,0,0,.08);
}
.news_article_date{
	display: block;
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: .02em;
	opacity: .65;
}
.news_article .news_article_title{
	margin: 0;
	font-size: clamp(26px, 3.8vw, 38px);
	line-height: 1.2;
	letter-spacing: -.02em;
}
.news_article_header .admin_news_pencil{
	position: absolute;
	top: 0;
	right: 0;
}
.news_content{
	font-size: 16px;
	line-height: 1.65;
	color: rgba(0,0,0,.82);
}
.news_content > :first-child{
	margin-top: 0;
}
.news_content p{
	margin: 0 0 1em;
}
.news_content h1,
.news_content h2,
.news_content h3{
	margin: 1.5em 0 .75em;
	font-size: 1.25rem;
	line-height: 1.35;
	font-weight: 600;
}
.news_content h1{
	font-size: 1.35rem;
}
.news_content ul,
.news_content ol{
	margin: 0 0 1em;
	padding-left: 1.4em;
}
.news_content a{
	color: var(--color-prime, #30964e);
	text-decoration: underline;
	text-underline-offset: 2px;
}
.news_content img{
	display: block;
	max-width: min(100%, 520px);
	width: auto;
	height: auto;
	margin: 1.25rem auto;
	border-radius: 10px;
}
.news_content img[width],
.news_content img[height]{
	width: auto !important;
	height: auto !important;
	max-width: min(100%, 520px) !important;
}
.news_article .news_content > h1:first-child{
	display: none;
}

.news_item_header{
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}
.admin_news_pencil{
	position: absolute;
	top: 8px;
	right: 8px;
	z-index: 5;
	width: 20px;
	height: 20px;
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 0;
	cursor: pointer;
	opacity: .75;
}
.admin_news_pencil:hover{
	opacity: 1;
}
.admin_news_pencil img{
	width: 100%;
	height: 100%;
	display: block;
}
.news_top .admin_news_pencil,
.news_item_header .admin_news_pencil{
	position: static;
}
@media (max-width: 1200px){
	.news_list_grid{
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 20px;
	}
}
@media (max-width: 992px){
	.news_wrap .news_card_wrap{
		width: 49%;
		min-width: 49%;
	}
	.news_wrap{
		row-gap: 20px;
		margin-top: 30px;
	}
	.news_top,
	.news_page_header{
		flex-direction: column;
		align-items: flex-start;
	}
	.news_list_grid{
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.news_page_inner{
		padding-top: 32px;
		padding-bottom: 56px;
	}
}
@media (max-width: 560px){
	.news_wrap .news_card_wrap{
		width: 100%;
		min-width: 100%;
		margin-right: 0;
	}
	.news_list_grid{
		grid-template-columns: 1fr;
		gap: 16px;
	}
	.news_page_header{
		margin-bottom: 24px;
		padding-bottom: 20px;
	}
	.news_page_lead{
		font-size: 14px;
	}
	.news_article_inner{
		padding-top: 28px;
		padding-bottom: 48px;
	}
	.news_article_header{
		margin-bottom: 20px;
		padding-bottom: 18px;
		padding-right: 32px;
	}
	.news_content img{
		max-width: 100%;
		border-radius: 8px;
	}
}

.admin_news_modal{
	max-width: 900px;
	margin: 0 auto;
	padding: 24px;
}
.admin_news_modal.is_form{
	max-width: 720px;
	padding: 0;
	overflow: hidden;
}
.admin_news_modal .admin_news_panel{
	padding: 0;
}
.admin_news_modal.is_form .admin_news_form{
	max-height: calc(100vh - 48px);
	overflow-y: auto;
}
.admin_news_table{
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.admin_news_table th,
.admin_news_table td{
	padding: 10px 12px;
	border-bottom: 1px solid rgba(0,0,0,.08);
	text-align: left;
	vertical-align: middle;
}
.admin_news_table th{
	font-weight: 600;
	color: rgba(0,0,0,.55);
	font-size: 13px;
}
.admin_news_col_date{
	white-space: nowrap;
	width: 1%;
}
.admin_news_col_actions{
	width: 1%;
	white-space: nowrap;
	text-align: right;
}
.admin_news_col_heading{
	max-width: 420px;
}
.admin_news_badge{
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	line-height: 1.4;
}
.admin_news_badge.is_published{
	background: rgba(46, 125, 50, .12);
	color: #2e7d32;
}
.admin_news_badge.is_draft{
	background: rgba(0,0,0,.06);
	color: rgba(0,0,0,.55);
}
.admin_news_row_actions{
	display: inline-flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
}
.admin_news_icon_btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 8px;
	background: #fff;
	color: rgba(0,0,0,.55);
	cursor: pointer;
	transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.admin_news_icon_btn:hover{
	background: rgba(76, 175, 80, .08);
	border-color: rgba(76, 175, 80, .45);
	color: #2e7d32;
}
.admin_news_icon_btn:focus-visible{
	outline: none;
	box-shadow: 0 0 0 3px rgba(76, 175, 80, .25);
}
.admin_news_icon_btn svg{
	display: block;
}
a.admin_news_icon_btn{
	text-decoration: none;
}
.admin_news_icon_btn.is_disabled{
	opacity: .35;
	cursor: not-allowed;
	pointer-events: none;
}
.admin_news_icon_btn_danger:hover{
	background: rgba(211, 47, 47, .08);
	border-color: rgba(211, 47, 47, .35);
	color: #c62828;
}
.admin_news_confirm_overlay{
	position: fixed;
	inset: 0;
	background: rgba(15, 23, 42, .45);
	backdrop-filter: blur(4px);
	z-index: 10001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.admin_news_confirm_modal{
	background: #fff;
	width: 100%;
	max-width: 440px;
	padding: 24px;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 23, 42, .18);
}
.admin_news_confirm_title{
	margin: 0 0 12px;
	font-size: 18px;
	font-weight: 600;
}
.admin_news_confirm_lead{
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.5;
}
.admin_news_confirm_lead strong{
	font-weight: 600;
}
.admin_news_confirm_note{
	margin: 0 0 16px;
	font-size: 13px;
	color: rgba(0,0,0,.55);
}
.admin_news_confirm_actions{
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}
.admin_news_confirm_cancel_btn,
.admin_news_confirm_delete_btn{
	min-width: 96px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 14px;
	cursor: pointer;
}
.admin_news_confirm_cancel_btn{
	border: 1px solid rgba(0,0,0,.12);
	background: #fff;
	color: inherit;
}
.admin_news_confirm_cancel_btn:hover{
	background: rgba(0,0,0,.04);
}
.admin_news_confirm_delete_btn{
	border: 1px solid #c62828;
	background: #c62828;
	color: #fff;
}
.admin_news_confirm_delete_btn:hover:not(:disabled){
	background: #b71c1c;
	border-color: #b71c1c;
}
.admin_news_confirm_delete_btn:disabled{
	opacity: .65;
	cursor: wait;
}

/* --- Форма создания / редактирования --- */
.admin_news_form{
	display: flex;
	flex-direction: column;
	gap: 0;
	background: #fff;
	color: #1a1a1a;
}
.admin_news_form_header{
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 20px 52px 20px 24px;
	border-bottom: 1px solid rgba(0,0,0,.06);
	position: relative;
}
.admin_news_form_header_main{
	flex: 1;
	min-width: 0;
}
.admin_news_form_title{
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.3;
}
.admin_news_form_lead{
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: rgba(0,0,0,.55);
}
.admin_news_form_slug{
	display: inline-block;
	margin-top: 10px;
	padding: 4px 10px;
	border-radius: 6px;
	background: rgba(0,0,0,.04);
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: rgba(0,0,0,.55);
}
.admin_news_close_btn{
	position: absolute;
	top: 16px;
	right: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: rgba(0,0,0,.45);
	cursor: pointer;
	transition: background .15s, color .15s;
}
.admin_news_close_btn:hover{
	background: rgba(0,0,0,.06);
	color: rgba(0,0,0,.75);
}
.admin_news_close_btn:focus-visible{
	outline: none;
	box-shadow: 0 0 0 3px rgba(76, 175, 80, .25);
}
.admin_news_section{
	border-bottom: 1px solid rgba(0,0,0,.06);
}
.admin_news_section_head{
	padding: 14px 24px 0;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: rgba(0,0,0,.45);
}
.admin_news_section_body{
	padding: 12px 24px 20px;
}
.admin_news_section_body_editor{
	padding-bottom: 16px;
}
.admin_news_field{
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
}
.admin_news_field + .admin_news_field,
.admin_news_field_row + .admin_news_field{
	margin-top: 14px;
}
.admin_news_field_row{
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}
.admin_news_field_grow{
	flex: 1 1 180px;
	min-width: 0;
}
.admin_news_field_switch{
	flex: 0 0 auto;
	min-width: 140px;
}
.admin_news_label{
	font-size: 13px;
	font-weight: 500;
	color: rgba(0,0,0,.72);
}
.admin_news_input{
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0,0,0,.14);
	border-radius: 8px;
	font-size: 14px;
	line-height: 1.4;
	background: #fff;
	color: inherit;
	transition: border-color .15s, box-shadow .15s;
}
.admin_news_input::placeholder{
	color: rgba(0,0,0,.35);
}
.admin_news_input:hover{
	border-color: rgba(0,0,0,.22);
}
.admin_news_input:focus{
	outline: none;
	border-color: rgba(76, 175, 80, .65);
	box-shadow: 0 0 0 3px rgba(76, 175, 80, .15);
}
.admin_news_hint{
	font-size: 12px;
	color: rgba(0,0,0,.45);
}
.admin_news_switch{
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
	margin-top: 2px;
}
.admin_news_switch input{
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.admin_news_switch_track{
	position: relative;
	width: 42px;
	height: 24px;
	border-radius: 999px;
	background: rgba(0,0,0,.14);
	transition: background .2s;
	flex-shrink: 0;
}
.admin_news_switch_track::after{
	content: '';
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,.2);
	transition: transform .2s;
}
.admin_news_switch input:checked + .admin_news_switch_track{
	background: #4caf50;
}
.admin_news_switch input:checked + .admin_news_switch_track::after{
	transform: translateX(18px);
}
.admin_news_switch input:focus-visible + .admin_news_switch_track{
	box-shadow: 0 0 0 3px rgba(76, 175, 80, .25);
}
.admin_news_switch_text{
	font-size: 13px;
	font-weight: 500;
	color: rgba(0,0,0,.65);
	min-width: 88px;
}
.admin_news_preview_box{
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: flex-start;
}
.admin_news_preview_media{
	flex: 0 0 160px;
	width: 160px;
	height: 120px;
	border-radius: 10px;
	border: 1px dashed rgba(0,0,0,.16);
	background: rgba(0,0,0,.02);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.admin_news_preview_media.is_empty{
	border-style: dashed;
}
.admin_news_preview_placeholder{
	font-size: 12px;
	color: rgba(0,0,0,.4);
	text-align: center;
	padding: 8px;
}
.admin_news_preview_img{
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.admin_news_preview_controls{
	flex: 1 1 200px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 4px;
}
.admin_news_file_input{
	position: absolute;
	width: 0;
	height: 0;
	opacity: 0;
	overflow: hidden;
}
.admin_news_file_btn{
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 9px 16px;
	border: 1px solid rgba(0,0,0,.14);
	border-radius: 8px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	color: rgba(0,0,0,.75);
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.admin_news_file_btn:hover{
	background: rgba(76, 175, 80, .06);
	border-color: rgba(76, 175, 80, .45);
	color: #2e7d32;
}
.admin_news_file_name{
	font-size: 12px;
	color: rgba(0,0,0,.45);
	line-height: 1.4;
	word-break: break-all;
}
.admin_news_editor_wrap{
	border: 1px solid rgba(0,0,0,.14);
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.admin_news_editor_wrap:focus-within{
	border-color: rgba(76, 175, 80, .65);
	box-shadow: 0 0 0 3px rgba(76, 175, 80, .12);
}
.admin_news_editor_wrap .ql-toolbar.ql-snow{
	border: none;
	border-bottom: 1px solid rgba(0,0,0,.08);
	background: rgba(0,0,0,.02);
	padding: 8px 10px;
}
.admin_news_editor_wrap .ql-container.ql-snow{
	border: none;
	font-size: 14px;
}
.admin_news_editor{
	min-height: 240px;
	background: #fff;
}
.admin_news_editor .ql-editor{
	min-height: 240px;
	padding: 14px 16px;
	line-height: 1.55;
}
.admin_news_editor .ql-editor img{
	max-width: 100%;
	height: auto;
}
.admin_news_form_footer{
	position: sticky;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 16px 24px 20px;
	background: linear-gradient(to top, #fff 85%, rgba(255,255,255,.92));
	border-top: 1px solid rgba(0,0,0,.06);
}
.admin_news_msg{
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	line-height: 1.45;
}
.admin_news_msg.is_error{
	background: rgba(211, 47, 47, .08);
	color: #b71c1c;
	border: 1px solid rgba(211, 47, 47, .2);
}
.admin_news_msg.is_success{
	background: rgba(46, 125, 50, .08);
	color: #2e7d32;
	border: 1px solid rgba(46, 125, 50, .2);
}
.admin_news_actions{
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.admin_news_submit_btn{
	min-width: 120px;
}
.admin_news_submit_btn.is_loading{
	opacity: .75;
	cursor: wait;
	pointer-events: none;
}

@media (max-width: 560px){
	.admin_news_form_header{
		padding: 18px 48px 16px 16px;
	}
	.admin_news_section_head{
		padding-left: 16px;
		padding-right: 16px;
	}
	.admin_news_section_body{
		padding-left: 16px;
		padding-right: 16px;
	}
	.admin_news_form_footer{
		padding-left: 16px;
		padding-right: 16px;
	}
	.admin_news_preview_box{
		flex-direction: column;
	}
	.admin_news_preview_media{
		width: 100%;
		flex: none;
	}
}
