/* Правки разбора 06.09.2026 — грузится последним, поэтому перебивает старые правила темы */

/* Карточки в рубриках: заголовок и анонс по левому краю, миниатюра ровным кадром */
ul.catecori-ul li .img-categori img { width: 190px; height: 190px; object-fit: cover; }
ul.catecori-ul li a.zagolovok-kartochki { display: block; text-align: left; font-weight: 600; }
ul.catecori-ul li p.anons-kartochki {
	text-align: left;
	margin: 6px 0 0;
	color: #555;
	font-size: 13px;
	line-height: 1.45;
}

/* Блок под статьёй: автор слева, оценка справа */
.posle-teksta {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	flex-wrap: wrap;
	margin: 28px 0 0;
	padding: 18px 0 0;
	border-top: 1px solid #e2e8ec;
}
.avtor { display: flex; align-items: flex-start; gap: 14px; flex: 1 1 320px; }
.avtor .avtor_foto { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: 0 0 72px; }
.avtor .avtor_imya { font-weight: 700; margin-bottom: 4px; }
.avtor .avtor_opis { color: #555; font-size: 13px; line-height: 1.45; }
.ocenka-statyi { flex: 0 0 auto; text-align: right; }
.ocenka-statyi .post-ratings { white-space: nowrap; }

/* Контакты: три секции одним ритмом и форма */
.obratka { margin-top: 26px; }
.obratka h2 { margin: 26px 0 12px; font-size: 22px; }
.obratka .hp { position: absolute; left: -9999px; }
.forma-obratki input[type="email"],
.forma-obratki textarea {
	width: 100%;
	max-width: 460px;
	padding: 9px 12px;
	margin: 6px 0 14px;
	border: 1px solid #cfd8de;
	border-radius: 4px;
	font: inherit;
	background: #fff;
	box-sizing: border-box;
}
.forma-obratki textarea { min-height: 140px; }
.forma-obratki input[type="submit"] {
	padding: 10px 26px;
	border: 0;
	border-radius: 4px;
	background: #16a99a;
	color: #fff;
	font: inherit;
	cursor: pointer;
}
.forma-obratki input[type="submit"]:hover { background: #12897d; }
.form_error { color: #c0392b; }

/* Оглавление Easy TOC внутри рамки статьи, без чужих правил темы на голые теги */
#ez-toc-container { max-width: 100%; box-sizing: border-box; }
#ez-toc-container nav ul li:before { content: none; }
#ez-toc-container nav a { top: auto; position: static; }

/* Шапка внутренних страниц (06.09.2026): та же структура, что на главной — светлая строка
   «логотип + поиск», под ней полоса меню. Раньше внутри статей меню и поиск жили в одной
   тёмной полосе двумя этажами, и поиск читался как оторванный хвост.
   Слово Романа: шапка должна быть ОДНА И ТА ЖЕ на всех страницах — своих размеров у внутренней
   нет, ничего здесь не переопределяем. Класс оставлен только как зацепка на будущее.
   Если заголовок статьи из-за высоты шапки садится низко — правим отступ заголовка, не шапку. */

/* Подвал: ссылки в одну линию с равными отступами */
footer .link-map-footer a { margin-right: 18px; }

/* Карта сайта: рубрики заголовками, списки в две колонки */
.karta-sajta h2 { margin: 26px 0 10px; font-size: 21px; }
.karta-sajta h2 a, .karta-sajta h3 a { text-decoration: none; }
.karta-sajta h3 { margin: 18px 0 8px; font-size: 17px; }
.karta-sajta ul.karta-spisok { columns: 2; column-gap: 32px; margin: 0 0 8px; padding: 0 0 0 18px; }
.karta-sajta ul.karta-spisok li { list-style: none; break-inside: avoid; margin: 0 0 5px; }

/* Миниатюры на главной — с явной высотой, иначе браузер тянет их из contain-intrinsic-size */
.slider-post .image-carusel2 img,
.slider-post .image-carusel img { width: 190px; height: 190px; object-fit: cover; }
.update-post .update-post-left li img { width: 190px; height: 190px; object-fit: cover; }

/* Картинки в текстах: не шире колонки, пропорции сохраняются (раньше скрипт срывал width/height) */
.innter-page img, .left-content .innter-page img { max-width: 100%; height: auto; }
.innter-page .wp-caption { max-width: 100%; }

/* Подвал: три ссылки в колонке бренда — по строке каждая, без переноса посреди слова */
footer .link-map-footer { display: flex; flex-direction: column; gap: 6px; }
footer .link-map-footer a { margin: 0; white-space: nowrap; }

/* ── Блок сайдбара «Новые или популярные» (переделан 06.09.2026) ───────────── */
.section-content .new-and-popular { padding-bottom: 6px; }
.section-content .new-and-popular .title-page { margin-bottom: 12px; }
.new-and-popular .sidebar-tabs { cursor: pointer; }
.new-and-popular .sidebar-tabs-active { border-bottom: 2px dotted #16a99a; }

.section-content .new-and-popular ul.news-ul { margin: 0; padding: 0; }
.section-content .new-and-popular ul.news-ul li.kartochka-sajdbara {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	padding: 12px 14px;
	border-bottom: 1px solid #eef2f5;
	border-radius: 6px;
	transition: background .2s;
}
.section-content .new-and-popular ul.news-ul li.kartochka-sajdbara:last-child { border-bottom: none; }
.section-content .new-and-popular ul.news-ul li.kartochka-sajdbara:hover { background: #f5fafc; }

.kartochka-sajdbara .kartochka-foto {
	flex: 0 0 88px;
	width: 88px;
	height: 88px;
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #eef2f5;
	line-height: 0;
}
/* Один источник 190×190 на все экраны: на ретине резко, кадр везде одинаковый */
.kartochka-sajdbara .kartochka-foto img {
	width: 88px;
	height: 88px;
	object-fit: cover;
	display: block;
	transition: transform .25s;
}
.kartochka-sajdbara:hover .kartochka-foto img { transform: scale(1.04); }

.kartochka-sajdbara .kartochka-tekst {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding-top: 1px;
}
.kartochka-sajdbara .kartochka-zagolovok {
	display: block;
	font-size: 13.5px;
	line-height: 1.35;
	color: #1a6d99;
	text-decoration: none;
}
.kartochka-sajdbara:hover .kartochka-zagolovok { color: #16a99a; }
.kartochka-sajdbara .kartochka-podpis { font-size: 11.5px; color: #8a9aa5; }

/* Старые правила темы для этого списка больше не работают — снимаем их влияние */
.section-content .new-and-popular ul.news-ul li p { margin: 0; }
.section-content .new-and-popular ul.news-ul li:before,
.section-content .new-and-popular ul.news-ul li:after { content: none; }

@media (max-width: 480px) {
	.kartochka-sajdbara .kartochka-foto,
	.kartochka-sajdbara .kartochka-foto img { flex-basis: 76px; width: 76px; height: 76px; }
}

/* Страница карты сайта — одна колонка на всю ширину, сайдбара нет */
.section-content .left-content.bez-sajdbara { float: none; width: 100%; }
.left-content.bez-sajdbara .karta-sajta ul.karta-spisok { columns: 3; }
@media (max-width: 900px) { .left-content.bez-sajdbara .karta-sajta ul.karta-spisok { columns: 2; } }
@media (max-width: 560px) { .left-content.bez-sajdbara .karta-sajta ul.karta-spisok { columns: 1; } }

/* Ловушка темы: она красит голые <nav>, а Easy TOC оборачивает список оглавления именно в <nav>.
   На телефоне из-за этого пункты оглавления уезжали в тёмно-синюю плашку и читались чёрным по тёмному.
   Сбрасываем оформление любых <nav> внутри текста статьи — заодно защищает будущие плагины. */
.innter-page nav,
#ez-toc-container nav,
#ez-toc-container nav ul,
#ez-toc-container nav li {
	background: none !important;
	background-color: transparent !important;
	background-image: none !important;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
	width: auto;
	height: auto;
	float: none;
	position: static;
}
#ez-toc-container nav ul { margin-top: 4px; }
#ez-toc-container nav li { margin: 0 0 4px; }
#ez-toc-container nav a { color: #1a6d99 !important; text-decoration: none; }
#ez-toc-container nav a:hover { color: #16a99a !important; text-decoration: underline; }


/* ── «Похожие записи» под статьёй (переделан 06.09.2026) ───────────────────────
   Было шесть карточек лентой плагина, стало пять своим шаблоном yarpp-template-pohozhie.php.
   Ряд собран сеткой из пяти равных колонок — дыры справа не остаётся ни при какой ширине,
   а миниатюра берётся одним источником и кадрируется по центру, а не растягивается. */
.pohozhie-zapisi { margin: 30px 0 10px; }
.pohozhie-zapisi .pohozhie-zagolovok {
	margin: 0 0 14px;
	font-size: 20px;
	color: #00466c;
	text-transform: none; /* тема делает заголовкам capitalize — выходило «Похожие Записи» */
}
.pohozhie-setka {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 16px;
}
.pohozhie-setka .pohozhaya {
	display: flex;
	flex-direction: column;
	gap: 8px;
	text-decoration: none;
	min-width: 0;
}
.pohozhie-setka .pohozhaya-foto {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 8px;
	background: #eef2f5;
	line-height: 0;
}
.pohozhie-setka .pohozhaya-foto img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .25s;
}
.pohozhie-setka .pohozhaya:hover .pohozhaya-foto img { transform: scale(1.04); }
.pohozhie-setka .pohozhaya-zagolovok {
	font-size: 13px;
	line-height: 1.35;
	color: #1a6d99;
}
.pohozhie-setka .pohozhaya:hover .pohozhaya-zagolovok { color: #16a99a; }

/* Плагин раскладывал ленту своими стилями — на своём шаблоне они больше не нужны */
.yarpp-related .yarpp-thumbnails-horizontal { display: none; }

@media (max-width: 900px) { .pohozhie-setka { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pohozhie-setka { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }

/* Подрубрики yavizazhist.ru: отдельная компактная навигация над списком статей. */
.rubric-children { display:flex; flex-wrap:wrap; gap:10px; margin:0 0 22px; background:none; }
.rubric-children a { display:inline-block; padding:8px 12px; border:1px solid #d7e4eb; border-radius:4px; color:#1a6d99; text-decoration:none; }
.rubric-children a:hover { border-color:#16a99a; color:#16a99a; }

/* Оглавление и конец статьи. */
.article-toc { max-width: 720px; margin: 24px 0 30px; padding: 20px 24px; background: #f3f9fc; border: 1px solid #d7e8ef; border-left: 4px solid #16a99a; border-radius: 5px; }
.article-toc-title { margin-bottom: 12px; color: #003c6f; font-family: 'FiraSans-Medium'; font-size: 20px; }
.article-toc ol { margin: 0; padding-left: 22px; }
.article-toc li { margin: 6px 0; line-height: 1.4; }
.article-toc li.toc-level-3 { margin-left: 18px; }
.article-toc a { color: #1a6d99; text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }
.posle-teksta { display: block; margin-top: 32px; padding-top: 24px; }
.ocenka-statyi { display: block; width: 100%; margin: 0 0 22px; text-align: center; }
.ocenka-statyi h2 { margin: 0 0 10px; font-size: 20px; }
.ocenka-statyi .post-ratings { width: 100%; text-align: center; white-space: normal; }
.ocenka-statyi .post-ratings img { display: inline-block !important; float: none !important; margin: 0 2px !important; width: 24px; height: 24px; max-width: none; vertical-align: middle; }
.ocenka-statyi .post-ratings-text { display: block; margin-top: 6px; }
.avtor.editorial-card { display: flex; width: 100%; padding: 18px 20px; background: #f5f9fb; border: 1px solid #dbe7ed; border-radius: 6px; box-sizing: border-box; }
.avtor.editorial-card .avtor_foto { display: block; margin: 0; border-radius: 50%; object-fit: cover; }
.avtor.editorial-card .avtor_dolzhnost { color: #168a94; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.avtor.editorial-card .avtor_imya { color: #003c6f; font-size: 17px; }
.avtor.editorial-card .avtor_svyaz { display: inline-block; margin-top: 8px; color: #1a6d99; text-decoration: underline; }
.pohozhie-zapisi { margin: 32px 0 18px; padding-top: 22px; border-top: 1px solid #e2e8ec; }
.pohozhie-setka { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* YouTube остаётся встроенным в статью и помещается в колонку на любом экране. */
.innter-page iframe[src*="youtube.com/embed"],
.innter-page iframe[src*="youtube-nocookie.com/embed"] { display: block; width: min(100%, 560px); height: auto; aspect-ratio: 16 / 9; margin: 22px auto; border: 0; }

/* Шапка: больше воздуха между логотипом и поиском, кнопка у правого края. */
header .logo .text-logo > span:last-child { letter-spacing: .02em; }
header .header-right { width: min(46%, 450px); }
header form.form-header { width: 100%; }
header form.form-header input[type="text"] { width: calc(100% - 58px); margin-left: 0; padding: 0 16px; box-sizing: border-box; }
header form.form-header input[type="submit"] { left: auto; right: 0; border-right: 0; border-left: 1px solid #e5edf1; background-position: 21px 18px; cursor: pointer; }

/* Подвал: знак и служебные ссылки, затем две равные группы рубрик. */
footer .footer-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 48px; align-items: start; }
footer .left-footer { float: none; max-width: none; margin: 0; padding-top: 0; }
footer .footer-links-title { color: #fff; font-family: 'FiraSans-Medium'; font-size: 17px; margin: 0 0 14px; }
footer .left-footer .footer-links-title { margin-top: 20px; padding-left: 67px; }
footer .footer-category-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
footer .footer-categories { display: flex; flex-direction: column; gap: 20px; padding-top: 4px; }
footer .footer-category-group { display: flex; flex-direction: column; gap: 7px; }
footer .footer-category-title { color: #fff; font-size: 17px; font-family: 'FiraSans-Medium'; text-decoration: none; }
footer .footer-category-child { color: #d9edf3; font-size: 14px; text-decoration: none; padding-left: 12px; }
footer .footer-categories a:hover { color: #70d9d1; text-decoration: underline; }
footer .text-footer { clear: both; float: none; max-width: none; margin-top: 24px; }

@media (max-width: 900px) {
  footer .footer-layout { gap: 22px; grid-template-columns: 1fr 2fr; }
  .pohozhie-setka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  header .header-right { width: 100%; max-width: 450px; float: none; margin: 0 auto; }
  header .logo { display: flex; align-items: center; gap: 10px; float: none; width: max-content; max-width: 100%; margin: 0 auto; }
  header .logo img { float: none; margin: 0; }
  header .logo .text-logo { display: block; float: none; margin: 0; }
  header .logo .text-logo > span:first-child { font-size: 25px; line-height: 30px; }
  header form.form-header { margin-top: 16px; }
  footer .footer-layout { grid-template-columns: 1fr; gap: 28px; }
  footer .left-footer { text-align: left; }
  footer .left-footer .footer-links-title { padding-left: 0; }
  footer .left-footer .copirait, footer .left-footer .link-map-footer { padding-left: 0; }
  .article-toc { padding: 16px 18px; }
}

/* Главная: две подборки во всю ширину вместо слайдера, разнородного списка и сайдбара. */
.section-content .home-main { float: none; width: 100%; }
.home-post-section { margin: 26px 0 38px; }
.home-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.home-section-kicker { display: block; margin-bottom: 4px; color: #168a94; font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.home-section-title { color: #003c6f; font-family: 'FiraSans-Medium'; font-size: 28px; line-height: 1.2; }
.home-section-more { flex: 0 0 auto; padding-bottom: 3px; color: #1a6d99; font-size: 14px; text-decoration: none; border-bottom: 1px solid #9adbd7; }
.home-section-more:hover { color: #12897d; border-color: #12897d; }
.home-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.home-post-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #dbe7ed; border-radius: 8px; color: #003c6f; text-decoration: none; box-shadow: 0 3px 12px rgba(0, 59, 95, .045); transition: border-color .2s, box-shadow .2s, transform .2s; }
.home-post-card:hover { color: #003c6f; border-color: #70c9c1; box-shadow: 0 8px 22px rgba(0, 59, 95, .1); transform: translateY(-2px); }
.home-post-image { display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: #eaf2f5; }
.home-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.home-post-card:hover .home-post-image img { transform: scale(1.035); }
.home-post-category { margin: 16px 16px 7px; color: #168a94; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.home-post-title { margin: 0 16px 16px; color: #003c6f; font-family: 'FiraSans-Medium'; font-size: 17px; line-height: 1.35; }
.home-post-date { margin: auto 16px 16px; color: #81939e; font-size: 12px; }

/* Сохранённый текст главной читается как путеводитель, с переходами в тематические рубрики. */
.home-guide { max-width: 860px; margin: 54px auto 68px; padding-top: 35px; border-top: 1px solid #dbe7ed; }
.home-guide h1 { margin: 4px 0 21px; font-size: 32px; }
.home-guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 25px; padding: 18px 20px; background: #f3f9fc; border: 1px solid #dbe7ed; border-radius: 7px; }
.home-guide-links-label { width: 100%; color: #003c6f; font-family: 'FiraSans-Medium'; font-size: 16px; }
.home-guide-links a { display: inline-block; padding: 8px 12px; color: #1a6d99; background: #fff; border: 1px solid #cfe1e8; border-radius: 4px; font-size: 14px; line-height: 1.3; text-decoration: none; }
.home-guide-links a:hover { color: #12897d; border-color: #70c9c1; }
.home-guide-body > p:first-child { font-size: 17px; line-height: 1.65; color: #254358; }
.home-guide-body p { margin-bottom: 19px; font-size: 16px; line-height: 1.68; }
.home-guide-body h2 { margin: 42px 0 17px; padding-top: 24px; border-top: 1px solid #dbe7ed; font-size: 25px; }
.home-guide-body h3 { margin: 30px 0 15px; font-size: 21px; }
.home-guide-body p a { color: #087b89; text-decoration: underline; text-underline-offset: 3px; }
.home-guide-body p a:hover { color: #003c6f; }
.home-guide .article-toc { max-width: none; }

@media (max-width: 900px) {
  .home-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .home-post-section { margin: 22px 0 32px; }
  .home-section-heading { align-items: flex-start; }
  .home-section-title { font-size: 23px; }
  .home-section-more { margin-top: 20px; font-size: 12px; }
  .home-post-grid { gap: 10px; }
  .home-post-category { margin: 12px 12px 5px; font-size: 11px; }
  .home-post-title { margin: 0 12px 12px; font-size: 14px; }
  .home-post-date { margin: auto 12px 12px; }
  .home-guide { margin: 38px auto 50px; padding-top: 28px; }
  .home-guide h1 { font-size: 27px; }
  .home-guide-links { padding: 15px; }
  .home-guide-links a { font-size: 13px; }
  .home-guide-body p { font-size: 15px; }
}

/* Рубрики и поиск: две просторные карточки вместо трёх тесных колонок с обрезанными фото. */
.section-content ul.catecori-ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0 0 28px; padding: 0; list-style: none; }
.section-content ul.catecori-ul:after { display: none; content: none; }
.section-content ul.catecori-ul li,
.section-content ul.catecori-ul li:nth-child(3n) { display: flex; flex-direction: column; min-width: 0; width: auto; float: none; clear: none; margin: 0; overflow: hidden; background: #fff; border: 1px solid #dbe7ed; border-radius: 8px; box-shadow: 0 3px 12px rgba(0, 59, 95, .045); }
.section-content ul.catecori-ul li:nth-child(3n) + li { clear: none; }
.section-content ul.catecori-ul li .img-categori { width: 100%; margin: 0; overflow: hidden; border-radius: 0; aspect-ratio: 4 / 3; background: #eaf2f5; }
.section-content ul.catecori-ul li .img-categori a { display: block; width: 100%; height: 100%; line-height: 0; }
.section-content ul.catecori-ul li .img-categori img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0; transition: transform .25s; }
.section-content ul.catecori-ul li:hover .img-categori img { transform: scale(1.035); }
.section-content ul.catecori-ul li a.zagolovok-kartochki { margin: 17px 20px 0; color: #003c6f; font-family: 'FiraSans-Medium'; font-size: 18px; font-weight: normal; line-height: 1.35; text-decoration: none; }
.section-content ul.catecori-ul li a.zagolovok-kartochki:hover { color: #12897d; text-decoration: underline; }
.section-content ul.catecori-ul li p.anons-kartochki { margin: 9px 20px 21px; color: #42505a; font-size: 14px; line-height: 1.6; }
@media (max-width: 560px) {
  .section-content ul.catecori-ul { grid-template-columns: 1fr; gap: 18px; }
  .section-content ul.catecori-ul li a.zagolovok-kartochki { margin: 15px 16px 0; font-size: 17px; }
  .section-content ul.catecori-ul li p.anons-kartochki { margin: 8px 16px 18px; }
}

/* Сайдбар: обе подборки видны сразу, каждая в своём блоке. */
.section-content .sidebar-list-block { padding: 17px 0 5px; margin-bottom: 20px; }
.section-content .sidebar-list-block .title-page { margin: 0 16px 7px; padding: 0 0 12px; border-bottom: 2px solid #e1eff1; color: #003c6f; font-size: 19px; line-height: 1.25; }
.section-content .sidebar-list-block ul.news-ul li.kartochka-sajdbara { padding: 12px 13px; }
@media (max-width: 768px) {
  .section-content .saitbar > .sidebar-list-block { float: none; width: 100%; }
}

/* Оценка статьи: чёткие звёзды и удобные для касания области вместо GIF 12×12. */
.ocenka-statyi { box-sizing: border-box; max-width: 710px; padding: 22px 20px 20px; background: #f4f9fb; border: 1px solid #dce9ee; border-radius: 8px; box-shadow: 0 6px 20px rgba(0, 59, 95, .055); }
.ocenka-statyi h2 { margin: 0 0 5px; color: #003c6f; font-size: 21px; line-height: 1.25; }
.ocenka-statyi .ocenka-hint { margin: 0 0 12px; color: #647f8d; font-size: 14px; line-height: 1.4; }
.ocenka-statyi .post-ratings { color: #617884; font-size: 14px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ocenka-statyi .rating-stars { display: flex; justify-content: center; gap: 3px; margin: 0 auto 10px; }
.ocenka-statyi .rating-star { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 7px; background: transparent; transition: background-color .16s, transform .16s; }
.ocenka-statyi .rating-star::before { position: absolute; content: "\f006"; font-family: FontAwesome; font-size: 31px; line-height: 1; color: #9cb3bf; pointer-events: none; -webkit-font-smoothing: antialiased; }
.ocenka-statyi .rating-star:has(img[src*="rating_on"])::before,
.ocenka-statyi .rating-star:has(img[src*="rating_over"])::before { content: "\f005"; color: #d9a33d; }
.ocenka-statyi .rating-star:has(img[src*="rating_half"])::before { content: "\f123"; color: #d9a33d; }
.ocenka-statyi .rating-star:not(.rating-star-readonly):hover { background: #e4f3f2; }
.ocenka-statyi .rating-star:not(.rating-star-readonly):active { transform: scale(.96); }
.ocenka-statyi .rating-star:focus-within { outline: 2px solid #16a99a; outline-offset: 2px; }
.ocenka-statyi .post-ratings .rating-star img { position: absolute; inset: 0; z-index: 1; display: block !important; width: 44px !important; height: 44px !important; margin: 0 !important; opacity: 0; cursor: pointer; }
.ocenka-statyi .rating-star-readonly img { cursor: default !important; }
.ocenka-statyi .post-ratings-text { margin-top: 7px; color: #168a94; font-size: 13px; }
@media (max-width: 480px) {
  .ocenka-statyi { padding: 20px 12px; }
}

/* Между последним материалом рубрики или статьи и подвалом нужен самостоятельный интервал. */
.section-content.section-archive,
.section-content.section-article { margin-bottom: 64px; }
@media (max-width: 560px) {
  .section-content.section-archive,
  .section-content.section-article { margin-bottom: 48px; }
}
