/*
 * IVA Courses — стили раздела "Блог" (page-blog.php, single.php, ACF Blocks
 * blocks/*). Загружается только на странице блога и записях типа "post"
 * (см. iva_courses_blog_assets() в functions.php).
 *
 * Переменные цветов/шрифтов — из общего assets/css/course.css (--iva-*,
 * IBM Plex Mono / Bebas Neue), здесь не дублируются.
 */

/* ─── ОБЩИЕ КАРТОЧНЫЕ ЭЛЕМЕНТЫ ─── */
.tag {
	display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: 11px;
	font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
	padding: 5px 10px; border-radius: 6px; margin-bottom: 10px;
}
.tag-story   { background: rgba(168,27,0,0.10); color: var(--iva-red); }
.tag-article { background: rgba(0,44,92,0.10); color: var(--iva-blue); }
.tag-gallery { background: rgba(0,0,0,0.08); color: rgba(0,0,0,0.65); }

/* ─── BLOG HERO / FILTER BAR / FEED — 1:1 из blog-common.css ─── */
.blog-hero { background: var(--iva-gray-bg); padding: 64px 0 48px; border-bottom: 1px solid var(--iva-gray-line); }
.blog-hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: 52px; letter-spacing: 0.5px; line-height: 1; margin-bottom: 16px; }
.blog-hero p { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: rgba(0,0,0,0.55); max-width: 640px; line-height: 1.7; }

.featured-wrap { padding: 40px 0 8px; }
.feed-wrap { padding: 40px 0 24px; }
/* Компенсирует sticky-хедер (64px) при плавном скролле к #feed по клику на фильтр-таб. */
#feed { scroll-margin-top: 64px; }
.featured-label, .feed-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(0,0,0,0.32); margin-bottom: 16px; }

.featured-main {
	display: grid; grid-template-columns: 1.15fr 1fr; gap: 0;
	border: 1.5px solid var(--iva-black); border-radius: 14px; overflow: hidden;
	margin-bottom: 20px; text-decoration: none; color: inherit;
}
.featured-main .card-media { min-height: 380px; border-radius: 0; border: none; }
.featured-main .card-body { padding: 40px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.featured-main .card-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; line-height: 1.08; letter-spacing: 0.3px; margin: 0; }
.featured-main .card-teaser { font-family: 'IBM Plex Mono', monospace; font-size: 12px; line-height: 1.65; color: rgba(0,0,0,0.55); }
.featured-main .card-date { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(0,0,0,0.32); }

.featured-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 8px; }

.filter-bar { background: var(--iva-white); border-bottom: 1px solid var(--iva-gray-line); position: sticky; top: 64px; z-index: 50; }
.filter-tabs { display: flex; gap: 8px; padding: 16px 0; flex-wrap: wrap; }
.filter-tab {
	font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700;
	padding: 9px 18px; border-radius: 24px; border: 1.5px solid transparent;
	background: transparent; color: rgba(0,0,0,0.45); cursor: pointer; transition: all 0.15s ease;
	text-decoration: none; display: inline-block;
}
.filter-tab:hover { color: var(--iva-black); background: rgba(0,0,0,0.04); }
.filter-tab.active { background: var(--iva-black); color: #fff; }

.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
.card {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	border: 1.5px solid var(--iva-black); border-radius: 14px; overflow: hidden;
	background: var(--iva-white); transition: transform 0.18s ease, box-shadow 0.18s ease;
	height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,0.12); }

.card-media { aspect-ratio: 16/10.5; width: 100%; border-radius: 0; border: none; border-bottom: 1.5px solid var(--iva-black); overflow: hidden; }
.card-media img, .featured-main .card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.card-body { padding: 22px 22px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; line-height: 1.08; letter-spacing: 0.3px; }
.card-teaser { font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(0,0,0,0.55); line-height: 1.65; flex: 1; }
.card-author { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.card-author .avatar { width: 30px; height: 30px; padding: 0; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: rgba(0,0,0,0.06); border: 1.5px dashed rgba(0,0,0,0.22); display: flex; align-items: center; justify-content: center; font-size: 8px; color: rgba(0,0,0,0.32); text-align: center; line-height: 1.2; }
.card-author .avatar img { width: 100%; height: 100%; object-fit: cover; }
.card-author .name { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; color: var(--iva-black); }
.card-author .role { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: rgba(0,0,0,0.4); }

.card.type-gallery { grid-column: span 2; }
.card-collage { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; aspect-ratio: 16/6.2; border-bottom: 1.5px solid var(--iva-black); overflow: hidden; }
.card-collage .block { border-radius: 0; border: none; background: rgba(0,0,0,0.045); }
.card-collage .block:nth-child(odd) { background: rgba(0,0,0,0.065); }
.card-collage .block img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.type-gallery .card-body { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; }
.card.type-gallery .card-title { font-size: 26px; }

.card-media.brand-cover {
	position: relative; aspect-ratio: 16/10.5; display: flex; align-items: flex-end;
	background: linear-gradient(135deg, var(--iva-blue), var(--iva-black)); overflow: hidden; padding: 16px;
}
.card-media.brand-cover.cover-b { background: linear-gradient(135deg, var(--iva-red), var(--iva-black)); }
.card-media.brand-cover.cover-c { background: linear-gradient(135deg, #333, var(--iva-black)); }
.card-media.brand-cover .tag-on-cover { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,0.14); color: #fff; margin: 0; }
.card-media.brand-cover .cover-mark { font-family: 'Bebas Neue', sans-serif; font-size: 20px; color: rgba(255,255,255,0.85); letter-spacing: 1px; }
.card-media.brand-cover .diffusion { position: absolute; inset: 0; opacity: 0.25; pointer-events: none; }

/* ─── NEWSLETTER / LEAD-MAGNET CARDS ─── */
.card--newsletter--wide { grid-column: span 2; border-radius: 14px; overflow: hidden; background: var(--iva-black); color: #fff; display: flex; align-items: center; }
.nl-photo-inner { padding: 32px; }
.nl-label { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--iva-red); color: #fff; padding: 4px 10px; border-radius: 5px; }
.nl-title { font-family: 'Bebas Neue', sans-serif; font-size: 24px; margin-top: 12px; }
.nl-sub { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 8px; max-width: 440px; }
.nl-btn { margin-top: 16px; display: inline-flex; }

/* ─── PAGINATION ─── */
.feed-loader { text-align: center; margin-top: 32px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(0,0,0,0.4); }
.feed-sentinel { height: 1px; }
.feed-empty-message { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: rgba(0,0,0,0.5); }

/* ─── ARTICLE HEADER / COURSE PROMO / RELATED POSTS (single.php) ───
   1:1 из landing/article-story.html + blog-common.css — не менять
   произвольно, это утверждённый дизайн. */
.article-header { background: var(--iva-gray-bg); padding: 48px 0; border-bottom: 1px solid var(--iva-gray-line); }
.article-header-grid { display: grid; grid-template-columns: 1fr 260px; gap: 48px; align-items: center; }
.article-tag { margin-bottom: 18px; }
.article-header h1 { font-family: 'Bebas Neue', sans-serif; font-size: 44px; line-height: 1.04; letter-spacing: 0.3px; margin-bottom: 16px; }
.article-desc { font-family: 'IBM Plex Mono', monospace; font-size: 14px; color: rgba(0,0,0,0.6); line-height: 1.7; max-width: 620px; margin-bottom: 26px; }

.author-plaque { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.author-plaque .avatar-sm { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.author-plaque .avatar-sm img { width: 100%; height: 100%; object-fit: cover; }
.author-plaque .who { display: flex; flex-direction: column; gap: 2px; }
.author-plaque .who .name { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; }
.author-plaque .who .role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(0,0,0,0.45); }
.author-plaque .course-link {
	font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700;
	color: var(--iva-blue); text-decoration: none; border: 1.5px solid rgba(0,44,92,0.3);
	padding: 7px 14px; border-radius: 20px; background: rgba(0,44,92,0.06); transition: all 0.15s ease;
}
.author-plaque .course-link:hover { background: rgba(0,44,92,0.12); border-color: var(--iva-blue); }

.article-header-photo { aspect-ratio: 1/1; border-radius: 12px; overflow: hidden; }
.article-header-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.article-body { max-width: 760px; margin: 0 auto; padding: 56px 40px; }
.article-body > * + * { margin-top: 22px; }
.article-body p { font-family: 'IBM Plex Mono', monospace; font-size: 14px; line-height: 1.85; color: rgba(0,0,0,0.78); }
.article-body h2 { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 0.3px; margin-top: 48px; }
.article-body--wide { max-width: 1200px; }

.course-promo-wrap { padding: 40px 0 64px; }
.course-promo { background: var(--iva-black); border-radius: 20px; overflow: hidden; }
.course-promo-inner { display: grid; grid-template-columns: 1.35fr 1fr; align-items: stretch; }
.cp-content { padding: 44px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.cp-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-tag { font-family: 'IBM Plex Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,0.6); }
.cp-title { font-family: 'Bebas Neue', sans-serif; font-size: 34px; color: #fff; letter-spacing: 0.3px; line-height: 1.05; }
.cp-sub { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: rgba(255,255,255,0.55); line-height: 1.7; max-width: 440px; }
.cp-bullets { display: flex; flex-direction: column; gap: 9px; list-style: none; margin: 0; padding: 0; }
.cp-bullets li { display: flex; align-items: flex-start; gap: 10px; font-family: 'IBM Plex Mono', monospace; font-size: 12px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.cp-bullets li::before { content: '—'; color: var(--iva-red); font-weight: 700; flex-shrink: 0; }
.cp-btn { background: #fff; color: var(--iva-black); align-self: flex-start; margin-top: 6px; }
.cp-btn:hover { background: #e6e6e6; }
.cp-media { min-height: 280px; height: 100%; }
.cp-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-media .img-placeholder { border-radius: 0; border: none; border-left: 1.5px dashed rgba(255,255,255,0.22); height: 100%; }

.related-posts { padding: 0 0 8px; border-top: 1px solid var(--iva-gray-line); margin-top: 8px; }
.related-heading { font-family: 'Bebas Neue', sans-serif; font-size: 30px; letter-spacing: 0.3px; padding-top: 40px; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.related-card {
	display: flex; flex-direction: column; text-decoration: none; color: inherit;
	border: 1.5px solid var(--iva-black); border-radius: 12px; overflow: hidden;
	background: var(--iva-white); transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(0,0,0,0.10); }
.related-media { aspect-ratio: 16/9; border-radius: 0; border: none; border-bottom: 1.5px solid var(--iva-black); }
.related-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.related-title { font-family: 'Bebas Neue', sans-serif; font-size: 18px; line-height: 1.14; }
.related-teaser {
	font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(0,0,0,0.5); line-height: 1.55;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── SOFT CTA TELEGRAM (в теле статьи) ─── */
.soft-cta-telegram {
	display: flex; align-items: center; gap: 14px; padding: 18px 22px; margin: 32px 0;
	border-radius: 14px; background: #229ED9; color: #fff;
}
.soft-cta-telegram .tg-icon { flex-shrink: 0; }
.soft-cta-telegram .tg-title { font-size: 14px; font-weight: 700; }
.soft-cta-telegram .tg-sub { font-size: 12px; color: rgba(255,255,255,0.8); margin-top: 4px; }
.soft-cta-telegram .tg-arrow { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; flex-shrink: 0; }

/* ─── CONTENT BLOCKS (blocks/*) ─── */
.collage { display: grid; gap: 12px; margin: 28px 0; }
.collage .collage-cell { border-radius: 10px; overflow: hidden; position: relative; }
.collage-col { display: flex; flex-direction: column; gap: 12px; }
.collage-row-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collage-caption { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(0,0,0,0.45); text-align: center; margin-top: 12px; }
.collage-cell-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 10px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.55)); }
.collage-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }

.collage--big-right { grid-template-columns: 1fr 1.35fr; }
.collage--big-right .collage-col .collage-cell { flex: 1; aspect-ratio: 1/1; }
.collage--big-right .collage-cell--big { height: 100%; }
.collage--big-left { grid-template-columns: 1.35fr 1fr; }
.collage--big-left .collage-cell--big { height: 100%; }
.collage--big-left .collage-row-two .collage-cell { aspect-ratio: 1/1; }
.collage--big-left .collage-cell--wide { aspect-ratio: 16/9; }
.collage--grid-2x2 { grid-template-columns: repeat(2, 1fr); }
.collage--grid-2x2 .collage-cell { aspect-ratio: 1/1; }
.collage--grid-2x3 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }
.collage--grid-2x3 .collage-cell { aspect-ratio: 1/1; }
.collage--duo-wide .collage-row-two .collage-cell { aspect-ratio: 5/4; }
.collage--duo-wide .collage-cell--wide { aspect-ratio: 16/9; }
.collage--duo-portrait { grid-template-columns: repeat(2, 1fr); }
.collage--duo-portrait .collage-cell { aspect-ratio: 9/16; }

.content-slider { position: relative; margin: 28px 0; }
.cs-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.cs-track::-webkit-scrollbar { display: none; }
.cs-slide { flex: 0 0 100%; scroll-snap-align: start; }
.cs-slide img, .cs-slide .block { width: 100%; aspect-ratio: 16/9; border-radius: 12px; object-fit: cover; display: block; }
.cs-caption { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(0,0,0,0.45); text-align: center; margin-top: 10px; }
.cs-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.cs-arrow { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; border: 1.5px solid rgba(0,0,0,0.14); background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.cs-dots { display: flex; align-items: center; gap: 6px; }
.cs-dot {
	width: 7px; height: 7px; border-radius: 50%; background: rgba(0,0,0,0.18); border: none; cursor: pointer;
	transition: width .25s ease, border-radius .25s ease, background-color .25s ease;
}
/* Активная точка "перетекает" в пилюлю вместо мгновенной смены цвета —
   даёт ощущение движения индикатора вслед за перелистыванием слайда. */
.cs-dot.active { width: 22px; border-radius: 4px; background: var(--iva-black); }

.content-image { margin: 28px 0; text-align: center; }
.content-image .article-image { border-radius: 12px; overflow: hidden; }
.content-image .article-image img { width: 100%; height: auto; display: block; }
.content-image--portrait .article-image { aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; }
.content-image--portrait .article-image img { width: 100%; height: 100%; object-fit: cover; }
.image-caption { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(0,0,0,0.45); margin-top: 12px; }

.before-after-wrap { margin: 28px 0; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.before-after .block { border-radius: 10px; aspect-ratio: 1/1; overflow: hidden; }
.before-after .block img { width: 100%; height: 100%; object-fit: cover; display: block; }

.content-fullbleed { position: relative; margin: 40px calc(50% - 50vw); }
.cfb-media { width: 100%; aspect-ratio: 21/9; overflow: hidden; }
.cfb-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cfb-caption { position: absolute; left: 24px; bottom: 16px; font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #fff; background: rgba(0,0,0,0.5); padding: 6px 12px; border-radius: 6px; }

.quote--accent {
	position: relative; overflow: hidden;
	background: var(--iva-black); border-radius: 18px;
	padding: 56px 48px 44px;
}
.quote--accent::before {
	content: '“'; position: absolute; top: -46px; left: 24px;
	font-family: 'Bebas Neue', sans-serif; font-size: 200px; line-height: 1;
	color: rgba(255,255,255,0.12); pointer-events: none;
}
.quote--accent blockquote {
	position: relative; z-index: 1;
	font-family: 'Bebas Neue', sans-serif; font-size: 32px; line-height: 1.18;
	letter-spacing: 0.2px; color: #fff; margin: 0;
}
.quote--accent .qa-author { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.quote--accent .qa-author .avatar-sm { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.quote--accent .qa-name { font-family: 'IBM Plex Mono', monospace; font-size: 13px; font-weight: 700; color: #fff; }
.quote--accent .qa-role { font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

.toc-box { margin: 28px 0; padding: 20px 24px; border-radius: 12px; background: rgba(0,0,0,0.03); }
.toc-title { font-family: 'IBM Plex Mono', monospace; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.toc-box ol { padding-left: 18px; font-size: 13px; line-height: 2; }
.toc-box a { text-decoration: underline; text-underline-offset: 3px; }

/* ─── БРЕЙКПОИНТЫ ─── */
@media (max-width: 1024px) {
	.featured-main { grid-template-columns: 1fr; }
	.featured-main .card-media { aspect-ratio: 16/9; min-height: 0; }
	.featured-row { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.feed-grid { grid-template-columns: repeat(2, 1fr); }
	.card.type-gallery, .card--newsletter--wide { grid-column: span 2; }
	.article-header-grid { grid-template-columns: 1fr 200px; gap: 32px; }
	.article-body { padding-left: 28px; padding-right: 28px; }
	.quote--accent blockquote { font-size: 28px; }
	.quote--accent { padding: 48px 36px 36px; }
}

@media (max-width: 768px) {
	.blog-hero h1 { font-size: 38px; }
	.featured-row { grid-template-columns: 1fr; }
	.featured-main .card-body { padding: 28px; }
	.featured-main .card-title { font-size: 26px; }
	.feed-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.card.type-gallery, .card--newsletter--wide { grid-column: span 2; }
	.card-collage { grid-template-columns: repeat(3, 1fr); }
	.related-grid { grid-template-columns: 1fr; }
	.course-promo-inner { grid-template-columns: 1fr; }
	.cp-content { padding: 32px 28px; }
	.cp-media { min-height: 200px; order: -1; }
	.cp-media .img-placeholder { border-left: none; border-bottom: 1.5px dashed rgba(255,255,255,0.22); }
	.article-header-grid { grid-template-columns: 1fr; gap: 24px; }
	/* order:-1 поднимает фото над текстом (картинка → заголовок → описание,
	   а не как в DOM/десктопе); margin-приём — тот же calc(50% - 50vw), что
	   и у блоков-картинок в article-body — фото от края до края экрана. */
	.article-header-photo {
		order: -1;
		/* width: auto (не 100%!) — иначе явная ширина фиксирует бокс ДО
		   применения отрицательных margin, и он не сможет ими же реально
		   расшириться (margin просто сдвинет позицию, не размер) —
		   найдено визуальной проверкой (левый край выходил на 0, правый
		   отставал от края на ~32px). */
		max-width: none; width: auto; aspect-ratio: 16/9;
		border-radius: 0;
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
	.article-header h1 { font-size: 32px; }
	.collage--big-right, .collage--big-left { grid-template-columns: 1fr; }
	.collage--big-right .collage-cell--big, .collage--big-left .collage-cell--big { aspect-ratio: 16/9; height: auto; order: -1; }
	/* big-right: было 3 квадрата в один столбец подряд (большая + 2 маленькие
	   друг под другом) — превращаем пару маленьких в один ряд рядом, а не
	   друг под другом, получается BIG сверху + [small|small] снизу. */
	.collage--big-right .collage-col { flex-direction: row; }
	.collage--grid-2x3 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(3, 1fr); }
	.article-body { padding-left: 20px; padding-right: 20px; }
	.quote--accent blockquote { font-size: 24px; }
	.quote--accent { padding: 40px 28px 30px; border-radius: 14px; }
	.quote--accent::before { font-size: 140px; top: -34px; left: 16px; }

	/* Блоки-картинки (слайдер/коллаж/одиночное фото/до-после) — от края до
	   края экрана без скруглений: на мобильном и так немного места под
	   контент, отступ + border-radius делали картинки заметно мельче, чем
	   могли бы быть. calc(50% - 50vw) — тот же приём, что уже использует
	   .content-fullbleed: тянет блок до РЕАЛЬНОГО края viewport независимо
	   от вложенности контейнеров-предков (у align="wide"/"full" блоков
	   Gutenberg заворачивает содержимое ещё и в свой .container ПОВЕРХ
	   .article-body — фиксированный отрицательный margin под паддинг
	   ОДНОГО известного предка тут не сработал бы, см. docs/blog-architecture.md). */
	.content-slider, .collage, .content-image, .before-after-wrap {
		margin-left: calc(50% - 50vw);
		margin-right: calc(50% - 50vw);
	}
	.cs-slide img, .cs-slide .block,
	.collage .collage-cell,
	.content-image .article-image,
	.before-after .block {
		border-radius: 0;
	}
}

@media (max-width: 480px) {
	.blog-hero { padding: 44px 0 32px; }
	.blog-hero h1 { font-size: 30px; }
	.filter-tabs { gap: 6px; }
	.filter-tab { font-size: 12px; padding: 8px 14px; }
	.featured-main .card-title { font-size: 22px; }
	.feed-grid { grid-template-columns: 1fr; }
	.card.type-gallery, .card--newsletter--wide { grid-column: span 1; }
	.card-collage { grid-template-columns: repeat(3, 1fr); aspect-ratio: 16/9; }
	.card.type-gallery .card-body { flex-direction: column; align-items: flex-start; }
	.article-header h1 { font-size: 26px; }
	.article-header-photo { aspect-ratio: 5/4; }
	.article-body { padding-left: 16px; padding-right: 16px; }
	.article-body h2 { font-size: 24px; }
	.quote--accent blockquote { font-size: 20px; }
	.quote--accent { padding: 34px 22px 26px; }
	.quote--accent::before { font-size: 110px; top: -26px; left: 12px; }
	.related-heading { font-size: 26px; }
	.cp-title { font-size: 24px; }
	.cp-content { padding: 26px 22px; gap: 12px; }
	.cp-tags { gap: 6px; }
	.collage--grid-2x2, .collage--grid-2x3 { gap: 8px; }
	.soft-cta-telegram { flex-wrap: wrap; padding: 16px 18px; }
	.soft-cta-telegram .tg-arrow { margin-left: 0; }
}
