/* Визитка 1–7 (ключ card, плашка «Визитка»), работает в «Контактах» G и J. Логотип В — .lockup (заполняет logos.js).
   Во всех: ФИО, статус, телефон, почта, адрес, метро; 90×50 мм (6 — вертикальная 50×90); наклон за курсором и маленький слой блика;
   фильтров на движущемся нет. Фактуры — PNG из PIL, бесшовные: tex-cotton.png (14 КБ), tex-leather.png (66 КБ).
   1 текущая · 2 хлопковая бумага, слепое тиснение щита, имя фольгой · 3 тёмно-синяя с золотым обрезом и пластиной-картушем ·
   4 дуплекс: кремовый лицевой слой, синий по торцу, летерпресс · 5 гильош и «серийный» номер реестра · 6 вертикальная минимал-люкс ·
   7 в кожаной визитнице: строчка, уголки-прорези, латунная кнопка. */
.vc__wm, .vc__gl, .vc__serial, .vh, .vc__fr { display: none; }
.vc__name { transition: background-position 140ms linear; }

/* ---------- 2 «Хлопковая бумага» ---------- */
html:is([data-card="2"], [data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) .vc { background: url("../img/tex-cotton.png") 0 0 / 256px 256px, #F6F0E4; box-shadow: 0 1px 1px rgba(60, 50, 30, .14), 0 3px 8px rgba(60, 50, 30, .08), 0 36px 60px -30px rgba(20, 20, 26, .5); }
html:is([data-card="2"], [data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) .vc::before { display: none; }
html[data-card="2"] .vc__wm { display: block; position: absolute; z-index: 0; right: 5%; top: 50%; height: 92%; width: auto; transform: translateY(-50%); pointer-events: none; }
html[data-card="2"] :is(.vc__top, .vc__main) { position: relative; z-index: 1; }
.wm-b { fill: #F2EBDD; } .wm-d { fill: rgba(86, 66, 36, .2); transform: translate(-.6px, -.7px); } .wm-l { fill: rgba(255, 255, 255, .9); transform: translate(.6px, .7px); }
.wm-in { fill: none; stroke: rgba(86, 66, 36, .1); stroke-width: .6; }

html:is([data-card="2"], [data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) .vc__main { border-top-color: rgba(160, 131, 79, .35); }
html:is([data-card="2"], [data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) .vc__role { color: #7E6841; }
/* имя золотой фольгой: тёмная часть градиента #5A4116–#6E5220 (контраст к кремовому ≥ 6:1), узкий блик ездит при наклоне */
html:is([data-card="2"], [data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) .vc__name { background: linear-gradient(105deg, #5A4116 0%, #6E5220 36%, #A9843C 45%, #EBD196 50%, #A9843C 55%, #6E5220 64%, #5A4116 100%); background-size: 300% 100%; background-position: var(--gx, 35%) 50%; -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }

/* ---------- 8 «Хлопковая бумага + герб»: вместо простого щита — герб ПАВ из логотипа, «призрачный» (PIL: тон бумаги, тиснение, ~12 %) ---------- */
html:is([data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) .vc::after { content: ""; position: absolute; z-index: 0; right: 5%; top: 50%; height: 90%; aspect-ratio: 381 / 460; transform: translateY(-50%); background: url("../img/logo-c-mark-ghost.png") center / contain no-repeat; opacity: .55; pointer-events: none; }
html:is([data-card="8"], [data-card="9"], [data-card="10"], [data-card="11"]) :is(.vc__top, .vc__main) { position: relative; z-index: 1; }

/* ---------- 3 «Тёмно-синяя с золотым обрезом» ---------- */
html[data-card="3"] .vc { border: 3px solid transparent; background: radial-gradient(120% 90% at 18% 0%, rgba(255, 255, 255, .09), transparent 55%) padding-box, linear-gradient(#15264A, #15264A) padding-box, linear-gradient(135deg, #7E6127, #F3D58A 22%, #A47E36 45%, #F0D184 70%, #7E6127) border-box; color: #E8D3A0; box-shadow: 0 34px 60px -30px rgba(10, 12, 24, .75); }
html[data-card="3"] .vc::before { border-color: rgba(217, 192, 140, .5); box-shadow: inset 0 0 0 3px #15264A, inset 0 0 0 4px rgba(217, 192, 140, .22); }
html[data-card="3"] .vc .lockup { padding: 8px 16px; background: linear-gradient(180deg, #FBF6EA, #EFE3C8); box-shadow: inset 0 0 0 1px #B8954A, inset 0 0 0 4px #FBF6EA, inset 0 0 0 5px rgba(126, 97, 39, .45), 0 2px 6px rgba(0, 0, 0, .35); clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
html[data-card="3"] .vc .logo-pair { --lh: 58px; }
html[data-card="3"] .vc__msg a { border-color: rgba(217, 192, 140, .45); color: #E8CC86; }
html[data-card="3"] .vc__main { border-top-color: rgba(217, 192, 140, .55); }
html[data-card="3"] .vc__name { color: #F0D9A0; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
html[data-card="3"] .vc__role { color: #C9A44E; }
html[data-card="3"] .vc__tel { color: #F3E2B4; }
html[data-card="3"] :is(.vc__mail, .vc__addr, .vc__metro, .vc__km) { color: #D9C08C; }
html[data-card="3"] .vc__metro small { color: #B9A57E; }

/* ---------- 4 «Дуплекс»: толстая двухслойная карта, синий слой по торцу, летерпресс ---------- */
html[data-card="4"] .vc { background: url("../img/tex-cotton.png") 0 0 / 256px 256px, #F7F1E6; border-radius: 4px; box-shadow: 1px 1px 0 #EDE4D3, 2px 2px 0 #E6DCC8, 3px 3px 0 #1E3157, 4px 4px 0 #1E3157, 5px 5px 0 #22365F, 6px 6px 0 #1E3157, 7px 7px 0 #1A2B4D, 8px 8px 0 #E4DAC6, 9px 9px 0 #D6CAB2, 0 44px 60px -30px rgba(20, 20, 26, .5); }
html[data-card="4"] .vc::before { inset: 14px; border-color: rgba(30, 49, 87, .18); box-shadow: none; }
html[data-card="4"] :is(.vc__name, .vc__tel, .vc__role, .vc__mail, .vc__addr, .vc__metro b) { color: #1E3157; text-shadow: 0 1px 0 rgba(255, 255, 255, .95), 0 -1px 0 rgba(30, 49, 87, .22); }
html[data-card="4"] .vc__name { font-weight: 600; }
html[data-card="4"] .vc__main { border-top: 0; background: linear-gradient(90deg, #1E3157 0 36px, transparent 36px) top left / 100% 2px no-repeat; }
html[data-card="4"] .vc__msg a { border-color: rgba(30, 49, 87, .25); color: #1E3157; }

/* ---------- 5 «Гильош»: строгая рамка как на ценных бумагах, «серийный» номер реестра ---------- */
html[data-card="5"] .vc { padding: clamp(28px, 3.2vw, 40px) clamp(30px, 3.6vw, 46px); background: repeating-linear-gradient(-30deg, rgba(62, 90, 110, .035) 0 1px, transparent 1px 5px), repeating-linear-gradient(30deg, rgba(62, 90, 110, .03) 0 1px, transparent 1px 5px), #FBFAF5; }
html[data-card="5"] .vc::before { display: none; }
html[data-card="5"] .vc__gl { display: block; position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; color: #3E5A6E; pointer-events: none; }
html[data-card="5"] :is(.vc__top, .vc__main) { position: relative; z-index: 1; }
html[data-card="5"] .vc__msg { display: none; }
html[data-card="5"] .vc__serial { display: grid; justify-items: end; position: absolute; z-index: 1; top: clamp(26px, 3vw, 38px); right: clamp(30px, 3.6vw, 46px); font: 600 1rem/1.1 var(--f-num); letter-spacing: .12em; color: #8C2F1C; }
html[data-card="5"] .vc__serial small { font: 500 .5625rem/1.3 var(--f-sans); letter-spacing: .16em; text-transform: uppercase; color: #3E5A6E; }
html[data-card="5"] .vc__name { color: #22323E; text-shadow: none; }
html[data-card="5"] .vc__role { color: #3E5A6E; }
html[data-card="5"] .vc__main { border-top: 1px solid rgba(62, 90, 110, .45); }

/* ---------- 6 «Вертикальная минимал-люкс» 50×90 ---------- */
html[data-card="6"] .cx .vc { width: min(100%, 330px); aspect-ratio: 1 / 1.8; min-height: 0; padding: 38px 28px 30px; display: flex; flex-direction: column; align-items: center; gap: 0; text-align: center; background: url("../img/tex-cotton.png") 0 0 / 256px 256px, #FBF8F2; }
html[data-card="6"] .vc::before { inset: 12px; }
html[data-card="6"] .vc__top { flex: none; flex-direction: column; align-items: center; gap: 0; }
html[data-card="6"] .vc__top::after { content: ""; display: block; width: 64px; height: 1px; margin-top: 22px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
html[data-card="6"] .vc .logo-pair { --lh: 70px; flex-direction: column; gap: 10px; }
html[data-card="6"] .vc__msg { order: 3; margin-top: 18px; }
html[data-card="6"] .vc__main { flex: 1; display: flex; flex-direction: column; justify-content: space-between; align-items: center; gap: 18px; width: 100%; padding-top: 24px; border-top: 0; }
html[data-card="6"] .vc__who { display: grid; justify-items: center; gap: 4px; }
html[data-card="6"] .vc__name { font-size: calc(1.1875rem * var(--k-h)); font-variant-caps: all-small-caps; letter-spacing: .12em; }
html[data-card="6"] .vc__lines { justify-items: center; gap: 4px; }
html[data-card="6"] .vc__metro { justify-content: center; } html[data-card="6"] .vc__metro small { padding-left: 0; text-align: center; }

/* ---------- 7 «В кожаной визитнице» ---------- */
html[data-card="7"] .cx__stage { position: relative; width: min(100%, 640px); padding: 26px 30px; border-radius: 14px; background: url("../img/tex-leather.png") 0 0 / 256px 256px, #2A1E16; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -2px 6px rgba(0, 0, 0, .45), 0 34px 54px -26px rgba(10, 8, 6, .75); }
html[data-card="7"] .cx .vc { width: 100%; }
html[data-card="7"] .vh { display: block; position: absolute; z-index: 2; inset: 9px; border: 1.5px dashed rgba(214, 178, 110, .55); border-radius: 9px; pointer-events: none; }
html[data-card="7"] .vh i { position: absolute; width: 46px; height: 46px; background: url("../img/tex-leather.png") 0 0 / 256px 256px, #2A1E16; box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
html[data-card="7"] .vh i:nth-child(1) { left: 19px; top: 15px; clip-path: polygon(0 0, 100% 0, 0 100%); }
html[data-card="7"] .vh i:nth-child(2) { right: 19px; top: 15px; clip-path: polygon(0 0, 100% 0, 100% 100%); }
html[data-card="7"] .vh i:nth-child(3) { right: 19px; bottom: 15px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
html[data-card="7"] .vh i:nth-child(4) { left: 19px; bottom: 15px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
html[data-card="7"] .vh b { position: absolute; right: -16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #FFF1C4, #D6B25F 38%, #8A6A2F 78%, #5E4720); box-shadow: 0 2px 4px rgba(0, 0, 0, .5), inset 0 -1px 2px rgba(0, 0, 0, .35); }
@media (max-width: 767px) { html[data-card="7"] .cx__stage { padding: 18px 16px; } html[data-card="7"] .vh i { width: 32px; height: 32px; } html[data-card="7"] .vh i:nth-child(odd) { left: 5px; } html[data-card="7"] .vh i:nth-child(even) { right: 5px; } html[data-card="7"] .vh i:nth-child(-n+2) { top: 7px; } html[data-card="7"] .vh i:nth-child(n+3) { bottom: 7px; } html[data-card="7"] .vh b { right: -14px; } }

/* плашка «Визитка 1–7» (бета-показ) — как «Карта» */
.card-sw { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line-l); border-radius: var(--r-pill); font-size: .75rem; }
.card-sw span { padding: 0 6px 0 8px; color: var(--ink-2); }
.card-sw button { min-width: 30px; height: 30px; border-radius: var(--r-pill); font: 600 .8125rem var(--f-num); color: var(--ink); }
.card-sw button[aria-pressed="true"] { background: var(--gold); }
@media (max-width: 599px) { html:is([data-card="3"], [data-card="7"]) .vc .logo-pair { --lh: 40px; } html[data-card="3"] .vc .lockup { padding: 6px 10px; } html:is([data-card="3"], [data-card="7"]) .vc__msg { gap: 4px; } html:is([data-card="3"], [data-card="7"]) .vc__msg a { width: 30px; height: 30px; } }

/* ---------- 9–11: визитка 8 (хлопок + призрачный герб) с оформлением краёв. Рамки — border, без фильтров; герб внутри рамок, не перекрыт ---------- */
html:is([data-card="9"], [data-card="10"], [data-card="11"]) .vc::after { right: 8%; height: 76%; }
html:is([data-card="9"], [data-card="10"], [data-card="11"]) .cx .vc { padding: 32px 38px 30px; gap: 10px; }
html:is([data-card="9"], [data-card="10"], [data-card="11"]) .cx .vc .logo-pair { --lh: 62px; }
@media (max-width: 599px) { html:is([data-card="9"], [data-card="10"], [data-card="11"]) .cx .vc { padding: 28px 26px 24px; } html:is([data-card="9"], [data-card="10"], [data-card="11"]) .cx .vc .logo-pair { --lh: 48px; } }
html:is([data-card="9"], [data-card="10"], [data-card="11"]) .vc__fr { display: block; position: absolute; z-index: 1; pointer-events: none; }
.vc__fr i, .vc__fr b { display: none; }
/* 9 — двойная тонкая золотая рамка, как в 5 */
html[data-card="9"] .vc__fr { inset: 7px; border: 1px solid #B08D4A; border-radius: 5px; }
html[data-card="9"] .vc__fr::before { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(176, 141, 74, .75); border-radius: 3px; }
/* 10 — золотые Г-образные уголки с маленьким ромбом */
html[data-card="10"] .vc__fr { inset: 12px; }
html[data-card="10"] .vc__fr i { display: block; position: absolute; width: 38px; height: 38px; border-top: 1px solid #B08D4A; border-left: 1px solid #B08D4A; }
html[data-card="10"] .vc__fr i::before { content: ""; position: absolute; left: 5px; top: 5px; width: 20px; height: 20px; border-top: 1px solid rgba(176, 141, 74, .6); border-left: 1px solid rgba(176, 141, 74, .6); }
html[data-card="10"] .vc__fr i::after { content: ""; position: absolute; left: 11px; top: 11px; width: 6px; height: 6px; background: #B08D4A; transform: rotate(45deg); }
html[data-card="10"] .vc__fr i:nth-child(1) { left: 0; top: 0; }
html[data-card="10"] .vc__fr i:nth-child(2) { right: 0; top: 0; transform: scaleX(-1); }
html[data-card="10"] .vc__fr i:nth-child(3) { right: 0; bottom: 0; transform: scale(-1, -1); }
html[data-card="10"] .vc__fr i:nth-child(4) { left: 0; bottom: 0; transform: scaleY(-1); }
/* 11 — одинарная рамка с разрывом-картушем «АП г. Москвы» сверху по центру и тонкая золотая полоса по левому торцу */
html[data-card="11"] .vc__fr { inset: 11px 11px 11px 17px; border: 1px solid #B08D4A; border-radius: 3px; }
html[data-card="11"] .vc__fr b { display: inline-flex; align-items: center; gap: 7px; position: absolute; left: 50%; top: 0; padding: 0 10px; transform: translate(-50%, -50%); background: url("../img/tex-cotton.png") 0 0 / 256px 256px, #F6F0E4; font: 600 .5625rem/1.6 var(--f-sans); letter-spacing: .2em; text-transform: uppercase; color: #7E6841; white-space: nowrap; }
html[data-card="11"] .vc__fr b::before, html[data-card="11"] .vc__fr b::after { content: ""; width: 5px; height: 5px; background: #B08D4A; transform: rotate(45deg); }
html[data-card="11"] .vc__fr::before { content: ""; position: absolute; left: -18px; top: -12px; bottom: -12px; width: 4px; background: linear-gradient(180deg, #8A6A2F, #E6CB86 30%, #B08D4A 55%, #E6CB86 80%, #8A6A2F); }
html[data-card="11"] .vc { border-radius: 4px; overflow: hidden; }
@media (max-width: 599px) { html[data-card="9"] .vc__fr::before { inset: 10px; } html[data-card="10"] .vc__fr { inset: 8px; } html[data-card="10"] .vc__fr i { width: 28px; height: 28px; } }
