/*
Theme Name: ВАУТАЖ Медиа
Theme URI: https://blog.vautazh.ru
Description: Дочерняя тема GeneratePress для медиа ВАУТАЖ. Айдентика vautazh.ru: сливовый фон, коралл и лайм, Manrope и Unbounded.
Author: Азат
Template: generatepress
Version: 2.1
Text Domain: vautazh-child
*/

/* ===================================================================
   Токены — те же, что у лендинга vautazh.ru (Montazh-bot/landing).
   Тёмная тема по умолчанию, светлая — по системной настройке.
   =================================================================== */

@font-face{font-family:Manrope;src:url('fonts/manrope-cyrillic.woff2') format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url('fonts/manrope-latin.woff2') format('woff2');font-weight:200 800;font-display:swap}
@font-face{font-family:Unbounded;src:url('fonts/unbounded.woff2') format('woff2');font-weight:200 900;font-display:swap}

:root {
	--bg:        #17131c;
	--surface:   #221c29;
	--surface-2: #2c2433;
	--line:      #3b3343;
	--text:      #faf5f0;
	--muted:     #b1a6b9;
	--coral:     #ff805f;
	--accent-text: #ff967b;
	--lime:      #dfff79;
	--ink:       #21162b;

	--sans: Manrope, Arial, sans-serif;
	--display: Unbounded, Manrope, Arial, sans-serif;

	--max:     1200px;
	--measure: 42rem;          /* ~70 знаков — предел комфортного чтения */
	--gutter:  19px;
	--radius:  14px;

	color-scheme: dark;
}

@media (prefers-color-scheme: light) {
	:root {
		--bg:        #faf7f3;
		--surface:   #fffdfb;
		--surface-2: #eee7eb;
		--line:      #d7cbd9;
		--text:      #291d30;
		--muted:     #6d5c76;
		--accent-text: #a83e24;
		color-scheme: light;
	}
}

@media (min-width: 768px)  { :root { --gutter: 36px; } }
@media (min-width: 1200px) { :root { --gutter: 52px; } }

/* ------------------------------------------------------------ основа */

html { scroll-padding-top: 90px; }

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--sans);
	font-size: 17px;
	line-height: 1.7;
	font-synthesis: none;
	-webkit-font-smoothing: antialiased;
}

a { color: var(--accent-text); transition: color .18s, background .18s, border-color .18s; }
a:hover, a:focus { color: var(--coral); }
*:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

h1, h2, h3, h4, h5, h6 {
	color: var(--text);
	font-family: var(--sans);
	font-weight: 750;
	letter-spacing: -.04em;
	line-height: 1.15;
	text-wrap: balance;
}

::selection { background: var(--lime); color: var(--ink); }

/* Контейнеры GeneratePress: фон убираем, ширину задаём сами */
.site, .site-content, .inside-article, .sidebar .widget, .paging-navigation,
.one-container .container, .separate-containers .inside-article,
.separate-containers .comments-area, .separate-containers .page-header,
.separate-containers .paging-navigation {
	background: transparent;
	color: var(--text);
}

.grid-container { max-width: calc(var(--max) + var(--gutter) * 2); }
.site-content { padding: 0 var(--gutter); }
.separate-containers .inside-article { padding: 0; }
.separate-containers .site-main { margin: 0; }
.separate-containers .site-main > * { margin-bottom: 0; }

/* ------------------------------------------------------------- шапка */

.vz-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: color-mix(in srgb, var(--bg) 88%, transparent);
	backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--line);
}
.admin-bar .vz-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .vz-header { top: 0; position: relative; } }

.vz-header__inner {
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 14px var(--gutter);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
}

.vz-brand {
	display: flex;
	align-items: center;
	gap: 11px;
	color: var(--text);
	text-decoration: none;
	flex-shrink: 0;
}
.vz-brand:hover { color: var(--text); }
.vz-brand img { width: 29px; height: 34px; object-fit: contain; }
.vz-brand__name {
	display: block;
	font-weight: 800;
	letter-spacing: -1px;
	font-size: 21px;
	line-height: 1.1;
}
.vz-brand__name b { color: var(--lime); font-weight: 800; }
.vz-brand small {
	display: block;
	margin-top: 3px;
	color: var(--muted);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: .02em;
	line-height: 1.5;
}

/* 10 рубрик в строку не помещаются: на всех ширинах — лента чипов под шапкой */

.vz-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	padding: 11px 18px;
	border: 1px solid var(--coral);
	border-radius: 9px;
	background: var(--coral);
	color: var(--ink);
	font-weight: 750;
	font-size: 15px;
	line-height: 1.3;
	text-decoration: none;
	text-align: center;
	transition: transform .18s, background .18s;
}
.vz-btn:hover, .vz-btn:focus { background: #ff9477; color: var(--ink); }
.vz-btn:active { transform: translateY(1px); }
.vz-btn svg { width: 18px; height: 18px; }
.vz-btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.vz-btn--ghost:hover, .vz-btn--ghost:focus { background: var(--surface); color: var(--text); }
.vz-header .vz-btn { min-height: 40px; padding: 8px 14px; font-size: 14px; }
@media (max-width: 480px) { .vz-header .vz-btn span { display: none; } }

/* Рубрики на телефоне — горизонтальная лента под шапкой */
.vz-rubric-strip {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding: 0 var(--gutter) 12px;
	margin: 0;
	list-style: none;
	scrollbar-width: none;
}
.vz-rubric-strip::-webkit-scrollbar { display: none; }
@media (min-width: 1200px) { .vz-rubric-strip { max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; } }

.vz-chip {
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
	padding: 6px 12px;
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	line-height: 1.4;
}
.vz-chip:hover, .vz-chip.is-current { color: var(--ink); background: var(--lime); border-color: var(--lime); }

/* -------------------------------------------------------- главная */

.vz-hero {
	padding: 48px 0 36px;
	border-bottom: 1px solid var(--line);
	margin-bottom: 36px;
}
.vz-eyebrow {
	display: flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 18px;
	color: var(--muted);
	font-size: 13px;
	font-weight: 650;
	letter-spacing: .01em;
}
.vz-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex-shrink: 0; }
.vz-hero h1 {
	margin: 0;
	font-size: clamp(34px, 5.4vw, 64px);
	letter-spacing: -.055em;
	line-height: 1.06;
	max-width: 15em;
}
.vz-hero h1 em { font-style: normal; color: var(--lime); }
.vz-hero p {
	margin: 20px 0 0;
	max-width: 36em;
	color: var(--muted);
	font-size: 17px;
	line-height: 1.75;
}
.vz-hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }

.vz-section-title {
	margin: 0 0 22px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--muted);
}

/* ---------------------------------------------- лента карточек статей */

.blog .site-main, .archive .site-main, .search-results .site-main {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
}
@media (min-width: 720px)  { .blog .site-main, .archive .site-main, .search-results .site-main { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .blog .site-main, .archive .site-main, .search-results .site-main { grid-template-columns: repeat(3, 1fr); } }

.blog .site-main > :not(article),
.archive .site-main > :not(article),
.search-results .site-main > :not(article) { grid-column: 1 / -1; }

.blog article.post, .archive article.post, .search-results article.post {
	margin: 0;
	background: var(--surface);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	transition: border-color .18s, transform .18s;
}
.blog article.post:hover, .archive article.post:hover, .search-results article.post:hover {
	border-color: var(--coral);
	transform: translateY(-2px);
}
.blog article .inside-article, .archive article .inside-article, .search-results article .inside-article {
	display: flex;
	flex-direction: column;
	width: 100%;
	padding: 0 0 20px;
}
.blog article .post-image, .archive article .post-image, .search-results article .post-image {
	order: -1;
	margin: 0 0 18px;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--surface-2);
}
.blog article .post-image img, .archive article .post-image img, .search-results article .post-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.blog article .entry-header, .archive article .entry-header, .search-results article .entry-header,
.blog article .entry-summary, .archive article .entry-summary, .search-results article .entry-summary,
.blog article footer.entry-meta, .archive article footer.entry-meta { padding: 0 20px; }

.blog .entry-title, .archive .entry-title, .search-results .entry-title {
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -.03em;
	margin: 0;
}
.blog .entry-title a, .archive .entry-title a, .search-results .entry-title a { color: var(--text); text-decoration: none; }
.blog .entry-title a::after, .archive .entry-title a::after { content: ""; position: absolute; inset: 0; }
.blog article .inside-article, .archive article .inside-article { position: relative; }

.blog .entry-summary, .archive .entry-summary, .search-results .entry-summary {
	margin-top: 10px;
	color: var(--muted);
	font-size: 15px;
	line-height: 1.6;
}
.blog .entry-summary p, .archive .entry-summary p { margin: 0; }
.blog footer.entry-meta, .archive footer.entry-meta, .read-more-container { display: none; }

/* Первая карточка на главной — крупно на всю ширину */
@media (min-width: 720px) {
	.home.blog:not(.paged) .site-main > article.post:first-of-type { grid-column: 1 / -1; }
	.home.blog:not(.paged) .site-main > article.post:first-of-type .inside-article {
		display: grid;
		grid-template-columns: 1.25fr 1fr;
		align-content: center;
		column-gap: 32px;
		padding: 0 32px 0 0;
	}
	.home.blog:not(.paged) .site-main > article.post:first-of-type .post-image {
		grid-row: 1 / span 3;
		margin: 0;
		height: 100%;
	}
	.home.blog:not(.paged) .site-main > article.post:first-of-type .entry-header,
	.home.blog:not(.paged) .site-main > article.post:first-of-type .entry-summary { padding: 0; }
	.home.blog:not(.paged) .site-main > article.post:first-of-type .entry-title { font-size: clamp(24px, 2.6vw, 34px); }
}

/* Строка рубрики и мета */
.vz-kicker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 650;
	color: var(--muted);
}
.vz-kicker a { color: var(--lime); text-decoration: none; position: relative; z-index: 1; }
@media (prefers-color-scheme: light) { .vz-kicker a { color: var(--accent-text); } }
.vz-kicker a:hover { color: var(--coral); }
.vz-kicker span + span::before { content: "·"; margin-right: 12px; color: var(--line); }
.entry-header .entry-meta { display: none; }

/* Заголовок архива рубрики */
.page-header {
	padding: 40px 0 8px;
	margin: 0;
}
.page-header .page-title, .page-header h1 {
	font-size: clamp(30px, 4.4vw, 52px);
	letter-spacing: -.055em;
	margin: 0;
}
.taxonomy-description { color: var(--muted); max-width: 40em; margin-top: 12px; }
.taxonomy-description p { margin: 0; }

/* Пагинация */
.paging-navigation { padding: 12px 0 0; }
.paging-navigation .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.paging-navigation .page-numbers {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border: 1px solid var(--line);
	border-radius: 9px;
	color: var(--text);
	text-decoration: none;
	font-weight: 650;
}
.paging-navigation .page-numbers.current, .paging-navigation a.page-numbers:hover {
	background: var(--lime);
	border-color: var(--lime);
	color: var(--ink);
}

/* Пустая главная */
.vz-empty {
	grid-column: 1 / -1;
	padding: 36px 28px;
	border: 1px dashed var(--line);
	border-radius: var(--radius);
	color: var(--muted);
}
.vz-empty strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 8px; letter-spacing: -.03em; }
.blog.home .no-results { display: none; }

/* ------------------------------------------------------------ статья */

body { overflow-x: clip; }
.single .content-area, .page .content-area { width: 100%; float: none; }
.single .content-area .site-main, .page .content-area .site-main { max-width: var(--measure); margin: 0 auto; }

.single .entry-header, .page .entry-header { padding: 40px 0 0; }
.single h1.entry-title, .page h1.entry-title {
	font-size: clamp(30px, 4.2vw, 46px);
	letter-spacing: -.05em;
	line-height: 1.1;
	margin: 0;
}
.single .vz-lead {
	margin: 18px 0 0;
	color: var(--muted);
	font-size: 19px;
	line-height: 1.6;
}
.single .post-image, .single .featured-image {
	margin: 28px 0 0;
	border-radius: var(--radius);
	overflow: hidden;
}
.single .featured-image img { width: 100%; display: block; }

.entry-content { margin-top: 28px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.15em; }
.entry-content p, .entry-content li { font-size: 18px; line-height: 1.75; }
.entry-content h2 { font-size: clamp(24px, 2.6vw, 30px); margin: 1.9em 0 .6em; }
.entry-content h3 { font-size: 21px; margin: 1.6em 0 .5em; letter-spacing: -.03em; }
.entry-content ul, .entry-content ol { margin-left: 1.3em; padding: 0; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--coral); font-weight: 700; }
.entry-content strong, .entry-content b { color: var(--text); font-weight: 750; }
.entry-content a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.entry-content img { border-radius: 10px; }
.entry-content figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

.entry-content blockquote {
	margin: 1.6em 0;
	padding: 18px 22px;
	border: 0;
	border-left: 3px solid var(--lime);
	background: var(--surface);
	border-radius: 0 10px 10px 0;
	font-style: normal;
}
.entry-content blockquote p { margin: 0; font-size: 18px; }

.entry-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 15px;
	margin: 1.4em 0;
}
@media (max-width: 600px) {
	.entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
}
.entry-content th, .entry-content td {
	border: 0;
	border-bottom: 1px solid var(--line);
	padding: 10px 12px;
	text-align: left;
	vertical-align: top;
}
.entry-content th { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.entry-content tbody tr:hover { background: var(--surface); }

/* Врезки, которые собирает конвейер */
.sz-cta, .vz-product, .sz-disclaimer, .vz-note {
	margin: 1.8em 0;
	padding: 20px 22px;
	border-radius: var(--radius);
	font-size: 16px !important;
	line-height: 1.65 !important;
}
.vz-product {
	background: var(--surface);
	border: 1px solid var(--coral);
}
.vz-product b:first-child { display: block; margin-bottom: 4px; font-size: 18px; letter-spacing: -.02em; }
.sz-cta { background: var(--surface); border: 1px solid var(--line); }
.sz-disclaimer { padding: 0; color: var(--muted); font-size: 14px !important; }
.sz-disclaimer em { color: var(--muted); }
.vz-note { background: var(--surface-2); }

/* Карточка «Инструменты ВАУТАЖ» после статьи */
.vz-tools {
	max-width: var(--measure);
	margin: 40px auto 0;
	padding: 26px;
	border-radius: var(--radius);
	background:
		radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--coral) 22%, transparent) 0%, transparent 55%),
		var(--surface);
	border: 1px solid var(--line);
}
.vz-tools__label { margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vz-tool { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start; }
.vz-tool + .vz-tool { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.vz-tool img { width: 44px; height: 44px; grid-row: span 3; }
.vz-tool h3 { margin: 0; font-size: 20px; letter-spacing: -.03em; }
.vz-tool p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.vz-tool .vz-btn { justify-self: start; margin-top: 12px; }

/* Похожие статьи */
.vz-related { max-width: var(--measure); margin: 44px auto 0; }
.vz-related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vz-related a {
	display: block;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--text);
	font-weight: 650;
	line-height: 1.4;
	text-decoration: none;
}
.vz-related a:hover { border-color: var(--coral); color: var(--text); }

/* Хлебные крошки Rank Math */
.vz-crumbs, .rank-math-breadcrumb {
	padding-top: 24px;
	font-size: 13px;
	color: var(--muted);
}
.vz-crumbs p, .rank-math-breadcrumb p { margin: 0; }
.vz-crumbs a, .rank-math-breadcrumb a { color: var(--muted); text-decoration: none; }
.vz-crumbs a:hover, .rank-math-breadcrumb a:hover { color: var(--text); }
.single .vz-crumbs + .site-main .entry-header, .single .entry-header { padding-top: 14px; }

/* Навигация между статьями от GP не нужна — есть «Похожие» */
.single .post-navigation, .single footer.entry-meta { display: none; }

/* --------------------------------------------------------- подвал */

.site-footer, .site-info { background: transparent; color: var(--muted); }
.site-info { display: none; }

.vz-footer {
	margin-top: 72px;
	border-top: 1px solid var(--line);
	padding: 40px 0 32px;
	color: var(--muted);
	font-size: 14px;
}
.vz-footer__inner {
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 0 auto;
	padding: 0 var(--gutter);
	display: grid;
	gap: 32px;
}
@media (min-width: 900px) { .vz-footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.vz-footer h2 { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vz-footer ul { list-style: none; margin: 0; padding: 0; }
.vz-footer li a { display: inline-block; padding: 6px 0; color: var(--text); text-decoration: none; }
.vz-footer li a:hover { color: var(--coral); }
.vz-footer p { margin: 14px 0 0; line-height: 1.7; }
.vz-socials { display: flex; gap: 10px; margin-top: 18px !important; }
.vz-socials a {
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--text);
	padding: 0 !important;
}
.vz-socials a:hover { border-color: var(--coral); color: var(--coral); }
.vz-socials svg { width: 19px; height: 19px; fill: currentColor; }
.vz-footer__bottom {
	max-width: calc(var(--max) + var(--gutter) * 2);
	margin: 32px auto 0;
	padding: 20px var(--gutter) 0;
	border-top: 1px solid var(--line);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 12px;
	font-size: 13px;
}
.vz-footer__bottom a { color: var(--muted); }

/* ----------------------------------------------------- служебное */

.screen-reader-text:focus { background: var(--lime); color: var(--ink); }
.search-form input[type="search"], input[type="search"], input[type="text"], input[type="email"], textarea {
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 9px;
}
button, input[type="submit"], .button { background: var(--coral); color: var(--ink); border-radius: 9px; font-weight: 750; }
button:hover, input[type="submit"]:hover, .button:hover { background: #ff9477; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Лайм на светлом фоне не читается — в светлой теме акцент кирпичный */
@media (prefers-color-scheme: light) {
	.vz-brand__name b, .vz-hero h1 em { color: var(--accent-text); }
	.vz-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
}

/* Направления рубрик на главной */
.vz-directions { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 900px) { .vz-directions { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.vz-direction__title { margin: 0 0 10px; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.vz-direction .vz-hero__chips { margin: 0; }
