.notes-home__slide, .notes-cat__txt { text-wrap: pretty; }

/* ================= Главная =================
   Колонки и кегли — родные: col_offer-title / col_offer-content (как «Услуги»)
   и section-block__title (как манифесты). Здесь только то, чего на сайте нет. */
.notes-home__line {
	position: relative;
	height: 1px;
	background: var(--light_gray_color);
	margin-bottom: 24px;
}
.notes-home__progress {
	position: absolute; left: 0; top: -1px;
	height: 3px; width: 0;
	background: var(--main_color);
}
.notes-home__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.33px;
	color: var(--gray_color);
	margin-bottom: 40px;
}
.notes-home__stage { position: relative; overflow: hidden; }
.notes-home__slide.section-block__title { display: block; margin: 0; color: inherit; line-height: 1.2; }
.notes-home__controls { margin-top: 40px; }
.notes-home__nav { display: flex; align-items: center; gap: 16px; }
.notes-home__byline {
	display: flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}
.notes-home__avatar {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	margin-right: 4px;
	flex: 0 0 auto;
}
.notes-home__name { color: var(--main_color); white-space: nowrap; }
/* ↗ как у заголовков «Услуг» — появляется при наведении */
.notes-home__arrow {
	content: '';
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-left: 0.3em;
	vertical-align: 0.05em;
	background: url('../images/arrow_title.svg') no-repeat center / 100% 100%;
	opacity: 0;
	transform: translate(-0.15em, 0.15em);
	transition: opacity .3s ease, transform .3s ease;
}
@media (hover: hover) {
	.notes-home__slide:hover .notes-home__arrow { opacity: 1; transform: none; }
}
/* адаптив и тач — стрелка видна сразу, без наведения */
@media (hover: none), screen and (max-width: 1024px) {
	.notes-home__arrow { opacity: 1; transform: none; }
}
.notes-home__count { font-variant-numeric: tabular-nums; }
.notes-home__arrows { display: flex; gap: 8px; }
.notes-home__arrows .btn { margin: 0 !important; }

/* ================= Каталог =================
   Сетка: номер (25%, как колонка номеров в «Услугах») | текст | дата.
   Номер и текст — один кегль на одной базовой линии (как «(1) Брендинг…»).
   Наведение — инверсия строки в чёрную полосу на всю ширину экрана, без скруглений. */
.notes-cat__title { margin-bottom: 64px; }
.notes-cat__list { border-bottom: 1px solid var(--light_gray_color); }
.notes-cat__row {
	display: grid;
	/* та же сетка, что у «Услуг»: col-4 (метка) | col-3 из col-8 (номер) | col-9 из col-8 (текст) */
	grid-template-columns: 33.333% 16.667% minmax(0, 1fr);
	column-gap: 0;
	align-items: baseline;
	width: 100%;
	padding: 32px 0 36px;
	border: 0;
	border-top: 1px solid var(--light_gray_color);
	background: transparent;
	color: var(--main_color);
	font: inherit;
	text-align: left;
	cursor: pointer;
	/* полоса на всю ширину экрана: тень всегда есть и всегда обрезана, меняется только цвет —
	   никаких вспышек при уходе курсора */
	box-shadow: 0 0 0 100vmax transparent;
	clip-path: inset(0 -100vmax);
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.notes-cat__row.is-hidden { display: none; }
.notes-cat__num,
.notes-cat__txt {
	font-size: 46px;
	line-height: 1.2;
	letter-spacing: -1.02px;
}
.notes-cat__txt { grid-column: 3; grid-row: 1; text-wrap: wrap; }
.notes-cat__num { grid-column: 2; grid-row: 1; }
.notes-cat__date {
	font-size: 20px;
	line-height: 1.2;
	letter-spacing: -0.33px;
	color: var(--gray_color);
	white-space: nowrap;
	grid-column: 1;
	grid-row: 1;
	transition: color .25s ease;
}
.notes-cat__more { color: var(--gray_color); }
.notes-cat__tail { display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
/* ↗ — тот же файл и пропорции, что у заголовков «Услуг» (offer-item__title:after) */
.notes-cat__arrow {
	display: inline-block;
	width: 0.6em;
	height: 0.6em;
	margin-left: 0.3em;
	vertical-align: 0.05em;
	background: url('../images/arrow_title.svg') no-repeat center / 100% 100%;
	transition: filter .25s ease;
}
@media (hover: hover) {
	.notes-cat__row:hover {
		background-color: var(--main_color);
		box-shadow: 0 0 0 100vmax var(--main_color);
		color: #fff;
		border-top-color: var(--main_color);
	}
	.notes-cat__row:hover + .notes-cat__row { border-top-color: transparent; }
	.notes-cat__row:hover .notes-cat__date { color: rgba(255, 255, 255, .55); }
	.notes-cat__row:hover .notes-cat__arrow { filter: invert(1); }
}

/* ================= Пост: шаблон статьи блога, колонка по центру =================
   Классы и размеры — из статьи блога (blog-date, blog-title, author-block,
   blog-mainimg, blockcontent). Сетка 3 / 6 / 3 как .row/.col сайта. */
.note-detail__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
	column-gap: 16px;
	align-items: start;
}
.note-detail__grid > * { grid-column: 2; min-width: 0; }
.note-detail .blog-title { max-width: none; }
/* WordPress can insert a full-size image in the post body as well as a cover. */
.note-detail .blockcontent {
	display: flow-root;
	max-width: 100%;
	overflow-wrap: anywhere;
}
.note-detail .blockcontent :is(figure, picture, video, img),
.note-detail .blog-mainimg__wrapper {
	max-width: 100%;
	min-width: 0;
}
.note-detail .blockcontent :is(img, video),
.note-detail .blog-mainimg {
	height: auto;
}
.note-detail .blockcontent > :is(figure, img, picture),
.note-detail .blockcontent > p:has(> img:only-child) {
	margin: 0 0 clamp(24px, 4vw, 56px);
}
.note-detail .blockcontent > :is(figure, img, picture):last-child,
.note-detail .blockcontent > p:has(> img:only-child):last-child {
	margin-bottom: 0;
}
.note-detail .blockcontent .wp-block-image img {
	display: block;
	border-radius: 10px;
}
.note-detail .blockcontent > :is(.alignwide, .alignfull) {
	width: 100%;
	margin-inline: 0;
}
/* «Назад» — та же кнопка, что «Все заметки» на главной; слева, на уровне заголовка */
.note-detail__back { grid-column: 1; grid-row: 2; justify-self: start; }
/* Автор — в самом низу, под линией */
.note-detail__author {
	margin-top: 64px;
	padding-top: 32px;
	border-top: 1px solid var(--light_gray_color);
}
.note-detail .blog-title:has(+ .note-detail__author),
.note-detail .blog-mainimg__wrapper:has(+ .note-detail__author) { margin-bottom: 0; }

/* ================= Адаптив ================= */
@media screen and (max-width: 1440px) {
	.notes-cat__txt, .notes-cat__num { font-size: 32px; line-height: 1.25; letter-spacing: -0.69px; }
	.notes-cat__row { padding: 24px 0 28px; }
}
@media screen and (max-width: 1024px) {


	.notes-cat__row { grid-template-columns: 25% minmax(0, 1fr); row-gap: 12px; }
	.notes-cat__date { grid-column: 2; grid-row: 1; }
	.notes-cat__num, .notes-cat__txt { grid-row: 2; }
	.notes-cat__num { grid-column: 1; }
	.notes-cat__txt { grid-column: 2; }
	.notes-cat__more .notes-cat__num, .notes-cat__more .notes-cat__txt { grid-row: 1; }
	.note-detail__grid { grid-template-columns: minmax(0, 1fr); }
	.note-detail__grid > *, .note-detail__back { grid-column: 1; grid-row: auto; }
	.note-detail__author { margin-top: 48px; }
	.note-detail__back { order: -1; margin-bottom: 40px; }
}
@media screen and (max-width: 767px) {
	.notes-home__avatar { width: 24px; height: 24px; }
	.notes-home__byline { gap: 6px; }
	.notes-home__meta { font-size: 16px; line-height: 24px; margin-bottom: 24px; }
	.notes-home__controls { margin-top: 32px; }
	.notes-home__arrows .btn { display: inline-block; }
	.notes-home__controls > .btn_gray { width: 100%; text-align: center; }
	.notes-cat__row { grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; padding: 20px 0 24px; }
	.notes-cat__num { grid-column: 1; grid-row: 1; font-size: 16px; line-height: 24px; letter-spacing: -0.18px; color: var(--gray_color); }
	.notes-cat__date { grid-column: 2; grid-row: 1; font-size: 16px; line-height: 24px; }
	.notes-cat__txt { grid-column: 1 / -1; grid-row: 2; font-size: 22px; line-height: 1.2; letter-spacing: -0.4px; }
	.notes-cat__more .notes-cat__num { grid-row: 1; }
	.notes-cat__more .notes-cat__txt { grid-column: 2; grid-row: 1; font-size: 16px; line-height: 24px; letter-spacing: -0.18px; }
	.notes-cat__title { margin-bottom: 40px; }

}

.notes-home__meta { flex-wrap: wrap; }
.notes-home__slide:focus-visible .notes-home__arrow { opacity: 1; transform: none; }
