/*
Theme Name:   bonkod.net/promocode (CouponPress child)
Description:  Дочерняя тема CouponPress (CP10) для купонного раздела bonkod.net/promocode. Бренд блога bonkod.net (индиго #26215C, лайм #B8E04A, Manrope локально), интерфейс каталога: горизонтальные карточки-купоны списком, алфавитный указатель магазинов. Требует mu-plugin bonkod-cp-core.
Template:     CP10
Version:      1.0.0
Text Domain:  bonkod-net-pc
License:      GNU General Public License v2 or later
*/

:root {
	--indigo: #26215C;
	--indigo-2: #3A3290;      /* ссылки, рамки фокуса на светлом */
	--indigo-deep: #1B1745;   /* подвал */
	--indigo-band: #302A72;   /* строка поиска в шапке */
	--indigo-soft: #ECEBF7;
	--lime: #B8E04A;
	--lime-soft: #F3F9E1;
	--lime-dark: #4D6A00;     /* лайм для текста на белом (AA) */
	--bg: #F4F5FA;
	--surface: #FFFFFF;
	--ink: #1E1B3A;
	--muted: #57557A;         /* AA на #F4F5FA и белом */
	--line: #E2E3EE;
	--radius: 14px;
	--radius-sm: 10px;
	--shadow: 0 1px 2px rgba(38, 33, 92, .06), 0 6px 18px rgba(38, 33, 92, .06);
	--wrap: 1240px;
	--font: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.pc-site {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.6 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--indigo-2); text-underline-offset: .18em; }
a:hover { color: var(--indigo); }
h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--indigo-2); outline-offset: 2px; border-radius: 6px; }
.pc-header :focus-visible, .pc-hero :focus-visible, .pc-storehead :focus-visible, .pc-footer :focus-visible, .pc-404__card :focus-visible { outline-color: var(--lime); }
.pc-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .pc-wrap { padding-inline: 28px; } }
.pc-main { min-height: 50vh; }
.pc-muted { color: var(--muted); }
.pc-skip { position: absolute; left: -9999px; top: 8px; z-index: 1000; background: var(--lime); color: var(--indigo); padding: 10px 16px; border-radius: 10px; font-weight: 800; }
.pc-skip:focus { left: 8px; }

/* ---------- Шапка ---------- */
.pc-header { background: var(--indigo); color: #fff; }
.pc-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding-block: 10px; }
.pc-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; min-width: 0; }
.pc-brand__logo { display: block; width: 136px; height: auto; }
.pc-brand__tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--lime); color: var(--indigo); font-size: .6875rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
@media (min-width: 768px) { .pc-brand__logo { width: 174px; } .pc-header__bar { min-height: 76px; } }
.pc-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pc-nav a { display: inline-block; padding: 8px 10px; color: #fff; font-weight: 600; text-decoration: none; border-radius: 8px; }
.pc-nav a:hover, .pc-nav a[aria-current="page"] { color: var(--lime); }
.pc-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; }
.pc-nav a.pc-nav__blog { border: 2px solid var(--lime); border-radius: 999px; padding: 6px 14px; }
.pc-nav a.pc-nav__blog:hover { background: var(--lime); color: var(--indigo); }
.pc-nav a { white-space: nowrap; }
@media (max-width: 420px) { .pc-brand__tag { display: none; } .pc-nav a { padding-inline: 8px; } }
/* 360 px: три пункта меню + логотип не помещались (меню вылезало на ~40 px) */
@media (max-width: 480px) {
	.pc-header__bar { flex-wrap: wrap; gap: 8px; }
	.pc-brand__logo { width: 112px; }
	.pc-nav ul { gap: 2px; }
	.pc-nav a { padding: 6px; font-size: .875rem; }
	.pc-nav a.pc-nav__blog { padding: 4px 10px; }
}
.pc-header__search { background: var(--indigo-band); padding-block: 10px; }
.pc-header__search .pc-search { max-width: 640px; }

/* ---------- Поиск ---------- */
.pc-search { position: relative; display: flex; align-items: center; width: 100%; background: var(--surface); border-radius: 12px; padding: 4px 4px 4px 14px; border: 2px solid transparent; }
.pc-search:focus-within { border-color: var(--lime); }
.pc-search__icon { flex: none; color: var(--muted); }
.pc-search__input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 9px 10px; outline: none; }
.pc-search__input::placeholder { color: #7B7997; }
.pc-search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.pc-search__btn { flex: none; border: 0; border-radius: 9px; background: var(--lime); color: var(--indigo); font: inherit; font-weight: 800; padding: 8px 18px; min-height: 42px; cursor: pointer; }
.pc-search__btn:hover { background: #A6D034; }
.pc-search--hero { max-width: 720px; padding: 6px 6px 6px 18px; }
.pc-search--hero .pc-search__input { font-size: 1.0625rem; padding-block: 12px; }
.pc-search--hero .pc-search__btn { min-height: 50px; padding-inline: 24px; }
.pc-search--page { border-color: var(--line); }

/* ---------- Уголки-скобки бренда (как на обложках блога) ---------- */
.pc-corner { position: absolute; width: 36px; height: 36px; pointer-events: none; }
.pc-corner--tl { top: 18px; left: 16px; border-top: 4px solid var(--lime); border-left: 4px solid var(--lime); }
.pc-corner--br { right: 16px; bottom: 18px; border-right: 4px solid var(--lime); border-bottom: 4px solid var(--lime); }
@media (max-width: 599px) { .pc-corner { width: 22px; height: 22px; } .pc-corner--tl { top: 10px; left: 8px; } .pc-corner--br { right: 8px; bottom: 10px; } }

/* ---------- Первый экран главной ---------- */
.pc-hero { background: var(--indigo); color: #E4E2F6; border-top: 1px solid rgba(255, 255, 255, .08); }
.pc-hero__inner { position: relative; padding-block: 40px 36px; }
@media (min-width: 768px) { .pc-hero__inner { padding: 56px 52px 48px; } }
.pc-kicker { display: inline-block; margin: 0 0 14px; padding: 4px 10px; border-radius: 6px; background: var(--lime); color: var(--indigo); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pc-hero__title { color: #fff; font-size: clamp(1.85rem, 1.1rem + 3.2vw, 3.25rem); max-width: 22em; }
.pc-hero__title span { color: var(--lime); white-space: nowrap; }
.pc-hero__lead { margin: 14px 0 24px; font-size: 1.0625rem; max-width: 40em; }

/* ---------- Полоса алфавита ---------- */
.pc-abc ul { display: flex; flex-wrap: wrap; gap: 5px; list-style: none; margin: 0; padding: 0; }
.pc-abc a, .pc-abc span { display: inline-grid; place-items: center; min-width: 33px; height: 36px; padding: 0 7px; border-radius: 8px; font-weight: 800; text-decoration: none; }
.pc-abc a { background: var(--surface); color: var(--indigo); border: 1px solid var(--line); }
.pc-abc a:hover { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.pc-abc span { color: #A9A8C2; }
.pc-hero .pc-abc, .pc-404 .pc-abc { margin-top: 22px; }
.pc-hero .pc-abc a, .pc-404 .pc-abc a { background: var(--lime); color: var(--indigo); border-color: var(--lime); }
.pc-hero .pc-abc a:hover, .pc-404 .pc-abc a:hover { background: #fff; border-color: #fff; }
.pc-hero .pc-abc span, .pc-404 .pc-abc span { color: rgba(255, 255, 255, .42); border: 1px solid rgba(255, 255, 255, .12); }
@media (max-width: 599px) { .pc-abc a, .pc-abc span { min-width: 32px; height: 32px; padding: 0 6px; font-size: .9375rem; } .pc-abc ul { gap: 5px; } }
.pc-abc-sticky { position: sticky; top: 0; z-index: 5; background: var(--bg); padding-block: 10px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }

/* ---------- Заголовки, секции ---------- */
.pc-h1 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.5rem); margin: 6px 0 14px; overflow-wrap: anywhere; color: var(--indigo); }
.pc-h2 { font-size: 1.375rem; color: var(--indigo); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pc-h2::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 3px var(--indigo); flex: none; }
.pc-h2--muted { color: var(--muted); }
.pc-h2--muted::before { background: #C9C8DA; box-shadow: 0 0 0 3px #8E8CA8; }
.pc-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 16px; }
.pc-section-head .pc-h2, .pc-section-head .pc-h1 { margin-bottom: 0; }
.pc-section-head__meta { color: var(--muted); font-weight: 600; font-size: .9375rem; }
.pc-more { display: inline-block; margin-top: 14px; font-weight: 800; color: var(--indigo); text-decoration: none; border-bottom: 2px solid var(--lime); }
.pc-more:hover { color: var(--indigo-2); }
.pc-page { padding-block: 18px 48px; }
.pc-page--narrow { max-width: 860px; }
.pc-lead { font-size: 1.0625rem; color: var(--muted); }
.pc-block { margin-bottom: 32px; }

/* ---------- Хлебные крошки ---------- */
.pc-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 4px 0 12px; padding: 0; font-size: .875rem; color: var(--muted); }
.pc-crumbs li { overflow-wrap: anywhere; }
.pc-crumbs li + li::before { content: "/"; margin-right: 6px; color: #A9A8C2; }
.pc-crumbs a { color: var(--muted); }
.pc-storehead .pc-crumbs ol, .pc-storehead .pc-crumbs a { color: #C9C6EC; }
.pc-storehead .pc-crumbs li + li::before { color: #7E78C2; }

/* ---------- Раскладка в две колонки ---------- */
.pc-home, .pc-cols { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); padding-block: 32px 40px; }
.pc-page .pc-cols { padding-block: 8px 0; }
@media (min-width: 1024px) {
	.pc-home, .pc-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; align-items: start; }
	.pc-home__aside, .pc-cols__aside { position: sticky; top: 16px; }
	.pc-cols--search { grid-template-columns: minmax(0, 1fr) 340px; }
}
.pc-cols__aside { display: grid; gap: 18px; min-width: 0; }
.pc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.pc-panel__title { font-size: 1.125rem; color: var(--indigo); margin-bottom: 12px; }
.pc-panel .pc-h2 { font-size: 1.25rem; }

/* ---------- Логотипы магазинов / заглушки ---------- */
.pc-site .bk-logo { display: inline-grid; place-items: center; flex: none; border-radius: 10px; overflow: hidden; background: #fff; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.pc-site .bk-logo img { width: 100%; height: 100%; object-fit: contain; }
.pc-site .bk-logo--sm { width: 32px; height: 32px; border-radius: 8px; font-size: .8125rem; }
.pc-site .bk-logo--md { width: 56px; height: 56px; border-radius: 12px; font-size: 1.1875rem; }
.pc-site .bk-logo--lg { width: 88px; height: 88px; border-radius: 18px; font-size: 1.875rem; }
.pc-site .bk-tone-0 { background: #E1F2B4; color: #3B5200; }
.pc-site .bk-tone-1 { background: #DCD9F7; color: #2E2880; }
.pc-site .bk-tone-2 { background: #D6EEF0; color: #165257; }
.pc-site .bk-tone-3 { background: #FBE3CF; color: #7A3A0C; }
.pc-site .bk-tone-4 { background: #F3DAF0; color: #6E2466; }
.pc-site .bk-tone-5 { background: #E4E6EF; color: #2F3350; }

/* ---------- Указатель магазинов ---------- */
.pc-index { display: grid; gap: 18px; }
.pc-index__group { scroll-margin-top: 64px; min-width: 0; }
.pc-index__letter { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; color: var(--indigo); margin-bottom: 6px; }
.pc-index__letter::after { content: ""; flex: 1; height: 2px; background: var(--line); }
.pc-index__list { list-style: none; margin: 0; padding: 0; }
.pc-srow + .pc-srow { border-top: 1px solid var(--line); }
.pc-srow__link { display: flex; align-items: center; gap: 12px; padding: 9px 4px; text-decoration: none; color: var(--ink); border-radius: 8px; min-width: 0; }
.pc-srow__link:hover { background: var(--indigo-soft); color: var(--indigo); }
.pc-srow__name { flex: 1 1 auto; min-width: 0; font-weight: 700; overflow-wrap: anywhere; }
.pc-srow__count { flex: none; min-width: 30px; padding: 2px 9px; border-radius: 999px; background: var(--lime); color: var(--indigo); font-weight: 800; font-size: .875rem; text-align: center; }
.pc-srow__count.is-zero { background: var(--indigo-soft); color: var(--muted); }
.pc-catalog .pc-index { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px 36px; padding-top: 12px; }
.pc-catalog .pc-index__group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.pc-catalog .pc-index__letter { font-size: 1.75rem; }

/* ---------- Список карточек ---------- */
.pc-list { display: grid; gap: 14px; }

/* ---------- Карточка-купон (горизонтальная) ---------- */
.pc-offer {
	--stub: 64px;
	position: relative;
	display: grid;
	grid-template-columns: var(--stub) minmax(0, 1fr);
	grid-template-areas: "stub body" "stub actions";
	background: var(--surface);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	min-width: 0;
}
/* выемки купона на линии отрыва */
.pc-offer::before, .pc-offer::after { content: ""; position: absolute; left: calc(var(--stub) - 9px); width: 18px; height: 18px; border-radius: 50%; background: var(--bg); z-index: 1; }
.pc-offer::before { top: -9px; }
.pc-offer::after { bottom: -9px; }
.pc-panel .pc-offer::before, .pc-panel .pc-offer::after { background: var(--surface); }
.pc-offer__stub { grid-area: stub; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 14px 6px; background: var(--indigo); color: #fff; border-right: 2px dashed rgba(255, 255, 255, .35); text-align: center; min-width: 0; }
.pc-offer--deal .pc-offer__stub { background: var(--indigo-2); }
.pc-offer__store { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-decoration: none; min-width: 0; max-width: 100%; }
.pc-offer__store .bk-logo--md { width: 44px; height: 44px; font-size: 1rem; }
.pc-offer__store-name { display: none; font-size: .8125rem; font-weight: 700; line-height: 1.25; overflow-wrap: anywhere; }
.pc-offer__store:hover .pc-offer__store-name { color: var(--lime); }
.pc-offer__sign { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--lime); color: var(--indigo); }
.pc-offer__sign-label { display: none; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #D9D6F5; }
.pc-offer__body { grid-area: body; padding: 14px 16px 8px; min-width: 0; }
.pc-offer__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 0 0 6px; font-size: .875rem; color: var(--muted); }
.pc-tag { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pc-tag--code { background: var(--indigo-soft); color: var(--indigo); }
.pc-tag--deal { background: var(--lime-soft); color: var(--lime-dark); border: 1px solid #D5EA9C; }
.pc-tag--expired { background: #4A4766; color: #fff; }
.pc-offer__meta-store { font-weight: 800; color: var(--indigo); }
@media (min-width: 600px) { .pc-offer__meta-store { display: none; } }
.pc-offer__date time { font-weight: 700; color: var(--ink); }
.pc-offer__benefit { display: inline-block; margin: 2px 0 6px; padding: 2px 10px; border-left: 4px solid var(--lime); background: var(--lime-soft); color: var(--indigo); font-weight: 800; font-size: 1.125rem; line-height: 1.4; overflow-wrap: anywhere; }
.pc-offer__title { font-size: 1.0625rem; line-height: 1.3; overflow-wrap: anywhere; }
.pc-offer__title a { color: var(--ink); text-decoration: none; }
.pc-offer__title a:hover { color: var(--indigo-2); text-decoration: underline; }
h1.pc-offer__title { font-size: clamp(1.4rem, 1.15rem + 1.2vw, 1.9rem); color: var(--indigo); }
.pc-offer__text { margin: 6px 0 0; color: var(--muted); font-size: .9375rem; }
.pc-offer__actions { grid-area: actions; display: flex; flex-direction: column; gap: 8px; padding: 8px 16px 16px; min-width: 0; }

@media (min-width: 600px) {
	.pc-offer { --stub: 116px; grid-template-columns: var(--stub) minmax(0, 1fr) 210px; grid-template-areas: "stub body actions"; min-height: 132px; }
	.pc-offer__store .bk-logo--md { width: 56px; height: 56px; font-size: 1.1875rem; }
	.pc-offer__store-name, .pc-offer__sign-label { display: block; }
	.pc-offer__sign { width: 56px; height: 56px; }
	.pc-offer__body { padding: 18px 20px; align-self: center; }
	.pc-offer__actions { justify-content: center; padding: 18px 18px 18px 0; }
}
@media (min-width: 600px) and (max-width: 767px) {
	.pc-offer { grid-template-columns: var(--stub) minmax(0, 1fr); grid-template-areas: "stub body" "stub actions"; }
	.pc-offer__actions { padding: 0 20px 18px; flex-direction: row; flex-wrap: wrap; }
	.pc-offer__actions > * { flex: 1 1 160px; }
}
.pc-offer--single { --stub: 64px; }
/* Открытый код на широком экране: кнопки уходят строкой под текст, код и «Скопировать» — в ряд */
@media (min-width: 768px) {
	.pc-offer:has(.pc-code[open]) { grid-template-columns: var(--stub) minmax(0, 1fr); grid-template-areas: "stub body" "stub actions"; }
	.pc-offer:has(.pc-code[open]) .pc-offer__body { padding-bottom: 6px; }
	.pc-offer:has(.pc-code[open]) .pc-offer__actions { flex-direction: row; flex-wrap: wrap; align-items: flex-start; padding: 0 20px 18px; }
	.pc-offer:has(.pc-code[open]) .pc-code { flex: 1 1 360px; min-width: 0; }
	.pc-offer:has(.pc-code[open]) .pc-btn--store { flex: 0 0 auto; }
	.pc-code[open] > summary.pc-btn { width: auto; display: inline-flex; }
	.pc-code[open] .pc-code__panel { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
	.pc-code[open] .pc-code__panel .pc-btn--copy { width: auto; }
	.pc-code[open] .pc-code__status, .pc-code[open] .pc-code__note { grid-column: 1 / -1; }
}
@media (min-width: 600px) { .pc-offer--single { --stub: 140px; min-height: 180px; } }

/* Истёкшее — приглушённый купон */
.pc-offer.is-expired { box-shadow: none; border: 1px dashed #C9C8DA; background: #FAFAFD; }
.pc-offer.is-expired .pc-offer__stub { background: #8E8CA8; }
.pc-offer.is-expired .bk-logo, .pc-offer.is-expired .pc-offer__sign { filter: grayscale(1); }
.pc-offer.is-expired .pc-offer__title a { color: #4A4766; }
.pc-offer.is-expired .pc-offer__benefit { background: #EEEEF4; border-color: #A9A8C2; color: #4A4766; }
.pc-offer.is-expired .pc-btn--code { background: #E4E4EE; color: #3A3856; }
.pc-offer.is-expired .pc-btn--store { border-color: #A9A8C2; color: #4A4766; }

/* ---------- Кнопки ---------- */
.pc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 10px 16px; border: 2px solid transparent; border-radius: var(--radius-sm); font: inherit; font-weight: 800; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.pc-btn--code { background: var(--lime); color: var(--indigo); width: 100%; }
.pc-btn--code:hover { background: #A6D034; color: var(--indigo); }
.pc-btn--store { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.pc-btn--store:hover { background: var(--indigo); color: #fff; }
.pc-offer--deal .pc-btn--store { background: var(--indigo); color: #fff; }
.pc-offer--deal .pc-btn--store:hover { background: var(--indigo-2); }
.pc-btn--copy { background: var(--indigo); color: #fff; width: 100%; min-height: 42px; }
.pc-btn--copy:hover, .pc-btn--copy.is-done { background: var(--indigo-2); color: #fff; }
.pc-btn--copy.is-done { background: var(--lime-dark); }
.pc-btn--lime { background: var(--lime); color: var(--indigo); }
.pc-btn--lime:hover { background: #fff; color: var(--indigo); }
.pc-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.pc-btn--ghost-light:hover { border-color: var(--lime); color: var(--lime); }

/* ---------- Раскрытый код ---------- */
.pc-code > summary.pc-btn { display: flex; position: relative; }
.pc-code:not([open]) > summary.pc-btn::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 34px; border-left: 2px dashed rgba(38, 33, 92, .35); background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(38, 33, 92, .08) 5px 10px); border-radius: 0 8px 8px 0; }
.pc-code:not([open]) > summary.pc-btn { padding-right: 46px; }
.pc-code[open] > summary.pc-btn { background: var(--indigo-soft); color: var(--indigo); min-height: 38px; font-size: .9375rem; }
.pc-code__panel { margin-top: 8px; padding: 12px; border-radius: var(--radius-sm); background: var(--lime-soft); border: 2px dashed var(--indigo); display: grid; gap: 8px; }
.pc-code__label { font-size: .8125rem; font-weight: 700; color: var(--muted); }
.pc-code__value { display: block; font-family: var(--mono); font-size: 1.25rem; font-weight: 700; letter-spacing: .06em; color: var(--indigo); background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; }
.pc-code__status { font-size: .875rem; color: var(--lime-dark); font-weight: 700; }
.pc-code__note { font-size: .875rem; color: #6B2B1F; background: #FBE9E4; border-radius: 8px; padding: 6px 10px; }
.is-expired .pc-code__panel { border-color: #8E8CA8; background: #F4F4F8; }

/* ---------- Плашка магазина ---------- */
.pc-storehead { background: var(--indigo); color: #E4E2F6; padding-block: 8px 28px; border-top: 1px solid rgba(255, 255, 255, .08); }
.pc-storehead__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; }
.pc-storehead__body { flex: 1 1 240px; min-width: 0; }
.pc-storehead__title { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.5rem); overflow-wrap: anywhere; }
.pc-storehead__stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.pc-stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font-weight: 600; font-size: .9375rem; }
.pc-stat strong { color: var(--lime); font-weight: 800; font-size: 1.0625rem; }
.pc-stat--muted strong { color: #C9C6EC; }
.pc-storehead .bk-logo--lg { box-shadow: 0 0 0 4px rgba(184, 224, 74, .9); }
@media (max-width: 599px) { .pc-storehead .bk-logo--lg { width: 64px; height: 64px; font-size: 1.375rem; border-radius: 14px; } .pc-storehead__site { width: 100%; } }

/* ---------- Как применить код ---------- */
.pc-howto { background: var(--indigo-soft); border-radius: var(--radius); padding: 20px; }
.pc-howto__title { font-size: 1.125rem; color: var(--indigo); margin-bottom: 12px; }
.pc-howto__steps { list-style: none; counter-reset: s; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; font-size: .9375rem; }
.pc-howto__steps li { counter-increment: s; position: relative; padding-left: 38px; min-height: 28px; }
.pc-howto__steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 8px; background: var(--indigo); color: var(--lime); font-weight: 800; font-size: .875rem; display: grid; place-items: center; }
.pc-howto__note { margin: 0; font-size: .875rem; color: var(--muted); }
.pc-about__text { color: var(--muted); font-size: .9375rem; }
.pc-about__text p:last-child { margin-bottom: 0; }
.pc-terms { margin-top: 18px; }

/* ---------- Пусто ---------- */
.pc-empty { padding: 20px; border-radius: var(--radius); background: var(--surface); border: 2px dashed #C9C8DA; }
.pc-empty__title { font-weight: 800; font-size: 1.0625rem; margin-bottom: 6px; color: var(--indigo); }
.pc-empty__text { color: var(--muted); }
.pc-prose { overflow-wrap: anywhere; }
.pc-prose h2 { margin: 1.4em 0 .6em; }
.pc-prose > h2:first-child { margin-top: 0; } /* «Условия» и др. — без пустоты сверху панели */
.pc-prose ul, .pc-prose ol { padding-left: 1.3em; }

/* ---------- Полоса блога ---------- */
.pc-blogband { margin-bottom: 40px; }
.pc-blogband__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--lime); }
.pc-blogband__kicker { margin: 0; padding: 3px 8px; border-radius: 6px; background: var(--indigo); color: var(--lime); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.pc-blogband__text { margin: 0; flex: 1 1 320px; color: var(--ink); }
.pc-blogband .pc-btn--lime:hover { background: var(--indigo); color: #fff; }

/* ---------- 404 ---------- */
.pc-404__card { position: relative; background: var(--indigo); color: #E4E2F6; border-radius: 20px; padding: 40px 22px; text-align: center; margin-top: 8px; }
@media (min-width: 768px) { .pc-404__card { padding: 56px 64px; } }
.pc-404__code { margin: 0; font-size: clamp(4.5rem, 3rem + 7vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 3px var(--lime); }
.pc-404 .pc-h1 { color: #fff; margin-top: 12px; }
.pc-404 .pc-lead { color: #C9C6EC; max-width: 34em; margin-inline: auto; }
.pc-404 .pc-abc ul { justify-content: center; }
.pc-404__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 0; }

/* ---------- Пагинация ---------- */
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.nav-links .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-weight: 800; }
.nav-links .current { background: var(--indigo); color: #fff; }

/* ---------- Подвал ---------- */
.pc-footer { background: var(--indigo-deep); color: #D6D4EE; }
.pc-footer__inner { display: grid; gap: 18px; padding-block: 32px; }
.pc-footer a { color: var(--lime); }
.pc-footer .pc-brand { color: inherit; }
.pc-footer__about p { margin: 12px 0 0; max-width: 34em; }
.pc-footer__nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-weight: 700; }
.pc-footer__note, .pc-footer__copy { margin: 0; font-size: .875rem; color: #B5B2DA; }
@media (min-width: 900px) {
	.pc-footer__inner { grid-template-columns: 1.3fr 1fr; grid-template-areas: "about nav" "note copy"; padding-block: 44px; gap: 22px 48px; }
	.pc-footer__about { grid-area: about; } .pc-footer__nav { grid-area: nav; justify-self: end; }
	.pc-footer__note { grid-area: note; } .pc-footer__copy { grid-area: copy; justify-self: end; align-self: end; }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
