@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-ext-469305ce7c.woff2) format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-d45ba0e65c.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-ext-45f3191e94.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-d2f0bbdadc.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-ext-469305ce7c.woff2) format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-d45ba0e65c.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-ext-45f3191e94.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-d2f0bbdadc.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-ext-469305ce7c.woff2) format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-d45ba0e65c.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-ext-45f3191e94.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-d2f0bbdadc.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-ext-469305ce7c.woff2) format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-d45ba0e65c.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-ext-45f3191e94.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-d2f0bbdadc.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-ext-469305ce7c.woff2) format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/inter-400-cyrillic-d45ba0e65c.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-ext-45f3191e94.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/inter-400-latin-d2f0bbdadc.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/orbitron-600-latin-ae237973cd.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/orbitron-600-latin-ae237973cd.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Orbitron";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/orbitron-600-latin-ae237973cd.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-cyrillic-823d71b4c8.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-latin-ext-30a0d35452.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-latin-8754e512b6.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-cyrillic-823d71b4c8.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-latin-ext-30a0d35452.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-latin-8754e512b6.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-cyrillic-823d71b4c8.woff2) format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-latin-ext-30a0d35452.woff2) format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/playfair-display-500-latin-8754e512b6.woff2) format("woff2");
  unicode-range: U+0-FF, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #0f1115;
  --card-bg: #171a21;
  --shell-bg: rgba(23, 26, 33, 0.62);
  --shell-border: rgba(255, 255, 255, 0.08);
  --shell-radius: 28px;
  --accent: #6c5ce7;
  --accent2: #00cec9;
  --text: #f2f2f5;
  --text-dim: #9a9db0;
  --border: #262a35;
  --danger: #ff6b6b;
  --ok: #55efc4;
  --radius: 16px;
}
:root[data-theme="light"] {
  --bg: #f5f6fa;
  --card-bg: #ffffff;
  --shell-bg: rgba(255, 255, 255, 0.75);
  --shell-border: rgba(15, 17, 21, 0.08);
  --text: #14161c;
  --text-dim: #6b6f7d;
  --border: #e3e5ec;
}
* { box-sizing: border-box; }
html { touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 12% -10%, rgba(108, 92, 231, 0.28), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(0, 206, 201, 0.16), transparent 50%),
    radial-gradient(circle at 50% 110%, rgba(108, 92, 231, 0.14), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  color: var(--text);
  line-height: 1.5;
}
a { color: var(--accent2); text-decoration: none; }
html.vk-pay-hide [data-vk-pay-gate] { display: none !important; }
.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}
.center { text-align: center; }
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  box-shadow: 0 12px 26px -12px var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}
.btn:hover { opacity: 0.97; transform: translateY(-2px); box-shadow: 0 16px 32px -10px var(--accent); }
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.btn-outline:hover { border-color: var(--accent); transform: translateY(-2px); }
label {
  display: block;
  font-size: 13px;
  color: var(--text-dim);
  margin: 16px 0 6px;
}
label:first-of-type { margin-top: 0; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=file], textarea {
  width: 100%;
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
input[type=file] { padding: 8px; color: var(--text-dim); }
textarea { resize: vertical; min-height: 90px; }
input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.media-preview-thumb-wrap:has(input:checked) img,
.media-preview-thumb-wrap:has(input:checked) video {
  opacity: 0.35;
  filter: grayscale(1);
}
.media-remove-x:has(input:checked) { background: #6b6b6b; }
.media-remove-x:has(input:checked)::after { content: "↺"; }
.portfolio-preview-item:has(input:checked) img,
.portfolio-preview-item:has(input:checked) video {
  opacity: 0.35;
  filter: grayscale(1);
}
.portfolio-remove-x:has(input:checked) { background: rgba(107, 107, 107, 0.92); }
.portfolio-remove-x:has(input:checked)::after { content: "↺"; }
.banner {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-page { text-align: center; padding-top: 12px; }
.card-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 20px;
}
.card-topbar .avatar,
.card-topbar .avatar-fallback {
  margin: 0;
  flex-shrink: 0;
}
.avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}
.avatar-crown {
  position: absolute;
  top: -10px;
  right: -6px;
  font-size: 26px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45));
}
.icon-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.icon-toggle:hover {
  color: var(--text);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.icon-toggle svg {
  width: 18px;
  height: 18px;
}
body.tpl-classic.mode-alt {
  --bg: #f4f5f8;
  --card-bg: #ffffff;
  --shell-bg: rgba(255, 255, 255, 0.78);
  --shell-border: rgba(0, 0, 0, 0.07);
  --text: #16171c;
  --text-dim: #5b5f70;
  --border: #e3e5ea;
}
body.tpl-neon.mode-alt {
  --bg: #f5f6fb;
  --card-bg: #ffffff;
  --shell-bg: rgba(255, 255, 255, 0.86);
  --shell-border: rgba(255, 47, 208, 0.22);
  --text: #14151f;
  --text-dim: #565a72;
  --border: #e7e2f5;
  --glow-a: rgba(255, 47, 208, 0.3);
  --glow-b: rgba(0, 255, 242, 0.3);
  --glow-a-soft: rgba(255, 47, 208, 0.12);
  --glow-b-soft: rgba(0, 255, 242, 0.12);
  --grid-line: rgba(108, 92, 231, 0.07);
  /* Raw --accent/--accent2 (hot pink/bright cyan) are tuned for a near-black
     background; used verbatim as foreground text/icon color on white they fail
     contrast. These "ink" tones are darkened/more saturated versions kept for
     text, icon and border roles on the white surface only. */
  --accent-ink: #c2178e;
  --accent2-ink: #00948b;
}
body.tpl-neon.mode-alt .avatar-fallback { background: #ffffff; color: var(--accent-ink); border-color: var(--accent2-ink); }
body.tpl-neon.mode-alt .role-text { color: var(--accent2-ink); }
body.tpl-neon.mode-alt .role-badge { border-color: rgba(0, 148, 139, 0.35); box-shadow: 0 0 10px rgba(0, 148, 139, 0.18); }
body.tpl-neon.mode-alt .role-badge::before { background: var(--accent2-ink); box-shadow: 0 0 6px var(--accent2-ink); }
body.tpl-neon.mode-alt .card-page h1 {
  text-shadow: none;
  background: linear-gradient(90deg, var(--accent2-ink), var(--text) 35%, var(--accent-ink) 70%, var(--accent2-ink));
  /* Сокращённое background сбрасывает background-clip на border-box — без повтора
     обрезки по тексту градиент закрашивал всю строку, а имя пропадало. */
  -webkit-background-clip: text;
  background-clip: text;
}
body.tpl-neon.mode-alt .reveal-section { background: rgba(20, 21, 31, 0.03); border-color: rgba(0, 148, 139, 0.25); }
body.tpl-neon.mode-alt .reveal-section .chevron { color: var(--accent2-ink); text-shadow: none; }
body.tpl-neon.mode-alt .icon-btn,
body.tpl-neon.mode-alt .icon-toggle { background: rgba(20, 21, 31, 0.04); }
body.tpl-neon.mode-alt .btn.save-btn {
  background: linear-gradient(135deg, var(--accent-ink), var(--accent2-ink));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 10px 24px -12px var(--accent2-ink);
}
body.tpl-neon.mode-alt .btn.save-btn::before { background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.55), transparent); }
body.tpl-neon.mode-alt .btn.save-btn:hover { box-shadow: 0 14px 30px -10px var(--accent2-ink); }
body.tpl-minimal.mode-alt {
  --bg: #17140f;
  --card-bg: #1f1b16;
  --shell-bg: rgba(23, 20, 15, 0.74);
  --shell-border: rgba(255, 255, 255, 0.08);
  --text: #f2ede4;
  --text-dim: #b8ae9d;
  --border: #332e27;
}
body.tpl-minimal.mode-alt .avatar-fallback { background: var(--accent); color: #1f1b16; }
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 10, 0.7);
  backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px 22px;
  color: var(--text);
  text-align: center;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}
.modal-box label { text-align: left; }
.modal-box input[type=text] { margin-bottom: 4px; }
.modal-close {
  /* Грани окна QR лежат ниже по разметке и накрывают крестик своим заголовком:
     в уменьшенном окне макета отступы меньше, и зоны пересекаются. */
  z-index: 3;
  position: absolute;
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 14px;
}
.modal-close:hover { color: var(--text); border-color: var(--accent); }
.modal-title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 16px;
}
.modal-hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 10px;
  line-height: 1.4;
}
.qr-img {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: block;
  margin: 0 auto;
}
.modal-box-photo { max-width: 320px; padding: 22px; }
.qr-share-btn { display: block; width: 100%; margin-top: 16px; }
.qr-flip-btn { display: block; width: 100%; margin-top: 10px; }
.qr-flip { display: grid; perspective: 1200px; }
.qr-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.qr-face-front { transform: rotateY(0deg); }
.qr-face-back { transform: rotateY(180deg); pointer-events: none; }
.qr-flip.flipped .qr-face-front { transform: rotateY(-180deg); pointer-events: none; }
.qr-flip.flipped .qr-face-back { transform: rotateY(0deg); pointer-events: auto; }
.qr-back-btn[hidden] { display: none; }
.qr-back-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.qr-back-btn:hover { color: var(--text); border-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {.qr-face { transition: none; }
}
.modal-box-picker { max-width: 320px; }
.contact-picker-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contact-picker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  text-align: left;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.contact-picker-item:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
}
.contact-picker-item .mini-tile {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  flex-shrink: 0;
}
.contact-picker-item .mini-tile svg { width: 19px; height: 19px; }
.contact-picker-item .mini-tile-txt { font-size: 14px; }
.mini-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mini-tile-txt {
  color: #fff;
  font-weight: 800;
  font-family: Arial, sans-serif;
  line-height: 1;
}
.mini-tile-tg { background: #29a9ea; }
.mini-tile-wa { background: #25d366; }
.mini-tile-max { background: #5b6eff; }
.mini-tile-vk { background: #0077ff; }
.mini-tile-ok { background: #f2720c; }
.mini-tile-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }
.folder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 34px;
  height: 34px;
}
.folder-grid .mini-tile { border-radius: 7px; }
.folder-grid .mini-tile svg { width: 12px; height: 12px; }
.folder-grid .mini-tile-txt { font-size: 9px; }
.photo-preview-img {
  width: 100%;
  max-height: 70vh;
  border-radius: var(--radius);
  object-fit: contain;
  display: block;
  margin: 0 auto;
  /* Смахивание в бок листает фото, поэтому жест не отдаём прокрутке и зумy:
     иначе браузер забирает его себе и pointerup до нас не доходит. */
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
/* Просмотр фото листается пальцем, а не прокручивается. */
#photo-preview-modal { touch-action: none; }
.card-shell {
  position: relative;
  background: var(--shell-bg);
  border: 1px solid var(--shell-border);
  border-radius: var(--shell-radius);
  padding: 40px 26px 30px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
  isolation: isolate;
}
.card-shell::before {
  content: "";
  position: absolute;
  top: -55%;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.22;
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}
.card-shell > * {
  animation: fadeInUp 0.7s cubic-bezier(0.16, 0.8, 0.24, 1) both;
}
.card-shell > *:nth-child(1) { animation-delay: 0.02s; }
.card-shell > *:nth-child(2) { animation-delay: 0.08s; }
.card-shell > *:nth-child(3) { animation-delay: 0.14s; }
.card-shell > *:nth-child(4) { animation-delay: 0.2s; }
.card-shell > *:nth-child(5) { animation-delay: 0.26s; }
.card-shell > *:nth-child(6) { animation-delay: 0.32s; }
.card-shell > *:nth-child(7) { animation-delay: 0.38s; }
.card-shell > *:nth-child(8) { animation-delay: 0.44s; }
.card-shell > *:nth-child(9) { animation-delay: 0.5s; }
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  margin: 0 auto 18px;
  display: block;
  background: var(--card-bg);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 44px -12px var(--accent);
  cursor: zoom-in;
}
.avatar-fallback {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04), 0 10px 30px -10px rgba(0, 0, 0, 0.6), 0 0 44px -12px var(--accent);
}
.card-page h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent2) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--ok, #55efc4);
  color: #05060a;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
}
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  margin: 0 0 14px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.45);
}
.role-text {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text);
}
.role-city {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.role-text + .role-city { padding-left: 8px; border-left: 1px solid var(--border); }
@keyframes role-blink {
  50% { border-color: transparent; }
}
.value-prop {
  min-height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: 0 0 24px;
  padding: 0 12px;
}
.value-prop .tw-text {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
video {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 24px;
  background: #000;
  box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.7);
}
.save-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 16px;
  border-radius: 16px;
}
.contact-row {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 18px 0 8px;
}
.icon-btn {
  flex: 0 1 50px;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.icon-btn:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 26px -12px var(--accent);
}
.icon-btn svg {
  width: 21px;
  height: 21px;
  overflow: visible;
}
button.icon-btn {
  padding: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.icon-btn.icon-web { color: var(--text-dim); }
.icon-btn.icon-mail { color: var(--text-dim); }
.legal-note {
  text-align: left;
  font-size: 10px;
  color: var(--text-dim);
  opacity: 0.7;
  line-height: 1.4;
  margin: 0 0 10px;
}
.reveal-section + .legal-note {
  margin-top: 14px;
}
.auto-save-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
  transform: translateY(140%);
  transition: transform 0.35s ease;
  max-width: 420px;
  margin: 0 auto;
}
.auto-save-banner.open { transform: translateY(0); }
.auto-save-banner-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.auto-save-banner-text {
  font-size: 13px;
  color: var(--text);
  margin: 0 22px 10px 0;
  line-height: 1.4;
}
.auto-save-banner .btn {
  width: 100%;
  text-align: center;
  padding: 12px 16px;
  font-size: 14px;
}
.auto-save-banner[hidden] { display: none; }
#add-home-btn[hidden] { display: none; }
.add-home-share {
  display: block;
  margin: 2px auto 10px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 0;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.42s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.add-home-share svg {
  display: block;
  width: 46px;
  height: 46px;
  fill: none;
  /* Системный синий айфона: в панели Safari значок именно такого цвета, по нему
     его и узнают. */
  stroke: #0a84ff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.add-home-share:active svg { opacity: 0.55; }
#add-home-banner.has-share-glyph { padding-bottom: 76px; }
.add-home-share.is-pointing {
  transform: translateY(var(--add-home-drop, 0px)) rotate(180deg) scale(0.95);
}
@keyframes add-home-nudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
.add-home-share.is-pointing svg { animation: add-home-nudge 1.2s ease-in-out infinite; }
.add-home-share[hidden] { display: none; }
.add-home-text {
  margin: 0 0 10px;
  text-align: center;
}
.add-home-preview {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: #fff;
}
.about {
  text-align: left;
  color: var(--text-dim);
  white-space: pre-wrap;
  line-height: 1.6;
}
.tw-text {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}
.tw-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--accent2);
  font-weight: 400;
  animation: role-blink 0.8s step-end infinite;
}
.reveal-section {
  text-align: left;
  margin: 24px 0 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.reveal-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  cursor: pointer;
  list-style: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  user-select: none;
}
.reveal-section summary::-webkit-details-marker,
.reveal-section summary::marker {
  display: none;
  content: "";
}
.reveal-section .chevron {
  transition: transform 0.25s ease;
  color: var(--accent2);
  font-size: 13px;
}
.reveal-section[open] .chevron { transform: rotate(180deg); }
.reveal-section summary:hover { color: var(--text); }
.reveal-content {
  padding: 0 18px 18px;
}
.reveal-content .about { padding-top: 2px; }
.portfolio-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  margin-top: 14px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.portfolio-scroll::-webkit-scrollbar { height: 6px; }
.portfolio-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}
.portfolio-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: 130px;
  height: 175px;
  border-radius: 12px;
  overflow: hidden;
  display: block;
  background: #000;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.6);
}
button.portfolio-item {
  border: none;
  padding: 0;
  cursor: zoom-in;
  font: inherit;
  color: inherit;
}
.portfolio-item img,
.portfolio-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
.report-link {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.6;
  text-align: center;
}
.report-link a { color: var(--text-dim); }
.tpl-picker {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 4px;
}
.tpl-option {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  cursor: pointer;
  text-align: center;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 10px 6px 12px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}
.tpl-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.tpl-option:has(input:checked) { border-color: var(--accent); }
.tpl-option-locked { cursor: not-allowed; opacity: 0.45; filter: grayscale(1); }
.tpl-preview-box {
  display: block;
  border-radius: 8px;
  padding: 10px 8px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.tpl-preview-avatar {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  margin: 0 auto 6px;
}
.tpl-preview-line {
  display: block;
  height: 5px;
  border-radius: 3px;
  margin: 0 auto 4px;
  width: 70%;
}
.tpl-preview-btn {
  display: block;
  height: 8px;
  border-radius: 4px;
  width: 80%;
  margin: 8px auto 0;
}
.tpl-name {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
}
.tpl-preview-classic .tpl-preview-box { background: linear-gradient(135deg, #6c5ce7, #00cec9); }
.tpl-preview-classic .tpl-preview-avatar { background: #fff; }
.tpl-preview-classic .tpl-preview-line { background: rgba(255, 255, 255, 0.85); }
.tpl-preview-classic .tpl-preview-btn { background: #fff; }
.tpl-preview-neon .tpl-preview-box { background: #030308; border: 1px solid #00fff2; box-shadow: 0 0 10px rgba(0, 255, 242, 0.4); background-image: linear-gradient(120deg, rgba(255,47,208,0.15), rgba(0,255,242,0.15)); }
.tpl-preview-neon .tpl-preview-avatar { background: transparent; border: 1px solid #ff2fd0; box-shadow: 0 0 6px rgba(0, 255, 242, 0.5); }
.tpl-preview-neon .tpl-preview-line { background: #8b8fae; }
.tpl-preview-neon .tpl-preview-btn { background: transparent; border: 1px solid #00fff2; box-shadow: 0 0 6px rgba(0, 255, 242, 0.35); }
.tpl-preview-minimal .tpl-preview-box { background: #f6f3ec; border: 1px solid #e6ddcf; }
.tpl-preview-minimal .tpl-preview-avatar { background: #201f1c; box-shadow: 0 0 0 1px #a9824f; }
.tpl-preview-minimal .tpl-preview-line { background: #cbc3b4; }
.tpl-preview-minimal .tpl-preview-btn { background: #201f1c; border: 1px solid #a9824f; }
body.tpl-neon {
  --bg: #030308;
  --card-bg: #0a0c16;
  --shell-bg: rgba(8, 10, 20, 0.6);
  --shell-border: rgba(0, 255, 242, 0.18);
  --shell-radius: 20px;
  --accent: #ff2fd0;
  --accent2: #00fff2;
  --text: #f5f5ff;
  --text-dim: #8b8fae;
  --border: #22263a;
  --ok: #00fff2;
  --radius: 8px;
  --glow-a: rgba(255, 47, 208, 0.45);
  --glow-b: rgba(0, 255, 242, 0.45);
  --glow-a-soft: rgba(255, 47, 208, 0.18);
  --glow-b-soft: rgba(0, 255, 242, 0.18);
  --grid-line: rgba(0, 255, 242, 0.055);
}
body.tpl-neon {
  background:
    repeating-linear-gradient(0deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 42px),
    repeating-linear-gradient(90deg, var(--grid-line) 0px, var(--grid-line) 1px, transparent 1px, transparent 42px),
    radial-gradient(circle at 15% -10%, var(--glow-a-soft), transparent 45%),
    radial-gradient(circle at 90% 8%, var(--glow-b-soft), transparent 50%),
    radial-gradient(circle at 50% 115%, var(--glow-a-soft), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  animation: neon-grid-drift 16s linear infinite;
}
@keyframes neon-grid-drift {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 84px, 84px 0, 0 0, 0 0, 0 0, 0 0; }
}
body.tpl-neon .card-shell {
  border: 1px solid transparent;
  background-image:
    linear-gradient(var(--shell-bg), var(--shell-bg)),
    linear-gradient(120deg, var(--accent), var(--accent2), var(--accent), var(--accent2));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: auto, 300% 300%;
  box-shadow: 0 0 0 1px rgba(0, 255, 242, 0.08), 0 30px 70px -24px var(--glow-a-soft), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  animation: neon-border-flow 9s ease infinite;
  position: relative;
}
@keyframes neon-border-flow {
  0% { background-position: 0 0, 0% 50%; }
  50% { background-position: 0 0, 100% 50%; }
  100% { background-position: 0 0, 0% 50%; }
}
body.tpl-neon .card-shell::before {
  background: radial-gradient(circle, var(--accent2) 0%, transparent 70%);
  opacity: 0.28;
}
body.tpl-neon .card-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
  opacity: 0.5;
  pointer-events: none;
  z-index: 2;
}
body.tpl-neon .avatar,
body.tpl-neon .avatar-fallback {
  animation: neon-pulse 2.6s ease-in-out infinite;
}
@keyframes neon-pulse {
  0%, 100% { box-shadow: 0 0 0 1px var(--accent), 0 0 22px var(--glow-b), 0 0 38px var(--glow-a-soft); }
  50% { box-shadow: 0 0 0 1px var(--accent2), 0 0 34px var(--glow-b), 0 0 54px var(--glow-a); }
}
body.tpl-neon .avatar { border-color: var(--accent2); }
body.tpl-neon .avatar-fallback {
  background: #05060a;
  border: 2px solid var(--accent2);
  color: var(--accent2);
}
body.tpl-neon .card-page h1 {
  font-family: "Orbitron", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-shadow: 0 0 16px var(--glow-a);
  background: linear-gradient(90deg, var(--accent2), var(--text) 35%, var(--accent) 70%, var(--accent2));
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: neon-text-shift 7s linear infinite;
}
@keyframes neon-text-shift {
  to { background-position: -250% 0; }
}
body.tpl-neon .role-badge {
  background: var(--glow-b-soft);
  border: 1px solid rgba(0, 255, 242, 0.3);
  box-shadow: 0 0 18px var(--glow-b-soft);
  position: relative;
}
body.tpl-neon .role-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2), 0 0 14px var(--accent2);
  animation: neon-dot-blink 1.6s ease-in-out infinite;
}
@keyframes neon-dot-blink { 50% { opacity: 0.35; } }
body.tpl-neon .role-text {
  font-family: "Orbitron", monospace;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 12px;
}
body.tpl-neon .value-prop .tw-text {
  font-family: "Orbitron", monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
}
body.tpl-neon .reveal-section {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(0, 255, 242, 0.16);
  position: relative;
}
body.tpl-neon .reveal-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}
body.tpl-neon .reveal-section summary { font-family: "Orbitron", monospace; text-transform: uppercase; }
body.tpl-neon .reveal-section .chevron { color: var(--accent2); text-shadow: 0 0 8px var(--accent2); }
body.tpl-neon .portfolio-item {
  box-shadow: 0 0 0 1px rgba(0, 255, 242, 0.18), 0 10px 24px -14px var(--glow-a-soft);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
body.tpl-neon .portfolio-item:hover {
  box-shadow: 0 0 0 1px var(--accent2), 0 0 22px var(--glow-b);
  transform: translateY(-3px);
}
body.tpl-neon .btn.save-btn {
  background: transparent;
  border: 1px solid var(--accent2);
  color: var(--accent2);
  box-shadow: 0 0 16px var(--glow-b-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: "Orbitron", sans-serif;
  position: relative;
  overflow: hidden;
}
body.tpl-neon .btn.save-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: neon-shine 3.4s ease-in-out infinite;
}
@keyframes neon-shine {
  0% { left: -60%; }
  55%, 100% { left: 130%; }
}
body.tpl-neon .btn.save-btn:hover {
  box-shadow: 0 0 26px var(--glow-b);
}
body.tpl-neon .icon-btn { background: rgba(255, 255, 255, 0.02); }
body.tpl-neon .icon-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--glow-a-soft);
}
body.tpl-neon .about { color: var(--text-dim); }
body.tpl-neon .icon-toggle { background: rgba(255, 255, 255, 0.02); }
body.tpl-neon .icon-toggle:hover {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--glow-a-soft);
}
body.tpl-neon .modal-box {
  border-color: rgba(0, 255, 242, 0.16);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.7), 0 0 40px var(--glow-b-soft);
}
@media (prefers-reduced-motion: reduce) {body.tpl-neon,
  body.tpl-neon .card-shell,
  body.tpl-neon .avatar,
  body.tpl-neon .avatar-fallback,
  body.tpl-neon .card-page h1,
  body.tpl-neon .role-badge::before,
  body.tpl-neon .btn.save-btn::before {
    animation: none !important;
  }
}
body.tpl-minimal {
  --bg: #f6f3ec;
  --card-bg: #fffdfa;
  --shell-bg: rgba(255, 253, 250, 0.88);
  --shell-border: rgba(32, 31, 28, 0.08);
  --shell-radius: 10px;
  --accent: #a9824f;
  --accent2: #201f1c;
  --text: #201f1c;
  --text-dim: #8a8579;
  --border: #e6ddcf;
  --ok: #6b8f6b;
  --radius: 3px;
}
body.tpl-minimal { font-family: "Inter", -apple-system, sans-serif; }
body.tpl-minimal .card-shell {
  box-shadow: 0 24px 55px -30px rgba(32, 31, 28, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  position: relative;
}
body.tpl-minimal .card-shell::before { opacity: 0.12; }
body.tpl-minimal .card-shell::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid var(--border);
  pointer-events: none;
  z-index: 3;
}
body.tpl-minimal .avatar {
  border: 1px solid var(--card-bg);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -14px rgba(32, 31, 28, 0.35);
}
body.tpl-minimal .avatar-fallback {
  background: var(--accent2);
  color: var(--card-bg);
  font-family: "Playfair Display", Georgia, serif;
  box-shadow: 0 0 0 1px var(--accent), 0 10px 26px -14px rgba(32, 31, 28, 0.35);
}
body.tpl-minimal .card-page h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  color: var(--text);
}
body.tpl-minimal .card-page h1::after {
  content: "❖";
  display: block;
  margin: 12px auto 0;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
body.tpl-minimal .role-badge {
  background: transparent;
  border: 1px solid var(--accent);
}
body.tpl-minimal .role-text { font-style: italic; font-family: "Playfair Display", Georgia, serif; }
body.tpl-minimal .value-prop .tw-text { font-style: italic; font-family: "Playfair Display", Georgia, serif; }
body.tpl-minimal .value-prop .tw-cursor { color: var(--accent); }
body.tpl-minimal .reveal-section {
  border-radius: 2px;
  box-shadow: none;
}
body.tpl-minimal .reveal-section summary { letter-spacing: 0.1em; }
body.tpl-minimal .reveal-section .chevron { color: var(--accent); }
body.tpl-minimal .portfolio-item { border-radius: 2px; box-shadow: none; border: 1px solid var(--border); }
body.tpl-minimal .btn.save-btn {
  background: linear-gradient(135deg, #2c2a26, var(--accent2) 55%, #2c2a26);
  border: 1px solid rgba(169, 130, 79, 0.5);
  border-radius: 2px;
  letter-spacing: 0.05em;
  box-shadow: 0 12px 26px -14px rgba(32, 31, 28, 0.5);
}
body.tpl-minimal .icon-btn {
  border-radius: 2px;
  box-shadow: none;
}
body.tpl-minimal .icon-btn:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 20px -12px rgba(169, 130, 79, 0.55);
}
body.tpl-minimal .about {
  font-family: "Playfair Display", Georgia, serif;
  font-style: italic;
}
body.tpl-minimal .icon-toggle { border-radius: 2px; }
body.tpl-minimal .icon-toggle:hover { box-shadow: 0 8px 16px -10px rgba(169, 130, 79, 0.5); }
body.tpl-minimal .modal-box { border-radius: 2px; box-shadow: none; }
body.tpl-minimal .modal-close { border-radius: 2px; }
body.tpl-minimal .qr-img { border-radius: 2px; }
@keyframes chat-dot-pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5); }
  70% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}
@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
@keyframes chat-controls-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes landingGlowPulse {
  0%, 100% { opacity: 0.25; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.45; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes landingMockupFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 14px;
  padding-top: 2px;
}
.team-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease;
}
.team-tile:hover { transform: translateY(-3px); }
.team-tile:hover .team-tile-name { color: var(--accent2); }
.team-tile-avatar-wrap {
  position: relative;
  display: inline-flex;
}
.team-tile-avatar,
.team-tile-avatar-fallback {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.team-tile-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
.team-tile-leader .team-tile-avatar,
.team-tile-leader .team-tile-avatar-fallback {
  border-color: var(--accent2);
}
.team-tile-crown {
  position: absolute;
  top: -8px;
  right: -4px;
  font-size: 18px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}
.team-tile-name {
  font-size: 12px;
  font-weight: 600;
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.team-tile-role {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/static/fonts/inter-400-ruble-be88487fa8.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/static/fonts/inter-400-ruble-be88487fa8.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/static/fonts/inter-400-ruble-be88487fa8.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/static/fonts/inter-400-ruble-be88487fa8.woff2) format("woff2");
  unicode-range: U+20BD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/static/fonts/inter-400-ruble-be88487fa8.woff2) format("woff2");
  unicode-range: U+20BD;
}
