/* HubLink public page — blocks + themes.
   Theme: <html data-theme="clean|night|soft|business|showcase|aurora|bright|journal|postcard|terminal|poster|luxe|receipt|retro|custom|sport|garden|neon|notebook|ticket|calm|anime|watercolor">. Rules for new themes: docs/THEME-RULES.md.
   Author accent: server prints on <html style="--hl-accent:#..;--hl-on-accent:#..;--hl-accent-ink:#..">
   (on-accent / accent-ink are computed in PHP for WCAG AA, see THEME-RULES.md). */

/* ---------- 1. Default token set (= «Чистая»). Every theme overrides the SAME names. ---------- */
:root, [data-theme] {
  --hl-accent: #5b5bd6;
  --hl-on-accent: #ffffff;
  --hl-accent-ink: #4b4bc4;           /* accent as text on surface, AA */

  /* --hl-page-tint: the background a Plus author picked (inline from PHP) in themes that offer a choice. */
  --hl-bg: var(--hl-page-tint, #f5f5f2);
  --hl-bg-image: none;
  --hl-text: #18181b;
  --hl-text-muted: #5c5c66;
  --hl-focus: #18181b;

  --hl-font-head: "Manrope", system-ui, sans-serif;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-body);
  --hl-head-weight: 700;
  --hl-btn-weight: 700;
  --hl-head-tracking: -0.02em;

  --hl-gap: 12px;
  --hl-surface: #ffffff;
  --hl-surface-border: 1px solid #e7e7e2;
  --hl-surface-shadow: 0 1px 2px rgba(0,0,0,.04);
  --hl-surface-blur: none;
  --hl-radius-card: 18px;
  --hl-radius-btn: 14px;

  --hl-btn-border: 0px solid transparent;
  --hl-btn-shadow: 0 1px 2px rgba(0,0,0,.08);
  --hl-btn-shadow-hover: 0 6px 16px -6px color-mix(in srgb, var(--hl-accent) 60%, transparent);
  --hl-btn-press: translateY(1px) scale(.985);
  --hl-btn2-bg: transparent;
  --hl-btn2-fg: var(--hl-accent-ink);
  --hl-btn2-border: 1.5px solid color-mix(in srgb, var(--hl-accent) 45%, transparent);
  --hl-chip-bg: color-mix(in srgb, var(--hl-accent) 12%, transparent);
  --hl-chip-fg: var(--hl-accent-ink);
  --hl-social-icon: var(--hl-accent-ink);

  /* header layout: centered | cover-left | bigname — expressed as tokens */
  --hl-head-cols: 1fr;
  --hl-head-areas: "cover" "avatar" "name" "sub" "desc";
  --hl-head-justify: center;
  --hl-head-align: center;
  --hl-head-surface: transparent;
  --hl-head-border: 0;
  --hl-head-shadow: none;
  --hl-head-pad: 8px;
  --hl-name-size: clamp(24px, 7vw, 28px);
  --hl-avatar-size: 88px;
  --hl-avatar-radius: 50%;
  --hl-avatar-bg: color-mix(in srgb, var(--hl-accent) 14%, #fff);
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: none;
  --hl-avatar-overlap: 0px;
  /* A photo is never smaller than this, even in themes with a tiny letter avatar (a face must read). */
  --hl-avatar-photo-min: 72px;
  --hl-cover-empty-display: none;
  --hl-cover-empty-bg: none;
  --hl-cover-height: 120px;

  --hl-made-bg: transparent;
  --hl-made-border: 1px solid transparent;

  --hl-socials-cols: repeat(2, minmax(0, 1fr));   /* tiles; 1fr = list rows */
  --hl-rule: 0 solid transparent;                  /* divider above blocks */
}

/* ---------- 2. Themes ---------- */
[data-theme="night"] {
  --hl-bg: var(--hl-page-tint, #0e1014);
  --hl-bg-image: radial-gradient(120% 55% at 50% -12%, color-mix(in srgb, var(--hl-accent) 26%, transparent), transparent 65%);
  --hl-text: #eceef2;
  --hl-text-muted: #9ca0ad;
  --hl-focus: #ffffff;
  --hl-font-head: "Onest", system-ui, sans-serif;
  --hl-font-body: "Onest", system-ui, sans-serif;
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-surface: #171a21;
  --hl-surface-border: 1px solid rgba(255,255,255,.07);
  --hl-surface-shadow: none;
  --hl-radius-card: 20px;
  --hl-radius-btn: 16px;
  --hl-btn-shadow: 0 10px 28px -12px color-mix(in srgb, var(--hl-accent) 80%, transparent);
  --hl-btn-shadow-hover: 0 14px 32px -10px color-mix(in srgb, var(--hl-accent) 90%, transparent);
  --hl-btn2-border: 1px solid rgba(255,255,255,.14);
  --hl-chip-bg: color-mix(in srgb, var(--hl-accent) 20%, transparent);
  --hl-avatar-bg: #1f232c;
  --hl-avatar-ring: 0 0 0 1px rgba(255,255,255,.1), 0 0 0 6px color-mix(in srgb, var(--hl-accent) 18%, transparent);
  --hl-made-bg: rgba(255,255,255,.04);
  --hl-made-border: 1px solid rgba(255,255,255,.07);
}

[data-theme="soft"] {
  --hl-bg: var(--hl-page-tint, #fbf1ea);
  --hl-bg-image: radial-gradient(circle at 1px 1px, rgba(176,112,84,.16) 1px, transparent 1.6px);
  --hl-text: #3a2a24;
  --hl-text-muted: #7a5f55;
  --hl-focus: #3a2a24;
  --hl-font-head: "Lora", Georgia, serif;
  --hl-font-body: "Nunito", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 500;
  --hl-btn-weight: 500;
  --hl-head-tracking: -0.01em;
  --hl-gap: 14px;
  --hl-surface: #fffaf6;
  --hl-surface-border: 1px solid #f1e2d8;
  --hl-surface-shadow: 0 12px 30px -20px rgba(120,70,40,.45);
  --hl-radius-card: 28px;
  --hl-radius-btn: 999px;
  --hl-btn-shadow: 0 8px 20px -12px color-mix(in srgb, var(--hl-accent) 70%, #000);
  --hl-btn2-bg: #fff;
  --hl-btn2-border: 1px solid #ecd9cc;
  --hl-name-size: clamp(26px, 8vw, 32px);
  --hl-avatar-size: 96px;
  --hl-avatar-bg: color-mix(in srgb, var(--hl-accent) 18%, #fff4ec);
  --hl-avatar-ring: 0 0 0 5px #fffaf6, 0 10px 24px -10px rgba(120,70,40,.5);
  --hl-made-bg: #fffaf6;
  --hl-made-border: 1px solid #f1e2d8;
}

[data-theme="business"] {
  --hl-bg: #eceef1;
  --hl-text: #111827;
  --hl-text-muted: #4b5563;
  --hl-focus: #111827;
  --hl-font-head: "IBM Plex Sans", system-ui, sans-serif;
  --hl-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: -0.01em;
  --hl-gap: 10px;
  --hl-surface: #ffffff;
  --hl-surface-border: 1px solid #dde1e6;
  --hl-surface-shadow: none;
  --hl-radius-card: 8px;
  --hl-radius-btn: 6px;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: none;
  --hl-btn2-border: 1px solid #c9ced6;
  --hl-btn2-fg: #111827;
  --hl-chip-bg: #f1f3f5;
  --hl-chip-fg: #374151;
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: #fff;
  --hl-head-border: 1px solid #dde1e6;
  --hl-head-pad: 20px;
  --hl-name-size: clamp(22px, 6.4vw, 26px);
  --hl-avatar-size: 76px;
  --hl-avatar-radius: 10px;
  --hl-avatar-bg: #f1f3f5;
  --hl-avatar-fg: #111827;
  --hl-avatar-ring: 0 0 0 3px #fff;
  --hl-avatar-overlap: -38px;
  --hl-cover-empty-display: block;
  --hl-cover-empty-bg: repeating-linear-gradient(135deg, rgba(255,255,255,.07) 0 1px, transparent 1px 9px), color-mix(in srgb, var(--hl-accent) 70%, #0b1220);
  --hl-cover-height: 92px;
}

[data-theme="bright"] {
  /* --hl-page-tint: the background the author picked (inline from PHP), independent of the accent. */
  --hl-bg: var(--hl-page-tint, #7b3fe4);
  --hl-bg-image:
    radial-gradient(90% 55% at 100% 0%, color-mix(in srgb, var(--hl-bg), #ffd23f 60%), transparent 70%),
    radial-gradient(80% 55% at 0% 100%, color-mix(in srgb, var(--hl-bg), #ff3d8b 65%), transparent 70%);
  --hl-text: #14101f;
  --hl-text-muted: #4a4458;
  --hl-focus: #14101f;
  --hl-font-head: "Unbounded", system-ui, sans-serif;
  --hl-font-body: "Golos Text", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: -0.03em;
  --hl-gap: 14px;
  --hl-surface: #ffffff;
  --hl-surface-border: 2px solid #14101f;
  --hl-surface-shadow: 5px 5px 0 #14101f;
  --hl-radius-card: 22px;
  --hl-radius-btn: 16px;
  --hl-btn-border: 2px solid #14101f;
  --hl-btn-shadow: 3px 3px 0 #14101f;
  --hl-btn-shadow-hover: 4px 4px 0 #14101f;
  --hl-btn-press: translate(3px, 3px);
  --hl-btn2-bg: #fff;
  --hl-btn2-fg: #14101f;
  --hl-btn2-border: 2px solid #14101f;
  --hl-chip-bg: #14101f;
  --hl-chip-fg: #fff;
  --hl-social-icon: #14101f;
  --hl-head-cols: auto 1fr;
  --hl-head-areas: "cover cover" "avatar sub" "name name" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: #fff;
  --hl-head-border: 2px solid #14101f;
  --hl-head-shadow: 5px 5px 0 #14101f;
  --hl-head-pad: 20px;
  --hl-name-size: clamp(28px, 9vw, 36px);
  --hl-avatar-size: 52px;
  --hl-avatar-radius: 14px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 2px #14101f;
  --hl-made-bg: #fff;
  --hl-made-border: 2px solid #14101f;
}

/* «Журнал» — Plus, example premium theme: no cards, type-led, dividers */
[data-theme="journal"] {
  --hl-bg: #f6f3ec;
  --hl-text: #141414;
  --hl-text-muted: #57534b;
  --hl-focus: #141414;
  --hl-font-head: "Playfair Display", Georgia, serif;
  --hl-font-body: "IBM Plex Mono", ui-monospace, monospace;
  --hl-head-weight: 600;
  --hl-btn-weight: 400;
  --hl-head-tracking: -0.02em;
  --hl-gap: 20px;
  --hl-surface: transparent;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: none;
  --hl-radius-card: 0;
  --hl-radius-btn: 0;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: none;
  --hl-btn-press: translateY(1px);
  --hl-btn2-fg: #141414;
  --hl-btn2-border: 1px solid #141414;
  --hl-chip-bg: transparent;
  --hl-chip-fg: #57534b;
  --hl-social-icon: #141414;
  --hl-head-cols: auto 1fr;
  --hl-head-areas: "cover cover" "avatar sub" "name name" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-pad: 0px;
  --hl-name-size: clamp(40px, 12vw, 54px);
  --hl-avatar-size: 44px;
  --hl-avatar-radius: 0;
  --hl-avatar-bg: #141414;
  --hl-avatar-fg: #f6f3ec;
  --hl-socials-cols: 1fr;
  --hl-rule: 1px solid #141414;
}
[data-theme="journal"] .hl-header { overflow: visible; padding-bottom: 22px; border-bottom: 2px solid #141414; border-radius: 0; }
[data-theme="journal"] .hl-avatar { margin-bottom: 0; }
[data-theme="journal"] .hl-sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: 1; }
[data-theme="journal"] .hl-name { margin-top: 18px; line-height: 1.02; }
[data-theme="journal"] .hl-desc { font-size: 14px; max-width: none; margin-top: 14px; }
[data-theme="journal"] .hl-btn { text-transform: uppercase; letter-spacing: .08em; font-size: 14px; }
[data-theme="journal"] .hl-socials { counter-reset: hl-s; gap: 0; border-top: var(--hl-rule); }
[data-theme="journal"] .hl-header + .hl-socials { border-top: 0; }
[data-theme="journal"] .hl-social { counter-increment: hl-s; background: transparent; border: 0; border-bottom: 1px solid rgba(20,20,20,.2); border-radius: 0; padding: 12px 0; gap: 14px; }
[data-theme="journal"] .hl-social::before { content: counter(hl-s, decimal-leading-zero); font-size: 12px; color: var(--hl-text-muted); width: 22px; }
[data-theme="journal"] .hl-social::after { content: "→"; }
[data-theme="journal"] .hl-social i { display: none; }
[data-theme="journal"] .hl-social span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
[data-theme="journal"] .hl-social b { font: 600 19px/1.2 var(--hl-font-head); }
[data-theme="journal"] .hl-social small { font-size: 12.5px; }
[data-theme="journal"] .hl-social:hover, [data-theme="journal"] .hl-social.is-hover { background: transparent; }
[data-theme="journal"] .hl-social:hover b, [data-theme="journal"] .hl-social.is-hover b { text-decoration: underline; text-underline-offset: 4px; }
[data-theme="journal"] .hl-link { background: transparent; border: 0; border-bottom: 1px solid rgba(20,20,20,.2); border-radius: 0; padding: 12px 0; font: 600 17px/1.3 var(--hl-font-head); }
[data-theme="journal"] .hl-card { padding: 18px 0 0; border-top: var(--hl-rule); }
[data-theme="journal"] .hl-card h2 { font-size: 28px; }
[data-theme="journal"] .hl-badge { padding: 0; font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="journal"] .hl-price { font-size: 36px; color: var(--hl-accent-ink); }
[data-theme="journal"] .hl-made { font-size: 12px; }

/* «Открытка» — Plus: бумажные карточки, полароид, скотч */
[data-theme="postcard"] {
  --hl-bg: #ece3d4;
  --hl-bg-image: radial-gradient(circle at 30% 40%, rgba(120,80,40,.10) 1px, transparent 1.5px), radial-gradient(circle at 70% 80%, rgba(120,80,40,.08) 1px, transparent 1.5px);
  --hl-text: #2b2420;
  --hl-text-muted: #5f544b;
  --hl-focus: #2b2420;
  --hl-font-head: "Caveat", cursive;
  --hl-font-body: "Nunito", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: 0;
  --hl-gap: 18px;
  --hl-surface: #fffdf8;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: 0 1px 1px rgba(60,40,20,.12), 0 10px 18px -10px rgba(60,40,20,.45);
  --hl-radius-card: 3px;
  --hl-radius-btn: 6px;
  --hl-btn-shadow: 0 8px 14px -8px rgba(60,40,20,.6);
  --hl-btn-shadow-hover: 0 12px 18px -8px rgba(60,40,20,.6);
  --hl-btn2-bg: #fffdf8;
  --hl-btn2-border: 1.5px solid #2b2420;
  --hl-btn2-fg: #2b2420;
  --hl-chip-bg: #f3e6c8;
  --hl-chip-fg: #5a3d12;
  --hl-name-size: clamp(40px, 12vw, 50px);
  --hl-avatar-size: 104px;
  --hl-avatar-radius: 2px;
  --hl-avatar-bg: color-mix(in srgb, var(--hl-accent) 18%, #fffdf8);
  --hl-avatar-ring: 0 0 0 6px #fffdf8, 0 14px 0 6px #fffdf8, 0 18px 22px 2px rgba(60,40,20,.35);
  --hl-made-bg: #fffdf8;
}
[data-theme="postcard"] .hl-page { background-size: 22px 22px, 31px 31px; }
[data-theme="postcard"] .hl-avatar { transform: rotate(-3deg); margin-bottom: 26px; }
[data-theme="postcard"] .hl-name { line-height: 1; }
[data-theme="postcard"] .hl-btn { font-size: 22px; line-height: 1; }
[data-theme="postcard"] .hl-btn--main { position: relative; transform: rotate(-.6deg); font-size: 24px; }
[data-theme="postcard"] .hl-btn--main::before { content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px; transform: translateX(-50%) rotate(2deg); background: rgba(255,246,214,.75); box-shadow: 0 1px 2px rgba(0,0,0,.1); }
[data-theme="postcard"] .hl-btn--main:active { transform: rotate(-.6deg) translateY(1px); }
[data-theme="postcard"] .hl-social:nth-child(odd) { transform: rotate(-.8deg); }
[data-theme="postcard"] .hl-social:nth-child(even) { transform: rotate(.8deg); }
[data-theme="postcard"] .hl-card { transform: rotate(.7deg); padding: 22px; }
[data-theme="postcard"] .hl-card ~ .hl-card { transform: rotate(-.9deg); }
[data-theme="postcard"] .hl-card h2 { font-size: 32px; line-height: 1; }
[data-theme="postcard"] .hl-price { font-size: 40px; }

/* «Терминал» — Plus: консоль, акцент = подсветка */
[data-theme="terminal"] {
  --hl-bg: #0b0f0c;
  --hl-bg-image: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
  --hl-text: #dbe6dd;
  --hl-text-muted: #8fa594;
  --hl-focus: var(--hl-accent-ink);
  --hl-font-head: "JetBrains Mono", ui-monospace, monospace;
  --hl-font-body: "JetBrains Mono", ui-monospace, monospace;
  --hl-head-weight: 700;
  --hl-btn-weight: 700;
  --hl-head-tracking: -0.02em;
  --hl-gap: 12px;
  --hl-surface: transparent;
  --hl-surface-border: 1px solid #223027;
  --hl-surface-shadow: none;
  --hl-radius-card: 0;
  --hl-radius-btn: 0;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 0 0 4px color-mix(in srgb, var(--hl-accent) 22%, transparent);
  --hl-btn-press: translateY(1px);
  --hl-btn2-border: 1px solid var(--hl-accent-ink);
  --hl-chip-bg: color-mix(in srgb, var(--hl-accent) 16%, transparent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-pad: 0px;
  --hl-name-size: clamp(24px, 7.4vw, 30px);
  --hl-avatar-size: 48px;
  --hl-avatar-radius: 0;
  --hl-avatar-bg: transparent;
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: inset 0 0 0 1px var(--hl-accent-ink);
  --hl-socials-cols: 1fr;
  --hl-made-border: 1px solid #223027;
}
[data-theme="terminal"] .hl-header { overflow: visible; padding-bottom: 6px; }
[data-theme="terminal"] .hl-name::before { content: "> "; color: var(--hl-accent-ink); }
[data-theme="terminal"] .hl-sub { font-size: 13px; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="terminal"] .hl-sub::before { content: "// "; }
[data-theme="terminal"] .hl-desc { font-size: 13.5px; max-width: none; }
[data-theme="terminal"] .hl-btn { font-size: 14px; justify-content: flex-start; }
[data-theme="terminal"] .hl-btn--main { font-size: 15px; }
[data-theme="terminal"] .hl-btn--main::before { content: ">"; }
[data-theme="terminal"] .hl-btn--main::after { content: ""; width: .6em; height: 1.1em; background: currentColor; animation: hl-caret 1s steps(1) infinite; }
@keyframes hl-caret { 50% { opacity: 0; } }
[data-theme="terminal"] .hl-socials { gap: 0; }
[data-theme="terminal"] .hl-social { border: 0; border-bottom: 1px dashed #223027; min-height: 46px; padding: 8px 0; gap: 10px; }
[data-theme="terminal"] .hl-social::before { content: "$ open"; color: var(--hl-text-muted); font-size: 13px; flex: none; }
[data-theme="terminal"] .hl-social i { display: none; }
[data-theme="terminal"] .hl-social span { flex: 1; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
[data-theme="terminal"] .hl-social b { font-size: 14px; text-transform: lowercase; color: var(--hl-accent-ink); }
[data-theme="terminal"] .hl-social:hover, [data-theme="terminal"] .hl-social.is-hover { background: color-mix(in srgb, var(--hl-accent) 10%, transparent); }
[data-theme="terminal"] .hl-link { font-size: 14px; }
[data-theme="terminal"] .hl-card h2 { font-size: 18px; }
[data-theme="terminal"] .hl-card p { font-size: 13.5px; }
[data-theme="terminal"] .hl-badge { border-radius: 0; font-size: 12px; }
[data-theme="terminal"] .hl-badge::before { content: "#"; }

/* «Витрина» — Plus: продукт — герой, остальное тихо */
[data-theme="showcase"] {
  --hl-bg: #fafaf7;
  --hl-text: #141416;
  --hl-text-muted: #56565e;
  --hl-focus: #141416;
  --hl-font-head: "Manrope", system-ui, sans-serif;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-head-tracking: -0.03em;
  --hl-gap: 14px;
  --hl-surface: #ffffff;
  --hl-surface-border: 1px solid #ecece6;
  --hl-radius-card: 24px;
  --hl-radius-btn: 999px;
  --hl-btn2-border: 1.5px solid #dcdcd6;
  --hl-btn2-fg: #141416;
  --hl-head-cols: auto 1fr;
  --hl-head-areas: "cover cover" "avatar name" "avatar sub" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-pad: 0px;
  --hl-name-size: 19px;
  --hl-avatar-size: 52px;
  --hl-socials-cols: repeat(auto-fit, 48px);
}
[data-theme="showcase"] .hl-header { gap: 0 12px; overflow: visible; }
[data-theme="showcase"] .hl-avatar { margin: 0; }
[data-theme="showcase"] .hl-sub { margin: 0; font-size: 13.5px; color: var(--hl-text-muted); align-self: start; }
[data-theme="showcase"] .hl-name { align-self: end; }
[data-theme="showcase"] .hl-desc { font-size: 14.5px; max-width: none; margin-top: 12px; }
[data-theme="showcase"] .hl-socials { justify-content: start; gap: 8px; }
[data-theme="showcase"] .hl-social { width: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 50%; grid-column: auto !important; }
[data-theme="showcase"] .hl-social span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[data-theme="showcase"] .hl-social i { color: var(--hl-text); font-size: 19px; }
[data-theme="showcase"] .hl-card--product { background: var(--hl-accent); color: var(--hl-on-accent); border: 0; padding: 26px 22px 22px; gap: 10px; box-shadow: 0 24px 40px -24px color-mix(in srgb, var(--hl-accent) 80%, #000); }
[data-theme="showcase"] .hl-card--product h2 { font-size: 28px; line-height: 1.08; }
[data-theme="showcase"] .hl-card--product p { color: var(--hl-on-accent); opacity: .88; }
[data-theme="showcase"] .hl-card--product .hl-badge { background: var(--hl-on-accent); color: var(--hl-accent); }
[data-theme="showcase"] .hl-card--product .hl-price { font-size: 48px; margin: 8px 0 2px; }
[data-theme="showcase"] .hl-card--product .hl-btn { background: var(--hl-on-accent); color: var(--hl-accent); min-height: 58px; font-size: 17px; }
[data-theme="showcase"] .hl-card--product .hl-btn:focus-visible, [data-theme="showcase"] .hl-card--product .hl-btn.is-focus { outline-color: var(--hl-on-accent); }

/* «Аврора» — Plus: матовое стекло на светящемся фоне */
[data-theme="aurora"] {
  --hl-bg: #0d0b1e;
  --hl-bg-image:
    radial-gradient(60% 38% at 12% 8%, color-mix(in srgb, var(--hl-accent) 75%, transparent), transparent 70%),
    radial-gradient(55% 34% at 95% 38%, rgba(255,92,170,.42), transparent 70%),
    radial-gradient(65% 40% at 25% 92%, rgba(56,189,248,.34), transparent 70%);
  --hl-text: #f4f2ff;
  --hl-text-muted: #c3bedf;
  --hl-focus: #ffffff;
  --hl-font-head: "Commissioner", system-ui, sans-serif;
  --hl-font-body: "Commissioner", system-ui, sans-serif;
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: -0.02em;
  --hl-gap: 12px;
  --hl-surface: rgba(255,255,255,.08);
  --hl-surface-border: 1px solid rgba(255,255,255,.16);
  --hl-surface-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  --hl-surface-blur: blur(18px) saturate(140%);
  --hl-radius-card: 26px;
  --hl-radius-btn: 18px;
  --hl-btn-shadow: 0 12px 34px -12px color-mix(in srgb, var(--hl-accent) 90%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  --hl-btn-shadow-hover: 0 16px 40px -10px color-mix(in srgb, var(--hl-accent) 100%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  --hl-btn2-bg: rgba(255,255,255,.08);
  --hl-btn2-fg: #ffffff;
  --hl-btn2-border: 1px solid rgba(255,255,255,.22);
  --hl-chip-bg: rgba(255,255,255,.14);
  --hl-chip-fg: #ffffff;
  --hl-social-icon: #ffffff;
  --hl-name-size: clamp(28px, 8.4vw, 34px);
  --hl-avatar-size: 92px;
  --hl-avatar-bg: rgba(255,255,255,.12);
  --hl-avatar-fg: #ffffff;
  --hl-avatar-ring: 0 0 0 2px rgba(255,255,255,.35), 0 0 0 9px rgba(255,255,255,.06), 0 14px 44px -6px color-mix(in srgb, var(--hl-accent) 75%, transparent);
  --hl-made-bg: rgba(255,255,255,.08);
  --hl-made-border: 1px solid rgba(255,255,255,.16);
}
[data-theme="aurora"] .hl-avatar { margin-bottom: 14px; }
[data-theme="aurora"] .hl-social, [data-theme="aurora"] .hl-link, [data-theme="aurora"] .hl-btn--secondary, [data-theme="aurora"] .hl-made { backdrop-filter: var(--hl-surface-blur); -webkit-backdrop-filter: var(--hl-surface-blur); }
[data-theme="aurora"] .hl-card { -webkit-backdrop-filter: var(--hl-surface-blur); }
[data-theme="aurora"] .hl-social:hover, [data-theme="aurora"] .hl-social.is-hover, [data-theme="aurora"] .hl-link:hover, [data-theme="aurora"] .hl-link.is-hover { background: rgba(255,255,255,.15); }
[data-theme="aurora"] .hl-btn--secondary:hover, [data-theme="aurora"] .hl-btn--secondary.is-hover { background: rgba(255,255,255,.16); }
[data-theme="aurora"] .hl-price { font-size: 32px; }

/* «Плакат» — Plus: швейцарский постер, шапка на акценте, жирный кондензед */
[data-theme="poster"] {
  --hl-bg: #f3f1ec;
  --hl-text: #0a0a0a;
  --hl-text-muted: #4a4843;
  --hl-focus: #0a0a0a;
  --hl-font-head: "Oswald", "Arial Narrow", sans-serif;
  --hl-font-body: "Golos Text", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 700;
  --hl-btn-weight: 600;
  --hl-head-tracking: -0.01em;
  --hl-gap: 14px;
  --hl-surface: #ffffff;
  --hl-surface-border: 3px solid #0a0a0a;
  --hl-surface-shadow: none;
  --hl-radius-card: 0;
  --hl-radius-btn: 0;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: none;
  --hl-btn-press: translateY(2px);
  --hl-btn2-bg: transparent;
  --hl-btn2-fg: #0a0a0a;
  --hl-btn2-border: 3px solid #0a0a0a;
  --hl-chip-bg: #0a0a0a;
  --hl-chip-fg: #ffffff;
  --hl-social-icon: #0a0a0a;
  --hl-head-cols: auto 1fr;
  --hl-head-areas: "cover cover" "avatar sub" "name name" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: var(--hl-accent);
  --hl-head-pad: 22px;
  --hl-name-size: clamp(50px, 15vw, 66px);
  --hl-avatar-size: 56px;
  --hl-avatar-radius: 0;
  --hl-avatar-bg: #0a0a0a;
  --hl-avatar-fg: #ffffff;
  --hl-socials-cols: 1fr;
  --hl-made-bg: #ffffff;
  --hl-made-border: 2px solid #0a0a0a;
}
[data-theme="poster"] .hl-header { color: var(--hl-on-accent); }
[data-theme="poster"] .hl-avatar { margin-bottom: 0; }
[data-theme="poster"] .hl-name { margin-top: 26px; line-height: 1.05; text-transform: uppercase; }
[data-theme="poster"] .hl-sub { color: var(--hl-on-accent); opacity: 1; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
[data-theme="poster"] .hl-desc { color: var(--hl-on-accent); max-width: none; margin-top: 14px; font-size: 15.5px; }
[data-theme="poster"] .hl-btn { text-transform: uppercase; letter-spacing: .03em; font-size: 19px; }
[data-theme="poster"] .hl-btn--primary { background: #0a0a0a; color: #ffffff; }
[data-theme="poster"] .hl-btn--primary:hover, [data-theme="poster"] .hl-btn--primary.is-hover { background: var(--hl-accent); color: var(--hl-on-accent); filter: none; box-shadow: inset 0 0 0 3px #0a0a0a; }
[data-theme="poster"] .hl-btn--main { min-height: 64px; font-size: 22px; justify-content: space-between; }
[data-theme="poster"] .hl-btn--main::after { content: "→"; font-family: var(--hl-font-body); }
[data-theme="poster"] .hl-socials { gap: 0; border-bottom: 3px solid #0a0a0a; }
[data-theme="poster"] .hl-social { background: transparent; border: 0; border-top: 3px solid #0a0a0a; border-radius: 0; box-shadow: none; padding: 10px 0; gap: 12px; }
[data-theme="poster"] .hl-social::after { content: "↗"; font-size: 20px; }
[data-theme="poster"] .hl-social span { flex: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
[data-theme="poster"] .hl-social b { font: 600 22px/1.1 var(--hl-font-head); text-transform: uppercase; }
[data-theme="poster"] .hl-social:hover, [data-theme="poster"] .hl-social.is-hover { background: color-mix(in srgb, var(--hl-accent) 16%, transparent); }
[data-theme="poster"] .hl-link { font: 600 18px/1.2 var(--hl-font-head); text-transform: uppercase; }
[data-theme="poster"] .hl-link i { color: #0a0a0a; }
[data-theme="poster"] .hl-card h2 { font-size: 32px; line-height: 1; text-transform: uppercase; }
[data-theme="poster"] .hl-badge { border-radius: 0; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; }
[data-theme="poster"] .hl-price { font-size: 52px; line-height: 1; }
[data-theme="poster"] .hl-made { border-radius: 0; }

/* «Люкс» — Plus: салоны, ювелирка, beauty. Арка, тонкие линии, капитель */
[data-theme="luxe"] {
  --hl-bg: #0f1512;
  --hl-bg-image: radial-gradient(110% 45% at 50% 0%, rgba(255,255,255,.05), transparent 70%);
  --hl-text: #efe8d8;
  --hl-text-muted: #aaa292;
  --hl-focus: #efe8d8;
  --hl-font-head: "Cormorant Garamond", Georgia, serif;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-head-weight: 500;
  --hl-btn-weight: 600;
  --hl-head-tracking: 0;
  --hl-gap: 14px;
  --hl-surface: transparent;
  --hl-surface-border: 1px solid color-mix(in srgb, var(--hl-accent) 38%, transparent);
  --hl-surface-shadow: none;
  --hl-radius-card: 0;
  --hl-radius-btn: 0;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 0 0 4px color-mix(in srgb, var(--hl-accent) 18%, transparent);
  --hl-btn-press: translateY(1px);
  --hl-btn2-fg: #efe8d8;
  --hl-btn2-border: 1px solid color-mix(in srgb, var(--hl-accent) 60%, transparent);
  --hl-chip-bg: transparent;
  --hl-chip-fg: var(--hl-accent-ink);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-name-size: clamp(40px, 12vw, 50px);
  --hl-head-areas: "cover" "avatar" "sub" "name" "desc" "orn";
  --hl-avatar-size: 88px;
  --hl-avatar-radius: 999px 999px 0 0;
  --hl-avatar-bg: color-mix(in srgb, var(--hl-accent) 20%, #0f1512);
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: 0 0 0 1px color-mix(in srgb, var(--hl-accent) 70%, transparent), 0 0 0 7px #0f1512, 0 0 0 8px color-mix(in srgb, var(--hl-accent) 30%, transparent);
  --hl-socials-cols: 1fr;
  --hl-made-border: 1px solid color-mix(in srgb, var(--hl-accent) 30%, transparent);
}
[data-theme="luxe"] .hl-header::after { content: "✦"; grid-area: orn; justify-self: center; margin-top: 6px; font-size: 13px; color: var(--hl-accent-ink); }
[data-theme="luxe"] .hl-avatar { width: 72px; margin-bottom: 12px; }
[data-theme="luxe"] .hl-name { line-height: 1; }
[data-theme="luxe"] .hl-sub { margin: 0 0 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="luxe"] .hl-desc { margin-top: 12px; }
[data-theme="luxe"] .hl-btn { text-transform: uppercase; letter-spacing: .18em; font-size: 13px; }
[data-theme="luxe"] .hl-btn--main { font-size: 13.5px; }
[data-theme="luxe"] .hl-social { justify-content: center; text-align: center; min-height: 56px; }
[data-theme="luxe"] .hl-social b { font: 600 20px/1.1 var(--hl-font-head); }
[data-theme="luxe"] .hl-social:hover, [data-theme="luxe"] .hl-social.is-hover, [data-theme="luxe"] .hl-link:hover, [data-theme="luxe"] .hl-link.is-hover { background: color-mix(in srgb, var(--hl-accent) 9%, transparent); }
[data-theme="luxe"] .hl-link { font: 600 19px/1.25 var(--hl-font-head); text-align: center; }
[data-theme="luxe"] .hl-card { align-items: center; text-align: center; padding: 28px 22px 22px; }
[data-theme="luxe"] .hl-card .hl-btn { align-self: stretch; }
[data-theme="luxe"] .hl-card--support > div { align-items: center; }
[data-theme="luxe"] .hl-card h2 { font-size: 30px; line-height: 1.05; }
[data-theme="luxe"] .hl-badge { align-self: center; padding: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
[data-theme="luxe"] .hl-price { font-size: 40px; color: var(--hl-accent-ink); }
[data-theme="luxe"] .hl-made { border-radius: 0; }

/* «Чек» — Plus: кассовая лента, точки-лидеры, штамп, штрих-код */
[data-theme="receipt"] {
  --hl-bg: #d6d2c8;
  --hl-text: #1c1c1c;
  --hl-text-muted: #4f4d48;
  --hl-focus: #1c1c1c;
  --hl-font-head: "Cousine", ui-monospace, monospace;
  --hl-font-body: "Cousine", ui-monospace, monospace;
  --hl-head-weight: 700;
  --hl-btn-weight: 700;
  --hl-head-tracking: 0;
  --hl-gap: 14px;
  --hl-surface: transparent;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: none;
  --hl-radius-card: 0;
  --hl-radius-btn: 0;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: none;
  --hl-btn-press: translateY(1px);
  --hl-btn2-fg: #1c1c1c;
  --hl-btn2-border: 2px solid #1c1c1c;
  --hl-chip-bg: transparent;
  --hl-chip-fg: var(--hl-accent-ink);
  --hl-social-icon: #1c1c1c;
  --hl-name-size: clamp(22px, 6.6vw, 26px);
  --hl-avatar-size: 56px;
  --hl-avatar-radius: 0;
  --hl-avatar-bg: transparent;
  --hl-avatar-fg: #1c1c1c;
  --hl-avatar-ring: inset 0 0 0 2px #1c1c1c;
  --hl-socials-cols: 1fr;
  --hl-made-border: 1px dashed #1c1c1c;
}
[data-theme="receipt"] .hl-col { position: relative; padding: 26px 20px 20px; background: #fffefa; filter: drop-shadow(0 10px 14px rgba(40,30,10,.18)); }
[data-theme="receipt"] .hl-col::before, [data-theme="receipt"] .hl-col::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background-size: 16px 8px; }
[data-theme="receipt"] .hl-col::before { top: -8px; background-image: conic-gradient(from 135deg at 50% 0, #fffefa 90deg, transparent 0); }
[data-theme="receipt"] .hl-col::after { bottom: -8px; background-image: conic-gradient(from -45deg at 50% 100%, #fffefa 90deg, transparent 0); }
[data-theme="receipt"] .hl-header { padding-bottom: 14px; border-bottom: 1px dashed #1c1c1c; border-radius: 0; }
[data-theme="receipt"] .hl-avatar { margin-bottom: 12px; }
[data-theme="receipt"] .hl-name { text-transform: uppercase; letter-spacing: .04em; }
[data-theme="receipt"] .hl-sub { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; opacity: 1; }
[data-theme="receipt"] .hl-desc { font-size: 13.5px; }
[data-theme="receipt"] .hl-btn { text-transform: uppercase; letter-spacing: .06em; font-size: 15px; }
[data-theme="receipt"] .hl-socials { gap: 0; padding-bottom: 10px; border-bottom: 1px dashed #1c1c1c; }
[data-theme="receipt"] .hl-social { min-height: 44px; padding: 4px 0; }
[data-theme="receipt"] .hl-social i { display: none; }
[data-theme="receipt"] .hl-social span { flex: 1; display: flex; align-items: baseline; gap: 6px; }
[data-theme="receipt"] .hl-social span::after { content: ""; order: 1; flex: 1; min-width: 12px; border-bottom: 2px dotted #1c1c1c; transform: translateY(-3px); }
[data-theme="receipt"] .hl-social b { flex: none; font-size: 14px; text-transform: uppercase; }
[data-theme="receipt"] .hl-social small { order: 2; flex: none; max-width: 55%; font-size: 13.5px; color: var(--hl-text); }
[data-theme="receipt"] .hl-social:hover, [data-theme="receipt"] .hl-social.is-hover, [data-theme="receipt"] .hl-link:hover, [data-theme="receipt"] .hl-link.is-hover { background: color-mix(in srgb, var(--hl-accent) 8%, transparent); }
[data-theme="receipt"] .hl-link { padding: 10px 0; border-bottom: 1px dashed #1c1c1c; font-size: 14px; }
[data-theme="receipt"] .hl-card { padding: 2px 0 14px; border-bottom: 1px dashed #1c1c1c; }
[data-theme="receipt"] .hl-card h2 { font-size: 17px; text-transform: uppercase; }
[data-theme="receipt"] .hl-card p { font-size: 13.5px; }
[data-theme="receipt"] .hl-badge { padding: 3px 8px; border: 2px solid var(--hl-accent-ink); border-radius: 4px; transform: rotate(-5deg); text-transform: uppercase; letter-spacing: .1em; font-size: 12px; }
[data-theme="receipt"] .hl-price { display: flex; justify-content: space-between; font-size: 22px; }
[data-theme="receipt"] .hl-price::before { content: "ИТОГО"; }
[data-theme="receipt"] .hl-card--product::after { content: ""; height: 34px; margin-top: 10px; background: repeating-linear-gradient(90deg, #1c1c1c 0 2px, transparent 2px 4px, #1c1c1c 4px 5px, transparent 5px 8px, #1c1c1c 8px 11px, transparent 11px 12px, #1c1c1c 12px 13px, transparent 13px 17px); }
[data-theme="receipt"] .hl-made { border-radius: 0; font-size: 12px; }

/* «Ретро-ОС» — Plus: окна с фаской, заголовок окна на акценте, пиксельный шрифт */
[data-theme="retro"] {
  --hl-bg: var(--hl-page-tint, #7fb7b2);
  --hl-bg-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.12) 1px, transparent 1.4px);
  --hl-text: #111111;
  --hl-text-muted: #333333;
  --hl-focus: #111111;
  --hl-font-head: "Handjet", ui-monospace, monospace;
  --hl-font-body: "Golos Text", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: 0;
  --hl-gap: 14px;
  --hl-surface: #d4d0c8;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #ffffff, inset -2px -2px #808080, inset 2px 2px #dfdfdf;
  --hl-radius-card: 0;
  --hl-radius-btn: 0;
  --hl-btn-shadow: inset -2px -2px rgba(0,0,0,.5), inset 2px 2px rgba(255,255,255,.55), 0 0 0 1px #0a0a0a;
  --hl-btn-shadow-hover: inset -2px -2px rgba(0,0,0,.5), inset 2px 2px rgba(255,255,255,.55), 0 0 0 1px #0a0a0a;
  --hl-btn-press: translate(1px, 1px);
  --hl-btn2-bg: #d4d0c8;
  --hl-btn2-fg: #111111;
  --hl-btn2-border: 0 solid transparent;
  --hl-chip-bg: #ffffff;
  --hl-chip-fg: #111111;
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-cols: auto 1fr;
  --hl-head-areas: "cover cover" "avatar name" "avatar sub" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: #d4d0c8;
  --hl-head-shadow: var(--hl-surface-shadow);
  --hl-head-pad: 16px;
  --hl-name-size: clamp(28px, 8.4vw, 33px);
  --hl-avatar-size: 64px;
  --hl-avatar-radius: 0;
  --hl-avatar-bg: #ffffff;
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: inset 1px 1px #808080, inset -1px -1px #ffffff, inset 2px 2px #0a0a0a;
  --hl-made-bg: #d4d0c8;
}
[data-theme="retro"] .hl-header, [data-theme="retro"] .hl-card { position: relative; padding-top: 38px; }
[data-theme="retro"] .hl-header::before, [data-theme="retro"] .hl-card::before { content: ""; position: absolute; top: 3px; left: 3px; right: 3px; height: 22px; background: linear-gradient(90deg, var(--hl-accent), color-mix(in srgb, var(--hl-accent), #000 35%)); }
[data-theme="retro"] .hl-header::after, [data-theme="retro"] .hl-card::after { content: "×"; position: absolute; top: 6px; right: 6px; width: 16px; height: 15px; display: grid; place-items: center; font: 700 13px/1 var(--hl-font-body); color: #111; background: #d4d0c8; box-shadow: inset -1px -1px #0a0a0a, inset 1px 1px #fff; }
[data-theme="retro"] .hl-header { gap: 2px 14px; }
[data-theme="retro"] .hl-avatar { margin: 0; }
[data-theme="retro"] .hl-name { align-self: end; line-height: 1.05; }
[data-theme="retro"] .hl-sub { align-self: start; font-size: 14px; }
[data-theme="retro"] .hl-desc { max-width: none; margin-top: 12px; font-size: 14.5px; }
[data-theme="retro"] .hl-btn { font-size: 22px; letter-spacing: .02em; }
[data-theme="retro"] .hl-btn--secondary { box-shadow: var(--hl-btn-shadow); }
[data-theme="retro"] .hl-btn--secondary:hover, [data-theme="retro"] .hl-btn--secondary.is-hover { background: #e2dfd8; }
[data-theme="retro"] .hl-btn:active, [data-theme="retro"] .hl-btn.is-active { box-shadow: inset 2px 2px rgba(0,0,0,.5), inset -2px -2px rgba(255,255,255,.4), 0 0 0 1px #0a0a0a; filter: none; }
[data-theme="retro"] .hl-social:hover, [data-theme="retro"] .hl-social.is-hover, [data-theme="retro"] .hl-link:hover, [data-theme="retro"] .hl-link.is-hover { background: #e2dfd8; }
[data-theme="retro"] .hl-social:active, [data-theme="retro"] .hl-social.is-active { box-shadow: inset 1px 1px #0a0a0a, inset -1px -1px #fff, inset 2px 2px #808080; }
[data-theme="retro"] .hl-social b { font-family: var(--hl-font-head); font-size: 20px; letter-spacing: .02em; }
[data-theme="retro"] .hl-social small { color: #333; }
[data-theme="retro"] .hl-badge { border-radius: 0; box-shadow: inset 1px 1px #808080, inset -1px -1px #fff; }
[data-theme="retro"] .hl-card h2 { font-size: 29px; }
[data-theme="retro"] .hl-card p { color: #333; }
[data-theme="retro"] .hl-price { font-size: 38px; }
[data-theme="retro"] .hl-made { border-radius: 0; box-shadow: var(--hl-surface-shadow); border: 0; }

/* «Спорт» — Plus: тренеры. Курсив, диагонали, номера как на майке, скошенные кнопки */
[data-theme="sport"] {
  --hl-bg: #121316;
  --hl-bg-image: repeating-linear-gradient(-55deg, rgba(255,255,255,.025) 0 2px, transparent 2px 14px);
  --hl-text: #f5f5f5;
  --hl-text-muted: #a9acb4;
  --hl-focus: #ffffff;
  --hl-font-head: "Russo One", system-ui, sans-serif;
  --hl-font-body: "Golos Text", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 400;
  --hl-btn-weight: 400;
  --hl-head-tracking: 0;
  --hl-gap: 12px;
  --hl-surface: #1c1d21;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: none;
  --hl-radius-card: 2px;
  --hl-radius-btn: 0;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: none;
  --hl-btn-press: translateY(1px);
  --hl-btn2-fg: #f5f5f5;
  --hl-btn2-border: 2px solid rgba(255,255,255,.28);
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-pad: 0px;
  --hl-name-size: clamp(34px, 10vw, 42px);
  --hl-avatar-size: 72px;
  --hl-avatar-radius: 0;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 4px #121316;
  --hl-avatar-overlap: -30px;
  --hl-cover-empty-display: block;
  --hl-cover-empty-bg: repeating-linear-gradient(-55deg, var(--hl-accent) 0 16px, transparent 16px 30px);
  --hl-cover-height: 64px;
  --hl-made-bg: rgba(255,255,255,.05);
  --hl-made-border: 1px solid rgba(255,255,255,.1);
}
[data-theme="sport"] .hl-header { overflow: visible; border-radius: 0; }
[data-theme="sport"] .hl-cover { margin: 0 0 6px; clip-path: polygon(0 0, 100% 0, 100% 55%, 0 100%); }
[data-theme="sport"] .hl-avatar { margin-left: 4px; font-style: italic; }
[data-theme="sport"] .hl-name { font-style: italic; text-transform: uppercase; line-height: 1; margin-top: 4px; }
[data-theme="sport"] .hl-sub { margin-top: 8px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="sport"] .hl-desc { max-width: none; font-size: 15px; }
[data-theme="sport"] .hl-btn { font-style: italic; text-transform: uppercase; font-size: 17px; letter-spacing: .02em; }
[data-theme="sport"] .hl-btn--primary { position: relative; isolation: isolate; background: transparent; }
[data-theme="sport"] .hl-btn--primary::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hl-accent); transform: skewX(-12deg); }
[data-theme="sport"] .hl-btn--main { min-height: 62px; justify-content: space-between; font-size: 19px; }
[data-theme="sport"] .hl-btn--main::after { content: "»"; font-size: 26px; line-height: 1; }
[data-theme="sport"] .hl-btn--primary:hover, [data-theme="sport"] .hl-btn--primary.is-hover { filter: brightness(1.08); }
[data-theme="sport"] .hl-socials { counter-reset: hl-s; }
[data-theme="sport"] .hl-social { counter-increment: hl-s; position: relative; overflow: hidden; }
[data-theme="sport"] .hl-social::after { content: counter(hl-s, decimal-leading-zero); position: absolute; right: 6px; bottom: -10px; font: italic 400 44px/1 var(--hl-font-head); color: rgba(255,255,255,.07); pointer-events: none; }
[data-theme="sport"] .hl-social b { font: italic 400 15px/1.2 var(--hl-font-head); text-transform: uppercase; }
[data-theme="sport"] .hl-social:hover, [data-theme="sport"] .hl-social.is-hover, [data-theme="sport"] .hl-link:hover, [data-theme="sport"] .hl-link.is-hover { background: #26272c; }
[data-theme="sport"] .hl-card h2 { font-size: 24px; font-style: italic; text-transform: uppercase; line-height: 1.05; }
[data-theme="sport"] .hl-badge { border-radius: 0; font-style: italic; text-transform: uppercase; letter-spacing: .06em; }
[data-theme="sport"] .hl-price { font-size: 44px; font-style: italic; color: var(--hl-accent-ink); font-variant-numeric: tabular-nums; }
[data-theme="sport"] .hl-card .hl-btn { margin-left: 6px; margin-right: 6px; width: calc(100% - 12px); }

/* «Гербарий» — Plus: флористы, эко, травники, садовые студии.
   Шапка — этикетка гербария в двойной рамке с папоротником, соцсети — нумерованные образцы на листе со скотчем */
[data-theme="garden"] {
  --hl-bg: #e9e2cf;
  --hl-bg-image: radial-gradient(120% 60% at 50% 0%, rgba(255,255,255,.45), transparent 60%), radial-gradient(circle at 1px 1px, rgba(90,70,30,.08) 1px, transparent 1.5px);
  --hl-text: #262a1f;
  --hl-text-muted: #5a5b4c;
  --hl-focus: #262a1f;
  --hl-font-head: "Lora", Georgia, serif;
  --hl-font-body: "Nunito", system-ui, sans-serif;
  --hl-head-weight: 500;
  --hl-btn-weight: 700;
  --hl-head-tracking: 0;
  --hl-gap: 18px;
  --hl-surface: #fbf8ef;
  --hl-surface-border: 1px solid #cfc5ab;
  --hl-surface-shadow: 0 10px 18px -14px rgba(70,55,20,.45);
  --hl-radius-card: 2px;
  --hl-radius-btn: 2px;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 8px 16px -10px rgba(40,40,20,.6);
  --hl-btn-press: translateY(1px);
  --hl-btn2-fg: #262a1f;
  --hl-btn2-border: 1px solid #262a1f;
  --hl-chip-bg: transparent;
  --hl-chip-fg: var(--hl-accent-ink);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-cols: auto minmax(0, 1fr);
  --hl-head-areas: "lbl lbl" "cover cover" "avatar name" "avatar sub" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: #fbf8ef;
  --hl-head-border: 1px solid #cfc5ab;
  --hl-head-shadow: inset 0 0 0 5px #fbf8ef, inset 0 0 0 6px #d9cfb6, 0 10px 18px -14px rgba(70,55,20,.45);
  --hl-head-pad: 22px;
  --hl-name-size: clamp(26px, 7.6vw, 30px);
  --hl-avatar-size: 64px;
  --hl-avatar-bg: color-mix(in srgb, var(--hl-accent) 14%, #fbf8ef);
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: 0 0 0 4px #fbf8ef;
  --hl-socials-cols: 1fr;
  --hl-made-bg: #fbf8ef;
  --hl-made-border: 1px solid #cfc5ab;
}
[data-theme="garden"] .hl-header { position: relative; isolation: isolate; column-gap: 16px; row-gap: 2px; margin-top: 6px; }
[data-theme="garden"] .hl-header::before { content: "Herbarium · гербарий"; grid-area: lbl; justify-self: stretch; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid #d9cfb6; font: italic 500 13px/1.3 var(--hl-font-head); letter-spacing: .08em; color: var(--hl-accent-ink); }
/* папоротник: стебель + листочки радиальными градиентами, цвет — акцент */
[data-theme="garden"] .hl-header::after {
  content: ""; position: absolute; z-index: -1; top: 4px; right: 8px; width: 80px; height: 140px; pointer-events: none;
  color: var(--hl-accent); opacity: .42; transform: rotate(18deg);
  background:
    radial-gradient(3px 6px at 40px 6px, currentColor 96%, transparent),
    radial-gradient(6px 3px at 33px 16px, currentColor 96%, transparent), radial-gradient(6px 3px at 47px 21px, currentColor 96%, transparent),
    radial-gradient(9px 4px at 30px 30px, currentColor 96%, transparent), radial-gradient(9px 4px at 50px 37px, currentColor 96%, transparent),
    radial-gradient(12px 5px at 27px 48px, currentColor 96%, transparent), radial-gradient(12px 5px at 53px 56px, currentColor 96%, transparent),
    radial-gradient(14px 5.5px at 25px 68px, currentColor 96%, transparent), radial-gradient(14px 5.5px at 55px 77px, currentColor 96%, transparent),
    radial-gradient(15px 6px at 24px 90px, currentColor 96%, transparent), radial-gradient(15px 6px at 56px 99px, currentColor 96%, transparent),
    radial-gradient(14px 5.5px at 25px 112px, currentColor 96%, transparent), radial-gradient(14px 5.5px at 55px 121px, currentColor 96%, transparent),
    linear-gradient(90deg, transparent 39px, currentColor 39px 40.5px, transparent 40.5px);
}
[data-theme="garden"] .hl-cover { margin: 0 0 14px; }
[data-theme="garden"] .hl-avatar { margin: 0; font-style: italic; outline: 1px dashed var(--hl-accent-ink); outline-offset: 4px; }
[data-theme="garden"] .hl-cover--img ~ .hl-avatar { margin-top: 0; }
[data-theme="garden"] .hl-name { align-self: end; font-style: italic; line-height: 1.05; }
[data-theme="garden"] .hl-sub { align-self: start; margin-top: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--hl-text-muted); opacity: 1; }
[data-theme="garden"] .hl-desc { max-width: none; margin-top: 14px; line-height: 28px; background: repeating-linear-gradient(transparent 0 27px, #e2d9c1 27px 28px); }
[data-theme="garden"] .hl-btn { text-transform: uppercase; letter-spacing: .12em; font-size: 13.5px; }
[data-theme="garden"] .hl-btn--main { font-size: 14.5px; }
/* соцсети — лист с образцами №01…, приклеен скотчем */
[data-theme="garden"] .hl-socials { position: relative; counter-reset: hl-s; gap: 0; padding: 6px 0; background: #fbf8ef; border: 1px solid #cfc5ab; border-radius: 2px; box-shadow: var(--hl-surface-shadow); }
[data-theme="garden"] .hl-socials::before { content: ""; position: absolute; top: -11px; left: 50%; width: 86px; height: 20px; margin-left: -43px; background: rgba(214,200,160,.62); box-shadow: 0 1px 2px rgba(0,0,0,.08); transform: rotate(-2deg); }
[data-theme="garden"] .hl-social { counter-increment: hl-s; min-height: 54px; padding: 8px 18px; gap: 12px; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
[data-theme="garden"] .hl-social + .hl-social { border-top: 1px solid #e6ddc6; }
[data-theme="garden"] .hl-social::before { content: "№ " counter(hl-s, decimal-leading-zero); flex: none; width: 34px; font: italic 500 13px/1 var(--hl-font-head); color: var(--hl-text-muted); }
[data-theme="garden"] .hl-social i { font-size: 16px; }
[data-theme="garden"] .hl-social span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex: 1; }
[data-theme="garden"] .hl-social b { font: italic 500 18px/1.2 var(--hl-font-head); }
[data-theme="garden"] .hl-social small { font-size: 13px; }
[data-theme="garden"] .hl-link { font: italic 500 17px/1.3 var(--hl-font-head); }
/* продукт — образец на листе, два куска скотча по углам */
[data-theme="garden"] .hl-card--product { position: relative; padding: 28px 24px 24px; }
[data-theme="garden"] .hl-card--product::before, [data-theme="garden"] .hl-card--product::after { content: ""; position: absolute; top: 4px; width: 70px; height: 20px; background: rgba(214,200,160,.62); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
[data-theme="garden"] .hl-card--product::before { left: -20px; transform: rotate(-35deg); }
[data-theme="garden"] .hl-card--product::after { right: -20px; transform: rotate(35deg); }
[data-theme="garden"] .hl-badge { border: 1px solid currentColor; border-radius: 0; padding: 3px 10px; font: italic 500 13px/1.3 var(--hl-font-head); }
[data-theme="garden"] .hl-card h2 { font-size: 26px; font-style: italic; line-height: 1.1; }
[data-theme="garden"] .hl-price { color: var(--hl-accent-ink); font-size: 30px; font-style: italic; }
[data-theme="garden"] .hl-made { border-radius: 2px; }

/* «Неон» — Plus: музыканты, диджеи, ивенты, ночная жизнь. Свечение акцентом на тёмной сетке */
[data-theme="neon"] {
  --hl-bg: #0a0814;
  --hl-bg-image: radial-gradient(90% 40% at 50% 100%, color-mix(in srgb, var(--hl-accent) 22%, transparent), transparent 70%), repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px), repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 28px);
  --hl-text: #f4f1ff;
  --hl-text-muted: #aba5c6;
  --hl-focus: #ffffff;
  --hl-font-head: "Unbounded", system-ui, sans-serif;
  --hl-font-body: "Onest", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: -0.01em;
  --hl-gap: 12px;
  --hl-surface: #120f1f;
  --hl-surface-border: 1px solid color-mix(in srgb, var(--hl-accent) 45%, transparent);
  --hl-surface-shadow: 0 0 22px -8px color-mix(in srgb, var(--hl-accent) 60%, transparent), inset 0 0 22px -14px color-mix(in srgb, var(--hl-accent) 80%, transparent);
  --hl-radius-card: 18px;
  --hl-radius-btn: 999px;
  --hl-btn-shadow: 0 0 0 1px color-mix(in srgb, var(--hl-accent), #fff 35%), 0 0 22px -2px color-mix(in srgb, var(--hl-accent) 75%, transparent);
  --hl-btn-shadow-hover: 0 0 0 1px color-mix(in srgb, var(--hl-accent), #fff 50%), 0 0 34px 2px color-mix(in srgb, var(--hl-accent) 80%, transparent);
  --hl-btn2-border: 1.5px solid var(--hl-accent);
  --hl-chip-bg: transparent;
  --hl-chip-fg: var(--hl-accent-ink);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-name-size: clamp(24px, 7.4vw, 30px);
  --hl-avatar-size: 92px;
  --hl-avatar-bg: #120f1f;
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: 0 0 0 2px var(--hl-accent), 0 0 26px 2px color-mix(in srgb, var(--hl-accent) 60%, transparent), inset 0 0 18px -4px color-mix(in srgb, var(--hl-accent) 70%, transparent);
  --hl-made-bg: rgba(255,255,255,.04);
  --hl-made-border: 1px solid rgba(255,255,255,.12);
}
[data-theme="neon"] .hl-avatar { margin-bottom: 16px; }
[data-theme="neon"] .hl-name { text-transform: uppercase; text-shadow: 0 0 18px color-mix(in srgb, var(--hl-accent) 75%, transparent); }
[data-theme="neon"] .hl-sub { margin-top: 6px; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="neon"] .hl-btn { text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
[data-theme="neon"] .hl-btn--main { font-size: 15px; }
[data-theme="neon"] .hl-btn--secondary:hover, [data-theme="neon"] .hl-btn--secondary.is-hover { background: color-mix(in srgb, var(--hl-accent) 14%, transparent); box-shadow: 0 0 22px -4px color-mix(in srgb, var(--hl-accent) 70%, transparent); }
[data-theme="neon"] .hl-social:hover, [data-theme="neon"] .hl-social.is-hover, [data-theme="neon"] .hl-link:hover, [data-theme="neon"] .hl-link.is-hover { background: color-mix(in srgb, var(--hl-surface), var(--hl-accent) 14%); box-shadow: 0 0 28px -6px color-mix(in srgb, var(--hl-accent) 80%, transparent); }
[data-theme="neon"] .hl-social i { filter: drop-shadow(0 0 6px color-mix(in srgb, var(--hl-accent) 70%, transparent)); }
[data-theme="neon"] .hl-badge { border: 1px solid currentColor; text-transform: uppercase; letter-spacing: .1em; font-size: 11px; }
[data-theme="neon"] .hl-card h2 { font-size: 19px; text-transform: uppercase; }
[data-theme="neon"] .hl-price { font-size: 30px; color: var(--hl-accent-ink); text-shadow: 0 0 16px color-mix(in srgb, var(--hl-accent) 70%, transparent); }

/* «Тетрадь» — Plus: репетиторы, онлайн-школы, учителя. Клетка, поля, маркер, стикер */
[data-theme="notebook"] {
  --hl-bg: #fdfdf8;
  --hl-bg-image: repeating-linear-gradient(0deg, #d5e2ef 0 1px, transparent 1px 22px), repeating-linear-gradient(90deg, #d5e2ef 0 1px, transparent 1px 22px);
  --hl-text: #1f2a44;
  --hl-text-muted: #4c5570;
  --hl-focus: #1f2a44;
  --hl-font-head: "Neucha", "Comic Sans MS", cursive;
  --hl-font-body: "Nunito", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-body);
  --hl-head-weight: 400;
  --hl-btn-weight: 700;
  --hl-head-tracking: 0;
  --hl-gap: 14px;
  --hl-surface: #ffffff;
  --hl-surface-border: 2px solid #1f2a44;
  --hl-surface-shadow: 3px 3px 0 color-mix(in srgb, var(--hl-accent) 30%, transparent);
  --hl-radius-card: 14px 4px 16px 6px;
  --hl-radius-btn: 255px 14px 225px 14px / 14px 225px 14px 255px;
  --hl-btn-border: 2px solid #1f2a44;
  --hl-btn-shadow: 3px 3px 0 #1f2a44;
  --hl-btn-shadow-hover: 4px 5px 0 #1f2a44;
  --hl-btn-press: translate(2px, 2px);
  --hl-btn2-bg: #ffffff;
  --hl-btn2-fg: #1f2a44;
  --hl-btn2-border: 2px dashed #1f2a44;
  --hl-chip-bg: #ffe14d;
  --hl-chip-fg: #1f2a44;
  --hl-name-size: clamp(36px, 10.5vw, 44px);
  --hl-avatar-size: 84px;
  --hl-avatar-bg: #ffffff;
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: 0 0 0 2px #1f2a44, 4px 4px 0 2px color-mix(in srgb, var(--hl-accent) 30%, transparent);
  --hl-socials-cols: 1fr;
  --hl-made-bg: #ffffff;
  --hl-made-border: 1.5px solid #1f2a44;
}
[data-theme="notebook"] .hl-col { position: relative; padding-left: 18px; }
[data-theme="notebook"] .hl-col::before { content: ""; position: absolute; left: 2px; top: -24px; bottom: -28px; width: 2px; background: #ef8f8f; }
[data-theme="notebook"] .hl-name { line-height: 1.05; text-decoration: underline; text-decoration-color: color-mix(in srgb, #ffe14d 85%, transparent); text-decoration-thickness: .38em; text-underline-offset: -.18em; text-decoration-skip-ink: none; }
[data-theme="notebook"] .hl-sub { margin-top: 8px; font-weight: 700; opacity: 1; }
[data-theme="notebook"] .hl-btn:active, [data-theme="notebook"] .hl-btn.is-active { box-shadow: 1px 1px 0 #1f2a44; }
[data-theme="notebook"] .hl-btn--main { font: 400 22px/1.2 var(--hl-font-head); }
[data-theme="notebook"] .hl-social { border-radius: 255px 12px 225px 12px / 12px 225px 12px 255px; box-shadow: none; border-width: 1.5px; }
[data-theme="notebook"] .hl-social b { font: 400 19px/1.1 var(--hl-font-head); }
[data-theme="notebook"] .hl-social span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex: 1; }
[data-theme="notebook"] .hl-social small { font-size: 13.5px; }
[data-theme="notebook"] .hl-link { border-style: dashed; box-shadow: none; }
[data-theme="notebook"] .hl-card h2 { font-size: 27px; line-height: 1.1; }
[data-theme="notebook"] .hl-badge { border-radius: 3px; transform: rotate(-2deg); }
[data-theme="notebook"] .hl-price { font-size: 32px; color: var(--hl-accent-ink); text-decoration: underline double #ef8f8f; text-underline-offset: 6px; }
[data-theme="notebook"] .hl-card--product { position: relative; margin-top: 10px; background: #fff6b8; border: 0; border-radius: 2px; box-shadow: 0 14px 18px -14px rgba(40,40,10,.45); transform: rotate(-1deg); }
[data-theme="notebook"] .hl-card--product::before { content: ""; position: absolute; top: -11px; left: 50%; width: 92px; height: 22px; margin-left: -46px; background: rgba(255,255,255,.6); border: 1px solid rgba(31,42,68,.12); transform: rotate(3deg); }
[data-theme="notebook"] .hl-made { border-radius: 255px 10px 225px 10px / 10px 225px 10px 255px; }

/* «Билет» — Plus: путешествия, гиды, туры, события. Посадочный талон, перфорация, вырезы */
[data-theme="ticket"] {
  --hl-bg: #e9e1cf;
  --hl-bg-image: radial-gradient(circle at 1px 1px, rgba(60,45,20,.16) 1px, transparent 1.5px);
  --hl-text: #1d2a30;
  --hl-text-muted: #52606a;
  --hl-focus: #1d2a30;
  --hl-font-head: "Roboto Condensed", "Arial Narrow", sans-serif;
  --hl-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 700;
  --hl-btn-weight: 700;
  --hl-head-tracking: 0;
  --hl-gap: 12px;
  --hl-surface: #fffaf0;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: 0 1px 0 rgba(60,45,20,.12);
  --hl-radius-card: 12px;
  --hl-radius-btn: 10px;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 8px 16px -10px rgba(60,45,20,.6);
  --hl-btn2-fg: #1d2a30;
  --hl-btn2-border: 2px solid #1d2a30;
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: #1d2a30;
  --hl-head-cols: auto minmax(0, 1fr);
  --hl-head-areas: "lbl lbl" "cover cover" "avatar name" "avatar sub" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: #fffaf0;
  --hl-head-pad: 18px;
  --hl-name-size: clamp(24px, 7vw, 28px);
  --hl-avatar-size: 64px;
  --hl-avatar-radius: 12px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-socials-cols: 1fr;
  --hl-made-bg: #fffaf0;
  --hl-made-border: 1px dashed #b9ad92;
}
[data-theme="ticket"] .hl-page, [data-theme="ticket"].hl-page { background-size: 16px 16px; }
[data-theme="ticket"] .hl-header { position: relative; row-gap: 2px; }
[data-theme="ticket"] .hl-header::before { content: "ПОСАДОЧНЫЙ ТАЛОН · BOARDING PASS"; grid-area: lbl; justify-self: stretch; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 1.5px dashed #b9ad92; font: 400 11px/16px "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .12em; color: var(--hl-text-muted); }
[data-theme="ticket"] .hl-header::after, [data-theme="ticket"] .hl-card--product::after { content: ""; position: absolute; left: 0; right: 0; top: 35px; height: 18px; pointer-events: none; background: radial-gradient(circle 9px at 0 50%, var(--hl-bg) 98%, transparent), radial-gradient(circle 9px at 100% 50%, var(--hl-bg) 98%, transparent); }
[data-theme="ticket"] .hl-cover { margin: 0 -18px 10px; }
[data-theme="ticket"] .hl-avatar { margin: 0; align-self: center; font-size: 26px; }
[data-theme="ticket"] .hl-cover--img ~ .hl-avatar { margin-top: 0; }
[data-theme="ticket"] .hl-name { text-transform: uppercase; align-self: end; line-height: 1.05; }
[data-theme="ticket"] .hl-sub { align-self: start; margin: 0; font-size: 14px; opacity: 1; color: var(--hl-text-muted); }
[data-theme="ticket"] .hl-desc { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e6dcc6; max-width: none; }
[data-theme="ticket"] .hl-btn { text-transform: uppercase; letter-spacing: .05em; }
[data-theme="ticket"] .hl-btn--main { font-size: 18px; justify-content: space-between; }
[data-theme="ticket"] .hl-btn--main::after { content: "\f072"; font: 900 18px/1 "Font Awesome 6 Free"; }
[data-theme="ticket"] .hl-social { position: relative; min-height: 56px; padding-left: 16px; gap: 14px; }
[data-theme="ticket"] .hl-social::after { content: ""; position: absolute; left: -7px; right: -7px; top: 50%; height: 14px; margin-top: -7px; pointer-events: none; background: radial-gradient(circle 7px at 0 50%, var(--hl-bg) 98%, transparent), radial-gradient(circle 7px at 100% 50%, var(--hl-bg) 98%, transparent); }
[data-theme="ticket"] .hl-social i { width: 34px; padding-right: 12px; border-right: 1.5px dashed #b9ad92; }
[data-theme="ticket"] .hl-social span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex: 1; padding-right: 6px; }
[data-theme="ticket"] .hl-social b { font: 700 16px/1.2 var(--hl-font-head); text-transform: uppercase; letter-spacing: .03em; }
[data-theme="ticket"] .hl-social small { font: 400 13px/1.3 "IBM Plex Mono", ui-monospace, monospace; }
[data-theme="ticket"] .hl-card--product { position: relative; padding-top: 16px; background: linear-gradient(90deg, #b9ad92 55%, transparent 0) 0 43px / 12px 1.5px repeat-x, var(--hl-surface); }
[data-theme="ticket"] .hl-card--product h2 { margin-top: 18px; }
[data-theme="ticket"] .hl-card h2 { font-size: 24px; text-transform: uppercase; line-height: 1.05; }
[data-theme="ticket"] .hl-badge { border-radius: 4px; text-transform: uppercase; letter-spacing: .1em; font: 400 11.5px/1.5 "IBM Plex Mono", ui-monospace, monospace; }
[data-theme="ticket"] .hl-price { font: 400 28px/1.1 "IBM Plex Mono", ui-monospace, monospace; }
[data-theme="ticket"] .hl-made { border-radius: 10px; }

/* «Дзен» — Plus: психологи, йога, медитации. Сад камней: песок расчёсан граблями,
   аватар — камень, вокруг него круги; соцсети — ширма сёдзи (бумага в деревянной решётке) */
[data-theme="calm"] {
  --hl-bg: #ebe4d6;
  --hl-bg-image: repeating-linear-gradient(0deg, transparent 0 11px, rgba(110,92,60,.15) 11px 12.5px);
  --hl-text: #2b2a26;
  --hl-text-muted: #5b5850;
  --hl-focus: #2b2a26;
  --hl-font-head: "Prata", Georgia, serif;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-head-weight: 400;
  --hl-btn-weight: 600;
  --hl-head-tracking: .01em;
  --hl-gap: 16px;
  --hl-surface: #faf7f0;
  --hl-surface-border: 1px solid rgba(110,92,60,.2);
  --hl-surface-shadow: 0 12px 24px -20px rgba(60,48,25,.55);
  --hl-radius-card: 3px;
  --hl-radius-btn: 3px;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 10px 22px -14px rgba(40,35,25,.75);
  --hl-btn-press: translateY(1px);
  --hl-btn2-fg: #2b2a26;
  --hl-btn2-border: 1px solid rgba(43,42,38,.55);
  --hl-chip-bg: transparent;
  --hl-chip-fg: var(--hl-accent-ink);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-name-size: clamp(30px, 9vw, 36px);
  --hl-avatar-size: 96px;
  --hl-avatar-radius: 58% 42% 52% 48% / 52% 58% 42% 48%;
  --hl-avatar-bg: radial-gradient(circle at 35% 30%, #8a847a, #4f4b44 70%);
  --hl-avatar-fg: #f4efe4;
  --hl-avatar-ring: 0 14px 18px -8px rgba(40,32,18,.55);
  --hl-made-bg: #faf7f0;
  --hl-made-border: 1px solid rgba(110,92,60,.2);
}
[data-theme="calm"] .hl-page, [data-theme="calm"].hl-page { overflow-x: clip; }
[data-theme="calm"] .hl-col { position: relative; isolation: isolate; }
/* второй камень с кругами — справа внизу, за блоками */
[data-theme="calm"] .hl-col::after { content: ""; position: absolute; z-index: -1; right: -100px; bottom: 60px; width: 200px; height: 200px; border-radius: 50%; pointer-events: none; background: radial-gradient(30px 22px at 50% 50%, #6a655c, #4c4840 92%, transparent 100%), repeating-radial-gradient(circle, transparent 0 11px, rgba(110,92,60,.2) 11px 12.5px), var(--hl-bg); }
[data-theme="calm"] .hl-header { isolation: isolate; overflow: visible; padding-top: 44px; }
[data-theme="calm"] .hl-avatar { margin: 0 0 44px; }
[data-theme="calm"] .hl-avatar::before { content: ""; position: absolute; inset: -150px; z-index: -1; border-radius: 50%; pointer-events: none; background: repeating-radial-gradient(circle, transparent 0 11px, rgba(110,92,60,.22) 11px 12.5px), var(--hl-bg); }
[data-theme="calm"] .hl-name { line-height: 1.15; }
[data-theme="calm"] .hl-sub { margin-top: 10px; font-size: 11.5px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--hl-text-muted); opacity: 1; }
[data-theme="calm"] .hl-desc { max-width: 30ch; line-height: 1.65; margin-top: 12px; }
[data-theme="calm"] .hl-btn { text-transform: uppercase; letter-spacing: .16em; font-size: 13px; }
[data-theme="calm"] .hl-btn--main { min-height: 60px; font-size: 13.5px; }
[data-theme="calm"] .hl-socials { gap: 3px; padding: 3px; background: #5b4a36; border-radius: 2px; box-shadow: var(--hl-surface-shadow); }
[data-theme="calm"] .hl-social { flex-direction: column; justify-content: center; text-align: center; gap: 6px; min-height: 88px; border: 0; border-radius: 0; box-shadow: none; }
[data-theme="calm"] .hl-social b { font: 400 16px/1.2 var(--hl-font-head); }
[data-theme="calm"] .hl-social span { max-width: 100%; }
[data-theme="calm"] .hl-card { align-items: center; text-align: center; padding: 34px 24px 24px; }
[data-theme="calm"] .hl-card .hl-btn { align-self: stretch; }
[data-theme="calm"] .hl-card--support > div { align-items: center; }
/* галька над карточкой продукта */
[data-theme="calm"] .hl-card--product { position: relative; margin-top: 10px; }
[data-theme="calm"] .hl-card--product::before { content: ""; position: absolute; top: -13px; left: 50%; width: 36px; height: 26px; margin-left: -18px; border-radius: 58% 42% 52% 48% / 52% 58% 42% 48%; background: radial-gradient(circle at 35% 30%, #8a847a, #4f4b44 70%); box-shadow: 0 6px 8px -4px rgba(40,32,18,.5); }
[data-theme="calm"] .hl-card h2 { font-size: 25px; }
[data-theme="calm"] .hl-badge { align-self: center; padding: 0; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; }
[data-theme="calm"] .hl-price { font: 400 32px/1.1 var(--hl-font-head); color: var(--hl-accent-ink); }
[data-theme="calm"] .hl-made { border-radius: 3px; }

/* «Аниме» — Plus: косплееры, художники, стримеры, аниме-магазины.
   Страница манги: скринтон, панели в чёрных рамках, линии скорости от аватара, реплика в облачке, звёздочка-бейдж */
[data-theme="anime"] {
  --hl-bg: #f3f0ea;
  --hl-bg-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.16) 1.1px, transparent 1.6px);
  --hl-text: #111111;
  --hl-text-muted: #3d3d3d;
  --hl-focus: #111111;
  --hl-font-head: "Dela Gothic One", system-ui, sans-serif;
  --hl-font-body: "M PLUS Rounded 1c", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 400;
  --hl-btn-weight: 400;
  --hl-head-tracking: 0;
  --hl-gap: 12px;
  --hl-surface: #ffffff;
  --hl-surface-border: 3px solid #111;
  --hl-surface-shadow: none;
  --hl-radius-card: 2px;
  --hl-radius-btn: 2px;
  --hl-btn-border: 3px solid #111;
  --hl-btn-shadow: 4px 4px 0 #111;
  --hl-btn-shadow-hover: 6px 6px 0 #111;
  --hl-btn-press: translate(3px, 3px);
  --hl-btn2-bg: #ffffff;
  --hl-btn2-fg: #111111;
  --hl-btn2-border: 3px solid #111;
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-surface: #ffffff;
  --hl-head-border: 3px solid #111;
  --hl-head-pad: 22px;
  --hl-name-size: clamp(26px, 8vw, 32px);
  --hl-avatar-size: 96px;
  --hl-avatar-bg: #ffffff;
  --hl-avatar-fg: var(--hl-accent-ink);
  --hl-avatar-ring: 0 0 0 3px #111, 0 0 0 8px #fff, 0 0 0 11px #111;
  --hl-made-bg: #ffffff;
  --hl-made-border: 2px solid #111;
}
[data-theme="anime"] .hl-page, [data-theme="anime"].hl-page { background-size: 7px 7px; }
[data-theme="anime"] .hl-header { position: relative; isolation: isolate; margin-bottom: 8px; }
/* линии скорости из центра аватара (22px отступ + 48px радиус = 70px), гаснут к центру и вниз */
[data-theme="anime"] .hl-header::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 300px; z-index: -1; pointer-events: none;
  background: repeating-conic-gradient(from 0deg at 50% 70px, #111 0 1.3deg, transparent 1.3deg 6.5deg);
  -webkit-mask: radial-gradient(circle at 50% 70px, transparent 0 80px, #000 190px), linear-gradient(#000 55%, transparent);
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 50% 70px, transparent 0 80px, #000 190px), linear-gradient(#000 55%, transparent);
  mask-composite: intersect;
}
[data-theme="anime"] .hl-header:has(.hl-cover--img)::before { display: none; }
[data-theme="anime"] .hl-header::after { content: "ドキッ!"; position: absolute; top: 16px; right: 16px; font: 400 20px/1 var(--hl-font-head); color: var(--hl-accent-ink); transform: rotate(12deg); text-shadow: 2px 2px 0 #fff, -2px -2px 0 #fff, 2px -2px 0 #fff, -2px 2px 0 #fff; pointer-events: none; }
[data-theme="anime"] .hl-avatar { margin-bottom: 20px; }
[data-theme="anime"] .hl-name { margin-top: 2px; padding: 4px 12px; background: #fff; box-shadow: 0 0 0 3px #111; line-height: 1.2; }
[data-theme="anime"] .hl-sub { margin-top: 14px; padding: 4px 10px; background: #111; color: #fff; opacity: 1; font-size: 13px; font-weight: 800; transform: rotate(-2deg); }
/* описание — реплика в облачке с хвостиком */
[data-theme="anime"] .hl-desc { position: relative; max-width: 32ch; margin-top: 22px; padding: 12px 18px; background: #fff; border: 2.5px solid #111; border-radius: 28px; color: #111; font-size: 14.5px; }
[data-theme="anime"] .hl-desc::before, [data-theme="anime"] .hl-desc::after { content: ""; position: absolute; width: 0; height: 0; border-style: solid; border-color: transparent; }
[data-theme="anime"] .hl-desc::before { top: -17px; left: 30%; border-width: 0 4px 17px 12px; border-bottom-color: #111; }
[data-theme="anime"] .hl-desc::after { top: -11px; left: calc(30% + 3.5px); border-width: 0 2px 12px 8px; border-bottom-color: #fff; }
[data-theme="anime"] .hl-btn { text-transform: uppercase; font-size: 16px; }
[data-theme="anime"] .hl-btn:active, [data-theme="anime"] .hl-btn.is-active { box-shadow: 1px 1px 0 #111; }
[data-theme="anime"] .hl-btn--main { min-height: 62px; font-size: 18px; }
[data-theme="anime"] .hl-btn--main::after { content: "!!"; font: 400 22px/1 var(--hl-font-head); transform: rotate(10deg); }
/* соцсети — раскадровка: панели на чёрном, через одну со скринтоном */
[data-theme="anime"] .hl-socials { gap: 6px; padding: 6px; background: #111; }
[data-theme="anime"] .hl-social { min-height: 62px; border: 0; border-radius: 0; }
[data-theme="anime"] .hl-social:nth-child(4n+2), [data-theme="anime"] .hl-social:nth-child(4n+3) { background: radial-gradient(circle at 1px 1px, rgba(0,0,0,.13) 1px, transparent 1.5px) 0 0 / 6px 6px, #fff; }
[data-theme="anime"] .hl-social:hover, [data-theme="anime"] .hl-social.is-hover, [data-theme="anime"] .hl-link:hover, [data-theme="anime"] .hl-link.is-hover { background: color-mix(in srgb, #fff, var(--hl-accent) 12%); }
[data-theme="anime"] .hl-social b { font: 400 15px/1.2 var(--hl-font-head); }
[data-theme="anime"] .hl-social small { color: #3d3d3d; }
[data-theme="anime"] .hl-link { font-weight: 800; }
[data-theme="anime"] .hl-card { position: relative; isolation: isolate; }
[data-theme="anime"] .hl-card--product::before { content: ""; position: absolute; z-index: -1; top: 0; right: 0; width: 160px; height: 140px; pointer-events: none; background: radial-gradient(circle at 1px 1px, rgba(0,0,0,.24) 1.2px, transparent 1.7px) 0 0 / 6px 6px; -webkit-mask: radial-gradient(circle at 100% 0, #000 20%, transparent 75%); mask: radial-gradient(circle at 100% 0, #000 20%, transparent 75%); }
/* бейдж — взрыв-звёздочка */
[data-theme="anime"] .hl-badge { padding: 16px 22px; border-radius: 0; font: 400 13px/1 var(--hl-font-head); clip-path: polygon(50% 0, 61% 18%, 82% 8%, 80% 30%, 100% 35%, 85% 52%, 98% 72%, 76% 72%, 72% 95%, 55% 80%, 38% 100%, 33% 78%, 10% 86%, 18% 64%, 0 50%, 18% 36%, 8% 14%, 32% 20%); transform: rotate(-8deg); margin: -4px 0 0 -6px; }
[data-theme="anime"] .hl-card h2 { font-size: 22px; }
[data-theme="anime"] .hl-price { font-size: 34px; color: var(--hl-accent-ink); }
[data-theme="anime"] .hl-made { border-radius: 2px; }

/* «Акварель» — Plus: художники, иллюстраторы, свадебный декор, творческие студии.
   Размытые пятна с каймой пигмента, рукописное имя, мазок кистью, краска на кнопках, палитра у соцсетей */
[data-theme="watercolor"] {
  --hl-bg: #f8f4ec;
  --hl-bg-image:
    radial-gradient(44% 24% at 94% 3%, color-mix(in srgb, var(--hl-accent) 26%, transparent) 0 55%, color-mix(in srgb, var(--hl-accent) 40%, transparent) 63%, transparent 68%),
    radial-gradient(40% 20% at 2% 38%, rgba(243,170,140,.32) 0 55%, rgba(234,145,115,.44) 63%, transparent 68%),
    radial-gradient(46% 22% at 98% 74%, rgba(150,190,140,.3) 0 55%, rgba(118,168,108,.42) 63%, transparent 68%),
    radial-gradient(34% 16% at 8% 98%, color-mix(in srgb, var(--hl-accent) 20%, transparent) 0 55%, color-mix(in srgb, var(--hl-accent) 32%, transparent) 63%, transparent 68%);
  --hl-text: #2d2a32;
  --hl-text-muted: #5d5864;
  --hl-focus: #2d2a32;
  --hl-font-head: "Bad Script", cursive;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-body);
  --hl-head-weight: 400;
  --hl-btn-weight: 700;
  --hl-head-tracking: 0;
  --hl-gap: 14px;
  --hl-surface: rgba(255,253,249,.9);
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: 0 12px 26px -18px rgba(70,60,90,.45);
  --hl-radius-card: 22px 30px 20px 34px / 30px 22px 34px 20px;
  --hl-radius-btn: 18px 26px 16px 28px / 26px 18px 28px 16px;
  --hl-btn-shadow: 0 8px 18px -12px color-mix(in srgb, var(--hl-accent) 80%, transparent);
  --hl-btn-shadow-hover: 0 12px 24px -12px color-mix(in srgb, var(--hl-accent) 90%, transparent);
  --hl-btn2-bg: rgba(255,253,249,.7);
  --hl-btn2-border: 1.5px solid color-mix(in srgb, var(--hl-accent) 45%, transparent);
  --hl-chip-bg: color-mix(in srgb, var(--hl-accent) 16%, transparent);
  --hl-head-areas: "cover" "avatar" "name" "stroke" "sub" "desc";
  --hl-name-size: clamp(38px, 11vw, 46px);
  --hl-avatar-size: 100px;
  --hl-avatar-radius: 55% 45% 52% 48% / 48% 55% 45% 52%;
  --hl-avatar-bg: color-mix(in srgb, var(--hl-accent) 20%, #fffdf9);
  --hl-avatar-ring: 0 0 0 5px #fffdf9, 0 0 26px 10px color-mix(in srgb, var(--hl-accent) 28%, transparent);
  --hl-socials-cols: 1fr;
  --hl-made-bg: rgba(255,253,249,.8);
  --hl-made-border: 1px solid rgba(45,42,50,.1);
}
[data-theme="watercolor"] .hl-header { position: relative; isolation: isolate; overflow: visible; }
/* всплеск краски за аватаром и именем */
[data-theme="watercolor"] .hl-header::before {
  content: ""; position: absolute; z-index: -1; top: -10px; left: 50%; width: 320px; height: 240px; margin-left: -160px; pointer-events: none;
  background:
    radial-gradient(42% 40% at 44% 42%, color-mix(in srgb, var(--hl-accent) 20%, transparent) 0 60%, color-mix(in srgb, var(--hl-accent) 32%, transparent) 69%, transparent 74%),
    radial-gradient(30% 28% at 68% 62%, rgba(243,170,140,.32) 0 60%, rgba(234,145,115,.44) 69%, transparent 74%),
    radial-gradient(20% 18% at 26% 70%, rgba(150,190,140,.3) 0 60%, rgba(118,168,108,.42) 69%, transparent 74%);
}
[data-theme="watercolor"] .hl-header:has(.hl-cover--img)::before { display: none; }
/* мазок кистью под именем */
[data-theme="watercolor"] .hl-header::after { content: ""; grid-area: stroke; width: 160px; height: 14px; margin: 2px 0 4px; background: radial-gradient(80px 5px at 50% 55%, color-mix(in srgb, var(--hl-accent) 75%, transparent) 0 65%, transparent), radial-gradient(56px 3px at 38% 30%, color-mix(in srgb, var(--hl-accent) 50%, transparent) 0 65%, transparent); }
[data-theme="watercolor"] .hl-avatar { margin-bottom: 16px; }
[data-theme="watercolor"] .hl-name { line-height: 1.1; }
[data-theme="watercolor"] .hl-sub { margin-top: 6px; font-weight: 600; opacity: 1; }
[data-theme="watercolor"] .hl-btn--primary { background: radial-gradient(60% 120% at 18% 25%, rgba(255,255,255,.18), transparent 70%), radial-gradient(55% 110% at 88% 85%, rgba(0,0,0,.1), transparent 70%), var(--hl-accent); }
[data-theme="watercolor"] .hl-social { min-height: 58px; padding: 8px 16px 8px 9px; gap: 14px; }
/* палитра: у каждой соцсети своё пятно краски */
[data-theme="watercolor"] .hl-social i { width: 40px; height: 40px; display: grid; place-items: center; font-size: 17px; color: var(--hl-text); border-radius: 55% 45% 50% 50% / 50% 55% 45% 50%; background: radial-gradient(circle, color-mix(in srgb, var(--hl-accent) 22%, #fff) 0 58%, color-mix(in srgb, var(--hl-accent) 36%, #fff) 72%); }
[data-theme="watercolor"] .hl-social:nth-child(4n+2) i { background: radial-gradient(circle, #f9d3c2 0 58%, #f0b29a 72%); }
[data-theme="watercolor"] .hl-social:nth-child(4n+3) i { background: radial-gradient(circle, #d0e3f3 0 58%, #aecbe7 72%); }
[data-theme="watercolor"] .hl-social:nth-child(4n+4) i { background: radial-gradient(circle, #d9e8cd 0 58%, #bbd4a9 72%); }
[data-theme="watercolor"] .hl-social span { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex: 1; }
[data-theme="watercolor"] .hl-social b { font: 400 20px/1.1 var(--hl-font-head); }
[data-theme="watercolor"] .hl-social small { font-size: 13px; }
[data-theme="watercolor"] .hl-card { position: relative; isolation: isolate; overflow: hidden; padding: 24px 22px 22px; }
[data-theme="watercolor"] .hl-card::before { content: ""; position: absolute; z-index: -1; top: -46px; right: -56px; width: 210px; height: 160px; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--hl-accent) 18%, transparent) 0 60%, color-mix(in srgb, var(--hl-accent) 30%, transparent) 69%, transparent 74%); }
[data-theme="watercolor"] .hl-card--support::before { background: radial-gradient(50% 50% at 50% 50%, rgba(243,170,140,.3) 0 60%, rgba(234,145,115,.42) 69%, transparent 74%); }
[data-theme="watercolor"] .hl-badge { border-radius: 14px 18px 12px 20px / 18px 12px 20px 14px; }
[data-theme="watercolor"] .hl-card h2 { font-size: 28px; line-height: 1.15; }
[data-theme="watercolor"] .hl-price { font-size: 34px; color: var(--hl-accent-ink); }
[data-theme="watercolor"] .hl-made { border-radius: 14px 20px 12px 22px / 20px 12px 22px 14px; }

/* «Своя» — Plus: the author picks the background (colour, gradient or photo), the font and the button look.
   PHP prints every value on the element (hublinkCustomThemeStyle in includes/themes.php); the values below
   are the defaults, shown in the gallery before anything is chosen. */
[data-theme="custom"] {
  --hl-accent: #ffffff;
  --hl-on-accent: #14101f;
  --hl-accent-ink: #ffffff;
  --hl-bg: #7b3fe4;
  --hl-bg-image: linear-gradient(160deg, #7b3fe4, #ec4899);
  --hl-text: #ffffff;
  --hl-text-muted: rgba(255,255,255,.78);
  --hl-focus: #ffffff;
  --hl-surface: rgba(20,18,28,.58);
  --hl-surface-border: 1px solid rgba(255,255,255,.14);
  --hl-surface-shadow: 0 10px 24px -10px rgba(0,0,0,.55);
  --hl-surface-blur: blur(14px);
  --hl-radius-card: 28px;
  --hl-radius-btn: 999px;
  --hl-cbtn-bg: rgba(255,255,255,.16);
  --hl-cbtn-fg: #ffffff;
  --hl-cbtn-border: 1px solid rgba(255,255,255,.32);
  --hl-cbtn-shadow: 0 10px 24px -10px rgba(0,0,0,.55);
  --hl-chip-bg: color-mix(in srgb, var(--hl-cbtn-fg) 16%, transparent);
  --hl-chip-fg: var(--hl-text);
  --hl-avatar-bg: color-mix(in srgb, var(--hl-text) 18%, transparent);
  --hl-avatar-fg: var(--hl-text);
  --hl-avatar-ring: 0 0 0 3px color-mix(in srgb, var(--hl-text) 35%, transparent);
}
[data-theme="custom"] .hl-page, [data-theme="custom"].hl-page { background-size: cover; background-position: center; }
@media (hover: hover) { [data-theme="custom"] > body > .hl-page { background-attachment: fixed; } }
[data-theme="custom"] .hl-btn--primary, [data-theme="custom"] .hl-btn--secondary,
[data-theme="custom"] .hl-link, [data-theme="custom"] .hl-social {
  background: var(--hl-cbtn-bg); color: var(--hl-cbtn-fg); border: var(--hl-cbtn-border);
  box-shadow: var(--hl-cbtn-shadow); border-radius: var(--hl-radius-btn);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
[data-theme="custom"] .hl-social { padding-left: 16px; padding-right: 16px; }
[data-theme="custom"] .hl-link, [data-theme="custom"] .hl-social b { font-family: var(--hl-font-btn); font-weight: var(--hl-btn-weight); }
[data-theme="custom"] .hl-social i, [data-theme="custom"] .hl-link i { color: currentColor; }
[data-theme="custom"] .hl-social small { color: currentColor; opacity: .75; }
[data-theme="custom"] .hl-btn--primary:hover, [data-theme="custom"] .hl-btn--primary.is-hover,
[data-theme="custom"] .hl-btn--secondary:hover, [data-theme="custom"] .hl-btn--secondary.is-hover,
[data-theme="custom"] .hl-link:hover, [data-theme="custom"] .hl-link.is-hover,
[data-theme="custom"] .hl-social:hover, [data-theme="custom"] .hl-social.is-hover { background: var(--hl-cbtn-bg); filter: brightness(1.08); box-shadow: var(--hl-cbtn-shadow); }
[data-theme="custom"] .hl-card { -webkit-backdrop-filter: var(--hl-surface-blur); }

/* ---------- 3. Blocks (one markup for all themes) ---------- */
html, body { margin: 0; }
body > .hl-page { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; }
.hl-page {
  min-height: 100%;
  padding: 24px 16px 28px;
  background-color: var(--hl-bg);
  background-image: var(--hl-bg-image);
  background-size: auto;
  color: var(--hl-text);
  font: 400 16px/1.5 var(--hl-font-body);
  -webkit-font-smoothing: antialiased;
}
[data-theme="soft"] .hl-page, [data-theme="soft"].hl-page { background-size: 18px 18px; }
.hl-col { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--hl-gap); }
@media (min-width: 640px) { .hl-page { padding-top: 56px; padding-bottom: 48px; } }

.hl-header {
  display: grid;
  grid-template-columns: var(--hl-head-cols);
  grid-template-areas: var(--hl-head-areas);
  justify-items: var(--hl-head-justify);
  align-items: center;
  text-align: var(--hl-head-align);
  gap: 4px 14px;
  padding: var(--hl-head-pad);
  margin-bottom: 4px;
  background: var(--hl-head-surface);
  border: var(--hl-head-border);
  box-shadow: var(--hl-head-shadow);
  border-radius: var(--hl-radius-card);
  overflow: hidden;
}
.hl-cover {
  grid-area: cover; justify-self: stretch;
  display: var(--hl-cover-empty-display);
  height: var(--hl-cover-height);
  margin: calc(var(--hl-head-pad) * -1) calc(var(--hl-head-pad) * -1) 6px;
  background: var(--hl-cover-empty-bg);
}
.hl-cover--img { display: block; background-size: cover; background-position: center; }
.hl-avatar {
  --hl-avatar-box: var(--hl-avatar-size);
  grid-area: avatar;
  width: var(--hl-avatar-box); height: var(--hl-avatar-box);
  margin-top: var(--hl-avatar-overlap); margin-bottom: 10px;
  border-radius: var(--hl-avatar-radius);
  background: var(--hl-avatar-bg) center / cover;
  box-shadow: var(--hl-avatar-ring);
  color: var(--hl-avatar-fg);
  display: grid; place-items: center;
  font: var(--hl-head-weight) calc(var(--hl-avatar-size) * .4)/1 var(--hl-font-head);
  position: relative;
}
.hl-avatar--photo { --hl-avatar-box: max(var(--hl-avatar-size), var(--hl-avatar-photo-min)); }
.hl-cover--img ~ .hl-avatar { margin-top: calc(var(--hl-avatar-box) / -2); }
[data-theme="bright"] .hl-avatar { margin-bottom: 0; }
.hl-name {
  hyphens: auto; /* long Russian names break by syllables, not mid-letter */
  grid-area: name; margin: 0;
  font: var(--hl-head-weight) var(--hl-name-size)/1.12 var(--hl-font-head);
  letter-spacing: var(--hl-head-tracking);
  overflow-wrap: anywhere; text-wrap: balance;
}
[data-theme="bright"] .hl-name { margin-top: 12px; }
.hl-sub { grid-area: sub; margin: 2px 0 0; font-size: 15px; font-weight: 500; color: var(--hl-text); opacity: .9; text-wrap: balance; }
.hl-desc { grid-area: desc; margin: 8px 0 0; font-size: 15px; color: var(--hl-text-muted); text-wrap: pretty; max-width: 34ch; }
[data-theme="business"] .hl-desc, [data-theme="bright"] .hl-desc { max-width: none; }

.hl-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 20px; box-sizing: border-box; width: 100%;
  border-radius: var(--hl-radius-btn);
  font: var(--hl-btn-weight) 16px/1.25 var(--hl-font-btn);
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, filter .15s ease, background-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.hl-btn--primary {
  background: var(--hl-accent); color: var(--hl-on-accent);
  border: var(--hl-btn-border); box-shadow: var(--hl-btn-shadow);
}
.hl-btn--primary:hover, .hl-btn--primary.is-hover { filter: brightness(1.06) saturate(1.05); box-shadow: var(--hl-btn-shadow-hover); }
.hl-btn--secondary { background: var(--hl-btn2-bg); color: var(--hl-btn2-fg); border: var(--hl-btn2-border); }
.hl-btn--secondary:hover, .hl-btn--secondary.is-hover { background: var(--hl-chip-bg); }
[data-theme="bright"] .hl-btn--secondary:hover, [data-theme="bright"] .hl-btn--secondary.is-hover { background: #fff3c4; }
.hl-btn:active, .hl-btn.is-active { transform: var(--hl-btn-press); filter: brightness(.96); }
[data-theme="bright"] .hl-btn:active, [data-theme="bright"] .hl-btn.is-active { box-shadow: 0 0 0 #14101f; }
.hl-btn:focus-visible, .hl-btn.is-focus,
.hl-social:focus-visible, .hl-social.is-focus,
.hl-link:focus-visible, .hl-link.is-focus,
.hl-made:focus-visible { outline: 3px solid var(--hl-focus); outline-offset: 3px; }
.hl-btn--main { min-height: 58px; font-size: 17px; }

/* «Контакты»: big «Написать в …» buttons in the theme's second button style, the icon in front. */
.hl-contacts { position: relative; display: grid; gap: 8px; }
.hl-contact i { flex: none; width: 22px; font-size: 20px; text-align: center; }
.hl-socials { display: grid; grid-template-columns: var(--hl-socials-cols); gap: 8px; }
.hl-social {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; box-sizing: border-box;
  background: var(--hl-surface); border: var(--hl-surface-border); border-radius: var(--hl-radius-btn);
  box-shadow: var(--hl-surface-shadow); color: var(--hl-text); text-decoration: none; min-width: 0;
  transition: transform .12s ease, background-color .15s ease;
}
[data-theme="bright"] .hl-social { box-shadow: 3px 3px 0 #14101f; }
.hl-social:last-child:nth-child(odd) { grid-column: 1 / -1; }
.hl-social:hover, .hl-social.is-hover { background: color-mix(in srgb, var(--hl-surface), var(--hl-accent) 7%); }
.hl-social:active, .hl-social.is-active { transform: var(--hl-btn-press); }
.hl-social i { width: 22px; font-size: 20px; text-align: center; color: var(--hl-social-icon); flex: none; }
.hl-social b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.hl-social small { display: block; font-size: 12.5px; color: var(--hl-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-social span { min-width: 0; }

/* «Ссылка» — custom link (needs backend) */
.hl-link {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; box-sizing: border-box;
  background: var(--hl-surface); border: var(--hl-surface-border); border-radius: var(--hl-radius-btn);
  box-shadow: var(--hl-surface-shadow); color: var(--hl-text); text-decoration: none; font-weight: 600;
}
.hl-link span { flex: 1; min-width: 0; }
.hl-link i { color: var(--hl-text-muted); }
.hl-link:hover, .hl-link.is-hover { background: color-mix(in srgb, var(--hl-surface), var(--hl-accent) 7%); }
/* «Превью» of a link: a picture from the site or a player above the link row (includes/link_preview.php). */
.hl-col .hl-link.hl-link--media { flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: var(--hl-radius-card, var(--hl-radius-btn)); }
.hl-link-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; box-sizing: border-box; color: inherit; text-decoration: none; }
.hl-link-row > span { flex: 1; min-width: 0; }
.hl-link-row b { display: block; font-weight: inherit; }
.hl-link-row small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--hl-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-link-image { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: color-mix(in srgb, var(--hl-text) 6%, transparent); }
.hl-embed { position: relative; display: block; width: 100%; background: #000; }
.hl-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hl-embed--video { aspect-ratio: 16 / 9; }
.hl-embed--audio { height: 152px; background: transparent; }
.hl-embed--list { height: 352px; background: transparent; }
.hl-embed--track { height: 244px; background: transparent; }
/* VK Музыка has no player for other sites: a music card whose «Слушать» opens VK. */
.hl-link.hl-music { gap: 12px; padding: 10px 12px 10px 10px; }
.hl-link.hl-music .hl-music-cover { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: calc(var(--hl-radius-btn) * .6); background: #0077ff; }
.hl-link.hl-music .hl-music-cover i { color: #fff; font-size: 24px; }
.hl-link.hl-music .hl-music-text b { display: block; font-weight: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-link.hl-music .hl-music-text small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--hl-text-muted); }
.hl-link.hl-music .hl-music-text small i { font-size: 11px; }
.hl-link.hl-music .hl-music-play { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; background: var(--hl-accent); color: var(--hl-on-accent, #fff); font-size: 13.5px; }
.hl-link.hl-music .hl-music-play i { color: inherit; font-size: 11px; }
.hl-embed--still { display: grid; place-items: center; background: #15151a center / cover no-repeat; color: #fff; }
.hl-embed--still > span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(0,0,0,.6); font-size: 14px; font-weight: 600; }

.hl-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px;
  background: var(--hl-surface); border: var(--hl-surface-border); border-radius: var(--hl-radius-card);
  box-shadow: var(--hl-surface-shadow); backdrop-filter: var(--hl-surface-blur);
}
.hl-badge {
  align-self: flex-start; padding: 4px 10px; border-radius: 999px;
  background: var(--hl-chip-bg); color: var(--hl-chip-fg); font-size: 12.5px; font-weight: 700; line-height: 1.3;
}
.hl-card h2 { margin: 2px 0 0; font: var(--hl-head-weight) 21px/1.2 var(--hl-font-head); letter-spacing: var(--hl-head-tracking); text-wrap: balance; overflow-wrap: anywhere; }
.hl-card p { margin: 0; color: var(--hl-text-muted); font-size: 15px; text-wrap: pretty; }
.hl-price { font: var(--hl-head-weight) 26px/1.1 var(--hl-font-head); letter-spacing: var(--hl-head-tracking); margin: 6px 0 4px; }
.hl-card .hl-btn { margin-top: 6px; }
.hl-card--support { flex-direction: row; flex-wrap: wrap; align-items: center; }
.hl-card--support > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px; }
.hl-card--support .hl-btn { flex: 1 1 100%; }

.hl-foot { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 14px; }
.hl-foot-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; }
.hl-foot-sub .hl-made { background: transparent; border-color: transparent; padding: 4px 6px; min-height: 32px; font-size: 12px; opacity: .8; }
.hl-foot-sub .hl-made:hover { opacity: 1; }
.hl-more svg { width: 16px; height: 16px; }
.hl-more:hover b { text-decoration: underline; text-underline-offset: 3px; }
.hl-made {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px 6px 10px;
  border-radius: 999px; background: var(--hl-made-bg); border: var(--hl-made-border);
  color: var(--hl-text-muted); font-size: 13px; text-decoration: none;
}
.hl-made b { color: var(--hl-text); font-weight: 600; }
.hl-made em { font-style: normal; color: var(--hl-accent-ink); font-weight: 600; }
.hl-made svg { width: 18px; height: 18px; flex: none; }
.hl-made:hover em { text-decoration: underline; }
.hl-donate { padding: 6px 14px; color: var(--hl-text); font-weight: 600; }
.hl-donate::before { content: "♥"; color: var(--hl-accent-ink); font-weight: 400; }
a.hl-donate:hover { text-decoration: underline; text-underline-offset: 3px; }
/* «Пожаловаться» (report.php): quiet, under everything, on every theme. */
.hl-report { margin: 18px 0 0; text-align: center; font-size: 12px; }
.hl-report a { display: inline-block; padding: 8px 10px; color: var(--hl-text-muted); opacity: .75; text-decoration: underline; text-underline-offset: 3px; }
.hl-report a:hover, .hl-report a:focus-visible { opacity: 1; }

@media (prefers-reduced-motion: reduce) { .hl-btn, .hl-social { transition: none; } .hl-btn--main::after { animation: none !important; } }

/* ---- Обложка по темам ----
   «Своя» и «Спорт»: фото под всей шапкой, к низу уходит в цвет шапки, чтобы текст читался.
   «Аниме»: фото — кадр манги в рамке, линии скорости остаются вокруг аватара.
   «Дзен», «Акварель», «Аврора»: края фото растворяются, без жёсткого прямоугольника. */
[data-theme="custom"] .hl-header:has(.hl-cover--img),
[data-theme="sport"] .hl-header:has(.hl-cover--img) { position: relative; isolation: isolate; }
[data-theme="custom"] .hl-cover--img,
[data-theme="sport"] .hl-cover--img {
  position: absolute; inset: 0; z-index: -1; grid-area: auto; height: auto; margin: 0; clip-path: none;
}
[data-theme="custom"] .hl-cover--img::after,
[data-theme="sport"] .hl-cover--img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hl-head-scrim) 15%, transparent) 0, color-mix(in srgb, var(--hl-head-scrim) 55%, transparent) 38%, color-mix(in srgb, var(--hl-head-scrim) 88%, transparent) 72%);
}
[data-theme="custom"] { --hl-head-scrim: #14121c; }
[data-theme="custom"] .hl-header:has(.hl-cover--img) { padding-top: 64px; }
[data-theme="custom"] .hl-cover--img ~ .hl-avatar { margin-top: 0; }
[data-theme="custom"] .hl-cover--img ~ :is(.hl-name, .hl-sub, .hl-desc) { color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
[data-theme="custom"] .hl-cover--img ~ .hl-desc { color: rgba(255,255,255,.85); }
[data-theme="sport"] { --hl-head-scrim: #121316; }
[data-theme="sport"] .hl-header:has(.hl-cover--img) { padding: 96px 18px 20px; }
[data-theme="sport"] .hl-cover--img ~ .hl-avatar { margin-top: 0; }
/* наискосок, как у кнопки: салатовая полоса по низу фото */
[data-theme="sport"] .hl-cover--img::before { content: ""; position: absolute; z-index: 1; left: -10%; right: -10%; bottom: 0; height: 6px; background: var(--hl-accent); transform: skewX(-12deg); }
[data-theme="sport"] .hl-cover--img { overflow: hidden; filter: saturate(1.15) contrast(1.05); }

[data-theme="anime"] .hl-cover--img {
  height: 112px; margin: -10px -10px 6px; border: 3px solid #111; box-shadow: 4px 4px 0 #111;
  transform: rotate(-1.2deg);
}
[data-theme="anime"] .hl-header:has(.hl-cover--img)::before { display: block; background-position: 0 0; background: repeating-conic-gradient(from 0deg at 50% 136px, #111 0 1.3deg, transparent 1.3deg 6.5deg);
  -webkit-mask: radial-gradient(circle at 50% 136px, transparent 0 80px, #000 190px), linear-gradient(transparent 120px, #000 150px, transparent 330px);
  mask: radial-gradient(circle at 50% 136px, transparent 0 80px, #000 190px), linear-gradient(transparent 120px, #000 150px, transparent 330px);
  height: 380px; }
[data-theme="anime"] .hl-header:has(.hl-cover--img)::after { top: 4px; right: 10px; z-index: 2; }

[data-theme="calm"] .hl-cover--img {
  margin: -24px 0 6px; height: 132px; border-radius: 4px;
  -webkit-mask: radial-gradient(70% 80% at 50% 45%, #000 55%, transparent 100%); mask: radial-gradient(70% 80% at 50% 45%, #000 55%, transparent 100%);
}
[data-theme="watercolor"] .hl-cover--img {
  height: 150px;
  -webkit-mask: radial-gradient(62% 72% at 50% 46%, #000 60%, transparent 100%); mask: radial-gradient(62% 72% at 50% 46%, #000 60%, transparent 100%);
}
[data-theme="watercolor"] .hl-cover--img ~ .hl-avatar { margin-top: -56px; }
[data-theme="aurora"] .hl-cover--img { -webkit-mask: linear-gradient(#000 55%, transparent); mask: linear-gradient(#000 55%, transparent); }

/* ---- Лид-форма и лид-магнит (includes/leads.php) ----
   Поля берут цвета темы: фон и рамка — от цвета текста карточки, так форма читается и на светлых, и на тёмных темах. */
.hl-card--lead .hl-badge i { margin-right: 2px; }
.hl-lead { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.hl-lead-field { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--hl-text-muted); }
.hl-lead-field input, .hl-lead-field textarea, .hl-lead-field select {
  width: 100%; box-sizing: border-box; min-height: 46px; padding: 11px 14px;
  font: 400 16px/1.35 var(--hl-font-body, inherit); color: inherit;
  background: color-mix(in srgb, currentColor 6%, transparent);
  border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  border-radius: min(var(--hl-radius-btn), 14px);
}
.hl-card--lead { color: var(--hl-text); }
.hl-lead-field input::placeholder, .hl-lead-field textarea::placeholder { color: color-mix(in srgb, currentColor 45%, transparent); }
.hl-lead-field input:focus, .hl-lead-field textarea:focus, .hl-lead-field select:focus { outline: 2px solid var(--hl-focus, var(--hl-accent)); outline-offset: 1px; }
.hl-lead-field textarea { resize: vertical; }
.hl-lead-field select { appearance: none; padding-right: 40px; cursor: pointer; }
/* The arrow survives the themes' own «background» of the fields. */
.hl-card.hl-card--lead .hl-lead-field select {
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.hl-lead-field select option { color: #1c1c1c; background: #fff; }
.hl-lead-field small { font-weight: 400; }
.hl-lead-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--hl-text-muted); }
.hl-lead-consent input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--hl-accent); }
.hl-lead-consent a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.hl-lead .hl-btn { width: 100%; }
.hl-lead-error { padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #e5484d 14%, transparent); color: inherit; font-size: 14px; }
.hl-card .hl-lead-done { display: flex; gap: 8px; align-items: flex-start; color: var(--hl-text); font-weight: 600; }
.hl-card .hl-lead-done i { color: var(--hl-accent-ink); margin-top: 3px; }
.hl-card--lead .hl-btn i { margin-right: 8px; }
.hl-card--lead .hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hl-card--lead { position: relative; }

/* ==== Три темы второго раунда дизайна: «Маршрут», «Глазурь», «Винил» ==== */
/* «Маршрут» — гиды, тревел-блогеры, походы, беговые клубы. Лист топографической карты:
   волосяные линии и двойные рамки вместо толстых контуров и жёстких теней, ссылки — строки легенды на пунктире.
   Шрифты: Geologica 400/700, Martian Mono 500 */
[data-theme="route"] {
  --hl-bg: #eceedd;
  --hl-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='440' fill='none' stroke='%231c2620' stroke-opacity='.14'%3E%3Cpath d='M-20 60C60 20 120 110 220 70S360 10 460 60M-20 96C70 58 130 148 225 110S350 52 460 96M-20 140C80 108 140 190 230 156S345 104 460 140M-20 384C60 344 140 434 240 394S380 350 460 384M-20 416C70 380 150 462 245 426S375 384 460 416'/%3E%3Cg transform='rotate(-14 310 268)'%3E%3Cellipse cx='310' cy='268' rx='104' ry='62'/%3E%3Cellipse cx='306' cy='266' rx='76' ry='43'/%3E%3Cellipse cx='300' cy='264' rx='48' ry='25'/%3E%3Cellipse cx='296' cy='263' rx='20' ry='9'/%3E%3C/g%3E%3Cg transform='rotate(20 90 270)'%3E%3Cellipse cx='90' cy='270' rx='62' ry='40'/%3E%3Cellipse cx='92' cy='270' rx='36' ry='21'/%3E%3Cellipse cx='94' cy='270' rx='12' ry='6'/%3E%3C/g%3E%3C/svg%3E");
  --hl-text: #1c2620;
  --hl-text-muted: #4f5a4c;
  --hl-focus: #0b4fd6;
  --hl-font-head: "Geologica", system-ui, sans-serif;
  --hl-font-body: "Geologica", system-ui, sans-serif;
  --hl-font-btn: "Martian Mono", ui-monospace, monospace;
  --hl-head-weight: 700;
  --hl-btn-weight: 500;
  --hl-head-tracking: -0.02em;
  --hl-gap: 12px;
  --hl-surface: #f6f7ec;
  --hl-surface-border: 1px solid rgba(28,38,32,.45);
  --hl-surface-shadow: none;
  --hl-radius-card: 2px;
  --hl-radius-btn: 2px;
  --hl-btn-border: 1px solid #1c2620;
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 0 0 3px #eceedd, 0 0 0 4px #1c2620;   /* двойная рамка карты */
  --hl-btn-press: scale(.98);
  --hl-btn2-bg: transparent;
  --hl-btn2-fg: #1c2620;
  --hl-btn2-border: 1px solid #1c2620;
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-cols: minmax(0, 1fr) auto;
  --hl-head-areas: "cover cover" "name avatar" "sub avatar" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-pad: 0px;
  --hl-name-size: clamp(23px, 6.8vw, 26px);
  --hl-avatar-size: 72px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 3px #eceedd, 0 0 0 4px #1c2620, 0 0 0 8px #eceedd, 0 0 0 9px rgba(28,38,32,.4);
  --hl-cover-height: 120px;
  --hl-made-bg: transparent;
  --hl-made-border: 1px solid rgba(28,38,32,.45);
}
[data-theme="route"] .hl-header { overflow: visible; border-radius: 0; padding: 9px 9px 0 0; column-gap: 16px; }
[data-theme="route"] .hl-cover { margin: 0 -9px 10px 0; border: 1px solid rgba(28,38,32,.45); border-radius: 2px; }
[data-theme="route"] .hl-avatar { align-self: start; justify-self: end; margin-bottom: 0; }
[data-theme="route"] .hl-name { align-self: end; }
[data-theme="route"] .hl-sub { align-self: start; margin-top: 4px; font: 500 11px/1.4 var(--hl-font-btn); letter-spacing: .06em; text-transform: uppercase; color: var(--hl-text-muted); opacity: 1; }
[data-theme="route"] .hl-desc { max-width: none; margin-top: 14px; color: var(--hl-text); }
[data-theme="route"] .hl-btn { font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
[data-theme="route"] .hl-btn--main { font-size: 14px; }
[data-theme="route"] .hl-btn:hover, [data-theme="route"] .hl-btn.is-hover { filter: none; }
[data-theme="route"] .hl-btn--secondary:hover, [data-theme="route"] .hl-btn--secondary.is-hover { background: #fff; box-shadow: var(--hl-btn-shadow-hover); }
[data-theme="route"] .hl-btn:active, [data-theme="route"] .hl-btn.is-active { box-shadow: none; filter: none; }
/* простые ссылки — строки легенды на пунктире маршрута */
[data-theme="route"] .hl-link:not(.hl-link--media) { background: transparent; border: 0; border-bottom: 1.5px dashed rgba(28,38,32,.6); border-radius: 0; }
[data-theme="route"] .hl-link:not(.hl-link--media):hover, [data-theme="route"] .hl-link:not(.hl-link--media).is-hover { background: rgba(255,255,255,.7); border-bottom-color: #1c2620; border-bottom-style: solid; }
[data-theme="route"] .hl-social:hover, [data-theme="route"] .hl-social.is-hover, [data-theme="route"] .hl-link--media:hover, [data-theme="route"] .hl-link--media.is-hover { background: #fff; border-color: #1c2620; }
/* карточки — двойная рамка листа */
[data-theme="route"] .hl-card { box-shadow: inset 0 0 0 3px #f6f7ec, inset 0 0 0 4px rgba(28,38,32,.3); }
[data-theme="route"] .hl-badge { border: 1px solid #1c2620; border-radius: 2px; font: 500 10.5px/1.4 var(--hl-font-btn); letter-spacing: .06em; text-transform: uppercase; }
[data-theme="route"] .hl-lead-field input, [data-theme="route"] .hl-lead-field textarea, [data-theme="route"] .hl-lead-field select { background: #fff; border-color: rgba(28,38,32,.6); }
[data-theme="route"] .hl-foot { border-top: 1.5px dashed rgba(28,38,32,.5); }
[data-theme="route"] .hl-made { border-radius: 2px; }
/* области нажатия в подвале не меньше 44 px */
[data-theme="route"] .hl-foot a, [data-theme="route"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* «Глазурь» — керамисты, свечевары, пекари, хендмейд, маленькие кафе.
   Глина в крапинку, глазурованные плитки, потёки глазури цвета акцента по верху страницы.
   Шрифты: Alegreya 700, Nunito 400/800 */
[data-theme="glaze"] {
  --hl-bg: #ecdcc8;
  --hl-bg-image: radial-gradient(circle at 23% 31%, rgba(110,70,40,.4) 0 1.1px, transparent 1.7px), radial-gradient(circle at 71% 64%, rgba(110,70,40,.28) 0 .8px, transparent 1.3px), radial-gradient(circle at 42% 83%, rgba(255,255,255,.75) 0 1.4px, transparent 2px), radial-gradient(circle at 87% 17%, rgba(70,40,20,.35) 0 .7px, transparent 1.2px);
  --hl-text: #38281e;
  --hl-text-muted: #6b5243;
  --hl-focus: #9b3d12;
  --hl-font-head: "Alegreya", Georgia, serif;
  --hl-font-body: "Nunito", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-body);
  --hl-head-weight: 700;
  --hl-btn-weight: 800;
  --hl-head-tracking: 0;
  --hl-gap: 14px;
  --hl-surface: #f8f1e7;
  --hl-surface-border: 0 solid transparent;
  --hl-surface-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(110,70,40,.12), 0 8px 16px -8px rgba(90,55,30,.4);
  --hl-radius-card: 26px;
  --hl-radius-btn: 999px;
  --hl-btn-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 0 rgba(0,0,0,.2), 0 6px 12px -6px rgba(90,55,30,.55);
  --hl-btn-shadow-hover: inset 0 2px 0 rgba(255,255,255,.6), inset 0 -5px 0 rgba(0,0,0,.22), 0 12px 18px -6px rgba(90,55,30,.6);
  --hl-btn-press: translateY(2px);
  --hl-btn2-bg: #f8f1e7;
  --hl-btn2-fg: #38281e;
  --hl-btn2-border: 0 solid transparent;
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-pad: 0px;
  --hl-name-size: clamp(30px, 9vw, 34px);
  --hl-avatar-size: 108px;
  --hl-avatar-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 5px #f8f1e7, 0 12px 18px -6px rgba(90,55,30,.5);
  --hl-cover-height: 150px;
  --hl-socials-cols: 1fr;
  --hl-made-bg: #f8f1e7;
}
[data-theme="glaze"] .hl-page, [data-theme="glaze"].hl-page { position: relative; padding-top: 68px; background-size: 97px 113px, 61px 73px, 139px 151px, 43px 47px; }
/* потёки глазури */
[data-theme="glaze"] .hl-page::before, [data-theme="glaze"].hl-page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 52px; pointer-events: none;
  background:
    radial-gradient(ellipse 13px 34px at 50% 0, var(--hl-accent) 97%, transparent) 22px 14px / 118px 34px repeat-x,
    radial-gradient(ellipse 9px 22px at 50% 0, var(--hl-accent) 97%, transparent) 70px 14px / 74px 22px repeat-x,
    radial-gradient(circle at 50% 0, var(--hl-accent) 0 15px, transparent 16px) 0 14px / 30px 16px repeat-x,
    linear-gradient(var(--hl-accent), var(--hl-accent)) 0 0 / 100% 15px no-repeat;
}
[data-theme="glaze"] .hl-col { position: relative; }
[data-theme="glaze"] .hl-header { overflow: visible; padding-top: 6px; }
[data-theme="glaze"] .hl-cover { margin: 0 0 6px; border-radius: 26px; }
[data-theme="glaze"] .hl-avatar { margin-bottom: 14px; }
[data-theme="glaze"] .hl-name { line-height: 1.05; }
[data-theme="glaze"] .hl-sub { margin-top: 6px; opacity: 1; color: var(--hl-text-muted); }
[data-theme="glaze"] .hl-desc { color: var(--hl-text); }
[data-theme="glaze"] .hl-btn--secondary { box-shadow: var(--hl-surface-shadow); }
[data-theme="glaze"] .hl-btn--secondary:hover, [data-theme="glaze"] .hl-btn--secondary.is-hover { background: #fffaf2; box-shadow: var(--hl-btn-shadow-hover); }
[data-theme="glaze"] .hl-btn:active, [data-theme="glaze"] .hl-btn.is-active { box-shadow: inset 0 3px 6px rgba(0,0,0,.3); }
[data-theme="glaze"] .hl-social { padding-left: 16px; }
[data-theme="glaze"] .hl-social:hover, [data-theme="glaze"] .hl-social.is-hover, [data-theme="glaze"] .hl-link:hover, [data-theme="glaze"] .hl-link.is-hover { background: #fffaf2; box-shadow: inset 0 2px 0 rgba(255,255,255,.8), inset 0 -3px 0 rgba(110,70,40,.12), 0 14px 20px -8px rgba(90,55,30,.5); }
[data-theme="glaze"] .hl-card h2 { font-size: 25px; line-height: 1.1; }
[data-theme="glaze"] .hl-price { font-size: 30px; }
[data-theme="glaze"] .hl-lead-field input, [data-theme="glaze"] .hl-lead-field textarea, [data-theme="glaze"] .hl-lead-field select { border-color: #8a6a55; border-radius: 16px; background: #ecdcc8; box-shadow: inset 0 2px 4px rgba(90,55,30,.22); }
/* области нажатия в подвале не меньше 44 px */
[data-theme="glaze"] .hl-foot a, [data-theme="glaze"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* «Винил» — музыканты, диджеи, подкастеры, лейблы.
   Аватар — «яблоко» пластинки с дорожками, ссылки — трек-лист со стороной и номером.
   Шрифты: Sofia Sans Extra Condensed 800, Golos Text 400/600 */
[data-theme="vinyl"] {
  --hl-bg: #14110d;
  --hl-bg-image: repeating-radial-gradient(circle at 50% -160px, transparent 0 5px, rgba(241,233,216,.045) 5px 6px), radial-gradient(circle at 50% -160px, #1d1913 0 460px, transparent 461px);
  --hl-text: #f1e9d8;
  --hl-text-muted: #a59c8a;
  --hl-focus: #f1e9d8;
  --hl-font-head: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --hl-font-body: "Golos Text", system-ui, sans-serif;
  --hl-font-btn: var(--hl-font-head);
  --hl-head-weight: 800;
  --hl-btn-weight: 800;
  --hl-head-tracking: .01em;
  --hl-gap: 10px;
  --hl-surface: #1f1b15;
  --hl-surface-border: 1px solid rgba(241,233,216,.16);
  --hl-surface-shadow: none;
  --hl-radius-card: 6px;
  --hl-radius-btn: 4px;
  --hl-btn-border: 2px solid #f1e9d8;   /* держит кнопку на тёмном фоне при тёмном акценте */
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 0 0 4px rgba(241,233,216,.3);
  --hl-btn-press: scale(.98);
  --hl-btn2-bg: transparent;
  --hl-btn2-fg: #f1e9d8;
  --hl-btn2-border: 1px solid rgba(241,233,216,.55);
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-pad: 0px;
  --hl-name-size: clamp(44px, 13vw, 52px);
  --hl-avatar-size: 104px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 2px rgba(241,233,216,.55), 0 0 0 9px #0a0907, 0 0 0 10px #2b261e, 0 0 0 17px #0a0907, 0 0 0 18px #2b261e, 0 0 0 25px #0a0907, 0 0 0 26px #2b261e, 0 0 0 33px #0a0907, 0 0 0 34px #40392d;
  --hl-avatar-overlap: 42px;            /* место под дорожки, когда обложки нет */
  --hl-cover-height: 150px;
  --hl-made-bg: rgba(241,233,216,.05);
  --hl-made-border: 1px solid rgba(241,233,216,.16);
}
[data-theme="vinyl"] .hl-page, [data-theme="vinyl"].hl-page { background-size: 100% 320px; background-repeat: no-repeat; }
[data-theme="vinyl"] .hl-header { overflow: visible; border-radius: 0; }
[data-theme="vinyl"] .hl-cover { margin: 0; border-radius: 6px; }
[data-theme="vinyl"] .hl-avatar { margin-bottom: 46px; }
[data-theme="vinyl"] .hl-name { line-height: .95; text-transform: uppercase; }
[data-theme="vinyl"] .hl-sub { margin-top: 8px; font-size: 14px; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="vinyl"] .hl-btn { font-size: 21px; line-height: 1; letter-spacing: .06em; text-transform: uppercase; }
[data-theme="vinyl"] .hl-btn--main { font-size: 25px; }
[data-theme="vinyl"] .hl-btn--secondary:hover, [data-theme="vinyl"] .hl-btn--secondary.is-hover { background: rgba(241,233,216,.1); }
/* трек-лист */
[data-theme="vinyl"] .hl-col { counter-reset: hl-trk; }
[data-theme="vinyl"] .hl-link { counter-increment: hl-trk; }
[data-theme="vinyl"] .hl-link:not(.hl-link--media)::before, [data-theme="vinyl"] .hl-link--media .hl-link-row::before { content: "A" counter(hl-trk); flex: none; min-width: 24px; font: 800 21px/1 var(--hl-font-head); letter-spacing: .04em; color: var(--hl-text-muted); }
[data-theme="vinyl"] .hl-social:hover, [data-theme="vinyl"] .hl-social.is-hover, [data-theme="vinyl"] .hl-link:hover, [data-theme="vinyl"] .hl-link.is-hover { background: #2a251d; border-color: rgba(241,233,216,.5); }
[data-theme="vinyl"] .hl-badge { border: 1.5px solid #f1e9d8; border-radius: 2px; font: 800 15px/1.1 var(--hl-font-head); letter-spacing: .08em; text-transform: uppercase; }
[data-theme="vinyl"] .hl-card h2 { font-size: 30px; line-height: 1; text-transform: uppercase; }
[data-theme="vinyl"] .hl-price { font-size: 40px; line-height: 1; }
[data-theme="vinyl"] .hl-lead-field input, [data-theme="vinyl"] .hl-lead-field textarea, [data-theme="vinyl"] .hl-lead-field select { border-color: rgba(241,233,216,.5); }
[data-theme="vinyl"] .hl-made { border-radius: 4px; }
/* области нажатия в подвале не меньше 44 px */
[data-theme="vinyl"] .hl-foot a, [data-theme="vinyl"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* «Чертёж» — архитекторы, дизайнеры интерьеров, инженеры, 3D-художники, стройка.
   Классическая синька с миллиметровой сеткой, угловые засечки карточек, нумерация узлов.
   Шрифты: JetBrains Mono 400/700, IBM Plex Sans 400/600 */
[data-theme="blueprint"] {
  --hl-bg: #0f2952;
  --hl-bg-image:
    linear-gradient(to right, rgba(190,220,255,.16) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190,220,255,.16) 1px, transparent 1px),
    linear-gradient(to right, rgba(190,220,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(190,220,255,.06) 1px, transparent 1px);
  --hl-text: #eef5ff;
  --hl-text-muted: #9ec0ea;
  --hl-focus: #ffffff;
  --hl-font-head: "JetBrains Mono", ui-monospace, monospace;
  --hl-font-body: "IBM Plex Sans", system-ui, sans-serif;
  --hl-font-btn: "JetBrains Mono", ui-monospace, monospace;
  --hl-head-weight: 700;
  --hl-btn-weight: 700;
  --hl-head-tracking: -0.02em;
  --hl-gap: 12px;
  --hl-surface: #153466;
  --hl-surface-border: 1px solid rgba(190,220,255,.42);
  --hl-surface-shadow: none;
  --hl-radius-card: 2px;
  --hl-radius-btn: 2px;
  --hl-btn-border: 1.5px solid rgba(238,245,255,.85);
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 0 0 3px #0f2952, 0 0 0 4.5px rgba(238,245,255,.85);
  --hl-btn-press: scale(.985);
  --hl-btn2-bg: rgba(15,41,82,.55);
  --hl-btn2-fg: #eef5ff;
  --hl-btn2-border: 1px dashed rgba(190,220,255,.7);
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-cols: minmax(0, 1fr) auto;
  --hl-head-areas: "cover cover" "name avatar" "sub avatar" "desc desc";
  --hl-head-justify: start;
  --hl-head-align: left;
  --hl-head-surface: rgba(21,52,102,.78);
  --hl-head-border: 1px solid rgba(190,220,255,.45);
  --hl-head-pad: 18px;
  --hl-name-size: clamp(20px, 6vw, 24px);
  --hl-avatar-size: 74px;
  --hl-avatar-radius: 2px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 3px #153466, 0 0 0 4px rgba(190,220,255,.75);
  --hl-cover-height: 120px;
  --hl-made-bg: rgba(21,52,102,.72);
  --hl-made-border: 1px solid rgba(190,220,255,.35);
}
[data-theme="blueprint"] .hl-page, [data-theme="blueprint"].hl-page { background-size: 48px 48px, 48px 48px, 12px 12px, 12px 12px; }
[data-theme="blueprint"] .hl-col { counter-reset: hl-bp; }
[data-theme="blueprint"] .hl-header { column-gap: 14px; }
[data-theme="blueprint"] .hl-cover { border-bottom: 1px solid rgba(190,220,255,.42); }
[data-theme="blueprint"] .hl-avatar { align-self: start; justify-self: end; margin-bottom: 0; }
[data-theme="blueprint"] .hl-name { align-self: end; text-transform: uppercase; letter-spacing: .02em; }
[data-theme="blueprint"] .hl-sub { align-self: start; margin-top: 4px; font: 400 12px/1.45 var(--hl-font-head); color: var(--hl-accent-ink); opacity: 1; }
[data-theme="blueprint"] .hl-desc { max-width: none; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(190,220,255,.35); color: var(--hl-text); }
[data-theme="blueprint"] .hl-btn { font-size: 13.5px; letter-spacing: .04em; text-transform: uppercase; }
[data-theme="blueprint"] .hl-btn--secondary:hover, [data-theme="blueprint"] .hl-btn--secondary.is-hover { background: rgba(190,220,255,.12); border-style: solid; }
[data-theme="blueprint"] .hl-link { counter-increment: hl-bp; }
[data-theme="blueprint"] .hl-link:not(.hl-link--media)::before, [data-theme="blueprint"] .hl-link--media .hl-link-row::before { content: counter(hl-bp, decimal-leading-zero); flex: none; min-width: 24px; font: 700 12px/1 var(--hl-font-head); color: var(--hl-accent-ink); opacity: .95; }
[data-theme="blueprint"] .hl-social:hover, [data-theme="blueprint"] .hl-social.is-hover, [data-theme="blueprint"] .hl-link:hover, [data-theme="blueprint"] .hl-link.is-hover { background: #1c427d; border-color: rgba(238,245,255,.8); }
/* угловые засечки чертёжной рамки */
[data-theme="blueprint"] .hl-card {
  background-image:
    linear-gradient(#eef5ff, #eef5ff), linear-gradient(#eef5ff, #eef5ff),
    linear-gradient(#eef5ff, #eef5ff), linear-gradient(#eef5ff, #eef5ff),
    linear-gradient(#eef5ff, #eef5ff), linear-gradient(#eef5ff, #eef5ff),
    linear-gradient(#eef5ff, #eef5ff), linear-gradient(#eef5ff, #eef5ff);
  background-size: 10px 2px, 2px 10px;
  background-position: 0 0, 0 0, 100% 0, 100% 0, 0 100%, 0 100%, 100% 100%, 100% 100%;
  background-repeat: no-repeat;
}
[data-theme="blueprint"] .hl-badge { border: 1px solid rgba(238,245,255,.65); border-radius: 2px; font: 700 11px/1.3 var(--hl-font-head); letter-spacing: .06em; text-transform: uppercase; }
[data-theme="blueprint"] .hl-card h2 { font-size: 19px; text-transform: uppercase; letter-spacing: .02em; }
[data-theme="blueprint"] .hl-price { font-family: var(--hl-font-head); }
[data-theme="blueprint"] .hl-lead-field input, [data-theme="blueprint"] .hl-lead-field textarea, [data-theme="blueprint"] .hl-lead-field select { background: rgba(15,41,82,.65); border-color: rgba(190,220,255,.5); color: #eef5ff; }
[data-theme="blueprint"] .hl-foot { border-top: 1px dashed rgba(190,220,255,.35); }
[data-theme="blueprint"] .hl-foot a, [data-theme="blueprint"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* «Плёнка» — фотографы, видеографы, колористы, режиссёры.
   Тёмный просмотровый стол, боковая перфорация 35-мм плёнки, нумерация кадров 01A/02A.
   Шрифты: Montserrat 400/700, IBM Plex Mono 400 */
[data-theme="film"] {
  --hl-bg: #111111;
  --hl-bg-image:
    repeating-linear-gradient(to bottom, transparent 0 12px, rgba(244,241,234,.18) 12px 26px, transparent 26px 38px),
    repeating-linear-gradient(to bottom, transparent 0 12px, rgba(244,241,234,.18) 12px 26px, transparent 26px 38px);
  --hl-text: #f4f1ea;
  --hl-text-muted: #a6a095;
  --hl-focus: #f4f1ea;
  --hl-font-head: "Montserrat", system-ui, sans-serif;
  --hl-font-body: "Montserrat", system-ui, sans-serif;
  --hl-font-btn: "IBM Plex Mono", ui-monospace, monospace;
  --hl-head-weight: 700;
  --hl-btn-weight: 400;
  --hl-head-tracking: .02em;
  --hl-gap: 12px;
  --hl-surface: #1b1b1b;
  --hl-surface-border: 1px solid rgba(244,241,234,.2);
  --hl-surface-shadow: none;
  --hl-radius-card: 4px;
  --hl-radius-btn: 4px;
  --hl-btn-border: 1.5px solid rgba(244,241,234,.75);
  --hl-btn-shadow: none;
  --hl-btn-shadow-hover: 0 0 0 3px rgba(244,241,234,.22);
  --hl-btn-press: scale(.985);
  --hl-btn2-bg: transparent;
  --hl-btn2-fg: #f4f1ea;
  --hl-btn2-border: 1px solid rgba(244,241,234,.45);
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-pad: 6px;
  --hl-name-size: clamp(24px, 7.5vw, 30px);
  --hl-avatar-size: 96px;
  --hl-avatar-radius: 6px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 4px #111111, 0 0 0 5px rgba(244,241,234,.45);
  --hl-cover-height: 150px;
  --hl-socials-cols: 1fr;
  --hl-made-bg: rgba(244,241,234,.05);
  --hl-made-border: 1px solid rgba(244,241,234,.18);
}
/* перфорация 35-мм по краям страницы */
[data-theme="film"] .hl-page, [data-theme="film"].hl-page {
  background-size: 10px 38px, 10px 38px;
  background-position: 8px 0, calc(100% - 8px) 0;
  background-repeat: repeat-y, repeat-y;
  padding-inline: 28px;
}
[data-theme="film"] .hl-col { counter-reset: hl-fr; }
[data-theme="film"] .hl-cover { border: 1px solid rgba(244,241,234,.28); border-radius: 4px; }
[data-theme="film"] .hl-name { text-transform: uppercase; letter-spacing: .04em; }
[data-theme="film"] .hl-sub { margin-top: 6px; font: 400 12px/1.45 var(--hl-font-btn); letter-spacing: .06em; text-transform: uppercase; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="film"] .hl-btn { font-size: 13.5px; letter-spacing: .06em; text-transform: uppercase; }
[data-theme="film"] .hl-btn--secondary:hover, [data-theme="film"] .hl-btn--secondary.is-hover { background: rgba(244,241,234,.08); border-color: #f4f1ea; }
/* нумерация кадров на ссылках и соцсетях */
[data-theme="film"] .hl-link, [data-theme="film"] .hl-social { counter-increment: hl-fr; }
[data-theme="film"] .hl-link:not(.hl-link--media)::before, [data-theme="film"] .hl-link--media .hl-link-row::before, [data-theme="film"] .hl-social::before { content: counter(hl-fr, decimal-leading-zero) "A"; flex: none; min-width: 28px; font: 400 11.5px/1 var(--hl-font-btn); letter-spacing: .05em; color: var(--hl-accent-ink); }
[data-theme="film"] .hl-social:hover, [data-theme="film"] .hl-social.is-hover, [data-theme="film"] .hl-link:hover, [data-theme="film"] .hl-link.is-hover { background: #262626; border-color: rgba(244,241,234,.55); }
[data-theme="film"] .hl-card { box-shadow: inset 0 0 0 3px #111111, inset 0 0 0 4px rgba(244,241,234,.14); }
[data-theme="film"] .hl-badge { border-radius: 2px; font: 400 11px/1.3 var(--hl-font-btn); letter-spacing: .08em; text-transform: uppercase; }
[data-theme="film"] .hl-card h2 { text-transform: uppercase; letter-spacing: .03em; font-size: 20px; }
[data-theme="film"] .hl-price { font-family: var(--hl-font-btn); }
[data-theme="film"] .hl-lead-field input, [data-theme="film"] .hl-lead-field textarea, [data-theme="film"] .hl-lead-field select { background: #141414; border-color: rgba(244,241,234,.35); color: #f4f1ea; }
[data-theme="film"] .hl-foot { border-top: 1px solid rgba(244,241,234,.18); }
[data-theme="film"] .hl-foot a, [data-theme="film"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* «Звёздная карта» — астрологи, тарологи, психологи, писатели, ювелиры, свечевары, космос.
   Небесный атлас: сетка созвездий и орбитальных дуг, аватар-планета в двойной орбите, римская нумерация.
   Шрифты: Prata 400, Manrope 400/600 */
[data-theme="starmap"] {
  --hl-bg: #0b1024;
  --hl-bg-image:
    radial-gradient(120% 45% at 50% -10%, color-mix(in srgb, var(--hl-accent) 20%, transparent), transparent 65%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='360' fill='none'%3E%3Cg stroke='%23e5c16c' stroke-opacity='.14' stroke-width='.8'%3E%3Ccircle cx='180' cy='180' r='140' stroke-dasharray='3 5'/%3E%3Ccircle cx='180' cy='180' r='88'/%3E%3Cpath d='M0 180h360M180 0v360' stroke-opacity='.07'/%3E%3Cpath d='M48 64l52 28 34-44 68 22M248 272l44-36 32 54-56 26z' stroke-opacity='.22'/%3E%3C/g%3E%3Cg fill='%23f3ede0'%3E%3Ccircle cx='48' cy='64' r='1.8' fill-opacity='.75'/%3E%3Ccircle cx='100' cy='92' r='1.3' fill-opacity='.6'/%3E%3Ccircle cx='134' cy='48' r='2' fill-opacity='.8'/%3E%3Ccircle cx='202' cy='70' r='1.4' fill-opacity='.6'/%3E%3Ccircle cx='248' cy='272' r='1.8' fill-opacity='.7'/%3E%3Ccircle cx='292' cy='236' r='1.3' fill-opacity='.55'/%3E%3Ccircle cx='324' cy='290' r='1.8' fill-opacity='.7'/%3E%3Ccircle cx='268' cy='316' r='1.2' fill-opacity='.5'/%3E%3Ccircle cx='66' cy='244' r='1.1' fill-opacity='.45'/%3E%3Ccircle cx='310' cy='86' r='1.2' fill-opacity='.5'/%3E%3C/g%3E%3Cpath d='M292 74l2 6 6 2-6 2-2 6-2-6-6-2 6-2zM74 294l1.5 4.5 4.5 1.5-4.5 1.5L74 306l-1.5-4.5L68 300l4.5-1.5z' fill='%23e5c16c' fill-opacity='.55'/%3E%3C/svg%3E");
  --hl-text: #f3ede0;
  --hl-text-muted: #a9b2cc;
  --hl-focus: #f3ede0;
  --hl-font-head: "Prata", Georgia, serif;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-font-btn: "Manrope", system-ui, sans-serif;
  --hl-head-weight: 400;
  --hl-btn-weight: 600;
  --hl-head-tracking: .02em;
  --hl-gap: 13px;
  --hl-surface: #121a36;
  --hl-surface-border: 1px solid rgba(229,193,108,.34);
  --hl-surface-shadow: 0 12px 28px -18px rgba(0,0,0,.75);
  --hl-radius-card: 10px;
  --hl-radius-btn: 999px;
  --hl-btn-border: 1px solid rgba(243,237,224,.55);
  --hl-btn-shadow: 0 8px 24px -12px color-mix(in srgb, var(--hl-accent) 75%, transparent);
  --hl-btn-shadow-hover: 0 12px 28px -10px color-mix(in srgb, var(--hl-accent) 90%, transparent);
  --hl-btn-press: scale(.985);
  --hl-btn2-bg: rgba(18,26,54,.8);
  --hl-btn2-fg: #f3ede0;
  --hl-btn2-border: 1px solid rgba(229,193,108,.5);
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-pad: 12px 8px 6px;
  --hl-name-size: clamp(27px, 8vw, 33px);
  --hl-avatar-size: 92px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 4px #0b1024, 0 0 0 5px rgba(229,193,108,.75), 0 0 0 13px #0b1024, 0 0 0 14px rgba(243,237,224,.24);
  --hl-cover-height: 140px;
  --hl-made-bg: rgba(18,26,54,.75);
  --hl-made-border: 1px solid rgba(229,193,108,.28);
}
[data-theme="starmap"] .hl-page, [data-theme="starmap"].hl-page { background-size: 100% 340px, 360px 360px; background-repeat: no-repeat, repeat; }
[data-theme="starmap"] .hl-col { counter-reset: hl-star; }
[data-theme="starmap"] .hl-header { overflow: visible; }
[data-theme="starmap"] .hl-cover { border: 1px solid rgba(229,193,108,.35); border-radius: 10px; }
[data-theme="starmap"] .hl-avatar { margin: 14px 0 20px; }
[data-theme="starmap"] .hl-name { line-height: 1.12; }
[data-theme="starmap"] .hl-sub { margin-top: 6px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-accent-ink); opacity: 1; }
[data-theme="starmap"] .hl-sub::before { content: "✦ "; opacity: .85; }
[data-theme="starmap"] .hl-sub::after { content: " ✦"; opacity: .85; }
[data-theme="starmap"] .hl-btn { letter-spacing: .03em; }
[data-theme="starmap"] .hl-btn--secondary:hover, [data-theme="starmap"] .hl-btn--secondary.is-hover { background: rgba(229,193,108,.12); border-color: rgba(229,193,108,.85); }
/* римская нумерация ссылок */
[data-theme="starmap"] .hl-link { counter-increment: hl-star; }
[data-theme="starmap"] .hl-link:not(.hl-link--media)::before, [data-theme="starmap"] .hl-link--media .hl-link-row::before { content: counter(hl-star, upper-roman); flex: none; min-width: 26px; font: 400 14px/1 var(--hl-font-head); color: var(--hl-accent-ink); text-align: center; }
[data-theme="starmap"] .hl-social:hover, [data-theme="starmap"] .hl-social.is-hover, [data-theme="starmap"] .hl-link:hover, [data-theme="starmap"] .hl-link.is-hover { background: #19244a; border-color: rgba(229,193,108,.75); }
/* двойная небесная рамка карточек и угловая звезда */
[data-theme="starmap"] .hl-card { position: relative; box-shadow: inset 0 0 0 5px #121a36, inset 0 0 0 6px rgba(243,237,224,.14), 0 12px 28px -18px rgba(0,0,0,.75); }
[data-theme="starmap"] .hl-card::after { content: "✦"; position: absolute; top: 14px; right: 16px; font-size: 13px; color: var(--hl-accent-ink); opacity: .75; pointer-events: none; }
[data-theme="starmap"] .hl-badge { border: 1px solid rgba(243,237,224,.4); border-radius: 999px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
[data-theme="starmap"] .hl-card h2 { font-size: 23px; line-height: 1.2; padding-right: 18px; }
[data-theme="starmap"] .hl-price { font-family: var(--hl-font-head); font-size: 26px; }
[data-theme="starmap"] .hl-lead-field input, [data-theme="starmap"] .hl-lead-field textarea, [data-theme="starmap"] .hl-lead-field select { background: #0c1228; border-color: rgba(229,193,108,.4); color: #f3ede0; }
[data-theme="starmap"] .hl-foot { border-top: 1px solid rgba(229,193,108,.22); }
[data-theme="starmap"] .hl-foot a, [data-theme="starmap"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* «Азуледжо» — путешествия, кофейни, кондитеры, декор, свадьбы, лайфстайл, локальные бренды.
   Португальская и средиземноморская расписная плитка: кобальтовый фриз сверху, фарфоровые карточки с двойной рамкой.
   Шрифты: Playfair Display 600, Manrope 400/600 */
[data-theme="azulejo"] {
  --hl-bg: #f4f7fb;
  --hl-bg-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' fill='none'%3E%3Cpath d='M32 0L64 32L32 64L0 32Z' stroke='%231a4b8c' stroke-opacity='.09' stroke-width='1'/%3E%3Ccircle cx='32' cy='32' r='6' stroke='%231a4b8c' stroke-opacity='.08' stroke-width='1'/%3E%3Ccircle cx='0' cy='0' r='6' stroke='%231a4b8c' stroke-opacity='.08' stroke-width='1'/%3E%3Ccircle cx='64' cy='0' r='6' stroke='%231a4b8c' stroke-opacity='.08' stroke-width='1'/%3E%3Ccircle cx='0' cy='64' r='6' stroke='%231a4b8c' stroke-opacity='.08' stroke-width='1'/%3E%3Ccircle cx='64' cy='64' r='6' stroke='%231a4b8c' stroke-opacity='.08' stroke-width='1'/%3E%3C/svg%3E");
  --hl-text: #152c52;
  --hl-text-muted: #4b6285;
  --hl-focus: #1a4b8c;
  --hl-font-head: "Playfair Display", Georgia, serif;
  --hl-font-body: "Manrope", system-ui, sans-serif;
  --hl-font-btn: "Manrope", system-ui, sans-serif;
  --hl-head-weight: 600;
  --hl-btn-weight: 600;
  --hl-head-tracking: -0.01em;
  --hl-gap: 13px;
  --hl-surface: #ffffff;
  --hl-surface-border: 1.5px solid rgba(26,75,140,.32);
  --hl-surface-shadow: inset 0 2px 0 rgba(255,255,255,.95), 0 8px 20px -12px rgba(21,44,82,.24);
  --hl-radius-card: 12px;
  --hl-radius-btn: 10px;
  --hl-btn-border: 1.5px solid rgba(21,44,82,.2);
  --hl-btn-shadow: inset 0 2px 0 rgba(255,255,255,.32), 0 8px 18px -10px color-mix(in srgb, var(--hl-accent) 65%, #152c52);
  --hl-btn-shadow-hover: inset 0 2px 0 rgba(255,255,255,.45), 0 12px 22px -10px color-mix(in srgb, var(--hl-accent) 75%, #152c52);
  --hl-btn-press: translateY(1px) scale(.985);
  --hl-btn2-bg: #ffffff;
  --hl-btn2-fg: #1a4b8c;
  --hl-btn2-border: 1.5px solid #1a4b8c;
  --hl-chip-bg: var(--hl-accent);
  --hl-chip-fg: var(--hl-on-accent);
  --hl-social-icon: var(--hl-accent-ink);
  --hl-head-pad: 6px 8px 4px;
  --hl-name-size: clamp(28px, 8.2vw, 34px);
  --hl-avatar-size: 94px;
  --hl-avatar-bg: var(--hl-accent);
  --hl-avatar-fg: var(--hl-on-accent);
  --hl-avatar-ring: 0 0 0 4px #ffffff, 0 0 0 6px #1a4b8c, 0 10px 22px -10px rgba(21,44,82,.42);
  --hl-cover-height: 144px;
  --hl-made-bg: #ffffff;
  --hl-made-border: 1.5px solid rgba(26,75,140,.28);
}
[data-theme="azulejo"] .hl-page, [data-theme="azulejo"].hl-page { position: relative; padding-top: 82px; background-size: 64px 64px; }
/* верхний фриз из кобальтовых изразцов азулежу */
[data-theme="azulejo"] .hl-page::before, [data-theme="azulejo"].hl-page::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60px; pointer-events: none;
  border-bottom: 3px double #1a4b8c;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Crect width='56' height='56' fill='%23ffffff'/%3E%3Crect x='2' y='2' width='52' height='52' fill='none' stroke='%231a4b8c' stroke-width='1.4'/%3E%3Cpath d='M28 6C31 15 35 19 44 22C35 25 31 29 28 38C25 29 21 25 12 22C21 19 25 15 28 6Z' transform='translate(0 6)' fill='%231a4b8c'/%3E%3Cpath d='M28 15L33 28L28 41L23 28Z' fill='%235b92d6'/%3E%3Cpath d='M15 28L28 23L41 28L28 33Z' fill='%235b92d6'/%3E%3Ccircle cx='28' cy='28' r='4.2' fill='%23ffffff' stroke='%231a4b8c' stroke-width='1.5'/%3E%3Cpath d='M2 2h10L2 12zM54 2H44l10 10zM2 54h10L2 44zM54 54H44l10-10z' fill='%231a4b8c' fill-opacity='.85'/%3E%3Ccircle cx='12' cy='12' r='1.6' fill='%235b92d6'/%3E%3Ccircle cx='44' cy='12' r='1.6' fill='%235b92d6'/%3E%3Ccircle cx='12' cy='44' r='1.6' fill='%235b92d6'/%3E%3Ccircle cx='44' cy='44' r='1.6' fill='%235b92d6'/%3E%3C/svg%3E")
    0 0 / 56px 56px repeat-x #ffffff;
  box-shadow: 0 4px 14px -6px rgba(21,44,82,.28);
}
[data-theme="azulejo"] .hl-col { position: relative; }
[data-theme="azulejo"] .hl-header { overflow: visible; }
[data-theme="azulejo"] .hl-cover { border: 1.5px solid rgba(26,75,140,.35); border-radius: 12px; }
[data-theme="azulejo"] .hl-avatar { margin-bottom: 12px; }
[data-theme="azulejo"] .hl-name { line-height: 1.1; }
[data-theme="azulejo"] .hl-sub { margin-top: 6px; color: #1a4b8c; font-weight: 600; opacity: .9; }
[data-theme="azulejo"] .hl-sub::before { content: "❖ "; color: var(--hl-accent-ink); }
[data-theme="azulejo"] .hl-sub::after { content: " ❖"; color: var(--hl-accent-ink); }
[data-theme="azulejo"] .hl-btn--secondary:hover, [data-theme="azulejo"] .hl-btn--secondary.is-hover { background: #eef4fc; }
[data-theme="azulejo"] .hl-social:hover, [data-theme="azulejo"] .hl-social.is-hover, [data-theme="azulejo"] .hl-link:hover, [data-theme="azulejo"] .hl-link.is-hover { border-color: #1a4b8c; background: #fbfdff; box-shadow: 0 10px 22px -12px rgba(21,44,82,.32); }
/* двойная фарфоровая рамка плитки */
[data-theme="azulejo"] .hl-card { box-shadow: inset 0 0 0 5px #ffffff, inset 0 0 0 6px rgba(26,75,140,.24), 0 8px 20px -12px rgba(21,44,82,.24); }
[data-theme="azulejo"] .hl-badge { border-radius: 4px; letter-spacing: .06em; text-transform: uppercase; font-size: 11px; }
[data-theme="azulejo"] .hl-card h2 { font-size: 24px; line-height: 1.18; }
[data-theme="azulejo"] .hl-price { font-family: var(--hl-font-head); font-size: 27px; color: #1a4b8c; }
[data-theme="azulejo"] .hl-lead-field input, [data-theme="azulejo"] .hl-lead-field textarea, [data-theme="azulejo"] .hl-lead-field select { border-color: rgba(26,75,140,.42); background: #f8fbff; }
[data-theme="azulejo"] .hl-foot { border-top: 1px solid rgba(26,75,140,.2); }
[data-theme="azulejo"] .hl-foot a, [data-theme="azulejo"] .hl-report a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }

/* Our own one-colour icons for networks Font Awesome lacks (includes/socials.php, assets/icons/social/):
   the SVG is a mask, the colour is the text colour — so themes paint them like Font Awesome icons. */
.hl-ico { display: inline-block; font-style: normal; line-height: 1; }
.hl-ico::before { content: ""; display: inline-block; width: 1em; height: 1em; vertical-align: -.125em; background: currentColor;
  -webkit-mask: var(--hl-ico) center / contain no-repeat; mask: var(--hl-ico) center / contain no-repeat; }
.hl-ico--max { --hl-ico: url("../icons/social/max.svg"); }
.hl-ico--zen { --hl-ico: url("../icons/social/zen.svg"); }
.hl-ico--rutube { --hl-ico: url("../icons/social/rutube.svg"); }
.hl-ico--boosty { --hl-ico: url("../icons/social/boosty.svg"); }
.hl-ico--yandex-music { --hl-ico: url("../icons/social/yandex-music.svg"); }
.hl-ico--vk-video { --hl-ico: url("../icons/social/vk-video.svg"); }
.hl-ico--avito { --hl-ico: url("../icons/social/avito.svg"); }

/* «Текст», «Вопросы и ответы», «Таймер» (includes/content_blocks.php): plain cards that take the theme's colours. */
.hl-text p { margin: 0 0 .7em; line-height: 1.55; }
.hl-text p:last-child { margin-bottom: 0; }
.hl-faq { display: flex; flex-direction: column; }
.hl-faq-item { border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.hl-faq-item:first-child { border-top: 0; }
.hl-faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; font-weight: 600; line-height: 1.35; cursor: pointer; list-style: none; }
.hl-faq-item summary::-webkit-details-marker { display: none; }
.hl-faq-item summary i { flex: none; font-size: 14px; color: var(--hl-accent-ink, var(--hl-accent)); transition: transform .2s; }
.hl-faq-item[open] summary i { transform: rotate(45deg); }
.hl-faq-answer { padding: 0 0 14px; color: var(--hl-text-muted); }
.hl-faq-answer p { margin: 0 0 .6em; line-height: 1.5; }
.hl-faq-answer p:last-child { margin-bottom: 0; }
.hl-timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.hl-timer span { display: flex; flex-direction: column; gap: 2px; padding: 10px 4px; border-radius: 14px; background: color-mix(in srgb, var(--hl-accent) 12%, transparent); }
.hl-timer b { font: 700 clamp(22px, 7vw, 30px)/1 var(--hl-font-head, inherit); font-variant-numeric: tabular-nums; }
.hl-timer small { font-size: 11.5px; color: var(--hl-text-muted); }
.hl-timer-until, .hl-timer-done { margin: 10px 0 0; text-align: center; font-size: 13px; color: var(--hl-text-muted); }
.hl-timer-done { font-size: 16px; font-weight: 600; color: inherit; }
.hl-card--text h2, .hl-card--faq h2, .hl-card--timer h2 { margin-bottom: 10px; }
.hl-card--timer h2 { text-align: center; }

/* «Галерея»: a strip that swipes sideways (snaps to each photo) or a two-column grid; square photos. */
.hl-photos { margin-top: 4px; }
.hl-photos--strip { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -4px; padding: 0 4px 2px; }
.hl-photos--strip::-webkit-scrollbar { display: none; }
.hl-photos--strip .hl-photo { flex: 0 0 78%; scroll-snap-align: center; }
.hl-photos--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hl-photo { margin: 0; min-width: 0; }
.hl-photo a { display: block; border-radius: min(var(--hl-radius-card, 20px), 16px); overflow: hidden; }
.hl-photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: min(var(--hl-radius-card, 20px), 16px); background: color-mix(in srgb, currentColor 8%, transparent); }
.hl-photo figcaption { margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: var(--hl-text-muted); }
.hl-photos:focus-visible { outline: 2px solid var(--hl-focus, var(--hl-accent)); outline-offset: 4px; border-radius: 8px; }
.hl-card--gallery { color: var(--hl-text); }
.hl-card--gallery h2 { margin-bottom: 10px; }

/* «Разделитель», «Список с иконками», «Баннер», «Карта» (includes/extra_blocks.php): added blocks in the theme's colours. */
.hl-divider { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 18px; }
.hl-divider--line::before { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, currentColor 22%, transparent); }
.hl-divider--dots span { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in srgb, var(--hl-accent) 70%, transparent); }
.hl-divider--space { min-height: 28px; }
.hl-card--list h2, .hl-card--map h2 { margin-bottom: 10px; }
.hl-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.hl-list li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
.hl-list i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: -3px; border-radius: 50%; font-size: 13px; background: var(--hl-chip-bg); color: var(--hl-chip-fg); }
.hl-banner { position: relative; display: block; margin: 0; overflow: hidden; border-radius: var(--hl-radius-card); color: #fff; text-decoration: none; background: color-mix(in srgb, currentColor 8%, transparent); }
.hl-banner img { display: block; width: 100%; height: auto; }
.hl-banner-title { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 14px; font-weight: 700; line-height: 1.3; background: linear-gradient(transparent, rgba(0,0,0,.72)); }
.hl-banner:not(:has(img)) .hl-banner-title { position: static; color: var(--hl-text); background: none; }
a.hl-banner:focus-visible { outline: 2px solid var(--hl-focus, var(--hl-accent)); outline-offset: 3px; }
.hl-map { position: relative; aspect-ratio: 4 / 3; margin: 2px 0 12px; overflow: hidden; border-radius: min(var(--hl-radius-card, 20px), 16px); background: color-mix(in srgb, currentColor 8%, transparent); }
.hl-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.hl-map--still { display: grid; place-items: center; font-size: 34px; color: var(--hl-accent-ink, var(--hl-accent));
  background-image: linear-gradient(color-mix(in srgb, currentColor 10%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, currentColor 10%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
.hl-map-address { display: flex; gap: 10px; margin: 0 0 10px; font-weight: 600; line-height: 1.4; }
.hl-map-address i { margin-top: 3px; color: var(--hl-accent-ink, var(--hl-accent)); }
.hl-card--map .hl-text { margin-bottom: 12px; color: var(--hl-text-muted); }

/* «Прайс-лист» (includes/price_blocks.php): lines «услуга ··· цена» or tariff cards swiped sideways. */
.hl-card--price h2 { margin-bottom: 8px; }
.hl-price-list { display: flex; flex-direction: column; }
.hl-price-group { margin: 14px 0 2px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--hl-text-muted); }
.hl-price-group:first-child { margin-top: 0; }
.hl-price-row { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); color: inherit; text-decoration: none; }
.hl-price-list > .hl-price-row:first-child, .hl-price-group + .hl-price-row { border-top: 0; }
.hl-price-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hl-price-name b { font-weight: 600; line-height: 1.35; }
.hl-price-name small { font-size: 13.5px; line-height: 1.4; color: var(--hl-text-muted); }
.hl-price-value { flex: none; max-width: 55%; text-align: right; line-height: 1.35; }
.hl-price-value b { font-weight: 700; white-space: nowrap; }
.hl-price-value s, .hl-tariff s { margin-right: 4px; font-size: .86em; color: var(--hl-text-muted); white-space: nowrap; }
a.hl-price-row > i { flex: none; align-self: center; font-size: 12px; color: var(--hl-accent-ink, var(--hl-accent)); }
a.hl-price-row:hover .hl-price-name b, a.hl-price-row:focus-visible .hl-price-name b { color: var(--hl-accent-ink, var(--hl-accent)); }
a.hl-price-row:focus-visible { outline: 2px solid var(--hl-focus, var(--hl-accent)); outline-offset: 2px; border-radius: 6px; }
.hl-tariffs { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -4px; padding: 6px 4px 4px; }
.hl-tariffs::-webkit-scrollbar { display: none; }
.hl-tariffs:focus-visible { outline: 2px solid var(--hl-focus, var(--hl-accent)); outline-offset: 4px; border-radius: 8px; }
.hl-tariff { flex: 0 0 82%; scroll-snap-align: center; display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; border-radius: min(var(--hl-radius-card, 20px), 18px);
  border: 1.5px solid color-mix(in srgb, currentColor 14%, transparent); }
.hl-tariff:only-child { flex-basis: 100%; }
.hl-tariff.is-popular { border-color: var(--hl-accent); box-shadow: 0 10px 24px -18px var(--hl-accent); }
.hl-tariff .hl-badge { align-self: flex-start; }
.hl-tariff h3 { margin: 0; font: var(--hl-head-weight, 700) 20px/1.2 var(--hl-font-head, inherit); }
.hl-tariff .hl-price-value { max-width: none; text-align: left; font-size: 22px; }
.hl-tariff-list { display: flex; flex-direction: column; gap: 7px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 14.5px; line-height: 1.4; }
.hl-tariff-list li { display: flex; gap: 9px; }
.hl-tariff-list i { flex: none; margin-top: 3px; font-size: 12px; color: var(--hl-accent-ink, var(--hl-accent)); }
.hl-tariff .hl-btn { margin-top: auto; }
.hl-tariff-list + .hl-btn { margin-top: 8px; }
.hl-lead-service { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--hl-chip-bg); color: var(--hl-chip-fg); font-size: 14.5px; }
.hl-lead-service[hidden] { display: none; }
.hl-lead-service span { flex: 1; min-width: 0; }
.hl-lead-service a { flex: none; color: inherit; font-size: 20px; line-height: 1; text-decoration: none; }
