/* Страница «Клуб eVitamin» (/club/, engine/vita/rank/Club.php): вау-шапка, витрина «что открывает Клуб» с живыми
   мини-превью, «как попасть», медали уровней — цветные диски без эмодзи. Базовые .club-* — в vita.css. */

.club-disc { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; vertical-align: -5px; font-style: normal; font-size: 11.5px; font-weight: 900; color: #fff;
	background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c, #94A3B8) 55%, #fff), var(--c, #94A3B8) 70%); box-shadow: 0 0 0 2px color-mix(in srgb, var(--c, #94A3B8) 30%, transparent), 0 4px 10px -4px var(--c, #94A3B8); }
.club-disc--1 { --c: #D4A017; width: 30px; height: 30px; font-size: 14px; }
.club-disc--2 { --c: #94A3B8; width: 28px; height: 28px; font-size: 13px; }
.club-disc--3 { --c: #B45309; width: 26px; height: 26px; font-size: 12px; }

/* шапка */
.club-hero { min-height: 360px; justify-content: flex-end; }
.club-hero__orb { position: absolute; width: 520px; height: 520px; right: -140px; top: -220px; border-radius: 50%; pointer-events: none;
	background: conic-gradient(from 0deg, rgba(255, 210, 63, .0), rgba(255, 210, 63, .45), rgba(139, 92, 246, .45), rgba(14, 165, 233, .35), rgba(255, 210, 63, .0)); filter: blur(40px); animation: club-orb 14s linear infinite; }
@keyframes club-orb { to { transform: rotate(360deg); } }
.club-hero__crown { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; color: #2A1E00; background: linear-gradient(135deg, #FFE08A, #E9B949); box-shadow: 0 14px 30px -10px rgba(233, 185, 73, .8), inset 0 1px 0 rgba(255, 255, 255, .6); animation: rk-bob 3s ease-in-out infinite; }
.club-hero:not(.is-in) .club-hero__crown { color: #fff; background: linear-gradient(135deg, #8B5CF6, #4C1D95); box-shadow: 0 14px 30px -10px rgba(139, 92, 246, .8); }
.club-hero__kick { font-size: 12.5px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #FFD23F; }
.club-hero p .club-disc { margin: 0 2px; }
.club-hero__stats { display: flex; gap: 10px; flex-wrap: wrap; }
.club-hero__stats span { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); font-size: 13px; color: rgba(255, 255, 255, .85); }
.club-hero__stats b { display: inline-flex; font-size: 18px; color: #fff; }
.club-hero__cta { text-decoration: none; box-shadow: 0 14px 30px -12px rgba(255, 210, 63, .8); transition: transform .2s; }
.club-hero__cta:hover { transform: translateY(-2px); }
.club-sec > h2 { display: flex; align-items: center; gap: 10px; }
.club-sec > h2 > svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #8B5CF6, #4C1D95); }
.club-veil span { display: inline-flex; align-items: center; gap: 8px; }

/* витрина */
.club-sec__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.club-sec__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-size: 24px; }
.club-sec__head h2 > svg { width: 36px; height: 36px; padding: 7px; border-radius: 12px; color: #2A1E00; background: linear-gradient(135deg, #FFE08A, #E9B949); }
.club-sec__head p { margin: 0; color: var(--muted); max-width: 640px; }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.club-f { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 24px; background: var(--surface); border: 1px solid var(--line);
	animation: club-in .6s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 60ms); transition: transform .25s, box-shadow .25s, border-color .25s; }
.club-f:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); box-shadow: 0 24px 40px -28px var(--c); }
@keyframes club-in { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.club-f__prev { position: relative; height: 128px; display: grid; place-items: center; overflow: hidden;
	background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--c) 28%, transparent), transparent 60%), linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--surface)), var(--surface)); }
.club-f:not(.is-open) .club-f__prev > * { filter: saturate(.75); }
.club-f__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.club-f__ico { display: grid; place-items: center; width: 40px; height: 40px; margin-top: -34px; border-radius: 13px; color: #fff; position: relative;
	background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 10px 20px -10px var(--c), 0 0 0 4px var(--surface); }
.club-f h3 { margin: 4px 0 0; font-size: 16px; }
.club-f p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); flex: 1; }
.club-f__st { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 800;
	background: color-mix(in srgb, #64748B 12%, transparent); color: var(--muted); }
.club-f__st.is-on { background: color-mix(in srgb, #00A848 14%, transparent); color: #0B7A36; }
:root[data-theme="dark"] .club-f__st.is-on { color: #6EE7A0; }
.club-f__st .club-disc { width: 18px; height: 18px; font-size: 10px; vertical-align: -4px; }

/* мини-превью */
.cf-kcal { display: flex; align-items: center; gap: 14px; }
.cf-kcal__ph { position: relative; width: 78px; height: 78px; border-radius: 18px; overflow: hidden;
	background: radial-gradient(circle at 35% 40%, #FDBA74 0 16%, transparent 17%), radial-gradient(circle at 62% 58%, #86EFAC 0 18%, transparent 19%), radial-gradient(circle at 40% 68%, #FDE68A 0 14%, transparent 15%), radial-gradient(circle, #fff 0 46%, #E2E8F0 47% 50%, #CBD5E1 51%); }
.cf-kcal__beam { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(180deg, transparent, rgba(249, 115, 22, .55)); animation: hd-beam 2s cubic-bezier(.45, 0, .55, 1) infinite; }
.cf-kcal b { display: block; font-size: 30px; font-weight: 900; line-height: 1; color: #F97316; }
.cf-kcal small { font-size: 12px; color: var(--muted); }
.cf-kcal span { display: flex; gap: 4px; margin-top: 6px; }
.cf-kcal em { padding: 2px 7px; border-radius: 99px; font-style: normal; font-size: 11px; font-weight: 800; background: color-mix(in srgb, var(--c) 16%, transparent); }
.cf-label { display: flex; flex-direction: column; gap: 9px; width: 78%; }
.cf-label span { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 8px; font-size: 12px; }
.cf-label i { height: 9px; border-radius: 99px; background: color-mix(in srgb, var(--c) 18%, transparent); position: relative; overflow: hidden; }
.cf-label i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: var(--c); animation: club-grow 1.6s cubic-bezier(.2, .8, .2, 1) infinite alternate; }
@keyframes club-grow { from { width: 8%; } }
.cf-sleep { display: flex; align-items: flex-end; gap: 5px; height: 84px; }
.cf-sleep i { width: 12px; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #A5B4FC, #6366F1); transform-origin: bottom; animation: club-bar 2.4s ease-in-out infinite; animation-delay: var(--d); }
@keyframes club-bar { 50% { transform: scaleY(.6); } }
.cf-food { display: grid; grid-template-columns: repeat(7, 18px); gap: 5px; }
.cf-food i { width: 18px; height: 18px; border-radius: 6px; background: var(--c); animation: club-pop 3s ease-in-out infinite; }
.cf-food i:nth-child(3n) { animation-delay: .6s; }
.cf-food i:nth-child(4n) { animation-delay: 1.2s; }
@keyframes club-pop { 50% { transform: scale(.75); opacity: .7; } }
.cf-price { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cf-price s { color: var(--muted); font-size: 14px; }
.cf-price b { font-size: 26px; font-weight: 900; }
.cf-price em { padding: 3px 10px; border-radius: 99px; font-style: normal; font-weight: 900; color: #fff; background: #E5402E; animation: rk-bob 2.4s ease-in-out infinite; }
.cf-sale { display: flex; gap: 8px; }
.cf-sale i { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; font-style: normal; font-weight: 900; color: #fff; background: linear-gradient(135deg, #F59E0B, #E5402E); transform: rotate(-6deg); animation: club-tilt 3s ease-in-out infinite; }
.cf-sale i:nth-child(2) { transform: rotate(4deg); animation-delay: .4s; opacity: .85; }
.cf-sale i:nth-child(3) { animation-delay: .8s; opacity: .7; }
@keyframes club-tilt { 50% { transform: rotate(0) translateY(-4px); } }
.cf-new { position: relative; display: flex; align-items: flex-end; gap: 8px; }
.cf-new i { width: 34px; height: 64px; border-radius: 10px 10px 8px 8px; background: linear-gradient(180deg, #E0F2FE 0 22%, #0EA5E9 22% 100%); }
.cf-new i:nth-child(3) { height: 74px; }
.cf-new span { position: absolute; top: -10px; right: -18px; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 900; color: #fff; background: #0EA5E9; animation: rk-bob 2s ease-in-out infinite; }
.cf-vip { display: flex; flex-direction: column; gap: 6px; width: 78%; }
.cf-vip span { align-self: flex-start; padding: 7px 11px; border-radius: 14px 14px 14px 4px; font-size: 12px; background: var(--surface); border: 1px solid var(--line); }
.cf-vip span.me { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: #D4A017; border-color: #D4A017; color: #2A1E00; font-weight: 700; }
.cf-vip b { margin-right: 6px; padding: 1px 6px; border-radius: 99px; font-size: 10px; background: #2A1E00; color: #FFE08A; }
.cf-card { display: flex; align-items: center; gap: 12px; width: 170px; height: 96px; padding: 12px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #0F766E, #14B8A6); box-shadow: 0 14px 24px -14px #0F766E; transform: rotate(-4deg); animation: club-tilt 4s ease-in-out infinite; }
.cf-card__qr { display: grid; grid-template-columns: repeat(7, 7px); gap: 1px; padding: 5px; border-radius: 6px; background: #fff; }
.cf-card__qr i { width: 7px; height: 7px; }
.cf-card__qr i.on { background: #0F172A; }
.cf-hall { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.cf-hall i { display: grid; place-items: start center; width: 46px; height: var(--h); padding-top: 6px; border-radius: 10px 10px 4px 4px; font-style: normal; font-weight: 900; color: #fff; background: linear-gradient(180deg, #F59E0B, #B45309); transform-origin: bottom; animation: hd-bar-up 1s cubic-bezier(.2, .8, .2, 1) both; }
.cf-hall i:nth-child(2) { background: linear-gradient(180deg, #FFE08A, #D4A017); color: #2A1E00; }
@keyframes hd-bar-up { from { transform: scaleY(0); } }
@keyframes hd-beam { to { top: 100%; } }

/* как попасть */
.club-how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: st; }
.club-how li { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); counter-increment: st; }
.club-how li::before { content: counter(st); position: absolute; top: 14px; right: 16px; font-family: var(--font-display); font-size: 34px; font-weight: 900; color: color-mix(in srgb, #8B5CF6 22%, transparent); }
.club-how li > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(135deg, #8B5CF6, #4C1D95); }
.club-how li b { font-size: 16px; }
.club-how li small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.club-how__cta { display: inline-flex; margin-top: 12px; padding: 12px 20px; border: 0; border-radius: 14px; background: #FFD23F; color: #1F1A05; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; }

/* привилегии и зал славы */
.club-perks li > .club-disc { width: 30px; height: 30px; font-size: 13px; flex: none; }
.club-perks li em { display: grid; place-items: center; }
.club-hall__n .club-disc { vertical-align: middle; }

@media (max-width: 760px) {
	.club-hero { min-height: 0; }
	.club-how ol { grid-template-columns: minmax(0, 1fr); }
	.club-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
	.club-hero__orb, .club-hero__crown, .club-f, .cf-kcal__beam, .cf-label i::after, .cf-sleep i, .cf-food i, .cf-price em, .cf-sale i, .cf-new span, .cf-card, .cf-hall i { animation: none; }
}
.club-hero > .club-hero__orb { position: absolute; }
.club-how ol { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Что внутри Клуба: блоки с заголовком и пояснением; без доступа — содержимое размыто, замок на самом блоке */
.club.is-locked .club-body > .club-sec { filter: none; pointer-events: auto; user-select: auto; }
.club-blk__head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.club-blk__head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--font-display); font-size: 22px; }
.club-blk__head h2 > svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #8B5CF6, #4C1D95); }
.club-blk__head p { margin: 0; max-width: 720px; color: var(--muted); }
.club-blk__more { align-self: flex-start; margin-top: 4px; font-weight: 800; color: var(--brand-strong); text-decoration: none; }
.club-blk__body { position: relative; }
.club-blk.is-locked .club-blk__in { filter: blur(7px) saturate(.8); pointer-events: none; user-select: none; max-height: 420px; overflow: hidden; }
.club-blk__lock { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; }
.club-blk__lock span { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; background: rgba(15, 26, 20, .86); color: #fff; font-weight: 800; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .6); }
.club-blk__lock .club-disc { width: 20px; height: 20px; font-size: 10.5px; vertical-align: -4px; }
.club-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.club-tool { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: transform .2s, border-color .2s; }
.club-tool:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.club-tool__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); box-shadow: 0 10px 20px -10px var(--c); }
.club-tool b { font-size: 15px; }
.club-tool small { flex: 1; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.club-tool em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--c); }
.club-prices { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.club-prices a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.club-prices img { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; flex: none; }
.club-prices span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.club-prices b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.club-prices s { font-size: 12.5px; color: var(--muted); }
.club-prices em { font-style: normal; font-weight: 900; font-size: 16px; color: #E5402E; }
.club-prices i { font-style: normal; font-weight: 900; padding: 4px 9px; border-radius: 99px; color: #fff; background: #E5402E; }
.club-guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.club-guide { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.club-guide img, .club-guide__ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
.club-guide__ph { display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #8B5CF6, #0EA5E9); }
.club-guide b { font-size: 15px; }
.club-guide small { font-size: 12.5px; line-height: 1.4; color: var(--muted); flex: 1; }
.club-guide em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--brand-strong); }
@media (max-width: 900px) { .club-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* замок закрытого Клуба — золотой, в гамме новой шапки (а не фиолетовый) */
.club-hero:not(.is-in) .club-hero__crown { color: #2A1E00; background: linear-gradient(135deg, #FFE08A, #E9B949); box-shadow: 0 14px 30px -10px rgba(233, 185, 73, .8); }

/* Шапка Клуба — компактная (владелец: «много места занимает»): сетка — замок слева от «Закрытый клуб» и заголовка,
 * прогресс и кнопка одной строкой, Витя справа по центру, без минимальной высоты. ПК ~270 px вместо ~450. */
.club-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 14px; row-gap: 8px; min-height: 0; padding: 22px 26px; }
.club-hero > .club-hero__crown { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; }
.club-hero > .club-hero__crown svg { width: 24px; height: 24px; }
.club-hero > .club-hero__kick { align-self: end; font-size: 11.5px; }
.club-hero > h1 { align-self: start; font-size: clamp(24px, 2.8vw, 34px); line-height: 1.05; }
.club-hero > p, .club-hero > .club-hero__stats, .club-hero > .club-hero__row { grid-column: 1 / -1; }
.club-hero > p { max-width: min(640px, calc(100% - 220px)); font-size: 14px; line-height: 1.45; }
.club-hero__stats { gap: 8px; }
.club-hero__stats span { padding: 5px 11px; font-size: 12.5px; }
.club-hero__stats b { font-size: 15px; }
.club-hero__row { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-top: 2px; }
.club-hero__row .club-hero__progress { flex: 0 1 400px; width: auto; }
.club-hero__progress > i { height: 8px; }
.club-hero__progress small { font-size: 12px; }
.club-hero__cta { padding: 10px 16px; font-size: 14px; white-space: nowrap; }
.club-hero .vy-hero { top: 50%; bottom: auto; right: clamp(14px, 3vw, 40px); transform: translateY(-50%); }
.club-hero .vy--xl { width: 104px; height: 104px; margin: 0; }
.club-hero .vy-say { max-width: 170px; padding: 7px 10px; font-size: 11.5px; line-height: 1.3; }
@media (max-width: 900px) { .club-hero .vy-say { display: none; } .club-hero > p { max-width: calc(100% - 120px); } }
@media (max-width: 700px) {
	.club-hero { padding: 16px; column-gap: 12px; row-gap: 7px; border-radius: 22px; }
	.club-hero > .club-hero__crown { width: 40px; height: 40px; border-radius: 13px; }
	.club-hero > h1 { font-size: 24px; }
	.club-hero > p { max-width: none; font-size: 13.5px; }
	.club-hero .vy-hero { top: 8px; right: 8px; transform: none; }
	.club-hero .vy--xl { width: 70px; height: 70px; }
	.club-hero__stats span { padding: 4px 10px; font-size: 12px; }
	.club-hero__row { gap: 10px; }
	.club-hero__row .club-hero__progress { flex: 1 1 100%; }
}
