/* Новости, блог, отзывы. Размеры — с досок News/Blog/Reviews (1440 и 390). Крошки и «страницы» — из theme.css. */

.rs-posts-page, .rs-post-page, .rs-reviews-page { padding-top: 24px; padding-bottom: 72px; }
.rs-posts-page > *, .rs-post-page > *, .rs-reviews-page > * { margin-block: 0; }
.rs-posts-page > * + *, .rs-post-page > * + *, .rs-reviews-page > * + * { margin-block-start: 24px; }
.rs-posts-page__title { margin: 0; font-size: 40px; font-weight: 700; line-height: 1.15; }
.rs-posts-page__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; }
.rs-posts-count { color: var(--rs-muted); font-variant-numeric: tabular-nums; }

/* Плашки */
.rs-flags { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rs-flag { display: inline-block; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.rs-flag--done { background: var(--rs-dark); color: #fff; }
.rs-flag--old { border: 1px solid var(--rs-orange-text); background: #FFF1E2; color: var(--rs-orange-text); }

/* Карточки списков */
.rs-post-list .wp-block-post-template { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.rs-post-list--blog .wp-block-post-template { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rs-post-list .wp-block-post-template > li { display: flex; margin: 0; }
.rs-pcard { position: relative; flex: 1; display: flex; flex-direction: column; border: 1px solid var(--rs-line); border-radius: 14px; overflow: hidden; background: #fff; }
.rs-post-list--blog .rs-pcard { border-radius: 16px; }
.rs-pcard > * { margin: 0 !important; }
.rs-pcard__media { position: relative; background: var(--rs-light); }
.rs-pcard__media .rs-flags { position: absolute; top: 10px; left: 10px; z-index: 1; margin: 0; }
.rs-pcard__img, .rs-pcard__media .wp-block-post-featured-image { display: block; background: var(--rs-light); }
.rs-pcard__img img { display: block; width: 100%; }
.rs-pcard__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px; }
.rs-post-list--blog .rs-pcard__body { padding: 20px; }
.rs-pcard__body > * { margin: 0 !important; }
.rs-pcard__date { font-size: 14px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-pcard__title { font-size: 18px; font-weight: 600; line-height: 1.25; }
.rs-post-list--blog .rs-pcard__title { font-family: inherit; font-size: 19px; line-height: 1.3; }
.rs-pcard__title a { color: var(--rs-dark); text-decoration: none; }
.rs-pcard__title a::after { content: ""; position: absolute; inset: 0; }
.rs-pcard__text { font-size: 15px; line-height: 1.5; }
.rs-post-list--blog .rs-pcard__text { color: var(--rs-muted); line-height: 1.55; }
.rs-pcard__text p { margin: 0; }
.rs-pcard__text .wp-block-post-excerpt__more-link { display: block; margin-top: 10px; font-weight: 600; color: var(--rs-orange-text); text-decoration: none; }
.rs-post-list .wp-block-query-pagination { margin-top: 40px; }
.rs-post-list .rs-pagination .wp-block-query-pagination-previous { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1.5px solid var(--rs-line); border-radius: 10px; color: var(--rs-dark); text-decoration: none; font-weight: 600; }

/* Запись */
.rs-post-page__grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.rs-post-page__grid > * { margin: 0; }
.rs-post-page__main { display: flex; flex-direction: column; gap: 20px; }
.rs-post-page__main > * { margin: 0 !important; }
.rs-post-page__main--article { max-width: 860px; width: 100%; margin: 0 auto !important; gap: 16px; }
.rs-post-page__title { font-size: 40px; font-weight: 700; line-height: 1.15; }
.rs-blog-single .rs-post-page__title { font-size: 34px; line-height: 1.2; }
.rs-post-page__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-post-page__meta > * { margin: 0; }
.rs-until { padding: 6px 12px; border-radius: 8px; background: var(--rs-light); color: var(--rs-dark); font-weight: 600; }
.rs-post-page__date { font-size: 15px; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-post-page__img img { display: block; width: 100%; height: auto; border-radius: 14px; background: var(--rs-light); }
.rs-blog-single .rs-post-page__img img { border-radius: 16px; }
.rs-post-page__content { max-width: 760px; font-size: 18px; line-height: 1.6; }
.rs-blog-single .rs-post-page__content { max-width: none; font-size: 17px; line-height: 1.65; }
.rs-post-page__content > * { margin-block: 0 14px; }
.rs-post-page__content img { max-width: 100%; height: auto; }
.rs-post-page__content h2 { margin-top: 20px; font-size: 24px; line-height: 1.25; }
.rs-post-page__content ul, .rs-post-page__content ol { padding-left: 22px; }
.rs-post-page__back .wp-block-button__link { display: flex; align-items: center; height: 52px; padding: 0 24px; border: 1.5px solid var(--rs-dark); border-radius: 10px; background: #fff; color: var(--rs-dark); font-weight: 600; }
.rs-post-page__back .wp-block-button__link:hover { background: var(--rs-dark); color: #fff; }

/* Другие новости / другие статьи */
.rs-other { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--rs-line); border-radius: 14px; }
.rs-other__title { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.2; }
.rs-other__list { display: flex; flex-direction: column; gap: 16px; }
.rs-other__item { display: flex; align-items: center; gap: 14px; color: var(--rs-dark); text-decoration: none; }
.rs-other__item:hover { color: var(--rs-orange-text); }
.rs-other__img { flex: none; width: 80px; height: 64px; border-radius: 8px; background: var(--rs-light); overflow: hidden; }
.rs-other__img img { display: block; width: 100%; height: 100%; object-fit: contain; }
.rs-other__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 600; line-height: 1.3; }
.rs-other__text time { font-size: 13px; font-weight: 400; color: var(--rs-muted); font-variant-numeric: tabular-nums; }
.rs-other--cards { margin: 52px auto 0 !important; padding: 0; border: 0; max-width: 1344px; }
.rs-other--cards .rs-other__title { font-size: 26px; }
.rs-other--cards .rs-other__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rs-other--cards .rs-other__item { flex-direction: column; align-items: stretch; gap: 0; border: 1px solid var(--rs-line); border-radius: 16px; overflow: hidden; }
.rs-other--cards .rs-other__img { width: 100%; height: 200px; border-radius: 0; }
.rs-other--cards .rs-other__img img { object-fit: cover; }
.rs-other--cards .rs-other__text { padding: 16px 20px 20px; gap: 6px; }

/* Отзывы */
.rs-reviews-page__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 32px; }
.rs-reviews-page__head > * { margin: 0; }
.rs-reviews-page__intro > * { margin: 0; }
.rs-reviews-page__intro .rs-posts-page__title { font-size: 36px; font-weight: 600; margin-bottom: 8px; }
.rs-reviews-page__count { color: var(--rs-muted); }
/* Кнопки «Отзывы на Яндекс Картах» — по магазину (доска Reviews: оранжевая кнопка 60 px со звездой и стрелкой). */
.rs-ya-reviews { display: flex; flex-wrap: wrap; gap: 12px; }
.rs-ya-reviews__btn { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 24px; border-radius: 12px; background: var(--rs-orange); color: var(--rs-dark); text-decoration: none; }
.rs-ya-reviews__btn:hover { background: var(--rs-dark); color: #fff; }
.rs-ya-reviews__btn svg { flex: none; }
.rs-ya-reviews__text { display: flex; flex-direction: column; line-height: 1.25; }
.rs-ya-reviews__text b { font-size: 17px; font-weight: 700; }
.rs-ya-reviews__text span { font-size: 14px; font-weight: 500; }
.rs-reviews-page__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rs-reviews-page__list > * { margin: 0 !important; }
.rs-reviews-page__list .wp-block-quote { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding: 22px 24px; border: 0; border-radius: 16px; background: var(--rs-light); font-size: 16px; line-height: 1.55; }
.rs-reviews-page__list .wp-block-quote p { margin: 0; font-size: inherit; font-style: normal; }
.rs-reviews-page__list .wp-block-quote cite { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; font-style: normal; color: var(--rs-muted); }
.rs-reviews-page__list .wp-block-quote cite b { font-weight: 600; }
.rs-reviews-page__list .wp-block-quote .rs-review-date { font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) {
	.rs-post-list .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-post-list--blog .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rs-post-page__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
	.rs-other--cards .rs-other__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 782px) {
	.rs-posts-page, .rs-post-page, .rs-reviews-page { padding-top: 16px; padding-bottom: 48px; }
	.rs-posts-page__title, .rs-reviews-page__intro .rs-posts-page__title { font-size: 26px; line-height: 1.2; }
	.rs-post-page__title, .rs-blog-single .rs-post-page__title { font-size: 26px; }
	.rs-post-list .wp-block-post-template, .rs-post-list--blog .wp-block-post-template, .rs-other--cards .rs-other__list, .rs-reviews-page__list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.rs-post-page__content, .rs-blog-single .rs-post-page__content { font-size: 16px; }
	.rs-post-page__content h2 { font-size: 20px; }
	.rs-reviews-page__head > .rs-ya-reviews { width: 100%; flex-direction: column; gap: 10px; }
	.rs-ya-reviews__btn { min-height: 56px; padding: 8px 16px; }
	.rs-ya-reviews__text { flex: 1; }
	.rs-ya-reviews__text b { font-size: 16px; }
	.rs-other { padding: 18px; }
	.rs-other--cards { padding: 0; }
	.rs-post-list .wp-block-query-pagination { margin-top: 28px; }
}
