/**
 * Membership page — Figma «БФ (Copy)» → «Membership — Desktop 1440».
 * Font: project brand font (Articulat CF) instead of the mock's Onest / Cormorant SC (decision 2026-11-15).
 * Mobile/tablet: adapted (no mobile mock).
 */

/* Full-bleed: Hello theme caps .site-main at 1140px; the fixed site header (.bf-header) needs an offset. */
body.vf-membership-page .site-main.vf-membership-main,
.vf-membership-main {
	box-sizing: border-box;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: var(--vf-mobile-header-height, 72px) 0 0 !important; /* .bf-header is 72px tall */
	background: #f1efe6;
}
@media (max-width: 900px) {
	body.vf-membership-page .site-main.vf-membership-main,
	.vf-membership-main {
		padding-top: var(--vf-mobile-header-height, 72px) !important;
	}
}

.vf-mship {
	--m-ink: #19241a;
	--m-ink-2: #2f3930;
	--m-cream: #f1efe6;
	--m-sand: #cfcbba;
	--m-sand-2: #e6e3d6;
	--m-field: #fbfaf6;
	--m-muted: #8a8d83;
	--m-soft: #5f655e;
	--m-rule: rgba(25, 36, 26, 0.14);
	--m-rule-cream: rgba(241, 239, 230, 0.2);
	--m-error: #a3301f;
	/* Same container as the site header / homepage: min(100% - 48px, 1280px) → content edges line up with the header. */
	--m-gutter: max(24px, calc((100% - 1280px) / 2));
	--m-section-y: clamp(56px, 6.1vw, 88px);
	--m-radius: 28px;
	--m-medium: 500;
	--m-strong: var(--vf-heading-weight, 600);

	background: var(--m-cream);
	color: var(--m-ink);
	font-family: var(--vf-font-family, "Articulat CF", sans-serif);
	word-break: normal;
	overflow-wrap: break-word;
}

.vf-mship *,
.vf-mship *::before,
.vf-mship *::after {
	box-sizing: border-box;
}

.vf-mship h1,
.vf-mship h2,
.vf-mship h3 {
	margin: 0;
	font-family: inherit;
	color: inherit;
}

/* ---------- Buttons ---------- */
.vf-mship .vf-mship-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 26px;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font: var(--m-medium) 15.5px/1.2 var(--vf-font-family, sans-serif);
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
	background: none;
	box-shadow: none;
	text-transform: none;
	letter-spacing: 0;
}
.vf-mship .vf-mship-btn--dark { background: var(--m-ink); color: var(--m-cream); }
.vf-mship .vf-mship-btn--line { border-color: var(--m-ink); color: var(--m-ink); }
.vf-mship .vf-mship-btn--cream { background: var(--m-cream); color: var(--m-ink); }
.vf-mship .vf-mship-btn--cream-line { border-color: rgba(241, 239, 230, 0.5); color: var(--m-cream); }
/* Hover only on real pointers (no sticky hover after tap); focus shows just the ring below. */
@media (hover: hover) {
	.vf-mship .vf-mship-btn--dark:hover { background: #2a3a2c; color: var(--m-cream); }
	.vf-mship .vf-mship-btn--line:hover { background: var(--m-ink); color: var(--m-cream); }
	.vf-mship .vf-mship-btn--cream:hover { background: #fff; color: var(--m-ink); }
	.vf-mship .vf-mship-btn--cream-line:hover { border-color: var(--m-cream); background: rgba(241, 239, 230, 0.08); color: var(--m-cream); }
}
.vf-mship .vf-mship-btn:focus:not(:focus-visible) { outline: none; }
.vf-mship .vf-mship-btn[disabled] { opacity: 0.6; cursor: progress; }
.vf-mship .vf-mship-btn:focus-visible { outline: 2px solid #b8a46a; outline-offset: 2px; }

/* ---------- Intro ---------- */
.vf-mship-intro {
	display: grid;
	grid-template-columns: minmax(0, 562fr) minmax(0, 562fr);
	gap: 56px;
	align-items: center;
	padding: 80px var(--m-gutter);
}
.vf-mship-intro__photo {
	position: relative;
	aspect-ratio: 562 / 700;
	border-radius: var(--m-radius);
	overflow: hidden;
	background: var(--m-sand-2);
}
.vf-mship-intro__photo img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
}
.vf-mship-intro__photo--empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1.5px dashed var(--m-sand);
}
.vf-mship-intro__ph-title { font-weight: var(--m-medium); font-size: 16px; color: var(--m-ink); }
.vf-mship-intro__ph-note { font-size: 14px; color: var(--m-muted); }
.vf-mship-intro__text { display: flex; flex-direction: column; gap: 24px; }
.vf-mship .vf-mship-intro__title {
	font-size: clamp(32px, 3.06vw, 44px);
	font-weight: var(--m-strong);
	line-height: 1.12;
	letter-spacing: -0.02em;
	color: var(--m-ink);
}
.vf-mship-intro__lead { display: flex; flex-direction: column; gap: 14px; }
.vf-mship-intro__line { font-size: 17px; line-height: 1.55; color: rgba(25, 36, 26, 0.78); font-weight: var(--m-medium); }
.vf-mship-intro__accent { font-size: 19px; line-height: 1.5; color: var(--m-ink); font-weight: var(--m-medium); }

/* ---------- Membership System ---------- */
.vf-mship-system {
	display: grid;
	grid-template-columns: 480px minmax(0, 1fr);
	gap: 56px;
	padding: var(--m-section-y) var(--m-gutter);
	background: var(--m-ink);
	color: var(--m-cream);
}
.vf-mship-system__head { display: flex; flex-direction: column; gap: 14px; }
.vf-mship-system__kicker { font-size: 14px; font-weight: var(--m-medium); color: rgba(241, 239, 230, 0.6); }
.vf-mship .vf-mship-system__title {
	font-size: clamp(36px, 3.33vw, 48px);
	font-weight: var(--m-strong);
	line-height: 1.1;
	letter-spacing: -0.01em;
	color: var(--m-cream);
}
.vf-mship-system__body { display: flex; flex-direction: column; gap: 28px; }
.vf-mship-system__text { font-size: 16px; line-height: 1.6; font-weight: var(--m-medium); color: rgba(241, 239, 230, 0.84); }
.vf-mship-system__motto {
	padding-top: 24px;
	border-top: 1px solid var(--m-rule-cream);
	font-size: clamp(21px, 1.8vw, 26px);
	line-height: 1.3;
	letter-spacing: -0.01em;
	font-weight: var(--m-medium);
	color: var(--m-cream);
}

/* ---------- Marquee ---------- */
.vf-mship-marquee {
	overflow: hidden;
	padding: 14px 0;
	border-bottom: 1px solid var(--m-rule);
	background: var(--m-cream);
}
.vf-mship-marquee__track {
	display: flex;
	gap: 28px;
	width: max-content;
	animation: vf-mship-marquee 40s linear infinite;
}
.vf-mship-marquee__item {
	font-size: 15px;
	font-weight: var(--m-medium);
	line-height: 1.25;
	color: var(--m-ink);
	white-space: pre;
}
@keyframes vf-mship-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
	.vf-mship-marquee__track { animation: none; }
}

/* ---------- Tiers ---------- */
.vf-mship-tiers {
	display: flex;
	flex-direction: column;
	gap: 36px;
	padding: var(--m-section-y) var(--m-gutter);
	background: var(--m-sand);
	scroll-margin-top: 80px;
}
.vf-mship-tiers__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
}
.vf-mship .vf-mship-tiers__title,
.vf-mship .vf-mship-faq__title,
.vf-mship .vf-mship-people__title {
	font-size: clamp(30px, 2.64vw, 38px);
	font-weight: var(--m-strong);
	line-height: 1.15;
	letter-spacing: -0.02em;
}
.vf-mship-tiers__note { width: 400px; max-width: 100%; font-size: 16px; line-height: 1.25; font-weight: var(--m-medium); color: rgba(47, 57, 48, 0.8); }
.vf-mship-tiers__cards {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}
.vf-mship-card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 549px;
	padding: 32px 30px;
	border-radius: var(--m-radius);
	background: var(--m-cream);
	color: var(--m-ink);
}
.vf-mship-card__num { font-size: 56px; line-height: 1.27; letter-spacing: -0.04em; font-weight: var(--m-medium); color: var(--m-ink-2); }
.vf-mship .vf-mship-card__name {
	font-size: 30px;
	line-height: 1.2;
	font-weight: var(--m-strong);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: inherit;
}
.vf-mship-card__subtitle { font-size: 17px; line-height: 1.3; font-weight: var(--m-medium); }
.vf-mship-card__text { font-size: 16px; line-height: 1.55; color: var(--m-soft); }
.vf-mship-card__price {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--m-rule);
	font-weight: var(--m-medium);
}
.vf-mship-card__price-label { font-size: 14px; color: var(--m-muted); }
.vf-mship-card__price-value { font-size: 22px; letter-spacing: -0.01em; }
.vf-mship-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.vf-mship-card--dark { background: var(--m-ink); color: var(--m-cream); }
.vf-mship-card--dark .vf-mship-card__num { color: var(--m-cream); }
.vf-mship-card--dark .vf-mship-card__text { color: rgba(241, 239, 230, 0.72); }
.vf-mship-card--dark .vf-mship-card__price { border-top-color: var(--m-rule-cream); }
.vf-mship-card--dark .vf-mship-card__price-label { color: rgba(241, 239, 230, 0.6); }

/* ---------- CTA ---------- */
.vf-mship-cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: clamp(64px, 6.67vw, 96px) var(--m-gutter);
	text-align: center;
}
.vf-mship .vf-mship-cta__title {
	max-width: 760px;
	font-size: clamp(30px, 3.06vw, 44px);
	font-weight: var(--m-strong);
	line-height: 1.12;
	letter-spacing: -0.02em;
}

/* ---------- People ---------- */
.vf-mship-people {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 28px;
	padding: var(--m-section-y) var(--m-gutter);
	background: var(--m-ink);
	color: var(--m-cream);
}
.vf-mship-people__head { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 640px; text-align: center; }
.vf-mship .vf-mship-people__title { color: var(--m-cream); }
.vf-mship-people__text { font-size: 16px; line-height: 1.55; font-weight: var(--m-medium); color: rgba(241, 239, 230, 0.6); }
.vf-mship-people__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.vf-mship .vf-mship-people__tab {
	padding: 9px 20px;
	border: 1.5px solid rgba(241, 239, 230, 0.45);
	border-radius: 999px;
	background: transparent;
	color: var(--m-cream);
	font: var(--m-medium) 14.5px/1.2 var(--vf-font-family, sans-serif);
	cursor: pointer;
}
@media (hover: hover) {
	.vf-mship .vf-mship-people__tab:hover { border-color: var(--m-cream); }
}
.vf-mship .vf-mship-people__tab:focus-visible { outline: 2px solid #b8a46a; outline-offset: 2px; }
.vf-mship .vf-mship-people__tab[aria-selected="true"] { border-color: var(--m-cream); background: var(--m-cream); color: var(--m-ink); }
.vf-mship-people__panel { width: 100%; }
/* One row (as in the design), horizontal scroll when there are more people than fit → same height on every tab. */
.vf-mship-people__grid {
	--m-cols: 5.5; /* 5 cards + a peek of the 6th (scroll cue), card ≈ 220px on 1440 */
	--m-gap: 16px;
	display: flex;
	gap: var(--m-gap);
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.vf-mship-people__grid::-webkit-scrollbar { display: none; }
/* Safe centering: few cards are centred, many start at the left edge (no clipped first card). */
.vf-mship-people__grid > :first-child { margin-left: auto; }
.vf-mship-people__grid > :last-child { margin-right: auto; }
.vf-mship-person {
	display: flex;
	flex-direction: column;
	gap: 4px;
	/* Never narrower than 200px — at that width every current caption fits in 4 lines (12px, medium). */
	flex: 0 0 max(200px, calc((100% - (var(--m-cols) - 1) * var(--m-gap)) / var(--m-cols)));
	min-width: 0;
	margin: 0;
	scroll-snap-align: start;
}
.vf-mship-people__row { position: relative; width: 100%; }
/* Arrows sit in the side gutters at photo mid-height (top set by JS) → they never change the block height. */
.vf-mship-people__arrows {
	position: absolute;
	top: 0;
	left: -22px; /* narrow desktops: arrows sit on the row edges */
	right: -22px;
	display: none;
	justify-content: space-between;
	transform: translateY(-50%);
	pointer-events: none;
	z-index: 3; /* above the card photos (also positioned, later in DOM) when arrows overlap the row edges */
}
.vf-mship-people__arrows.is-visible { display: flex; }
.vf-mship-people__arrows .vf-mship-people__arrow { pointer-events: auto; }
@media (min-width: 1410px) {
	.vf-mship-people__arrows { left: -64px; right: -64px; } /* wide screens: in the side gutters */
}
@media (hover: none), (max-width: 900px) {
	.vf-mship-people__arrows.is-visible { display: none; }
}
/* Touch / narrow: the row runs to the screen edges (swipe), first card still aligned with the gutter. */
@media (max-width: 900px) {
	.vf-mship-people__row { width: calc(100% + 2 * var(--m-gutter)); margin-inline: calc(-1 * var(--m-gutter)); }
	.vf-mship-people__grid { padding-inline: var(--m-gutter); scroll-padding-inline: var(--m-gutter); }
}
.vf-mship .vf-mship-people__arrow {
	position: relative;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1.5px solid rgba(241, 239, 230, 0.45);
	border-radius: 999px;
	background: var(--m-ink);
	color: var(--m-cream);
	cursor: pointer;
}
.vf-mship .vf-mship-people__arrow::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border: solid currentColor;
	border-width: 0 0 1.5px 1.5px;
	transform: translate(-30%, -50%) rotate(45deg);
}
.vf-mship .vf-mship-people__arrow[data-dir="next"]::before { transform: translate(-70%, -50%) rotate(-135deg); }
.vf-mship .vf-mship-people__arrow[disabled] { opacity: 0.35; cursor: default; }
@media (hover: hover) {
	.vf-mship .vf-mship-people__arrow:not([disabled]):hover { border-color: var(--m-cream); }
}
.vf-mship .vf-mship-people__arrow:focus:not(:focus-visible):not(:hover):not(:active) { background-color: var(--m-ink) !important; color: var(--m-cream) !important; }
.vf-mship .vf-mship-people__arrow:focus-visible { outline: 2px solid #b8a46a; outline-offset: 2px; }
.vf-mship-person__photo {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 183 / 225;
	margin-bottom: 8px;
	border-radius: 14px;
	overflow: hidden;
	background: #2a3a2c;
}
.vf-mship-person__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-mship-person__mark { font-size: 64px; font-weight: var(--m-strong); line-height: 1; color: rgba(241, 239, 230, 0.18); }
.vf-mship-person__name { font-size: 15.5px; font-weight: var(--m-medium); color: var(--m-cream); }
.vf-mship-person__meta { font-size: 12px; font-weight: var(--m-medium); color: rgba(241, 239, 230, 0.55); }
/* Same caption height for real and placeholder cards → the block doesn't jump between tabs. */
.vf-mship-person__caption { display: flex; flex-direction: column; gap: 4px; height: calc(19px + 4px + 4 * 1.35em); font-size: 12px; }
.vf-mship-person__caption .vf-mship-person__meta {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
	line-height: 1.35;
}
.vf-mship-people__cta { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 8px; }
.vf-mship-people__note { font-size: 13px; color: rgba(241, 239, 230, 0.55); }

/* ---------- FAQ ---------- */
.vf-mship-faq {
	display: grid;
	grid-template-columns: 440px minmax(0, 1fr);
	gap: 40px;
	align-items: start;
	padding: var(--m-section-y) var(--m-gutter);
}
.vf-mship-faq__list { border-top: 1px solid var(--m-rule); }
.vf-mship-faq__item { border-bottom: 1px solid var(--m-rule); }
.vf-mship-faq__q {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	padding: 22px 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: var(--m-medium);
	color: var(--m-ink);
	cursor: pointer;
	list-style: none;
}
.vf-mship-faq__q::-webkit-details-marker { display: none; }
.vf-mship-faq__icon { position: relative; flex: 0 0 13px; height: 28px; }
.vf-mship-faq__icon::before,
.vf-mship-faq__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 13px;
	height: 1.5px;
	background: currentColor;
	transition: transform 0.2s;
}
.vf-mship-faq__icon::after { transform: rotate(90deg); }
.vf-mship-faq__item[open] .vf-mship-faq__icon::after { transform: rotate(0deg); }
.vf-mship-faq__item[open] .vf-mship-faq__q { padding-bottom: 10px; }
.vf-mship-faq__a { padding: 0 0 22px; font-size: 16px; line-height: 1.55; color: var(--m-soft); }

/* ---------- Side panel ---------- */
.vf-mship-panel { position: fixed; inset: 0; z-index: 100000; }
.vf-mship-panel[hidden] { display: none; }
.vf-mship-panel__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(25, 36, 26, 0.45);
	animation: vf-mship-fade 0.2s ease-out;
}
.vf-mship-panel__sheet {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(580px, 100%);
	background: var(--m-cream);
	box-shadow: -8px 0 40px rgba(23, 36, 28, 0.18);
	animation: vf-mship-slide 0.25s ease-out;
	outline: none;
}
@keyframes vf-mship-fade { from { opacity: 0; } }
@keyframes vf-mship-slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.vf-mship-panel__backdrop,
	.vf-mship-panel__sheet { animation: none; }
}
html.vf-mship-locked,
html.vf-mship-locked body { overflow: hidden; }

.vf-mship-view { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; margin: 0; }
.vf-mship-view[hidden] { display: none; }
.vf-mship-panel__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 28px;
	border-bottom: 1px solid var(--m-rule);
}
.vf-mship-crumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 13.5px;
	font-weight: var(--m-medium);
	color: var(--m-muted);
}
.vf-mship-crumbs .is-current { color: var(--m-ink); }
.vf-mship .vf-mship-panel__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 1.5px solid var(--m-ink);
	border-radius: 999px;
	background: transparent;
	color: var(--m-ink);
	font: var(--m-medium) 20px/1 var(--vf-font-family, sans-serif);
	cursor: pointer;
}
.vf-mship .vf-mship-panel__close { position: relative; }
.vf-mship .vf-mship-panel__close::before,
.vf-mship .vf-mship-panel__close::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	border-radius: 1px;
	background: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}
.vf-mship .vf-mship-panel__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
@media (hover: hover) {
	.vf-mship .vf-mship-panel__close:hover { background: var(--m-ink); color: var(--m-cream); }
}
.vf-mship-panel__body {
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 30px 28px;
}
.vf-mship-panel__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 16px 28px;
	border-top: 1px solid var(--m-rule);
}

/* Details */
.vf-mship-tierhead {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 26px;
	border-radius: var(--m-radius);
	background: var(--m-ink);
	color: var(--m-cream);
}
.vf-mship-tierhead__step { font-size: 13.5px; font-weight: var(--m-medium); color: rgba(241, 239, 230, 0.6); }
.vf-mship-tierhead__name { font-size: 34px; line-height: 1.2; font-weight: var(--m-strong); letter-spacing: 0.06em; text-transform: uppercase; }
.vf-mship-tierhead__subtitle { font-size: 17px; font-weight: var(--m-medium); }
.vf-mship-tierhead__amount {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-top: 14px;
	padding-top: 18px;
	border-top: 1px solid var(--m-rule-cream);
	font-weight: var(--m-medium);
}
.vf-mship-tierhead__amount-label { font-size: 13px; color: rgba(241, 239, 230, 0.6); }
.vf-mship-tierhead__amount-value { font-size: 20px; line-height: 1.3; }
.vf-mship-details__desc { margin-top: 22px; font-size: 16px; line-height: 1.55; color: var(--m-soft); }
.vf-mship .vf-mship-details__title { margin: 28px 0 6px; font-size: 22px; font-weight: var(--m-medium); letter-spacing: -0.01em; color: var(--m-ink); }
.vf-mship-perks { margin: 0; padding: 0; list-style: none; }
.vf-mship-perks__item { display: flex; gap: 6px; padding: 14px 0; border-bottom: 1px solid var(--m-rule); font-size: 16px; }
.vf-mship-perks__num { flex: 0 0 34px; font-weight: var(--m-medium); color: var(--m-muted); line-height: 1.5; }
.vf-mship-perks__text { flex: 1 1 auto; line-height: 1.5; color: var(--m-ink); }
.vf-mship-details__footnote { margin-top: 18px; font-size: 14px; line-height: 1.45; color: var(--m-soft); }

/* Form */
.vf-mship-form__body { display: flex; flex-direction: column; gap: 16px; }
.vf-mship-form__title { font-size: 30px; line-height: 1.25; font-weight: var(--m-medium); letter-spacing: -0.01em; }
.vf-mship-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vf-mship-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vf-mship-field__label { font-size: 14px; font-weight: var(--m-medium); color: var(--m-ink); }
.vf-mship .vf-mship-field__input {
	width: 100%;
	min-height: 48px;
	padding: 13px 16px;
	border: 1.5px solid var(--m-rule);
	border-radius: 14px;
	background: var(--m-field);
	color: var(--m-ink);
	font: 400 15.5px/1.2 var(--vf-font-family, sans-serif);
	box-shadow: none;
	transition: border-color 0.15s;
}
.vf-mship .vf-mship-field__input::placeholder { color: var(--m-muted); opacity: 1; }
.vf-mship .vf-mship-field__input:focus { border-color: var(--m-ink); outline: none; }
.vf-mship .vf-mship-field__input[readonly] { background: var(--m-sand-2); }
.vf-mship-field__error { display: none; font-size: 13px; line-height: 1.35; color: var(--m-error); }
.vf-mship-field.is-invalid .vf-mship-field__input { border-color: var(--m-error); }
.vf-mship-field.is-invalid .vf-mship-field__error { display: block; }
.vf-mship-select { position: relative; }
.vf-mship-select::after {
	content: "▾";
	position: absolute;
	top: 50%;
	right: 16px;
	transform: translateY(-50%);
	font-size: 12px;
	color: var(--m-muted);
	pointer-events: none;
}
.vf-mship .vf-mship-select select { appearance: none; padding-right: 40px; cursor: pointer; }
.vf-mship .vf-mship-select select:invalid { color: var(--m-muted); }

.vf-mship-picker {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 6px;
	padding: 5px;
	border-radius: 999px;
	background: var(--m-sand-2);
}
.vf-mship-picker__opt { position: relative; margin: 0; cursor: pointer; }
.vf-mship-picker__opt input { position: absolute; opacity: 0; pointer-events: none; }
.vf-mship-picker__opt span {
	display: block;
	padding: 10px 6px;
	border-radius: 999px;
	font-size: 13.5px;
	font-weight: var(--m-medium);
	text-align: center;
	white-space: nowrap;
	color: var(--m-ink);
	transition: background-color 0.15s, color 0.15s;
}
.vf-mship-picker__opt input:checked + span { background: var(--m-ink); color: var(--m-cream); }
.vf-mship-picker__opt input:focus-visible + span { outline: 2px solid #b8a46a; outline-offset: 1px; }

.vf-mship-format { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.vf-mship-format[hidden] { display: none; }
.vf-mship-format__opt {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 12px 14px;
	border: 1.5px solid var(--m-rule);
	border-radius: 14px;
	font-size: 14px;
	line-height: 1.4;
	cursor: pointer;
}
.vf-mship-format__opt input { position: absolute; opacity: 0; pointer-events: none; }
.vf-mship-format__dot {
	flex: 0 0 14px;
	width: 14px;
	height: 14px;
	margin-top: 2px;
	border: 1.5px solid var(--m-ink);
	border-radius: 50%;
	background: var(--m-field);
}
.vf-mship-format__opt:has(input:checked) { border-color: var(--m-ink); background: var(--m-sand-2); }
.vf-mship-format__opt input:checked ~ .vf-mship-format__dot { border-width: 4px; background: var(--m-cream); }
.vf-mship-format__opt input:focus-visible ~ .vf-mship-format__dot { outline: 2px solid #b8a46a; outline-offset: 2px; }

.vf-mship-hint {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 16px;
	padding: 11px 14px;
	border-radius: 12px;
	background: var(--m-sand-2);
	font-size: 13.5px;
	line-height: 1.35;
}
.vf-mship-hint[hidden] { display: none; }
.vf-mship .vf-mship-hint__link {
	padding: 0;
	border: 0;
	background: none;
	color: var(--m-ink);
	font: var(--m-medium) 13.5px/1.35 var(--vf-font-family, sans-serif);
	text-decoration: underline;
	cursor: pointer;
}

.vf-mship-consent__label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14px; line-height: 1.45; cursor: pointer; }
.vf-mship-consent__label input { position: absolute; opacity: 0; pointer-events: none; }
.vf-mship-consent__label a { color: inherit; text-decoration: underline; }
.vf-mship-consent__box {
	position: relative;
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin-top: 1px;
	border: 1.5px solid rgba(25, 36, 26, 0.4);
	border-radius: 4px;
	background: var(--m-field);
}
.vf-mship-consent__label input:checked + .vf-mship-consent__box { border-color: var(--m-ink); background: var(--m-ink); }
.vf-mship-consent__label input:checked + .vf-mship-consent__box::after {
	content: "";
	position: absolute;
	left: 5px;
	top: 1px;
	width: 5px;
	height: 10px;
	border: solid var(--m-cream);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
.vf-mship-consent__label input:focus-visible + .vf-mship-consent__box { outline: 2px solid #b8a46a; outline-offset: 2px; }
.vf-mship-consent.is-invalid .vf-mship-consent__label { color: var(--m-error); }
.vf-mship-consent.is-invalid .vf-mship-consent__box { border-color: var(--m-error); }

/* Publicity choice (radio «Так / Ні», same look as the monthly / one-time switch). */
.vf-mship-choice { display: grid; gap: 8px; }
.vf-mship-field.is-invalid .vf-mship-choice .vf-mship-format__opt { border-color: var(--m-error); }
.vf-mship-field__opt { font-weight: 400; color: var(--m-muted); }

/* Photos (optional, shown with «Так»). */
.vf-mship-photos[hidden] { display: none; }
.vf-mship-photos__limit { margin-top: -4px; font-size: 12px; font-weight: 400; color: var(--m-muted); }
.vf-mship-photos__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 420px; }
.vf-mship-photos__item,
.vf-mship-photos__add {
	position: relative;
	aspect-ratio: 183 / 225;
	margin: 0;
	border-radius: 14px;
	overflow: hidden;
}
.vf-mship-photos__add {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 8px;
	border: 1.5px dashed var(--m-rule);
	background: var(--m-field);
	color: var(--m-ink);
	font-size: 13.5px;
	font-weight: var(--m-medium);
	text-align: center;
	cursor: pointer;
	transition: border-color 0.15s;
}
.vf-mship-photos__add[hidden] { display: none; }
.vf-mship-photos__add:hover,
.vf-mship-photos__add:focus-within { border-color: var(--m-ink); }
.vf-mship-photos__add:focus-within { outline: 2px solid #b8a46a; outline-offset: 2px; }
.vf-mship-photos__add input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.vf-mship-photos__plus { position: relative; width: 28px; height: 28px; border: 1.5px solid var(--m-ink); border-radius: 50%; }
.vf-mship-photos__plus::before,
.vf-mship-photos__plus::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 11px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%);
}
.vf-mship-photos__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.vf-mship-field.is-invalid .vf-mship-photos__add { border-color: var(--m-error); }

.vf-mship-photos__item { background: var(--m-sand-2); }
.vf-mship-photos__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vf-mship-photos__item.is-loading img { opacity: 0.55; }
.vf-mship-photos__name {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	font-size: 12px;
	line-height: 1.3;
	text-align: center;
	word-break: break-all;
	color: var(--m-muted);
}
.vf-mship-photos__bar {
	position: absolute;
	right: 8px;
	bottom: 8px;
	left: 8px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.7);
	overflow: hidden;
}
.vf-mship-photos__status {
	position: absolute;
	left: 50%;
	bottom: 18px;
	transform: translateX(-50%);
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(25, 36, 26, 0.75);
	color: var(--m-cream);
	font-size: 11.5px;
	line-height: 1.3;
	white-space: nowrap;
}
.vf-mship-photos__bar span { display: block; width: 0; height: 100%; background: var(--m-ink); transition: width 0.2s; }
.vf-mship-photos__chip {
	position: absolute;
	left: 6px;
	bottom: 6px;
	padding: 3px 8px;
	border-radius: 999px;
	background: rgba(25, 36, 26, 0.75);
	color: var(--m-cream);
	font-size: 11px;
	line-height: 1.3;
}
.vf-mship .vf-mship-photos__remove {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 28px;
	height: 28px;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(25, 36, 26, 0.75);
	color: var(--m-cream);
	cursor: pointer;
}
.vf-mship .vf-mship-photos__remove::before,
.vf-mship .vf-mship-photos__remove::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 12px;
	height: 1.5px;
	background: currentColor;
	transform: translate(-50%, -50%) rotate(45deg);
}
.vf-mship .vf-mship-photos__remove::after { transform: translate(-50%, -50%) rotate(-45deg); }
.vf-mship .vf-mship-photos__remove:focus-visible { outline: 2px solid #b8a46a; outline-offset: 2px; }

.vf-mship-form__note { font-size: 13px; color: var(--m-muted); }
.vf-mship-form__alert {
	padding: 12px 14px;
	border-radius: 12px;
	background: rgba(163, 48, 31, 0.08);
	color: var(--m-error);
	font-size: 14px;
	line-height: 1.45;
}
.vf-mship-form__alert[hidden] { display: none; }
.vf-mship-form__alert a { color: inherit; font-weight: var(--m-medium); }
.vf-mship-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Result */
.vf-mship-result { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.vf-mship-result__badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	padding: 8px;
	border-radius: 999px;
	background: var(--m-ink);
	color: var(--m-cream);
	font-size: 12px;
	line-height: 1.15;
	font-weight: var(--m-strong);
	letter-spacing: 0.06em;
	text-transform: uppercase;
}
.vf-mship-result__title { font-size: 28px; line-height: 1.25; font-weight: var(--m-medium); letter-spacing: -0.01em; }
.vf-mship-result__text { max-width: 440px; font-size: 16px; line-height: 1.55; color: var(--m-soft); }
.vf-mship-result__record {
	width: 100%;
	padding: 16px;
	border-radius: 14px;
	background: var(--m-sand-2);
	font-size: 13px;
	line-height: 1.6;
	text-align: left;
}
.vf-mship-result__record[hidden],
.vf-mship-result__login[hidden] { display: none; }
.vf-mship-result__login { max-width: 440px; font-size: 13.5px; line-height: 1.5; color: var(--m-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
	.vf-mship-system { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
	.vf-mship-faq { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr); }
	.vf-mship-card { padding: 28px 24px; }
	.vf-mship .vf-mship-card__name { font-size: 26px; }
	.vf-mship-people__grid { --m-cols: 5; }
}

@media (max-width: 1024px) {
	.vf-mship-intro { gap: 36px; padding-block: 56px; }
	.vf-mship-tiers__cards { grid-template-columns: 1fr; }
	.vf-mship-card { min-height: 0; }
	.vf-mship-card__price { margin-top: 10px; }
	.vf-mship-people__grid { --m-cols: 4.2; }
}

@media (max-width: 900px) {
	.vf-mship { --m-gutter: 16px; } /* site pattern on mobile: calc(100% - 32px) */
}

@media (max-width: 860px) {
	.vf-mship-intro,
	.vf-mship-system,
	.vf-mship-faq { grid-template-columns: 1fr; }
	.vf-mship-intro { padding-block: 32px 48px; }
	.vf-mship-intro__photo { aspect-ratio: 4 / 4.4; max-height: 70vh; }
	.vf-mship-system { gap: 28px; }
	.vf-mship-faq { gap: 20px; }
	.vf-mship-tiers__head { flex-direction: column; align-items: flex-start; gap: 12px; }
	.vf-mship-tiers__note { width: auto; }
}

@media (max-width: 640px) {
	.vf-mship-intro__line { font-size: 16px; }
	.vf-mship-intro__accent { font-size: 18px; }
	.vf-mship-tiers { gap: 24px; }
	.vf-mship-card { gap: 12px; padding: 26px 20px; border-radius: 22px; }
	.vf-mship-card__num { font-size: 44px; }
	.vf-mship .vf-mship-card__name { font-size: 24px; }
	.vf-mship-card__actions .vf-mship-btn { flex: 1 1 auto; }
	.vf-mship-people__grid { --m-cols: 2.15; --m-gap: 12px; }
	.vf-mship-faq__q { font-size: 16px; }

	.vf-mship-panel__sheet { width: 100%; }
	.vf-mship-panel__top { padding: 12px 16px; }
	.vf-mship-panel__body { padding: 22px 16px; }
	.vf-mship-panel__bottom { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
	.vf-mship-panel__bottom .vf-mship-btn { flex: 1 1 auto; padding-inline: 18px; }
	.vf-mship-tierhead { padding: 22px 20px; border-radius: 22px; }
	.vf-mship-tierhead__name { font-size: 28px; }
	.vf-mship-form__title { font-size: 26px; }
	.vf-mship-form__row,
	.vf-mship-format { grid-template-columns: 1fr; }
	.vf-mship-picker__opt span { padding-inline: 2px; font-size: 13px; }
}

/*
 * pliant.css neutralizes every mouse-focused button (`button:focus:not(:focus-visible)…` → transparent / inherit, !important).
 * Restore the resting look of Membership buttons (same approach as .vf-join-cards__button).
 */
.vf-mship .vf-mship-btn--dark:focus:not(:focus-visible):not(:hover):not(:active) { background-color: var(--m-ink) !important; color: var(--m-cream) !important; }
.vf-mship .vf-mship-btn--line:focus:not(:focus-visible):not(:hover):not(:active) { background-color: transparent !important; color: var(--m-ink) !important; }
.vf-mship .vf-mship-btn--cream:focus:not(:focus-visible):not(:hover):not(:active) { background-color: var(--m-cream) !important; color: var(--m-ink) !important; }
.vf-mship .vf-mship-btn--cream-line:focus:not(:focus-visible):not(:hover):not(:active) { background-color: transparent !important; color: var(--m-cream) !important; }
.vf-mship .vf-mship-panel__close:focus:not(:focus-visible):not(:hover):not(:active) { background-color: transparent !important; color: var(--m-ink) !important; }
.vf-mship .vf-mship-people__tab:focus:not(:focus-visible):not(:hover):not(:active) { background-color: transparent !important; color: var(--m-cream) !important; }
.vf-mship .vf-mship-people__tab[aria-selected="true"]:focus:not(:focus-visible):not(:hover):not(:active) { background-color: var(--m-cream) !important; color: var(--m-ink) !important; }
.vf-mship .vf-mship-hint__link:focus:not(:focus-visible):not(:hover):not(:active) { background-color: transparent !important; color: var(--m-ink) !important; }

/*
 * Homepage embed (modules/site-light-people.php): keeps the old wrapper class .vf-light-people for its place
 * in the homepage order (pliant.css `.elementor-9 > .vf-light-people { order: 60 }`), but drops its old spacing/background.
 */
.vf-light-people.vf-light-people--membership {
	padding: 0 !important;
	background: transparent !important;
	overflow: visible;
}
.vf-mship--embed { background: transparent; }

/* `hidden` must win over .vf-mship-btn { display: inline-flex } (result view toggles buttons). */
.vf-mship .vf-mship-btn[hidden] { display: none; }
