/* Привилегии: поверх стилей поддержки (support.css) и магазина (shop.css), всё внутри .pv. */
.pv section { display: flex; flex-direction: column; gap: 20px; min-width: 0; container-type: inline-size; }
.pv section > * { margin: 0; }
.pv section > .head { margin-bottom: -4px; }
.pv.loading section { opacity: .6; pointer-events: none; }
.pv .head .label a:hover { color: var(--green-text); }
.pv .head h1 .pv-name { font-size: inherit; }
.pv .pv-h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: var(--gray-900); }
.pv .pv-h2 .faint { font-size: 15px; font-weight: 500; }
.pv .pv-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
.pv .pv-title .pv-h2 { margin: 0; }
.pv .pv-lead { margin: 0; }
.pv .pv-hidden { opacity: .55; }
.pv .pv-pill { position: absolute; top: 12px; right: 12px; padding: 2px 8px; border-radius: 999px; background: var(--gray-100); color: var(--gray-500); font-size: 12px; font-weight: 600; }
.pv .side a.pv-nav-group svg { color: var(--pv); }
.pv .btn-danger { color: #e5484d; }
.pv .pv-gap { margin-right: auto; }
.pv .hint.warn { border-color: rgb(239 159 39 / .4); }

/* цена с акцией */
.pv .pv-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; color: var(--gray-900); }
.pv .pv-price b { font-size: 22px; font-weight: 700; }
.pv .pv-price.big b { font-size: 30px; line-height: 1.1; }
.pv .pv-price small { color: var(--gray-500); font-size: 13px; }
.pv .pv-price s { color: var(--gray-400); font-size: 14px; }
.pv .pv-sale { padding: 1px 7px; border-radius: 999px; background: rgb(229 72 77 / .14); color: #e5484d; font-size: 12.5px; font-weight: 700; }
.pv .pv-price .pv-until { color: #e5484d; font-size: 12.5px; }
.pv .pv-srv-sale { display: flex; align-items: center; gap: 6px; color: #e5484d; font-size: 12.5px; font-weight: 600; }
.pv .pv-srv-sale svg { width: 14px; height: 14px; flex: none; }

/* значок привилегии */
.pv .pv-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: color-mix(in srgb, var(--pv) 20%, transparent); color: var(--pv); }
.pv .pv-ico svg { width: 22px; height: 22px; }
.pv .pv-ico.big { width: 56px; height: 56px; border-radius: 14px; }
.pv .pv-ico.big svg { width: 30px; height: 30px; }
.pv .pv-name { color: var(--pv); font-weight: 700; }

/* все привилегии */
.pv .pv-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@container (min-width: 680px) { .pv .pv-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pv a.pv-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border-top: 3px solid var(--pv); color: inherit; transition: transform .15s; }
.pv a.pv-card:hover { transform: translateY(-2px); }
.pv .pv-card .pv-name { font-size: 20px; }
.pv .pv-tag { color: var(--gray-500); font-size: 13.5px; line-height: 1.4; }
.pv .pv-card-foot { display: flex; flex-direction: column; gap: 2px; margin-top: auto; padding-top: 6px; }
.pv .pv-card-foot .faint { font-size: 12.5px; }
.pv a.pv-compare-link { display: flex; align-items: center; gap: 14px; padding: 16px 20px; color: inherit; }
.pv a.pv-compare-link > svg:first-child { width: 22px; height: 22px; color: var(--green-text); }
.pv a.pv-compare-link > svg:last-child { margin-left: auto; color: var(--gray-400); }
.pv a.pv-compare-link span { display: flex; flex-direction: column; }
.pv a.pv-compare-link b { color: var(--gray-900); }
.pv a.pv-compare-link small { color: var(--gray-500); font-size: 13px; }
.pv a.pv-compare-link:hover b { color: var(--green-text); }

/* мои привилегии с продлением и повышением */
.pv .pv-offers .pv-h2 { margin-bottom: 4px; }
.pv .pv-offer { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--gray-100); }
.pv .pv-offers > .pv-offer:first-child, .pv .pv-offers > .pv-h2 + .pv-offer { border-top: 0; }
.pv .pv-offer:last-child { padding-bottom: 0; }
.pv .pv-offer .pv-ico { width: 38px; height: 38px; }
.pv a.pv-offer-main { display: flex; flex: 1 1 150px; flex-direction: column; gap: 2px; min-width: 0; color: inherit; }
.pv .pv-offer-main b { color: var(--gray-900); font-size: 15px; font-weight: 600; }
.pv a.pv-offer-main:hover .pv-name { text-decoration: underline; }
.pv .pv-offer small { color: var(--gray-500); font-size: 13px; }
.pv .pv-offer small.warn { color: #e5484d; font-weight: 600; }
.pv .pv-offer-buy { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.pv .pv-offer-buy > span { display: flex; flex-direction: column; max-width: 210px; text-align: right; line-height: 1.3; }
.pv .pv-offer-buy b { color: var(--gray-900); font-size: 15px; }
.pv .pv-offer-btn { white-space: nowrap; }
html .pv a.pv-offer-btn.btn-ghost { background: color-mix(in srgb, var(--pv) 20%, transparent); border-color: transparent; color: var(--gray-900); }
@container (max-width: 520px) {
    .pv .pv-offer-buy { width: 100%; justify-content: space-between; }
    .pv .pv-offer-buy > span { text-align: left; }
}

/* отличия от предыдущей привилегии и цена наборов */
.pv .pv-hl { display: flex; flex-direction: column; gap: 5px; margin: 2px 0 4px; color: var(--gray-600); font-size: 13px; line-height: 1.35; }
.pv .pv-hl-head { color: var(--gray-500); font-size: 12px; font-weight: 600; }
.pv .pv-hl > span:not(.pv-hl-head) { display: flex; align-items: flex-start; gap: 6px; }
.pv .pv-hl svg { flex: none; width: 14px; height: 14px; margin-top: 1px; color: var(--pv); }
.pv .pv-hl .pv-hl-more { padding-left: 20px; color: var(--gray-400); }
.pv .pv-plus { margin-top: 16px; padding: 14px; border-radius: 10px; background: color-mix(in srgb, var(--pv) 10%, transparent); }
html[data-theme="dark"] .pv .pv-plus { background: color-mix(in srgb, var(--pv) 4%, transparent); border: 1px solid color-mix(in srgb, var(--pv) 14%, transparent); }
.pv .pv-plus-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; color: var(--gray-900); font-weight: 600; }
.pv .pv-plus-head a { color: var(--green-text); font-size: 13px; font-weight: 500; }
.pv .pv-plus-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pv .pv-plus-chip { padding: 4px 10px; border: 1px solid var(--gray-200); border-radius: 8px; background: var(--surface); color: var(--gray-700); font-size: 13px; line-height: 1.35; }
.pv .pv-plus-chip s { color: var(--gray-400); }
.pv .pv-plus-chip b { color: var(--gray-900); }
.pv .pv-kit-value { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: rgb(122 185 41 / .14); color: var(--green-text); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pv .pv-kit > summary .pv-kit-value:not([hidden]) + .btn-ghost, .pv .pv-kit > summary .pv-kit-value:not([hidden]) ~ .chev { margin-left: 0; }
.pv .pv-kit-price-row { align-items: end; }
.pv .pv-kit-price-row .pv-check { padding-bottom: 10px; }
.pv .pv-diff-toggle { margin-bottom: 12px; }
.pv .pv-compare.diff tr[data-same] { display: none; }

/* привилегия: описание и покупка */
.pv .pv-hero { display: grid; grid-template-columns: minmax(0, 1fr) 290px; border-top: 3px solid var(--pv); overflow: hidden; }
.pv .pv-hero-main { padding: 22px 24px; }
.pv .pv-hero-top { display: flex; align-items: center; gap: 14px; }
.pv .pv-hero-top > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pv .pv-hero-top .pv-name { font-size: 24px; line-height: 1.2; }
.pv .pv-desc { margin: 16px 0 0; color: var(--gray-600); font-size: 14.5px; line-height: 1.6; }
.pv .pv-hero-buy { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; background: var(--cream-2); border-left: 1px solid var(--gray-100); }
.pv .pv-hero-buy .label { margin: 0; }
.pv .pv-periods { display: flex; flex-wrap: wrap; gap: 6px; }
.pv .pv-chip { position: relative; display: inline-flex; align-items: center; gap: 5px; padding: 6px 11px; border: 1px solid var(--gray-200); border-radius: 6px; background: var(--surface, #fff); color: var(--gray-600); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.pv .pv-chip:hover { border-color: var(--gray-400); }
.pv .pv-chip.on, .pv .pv-chip:has(input:checked) { border-color: var(--green); background: var(--green); color: #1b2206; }
.pv .pv-chip small { font-size: 12px; opacity: .8; }
.pv .pv-chip input { position: absolute; opacity: 0; pointer-events: none; }
.pv .pv-buy { width: 100%; }
.pv .pv-hero-buy .pv-buy { margin-top: auto; }

/* возможности плитками */
.pv .pv-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 36px; }
.pv .pv-tile { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.pv .pv-tile.off { opacity: .55; }
.pv .pv-tile-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pv .pv-tile-top code { font-size: 14px; color: var(--gray-900); }
.pv .pv-tile-top b { color: var(--gray-900); font-weight: 600; line-height: 1.35; }
.pv .pv-tile small { color: var(--gray-500); font-size: 13px; line-height: 1.4; }
.pv .pv-tile .pv-note { display: block; color: var(--gray-400); }
.pv .pv-tile .pv-note svg { display: inline-block; margin-right: 4px; vertical-align: -2px; }
.pv .pv-note svg { width: 13px; height: 13px; flex: none; }
.pv .pv-yes, .pv .pv-no { display: inline-flex; flex: none; color: var(--green-text); }
.pv .pv-no { color: var(--gray-400); }
.pv .pv-yes svg, .pv .pv-no svg { width: 18px; height: 18px; }
.pv .pv-val { flex: none; max-width: 50%; padding: 1px 8px; border-radius: 999px; background: var(--green-soft); color: var(--green-text); font-size: 13px; font-weight: 700; text-align: right; }
.pv .pv-lower { margin-top: 12px; }
.pv .pv-lower > summary { padding: 6px 0 10px; color: var(--gray-500); font-size: 13.5px; font-weight: 600; cursor: pointer; }

/* наборы */
.pv .pv-kits { display: flex; flex-direction: column; gap: 8px; }
.pv .pv-kit { padding: 12px 14px; border: 1px solid var(--gray-200); border-radius: 8px; scroll-margin-top: 80px; }
.pv .pv-kit[open], .pv .pv-kit:target { border-color: var(--green); }
.pv .pv-kit > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; list-style: none; cursor: pointer; }
.pv .pv-kit > summary::-webkit-details-marker { display: none; }
.pv .pv-kit > summary code { flex: none; font-size: 14.5px; font-weight: 700; color: var(--gray-900); }
.pv .pv-kit > summary:has(.pv-kit-value:not([hidden])) { flex-wrap: nowrap; }
.pv .pv-kit > summary:has(.pv-kit-value:not([hidden])) small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv .pv-kit > summary .btn-ghost { margin-left: auto; }
.pv .pv-kit .chev { width: 18px; height: 18px; margin-left: auto; color: var(--gray-400); transition: transform .15s; }
.pv .pv-kit > summary .btn-ghost + .chev { margin-left: 0; }
.pv .pv-kit[open] .chev { transform: rotate(180deg); }
.pv .pv-kit:not([open]):hover { border-color: var(--gray-400); }
.pv .pv-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.pv .pv-tabs .pv-chip { padding: 4px 10px; font-size: 13px; }
.pv .pv-kit-body .shp-inv { margin: 0; }
.pv .pv-kit-img { display: block; max-width: 100%; height: auto; margin: 0 auto; image-rendering: pixelated; border-radius: 6px; }
.pv .pv-kit .empty { padding: 14px; }

/* окна */
.pv .pv-dialog { width: min(460px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 20px; border: 0; border-radius: 12px; background: var(--surface, #fff); color: var(--gray-600); box-shadow: 0 20px 50px rgb(0 0 0 / .3); }
.pv .pv-dialog::backdrop { background: rgb(0 0 0 / .45); }
.pv .pv-dialog form, .pv .pv-form { display: flex; flex-direction: column; gap: 14px; }
.pv .pv-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--gray-900); font-size: 18px; }
.pv .pv-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pv .pv-field > span:first-child { color: var(--gray-700); font-size: 13.5px; font-weight: 600; }
.pv .pv-field-row { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; gap: 10px; }
.pv .pv-form .pv-field-row { grid-template-columns: minmax(0, 1fr) 150px 110px; }
.pv .pv-field input[type=color] { height: 42px; padding: 4px; }
.pv .pv-icon-input { display: flex; align-items: center; gap: 8px; }
.pv .pv-icon-input svg { width: 22px; height: 22px; color: var(--green-text); }
.pv .pv-check { display: flex; align-items: center; gap: 8px; color: var(--gray-700); font-weight: 600; }
.pv .pv-note-small { margin: 0; font-size: 13px; }
.pv .pv-total { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--gray-100); color: var(--gray-700); font-weight: 600; }
.pv .pv-result { padding: 10px 12px; border-radius: 8px; background: var(--green-soft); color: var(--gray-900); font-size: 14px; }
.pv .pv-result.error { background: rgb(229 72 77 / .12); color: #e5484d; }

@container (max-width: 600px) {
    .pv .pv-tiles { grid-template-columns: 1fr; }
    .pv .pv-hero { grid-template-columns: 1fr; }
    .pv .pv-hero-buy { border-left: 0; border-top: 1px solid var(--gray-100); }
}
@container (max-width: 400px) {
    .pv .pv-cards { gap: 10px; }
    .pv a.pv-card { padding: 14px; }
    .pv .pv-card .pv-name { font-size: 18px; }
    .pv .pv-price b { font-size: 19px; }
    .pv .pv-hero-main, .pv .pv-hero-buy { padding: 16px; }
    .pv .pv-kit { padding: 10px 12px; }
    .pv .pv-kit > summary .btn-ghost { margin-left: 0; }
}
@media (max-width: 640px) {
    .pv .pv-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 16px; }
    .pv .pv-field-row, .pv .pv-form .pv-field-row { grid-template-columns: 1fr 1fr; }
    .pv .pv-field-row > :first-child { grid-column: 1 / -1; }
}

/* сравнение */
.pv .pv-compare { overflow-x: auto; }
.pv .pv-table { display: table !important; width: 100%; border-collapse: collapse; font-size: 14px; }
.pv .pv-table th, .pv .pv-table td { padding: 9px 10px; border-bottom: 1px solid var(--gray-100); text-align: center; vertical-align: middle; }
.pv .pv-table tbody th { text-align: left; font-weight: 600; color: var(--gray-900); }
.pv .pv-table tbody th small { display: block; margin-top: 2px; color: var(--gray-500); font-size: 12.5px; font-weight: 400; }
.pv .pv-table tbody th .pv-note { color: var(--gray-400); }
.pv .pv-table thead th { position: sticky; top: 0; z-index: 1; background: var(--surface, #fff); border-bottom: 2px solid var(--pv, var(--gray-200)); }
.pv .pv-table thead a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: inherit; }
.pv .pv-table thead .pv-name { color: var(--pv); font-size: 16px; font-weight: 700; }
.pv .pv-table thead .pv-price b { font-size: 15px; }
.pv .pv-table thead .pv-price small, .pv .pv-table thead .pv-price s { font-size: 12px; }
.pv .pv-table .pv-sec th { padding-top: 18px; background: none; color: var(--gray-500); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-align: left; }
.pv .pv-table .pv-val { max-width: none; font-size: 13.5px; }
.pv .pv-table td .pv-yes, .pv .pv-table td .pv-no { justify-content: center; }
.pv .pv-table tbody tr:not(.pv-sec):hover > * { background: var(--cream-2); }
.pv .pv-compare-m { display: none; flex-direction: column; gap: 10px; }
.pv .pv-cmp { border: 1px solid var(--gray-200); border-top: 3px solid var(--pv); border-radius: 10px; padding: 0 12px; }
.pv .pv-cmp > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 12px 0; list-style: none; cursor: pointer; color: var(--gray-900); font-weight: 600; }
.pv .pv-cmp > summary::-webkit-details-marker { display: none; }
.pv .pv-cmp > summary .pv-name { color: var(--pv); }
.pv .pv-cmp > summary .pv-price b { font-size: 16px; }
.pv .pv-cmp > summary .chev { width: 18px; height: 18px; margin-left: auto; color: var(--gray-400); transition: transform .15s; }
.pv .pv-cmp[open] > summary .chev { transform: rotate(180deg); }
.pv .pv-cmp h4 { margin: 12px 0 0; color: var(--gray-500); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pv .pv-cmp .pv-buy { margin: 14px 0; }
@container (max-width: 560px) {
    .pv .pv-table { display: none !important; }
    .pv .pv-compare-m { display: flex; }
    .pv .pv-diff-toggle { display: none; }
    .pv .pv-compare { overflow: visible; }
}

/* управление */
.pv .pv-admin-rows { display: flex; flex-direction: column; margin-top: 10px; }
.pv .pv-admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--gray-100); }
.pv .pv-admin-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pv .pv-admin-main b { color: var(--gray-900); }
.pv .pv-admin-main small { font-size: 12.5px; overflow-wrap: anywhere; }
.pv .pv-admin-actions { display: flex; align-items: center; gap: 2px; }
.pv .pv-admin-actions form { display: contents; }
.pv .pv-admin-actions .icon-btn svg { width: 17px; height: 17px; }
.pv .pv-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.pv .pv-inline-form > input:not(.pv-num) { flex: 1 1 200px; min-width: 0; }
.pv .pv-num { width: 80px !important; }
.pv .pv-suffix { display: inline-flex; align-items: center; gap: 6px; color: var(--gray-500); font-size: 13.5px; }
.pv .pv-period-name { min-width: 90px; color: var(--gray-900); }
.pv .pv-add { margin-top: 12px; }
.pv .pv-link-btn { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.pv .pv-state { padding: 2px 8px; border-radius: 999px; background: var(--gray-100); color: var(--gray-500); font-size: 12px; font-weight: 700; }
.pv .pv-state.live { background: var(--green-soft); color: var(--green-text); }
.pv .pv-state.planned { background: rgb(79 179 232 / .15); color: #2b8ac0; }
.pv .pv-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pv .pv-values label { display: flex; flex-direction: column; gap: 4px; }
.pv .pv-values .pv-name { color: var(--pv); font-size: 13px; }
.pv .pv-field-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) {
    .pv .pv-field-row.two { grid-template-columns: 1fr; }
    .pv .pv-field-row.two > :nth-child(2) { grid-row: auto; }
}
.pv .icon-btn.pv-save { color: var(--green-text); }
.pv .icon-btn.pv-save:hover { color: var(--green-text); background: var(--green-soft); }
.pv .pv-admin-row > .pv-inline-form { flex-wrap: nowrap; }
.pv a.pv-kit-row { color: inherit; }
.pv a.pv-kit-row:hover { background: var(--cream-2); }
.pv .pv-srv-states { display: flex; flex-wrap: wrap; gap: 4px; }
.pv .pv-srv { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 22px; padding: 0 4px; border-radius: 5px; background: var(--gray-100); color: var(--gray-400); font-size: 11.5px; font-weight: 700; }
.pv .pv-srv.slots { background: var(--green-soft); color: var(--green-text); }
.pv .pv-srv.image { background: rgb(242 201 76 / .18); color: #b8860b; }
.pv .pv-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 12.5px; }
.pv .pv-kit-form, .pv .pv-slots-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.pv .pv-form-foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.pv .pv-kit-delete { margin-top: 12px; }
.pv .pv-slots-form .shp-inv { margin: 0 auto; }
.pv .pv-slots-form .shp-slot-form { margin: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--gray-200); box-shadow: none; }
.pv .pv-slots-form .shp-slot-form[hidden] { display: none; }
.pv .pv-kit-preview { max-height: 220px; width: auto; }
.pv .pv-kit-form .pv-chip { position: relative; }

/* блок привилегий на «Платных услугах» (без .sp, чтобы не менять ширину страницы DLE) */
.pv-donate {
    --cream-2: #fffaf0; --green: #aac92c; --green-text: #88a415; --green-soft: #f4f8e3;
    --gray-900: #111827; --gray-700: #374151; --gray-600: #4b5563; --gray-500: #6b7280; --gray-400: #9ca3af; --gray-200: #e5e7eb; --gray-100: #f3f4f6;
    container-type: inline-size; font-size: 15px; line-height: 1.5;
}
html[data-theme="dark"] .pv-donate {
    --cream-2: #212428; --green-text: #b9d64a; --green-soft: #252d18;
    --gray-900: #f1f2f4; --gray-700: #d5d8dc; --gray-600: #b6bbc2; --gray-500: #959ba3; --gray-400: #767c85; --gray-200: #363a40; --gray-100: #2a2d32;
}
.pv-donate * { box-sizing: border-box; }
.pv-donate a { text-decoration: none; }
.pv-donate .pv-card { color: var(--gray-600); }
.pv-donate .faint { color: var(--gray-400); }
.pv-donate .pv-donate-all { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 11px 16px; border: 1px solid var(--gray-200); border-radius: 8px; color: var(--gray-700); font-weight: 700; }
.pv-donate .pv-donate-all:hover { border-color: var(--green); color: var(--green-text); }
.pv-donate .pv-donate-all svg { width: 18px; height: 18px; }
.pv-donate { --surface: #fff; }
html[data-theme="dark"] .pv-donate { --surface: #1f2225; }
.pv-donate .pv-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--gray-200); border-top: 3px solid var(--pv); border-radius: 8px; background: var(--surface); }
.pv-donate .pv-card .pv-name { font-size: 20px; }
.pv .pv-card-desc { display: -webkit-box; margin: 0; overflow: hidden; color: var(--gray-600); font-size: 13.5px; line-height: 1.45; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.pv-donate .pv-card-btns { display: flex; gap: 8px; margin-top: 6px; }
.pv-donate .pv-card-btns a { display: inline-flex; flex: 1; align-items: center; justify-content: center; padding: 9px 10px; border-radius: 6px; font-size: 14px; font-weight: 700; }
.pv-donate .pv-card-more { border: 1px solid var(--gray-200); color: var(--gray-700); }
.pv-donate .pv-card-more:hover { border-color: var(--gray-400); }
.pv-donate .pv-card-buy { background: var(--green); color: #fff; }
.pv-donate .pv-card-buy:hover { background: #98b525; }
html[data-theme="dark"] .pv-donate .pv-card-buy { color: #1b2206; }
@media (max-width: 640px) {
    .pv-donate .pv-cards { grid-template-columns: 1fr; }
}

/* срок одной строкой: равные кнопки, скидка под сроком */
.pv .pv-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
.pv .pv-seg .pv-chip { flex-direction: column; justify-content: center; gap: 0; padding: 7px 4px; line-height: 1.25; text-align: center; }
.pv .pv-seg .pv-chip b { font-weight: 700; white-space: nowrap; }
.pv .pv-seg .pv-chip small { font-size: 11.5px; font-weight: 600; color: var(--gray-400); white-space: nowrap; }
.pv .pv-seg .pv-chip.on small, .pv .pv-seg .pv-chip:has(input:checked) small { color: rgb(27 34 6 / .7); }

/* пометка к возможности: значок у названия, текст во всплывающей подсказке */
.pv .pv-tile-name { display: inline; }
.pv .pv-info { display: inline-flex; margin-left: 6px; padding: 0; border: 0; background: none; color: var(--gray-400); vertical-align: -3px; cursor: help; }
.pv .pv-info:hover, .pv .pv-info:focus-visible { color: var(--green-text); outline: none; }
.pv .pv-info svg { width: 16px; height: 16px; }
.pv-tip { position: fixed; z-index: 1000; max-width: min(280px, calc(100vw - 16px)); padding: 8px 11px; border-radius: 8px; background: #111827; color: #f1f2f4; font-size: 13px; font-weight: 500; line-height: 1.4; box-shadow: 0 8px 24px rgb(0 0 0 / .3); pointer-events: none; }
.pv .pv-dialog .pv-info-box { margin: 0; font-size: 13.5px; }
.pv .pv-total-error { color: #e5484d; font-size: 14px; font-weight: 600; text-align: right; }
.pv .pv-term { margin-top: -8px; text-align: right; }
.pv .pv-term:empty { display: none; }
.pv .pv-buy:disabled { opacity: .5; cursor: not-allowed; }

/* цена: строка цены и под ней строка акции; [hidden] всегда скрывает */
.pv [hidden] { display: none !important; }
.pv .pv-price, .pv-donate .pv-price { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.pv .pv-price-main { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.pv .pv-price-sale { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pv .pv-price.short { align-items: center; gap: 0; }
.pv .pv-price.short .pv-price-main { flex-direction: column; align-items: center; gap: 0; }
.pv .pv-table thead .pv-price.short b { font-size: 16px; }
.pv .pv-table thead .pv-price.short s { font-size: 12.5px; }
.pv .pv-table thead th { vertical-align: bottom; }
.pv .pv-cmp > summary .pv-price.short .pv-price-main { flex-direction: row; gap: 6px; }
.pv .pv-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 16px; border: 1px solid rgb(229 72 77 / .35); border-radius: 8px; background: rgb(229 72 77 / .08); color: var(--gray-900); }
.pv .pv-banner small { color: #e5484d; font-weight: 600; }
.pv .pv-dialog .pv-price { align-items: flex-end; }
html .pv .pv-buy:disabled, html .pv .pv-buy:disabled:hover { background: var(--gray-200); color: var(--gray-500); box-shadow: none; opacity: 1; }
.pv .pv-result .pv-topup { display: flex; margin-top: 8px; }

/* журнал */
.pv .pv-log { display: flex; flex-direction: column; }
.pv .pv-log-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gray-100); }
.pv .pv-log-row:last-child { border-bottom: 0; }
.pv .pv-log-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--green-soft); color: var(--green-text); }
.pv .pv-log-ico svg { width: 17px; height: 17px; }
.pv .pv-log-main { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.pv .pv-log-main b { color: var(--gray-900); }
.pv .pv-log-main small { color: var(--gray-500); font-size: 13px; overflow-wrap: anywhere; }
.pv .pv-log-side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; text-align: right; }
.pv .pv-log-side b { color: var(--gray-900); white-space: nowrap; }
.pv .pv-log-side small { font-size: 12.5px; white-space: nowrap; }
.pv .pv-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
@container (max-width: 400px) {
    .pv .pv-log-row { align-items: flex-start; flex-wrap: wrap; }
    .pv .pv-log-side { flex-basis: 100%; flex-direction: row; justify-content: space-between; padding-left: 46px; }
}

/* статистика */
.pv .pv-stat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 0; }
@container (min-width: 680px) { .pv .pv-stat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.pv .pv-stat-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pv .pv-stat-pair > .card { margin: 0; }
@container (max-width: 820px) { .pv .pv-stat-pair { grid-template-columns: minmax(0, 1fr); } }
@container (max-width: 400px) { .pv .pv-stat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pv .pv-stat-tiles > .card { min-width: 0; }
.pv .pv-stat-tiles .shp-delta { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* картинка, чат, плашка, подарок, метка «с какой привилегии» */
.pv .pv-art { display: block; flex: none; object-fit: cover; border-radius: 12px; background: color-mix(in srgb, var(--pv) 14%, transparent); }
.pv .pv-art.big { width: 120px; height: 120px; border-radius: 16px; }
.pv .pv-art.card { width: 100%; aspect-ratio: 4 / 3; height: auto; }
.pv .pv-chat { align-self: flex-start; margin-top: 6px; padding: 5px 10px; border-radius: 6px; background: rgb(0 0 0 / .72); color: #fff; font: 600 13.5px/1.4 ui-monospace, Consolas, monospace; text-shadow: 1px 1px 0 rgb(0 0 0 / .6); overflow-wrap: anywhere; }
.pv .pv-chat-text { color: #e8e8e8; font-weight: 500; }
.pv .pv-badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: linear-gradient(90deg, #ff9f1c, #ff5f6d); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; white-space: nowrap; }
.pv .pv-card-badge { position: absolute; top: 12px; right: 12px; box-shadow: 0 2px 8px rgb(255 95 109 / .35); }
.pv .pv-hero-top b.pv-name { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.pv .pv-hero-top .pv-badge { font-size: 12px; line-height: 1.5; }
.pv .pv-where { display: flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.35; }
.pv .pv-where svg { flex: none; width: 14px; height: 14px; }
.pv .pv-buy-row { display: flex; gap: 8px; margin-top: auto; }
.pv .pv-buy-row .pv-buy { flex: 1; margin-top: 0; }
.pv .pv-gift { flex: none; width: 46px; padding: 0; }
.pv .pv-gift svg { width: 20px; height: 20px; color: var(--pv); }
.pv .pv-tile-top .pv-since { margin-left: auto; }
.pv .pv-since { flex: none; padding: 1px 7px; border: 1px solid color-mix(in srgb, var(--pv) 45%, transparent); border-radius: 999px; color: var(--pv); font-size: 11.5px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.pv .pv-since.new { border-color: transparent; background: var(--pv); color: #fff; }
.pv .pv-image-input { display: flex; align-items: center; gap: 12px; }
.pv .pv-image-input img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; }
@media (max-width: 640px) {
    .pv .pv-art.big { width: 84px; height: 84px; }
}
.pv .pv-sticky { position: fixed; right: 0; bottom: var(--pv-nav, 0px); left: 0; z-index: 899; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 3px solid var(--pv); background: var(--surface, #fff); box-shadow: 0 -4px 16px rgb(0 0 0 / .14); }
.pv .pv-sticky > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pv .pv-sticky .pv-name { font-size: 16px; }
.pv .pv-sticky small { color: var(--gray-600); font-size: 13.5px; font-weight: 600; }
.pv .pv-sticky .btn-green { flex: none; padding: 10px 18px; }
body.pv-sticky-on .sp-bell { transform: translateY(-72px); }
.pv .pv-price.from { flex-direction: column; align-items: flex-start; }
.pv .pv-admin-row .pv-state { margin: 0; }
.pv .pv-rules { display: flex; flex-direction: column; gap: 14px; }
.pv .pv-rules fieldset { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 14px; border: 1px solid var(--gray-200); border-radius: 10px; }
.pv .pv-rules legend { padding: 0 6px; color: var(--gray-900); font-weight: 700; }
.pv .pv-rules .pv-check { font-weight: 500; }
.pv .pv-rules .pv-suffix { flex-wrap: wrap; color: var(--gray-700); }
.pv .pv-rules select { width: auto; }
.pv .pv-formula { margin: 0; font-size: 13px; line-height: 1.45; }
.pv .pv-formula b { color: var(--gray-900); }
