/* VisaRun theme — стили поверх theme.json.
   Все цвета и размеры берутся из переменных пресетов theme.json (--wp--preset--*). */

/* Языки, которых нет в Poppins и Carter One (кириллица, вьетнамский): весь текст целиком на запасных шрифтах,
   чтобы слова не собирались из двух гарнитур. Файлы шрифтов и unicode-range: assets/css/fonts.css */
html:is(:lang(ru), :lang(uk), :lang(bg), :lang(be), :lang(sr), :lang(mk), :lang(kk), :lang(vi)) {
	--wp--preset--font-family--poppins: Montserrat, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--wp--preset--font-family--carter-one: 'VR Display', Montserrat, system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Верхние блоки шаблона (шапка, обложка, main, подвал) стыкуются без зазоров: отступы заданы у самих блоков */
.wp-site-blocks > * + * { margin-block-start: 0 !important; }
:where(h1, h2, h3, h4, h5, h6) { scroll-margin-top: calc(var(--wp--custom--header-height) + 16px); }
img { height: auto; }

/* ---------- Header ---------- */
.vr-header { position: relative; z-index: 20; }
.vr-header__inner {
	max-width: 1290px; margin-inline: auto;
	padding: 14px var(--wp--preset--spacing--30);
	min-height: var(--wp--custom--header-height);
}
/* На страницах с обложкой шапка лежит поверх неё */
body.single .vr-header:not(.vr-header--solid),
body.home .vr-header:not(.vr-header--solid) {
	position: absolute; inset: 0 0 auto 0;
}
body.single .vr-header:not(.vr-header--solid)::before,
body.home .vr-header:not(.vr-header--solid)::before {
	content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1;
	background: linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,0));
	-webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
	-webkit-mask-image: linear-gradient(180deg, #000 55%, transparent);
	mask-image: linear-gradient(180deg, #000 55%, transparent);
}
.vr-header .wp-block-navigation a { font-weight: 500; }
.vr-header .wp-block-navigation .wp-block-navigation-item a { position: relative; padding: 4px 2px; }
.vr-header .wp-block-navigation .wp-block-navigation-item a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
	background: var(--wp--preset--color--main); transform: scaleX(0); transform-origin: left;
	transition: transform .3s ease;
}
.vr-header .wp-block-navigation .wp-block-navigation-item a:hover::after { transform: scaleX(1); }

/* ---------- Hero (обложка гайда / города) ---------- */
.vr-hero { position: relative; isolation: isolate; align-items: center; }
.vr-hero::after { /* волна внизу обложки */
	content: ""; position: absolute; inset: auto 0 -1px 0; height: 70px; z-index: 2;
	background: var(--wp--preset--color--white);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 70V38C180 8 360 6 540 30s360 34 540 8 270-30 360-14V70z'/></svg>") bottom/100% 100% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 70V38C180 8 360 6 540 30s360 34 540 8 270-30 360-14V70z'/></svg>") bottom/100% 100% no-repeat;
}
.vr-hero .wp-block-cover__inner-container { position: relative; z-index: 3; max-width: 1100px; width: 100%; margin-inline: auto; text-align: center; }
.vr-hero__title {
	font-family: var(--wp--preset--font-family--carter-one);
	color: var(--wp--preset--color--main);
	font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.12;
	padding: .4em .8em; margin-inline: auto; width: fit-content; max-width: 100%;
	background: rgba(255,255,255,.62);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	border-radius: var(--wp--custom--radius--m);
	text-shadow: 0 2px 0 rgba(255,255,255,.6);
}
.vr-hero__sub {
	margin-top: 1rem; color: var(--wp--preset--color--white); font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; text-shadow: 0 2px 14px rgba(0,0,0,.55); font-size: clamp(.9rem, 1.6vw, 1.25rem);
}

/* ---------- Заголовки ---------- */
.wp-block-post-content h2, .vr-guide h2.wp-block-heading { font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; color: var(--wp--preset--color--main); }
.wp-block-post-content h3 { font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; color: var(--wp--preset--color--main); }
.wp-block-heading.is-style-centered-pink { text-align: center; font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; color: var(--wp--preset--color--main); }

/* «Призрачная» подпись над заголовком раздела */
.is-style-ghost-kicker {
	margin: var(--wp--preset--spacing--50) 0 -.85em; text-align: center; text-transform: uppercase;
	font-family: var(--wp--preset--font-family--carter-one); font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1;
	color: rgba(0,0,0,.055); pointer-events: none; user-select: none; letter-spacing: .02em;
}
.is-style-ghost-kicker + h2 { text-align: center; position: relative; }

/* ---------- Lead ---------- */
.is-style-lead { font-size: var(--wp--preset--font-size--medium); color: var(--wp--preset--color--heading); }

/* ---------- Якоря-метки (core/buttons.vr-anchors) ---------- */
.vr-anchors { gap: 8px; margin-block: var(--wp--preset--spacing--40); }
.vr-anchors .wp-block-button__link,
.wp-block-button.is-style-chip .wp-block-button__link {
	background: var(--vr-chip, var(--wp--preset--color--sky)); color: #fff; font-weight: 500;
	font-size: 1rem; padding: .35em .8em; border-radius: var(--wp--custom--radius--s); text-decoration: none;
	transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.vr-anchors .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: var(--wp--preset--shadow--soft); filter: brightness(1.05); }
.vr-anchors .wp-block-button__link.is-active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--vr-chip); }
.vr-anchors .wp-block-button:nth-child(8n+1) { --vr-chip: var(--wp--preset--color--teal); }
.vr-anchors .wp-block-button:nth-child(8n+2) { --vr-chip: var(--wp--preset--color--steel); }
.vr-anchors .wp-block-button:nth-child(8n+3) { --vr-chip: var(--wp--preset--color--cyan); }
.vr-anchors .wp-block-button:nth-child(8n+4) { --vr-chip: var(--wp--preset--color--mint); }
.vr-anchors .wp-block-button:nth-child(8n+5) { --vr-chip: var(--wp--preset--color--sky); }
.vr-anchors .wp-block-button:nth-child(8n+6) { --vr-chip: var(--wp--preset--color--candy); }
.vr-anchors .wp-block-button:nth-child(8n+7) { --vr-chip: var(--wp--preset--color--slate); }
.vr-anchors .wp-block-button:nth-child(8n+8) { --vr-chip: var(--wp--preset--color--coral); }
/* На телефоне метки идут горизонтальной лентой и прилипают к верху */
@media (max-width: 781px) {
	.vr-anchors {
		position: sticky; top: 0; z-index: 15; flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--wp--preset--spacing--30) * -1);
		padding: 10px var(--wp--preset--spacing--30); background: rgba(255,255,255,.94);
		-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: 0 6px 18px rgba(0,0,0,.06);
		scrollbar-width: none;
	}
	.vr-anchors::-webkit-scrollbar { display: none; }
	.vr-anchors .wp-block-button { flex: 0 0 auto; }
}

/* ---------- Callout / Infobox / Partner / Card ---------- */
.is-style-callout {
	padding: var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--m);
	background: linear-gradient(135deg, var(--wp--preset--color--navy), var(--wp--preset--color--navy-dark)); color: #fff;
	box-shadow: var(--wp--preset--shadow--soft); margin-block: var(--wp--preset--spacing--50);
}
.is-style-callout :where(h2, h3, h4) { color: var(--wp--preset--color--bright); font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; margin-top: 0; }
.is-style-callout :where(p, li) { color: rgba(255,255,255,.9); }
.is-style-callout a:not(.wp-block-button__link) { color: var(--wp--preset--color--bright); }
.is-style-callout .wp-block-button__link { background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark); }

.is-style-infobox {
	padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--m);
	background: var(--wp--preset--color--soft); border-left: 5px solid var(--wp--preset--color--main); margin-block: var(--wp--preset--spacing--40);
}
.is-style-infobox > :first-child { margin-top: 0; }
.is-style-infobox > :last-child { margin-bottom: 0; }

.is-style-partner {
	position: relative; padding: var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--m);
	border: 2px dashed var(--wp--preset--color--bright); background: #fffdf0; margin-block: var(--wp--preset--spacing--50);
}
.is-style-partner::before {
	content: var(--vr-partner-label, "Partner"); position: absolute; top: -.8em; left: 1.2em; padding: .1em .8em; font-size: .75rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark);
	border-radius: 999px;
}

.is-style-card {
	background: #fff; border-radius: var(--wp--custom--radius--m); box-shadow: var(--wp--preset--shadow--soft); overflow: hidden;
	padding: 0 0 var(--wp--preset--spacing--30); transition: transform .3s ease, box-shadow .3s ease;
}
.is-style-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); }
.is-style-card > :not(.wp-block-post-featured-image) { padding-inline: var(--wp--preset--spacing--30); }
.is-style-card .wp-block-post-featured-image { margin-bottom: var(--wp--preset--spacing--30); }
.is-style-card .wp-block-post-featured-image img { border-radius: 0; transition: transform .6s ease; }
.is-style-card:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.is-style-card .wp-block-post-title a { text-decoration: none; font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; color: var(--wp--preset--color--main); }

/* ---------- Маршрут по шагам (таймлайн) ---------- */
.vr-journey { position: relative; display: grid; gap: var(--wp--preset--spacing--40); margin-block: var(--wp--preset--spacing--50); }
.vr-journey::before {
	content: ""; position: absolute; top: 0; bottom: 0; left: 19px; width: 4px; border-radius: 4px;
	background: linear-gradient(180deg, var(--wp--preset--color--main), var(--wp--preset--color--bright));
}
.is-style-journey-step {
	position: relative; margin-left: 52px; padding: var(--wp--preset--spacing--30) var(--wp--preset--spacing--40);
	background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--m);
	box-shadow: var(--wp--preset--shadow--soft);
}
.is-style-journey-step::before { /* точка на линии */
	content: ""; position: absolute; left: -41px; top: 28px; width: 18px; height: 18px; border-radius: 50%;
	background: #fff; border: 4px solid var(--wp--preset--color--main); box-shadow: 0 0 0 4px #fff;
}
.is-style-journey-step > :first-child { margin-top: 0; }
.is-style-journey-step > :last-child { margin-bottom: 0; }
.is-style-journey-step h3 { font-size: 1.35rem; margin: .1em 0 .4em; }
.is-style-step-time { display: inline-block; margin: 0 0 .2em; padding: .05em .7em; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark); }
/* Маршрут — ровный столбец с линией слева на любой ширине экрана:
   длинные карточки читаются последовательно, без «зубчатой» раскладки. */

/* ---------- Сброс чужих стилей кнопок (Elementor kit красит все button) ---------- */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	background: transparent !important; color: var(--wp--preset--color--main) !important; border: 0 !important; box-shadow: none !important; padding: 10px !important;
	min-width: 44px; min-height: 44px;
}
/* Мобильное меню на весь экран */
.wp-block-navigation__responsive-container.is-menu-open {
	background: var(--wp--preset--color--navy-dark) !important; color: #fff !important; padding: 1.2rem 1.5rem 2rem !important;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 3rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container,
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
	align-items: flex-start !important; gap: .4rem; width: 100%;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	color: #fff !important; font-family: var(--wp--preset--font-family--carter-one); font-size: 1.7rem; font-weight: 400; padding: .35rem 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container { padding-left: 1rem !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-size: 1.25rem; color: var(--wp--preset--color--bright) !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child { align-items: flex-start !important; padding: 0 !important; width: 100%; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item.has-child > .wp-block-navigation-item__content { padding-left: 0 !important; margin: 0 !important; }
.wp-block-navigation__responsive-container-close { color: #fff !important; }
/* Переключатель языка (Polylang) */
.vr-header__right { gap: 1rem !important; flex-wrap: nowrap !important; flex-shrink: 0; }
.vr-header__right .wp-block-navigation { flex: 0 0 auto; }
.vr-header__right .wp-block-navigation__container { flex-wrap: nowrap; white-space: nowrap; gap: 1.2rem; }
.vr-lang.pll-switcher ul { display: flex !important; flex-direction: row !important; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.vr-lang.pll-switcher a {
	display: block; padding: .3em .75em; border-radius: 999px; border: 1.5px solid transparent;
	font-size: .82rem; font-weight: 700; line-height: 1.3; text-decoration: none; color: var(--wp--preset--color--main);
	background: rgba(255,255,255,.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.vr-lang.pll-switcher a:hover { border-color: var(--wp--preset--color--main); }
.vr-lang.pll-switcher a { position: relative; }
.vr-lang.pll-switcher a::after { content: ""; position: absolute; inset: -10px -2px; } /* зона нажатия 44 px при компактной таблетке */
.vr-lang.pll-switcher .current-lang a { background: var(--wp--preset--color--main); color: #fff; }
.vr-header--solid .vr-lang.pll-switcher a { background: transparent; }
.vr-header--solid .vr-lang.pll-switcher .current-lang a { background: var(--wp--preset--color--main); }
@media (max-width: 781px) { .vr-lang.pll-switcher a { padding: .25em .55em; font-size: .75rem; } .vr-header__right { gap: .4rem !important; } }
.vr-logo { flex: 0 0 auto; }
.vr-logo img { height: auto; max-width: 100%; }

/* ---------- Списки ---------- */
.is-style-checklist { list-style: none; padding-left: 0; }
.is-style-checklist li { position: relative; padding-left: 2em; margin-bottom: .5em; }
.is-style-checklist li::before {
	content: "✓"; position: absolute; left: 0; top: .15em; width: 1.4em; height: 1.4em; line-height: 1.4em; text-align: center;
	border-radius: 50%; background: var(--wp--preset--color--mint); color: #fff; font-size: .8em; font-weight: 700;
}

/* ---------- Таблицы ---------- */
.wp-block-table { overflow-x: auto; margin-block: var(--wp--preset--spacing--40); }
.wp-block-table table { border-collapse: separate; border-spacing: 0; width: 100%; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--m); overflow: hidden; }
.wp-block-table th { background: var(--wp--preset--color--table-head); color: #333; font-weight: 700; text-align: left; }
.wp-block-table th, .wp-block-table td { padding: .75em 1em; border: 0; border-bottom: 1px solid var(--wp--preset--color--border); }
.wp-block-table tbody tr:nth-child(even) td { background: var(--wp--preset--color--soft); }
.wp-block-table tbody tr:last-child td { border-bottom: 0; }
.wp-block-table tbody tr { transition: background .2s; }
.wp-block-table tbody tr:hover td { background: #fff3f7; }

/* Широкие таблицы (3+ колонки) на телефоне прокручиваются по горизонтали, а не рвут слова по буквам */
.wp-block-table table:has(thead th:nth-child(3)) { min-width: 36rem; table-layout: auto; }
.wp-block-table { -webkit-overflow-scrolling: touch; }
/* (комментарий-метка: таблицы с 3 и более колонками) */

/* ---------- FAQ (core/details) ---------- */
.wp-block-details { border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--m); padding: .9em 1.2em; margin-block: .6em; background: #fff; transition: box-shadow .2s; }
.wp-block-details[open] { box-shadow: var(--wp--preset--shadow--soft); border-color: var(--wp--preset--color--main); }
.wp-block-details summary { min-height: 44px; align-items: center; cursor: pointer; font-weight: 700; color: var(--wp--preset--color--heading); list-style: none; display: flex; justify-content: space-between; gap: 1em; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; font-size: 1.4em; line-height: 1; color: var(--wp--preset--color--main); transition: transform .25s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }

/* ---------- Изображения, поиск, сайдбар ---------- */
.wp-block-image.is-style-blob img, .wp-block-post-featured-image.is-style-blob img {
	border-radius: 0; -webkit-clip-path: polygon(3% 8%, 22% 2%, 48% 6%, 74% 1%, 97% 7%, 99% 38%, 96% 66%, 99% 93%, 70% 98%, 44% 94%, 20% 99%, 2% 93%, 5% 62%, 1% 34%);
	clip-path: polygon(3% 8%, 22% 2%, 48% 6%, 74% 1%, 97% 7%, 99% 38%, 96% 66%, 99% 93%, 70% 98%, 44% 94%, 20% 99%, 2% 93%, 5% 62%, 1% 34%);
}
.vr-search .wp-block-search__inside-wrapper { background: var(--wp--preset--color--soft); border-radius: var(--wp--custom--radius--s); border: 0; padding: 4px; }
.vr-search input[type="search"] { border: 0; background: transparent; padding: .6em .8em; }
.vr-search .wp-block-search__button { background: transparent; color: var(--wp--preset--color--muted); }
.vr-sidebar { position: sticky; top: calc(var(--wp--custom--header-height) + 16px); }
.vr-locations .wp-block-post-title { margin-top: .4em; }
.vr-locations .wp-block-post-title a { text-decoration: none; color: var(--wp--preset--color--heading); }
@media (max-width: 781px) { .vr-sidebar { position: static; } }

/* ---------- Анимации появления (включаются только при работающем JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
	.vr-js .vr-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
	.vr-js .vr-reveal.is-in { opacity: 1; transform: none; }
	.vr-js .is-style-journey-step.vr-reveal { transform: translateX(-24px); }
	.vr-js .is-style-journey-step.vr-reveal.is-in { transform: none; }
	.vr-hero .vr-hero__title { animation: vr-rise .9s cubic-bezier(.2,.7,.2,1) both; }
	.vr-hero .vr-hero__sub { animation: vr-rise .9s .15s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes vr-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Страницы направлений: факты и карта ---------- */
.vr-facts {
	display: flex; flex-wrap: wrap; gap: 14px 36px; padding: 18px 26px; margin-block: 0 var(--wp--preset--spacing--40);
	background: linear-gradient(135deg, var(--wp--preset--color--navy), var(--wp--preset--color--navy-dark));
	border-radius: var(--wp--custom--radius--m); box-shadow: var(--wp--preset--shadow--soft);
}
.vr-fact { display: flex; flex-direction: column; margin: 0 !important; line-height: 1.3; }
.vr-fact__label { font-size: .8rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--wp--preset--color--bright); }
.vr-fact__value { font-weight: 700; font-size: 1.1rem; color: #fff; }
.vr-map { margin: 0 0 var(--wp--preset--spacing--40); }
.vr-cities, .vr-guides { margin-bottom: var(--wp--preset--spacing--50); }

/* ---------- Главная ---------- */
.vr-hero--home .vr-hero__sub {
	text-transform: none; letter-spacing: 0; font-weight: 500; font-size: clamp(1rem, 2vw, 1.3rem);
	max-width: 42rem; margin: 1.1rem auto 1.6rem; line-height: 1.5;
}
.vr-hero--home .wp-block-buttons { justify-content: center; gap: 12px; }
.vr-hero--home .wp-block-button__link { font-size: 1.05rem; box-shadow: var(--wp--preset--shadow--lift); }
.vr-hero--home .wp-block-button:nth-child(2) .wp-block-button__link { background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark); }
.wp-block-post-content .wp-block-columns { gap: var(--wp--preset--spacing--50); align-items: center; }
.vr-features { gap: var(--wp--preset--spacing--30); align-items: stretch; margin-block: var(--wp--preset--spacing--40); }
.vr-feature { text-align: center; padding: var(--wp--preset--spacing--40) var(--wp--preset--spacing--30) !important; height: 100%; }
.vr-feature > * { padding-inline: 0 !important; }
.vr-feature__icon { font-size: 2.4rem; line-height: 1; margin: 0 0 .4rem; }
.vr-feature h3 { margin-top: 0; font-size: 1.25rem; }
.vr-countries .wp-block-post-title a { font-size: 1.6rem; }
/* Мало карточек (2 страны, 2 гайда): растягиваем на всю ширину, а не прижимаем влево */
.vr-countries .wp-block-post-template, .vr-guides .wp-block-post-template { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important; }
.vr-countries .wp-block-post-featured-image img { aspect-ratio: 16 / 10; }
@media (max-width: 781px) { .vr-hero--home { min-height: 88vh !important; } }

/* ---------- Комментарии (выводятся только если включены) ---------- */
.vr-comments { max-width: 820px; margin: var(--wp--preset--spacing--60) auto 0; }
.vr-comments__title, .vr-comments .comment-reply-title { font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; color: var(--wp--preset--color--main); font-size: 1.6rem; }
.vr-comments__list, .vr-comments__list .children { list-style: none; padding-left: 0; }
.vr-comments__list .children { padding-left: 1.5rem; border-left: 3px solid var(--wp--preset--color--border); margin-left: .5rem; }
.vr-comments .comment-body { padding: 1rem 1.2rem; margin-bottom: 1rem; background: var(--wp--preset--color--soft); border-radius: var(--wp--custom--radius--m); }
.vr-comments .comment-author .avatar { border-radius: 50%; float: left; margin-right: .8rem; }
.vr-comments .comment-meta { font-size: .85rem; color: var(--wp--preset--color--muted); }
.vr-comments .comment-meta a { color: inherit; text-decoration: none; }
.vr-comments .fn { font-weight: 700; color: var(--wp--preset--color--heading); font-style: normal; }
.vr-comments form p { margin-bottom: 1rem; }
.vr-comments input[type="text"], .vr-comments input[type="email"], .vr-comments input[type="url"], .vr-comments textarea {
	width: 100%; padding: .7em 1em; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--s); font: inherit;
}
.vr-comments textarea { min-height: 8rem; }
.vr-comments .submit {
	background: var(--wp--preset--color--main); color: #fff; border: 0; border-radius: var(--wp--custom--radius--m);
	padding: .8em 1.6em; font-weight: 700; cursor: pointer;
}
.vr-comments .submit:hover { background: var(--wp--preset--color--main-dark); }

/* ---------- Footer (оформление: см. «Footer v2» в конце файла) ---------- */
.vr-footer a { color: #fff; }

/* Заголовки страниц: длинные слова не рвутся посреди слова на узких экранах */
.wp-block-post-title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
body.page .wp-block-post-title, body.page-template .wp-block-post-title { font-size: clamp(1.7rem, 6.6vw, 3.5rem); }
.wp-block-post-title:not(.vr-hero__title) { text-wrap: balance; }

/* ---------- Интерактивный чек-лист (checklist.js) ---------- */
.is-style-checklist.vrc-on li { padding-left: 0; margin-bottom: 0; }
.is-style-checklist.vrc-on li::before { content: none; }
.vrc-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 0 0 .5rem; }
.vrc-prog { font-weight: 700; color: var(--wp--preset--color--navy); font-size: .95rem; font-variant-numeric: tabular-nums; }
.vrc-bar.is-done .vrc-prog { color: #2C7775; }
html body .vrc-bar .vrc-reset {
	margin-left: auto; min-height: 44px; padding: 0 .6rem; background: none; border: 0; border-radius: 0; box-shadow: none; color: var(--wp--preset--color--main);
	font: inherit; font-size: .9rem; font-weight: 600; text-transform: none; letter-spacing: normal; text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.vrc-reset[hidden] { display: none; }
.vrc-meter { flex: 1 0 100%; order: 3; height: 6px; border-radius: 3px; background: var(--wp--preset--color--table-head); overflow: hidden; }
.vrc-meter b { display: block; height: 100%; width: 0; background: var(--wp--preset--color--teal); border-radius: 3px; transition: width .3s cubic-bezier(.16, 1, .3, 1); }
.vrc-hint { flex: 1 0 100%; order: 4; color: #555; font-size: .8rem; line-height: 1.4; }
.vrc-item { display: flex; align-items: flex-start; gap: .85rem; min-height: 44px; padding: .5rem .25rem; cursor: pointer; border-radius: var(--wp--custom--radius--s, 5px); }
.vrc-item:hover .vrc-box:not(:checked) { border-color: var(--wp--preset--color--teal); }
.vrc-box {
	appearance: none; -webkit-appearance: none; flex: none; width: 26px; height: 26px; margin: .1rem 0 0; border-radius: 50%;
	border: 2px solid #8A94A6; background: #fff center / 16px no-repeat; cursor: pointer; transition: background-color .2s, border-color .2s;
}
.vrc-box:checked {
	background-color: var(--wp--preset--color--teal); border-color: var(--wp--preset--color--teal);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
}
.vrc-box:focus-visible { outline: 3px solid var(--wp--preset--color--main); outline-offset: 2px; }
.vrc-box:checked + .vrc-text { color: #6B7280; }
@media (prefers-reduced-motion: reduce) { .vrc-box, .vrc-meter b { transition: none; } }
@media print { .vrc-bar { display: none; } .vrc-box { border-color: #000; } }

/* ---------- Дата проверки и журнал изменений ---------- */
.vr-meta { margin-block: 0; }
.vr-meta--top { margin-bottom: var(--wp--preset--spacing--30); }
.vr-meta--bottom { margin-top: var(--wp--preset--spacing--50); }
.vr-reviewed { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .75rem; margin: 0; font-size: .9rem; line-height: 1.4; color: #444; }
.vr-reviewed svg { width: 20px; height: 20px; flex: none; fill: none; stroke: #2C7775; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vr-reviewed > span { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; color: var(--wp--preset--color--navy); }
.vr-reviewed time { white-space: nowrap; }
.vr-reviewed__link { color: var(--wp--preset--color--main); font-weight: 600; text-underline-offset: .2em; padding-block: .8rem; }
@media (max-width: 600px) { .vr-reviewed { gap: 0 .5rem; } .vr-reviewed__link { flex-basis: 100%; padding-left: 28px; } }
.vr-changelog details { border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--m); background: var(--wp--preset--color--soft); }
.vr-changelog summary { min-height: 48px; display: flex; align-items: center; padding: .5rem 1rem; font-weight: 700; color: var(--wp--preset--color--navy); cursor: pointer; }
.vr-changelog ul { list-style: none; margin: 0; padding: 0 1rem .75rem; }
.vr-changelog li { display: grid; grid-template-columns: 8.5rem 1fr; gap: .25rem 1rem; padding: .6rem 0; border-top: 1px solid var(--wp--preset--color--border); font-size: .95rem; line-height: 1.5; }
.vr-changelog time { font-weight: 600; color: #444; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .vr-changelog li { grid-template-columns: 1fr; } }

/* ---------- Кнопка «Сохранить гайд» (save.js) ---------- */
.vr-meta--top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.vr-meta--top > * { margin: 0 !important; max-width: none !important; }
.vr-meta--top .vr-reviewed { flex: 1 1 auto; }
html body .vr-save__btn {
	display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem; border-radius: 22px; cursor: pointer;
	background: #fff; color: var(--wp--preset--color--navy); border: 2px solid var(--wp--preset--color--navy);
	font: inherit; font-size: .9rem; font-weight: 700; text-transform: none; letter-spacing: normal; box-shadow: none;
}
html body .vr-save__btn:hover { background: var(--wp--preset--color--navy); color: #fff; }
.vr-save svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vr-save__btn:focus-visible, .vr-save__dialog button:focus-visible { outline: 3px solid var(--wp--preset--color--main); outline-offset: 2px; }
.vr-save__dialog {
	width: min(440px, calc(100vw - 24px)); max-height: 90vh; margin: auto; padding: 0; border: 0; border-radius: 28px;
	background: #fff; color: #333; box-shadow: 0 20px 60px rgba(18, 29, 57, .35); overflow: auto;
}
.vr-save__dialog::backdrop { background: rgba(18, 29, 57, .55); }
.vr-save__dialog[open] { animation: vr-save-in .35s cubic-bezier(.16, 1, .3, 1); }
@keyframes vr-save-in { from { opacity: 0; transform: translateY(24px); } }
.vr-save__dialog header { display: flex; align-items: center; justify-content: space-between; padding: 1rem .5rem .25rem 1.5rem; }
.vr-save__dialog h2 { margin: 0; font-size: 1.4rem; line-height: 1.2; color: var(--wp--preset--color--main); }
html body .vr-save__close { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 24px; background: none; border: 0; color: var(--wp--preset--color--navy-dark); cursor: pointer; box-shadow: none; padding: 0; }
.vr-save__list { list-style: none; margin: 0; padding: .5rem 1rem 0; }
.vr-save__list li[hidden] { display: none; }
html body .vr-save__list button {
	display: flex; align-items: center; gap: 1rem; width: 100%; min-height: 56px; padding: .6rem .9rem; margin: 0 0 .5rem; text-align: left;
	background: var(--wp--preset--color--soft); color: var(--wp--preset--color--navy-dark); border: 0; border-radius: 16px; cursor: pointer;
	font: inherit; font-size: 1rem; font-weight: 600; text-transform: none; letter-spacing: normal; box-shadow: none;
}
html body .vr-save__list button:hover, html body .vr-save__list button:active { background: #E7EBEF; }
.vr-save__list button small { display: block; margin-top: .15rem; font-size: .8rem; font-weight: 400; color: #555; line-height: 1.35; }
.vr-save__tip { margin: .25rem 1.5rem 0; padding: .75rem 0 .25rem; border-top: 1px solid var(--wp--preset--color--border); font-size: .9rem; line-height: 1.5; color: #444; }
.vr-save__status { min-height: 1.6rem; margin: .25rem 1.5rem 1rem; font-size: .9rem; font-weight: 700; color: #2C7775; }
@media (max-width: 600px) {
	.vr-save__dialog { margin: auto 0 0; width: 100%; max-width: none; border-radius: 28px 28px 0 0; }
	.vr-save__dialog[open] { animation-name: vr-save-up; }
}
@keyframes vr-save-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .vr-save__dialog[open] { animation: none; } }
.vr-print-source { display: none; }

/* ---------- Версия для печати и PDF ---------- */
@media print {
	@page { margin: 16mm 14mm; }
	body { background: #fff !important; color: #000; font-size: 11pt; }
	.vr-header, .vr-footer, header.wp-block-template-part, footer.wp-block-template-part, .vr-sidebar, .vr-anchors, .vrn, .vr-save,
	[class*="is-style-partner"], .wp-block-comments, .wp-block-post-comments-form, .vr-comments, .wp-block-search, .vr-reviewed__link { display: none !important; }
	.vr-reveal { opacity: 1 !important; transform: none !important; }
	.vr-hero { min-height: 0 !important; padding: 0 0 8mm !important; background: none !important; color: #000 !important; }
	.vr-hero .wp-block-cover__image-background, .vr-hero .wp-block-cover__background, .vr-hero .wp-block-cover__video-background { display: none !important; }
	.vr-hero, .vr-hero * { animation: none !important; transform: none !important; color: #000 !important; -webkit-text-fill-color: #000 !important; opacity: 1 !important; text-shadow: none !important; background: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; text-align: left !important; overflow: visible !important; }
	.vr-hero::before, .vr-hero::after, .vr-header::before { display: none !important; content: none !important; }
	.vr-hero__title { font-size: 26pt !important; line-height: 1.15 !important; padding: 0 !important; margin: 0 0 3mm !important; }
	.vr-hero__sub { font-size: 11pt !important; letter-spacing: .08em; padding: 0 !important; margin: 0 !important; }
	.vr-print-source { display: block; margin: 0 0 4mm; font-size: 9pt; color: #444; word-break: break-all; }
	.vr-meta--top { display: block; }
	.vr-guide__layout { display: block !important; }
	.vr-guide__main { flex-basis: 100% !important; width: 100% !important; }
	.wp-block-post-content { max-width: none !important; }
	.wp-block-post-content a[href^="http"]:not(.wp-block-button__link)::after { content: " (" attr(href) ")"; font-size: 8pt; color: #444; word-break: break-all; }
	h2, h3, h4 { break-after: avoid; }
	table, .vr-journey > *, .is-style-callout, .is-style-infobox, .wp-block-details, figure, li { break-inside: avoid; }
	.is-style-callout, .is-style-infobox { background: #fff !important; color: #000 !important; border: 1px solid #000; box-shadow: none !important; }
	.wp-block-details summary { list-style: none; font-weight: 700; }
	.vr-changelog details { border: 0; background: none; }
	.is-style-ghost-kicker { display: none !important; }
}

/* ---------- Партнёрские блоки: карточка, узкая полоса, подборка ---------- */
/* Метка «Партнёр» обязательна у всех вариантов (текст берётся из словаря интерфейса, --vr-partner-label) */
.is-style-partner-card, .is-style-partner-strip, .is-style-partner-shelf { position: relative; margin-block: var(--wp--preset--spacing--50); }
.is-style-partner-card::before, .is-style-partner-strip::before, .is-style-partner-shelf::before {
	content: var(--vr-partner-label, "Partner"); display: inline-block; padding: .15em .8em; border-radius: 999px; font-size: .72rem; font-weight: 700;
	letter-spacing: .1em; text-transform: uppercase; line-height: 1.5; background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark);
}
.is-style-partner-card > *, .is-style-partner-strip > *, .is-style-partner-shelf > * { margin: 0; max-width: none; }
.vr-pshelf__track > *, .vr-pcard > *, .vr-pcard__media > * { margin: 0; }
.is-style-partner-card :is(figure, img), .is-style-partner-strip :is(figure, img), .is-style-partner-shelf :is(figure, img) { margin: 0; display: block; }
/* Кнопка партнёра отличается от кнопок навигации сайта: жёлтая */
html body :is(.is-style-partner-card, .is-style-partner-strip, .is-style-partner-shelf) .wp-block-button__link {
	background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark); font-weight: 700; min-height: 44px;
	display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
html body :is(.is-style-partner-card, .is-style-partner-strip, .is-style-partner-shelf) .wp-block-button__link:hover { background: var(--wp--preset--color--navy-dark); color: #fff; }

/* Карточка */
.is-style-partner-card {
	display: flex; flex-direction: column; background: #fff; overflow: hidden; border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--m); box-shadow: var(--wp--preset--shadow--soft);
}
.is-style-partner-card::before { position: absolute; top: 12px; left: 12px; z-index: 2; }
.is-style-partner-card .vr-pcard__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0; }
.is-style-partner-card .vr-pcard__body { padding: var(--wp--preset--spacing--40); display: flex; flex-direction: column; gap: .75rem; flex: 1; }
.is-style-partner-card:not(:has(.vr-pcard__media)) .vr-pcard__body { padding-top: calc(var(--wp--preset--spacing--40) + 1.5rem); }
.is-style-partner-card .vr-pcard__body > * { margin: 0; }
.is-style-partner-card .vr-pcard__body .wp-block-buttons { margin-top: auto; padding-top: .25rem; }
@media (min-width: 782px) {
	.is-style-partner-card { flex-direction: row; }
	.is-style-partner-card .vr-pcard__media { flex: 0 0 40%; }
	.is-style-partner-card .vr-pcard__media :is(figure, img) { height: 100%; }
	.is-style-partner-card .vr-pcard__media img { aspect-ratio: auto; }
}

/* Узкая полоса */
.is-style-partner-strip {
	display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; padding: .75rem 1rem; border-radius: var(--wp--custom--radius--m);
	background: #fffdf0; border: 1px dashed var(--wp--preset--color--bright);
}
.is-style-partner-strip::before { flex: none; }
.is-style-partner-strip .wp-block-image { flex: none; }
.is-style-partner-strip .wp-block-image img { height: 40px; width: auto; max-width: 120px; object-fit: contain; border-radius: 6px; }
.is-style-partner-strip > p { flex: 1 1 220px; font-size: .95rem; line-height: 1.45; }
.is-style-partner-strip .wp-block-buttons { flex: none; }
@media (max-width: 600px) { .is-style-partner-strip { padding: .6rem .75rem; } .is-style-partner-strip .wp-block-image img { height: 32px; } .is-style-partner-strip .wp-block-buttons, .is-style-partner-strip .wp-block-button, .is-style-partner-strip .wp-block-button__link { width: 100%; } }

/* Подборка: слайдер на телефоне, сетка на компьютере */
.is-style-partner-shelf { padding: var(--wp--preset--spacing--40); border-radius: var(--wp--custom--radius--m); background: #fffdf0; border: 2px dashed var(--wp--preset--color--bright); }
.is-style-partner-shelf::before { display: block; width: max-content; margin-bottom: .75rem; }
.is-style-partner-shelf > h3 { margin: 0 0 1rem; }
.is-style-partner-shelf .vr-pshelf__track {
	display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
	margin-inline: calc(var(--wp--preset--spacing--40) * -1); padding: .25rem var(--wp--preset--spacing--40) .75rem; scroll-padding-inline: var(--wp--preset--spacing--40);
}
.is-style-partner-shelf .vr-pshelf__track::-webkit-scrollbar { display: none; }
.is-style-partner-shelf .vr-pcard {
	flex: 0 0 78%; scroll-snap-align: start; display: flex; flex-direction: column; background: #fff; overflow: hidden;
	border-radius: var(--wp--custom--radius--m); box-shadow: var(--wp--preset--shadow--soft); transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s;
}
.is-style-partner-shelf .vr-pcard__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0; }
.is-style-partner-shelf .vr-pcard__body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.is-style-partner-shelf .vr-pcard__body > * { margin: 0; }
.is-style-partner-shelf .vr-pcard__body h4 { font-size: 1.15rem; line-height: 1.25; color: var(--wp--preset--color--main); }
.is-style-partner-shelf .vr-pcard__body p { font-size: .92rem; line-height: 1.5; }
.is-style-partner-shelf .vr-pcard__body .wp-block-buttons { margin-top: auto; padding-top: .5rem; }
@media (min-width: 782px) {
	.is-style-partner-shelf .vr-pshelf__track { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: visible; margin: 0; padding: 0; }
	.is-style-partner-shelf .vr-pcard:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lift); }
}
@media (prefers-reduced-motion: reduce) { .is-style-partner-shelf .vr-pcard { transition: none; } .is-style-partner-shelf .vr-pcard:hover { transform: none; } }

/* ---------- Галереи и просмотр фото (gallery.js) ---------- */
.wp-block-gallery.has-nested-images { gap: 12px; margin-block: var(--wp--preset--spacing--40); }
.wp-block-gallery.has-nested-images figure.wp-block-image img { border-radius: var(--wp--custom--radius--m); }
.wp-block-gallery.has-nested-images:not(.is-style-slider) figure.wp-block-image img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
html body .vr-zoom { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--wp--custom--radius--m); -webkit-tap-highlight-color: transparent; line-height: 0; }
.vr-zoom img { width: 100%; height: auto; transition: transform .5s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) { .vr-zoom:hover img { transform: scale(1.02); } }
.vr-zoom:focus-visible { outline: 3px solid var(--wp--preset--color--main); outline-offset: 3px; }
.wp-block-image:has(.vr-zoom) { overflow: hidden; border-radius: var(--wp--custom--radius--m); }

/* Слайдер: лента листается пальцем (scroll-snap), стрелки и счётчик добавляет скрипт */
.vr-slider { position: relative; margin-block: var(--wp--preset--spacing--40); }
.wp-block-gallery.is-style-slider { display: flex; flex-wrap: nowrap; gap: 12px; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.wp-block-gallery.is-style-slider::-webkit-scrollbar { display: none; }
.wp-block-gallery.is-style-slider.has-nested-images figure.wp-block-image:not(#individual-image) { flex: 0 0 86%; width: auto; max-width: none; margin: 0; scroll-snap-align: center; position: relative; }
.wp-block-gallery.is-style-slider figure.wp-block-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; height: auto; }
.wp-block-gallery.is-style-slider:focus-visible { outline: 3px solid var(--wp--preset--color--main); outline-offset: 2px; border-radius: var(--wp--custom--radius--m); }
.vr-slider__ui { pointer-events: none; }
.vr-slider__count {
	position: absolute; right: 12px; bottom: 12px; padding: .2em .8em; border-radius: 999px; background: rgba(18, 29, 57, .78); color: #fff;
	font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
html body .vr-slider__btn {
	display: none; position: absolute; top: 50%; width: 48px; height: 48px; margin: -24px 0 0; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, .94); color: var(--wp--preset--color--navy-dark); box-shadow: 0 4px 16px rgba(18, 29, 57, .28); pointer-events: auto;
	place-items: center; transition: opacity .2s, transform .2s;
}
.vr-slider__prev { left: 10px; } .vr-slider__next { right: 10px; }
html body .vr-slider__btn:disabled { opacity: 0; pointer-events: none; }
.vr-slider svg, .vr-lb svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) { html body .vr-slider__btn { display: grid; } .vr-slider__btn:hover { transform: scale(1.06); } }
@media (min-width: 782px) { .wp-block-gallery.is-style-slider.has-nested-images figure.wp-block-image:not(#individual-image) { flex-basis: calc(50% - 6px); scroll-snap-align: start; } }

/* Полноэкранный просмотр */
.vr-lb { width: 100vw; max-width: none; height: 100vh; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: #080d1c; color: #fff; overflow: hidden; }
.vr-lb[open] { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; animation: vr-lb-in .25s ease-out; }
.vr-lb::backdrop { background: #080d1c; }
@keyframes vr-lb-in { from { opacity: 0; } }
.vr-lb__stage { grid-area: 1 / 1; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; padding: 64px 12px 16px; min-height: 0; touch-action: pan-y pinch-zoom; }
.vr-lb__stage img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; transition: opacity .2s; user-select: none; -webkit-user-drag: none; }
.vr-lb__stage img.is-loading { opacity: .35; }
.vr-lb__stage figcaption { max-width: 60ch; text-align: center; font-size: .95rem; line-height: 1.45; color: #E7EBEF; }
.vr-lb__stage figcaption[hidden] { display: none; }
.vr-lb__top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; }
.vr-lb__count { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
html body .vr-lb button { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; margin: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer; box-shadow: none; -webkit-tap-highlight-color: transparent; }
html body .vr-lb button:hover { background: rgba(255, 255, 255, .26); }
html body .vr-lb button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
html body .vr-lb .vr-lb__nav { position: absolute; top: 50%; margin-top: -24px; z-index: 3; }
.vr-lb__prev { left: 10px; } .vr-lb__next { right: 10px; }
.vr-lb__nav[hidden] { display: none !important; }
@media (max-width: 781px) { html body .vr-lb .vr-lb__nav { top: auto; bottom: 12px; margin: 0; } .vr-lb__stage { padding-bottom: 76px; } .vr-lb__stage img { max-height: calc(100dvh - 200px); } }
@media (prefers-reduced-motion: reduce) { .vr-lb[open] { animation: none; } .vr-zoom img { transition: none; } .vr-zoom:hover img { transform: none; } }
@media print { .vr-lb, .vr-slider__ui { display: none !important; } .wp-block-gallery.is-style-slider { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible; } .wp-block-gallery.is-style-slider figure.wp-block-image { flex: initial !important; } }

/* ---------- Зоны нажатия не меньше 44 px (подвал, списки городов) ---------- */
.wp-block-post-title a { display: inline-block; padding-block: .6rem; }

/* ---------- Карта по нажатию (map.js) ---------- */
.vr-map__canvas { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 7; min-height: 260px; border-radius: var(--wp--custom--radius--m); box-shadow: var(--wp--preset--shadow--soft); background: #E8EEF6; overflow: hidden; z-index: 0; }
.vr-map__pin { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; box-shadow: var(--wp--preset--shadow--soft); color: var(--wp--preset--color--main); }
.vr-map__pin svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.vr-map.is-ready .vr-map__canvas { display: block; }
.vr-map__marker { background: none; border: 0; }
.vr-map__marker svg { display: block; filter: drop-shadow(0 3px 4px rgba(10, 17, 40, .35)); }
.vr-map .leaflet-container { font: inherit; border-radius: var(--wp--custom--radius--m); }
.vr-map .leaflet-control-attribution { font-size: .7rem; }
.vr-map .leaflet-control-zoom a { width: 36px; height: 36px; line-height: 36px; font-size: 20px; text-decoration: none; }
.vr-map__ext { display: inline-block; padding-block: .7rem; font-weight: 600; font-size: .9rem; color: var(--wp--preset--color--navy-dark); text-underline-offset: .2em; }
.vr-map__ext:focus-visible { outline: 3px solid var(--wp--preset--color--main); outline-offset: 3px; }
@media print { .vr-map { display: none; } }

/* ---------- Footer v3: карта высот, колонки, акцентный розовый ---------- */
.vr-footer {
	--vr-f-pink: #FF6B9A; --vr-f-text: #CBD3E8; --vr-f-mute: #A9B5D2; --vr-f-line: rgba(255, 255, 255, .14);
	--vr-f-gutter: max(20px, calc((100% - 1290px) / 2 + 20px));
	position: relative; isolation: isolate; color: #fff;
	background-image: url("../img/topo.svg"); background-size: cover; background-position: center; background-repeat: no-repeat;
}
.vr-footer a { color: inherit; text-decoration: none; }
.vr-footer .vr-accent { color: var(--vr-f-pink); font-weight: 700; }
.vr-footer__main { display: grid; grid-template-columns: 1.3fr .9fr .9fr 1.4fr; gap: 2.75rem 3rem; padding: clamp(2.5rem, 5vw, 4.5rem) var(--vr-f-gutter) clamp(2rem, 4vw, 3.5rem); }
.vr-footer__main > * { margin: 0 !important; min-width: 0; }
.vr-footer__logo { margin: 0 0 1.25rem; }
.vr-footer__logo img { width: 170px; height: auto; }
.vr-footer__about { max-width: 38ch; margin: 0 0 1.75rem; color: #fff; font-size: 1.02rem; line-height: 1.6; }
.vr-footer__pitch { margin: 0 0 1rem; font: 400 clamp(1.25rem, 2.2vw, 1.55rem)/1.25 var(--wp--preset--font-family--carter-one); color: #fff; text-wrap: balance; }
.vr-footer__pitch .vr-accent { font-weight: 400; }
.vr-footer__cta .wp-block-navigation__container { gap: .6rem; flex-wrap: wrap; }
.vr-footer__cta .wp-block-navigation-item__content {
	display: inline-flex; align-items: center; min-height: 46px; padding: 0 1.4rem; border-radius: 999px;
	background: var(--wp--preset--color--main); color: #fff; font-weight: 700; box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
	transition: background-color .2s, transform .2s cubic-bezier(.2, .8, .2, 1);
}
.vr-footer__cta .wp-block-navigation-item__content:hover { background: var(--wp--preset--color--main-dark); transform: translateY(-2px); }

.vr-footer .vr-footer__h { position: relative; margin: 0 0 1.35rem; padding-bottom: .7rem; font: 800 .8rem/1.2 var(--wp--preset--font-family--montserrat, inherit); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.vr-footer .vr-footer__h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--vr-f-pink); }
.vr-footer__col .wp-block-navigation { display: block; width: 100%; }
.vr-footer__col .wp-block-navigation__container { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.vr-footer__col .wp-block-navigation-item__content { display: inline-flex; align-items: center; min-height: 38px; padding: 0; color: var(--vr-f-text); font-size: .96rem; font-weight: 500; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .3em; transition: color .15s, text-decoration-color .15s; }
.vr-footer__col .wp-block-navigation-item__content:hover { color: #fff; text-decoration-color: var(--vr-f-pink); }
.vr-footer a:focus-visible { outline: 2px solid var(--wp--preset--color--bright); outline-offset: 3px; border-radius: 4px; }

.vr-footer__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 2.5rem; padding: 1.15rem var(--vr-f-gutter); background: rgba(10, 17, 40, .62); border-top: 1px solid var(--vr-f-line); }
.vr-footer__bar > * { margin: 0 !important; }
.vr-footer__copy { font-size: .9rem; font-weight: 600; color: #fff; }
.vr-footer__note { max-width: 64ch; font-size: .82rem; line-height: 1.5; color: var(--vr-f-mute); }

@media (max-width: 1023px) {
	.vr-footer__main { grid-template-columns: repeat(3, 1fr); }
	.vr-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 781px) {
	.vr-footer__main { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; }
	.vr-footer__col--info { grid-column: 1 / -1; }
	.vr-footer__col--info .wp-block-navigation__container { display: grid; grid-template-columns: 1fr; }
	.vr-footer__col .wp-block-navigation-item__content { min-height: 44px; font-size: 1rem; }
	.vr-footer__cta .wp-block-navigation-item { flex: 1 1 8rem; }
	.vr-footer__cta .wp-block-navigation-item__content { width: 100%; justify-content: center; }
	.vr-footer__bar { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .vr-footer__cta .wp-block-navigation-item__content { transition: none; } .vr-footer__cta .wp-block-navigation-item__content:hover { transform: none; } }

/* ---------- Главная v2 ---------- */
.vr-hero--home .vr-hero__title {
	background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; padding: 0;
	color: #fff; text-shadow: 0 2px 4px rgba(10, 17, 40, .35), 0 8px 40px rgba(10, 17, 40, .55); text-wrap: balance;
	font-size: clamp(2.3rem, 5.4vw, 4.2rem); max-width: 22ch; margin-inline: auto;
}
.vr-hero--home .vr-hero__sub { color: #fff; text-shadow: 0 2px 18px rgba(10, 17, 40, .6); }
.vr-hero--home .wp-block-buttons { margin-top: 1.5rem; }

.wp-block-post-content > .vr-trust, .vr-trust {
	display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.2rem; margin: 0 auto var(--wp--preset--spacing--50); padding: 0 16px; max-width: 1100px;
}
.vr-trust__item { position: relative; margin: 0; padding-left: 1.75rem; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--navy); }
.vr-trust__item::before {
	content: ""; position: absolute; left: 0; top: .12em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--wp--preset--color--main);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.3 14.3L6.9 12.5l1.4-1.4 2.4 2.4 5-5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a10 10 0 100 20 10 10 0 000-20zm-1.3 14.3L6.9 12.5l1.4-1.4 2.4 2.4 5-5 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* страны: крупные плитки с названием поверх фото */
.vr-countries .is-style-card { position: relative; overflow: hidden; padding: 0 !important; border-radius: var(--wp--custom--radius--m); }
.vr-countries .wp-block-post-featured-image { margin: 0; }
.vr-countries .wp-block-post-featured-image img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.vr-countries .is-style-card:hover img { transform: scale(1.05); }
.vr-countries .wp-block-post-title { position: absolute; inset: auto 0 0 0; margin: 0; padding: 3.5rem 1.4rem 1.2rem; background: linear-gradient(to top, rgba(10, 17, 40, .86), rgba(10, 17, 40, 0)); pointer-events: none; }
.vr-countries .wp-block-post-title a { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); pointer-events: auto; text-shadow: 0 2px 12px rgba(10, 17, 40, .5); }
.vr-countries .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }

/* «начните с вашего вопроса» */
.wp-block-post-content .vr-routes { margin-block: var(--wp--preset--spacing--60) !important; }
.wp-block-post-content .vr-guides { margin-block-start: var(--wp--preset--spacing--60) !important; }
.vr-routes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.vr-route { margin: 0; }
.vr-route a {
	box-sizing: border-box;
	position: relative; display: block; height: 100%; padding: 1.3rem 1.4rem 1.4rem; background: #fff; border: 1px solid var(--wp--preset--color--border); border-radius: var(--wp--custom--radius--m);
	box-shadow: var(--wp--preset--shadow--soft); color: var(--wp--preset--color--navy); text-decoration: none; overflow: hidden;
	transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, border-color .25s;
}
.vr-route a::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--wp--preset--color--main); transform: scaleX(.18); transform-origin: left; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.vr-route a:hover { transform: translateY(-3px); border-color: var(--wp--preset--color--main); box-shadow: var(--wp--preset--shadow--lift); }
.vr-route a:hover::before { transform: scaleX(1); }
.vr-route strong { font: 400 1.25rem/1.25 var(--wp--preset--font-family--carter-one); color: var(--wp--preset--color--main); }
.vr-route__text { display: block; margin-top: .45rem; font-size: .95rem; line-height: 1.5; color: #4b5568; }

/* полоса-призыв */
.vr-band {
	position: relative; isolation: isolate; margin-block: var(--wp--preset--spacing--60); padding: clamp(2rem, 5vw, 3.5rem) clamp(1.4rem, 5vw, 3.5rem); border-radius: 24px; color: #fff; text-align: center;
	background: var(--wp--preset--color--navy) url("../img/topo.svg") center / cover no-repeat;
}
.vr-band h3 { margin: 0 0 .6rem; font: 400 clamp(1.6rem, 3.6vw, 2.4rem)/1.2 var(--wp--preset--font-family--carter-one); color: #fff; text-wrap: balance; }
.vr-band p { max-width: 52ch; margin: 0 auto 1.4rem; color: #D3DAEA; font-size: 1.05rem; line-height: 1.6; }
.vr-band .wp-block-buttons { justify-content: center; }
.vr-band .wp-block-button__link { background: var(--wp--preset--color--bright); color: var(--wp--preset--color--navy-dark); font-weight: 700; box-shadow: 0 8px 22px rgba(0, 0, 0, .3); }
.vr-band .wp-block-button__link:hover { background: #fff; }

/* города «пилюлями» */
.vr-places { margin-block: var(--wp--preset--spacing--50); }
.vr-places__list { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.2rem; }
.vr-place { margin: 0; }
.vr-place a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.2rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; background: #fff; color: var(--wp--preset--color--navy); font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.vr-place a:hover { background: var(--wp--preset--color--main); border-color: var(--wp--preset--color--main); color: #fff; }

/* вводный текст про визаран: коротко, остальное по нажатию */
.vr-intro { max-width: 46rem; margin: var(--wp--preset--spacing--60) auto; text-align: center; }
.vr-intro .is-style-lead { font-size: clamp(1.1rem, 2.2vw, 1.35rem); line-height: 1.6; }
.vr-intro .wp-block-details { margin-top: 1.2rem; text-align: left; }
@media (prefers-reduced-motion: reduce) { .vr-route a, .vr-route a::before, .vr-countries img, .vr-place a { transition: none; } .vr-route a:hover { transform: none; } .vr-countries .is-style-card:hover img { transform: none; } }
@media (max-width: 781px) { .vr-trust { gap: .3rem 1.4rem; justify-content: flex-start !important; } .vr-trust__item { font-size: .9rem; } .vr-routes__grid { grid-template-columns: 1fr 1fr; gap: .75rem; } .vr-route a { padding: 1rem; } .vr-route strong { font-size: 1.1rem; } }
@media (max-width: 420px) { .vr-routes__grid { grid-template-columns: 1fr; } }

/* ---------- Главная v3: фон, полосы, рабочий стол ---------- */
.home { --vr-home-bg: #F5F7FB; background-color: var(--vr-home-bg); }
.home .vr-hero::after { background: var(--vr-home-bg); }
/* фон: узор из путевых значков (tools/make-bg.php делает его из docs/background.jpg), плитка без швов */
.home { background-image: url("../img/pattern.webp"); background-repeat: repeat; background-size: 900px 900px; background-position: center top; }
@media (max-width: 781px) { .home { background-size: 620px 620px; } }
/* белые полосы на всю ширину экрана, между ними видна карта на фоне */
.home main { overflow-x: clip; }
.home .vr-routes, .home .vr-intro { position: relative; padding-block: clamp(2.5rem, 5vw, 4rem); margin-block: var(--wp--preset--spacing--60) !important; }
.home .vr-routes::before, .home .vr-intro::before { content: ""; position: absolute; inset: 0 -100vmax; z-index: -1; background: #fff; border-block: 1px solid #E3E8F0; }

/* страны: ниже и шире, чтобы не занимали весь экран */
@media (min-width: 782px) {
	.home .vr-countries .wp-block-post-featured-image img { aspect-ratio: 2 / 1; }
}
/* гайды: горизонтальные карточки на рабочем столе */
@media (min-width: 1024px) {
	.home .vr-guides .wp-block-post-template { grid-template-columns: repeat(2, 1fr) !important; gap: 1.5rem; }
	.home .vr-guides .is-style-card { display: grid; grid-template-columns: 5fr 6fr; align-items: stretch; padding: 0 !important; overflow: hidden; }
	.home .vr-guides .is-style-card .wp-block-post-featured-image { margin: 0; height: 100%; }
	.home .vr-guides .is-style-card .wp-block-post-featured-image img { height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
	.home .vr-guides .is-style-card .wp-block-post-title { align-self: center; margin: 0; padding: 1.5rem 1.6rem !important; font-size: 1.5rem; }
}

/* города: фото-плитки с названием поверх */
.home .vr-cities:not(.vr-countries) { margin-block: var(--wp--preset--spacing--60); }
.home .vr-cities:not(.vr-countries) .wp-block-post-template { grid-template-columns: repeat(3, 1fr) !important; gap: 1rem; }
.home .vr-cities:not(.vr-countries) .is-style-card { position: relative; overflow: hidden; padding: 0 !important; border-radius: var(--wp--custom--radius--m); }
.home .vr-cities:not(.vr-countries) .wp-block-post-featured-image { margin: 0; }
.home .vr-cities:not(.vr-countries) .wp-block-post-featured-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.home .vr-cities:not(.vr-countries) .wp-block-post-title { position: absolute; inset: auto 0 0 0; margin: 0; padding: 2.4rem 1.1rem .9rem !important; background: linear-gradient(to top, rgba(10, 17, 40, .85), rgba(10, 17, 40, 0)); }
.home .vr-cities:not(.vr-countries) .wp-block-post-title a { color: #fff; font-size: 1.3rem; text-shadow: 0 2px 10px rgba(10, 17, 40, .5); }
.home .vr-cities:not(.vr-countries) .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 781px) {
	.home .vr-cities:not(.vr-countries) .wp-block-post-template { grid-template-columns: 1fr 1fr !important; gap: .6rem; }
	.home .vr-cities:not(.vr-countries) .wp-block-post-featured-image img { aspect-ratio: 4 / 3; }
	.home .vr-cities:not(.vr-countries) .wp-block-post-title a { font-size: 1.05rem; }
	.home .vr-cities:not(.vr-countries) .wp-block-post-template > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

/* вводный текст полностью на странице */
.vr-intro__body { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-top: 1.5rem; align-items: center; }
.vr-intro__text > * { max-width: 62ch; }
.vr-intro__text p { line-height: 1.75; }
.vr-intro__text .is-style-lead { font-weight: 600; color: var(--wp--preset--color--navy); }
.vr-intro__media img { width: 100%; height: auto; }
@media (min-width: 900px) { .vr-intro__body { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; } }
.vr-intro { text-align: left; max-width: 1290px; margin-inline: auto; }
.vr-intro > .wp-block-heading { text-align: center; }
.home .vr-guides .wp-block-post-template > li, .home .vr-cities .wp-block-post-template > li { min-width: 0; }
@media (min-width: 1024px) {
	.home .vr-guides .is-style-card { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
	.home .vr-guides .is-style-card .wp-block-post-featured-image img { max-width: 100%; }
	.vr-route a { padding: 1.7rem 1.7rem 1.8rem; }
	.vr-route strong { font-size: 1.4rem; }
	.vr-route__text { font-size: 1rem; }
	.vr-intro__text p:not(.is-style-lead) { font-size: 1.05rem; color: #3b4559; }
	.vr-intro__text .is-style-lead { font-size: 1.3rem; }
}

/* ---------- Главная v4: кадры обложки, лента стран, вводный раздел ---------- */
/* Кадры обложки: каждый приближается медленно, смена по горизонтали. Без JS и без поддержки translate виден один кадр. */
.vr-hero__slide { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@supports (translate: 0) {
	.vr-hero--slides.is-ready .wp-block-cover__image-background, .vr-hero--slides.is-ready .vr-hero__slide {
		display: block; translate: 100% 0; scale: 1; will-change: translate, scale;
		transition: translate 1.5s cubic-bezier(.65, 0, .35, 1);
	}
	.vr-hero--slides.is-ready .is-active, .vr-hero--slides.is-ready .is-gone { scale: 1.13; transition: translate 1.5s cubic-bezier(.65, 0, .35, 1), scale 9s linear; }
	.vr-hero--slides.is-ready .is-active { translate: 0 0; }
	.vr-hero--slides.is-ready .is-gone { translate: -100% 0; }
}
@media (prefers-reduced-motion: reduce) { .vr-hero__slide { display: none !important; } }

/* Страны: лента; при двух карточках кнопок нет, при большем числе появляются */
.vr-countries { position: relative; }
.vr-countries .wp-block-post-template { display: flex !important; flex-wrap: nowrap; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 2px; }
.vr-countries .wp-block-post-template::-webkit-scrollbar { display: none; }
.vr-countries .wp-block-post-template > li { flex: 0 0 calc((100% - 1rem) / 2); min-width: 0; scroll-snap-align: start; margin: 0; }
.vr-rail__btn { display: none; position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -10px; padding: 0; border: 0; border-radius: 50%; place-items: center; cursor: pointer; z-index: 4;
	background: rgba(255, 255, 255, .95); color: var(--wp--preset--color--navy-dark); box-shadow: 0 6px 18px rgba(18, 29, 57, .3); transition: opacity .2s, transform .2s; }
.vr-rail__btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.vr-rail__prev { left: 10px; } .vr-rail__next { right: 10px; }
.vr-countries.has-rail .vr-rail__btn { display: grid; }
.vr-rail__btn:hover:not(:disabled) { transform: scale(1.07); }
.vr-rail__btn:disabled { opacity: 0; pointer-events: none; }
.vr-rail__btn:focus-visible { outline: 3px solid var(--wp--preset--color--bright); outline-offset: 2px; }
@media (max-width: 781px) {
	.vr-countries .wp-block-post-template > li { flex-basis: 86%; }
	.vr-rail__btn { width: 40px; height: 40px; margin-top: -4px; }
	.vr-rail__btn svg { width: 20px; height: 20px; }
}
.home .vr-countries .wp-block-post-featured-image img { aspect-ratio: 16 / 10; }
@media (min-width: 782px) { .home .vr-countries .wp-block-post-featured-image img { aspect-ratio: 2 / 1; } }

/* Вводный раздел: отступы по бокам как в подвале, заголовок слева с розовой чертой, фото со скруглением */
/* текст стоит на одной линии с содержимым подвала: 20 px от края колонки (на узких экранах край колонки 11 px) */
.home .vr-intro { padding-inline: 20px; }
@media (max-width: 1310px) { .home .vr-intro { padding-inline: 9px; } }
.home .vr-intro > .wp-block-heading { position: relative; margin: 0; padding-bottom: .9rem; text-align: left; }
.home .vr-intro > .wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--wp--preset--color--main); }
.vr-intro__body { margin-top: 1.75rem; align-items: start; }
.vr-intro__text { position: relative; }
.vr-intro__text .is-style-lead { margin: 0 0 1.25rem; padding: 1.1rem 1.3rem; background: var(--wp--preset--color--soft); border-radius: var(--wp--custom--radius--m); line-height: 1.6; font-weight: 600; color: var(--wp--preset--color--navy); }
.vr-intro__text p:not(.is-style-lead) { margin: 0 0 1.1rem; }
.vr-intro__media { position: relative; }
.vr-intro__media figure { margin: 0; }
.vr-intro__media img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 24px; box-shadow: var(--wp--preset--shadow--lift); }
@media (max-width: 899px) { .vr-intro__media img { aspect-ratio: 3 / 2; } }
@media (min-width: 900px) {
	.vr-intro__body { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3.5rem; }
	.vr-intro__media { position: sticky; top: calc(var(--wp--custom--header-height, 72px) + 24px); }
}
.vr-intro__text .is-style-lead { box-sizing: border-box; max-width: 62ch; }

/* ---------- Гайды и направления v2 ---------- */
body.single-guide, body.single-destination { --vr-home-bg: #F5F7FB; background-color: var(--vr-home-bg); background-image: url("../img/pattern.webp"); background-repeat: repeat; background-size: 900px 900px; background-position: center top; }
@media (max-width: 781px) { body.single-guide, body.single-destination { background-size: 620px 620px; } }
.single-guide .vr-hero::after, .single-destination .vr-hero::after { background: var(--vr-home-bg); }

/* обложка: фото затемнено, заголовок белый слева, внизу; боковые поля как у подвала */
.vr-hero--guide { align-items: flex-end; }
.vr-hero--guide::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(10, 17, 40, .78) 0%, rgba(10, 17, 40, .35) 45%, rgba(10, 17, 40, 0) 75%); pointer-events: none; }
.vr-hero--guide .wp-block-cover__inner-container {
	max-width: none; width: 100%; margin: 0; text-align: left; box-sizing: border-box;
	padding: calc(var(--wp--custom--header-height, 72px) + 2rem) max(20px, calc((100% - 1290px) / 2 + 20px)) clamp(3.2rem, 7vw, 5rem);
}
.vr-hero--guide .vr-hero__title { margin: .5rem 0 0; max-width: 26ch; padding: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 0; text-shadow: 0 2px 4px rgba(10, 17, 40, .35), 0 8px 40px rgba(10, 17, 40, .55); color: #fff; font-size: clamp(2rem, 4.8vw, 3.7rem); text-wrap: balance; width: auto; }
.vr-hero--guide .vr-hero__sub { max-width: 60ch; margin: .9rem 0 0; text-transform: none; letter-spacing: 0; font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.2rem); line-height: 1.5; color: #fff; text-shadow: 0 2px 16px rgba(10, 17, 40, .6); }
.vr-hero--guide .vr-reviewed { margin-top: 1rem; color: #fff; }
.vr-hero--guide .vr-reviewed > span { color: #fff; }
.vr-hero--guide .vr-reviewed svg { stroke: var(--wp--preset--color--bright); }
.vr-hero--guide .vr-reviewed__link { color: var(--wp--preset--color--bright); padding-block: .3rem; }
@media (max-width: 781px) { .vr-hero--guide { min-height: 62vh !important; } }

.vr-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .4rem; margin: 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 600; }
.vr-crumbs li { display: inline-flex; align-items: center; color: rgba(255, 255, 255, .92); }
.vr-crumbs li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }
.vr-crumbs a { display: inline-flex; align-items: center; min-height: 32px; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); text-underline-offset: .25em; }
.vr-crumbs a:hover { text-decoration-color: var(--wp--preset--color--bright); }
.vr-crumbs [aria-current] { opacity: .8; }

/* читаем на белой панели, рядом боковая колонка */
.vr-guide { padding-inline: 0 !important; }
.vr-guide__layout { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 1.75rem; align-items: start; padding-inline: 11px; }
.vr-guide__layout > .wp-block-column { flex-basis: auto !important; width: auto !important; min-width: 0; }
@media (min-width: 1024px) { .vr-guide__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; } .vr-guide__aside { align-self: stretch; } }
.vr-guide__main { background: #fff; border: 1px solid #E6EBF3; border-radius: 24px; box-shadow: var(--wp--preset--shadow--soft); padding: clamp(1.1rem, 3.2vw, 2.75rem); }
@media (max-width: 781px) { .vr-guide__main { border-radius: 18px; padding: 1.1rem .95rem 1.5rem; } }
.vr-guide .vr-meta--top { margin-bottom: 1.25rem; justify-content: flex-start; }

/* заголовки слева, без призрачных надписей */
.vr-guide .is-style-ghost-kicker { display: none; }
.vr-guide .wp-block-post-content h2.wp-block-heading { position: relative; margin: 2.75rem 0 1.1rem; padding-bottom: .8rem; text-align: left; font-size: clamp(1.6rem, 3vw, 2.15rem); line-height: 1.2; color: var(--wp--preset--color--navy); text-wrap: balance; }
.vr-guide .wp-block-post-content h2.wp-block-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 44px; height: 4px; border-radius: 2px; background: var(--wp--preset--color--main); }
.vr-guide .wp-block-post-content > h2.wp-block-heading:first-child, .vr-guide .wp-block-post-content > .is-style-ghost-kicker + h2.wp-block-heading { margin-top: .5rem; }
.vr-guide .wp-block-post-content h3.wp-block-heading { margin: 2rem 0 .7rem; font-family: var(--wp--preset--font-family--poppins, inherit); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.3; text-transform: none; color: var(--wp--preset--color--navy); }
.vr-guide .wp-block-post-content h4.wp-block-heading { margin: 1.5rem 0 .5rem; font-weight: 700; font-size: 1.05rem; color: var(--wp--preset--color--navy); }

/* текст темнее и просторнее */
.vr-guide .wp-block-post-content > p, .vr-guide .wp-block-post-content li, .vr-guide .wp-block-post-content td, .vr-guide .wp-block-post-content th, .vr-guide .wp-block-details p { color: #2B3445; font-size: 1.0625rem; line-height: 1.75; }
.vr-guide .wp-block-post-content > p { margin: 0 0 1.1rem; }
.vr-guide .wp-block-post-content a:not(.wp-block-button__link) { color: var(--wp--preset--color--main-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.vr-guide .wp-block-post-content a:not(.wp-block-button__link):hover { text-decoration-thickness: 2px; }
.vr-guide .wp-block-post-content ul:not(.is-style-checklist) { padding-left: 1.3rem; }
.vr-guide .wp-block-post-content ul:not(.is-style-checklist) li::marker { color: var(--wp--preset--color--main); }
.vr-guide .wp-block-post-content ol li::marker { color: var(--wp--preset--color--main); font-weight: 700; }
.vr-guide .wp-block-table th { background: var(--wp--preset--color--navy); color: #fff; }
.vr-guide .is-style-lead { font-size: 1.2rem; line-height: 1.6; color: var(--wp--preset--color--navy); font-weight: 500; }

/* на широком экране метки-якоря заменяет оглавление справа */
@media (min-width: 1024px) { .has-toc .vr-guide .vr-anchors { display: none; } }

/* боковая колонка: прилипающее оглавление и города */
.vr-guide .vr-sidebar { position: sticky; top: calc(var(--wp--custom--header-height, 72px) + 16px); display: grid; gap: 1.25rem; }
.vr-toc, .vr-guide .vr-locations { background: #fff; border: 1px solid #E6EBF3; border-radius: 20px; box-shadow: var(--wp--preset--shadow--soft); padding: 1.25rem 1.1rem 1.1rem; }
.vr-toc__h, .vr-aside__h { position: relative; margin: 0 0 1rem; padding-bottom: .7rem; font: 800 .8rem/1.2 var(--wp--preset--font-family--montserrat, inherit); letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--navy); }
.vr-toc__h::after, .vr-aside__h::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 3px; border-radius: 2px; background: var(--wp--preset--color--main); }
.vr-toc__bar { height: 4px; margin: -.2rem 0 .8rem; border-radius: 2px; background: #E9EDF5; overflow: hidden; }
.vr-toc__bar > i { display: block; height: 100%; width: 0; background: var(--wp--preset--color--main); transition: width .2s linear; }
.vr-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: calc(100vh - var(--wp--custom--header-height, 72px) - 14rem); overflow: auto; scrollbar-width: thin; }
.vr-toc a { display: flex; align-items: center; gap: .7rem; min-height: 38px; padding: .3rem .7rem; border-radius: 10px; color: #3b4559; font-size: .95rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: background-color .2s, color .2s; }
.vr-toc a::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #CBD3E3; transition: background-color .2s, transform .2s; }
.vr-toc a:hover { background: #F1F4FA; color: var(--wp--preset--color--navy); }
.vr-toc a.is-current { background: #FFF0F5; color: var(--wp--preset--color--main-dark); }
.vr-toc a.is-current::before { background: var(--wp--preset--color--main); transform: scale(1.35); }
.vr-toc a:focus-visible { outline: 2px solid var(--wp--preset--color--main); outline-offset: 2px; }
.vr-guide .vr-locations .wp-block-post-template { display: grid; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.vr-guide .vr-locations .wp-block-post-template > li { display: flex; align-items: center; gap: .8rem; margin: 0; }
.vr-guide .vr-locations .vr-loc__img { flex: none; margin: 0; width: 56px; }
.vr-guide .vr-locations .vr-loc__img img { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; clip-path: none; -webkit-clip-path: none; }
.vr-guide .vr-locations .vr-loc__title { margin: 0; font-size: 1rem; font-weight: 700; }
.vr-guide .vr-locations .vr-loc__title a { color: var(--wp--preset--color--navy); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.vr-guide .vr-locations .vr-loc__title a:hover { color: var(--wp--preset--color--main); }
@media (max-height: 1000px) and (min-width: 1024px) { .vr-guide .vr-locations { display: none; } }
@media (max-width: 1023px) { .vr-guide .vr-sidebar { position: static; } }

/* полоса в конце гайда */
.vr-guide-band { margin: 2rem 11px 0; }
.vr-guide-band h2 { margin: 0 0 .6rem; font: 400 clamp(1.6rem, 3.6vw, 2.4rem)/1.2 var(--wp--preset--font-family--carter-one); color: #fff; text-wrap: balance; }
.vr-guide-band p { max-width: 52ch; margin: 0 auto 1.4rem; color: #D3DAEA; font-size: 1.05rem; line-height: 1.6; }
.vr-guide-band .wp-block-buttons { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .vr-toc a, .vr-toc__bar > i { transition: none; } }
.vr-hero--guide .vr-crumbs, .vr-hero--guide .vr-hero__title, .vr-hero--guide .vr-hero__sub, .vr-hero--guide .vr-reviewed { margin-inline: 0 !important; }
.vr-guide .vr-locations .vr-loc__title a { font-family: inherit; }
.vr-guide__aside .wp-block-template-part { display: contents; }
.vr-guide .wp-block-post-content :is(ul, ol) { margin: 0 0 1.2rem; }
.vr-guide .wp-block-post-content p:not(.vr-reviewed):not(.is-style-lead):not(.vr-fact):not([class*="vr-pcard"]) { color: #2B3445; font-size: 1.0625rem; line-height: 1.75; }
.vr-guide .wp-block-post-content figcaption { color: #5b6578; font-size: .9rem; }
@media (max-width: 781px) { .vr-crumbs [aria-current] { display: none; } }
.vr-guide-band { max-width: min(1268px, calc(100% - 22px)) !important; margin-inline: auto !important; }
/* врезка «важно»: без толстой цветной полосы сбоку; мягкий фон, тонкая рамка и розовая метка-точка у заголовка */
.vr-guide .is-style-infobox { border: 1px solid #DCE5F4; border-left-width: 1px; background: #F3F6FC; border-radius: 16px; padding: 1.1rem 1.3rem 1.2rem; }
.vr-guide .is-style-infobox h3 { position: relative; margin: 0 0 .5rem !important; padding-left: 1.5rem; }
.vr-guide .is-style-infobox h3::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--wp--preset--color--main); box-shadow: 0 0 0 4px rgba(216, 27, 96, .16); }
/* страницы без меток-якорей (страны): без пустой колонки, панель на всю ширину */
.vr-guide__layout:not(:has(.vr-anchors)) { grid-template-columns: minmax(0, 1fr) !important; }
.vr-guide__layout:not(:has(.vr-anchors)) .vr-guide__aside { display: none; }
.vr-guide .wp-block-post-title a, .vr-guide .is-style-card a { text-decoration: none !important; }

/* ---------- Таблицы и врезки в гайдах v2 ---------- */
.vr-guide .wp-block-table { margin-block: 1.5rem 1.75rem; border-radius: 16px; box-shadow: var(--wp--preset--shadow--soft); }
.vr-guide .wp-block-table table { border-radius: 16px; }
.vr-guide .wp-block-table :is(th, td) { padding: .8em 1.05em; vertical-align: top; text-align: left; overflow-wrap: break-word; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
.vr-guide .wp-block-table th { font-size: .95rem; letter-spacing: .01em; }
.vr-guide .wp-block-table tbody tr:hover td { background: #FFF6F9; }
/* три колонки и больше: ширину задаёт содержимое, а не равные доли; узкие столбцы не сплющиваются */
.vr-guide .wp-block-table table:not(.has-fixed-layout) { table-layout: auto !important; width: 100%; }
.vr-guide .wp-block-table table:has(th:nth-child(3)) { table-layout: auto !important; min-width: 34rem; }
.vr-guide .wp-block-table table:has(th:nth-child(3)) :is(th, td):nth-child(1) { min-width: 8.5rem; }
.vr-guide .wp-block-table table:has(th:nth-child(3)) :is(th, td):nth-child(2) { min-width: 7rem; }
.vr-guide .wp-block-table table:has(th:nth-child(3)) :is(th, td):nth-child(n+3) { min-width: 14rem; }
/* строка «Итого» */
.vr-guide .wp-block-table tr.is-total td { background: #FFF0F5 !important; font-weight: 800; color: var(--wp--preset--color--navy); border-top: 2px solid var(--wp--preset--color--main); }

/* тёмная врезка: белый текст и жёлтый заголовок */
.vr-guide .is-style-callout { border-radius: 20px; padding: clamp(1.25rem, 3vw, 2rem); }
.vr-guide .wp-block-post-content .is-style-callout :is(h2, h3, h4).wp-block-heading { margin: 0 0 .6rem; padding: 0; font-family: var(--wp--preset--font-family--carter-one); font-weight: 400; font-size: clamp(1.3rem, 2.6vw, 1.7rem); line-height: 1.25; color: var(--wp--preset--color--bright); text-transform: none; }
.vr-guide .wp-block-post-content .is-style-callout h2.wp-block-heading::after { display: none; }
.vr-guide .wp-block-post-content .is-style-callout p { color: rgba(255, 255, 255, .92) !important; }
.vr-guide .wp-block-post-content .is-style-callout a:not(.wp-block-button__link) { color: var(--wp--preset--color--bright); }
.vr-guide .wp-block-post-content .is-style-callout .wp-block-button__link { margin-top: .4rem; }
.vr-guide .is-style-infobox :is(p, li) { color: #2B3445; }
.vr-guide .is-style-infobox > :last-child { margin-bottom: 0; }

/* телефон: широкие таблицы (3+ колонки) превращаются в карточки: заголовок строки и подписанные значения */
@media (max-width: 700px) {
	.vr-guide .wp-block-table { overflow: visible; box-shadow: none; border-radius: 0; }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) { display: block; min-width: 0; width: 100%; border: 0; background: none; }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) tbody { display: grid; gap: .75rem; }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) tr { display: block; padding: .35rem 1rem .5rem; background: #fff; border: 1px solid #DCE5F4; border-radius: 16px; box-shadow: var(--wp--preset--shadow--soft); }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) tbody tr:nth-child(even) td, .vr-guide .wp-block-table table:has(th:nth-child(3)) tbody tr:hover td { background: none; }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) td { display: block; min-width: 0 !important; padding: .55rem 0; border: 0; border-bottom: 1px solid #EDF1F8; }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) td:last-child { border-bottom: 0; }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) td:first-child { padding-block: .7rem .45rem; font-size: 1.15rem; color: var(--wp--preset--color--navy); }
	.vr-guide .wp-block-table table:has(th:nth-child(3)) td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: .1rem; font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #6A7490; }
}

/* ---------- Списки гайдов и направлений ---------- */
body.post-type-archive-guide, body.post-type-archive-destination { --vr-home-bg: #F5F7FB; background-color: var(--vr-home-bg); background-image: url("../img/pattern.webp"); background-repeat: repeat; background-size: 900px 900px; background-position: center top; }
@media (max-width: 781px) { body.post-type-archive-guide, body.post-type-archive-destination { background-size: 620px 620px; } }

.vr-archive-hero {
	position: relative; isolation: isolate; color: #fff;
	background: var(--wp--preset--color--navy) url("../img/topo.svg") center / cover no-repeat;
	padding: clamp(2rem, 5vw, 3.5rem) max(20px, calc((100% - 1290px) / 2 + 20px)) clamp(4rem, 8vw, 6rem);
}
.vr-archive-hero::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 70px; z-index: 2; background: var(--vr-home-bg);
	-webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 70V38C180 8 360 6 540 30s360 34 540 8 270-30 360-14V70z'/></svg>") bottom/100% 100% no-repeat;
	mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 70V38C180 8 360 6 540 30s360 34 540 8 270-30 360-14V70z'/></svg>") bottom/100% 100% no-repeat; }
.vr-archive-hero__in { max-width: 1290px; margin: 0 auto; }
.vr-archive-hero h1 { margin: .6rem 0 0; font: 400 clamp(2.2rem, 5.4vw, 3.8rem)/1.12 var(--wp--preset--font-family--carter-one); color: #fff; text-wrap: balance; }
.vr-archive-hero__desc { max-width: 56ch; margin: .9rem 0 0; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.55; color: #D3DAEA; }
.vr-archive-hero__count { display: inline-flex; margin: 1.1rem 0 0; padding: .3rem .95rem; border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); font-size: .85rem; font-weight: 700; color: #fff; }

.vr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 1.75rem; }
.vr-chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.25rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; background: #fff; color: var(--wp--preset--color--navy); font-weight: 600; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; }
.vr-chip:hover { border-color: var(--wp--preset--color--main); color: var(--wp--preset--color--main); }
.vr-chip.is-active { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }

.vr-archive { padding-inline: 11px !important; }
.vr-archive .wp-block-post-template { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important; gap: 1.5rem; }
.vr-archive .wp-block-post-template > li { min-width: 0; }
.vr-list-few .vr-archive .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 700px) { .vr-list-few .vr-archive .wp-block-post-template { grid-template-columns: 1fr !important; } }

.vr-listcard { position: relative; overflow: hidden; padding: 0 !important; display: flex; flex-direction: column; background: #fff; }
.vr-listcard .wp-block-post-featured-image { margin: 0 !important; }
.vr-listcard .wp-block-post-featured-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.vr-badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; margin: 0; padding: .28rem .85rem; border-radius: 999px; background: rgba(32, 47, 89, .88); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; box-shadow: 0 4px 14px rgba(10, 17, 40, .3); }
.vr-listcard .wp-block-post-title { margin: 1.1rem 0 .3rem; padding-inline: 1.3rem !important; font-size: 1.45rem; line-height: 1.25; }
.vr-listcard .wp-block-post-title a { text-decoration: none; }
.vr-card-date { margin: 0 0 .5rem; padding-inline: 1.3rem; font-size: .85rem; font-weight: 600; color: #5b6578; }
.vr-listcard .wp-block-post-excerpt { margin: 0; padding: 0 1.3rem 1.4rem !important; color: #2B3445; }
.vr-listcard .wp-block-post-excerpt__excerpt { margin: 0; line-height: 1.6; }
.vr-listcard .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* первая карточка крупно (когда материалов от трёх, только на первой странице) */
@media (min-width: 900px) {
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child .vr-listcard { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: 1fr auto auto auto 1fr; }
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child .wp-block-post-featured-image { grid-row: 1 / -1; grid-column: 1; height: 100%; }
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child .wp-block-post-featured-image img { height: 100%; aspect-ratio: 16 / 10; }
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child .wp-block-post-title { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; font-size: clamp(1.7rem, 2.6vw, 2.3rem); padding-inline: 2rem !important; }
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child .vr-card-date { grid-column: 2; grid-row: 3; padding-inline: 2rem; }
	body.vr-list-many:not(.paged) .vr-archive .wp-block-post-template > li:first-child .wp-block-post-excerpt { grid-column: 2; grid-row: 4; align-self: start; padding: .4rem 2rem 0 !important; font-size: 1.05rem; }
}

.vr-archive .wp-block-query-pagination { margin-top: 2.5rem; gap: .5rem; }
.vr-archive .wp-block-query-pagination :is(.page-numbers, .wp-block-query-pagination-previous, .wp-block-query-pagination-next) { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 .9rem; border: 1px solid var(--wp--preset--color--border); border-radius: 999px; background: #fff; color: var(--wp--preset--color--navy); font-weight: 600; text-decoration: none; }
.vr-archive .wp-block-query-pagination .page-numbers.current { background: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); color: #fff; }
.vr-archive .wp-block-query-pagination a:hover { border-color: var(--wp--preset--color--main); color: var(--wp--preset--color--main); }

.vr-archive-band { margin-top: 3.5rem; }
.vr-archive-band h2 { margin: 0 0 .6rem; font: 400 clamp(1.6rem, 3.6vw, 2.4rem)/1.2 var(--wp--preset--font-family--carter-one); color: #fff; text-wrap: balance; }
.vr-archive-band p { max-width: 52ch; margin: 0 auto 1.4rem; color: #D3DAEA; }
.vr-archive-band .vr-footer__cta .wp-block-navigation__container { justify-content: center; }
.vr-archive-band .vr-footer__cta .wp-block-navigation { justify-content: center; }
@media (prefers-reduced-motion: reduce) { .vr-chip { transition: none; } }

/* Волна внизу обложек вырезается маской самой обложки: внизу виден настоящий фон страницы (узор), а не сплошная заливка */
.vr-hero, .vr-archive-hero {
	--vr-wave: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'><path d='M0 0V38C180 8 360 6 540 30s360 34 540 8 270-30 360-14V0z'/></svg>");
	-webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - 69px) no-repeat, var(--vr-wave) bottom / 100% 70px no-repeat;
	mask: linear-gradient(#000, #000) top / 100% calc(100% - 69px) no-repeat, var(--vr-wave) bottom / 100% 70px no-repeat;
}
.vr-hero::after, .vr-archive-hero::after { display: none !important; }
@media print { .vr-hero, .vr-archive-hero { -webkit-mask: none; mask: none; } }
