/* Шрифты лежат на своём сервере. Через @import с fonts.googleapis.com
   страница не рисовалась до ответа Google: у мобильных операторов в РФ
   без VPN запрос висел десятками секунд, и в мини-аппе крутился вечный
   загрузчик. @import в CSS блокирует отрисовку целиком. */
/* cyrillic-ext */
@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+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@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+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@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+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@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+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic-ext */
@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+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* cyrillic */
@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+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@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+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, 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;
}
/* latin */
@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+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, 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; }

/* VK 5.4.1: оплата/переходы к оплате скрыты в нативных клиентах VK (не vk.ru/m.vk.ru) — см. vk-compliance.js */
html.vk-pay-hide [data-vk-pay-gate] { display: none !important; }
.vk-pay-fallback { display: none; }
/* .btn и .link-btn объявлены ниже с той же специфичностью и перебивали строчку выше —
   из-за этого запасная кнопка «оплатить на сайте» показывалась рядом с обычной даже
   в браузере, где оплата и так работает. */
html:not(.vk-pay-hide) .vk-pay-fallback { display: none; }
html.vk-pay-hide .vk-pay-fallback { display: block; }
.link-btn { background: none; border: none; padding: 0; margin: 0; font: inherit; color: var(--accent2); text-decoration: underline; cursor: pointer; }

.wrap {
  max-width: 480px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.center { text-align: center; }

/* --- Home --- */
.hero {
  padding: 48px 0 24px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.hero p {
  color: var(--text-dim);
  margin: 0 0 32px;
}

.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); }

.features {
  margin-top: 40px;
  display: grid;
  gap: 12px;
}

.feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: left;
}

.feature b { display: block; margin-bottom: 4px; }
.feature span { color: var(--text-dim); font-size: 14px; }

/* --- Forms --- */
.form-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.form-card h2 { margin-top: 0; }

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);
}

.hint {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
  line-height: 1.4;
}

/* Функция, недоступная на тарифе: контрол остаётся на месте, но гасится и не
   кликается. Внутри приложения ВК подсказки [data-vk-pay-gate] скрыты правилом
   5.4.1, поэтому без .lock-note человек видел просто мёртвое поле без причины. */
.feature-locked { opacity: 0.45; filter: grayscale(1); cursor: not-allowed; }
.lock-note {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  margin: 6px 0 2px;
}

.media-preview {
  margin-bottom: 8px;
}

.media-preview-thumb-wrap {
  position: relative;
  display: inline-block;
}

.media-preview-thumb-wrap:has(input:checked) img,
.media-preview-thumb-wrap:has(input:checked) video {
  opacity: 0.35;
  filter: grayscale(1);
}

.media-preview-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0f1115;
  display: block;
}

.media-preview-video-thumb {
  width: 96px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #0f1115;
  display: block;
}

.media-remove-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ff5c5c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  border: 2px solid var(--bg, #14161c);
  line-height: 1;
}

.media-remove-x::after { content: "✕"; }
.media-remove-x:has(input:checked) { background: #6b6b6b; }
.media-remove-x:has(input:checked)::after { content: "↺"; }

.media-remove-x input[type=checkbox] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

/* Ставим в левый нижний угол: крестик удаления занимает правый верхний,
   а у портфолио рамка обрезает содержимое, поэтому вылезать за край нельзя. */
.media-rotate-btn {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(15, 17, 21, 0.78);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.media-rotate-btn:disabled { opacity: 0.45; cursor: default; }

.portfolio-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.portfolio-preview-item {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #0f1115;
  border: 1px solid var(--border);
}

.portfolio-preview-item img, .portfolio-preview-item video {
  width: 100%;
  height: 88px;
  object-fit: cover;
  display: block;
}

.portfolio-preview-item:has(input:checked) img,
.portfolio-preview-item:has(input:checked) video {
  opacity: 0.35;
  filter: grayscale(1);
}

.portfolio-remove-x {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 92, 92, 0.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.portfolio-remove-x::after { content: "✕"; }
.portfolio-remove-x:has(input:checked) { background: rgba(107, 107, 107, 0.92); }
.portfolio-remove-x:has(input:checked)::after { content: "↺"; }

.portfolio-remove-x input[type=checkbox] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.actions { margin-top: 24px; }

.banner {
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 14px;
}

.banner-ok { background: rgba(85, 239, 196, 0.12); color: var(--ok); border: 1px solid rgba(85,239,196,0.3); }
.banner-error { background: rgba(255, 107, 107, 0.12); color: var(--danger); border: 1px solid rgba(255,107,107,0.3); }

.topnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  padding: 4px 0 0;
  font-size: 14px;
}

.nav-account { color: var(--text-dim); margin-right: auto; }
.nav-link { color: var(--text); font-weight: 500; }
.nav-link:hover { color: var(--accent2); }
.nav-link-account { display: flex; align-items: center; gap: 8px; }
.nav-account-avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.nav-account-avatar-fallback { display: flex; align-items: center; justify-content: center; background: var(--accent2); color: #fff; font-weight: 700; font-size: 13px; }
.nav-account-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0 0;
  flex-wrap: nowrap;
}

/* Нативный VK-клиент на iOS рисует свой "✕"/"..." хедер поверх страницы без
   отступа под него — сдвигаем шапку с бутербродом ниже, чтобы кнопки не
   перекрывались (см. vk-compliance.js). */
.vk-ios-native .profile-header { margin-top: 8vh; }

.profile-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-shrink: 1;
  text-decoration: none;
  color: inherit;
}

.profile-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
  background: var(--card-bg);
}

.profile-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.profile-name {
  display: block;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-sub {
  display: block;
  color: var(--text-dim);
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-icon-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px;
  border-radius: 999px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.nav-icon-btn:hover { color: var(--accent); }

.profile-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  margin-left: auto;
}

.profile-stat-chip {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  flex-shrink: 1;
}

/* Тот же значок без перехода: .vk-pay-fallback по умолчанию display:block, а в шапке
   нужен inline-block, иначе значок растягивается и наезжает на кнопку меню. */
html.vk-pay-hide .profile-stat-chip-static { display: inline-block; }
.profile-stat-chip-static { cursor: default; }

.profile-stat-chip-urgent {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.3);
  color: var(--danger);
}

.nav-icon-glyph {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.06);
  flex: 0 0 auto;
}

.burger-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  margin: -2px 0 16px;
}

.burger-menu.open { display: flex; }

.burger-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 10px;
  background: none;
  color: var(--text-dim);
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.burger-item:hover { background: rgba(255, 255, 255, 0.04); color: var(--text); }

.burger-item.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}

.burger-item-danger { color: var(--danger); }
.burger-item-danger:hover { background: rgba(255, 107, 107, 0.1); color: var(--danger); }

.btn-danger {
  display: inline-block;
  background: var(--danger);
  color: #fff;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.btn-danger:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline-danger { color: var(--danger); border-color: rgba(255, 107, 107, 0.35); }
.btn-outline-danger:hover { border-color: var(--danger); background: rgba(255, 107, 107, 0.08); }

.site-footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 2;
}

.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--accent2); }

/* Ссылки переносятся целиком: nowrap на самой ссылке не даёт порвать
   «Пользовательское соглашение» посередине, а перенос идёт между ссылками.
   overflow-x:auto тут давал горизонтальную полосу прокрутки во всю ширину. */
.site-footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 18px; }
.site-footer-links a, .site-footer-links span { white-space: nowrap; }

@media (max-width: 480px) {
  .site-footer-links { gap: 2px 14px; }
}

.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-row + .settings-row {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.auth-switch {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-dim);
}

.auth-divider {
  text-align: center;
  color: var(--text-dim);
  font-size: 12px;
  margin: 18px 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn-vk {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #0077ff;
  color: #fff;
  font-weight: 600;
  padding: 13px 20px;
  border-radius: 999px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-vk:hover { opacity: 0.92; transform: translateY(-2px); }

/* Тот же силуэт, что у кнопки ВК: два способа входа должны выглядеть
   равноправно, отличает их только фирменный цвет мессенджера. */
.btn-tg {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  background: #2aabee;
  color: #fff;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  border: none;
  cursor: pointer;
  padding: 13px 20px;
  border-radius: 999px;
  margin-top: 10px;
  text-decoration: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn-tg:hover { opacity: 0.92; transform: translateY(-2px); }
.btn-tg[disabled] { opacity: 0.6; cursor: default; transform: none; }

.tg-login-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-dim);
  text-align: center;
}

.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 32px 16px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.dashboard-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.dashboard-list .hero-card { margin-top: 0; }

/* Шапка кабинета и именное приветствие уезжают вверх вместе со списком и там
   остаются: кто ты и сколько дней по тарифу видно на любой глубине прокрутки.
   Боковые поля .wrap гасятся отрицательным margin, чтобы фон закрывал экран во
   всю ширину. z-index 45 — выше нижнего меню (40) и ниже окон (100), поэтому
   окна из _nav.html, лежащие внутри этого блока, по-прежнему накрывают всё.
   Высота блока при прилипании не меняется (тень вместо рамки) — иначе список
   под ним прыгал бы на высоту исчезнувшей строки. */
.dash-head {
  position: sticky;
  top: 0;
  z-index: 45;
  margin: 0 -16px;
  padding: 0 16px 10px;
  /* Тот же фон, что у страницы, и так же приколоченный к окну: иначе плашка
     вырезала бы из сиреневой подсветки ровный прямоугольник. Нижний слой
     непрозрачный — список под шапкой не просвечивает. */
  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;
}

/* Ряд из двух действий исчезает целиком, когда обе плитки спрятаны: на
   компьютере «QR на рабочий стол» не показывается, а пустой отступ от ряда
   оставался бы. */
.dash-action-row:not(:has(.dash-action-tile:not([hidden]))) { display: none; }

.dash-head-mark { height: 1px; margin-bottom: -1px; }

.dash-head.is-stuck { box-shadow: 0 1px 0 var(--border), 0 14px 22px -16px rgba(0, 0, 0, 0.7); }

/* Отступ под «✕»/«...» нативного клиента iOS переезжает на всю прилипающую
   шапку — и как начальный сдвиг, и как точка остановки при прокрутке. */
.vk-ios-native .dash-head { top: 8vh; margin-top: 8vh; }
.vk-ios-native .dash-head .profile-header { margin-top: 0; }

.dash-greeting { margin-top: 18px; }
.dash-greeting h1 { font-size: 20px; margin: 0 0 4px; }
.dash-greeting-sub { color: var(--text-dim); font-size: 14px; margin: 0; }

.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;
}
.hero-card-links { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-card-links .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 12px;
  font-size: 13px;
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-card-links .btn-icon { font-size: 14px; line-height: 1; flex-shrink: 0; }

@media (max-width: 420px) {
  .hero-card-links { gap: 4px; }
  .hero-card-links .btn-outline { padding: 8px 4px; font-size: 10.3px; gap: 3px; flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .hero-card-links .btn-icon { font-size: 10.8px; }
}

@media (max-width: 375px) {
  .hero-card-links { gap: 3px; }
  .hero-card-links .btn-outline { padding: 8px 3px; font-size: 9.4px; gap: 2px; }
  .hero-card-links .btn-icon { font-size: 10px; }
}

@media (max-width: 340px) {
  .hero-card-links .btn-outline { padding: 8px 2px; font-size: 8.4px; gap: 2px; }
  .hero-card-links .btn-icon { font-size: 9px; }
}

.publish-toggle-wrap { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.publish-toggle-status { color: var(--text-dim); font-size: 12px; font-weight: 600; }
.publish-toggle { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; }
.publish-toggle-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}
.publish-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background .2s;
}
.publish-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
  box-shadow: 0 1px 3px rgba(0,0,0,.35);
}
.publish-toggle-input:checked ~ .publish-toggle-track { background: #2ecc71; }
.publish-toggle-input:checked ~ .publish-toggle-track .publish-toggle-thumb { transform: translateX(16px); }
.publish-toggle-input:disabled { cursor: default; }

.stats-section { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border); }
.stats-period-toggle { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.stats-period-btn { border: 1px solid var(--border); background: var(--card-bg); color: var(--text-dim); font-size: 11px; font-weight: 600; padding: 5px 12px; border-radius: 999px; cursor: pointer; font-family: inherit; }
.stats-period-btn.active { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; border-color: transparent; }

@media (max-width: 420px) {
  .stats-period-toggle { flex-wrap: nowrap; gap: 4px; }
  .stats-period-btn { flex: 1 1 0; min-width: 0; padding: 5px 4px; font-size: 10.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }
}

@media (max-width: 375px) {
  .stats-period-toggle { gap: 3px; }
  .stats-period-btn { padding: 5px 3px; font-size: 9.4px; }
}

@media (max-width: 340px) {
  .stats-period-btn { padding: 5px 2px; font-size: 8.4px; }
}

.stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-tile { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 8px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 22px; font-weight: 700; }
.stat-label { color: var(--text-dim); font-size: 11px; margin-top: 2px; min-height: 28px; display: flex; align-items: center; justify-content: center; line-height: 1.3; }

.completion-card {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.completion-head { font-size: 14px; }

.completion-bar {
  margin-top: 10px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.completion-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  transition: width 0.3s ease;
}

.completion-next { margin-top: 10px; font-size: 13px; color: var(--text-dim); }

.completion-done-card { text-align: center; }
.completion-done-card b { font-size: 15px; }
.completion-done-sub { color: var(--text-dim); font-size: 13px; margin: 6px 0 0; }

.completion-cta {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 10px 16px;
  font-size: 13px;
}

.hero-cta-primary { display: block; width: 100%; text-align: center; margin: 2px 0 6px; box-shadow: 0 6px 14px -9px var(--accent); }

.mini-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.mini-preview-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card-bg);
}

.mini-preview-avatar-fallback {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.mini-preview-avatar-wrap { position: relative; flex-shrink: 0; }
.mini-preview-avatar-wrap[data-photo-src] { cursor: pointer; }

.mini-preview-info { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; }
.mini-preview-info b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-preview-role { color: var(--text-dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-preview-btn { flex-shrink: 0; padding: 8px 14px; font-size: 12px; }

.stat-delta { min-height: 14px; font-size: 11px; font-weight: 700; margin-top: 3px; white-space: nowrap; }
.stat-delta-up { color: #2ecc71; }
.stat-delta-down { color: #ff6b6b; }

.completion-v2 .completion-pitch { color: var(--text-dim); font-size: 13px; margin: 10px 0 0; }
.completion-v2 .completion-cta { margin-top: 12px; }

/* Два главных действия с визиткой — равные плитки в один ряд. Сетка, а не flex:
   скрытую кнопку (на компьютере рабочего стола нет) display:none выносит из
   сетки целиком, и оставшаяся плитка честно занимает всю ширину. */
.dash-action-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.dash-action-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

/* Два главных действия различаются цветом, а не только подписью: так их видно
   как пару кнопок, а не как два одинаковых серых прямоугольника. */
.dash-action-tile[data-add-home-slug] {
  border-color: rgba(0, 206, 201, 0.4);
  background: linear-gradient(180deg, rgba(0, 206, 201, 0.16), rgba(0, 206, 201, 0.04));
}

.dash-action-tile[data-action="story"] {
  border-color: rgba(108, 92, 231, 0.45);
  background: linear-gradient(180deg, rgba(108, 92, 231, 0.2), rgba(108, 92, 231, 0.05));
}

.dash-action-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.dash-action-tile[hidden] { display: none; }
.dash-action-ico { font-size: 22px; line-height: 1; }
.dash-action-label { display: block; }

/* Поле, к которому кабинет привёл редактор по ?focus=. Подсветка нужна, чтобы
   человек увидел, куда его привезли: прокрутка сама по себе этого не говорит. */
.field-called {
  animation: fieldCalled 2.4s ease-out;
  border-color: var(--accent) !important;
}

@keyframes fieldCalled {
  0%, 70% { box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(108, 92, 231, 0); }
}

.wrap-bottom-nav { padding-bottom: 88px; }

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 4px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  padding: 6px 4px;
  border: none;
  background: none;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
  text-decoration: none;
  transition: color 0.2s ease;
}

.bottom-nav-item:hover { color: var(--accent); }
.bottom-nav-icon { font-size: 19px; }

.burger-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 4px;
}

.editor-topbar {
  margin-bottom: 14px;
}

.editor-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.editor-back:hover { color: var(--accent2); }

.link-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.link-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1 1 220px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.link-chip:hover { border-color: var(--accent); transform: translateY(-2px); }

.section-title {
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--text-dim);
  margin: 28px 0 10px;
}

/* --- Public card --- */
.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;
}

/* --- Alternate light/dark surface toggle (independent of chosen theme) --- */
/* Each theme gets its own explicit light/dark pair, so accent glows and
   hardcoded shadow colors stay coherent instead of leaking between themes. */
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;
}

/* Neon default is dark ("HUD on black"); mode-alt flips to "neon on white" —
   same signature accent hues, softened glow intensity, readable dark text. */
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); }

/* Minimal default is light ("cream editorial"); mode-alt flips to a warm
   "dark academia" library-card palette — same gold accent, deep espresso base. */
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; }

/* --- Modals (QR / save-contact) --- */
.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;
}

/* Значок QR рядом с реферальной ссылкой в VIP-блоке — квадратный, чтобы не
   растягивать строку с полем ввода и кнопкой «Копировать». */
.ref-qr-icon {
  flex: 0 0 auto;
  padding: 0;
  width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
}

.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; }

/* Зеркало .modal-close: тот же размер и тот же отступ, только слева — так
   стрелка и крестик стоят ровно на одной линии. Кнопка лежит в .modal-box,
   а не в грани: у грани есть transform, и отсчёт absolute шёл бы от неё. */
.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; }
}

.qr-change-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  padding: 4px;
}
.qr-change-btn:hover { color: var(--accent2); }

.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;
}

.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 (BUSINESS) --- */
.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 (static) --- */
.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 proposition: cycling typewriter directly under role --- */
.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; }
/* Атрибут hidden сам по себе слабее класса .btn с его display — без этой
   строки на айфоне оставалась видимой кнопка, которой там нечего делать. */
#add-home-btn[hidden] { display: none; }
/* Значок «Поделиться» как в нижней панели Safari: по центру, крупно, чтобы
   человек узнал его глазами и нашёл такой же у себя в браузере. */
.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; }
/* По нажатию значок переворачивается стрелкой вниз, съезжает к нижнему краю
   подсказки — туда, где стоит настоящая кнопка Safari — и остаётся там кивать,
   пока человек не нажмёт ещё раз. Открыть панель Safari со страницы нельзя, так
   что это единственный честный способ показать направление. Смещение именно
   transform-ом: слот значка не меняется, поэтому текст подсказки не съезжает.
   Масштаб 0.95 — чтобы в нижнем положении значок не наваливался на строку. */
.add-home-share.is-pointing {
  transform: translateY(var(--add-home-drop, 0px)) rotate(180deg) scale(0.95);
}
/* Кивок уже в перевёрнутой системе координат: минус по Y — это вниз по экрану. */
@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; }
/* Атрибут hidden слабее display: block выше — без этой строки значок остаётся
   виден там, где его нечем открыть. */
.add-home-share[hidden] { display: none; }
/* Строка идёт ровно под значком и по середине — отступ справа под крестик
   здесь не нужен, иначе текст уезжает влево от центра. */
.add-home-text {
  margin: 0 0 10px;
  text-align: center;
}

/* Кнопка живёт в ряду .dash-action-row и размер берёт оттуда. Здесь остаётся
   только скрытие: без него display:grid ряда перебил бы атрибут hidden и
   показал бы кнопку на компьютере, где рабочего стола нет. */
.add-home-open-btn[hidden] { display: none; }
/* Белая подложка обязательна: поля у кода белые, и на тёмном фоне без неё
   край выглядел бы обрезанным ровно по границе QR. */
.add-home-preview {
  display: block;
  width: 108px;
  height: 108px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: #fff;
}
.add-home-toggle { margin-top: 14px; }
.add-home-steps {
  margin: 12px 0 14px;
  padding-left: 20px;
  text-align: left;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-dim);
}
.add-home-steps li { margin-bottom: 7px; }
.add-home-steps li:last-child { margin-bottom: 0; }
.add-home-go { width: 100%; text-align: center; }

/* --- Contact-icon reorder list (editor) --- */
.reorder-list {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reorder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
}

.reorder-btns { display: flex; gap: 6px; flex-shrink: 0; }

.reorder-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.reorder-btn:hover { border-color: var(--accent); background: rgba(108, 92, 231, 0.12); }

/* --- Embed-code widget (editor) --- */
.embed-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-all;
}

.embed-preview {
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.card-page .section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  margin: 0 0 12px;
}

.card-page .section-title::before,
.card-page .section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.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;
}

/* --- "Ещё обо мне" — collapsible accordion (native <details>) --- */
.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: tap-through / swipeable gallery --- */
.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;
}

.footer-note {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  opacity: 0.85;
}

.footer-note a { color: var(--text-dim); }

.report-link {
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.6;
  text-align: center;
}

.report-link a { color: var(--text-dim); }

/* --- Template picker (in editor) --- */
.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-line.short { width: 45%; }

.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; }

/* ================================================
   Public card themes — selected via body.tpl-<name>
   ================================================ */

/* --- Neon: cyberpunk HUD --- */
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);
}

/* Drifting grid floor + soft twin glow, layered under the base radial glow */
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; }
}

/* Flowing gradient border ring (double-background-clip trick — no Houdini needed) */
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;
}

/* Faint CRT scanlines painted over the whole shell, purely decorative */
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;
  }
}

/* --- Minimal: editorial luxury --- */
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;
}

/* Clean sans as the default voice; serif is reserved for the name/role/about
   (a deliberate editorial pairing, rather than serif-everywhere). */
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; }

/* Thin inset frame line — a nod to invitation/stationery card borders */
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; }

/* --- Onboarding chat wizard --- */
.chat-shell {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

.chat-header-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat-header-name { font-size: 16px; font-weight: 700; }
.chat-header-status {
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-header-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ecc71;
  flex-shrink: 0;
  animation: chat-dot-pulse 2s infinite;
}
@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); }
}

.chat-log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 16px;
}
/* Переписку прижимаем к низу автоотступом, а не justify-content: flex-end.
   При flex-end всё лишнее вылезает за верхний край, и браузер не даёт полосы
   прокрутки вовсе: scrollHeight остаётся равен высоте окна, а первые реплики
   уезжают в минус — достать их нельзя ни пальцем, ни скриптом. Автоотступ
   даёт ровно тот же вид, но лог остаётся прокручиваемым. */
.chat-log > *:first-child { margin-top: auto; }

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-bubble-bot {
  align-self: flex-start;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-bubble-skip {
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text-dim);
  font-size: 13px;
}

.chat-bubble-image {
  padding: 10px;
  display: flex;
  justify-content: center;
}

.chat-bubble-link a {
  color: var(--accent2);
  font-weight: 700;
  word-break: break-all;
  text-decoration: underline;
}

.chat-avatar-preview {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Код сканируют с чужого телефона прямо с этого экрана, поэтому белый фон под
   ним обязателен: на тёмной теме камера не читает код без светлых полей. */
.chat-qr-preview {
  width: 240px;
  max-width: 70vw;
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  display: block;
}

.chat-bubble-demo {
  text-align: center;
  padding: 16px;
}

.chat-demo-label {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.chat-demo-name {
  font-weight: 700;
  font-size: 15px;
}

.chat-demo-role {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 2px;
}

.chat-bubble-demo .value-prop { margin: 10px 0 0; padding: 0; }

/* Уменьшенная визитка в переписке: сам макет уже «карточка» со своей рамкой и
   тенью, поэтому пузырь под ним прозрачный — иначе получается рамка в рамке. */
.chat-bubble-mockup {
  max-width: 100%;
  padding: 0;
  background: none;
  border: 0;
}

/* Макет на главной парит вверх-вниз, чтобы привлечь внимание. В переписке под
   ним сразу идут кнопки — от парения дёргается вся лента, поэтому замираем.
   И он ощутимо ниже страничного: на телефоне лента переписки высотой около
   430 px, а полноразмерный макет (417 px) уезжал под верхний край вместе с
   аватаркой — человек видел визитку без лица. Ширина записана вместе с
   .landing-mockup: ниже по файлу мобильная правка ширины макета, одним
   классом её не перебить. */
.landing-mockup.chat-mockup {
  animation: none;
  margin: 0;
  width: 230px;
  padding: 16px 14px;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.6);
}
.chat-mockup .landing-mockup-avatar { width: 52px; height: 52px; margin-bottom: 10px; }
.chat-mockup .landing-mockup-name { font-size: 14px; margin-bottom: 6px; }
.chat-mockup .landing-mockup-role { font-size: 10px; padding: 3px 10px; margin-bottom: 8px; }
.chat-mockup .landing-mockup-tagline { margin-bottom: 12px; }
.chat-mockup .landing-mockup-tagline .tw-text { font-size: 11.5px; }
.chat-mockup .landing-mockup-btn { height: 32px; font-size: 12px; margin-bottom: 12px; }
.chat-mockup .landing-mockup-icons { margin-bottom: 12px; }

/* В макете главной в этом круге лежит логотип 34 px по центру, а здесь —
   настоящее фото из профиля, которое должно заполнить круг целиком. */
.chat-mockup .landing-mockup-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
/* Запасной знак — не фото: растянутый на весь круг он выглядит обрезанным. */
.chat-mockup .landing-mockup-avatar img.lm-avatar-mark {
  width: 28px; height: 28px; border-radius: 0; object-fit: contain;
}

/* Деятельность и город стоят в одной плашке, как .role-badge на боевой. */
.chat-mockup .landing-mockup-role { gap: 5px; }
.chat-mockup .lm-role-city { color: var(--muted); font-weight: 600; }


/* ───────── Пример визитки в самом начале анкеты ─────────
   Не рисунок «похоже на визитку», а копия боевой страницы: те же классы, те же
   модалки. Темы переопределяют переменные только внутри рамки макета — наружу,
   в переписку, они не текут. Палитры и украшения перенесены один в один из
   body.tpl-classic/neon/minimal ниже по файлу: макет обязан выглядеть ровно
   так, как выглядит настоящая страница.
   .lm-alt — та же развилка, что .mode-alt на странице, и это ИНВЕРСИЯ, а не
   «светлая тема»: классика и неон по умолчанию тёмные, минимал — светлый. */
.chat-bubble-demo-card { width: 230px; align-self: flex-start; }
.lm-demo {
  --lm-frame: 20px;
  --lm-tint: rgba(255, 255, 255, 0.06);
  border-radius: var(--lm-frame);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.lm-demo .lm-modal-overlay { border-radius: var(--lm-frame); padding: 10px; }
.lm-demo .lm-modal-overlay .legal-note { font-size: 8px; margin-top: 8px; }
.lm-demo .lm-modal-overlay .qr-img { width: 108px; height: 108px; }
.lm-demo .lm-modal-overlay .qr-flip-btn { font-size: 10px; padding: 7px 8px; margin-top: 8px; }
.lm-demo .lm-icon,
.lm-demo .lm-topbar-icon { background: var(--lm-tint); }
.lm-demo .lm-topbar-icon svg { width: 12px; height: 12px; display: block; }
.lm-demo .landing-mockup-topbar { margin-bottom: 10px; }
/* Значок тарифа стоит в потоке строки имени, а не отдельным флекс-ребёнком:
   у неона имя закрашено градиентом с обрезкой по тексту, у минимала под именем
   дорисовывается ромб — и то и другое требует обычного блока. */
.lm-demo .landing-mockup-name { display: block; font-size: 13.5px; }
.lm-demo .lm-verified { vertical-align: middle; margin-left: 4px; }

/* На светлых поверхностях белёсая подложка кнопок исчезает — тонируем тёмным */
.lm-demo.lm-skin-classic.lm-alt,
.lm-demo.lm-skin-neon.lm-alt,
.lm-demo.lm-skin-minimal { --lm-tint: rgba(20, 21, 31, 0.05); }

/* Бегущая строка печатается строго в одну строку. При переносе на вторую макет
   подрастал на строку и вся лента переписки дёргалась на каждом слове.
   Высота строки берётся с запасом под нижние выносные буквы: впритык по
   кегль строку подрезало снизу, и она выглядела наехавшей на кнопку. */
.lm-demo .landing-mockup-tagline {
  height: 16px;
  min-height: 0;
  line-height: 16px;
  margin-bottom: 12px;
  overflow: hidden;
}
.lm-demo .landing-mockup-tagline .tw-text,
.lm-demo .landing-mockup-tagline .tw-cursor {
  display: inline;
  white-space: nowrap;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 16px;
  vertical-align: baseline;
}

/* Ряд контактов: пять кружков в рамке 230 px. Крупные выглядели сбито,
   «парные» плитки внутри сливались. */
.lm-demo .landing-mockup-icons { gap: 7px; margin-bottom: 10px; }
.lm-demo .lm-icon { width: 24px; height: 24px; }
.lm-demo .lm-icon svg { width: 12px; height: 12px; }
/* Две плитки в сетке 2×2 прижимались к верху кружка. На боевой странице они
   стоят в один ряд по центру — повторяем рядом, а не сеткой. */
.lm-demo .lm-folder-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto; height: auto; gap: 1.5px;
}
.lm-demo .lm-mini-tile { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.lm-demo .lm-mini-tile svg { width: 7.5px; height: 7.5px; }

/* Плитки команды в демо — кнопки, а не ссылки: гасим вид кнопки */
.lm-demo .team-tile {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* Тап по участнику подменяет саму визитку в рамке. Меняется только личность:
   фото, имя, должность, строка, кнопка и контакты — а шапка, тема и окна
   остаются теми же, иначе выглядит как подмена блока целиком, а не как
   «открылась его визитка». */
.lm-demo > .landing-mockup-avatar,
.lm-demo > .landing-mockup-name,
.lm-demo > .landing-mockup-role,
.lm-demo > .landing-mockup-tagline,
.lm-demo > .landing-mockup-btn,
.lm-demo > .landing-mockup-icons { transition: opacity 0.18s ease; }
.lm-demo.lm-swap > .landing-mockup-avatar,
.lm-demo.lm-swap > .landing-mockup-name,
.lm-demo.lm-swap > .landing-mockup-role,
.lm-demo.lm-swap > .landing-mockup-tagline,
.lm-demo.lm-swap > .landing-mockup-btn,
.lm-demo.lm-swap > .landing-mockup-icons { opacity: 0; }

/* Кем сейчас открыта визитка — видно по плитке */
.lm-demo .team-tile-on .team-tile-avatar-wrap::after {
  content: ''; position: absolute; inset: -3px;
  border: 2px solid var(--accent, #7c5cff); border-radius: 50%;
}
.lm-demo .team-tile-on .team-tile-name { color: var(--accent, #7c5cff); }

/* Контакты вымышленных участников никуда не ведут: адрес вроде
   vk.com/alina.orlova может принадлежать живому человеку. */
.lm-demo .lm-inert { cursor: default; }

/* Лицо открывается окном с фото — как на боевой странице */
.lm-demo .lm-avatar-tap { cursor: pointer; }
.lm-demo .modal-box-photo { max-width: none; padding: 10px; }
.lm-demo .photo-preview-img { max-height: 170px; border-radius: 10px; }

/* Блок команды — тот же <details>, что на боевой, но ужатый под рамку 230 px.
   display прописан явно: у .reveal-section его нет, и скрывать блок одним
   атрибутом hidden было бы ставкой на стиль браузера. */
.lm-demo .lm-demo-team { display: block; margin: 12px 0 0; border-radius: 10px; }
.lm-demo .lm-demo-team[hidden] { display: none; }
.lm-demo .lm-demo-team summary {
  padding: 7px 9px; font-size: 8.5px; gap: 6px; letter-spacing: 0.04em;
}
.lm-demo .lm-demo-team .chevron { font-size: 9px; }
.lm-demo .lm-demo-team .reveal-content { padding: 0 7px 9px; }
.lm-demo .lm-demo-note { margin-top: 9px; text-align: center; }

/* «Ещё обо мне» — тот же <details>, ужатый под рамку так же, как блок команды.
   Сюда после автосборки попадает статус из профиля ВК: на боевой странице он
   лежит именно здесь, а не бегущей строкой. */
.lm-demo .lm-reveal { margin: 2px 0 0; border-radius: 10px; }
.lm-demo .lm-reveal summary {
  padding: 7px 9px; font-size: 8.5px; gap: 6px; letter-spacing: 0.04em;
}
.lm-demo .lm-reveal .chevron { font-size: 9px; }
.lm-demo .lm-reveal .reveal-content { padding: 0 9px 9px; }
.lm-demo .lm-reveal .about { font-size: 9.5px; line-height: 1.45; }

/* --- Классика: палитра страницы по умолчанию --- */
.lm-demo.lm-skin-classic.lm-alt {
  --card-bg: #ffffff;
  --text: #16171c;
  --text-dim: #5b5f70;
  --border: #e3e5ea;
}

/* --- Неон: HUD на чёрном, .lm-alt — «неон на белом» --- */
.lm-demo.lm-skin-neon {
  --lm-frame: 10px;
  --card-bg: #0a0c16;
  --accent: #ff2fd0;
  --accent2: #00fff2;
  --text: #f5f5ff;
  --text-dim: #8b8fae;
  --border: #22263a;
  --ok: #00fff2;
  box-shadow: 0 0 0 1px rgba(0, 255, 242, 0.2), 0 18px 36px -22px rgba(0, 255, 242, 0.3);
}
.lm-demo.lm-skin-neon .landing-mockup-name {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 16px rgba(255, 47, 208, 0.45);
  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;
}
.lm-demo.lm-skin-neon .landing-mockup-avatar { border-color: var(--accent2); }
.lm-demo.lm-skin-neon .landing-mockup-role {
  gap: 5px;
  background: rgba(0, 255, 242, 0.18);
  border-color: rgba(0, 255, 242, 0.3);
  box-shadow: 0 0 18px rgba(0, 255, 242, 0.18);
  font-family: 'Orbitron', monospace;
  color: var(--accent2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lm-demo.lm-skin-neon .landing-mockup-role::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 8px var(--accent2);
  animation: neon-dot-blink 1.6s ease-in-out infinite;
}
.lm-demo.lm-skin-neon .landing-mockup-tagline .tw-text {
  font-family: 'Orbitron', monospace;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 9.5px;
}
.lm-demo.lm-skin-neon.lm-alt {
  --card-bg: #ffffff;
  --text: #14151f;
  --text-dim: #565a72;
  --border: #e7e2f5;
  box-shadow: 0 0 0 1px rgba(255, 47, 208, 0.22), 0 18px 36px -22px rgba(255, 47, 208, 0.25);
}
/* Сырые --accent/--accent2 рассчитаны на почти чёрный фон: на белом как цвет
   текста они не читаются, поэтому на светлой поверхности берутся затемнённые
   «чернильные» тона — ровно те же, что у body.tpl-neon.mode-alt. */
.lm-demo.lm-skin-neon.lm-alt .landing-mockup-name {
  text-shadow: none;
  background: linear-gradient(90deg, #00948b, var(--text) 35%, #c2178e 70%, #00948b);
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
.lm-demo.lm-skin-neon.lm-alt .landing-mockup-role {
  color: #00948b;
  background: rgba(0, 148, 139, 0.1);
  border-color: rgba(0, 148, 139, 0.35);
  box-shadow: 0 0 10px rgba(0, 148, 139, 0.18);
}
.lm-demo.lm-skin-neon.lm-alt .landing-mockup-role::before { background: #00948b; box-shadow: 0 0 6px #00948b; }
.lm-demo.lm-skin-neon.lm-alt .landing-mockup-btn {
  background: linear-gradient(135deg, #c2178e, #00948b);
  box-shadow: 0 10px 24px -12px #00948b;
}

/* --- Минимал: бумажная сдержанность, .lm-alt — тёмное дерево --- */
.lm-demo.lm-skin-minimal {
  --lm-frame: 4px;
  --card-bg: #fffdfa;
  --accent: #a9824f;
  --accent2: #201f1c;
  --text: #201f1c;
  --text-dim: #8a8579;
  --border: #e6ddcf;
  --ok: #6b8f6b;
  box-shadow: 0 18px 40px -24px rgba(32, 31, 28, 0.35);
}
/* Тонкая внутренняя рамка — поклон бумажным приглашениям (card-shell::after) */
.lm-demo.lm-skin-minimal::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--border);
  pointer-events: none;
}
.lm-demo.lm-skin-minimal .landing-mockup-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);
}
.lm-demo.lm-skin-minimal .landing-mockup-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lm-demo.lm-skin-minimal .landing-mockup-name::after {
  content: "❖";
  display: block;
  margin: 5px auto 0;
  font-size: 8px;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.lm-demo.lm-skin-minimal .landing-mockup-role { background: transparent; border-color: var(--accent); }
.lm-demo.lm-skin-minimal .landing-mockup-tagline .tw-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
}
.lm-demo.lm-skin-minimal .tw-cursor { color: var(--accent); }
.lm-demo.lm-skin-minimal .landing-mockup-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.04em;
}
.lm-demo.lm-skin-minimal .lm-icon,
.lm-demo.lm-skin-minimal .lm-topbar-icon,
.lm-demo.lm-skin-minimal .modal-box { border-radius: 2px; }
.lm-demo.lm-skin-minimal.lm-alt {
  --card-bg: #1f1b16;
  --text: #f2ede4;
  --text-dim: #b8ae9d;
  --border: #332e27;
}

.lm-demo-skins { display: flex; gap: 6px; justify-content: space-between; margin-top: 10px; }
.lm-demo-chip {
  flex: 1;
  padding: 7px 4px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lm-demo-chip-on { border-color: var(--accent); background: rgba(108, 92, 231, 0.18); }
.lm-demo-chip-wide { display: block; width: 100%; margin-top: 6px; }

/* Прятать нечем, кроме класса: у .landing-mockup-qr и .qr-back-btn стоит
   display, а он сильнее атрибута hidden. */
.lm-demo [hidden] { display: none; }
/* Сетка команды описана ниже по файлу и перебила бы одноимённое правило
   отсюда — поэтому через родителя, на класс сильнее. */
.lm-demo-team .team-grid { grid-template-columns: repeat(3, 1fr); gap: 8px 2px; padding-top: 0; }
.lm-demo-team .team-tile { gap: 3px; }
.lm-demo-team .team-tile-avatar,
.lm-demo-team .team-tile-avatar-fallback { width: 42px; height: 42px; font-size: 14px; border-width: 1px; }
.lm-demo-team .team-tile-name { font-size: 10px; max-width: 64px; }
.lm-demo-team .team-tile-role { font-size: 9px; max-width: 64px; }
.lm-demo-team .team-tile-crown { font-size: 12px; top: -6px; right: -2px; }
.lm-demo-note {
  margin-top: 12px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

.chat-typing {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
}

.chat-typing.show { display: flex; }

.chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: chat-typing-bounce 1.2s infinite ease-in-out;
}
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes chat-typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* --- Sticky reply bar: always visible at the bottom, styled like a real messenger's input tray --- */
.chat-controls {
  flex-shrink: 0;
  width: 100%;
  min-height: 64px;
  padding: 14px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 20px 20px 0 0;
  background: var(--card-bg);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

/* Внизу окна Telegram держит свою полосу закрытия, а env(safe-area-inset-bottom)
   внутри вебвью приходит нулевым — нижний ряд кнопок анкеты оказывался под
   пальцем системы, а не анкеты. Поднимаем его над этой полосой. */
html[data-tg-app="true"] .chat-controls {
  padding-bottom: calc(34px + env(safe-area-inset-bottom, 0px));
}

@keyframes chat-controls-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-controls-anim { animation: chat-controls-in 0.28s ease; }

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 100%;
}

/* Many-option lists (e.g. role picker) look ragged right-aligned — use a neat 2-col grid instead */
.chat-quick-replies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}
.chat-quick-replies-grid .chat-chip { width: 100%; text-align: center; }
/* Odd item count leaves the last chip alone on its row — span it full-width and centre the label instead of hugging the left column */
.chat-quick-replies-grid .chat-chip:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Template picker: full-width stacked list instead of squeezed side-by-side chips */
.chat-quick-replies-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.chat-quick-replies-stack .chat-chip { width: 100%; text-align: left; padding: 12px 16px; }

.chat-chip {
  padding: 9px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.chat-chip:hover { border-color: var(--accent); background: rgba(108, 92, 231, 0.12); }

/* Прикрепить файл — цветом, как главное действие: серая плашка выглядела
   неактивной, и люди не понимали, работает ли она. */
.chat-chip.chat-chip-file,
.chat-chip.chat-chip-file:hover {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.chat-chip-file input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.chat-chip-skip {
  background: transparent;
  border-style: dashed;
  color: var(--text-dim);
  font-weight: 500;
}

.chat-chip-toggle.chat-chip-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.chat-chip-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  width: 100%;
  text-align: center;
}

/* Последний шаг визарда — согласия. Галочек нет: согласие даётся нажатием
   кнопки, условия стоят строкой над ней. */
.chat-consent {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.chat-consent-terms {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  text-align: left;
}
.chat-consent-links {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-dim);
}
.chat-consent-links a { color: var(--accent2); }

.chat-input-row {
  display: flex;
  gap: 8px;
}

.chat-input-row input {
  flex: 1;
  background: #0f1115;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 11px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.chat-input-row input:focus { outline: none; border-color: var(--accent); }

.chat-send-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

/* --- Pricing page --- */
.wrap-pricing { max-width: 1080px; }

.pricing-hero { text-align: center; padding: 12px 0 8px; }
.pricing-hero h1 { font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.pricing-hero p { color: var(--text-dim); margin: 0; }
.pricing-hero-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.period-toggle {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  width: fit-content;
  margin: 24px auto 32px;
}
.period-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-weight: 600;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
.period-toggle-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.period-toggle-badge {
  font-size: 10px;
  background: rgba(85, 239, 196, 0.15);
  color: var(--ok);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 6px;
  font-weight: 700;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.plan-card-highlight {
  border-color: var(--accent);
  box-shadow: 0 20px 40px -20px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.plan-card-name { font-size: 15px; font-weight: 700; letter-spacing: 0.03em; color: var(--text-dim); margin-top: 6px; }

.price-block.price-monthly { display: none; }
.pricing-grid.period-month .price-monthly { display: block; }
.pricing-grid.period-month .price-yearly { display: none; }

.checkout-price-block { margin: 18px 0; }
.plan-price-old { color: var(--text-dim); font-size: 15px; text-decoration: line-through; margin-top: 14px; }
.plan-price { font-size: 30px; font-weight: 800; margin-top: 6px; }
.plan-price-period { font-size: 14px; font-weight: 500; color: var(--text-dim); }
.plan-price-sub { color: var(--text-dim); font-size: 13px; margin-top: 4px; }
.plan-launch-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: #ffb454;
  background: rgba(255, 180, 84, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}

.plan-tagline { color: var(--text-dim); font-size: 14px; margin-top: 14px; flex-grow: 1; }
.price-block + .plan-tagline, .price-block ~ .plan-cta { margin-top: 0; }

.plan-card .plan-cta { margin-top: 22px; }
.plan-cta-note {
  color: var(--text-dim);
  font-size: 12px;
  margin-top: 10px;
  line-height: 1.4;
  min-height: 34px;
}
.plan-cta-note-warn { color: #ffb454; font-weight: 600; }

/* Ссылка «оформить на сайте» под кнопкой тарифа. Оформлена текстом, а не второй
   кнопкой: иначе в карточке два равных по весу призыва и непонятно, куда нажимать. */
.plan-cta-site {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent2);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
}
.plan-cta-site:hover { text-decoration: underline; }

.plan-highlights {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  text-align: left;
  flex-grow: 1;
}

.plan-highlights li {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
  margin-top: 6px;
}

.plan-highlights li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}

.plan-details { margin-top: 16px; text-align: left; }
.plan-details summary { padding: 10px 14px; font-size: 10px; }
.plan-details-group + .plan-details-group { margin-top: 14px; }
.plan-details-label { font-size: 12px; font-weight: 700; color: var(--text-dim); }
.plan-details-group ul { list-style: none; margin: 8px 0 0; padding: 0; }
.plan-details-group li { font-size: 13px; line-height: 1.5; margin-top: 6px; }
.plan-details-excluded li { color: var(--text-dim); }

.pricing-footnote {
  text-align: center;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  max-width: 560px;
  margin: 26px auto 0;
}

.pricing-gift-card { max-width: 760px; margin: 28px auto 0; text-align: center; }
.pricing-gift-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}
.pricing-gift-links a { display: block; text-align: center; }
.pricing-gift-links-site { margin-top: 8px; gap: 6px; }
.pricing-gift-all { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--accent2); }
@media (max-width: 560px) {
  .pricing-gift-links { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .profile-avatar, .profile-avatar-fallback { width: 40px; height: 40px; }
  .profile-header-left { gap: 8px; }
  .profile-header { gap: 6px; }
  .profile-stat-chip { padding: 5px 8px; font-size: 10px; }
}

/* Admin panel: shared table/layout styles used across
   admin_broadcasts, admin_broadcast_detail, admin_promocodes, admin_stats */
@media (min-width: 700px) {
  .wrap-wide { max-width: 960px; }
}

.admin-table { width:100%; border-collapse:collapse; font-size:14px; }
.admin-table th, .admin-table td { text-align:left; padding:10px 12px; border-bottom:1px solid rgba(255,255,255,0.08); vertical-align:top; }
.admin-table th { color:var(--text-dim); font-weight:600; }
.admin-badge { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:600; }
.admin-badge-pro { background:rgba(85,239,196,0.15); color:var(--ok); }
.admin-badge-expired { background:rgba(255,107,107,0.15); color:var(--danger); }
.admin-badge-free { background:rgba(255,255,255,0.08); color:var(--text-dim); }
.admin-badge-trial { background:rgba(0,206,201,0.15); color:var(--accent2); }

@media (max-width: 640px) {
  .admin-table thead { display:none; }
  .admin-table, .admin-table tbody, .admin-table tr, .admin-table td { display:block; width:100%; }
  .admin-table { overflow:visible; }
  .admin-table tr { border-bottom:1px solid rgba(255,255,255,0.08); padding:10px 0; }
  .admin-table td { border-bottom:none; padding:4px 0; }
  .admin-table td:empty { display:none; }
  .admin-table td[data-label]::before {
    content: attr(data-label);
    display:block;
    color:var(--text-dim);
    font-size:11px;
    margin-bottom:2px;
  }
}

/* --- Landing page (redesign) --- */
.wrap-landing { max-width: 1180px; padding-top: 0; }

.landing-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.landing-nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.landing-logo { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 800; font-size: 17px; margin-right: auto; }
.landing-logo:hover { color: var(--text); }
.landing-logo-icon { width: 24px; height: 24px; display: block; }
.landing-logo-accent { color: var(--accent); }

.landing-nav-links { display: flex; gap: 22px; }
.landing-nav-links a { color: var(--text-dim); font-size: 14px; font-weight: 500; }
.landing-nav-links a:hover { color: var(--text); }

.landing-nav-auth { display: flex; align-items: center; gap: 14px; }
.landing-nav-cta { padding: 9px 20px; font-size: 14px; white-space: nowrap; }

/* Safari на iPhone не делает <button> flex-контейнером: рамка рисуется, а полоски
   схлопываются в ноль. Поэтому вся раскладка живёт во вложенном span, а у полосок
   заданы явные размеры — без опоры на растягивание флексом. */
.landing-burger {
  display: none;
  width: 42px;
  height: auto;
  /* Safari не центрирует блочное содержимое кнопки по вертикали — полоски липли
     к верхнему краю. Высоту задают отступы, а не выравнивание. */
  padding: 12px 0;
  line-height: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  flex: 0 0 auto;
}
.landing-burger-box { display: block; width: 22px; margin: 0 auto; }
.landing-burger i {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #f4f6fb;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.landing-burger i + i { margin-top: 5px; }
.landing-burger.open i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.landing-burger.open i:nth-child(2) { opacity: 0; }
.landing-burger.open i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.landing-menu {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px 16px;
  border-top: 1px solid var(--border);
}
.landing-menu.open { display: flex; }
.landing-menu a {
  padding: 13px 14px;
  border-radius: 12px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
}
.landing-menu a:active, .landing-menu a:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.landing-menu-divider { height: 1px; background: var(--border); margin: 8px 4px; }
.landing-menu-cta {
  margin-top: 4px;
  text-align: center;
  color: #0f1115 !important;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}

.landing-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 48px;
  padding: 64px 24px 32px;
}

.landing-hero-text { text-align: left; }

.landing-badge {
  display: inline-block;
  background: rgba(85, 239, 196, 0.12);
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.landing-hero-text h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.landing-hero-text p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 0 28px;
  max-width: 520px;
}

.landing-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.landing-hero-btn { font-size: 15px; }

.maintenance-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 12px 26px -12px var(--accent);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.maintenance-email-btn:hover { opacity: 0.97; transform: translateY(-2px); box-shadow: 0 16px 32px -10px var(--accent); }
.maintenance-email-icon { width: 18px; height: 18px; flex-shrink: 0; }

@media (max-width: 480px) {
  .maintenance-email-btn { font-size: 14px; padding: 12px 20px; }
}

/* Три равные колонки со значком над подписью. Горизонтальными «таблетками» текст
   не умещался в строку и третья плашка срывалась вниз — ряд разваливался. */
.landing-trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
}

.landing-trust-row span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 8px;
  color: var(--text-dim);
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}
.landing-trust-row i { font-style: normal; font-size: 16px; line-height: 1; }

.landing-hero { position: relative; }

.landing-hero-text, .landing-hero-visual { position: relative; z-index: 1; }
.landing-hero-visual { scroll-margin-top: 76px; }

.landing-hero-visual { display: flex; justify-content: center; position: relative; padding: 24px 0; }

.landing-hero-mobile-cta { display: none; }

.landing-hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), var(--accent2) 60%, transparent 72%);
  filter: blur(50px);
  opacity: 0.35;
  animation: landingGlowPulse 5s ease-in-out infinite;
  z-index: 0;
}

.landing-hero-annotate {
  position: absolute;
  top: 0;
  left: 0;
  max-width: 185px;
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.35;
  z-index: 2;
  transform: rotate(-3deg) translateY(-10%);
  pointer-events: none;
}
.landing-hero-annotate svg { width: 48px; height: 32px; display: block; margin-top: 4px; opacity: 0.55; }

@media (max-width: 900px) {
  /* На телефоне подпись не сбоку, а над макетом — иначе стрелка указывала бы в пустоту. */
  .landing-hero-visual { flex-direction: column; align-items: center; }
  .landing-hero-annotate {
    position: static;
    transform: none;
    max-width: none;
    margin: 0 auto 10px;
    text-align: center;
    font-size: 12px;
  }
  .landing-hero-annotate svg { display: none; }
}

.landing-mockup {
  width: 260px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  text-align: center;
  position: relative;
  z-index: 1;
  animation: landingMockupFloat 6s ease-in-out infinite;
}
/* Макет кликабельный и подпись зовёт нажимать — пока человек в нём, парение
   замирает, иначе кнопка уезжает из-под курсора. */
.landing-mockup:hover,
.landing-mockup:focus-within,
.landing-mockup:active { animation-play-state: paused; }

/* Тема мокапа переключается только внутри его собственной рамки — не всей страницы */
.landing-mockup.mockup-alt {
  --card-bg: #ffffff;
  --text: #16171c;
  --text-dim: #5b5f70;
  --border: #e3e5ea;
}

@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); }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero-visual::before,
  .landing-mockup { animation: none; }
}

.landing-mockup-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.lm-topbar-icon {
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  appearance: none;
  font-size: 11px; line-height: 1; font-family: inherit;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  cursor: pointer;
}

.landing-mockup-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04), 0 0 30px -8px var(--accent);
}
.landing-mockup-avatar img { width: 34px; height: 34px; display: block; }

.landing-mockup-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.landing-mockup-name b { color: var(--accent); font-weight: 700; }

.lm-verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ok, #55efc4);
  color: #05060a;
  font-size: 9px;
  font-weight: 800;
  flex-shrink: 0;
}

.landing-mockup-role {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--text-dim);
  margin-bottom: 10px;
}

.landing-mockup-tagline { min-height: 20px; margin-bottom: 18px; }
.landing-mockup-tagline .tw-text { font-size: 12.5px; }

.landing-mockup-icons { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.lm-icon {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  appearance: none;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.lm-icon svg { width: 13px; height: 13px; }
.lm-icon-web { color: var(--text-dim); }
.lm-icon-mail { color: var(--text-dim); }

.lm-folder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 22px;
  height: 22px;
}
.lm-mini-tile { display: flex; align-items: center; justify-content: center; border-radius: 6px; overflow: hidden; }
.lm-mini-tile svg { width: 9px; height: 9px; }
.lm-mini-txt { color: #fff; font-weight: 800; font-family: Arial, sans-serif; font-size: 8px; line-height: 1; }
.lm-mini-tg { background: #29a9ea; }
.lm-mini-wa { background: #25d366; }
.lm-mini-vk { background: #0077ff; }
.lm-mini-ig { background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7); }

.landing-mockup-qr {
  width: 72px; height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
}
.landing-mockup-qr div { background: var(--text-dim); border-radius: 2px; opacity: 0.5; }
.landing-mockup-qr div:nth-child(2) { opacity: 0.85; }
.landing-mockup-qr div:nth-child(3) { opacity: 0.3; }

/* Модалки мокапа живут внутри .landing-mockup (position:relative, фикс. ширина 260px на любом экране),
   поэтому position:absolute даёт одинаковое «окошко в мокапе» и на телефоне, и на ПК без медиа-запросов */
.lm-modal-overlay {
  position: absolute;
  inset: 0;
  padding: 14px;
  border-radius: 24px;
  z-index: 20;
}
.lm-modal-overlay .modal-box {
  max-width: 100%;
  padding: 18px 14px 14px;
  border-radius: 16px;
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.6);
}
.lm-modal-overlay .modal-close { width: 22px; height: 22px; top: 8px; right: 8px; font-size: 10px; }
.lm-modal-overlay .modal-title { font-size: 13px; margin-bottom: 10px; }
.lm-modal-overlay .modal-hint { font-size: 10px; margin-top: 8px; }
/* Окно мокапа уже настоящего: по центру поставленный заголовок грани доезжал
   до стрелки «назад» и перекрывал её. Стрелку равняем по крестику этого же
   окна, заголовку оставляем поля под обе кнопки. */
.lm-modal-overlay .qr-back-btn { width: 22px; height: 22px; top: 8px; left: 8px; font-size: 10px; z-index: 2; }
.lm-modal-overlay .modal-box-qr .modal-title { padding: 0 26px; }
.lm-modal-overlay .qr-img { width: 120px; height: 120px; padding: 6px; border-radius: 10px; }
.lm-modal-overlay .contact-picker-list { gap: 6px; }
.lm-modal-overlay .contact-picker-item { padding: 8px 10px; gap: 8px; font-size: 11px; border-radius: 10px; }
.lm-modal-overlay .contact-picker-item .mini-tile { width: 24px; height: 24px; border-radius: 7px; }
.lm-modal-overlay .contact-picker-item .mini-tile svg { width: 13px; height: 13px; }
.lm-modal-overlay .contact-picker-item .mini-tile-txt { font-size: 10px; }
.lm-modal-overlay .legal-note { font-size: 7px; line-height: 1.3; }

.landing-mockup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 18px;
  text-decoration: none;
  cursor: pointer;
}

/* --- Consent hero (первый экран VK-приложения / согласие) --- */
.wrap-consent { max-width: 760px; }

.consent-hero { position: relative; text-align: center; padding: 4px 0 0; }

.consent-hero-brand { display: flex; flex-direction: column; align-items: center; gap: 3px; margin-bottom: 18px; }
.consent-hero-brand-name { display: flex; align-items: center; gap: 7px; font-weight: 800; font-size: 17px; color: var(--text); }
.consent-hero-brand-name img { width: 22px; height: 22px; display: block; }
.consent-hero-brand-name span { color: var(--accent); }
.consent-hero-brand-tag { font-size: 12px; color: var(--text-dim); }

.consent-hero-grid { display: grid; grid-template-columns: 1fr; gap: 4px; }
.consent-hero-visual { order: 1; position: relative; display: flex; justify-content: center; padding: 22px 0 10px; }

@media (min-width: 720px) {
  .consent-hero-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; text-align: left; }
  .consent-hero-visual { order: 1; padding: 0; }
  .consent-hero-col-text { order: 0; text-align: left; }
  .consent-hero-badge { margin-left: 0; }
  .consent-hero-heading h1, .consent-hero-heading p { text-align: left; }
  .consent-features-compact { text-align: left; }
  .consent-hero-note { text-align: left; }
}

.consent-hero-visual::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent), var(--accent2) 60%, transparent 72%);
  filter: blur(46px);
  opacity: 0.35;
  transform: translate(-50%, -50%);
  animation: landingGlowPulse 5s ease-in-out infinite;
  z-index: 0;
}

.consent-hero-annotate {
  position: absolute;
  top: -4px;
  left: 0;
  max-width: 118px;
  font-size: 11.5px;
  font-style: italic;
  color: var(--text-dim);
  line-height: 1.3;
  text-align: left;
  z-index: 2;
  transform: rotate(-3deg) translateY(-10%);
  pointer-events: none;
}
.consent-hero-annotate svg { width: 40px; height: 28px; display: block; margin-top: 4px; opacity: 0.55; }

@media (prefers-reduced-motion: reduce) {
  .consent-hero-visual::before { animation: none; }
}

.consent-hero-badge {
  display: inline-block;
  background: rgba(85, 239, 196, 0.12);
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.consent-hero-heading h1 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.25; margin: 0 0 8px; }
.consent-hero-heading p { color: var(--text-dim); font-size: 13.5px; margin: 0 0 18px; }

.consent-features-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.consent-hero-note { color: var(--text-dim); font-size: 13px; line-height: 1.45; margin: 0 0 22px; }
.consent-feature-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  text-align: center;
}
.consent-feature-chip .cfc-icon {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 15px;
  background: rgba(108, 92, 231, 0.14);
  flex-shrink: 0;
}

/* Отступ для якорей: шапка липкая, без него заголовок секции уезжал бы под неё. */
.landing-section { padding: 56px 24px; scroll-margin-top: 76px; }
.landing-section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.landing-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent2);
  margin-bottom: 10px;
}
.landing-section-head h2 { font-size: clamp(22px, 3vw, 30px); margin: 0; }

.landing-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.landing-step {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.landing-step-num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.landing-step b { display: block; margin-bottom: 6px; }
.landing-step span { color: var(--text-dim); font-size: 14px; }

.landing-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.landing-feature {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.landing-feature b { display: block; margin-bottom: 6px; }
.landing-feature span { color: var(--text-dim); font-size: 14px; }
/* Карточка про поиск занимает всю строку: иначе седьмая по счёту висела бы
   одна в ряду из трёх и выглядела бы недовёрстанной. */
.landing-feature-wide {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(108,92,231,0.16), rgba(0,206,201,0.10));
}

.landing-templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.landing-template {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.landing-template b { display: block; margin: 4px 0 6px; }
.landing-template span { color: var(--text-dim); font-size: 13px; }
/* Превью шаблонов переиспользуют .tpl-preview-* из редактора — там лежат
   настоящие палитры тем, поэтому на лендинге цвета совпадают с живой визиткой.
   Здесь только геометрия: компонент рисовался для чипа 60px, тут место больше. */
.landing-template-preview {
  height: 128px;
  margin-bottom: 14px;
}
.landing-template-preview .tpl-preview-box {
  height: 100%;
  width: 100%;
  max-width: 200px;
  margin: 0 auto;
  padding: 16px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.landing-template-preview .tpl-preview-avatar { width: 30px; height: 30px; margin: 0 0 9px; }
.landing-template-preview .tpl-preview-line { height: 7px; width: 72%; margin: 0 0 6px; }
.landing-template-preview .tpl-preview-line.short { width: 44%; margin-bottom: 0; }
.landing-template-preview .tpl-preview-btn { height: 11px; width: 84%; margin: 9px 0 0; }
.landing-template-preview .tpl-preview-btn + .tpl-preview-btn { margin-top: 6px; }

.landing-price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.landing-price-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.landing-price-card-highlight { border-color: var(--accent); box-shadow: 0 20px 40px -22px var(--accent); }
.landing-price-value { font-size: 26px; font-weight: 800; margin: 10px 0 8px; }
.landing-price-card span { color: var(--text-dim); font-size: 13px; }
.landing-pricing-cta { display: flex; justify-content: center; margin-top: 24px; }
.landing-pricing-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 100%;
  padding: 15px 30px;
  font-size: 15px;
  line-height: 1.3;
}

.landing-faq { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.landing-faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.landing-faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.landing-faq-item summary::-webkit-details-marker { display: none; }
.landing-faq-item summary::after { content: "+"; float: right; color: var(--accent2); font-weight: 700; }
.landing-faq-item[open] summary::after { content: "−"; }
.landing-faq-item p { color: var(--text-dim); font-size: 14px; margin: 12px 0 0; }

.landing-final-cta {
  text-align: center;
  padding: 56px 24px;
  margin: 24px 24px 0;
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(108,92,231,0.18), rgba(0,206,201,0.12));
  border: 1px solid var(--border);
}
.landing-final-cta h2 { margin: 0 0 10px; font-size: clamp(22px, 3vw, 28px); }
.landing-final-cta p { color: var(--text-dim); margin: 0 0 24px; }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; padding: 40px 20px 16px; text-align: center; }
  .landing-hero-text { text-align: center; }
  /* Заголовок и абзац занимали 5 и 6 строк подряд — экран читался как сплошная
     стена. Шрифты мельче, межстрочный интервал плотнее, отступы соразмерные. */
  .landing-badge { font-size: 11.5px; padding: 5px 12px; margin-bottom: 14px; }
  .landing-hero-text h1 {
    font-size: 25px;
    line-height: 1.18;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-wrap: balance;
  }
  .landing-hero-text p {
    max-width: 30em;
    margin: 0 auto 20px;
    font-size: 15px;
    line-height: 1.5;
  }
  .landing-hero-ctas { justify-content: center; gap: 10px; }
  .landing-hero-btn { width: 100%; }
  .landing-trust-row { gap: 7px; font-size: 11px; }
  .landing-trust-row span { padding: 10px 5px; }
  .landing-hero-visual { margin-top: 8px; padding: 10px 0 24px; }
  .landing-hero-visual::before { width: 220px; height: 220px; }
  /* На 260px фиксированной ширины макет выглядел обрубком посреди пустых полей. */
  .landing-mockup { width: min(300px, 86vw); padding: 20px 18px; }
  .landing-mockup-qr { width: 64px; height: 64px; }
  .landing-hero-mobile-cta { display: flex; justify-content: center; margin-top: 10px; }
  .landing-steps, .landing-features-grid, .landing-templates, .landing-price-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  /* Пункты меню уезжают в бутерброд, а кнопки входа дублируются внутри него —
     иначе в шапке телефона «Создать визитку» ломается на две строки. */
  .landing-nav-links, .landing-nav-auth { display: none; }
  .landing-burger { display: flex; }
  .landing-nav-inner { padding: 12px 16px; }
}

@media (max-width: 560px) {
  .landing-steps, .landing-features-grid, .landing-templates, .landing-price-grid {
    grid-template-columns: 1fr;
  }
  .landing-section { padding: 40px 16px; }
  .landing-final-cta { margin: 16px 16px 0; padding: 40px 20px; }
}

/* --- Team feature (BUSINESS): панель команды в кабинете и в редактировании --- */
.team-panel {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
}
.form-card > .team-panel { margin-top: 16px; }

.team-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.team-panel-head-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.team-panel-title { font-size: 14px; }
.team-panel-head-text .hint { margin: 0; font-size: 12px; line-height: 1.35; }
.team-panel-switch { flex-shrink: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.team-panel-busy { opacity: 0.6; pointer-events: none; }

.team-panel-off,
.team-panel-empty,
.team-panel-locked,
.team-panel-form-hint { margin: 12px 0 0; font-size: 12px; line-height: 1.4; }

.team-panel-slots {
  margin: 14px 0 10px;
  font-size: 12px;
  color: var(--text-dim);
}
.team-panel-slots b { color: var(--text); }

.team-panel-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.team-panel-form input { flex: 1 1 160px; min-width: 0; }
.team-panel-form .btn-outline { flex: 0 0 auto; width: auto; padding: 10px 16px; white-space: nowrap; }
/* На узком экране поле и кнопка в одну строку режут подсказку на полуслове. */
@media (max-width: 520px) {
  .team-panel-form input { flex: 1 1 100%; }
  .team-panel-form .btn-outline { flex: 1 1 100%; width: 100%; }
}

.team-panel-msg { display: none; margin-top: 10px; font-size: 13px; line-height: 1.4; }
.team-panel-msg.show { display: block; }
.team-panel-msg-ok { color: var(--success, #2ecc71); }
.team-panel-msg-err { color: var(--danger, #e74c3c); }

/* Сетка аватарок участников: крестик удаления висит над аватаркой. */
.tp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.tp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.tp-card-disabled { opacity: 0.55; }
.tp-card-pending { border-style: dashed; }

.tp-del {
  position: absolute;
  top: -7px;
  right: -7px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg, #171a21);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.tp-del:hover {
  color: #fff;
  background: var(--danger, #ff6b6b);
  border-color: var(--danger, #ff6b6b);
  transform: scale(1.08);
}

.tp-ava { display: inline-flex; text-decoration: none; }
.tp-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
}
.tp-img-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-weight: 700;
  font-size: 20px;
}
a.tp-ava:hover .tp-img { border-color: var(--accent2); }

.tp-name {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-role {
  font-size: 11px;
  color: var(--text-dim);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tp-status { font-size: 10px; font-weight: 600; color: var(--text-dim); }
.tp-card-active .tp-status { color: var(--ok); }
.tp-card-pending .tp-status { color: #f0b83c; }

.tp-acts { display: flex; flex-direction: column; gap: 4px; width: 100%; margin-top: 6px; }
.tp-btn {
  padding: 5px 6px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: transparent;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.tp-btn:hover { color: var(--text); border-color: var(--accent2); }

/* --- Team members grid (public card) --- */
.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;
}

.checkout-autorenew {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
  margin: 4px 0 2px;
}
.checkout-autorenew input[type="checkbox"] { margin-top: 3px; flex-shrink: 0; }

.autorenew-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.25);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 14px;
}
.autorenew-cancel-btn {
  background: none;
  border: 1px solid var(--text-dim);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
}
.autorenew-cancel-btn:hover { border-color: var(--danger, #e74c3c); color: var(--danger, #e74c3c); }

/* Уникальный ID визитки: бейдж в заголовке панели статистики + строка внутри панели */
.card-id-badge {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.card-id-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
.card-id-row-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.card-id-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.card-id-value {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.15;
  white-space: nowrap;
}
/* Ширина кнопки фиксирована: подпись меняется на «Скопировано», и без
   запаса по ширине строка с ID дёргалась бы при каждом копировании. */
.card-id-copy {
  flex: 0 0 auto;
  width: 124px;
  padding: 7px 0;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
}
.card-id-copy:hover { background: rgba(255, 255, 255, 0.1); }
.card-id-copy.is-copied {
  color: #2ecc71;
  border-color: rgba(46, 204, 113, 0.55);
  background: rgba(46, 204, 113, 0.12);
}

.weekly-stats-row,
.team-consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.weekly-stats-row .publish-toggle,
.team-consent-row .publish-toggle { margin-top: 1px; }
.weekly-stats-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.weekly-stats-text b { font-size: 13px; }
.weekly-stats-text .hint { margin: 0; font-size: 12px; line-height: 1.35; }

.team-consent-box {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}
/* Галочка согласия живёт внутри уже обведённого блока — вторая рамка вокруг
   неё выглядела бы вложенной коробкой. */
.team-consent-box .team-consent-row {
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
}

.team-consent-msg { display: none; margin-top: 8px; font-size: 13px; line-height: 1.4; }
.team-consent-msg.show { display: block; }
.team-consent-msg-ok { color: var(--success, #2ecc71); }
.team-consent-msg-err { color: var(--danger, #e74c3c); }


/* --- Страница одного тарифа (/tarif/<план>/<срок>) --- */
/* Витрина под карточку товара ВК: одна колонка, крупная цена, кнопка оплаты
   сразу под ценой. Переключатели — ссылки на соседние URL, а не таб-джаваскрипт. */
.wrap-tarif { max-width: 520px; }

.tarif-switch {
  display: flex;
  gap: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin: 18px 0 20px;
}
.tarif-switch-btn {
  flex: 1;
  text-align: center;
  padding: 9px 6px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.tarif-switch-btn.active {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
}
.tarif-switch-period {
  margin: 14px auto 2px;
  width: fit-content;
  background: rgba(255, 255, 255, 0.04);
}
.tarif-switch-period .tarif-switch-btn { flex: 0 0 auto; padding: 7px 18px; font-size: 13px; }

.tarif-card { margin-top: 0; }
.tarif-card .price-block { margin-top: 10px; }
.tarif-card .plan-price { font-size: 34px; }
.tarif-card .plan-details-group { text-align: left; margin-top: 18px; }
.tarif-card .plan-details-included li { padding-left: 20px; position: relative; }
.tarif-card .plan-details-included li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-weight: 700;
}
.tarif-card .plan-details { margin-top: 14px; }

.tarif-gift-card { max-width: 520px; margin: 20px auto 0; text-align: center; }
.tarif-gift-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.tarif-gift-links a { display: block; text-align: center; padding: 10px 4px; font-size: 12.5px; }

@media (max-width: 420px) {
  .tarif-switch-btn { font-size: 12.5px; padding: 9px 2px; }
  .tarif-card .plan-price { font-size: 30px; }
  .tarif-gift-links { gap: 6px; }
  .tarif-gift-links a { font-size: 11px; padding: 9px 2px; }
}

/* --- Ссылки тарифов в нижнем футере --- */
/* Постоянные адреса каждой пары тариф×срок — их вставляют в карточки товаров ВК.
   Живут только в футере: верхнее меню остаётся коротким. */
.footer-tarifs-head {
  max-width: 720px;
  margin: 0 auto 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-dim);
  text-align: center;
}
.footer-tarifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 720px;
  margin: 0 auto 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  line-height: 1.4;
}
.footer-tarifs-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
}
.footer-tarifs-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
  padding-bottom: 8px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.footer-tarifs-sub {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}
.footer-tarifs-group { display: flex; flex-direction: column; }
/* Период слева, цена прижата вправо — колонка читается как прайс-лист, а не как
   сплошной текст; из-за этого же цены выравниваются между тарифами. */
.footer-tarifs a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-dim);
  text-decoration: none;
  white-space: nowrap;
}
.footer-tarifs a b { color: var(--text); font-weight: 600; }
.footer-tarifs a:hover, .footer-tarifs a:hover b { color: var(--accent2); }

/* На телефоне блок не показываем совсем: раскладку ссылок по карточкам товаров
   делают с компьютера, а на узком экране прайс-лист только мешает. */
@media (max-width: 820px) {
  .footer-tarifs, .footer-tarifs-head { display: none; }
}


/* Карточка реферальной программы в кабинете. Цифры в одну строку из трёх
   колонок: на узком телефоне они всё равно читаются, а в столбик карточка
   вытягивалась на пол-экрана и отодвигала саму визитку под сгиб. */
.ref-head { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.ref-sub { color:var(--text-dim); font-size:13px; margin-top:4px; line-height:1.45; }
.ref-nums { display:flex; gap:8px; margin-top:14px; }
.ref-num { flex:1; min-width:0; text-align:center; padding:10px 6px; border-radius:12px;
           background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); }
.ref-num-v { display:block; font-size:22px; font-weight:700; line-height:1.1; }
.ref-num-k { display:block; color:var(--text-dim); font-size:11px; margin-top:3px; }
.ref-bar { position:relative; height:8px; margin-top:14px; border-radius:99px;
           background:rgba(255,255,255,.08); overflow:hidden; }
.ref-bar > span { position:absolute; inset:0 auto 0 0; border-radius:99px;
                  background:linear-gradient(90deg,#7c5cff,#c084fc); transition:width .4s ease; }
.ref-bar-note { color:var(--text-dim); font-size:12px; margin-top:7px; }

/* Ряд действий под ссылкой. Боковые отступы у .btn-outline рассчитаны на
   одиночную кнопку (24px с каждой стороны) — в ряду из трёх подпись
   «Копировать» переставала помещаться в строку и падала под иконку. */
.ref-actions { display:flex; gap:8px; margin-top:8px; }
.ref-actions .btn-outline { padding:12px 8px; font-size:14px; white-space:nowrap; }


/* Строка программы под визитками: текст — ссылка на страницу с условиями,
   тумблер рядом открывает цифры на месте. Две цели в одной строке, поэтому
   ссылка и тумблер — отдельные элементы: нажатие на тумблер не должно уводить
   со страницы. */
.ref-head-link { display:block; min-width:0; color:inherit; text-decoration:none; }
.ref-head-go { color:var(--text-dim); font-weight:400; }
.ref-rules { display:flex; flex-direction:column; gap:10px; margin-top:10px;
             color:var(--text-dim); font-size:13px; line-height:1.5; }
.ref-rules b { color:var(--text); }

.vk-avatar-btn {
  display: block;
  width: 100%;
  margin: 8px 0 2px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  color: inherit;
  font: inherit;
  cursor: pointer;
  /* На узком экране надпись переносилась на вторую строку и кнопка выглядела
     рыхлой. Подпись длинная, поэтому уменьшаем её ровно настолько, чтобы она
     укладывалась в одну строку даже на самых узких телефонах. */
  font-size: clamp(12px, 3.6vw, 15px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vk-avatar-btn:disabled { opacity: .6; cursor: default; }

/* Знак рубля — единственный символ из диапазона latin-ext на всём сайте, а файл
   этого подмножества весит 83 КБ ради одного глифа. Вырезанное подмножество на
   один символ весит 1.2 КБ. Правило нужно для КАЖДОГО веса отдельно: диапазона
   font-weight: 100 900 не хватило — при выборе лица точное совпадение веса в
   объявлении выше оказывается сильнее, и браузер всё равно тянул большой файл
   (замер 2026-10-24). */
@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;
}
