/* ============================================================
   ResumeAnalyzer — design concept 2026
   Self-contained stylesheet (tokens + components + mockup screens)
   Не подключён к продакшн-страницам. Только для согласования.
   ============================================================ */

/* ---------- Fonts (self-hosted, Inter variable) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-cyrillic-wght-normal.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/inter-latin-wght-normal.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;
}

/* ---------- Tokens ---------- */
:root {
  --font-sans: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --bg: #f7f5f2;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --surface-3: #f2efeb;
  --line: #e9e4de;
  --line-strong: #dcd5cd;

  --ink: #17181c;
  --ink-2: #524d48;
  --ink-3: #7c766f;
  --ink-4: #a8a199;

  /* фирменный красный взят из favicon: #E72A21 */
  --brand: #e72a21;
  --brand-600: #c81e16;
  --brand-500: #ef4a41;
  --brand-50: #fff1f0;
  --brand-100: #ffe0dd;
  --brand-200: #ffc9c4;
  --brand-ink: #a3160f;

  --accent-2: #f79009;
  --success: #059669;
  --success-50: #ecfdf5;
  --success-100: #d1fae5;
  --warning: #d97706;
  --warning-50: #fffbeb;
  --danger: #b42318;
  --danger-50: #fef3f2;
  --danger-100: #fee4e2;

  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 8px 24px -18px rgba(15, 23, 42, 0.25);
  --shadow-md: 0 2px 4px rgba(15, 23, 42, 0.04), 0 18px 36px -24px rgba(15, 23, 42, 0.35);
  --shadow-lg: 0 4px 10px rgba(15, 23, 42, 0.05), 0 40px 70px -40px rgba(15, 23, 42, 0.5);
  --shadow-brand: 0 10px 24px -12px rgba(231, 42, 33, 0.5);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
svg.ic {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Concept chrome ---------- */
.concept-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 8px 16px;
  background: #121317;
  color: #cdd5e6;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.concept-bar strong {
  color: #fff;
  font-weight: 600;
}
.concept-bar .concept-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f4;
  font-size: 11.5px;
}
.screen-label {
  max-width: 1200px;
  margin: 42px auto 14px;
  padding: 0 32px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-3);
}
.screen-label h2 {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.screen-label span {
  font-size: 12px;
  color: var(--ink-4);
}
.screen {
  background: var(--surface);
  overflow: hidden;
}
.screen + .screen {
  margin-top: 48px;
}
.solo .screen-label {
  display: none;
}
.solo .screen {
  display: none;
}
.solo .screen.is-active {
  display: block;
}
.shot .concept-bar,
.shot .screen-label {
  display: none;
}

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.stack-4 > * + * {
  margin-top: 4px;
}
.stack-8 > * + * {
  margin-top: 8px;
}
.stack-12 > * + * {
  margin-top: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spacer {
  flex: 1;
}
.muted {
  color: var(--ink-3);
}
.tiny {
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: transform 0.16s var(--ease), box-shadow 0.16s var(--ease),
    background 0.16s var(--ease), border-color 0.16s var(--ease), color 0.16s var(--ease);
}
.btn:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.btn-primary {
  background: linear-gradient(180deg, #2a2c33 0%, #17181c 100%);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 24, 28, 0.18), 0 10px 22px -12px rgba(23, 24, 28, 0.55);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 1px 2px rgba(23, 24, 28, 0.2), 0 16px 30px -14px rgba(23, 24, 28, 0.6);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-brand {
  background: linear-gradient(180deg, #f04438 0%, #e72a21 100%);
  color: #fff;
  box-shadow: var(--shadow-brand), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -12px rgba(231, 42, 33, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  filter: brightness(1.03);
}
.btn-brand:active {
  transform: translateY(0);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover {
  border-color: #c3cad9;
  background: #fcfdff;
}
.btn-ghost {
  color: var(--ink-2);
}
.btn-ghost:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover {
  background: #912018;
}
.btn-sm {
  height: 36px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 13px;
}
.btn-lg {
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font-size: 15.5px;
}
.btn-block {
  width: 100%;
}
.btn .ic {
  width: 18px;
  height: 18px;
}

/* ---------- Inputs ---------- */
.label {
  display: block;
  margin-bottom: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
  letter-spacing: 0.01em;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder,
.textarea::placeholder {
  color: var(--ink-4);
}
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 4px rgba(23, 24, 28, 0.08);
}
.input-icon {
  position: relative;
}
.input-icon .input {
  padding-left: 40px;
}
.input-icon .ic {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--ink-4);
  pointer-events: none;
}
.hint {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ink-3);
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-success {
  background: var(--success-50);
  color: #047857;
}
.badge-danger {
  background: var(--danger-50);
  color: #b91c1c;
}
.badge-warning {
  background: var(--warning-50);
  color: #b45309;
}
.badge-brand {
  background: var(--brand-50);
  color: var(--brand-600);
}
.badge-neutral {
  background: var(--surface-3);
  color: var(--ink-3);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--brand-100);
  border-radius: 999px;
  background: rgba(238, 242, 255, 0.7);
  color: var(--brand-600);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.kicker {
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(231, 42, 33, 0.12);
}

/* ---------- Cards / progress ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.card-pad {
  padding: 24px;
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: #eef0f7;
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3a3d46, #17181c);
}
.progress.warn > span {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f4;
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--ink-3);
  transition: background 0.14s var(--ease), color 0.14s var(--ease), border-color 0.14s var(--ease);
}
.icon-btn:hover {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}
.icon-btn .ic {
  width: 17px;
  height: 17px;
}

/* ---------- Brand / header ---------- */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border-radius: 10px;
  background: transparent;
  box-shadow: 0 6px 14px -8px rgba(231, 42, 33, 0.55);
}
.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}
.brand-name {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
  line-height: 1.15;
}
.brand-sub {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-4);
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 72px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 550;
  color: var(--ink-2);
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.site-nav a:hover {
  background: var(--surface-3);
  color: var(--ink);
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 10px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.user-chip .avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 11px;
}
.user-chip span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Landing: hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 44px;
  background: radial-gradient(900px 520px at 12% -12%, rgba(231, 42, 33, 0.08), transparent 62%),
    radial-gradient(720px 420px at 92% -4%, rgba(247, 144, 9, 0.07), transparent 62%), #fff;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(620px 420px at 50% 0%, #000 0%, transparent 78%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 54px;
}
.hero-title {
  margin: 16px 0 18px;
  font-size: 52px;
  line-height: 1.035;
  letter-spacing: -0.04em;
  font-weight: 730;
  max-width: 620px;
}
.hero-lead {
  max-width: 540px;
  font-size: 17.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.free-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-3);
}
.hero-proof {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-3);
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.hero-proof .ic {
  width: 15px;
  height: 15px;
  color: var(--brand-500);
}
/* product visual */
.product-visual {
  position: relative;
}
.browser {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.browser-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #dbe0ec;
}
.browser-url {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  height: 23px;
  margin-left: 8px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  font-size: 10.5px;
  color: var(--ink-4);
}
.browser-url .ic {
  width: 11px;
  height: 11px;
}
.browser-body {
  position: relative;
  background: #f3f4f6;
}
.browser-body img {
  width: 100%;
  height: auto;
}
.play-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.18));
}
.play-btn {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-600);
  box-shadow: 0 12px 30px -10px rgba(15, 23, 42, 0.5), 0 0 0 10px rgba(255, 255, 255, 0.22);
}
.play-btn .ic {
  width: 26px;
  height: 26px;
  margin-left: 3px;
}
.float-card {
  position: absolute;
  right: -16px;
  bottom: -30px;
  width: 268px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}
.float-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.float-head span {
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.score-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.score-ring {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(var(--brand-500) 0 92%, #e9ecf5 92% 100%);
  flex-shrink: 0;
}
.score-ring::after {
  content: '92%';
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}
.score-lines {
  flex: 1;
}
.score-lines i {
  display: block;
  height: 6px;
  margin-bottom: 6px;
  border-radius: 999px;
  background: #eef0f7;
}
.score-lines i:nth-child(1) {
  width: 88%;
  background: var(--brand-100);
}
.score-lines i:nth-child(2) {
  width: 64%;
}
.score-lines i:nth-child(3) {
  width: 42%;
  margin-bottom: 0;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 13px;
}
.chip {
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--surface-3);
  font-size: 10.5px;
  font-weight: 550;
  color: var(--ink-2);
}
.chip-brand {
  background: var(--brand-50);
  color: var(--brand-600);
}

/* ---------- Landing: sections ---------- */
.section {
  padding: 78px 0;
}
.section-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 640px;
  margin: 0 auto 42px;
  text-align: center;
}
.h2 {
  margin: 10px 0 12px;
  font-size: 35px;
  line-height: 1.16;
  letter-spacing: -0.032em;
  font-weight: 720;
}
.lead {
  font-size: 15.5px;
  line-height: 1.62;
  color: var(--ink-2);
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(180deg, var(--brand-50), #f5f3ff);
  border: 1px solid var(--brand-100);
  color: var(--brand-600);
}
.icon-tile .ic {
  width: 20px;
  height: 20px;
}
.feature-card h3 {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.feature-card p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.steps::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 16%;
  right: 16%;
  border-top: 1px dashed var(--brand-200);
}
.step {
  position: relative;
  text-align: center;
  padding: 0 14px;
}
.step-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 18px;
  border: 1px solid var(--brand-100);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 0 6px var(--surface), var(--shadow-xs);
  color: var(--brand-600);
  font-size: 16px;
  font-weight: 700;
}
.step h3 {
  font-size: 15px;
  font-weight: 650;
}
.step p {
  margin-top: 7px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-3);
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.media-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-2);
  box-shadow: var(--shadow-md);
}
.media-card img {
  width: 100%;
  height: auto;
}
.media-card .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 58px;
}
.media-card .play-btn .ic {
  width: 22px;
  height: 22px;
}
.check-list {
  margin-top: 26px;
}
.check-list li {
  display: flex;
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.check-list li:last-child {
  border-bottom: 1px solid var(--line);
}
.check-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--brand-50);
  color: var(--brand-600);
  flex-shrink: 0;
}
.check-mark .ic {
  width: 15px;
  height: 15px;
}
.check-list h3 {
  font-size: 14px;
  font-weight: 650;
}
.check-list p {
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.stats-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 36px 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, #fdf8f6 0%, #fbf8f5 55%, #fdf6f2 100%);
  text-align: center;
}
.stat-num {
  font-size: 42px;
  line-height: 1;
  font-weight: 760;
  letter-spacing: -0.045em;
  color: var(--ink);
}
.stat-num::after {
  content: '';
  display: block;
  width: 22px;
  height: 3px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--brand);
}
.stat-label {
  margin-top: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.price-card.featured {
  border: 1.5px solid var(--brand-500);
  box-shadow: 0 30px 60px -38px rgba(231, 42, 33, 0.4);
  transform: translateY(-6px);
}
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.price-name {
  font-size: 14px;
  font-weight: 650;
  color: var(--ink-2);
}
.price {
  margin-top: 10px;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 740;
  letter-spacing: -0.035em;
}
.price-note {
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.price-list {
  margin: 20px 0 24px;
  padding: 0;
}
.price-list li {
  display: flex;
  gap: 9px;
  padding: 8px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.price-list .ic {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--brand-500);
}
.price-card .btn {
  margin-top: auto;
}
.cta-panel {
  position: relative;
  overflow: hidden;
  padding: 56px 32px;
  border-radius: var(--radius-xl);
  background: radial-gradient(700px 300px at 20% 0%, rgba(231, 42, 33, 0.32), transparent 60%),
    radial-gradient(500px 260px at 90% 100%, rgba(247, 144, 9, 0.18), transparent 60%), #121317;
  text-align: center;
  color: #fff;
}
.cta-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(500px 240px at 50% 0%, #000, transparent 75%);
  pointer-events: none;
}
.cta-panel > * {
  position: relative;
  z-index: 1;
}
.cta-panel h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 720;
}
.cta-panel p {
  margin: 10px auto 24px;
  max-width: 560px;
  font-size: 14.5px;
  color: #b8c1d6;
}
.cta-panel .btn-white {
  background: #fff;
  color: var(--ink);
}
.site-footer {
  padding: 44px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.footer-links a:hover {
  color: var(--ink);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
}

/* ---------- Cabinet ---------- */
.cabinet {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 32px 64px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-title {
  position: relative;
  padding-bottom: 14px;
  font-size: 28px;
  font-weight: 720;
  letter-spacing: -0.03em;
}
.page-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 999px;
  background: var(--brand);
}
.page-sub {
  margin-top: 5px;
  font-size: 13.5px;
  color: var(--ink-3);
}
.cabinet-grid {
  display: grid;
  grid-template-columns: 1.55fr 0.85fr;
  gap: 20px;
  align-items: start;
}
.panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.panel + .panel {
  margin-top: 16px;
}
.panel-title {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.005em;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.usage-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.usage-big {
  font-size: 40px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
}
.usage-label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
}
.usage-fraction {
  font-size: 12.5px;
  font-weight: 550;
  color: var(--ink-3);
}
.usage-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--ink-4);
}
.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #fde68a;
  border-radius: 13px;
  background: var(--warning-50);
}
.alert .ic {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--warning);
}
.alert p {
  font-size: 12.5px;
  line-height: 1.5;
  color: #92400e;
}
.alert .btn {
  margin-top: 10px;
}
.info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.info-row:first-of-type {
  border-top: 0;
}
.info-key {
  font-size: 12.5px;
  color: var(--ink-3);
}
.info-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.side-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.video-card {
  overflow: hidden;
  padding: 0;
}
.video-card .video-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
}
.video-card .video-head h3 {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.video-thumb {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  background: var(--surface-3);
}
.video-thumb img {
  width: 100%;
  height: auto;
}
.video-thumb .play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
}
.video-thumb .play-btn .ic {
  width: 18px;
  height: 18px;
}
.support-card {
  padding: 20px;
  border-radius: var(--radius-lg);
  background: #121317;
  color: #e2e8f4;
}
.support-card h3 {
  font-size: 14px;
  font-weight: 650;
}
.support-card p {
  margin-top: 6px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #aab4ca;
}
.support-card .btn {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.support-card .btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ---------- Admin ---------- */
.admin-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
  width: 250px;
  flex-shrink: 0;
  padding: 18px 14px;
  background: #121317;
  color: #aab4ca;
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 20px;
}
.admin-brand .brand-name {
  color: #fff;
}
.admin-brand .brand-sub {
  color: #65718a;
}
.admin-nav-label {
  padding: 14px 12px 7px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #5b6885;
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 550;
  color: #aab4ca;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}
.admin-nav a .ic {
  width: 18px;
  height: 18px;
  color: #6f7d99;
}
.admin-nav a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.admin-nav a.is-active {
  background: rgba(231, 42, 33, 0.14);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--brand-500);
}
.admin-nav a.is-active .ic {
  color: #ff9c96;
}
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-sidebar-foot .user-chip {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
.admin-sidebar-foot .user-chip span {
  color: #e2e8f4;
}
.admin-main {
  flex: 1;
  min-width: 0;
}
.admin-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 64px;
  padding: 0 26px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.breadcrumb strong {
  font-weight: 600;
  color: var(--ink-2);
}
.admin-content {
  padding: 26px;
}
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.kpi {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-3);
}
.kpi-label .ic {
  width: 14px;
  height: 14px;
  color: var(--ink-4);
}
.kpi-value {
  margin-top: 9px;
  font-size: 26px;
  line-height: 1;
  font-weight: 730;
  letter-spacing: -0.03em;
}
.kpi-foot {
  margin-top: 7px;
  font-size: 11px;
  color: var(--ink-4);
}
.content-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.card-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}
.card-title {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.search {
  position: relative;
  flex: 1;
  max-width: 330px;
  min-width: 200px;
}
.search .input {
  height: 38px;
  padding-left: 37px;
  font-size: 12.5px;
}
.search .ic {
  left: 12px;
  width: 16px;
  height: 16px;
}
.select-sm {
  width: auto;
  height: 38px;
  padding: 0 34px 0 12px;
  font-size: 12.5px;
}
.filter-chips {
  display: flex;
  gap: 6px;
}
.chip-btn {
  height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 550;
  color: var(--ink-3);
}
.chip-btn.is-active {
  border-color: var(--brand-200);
  background: var(--brand-50);
  color: var(--brand-600);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-4);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}
.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f3f8;
  vertical-align: middle;
}
.data-table tbody tr {
  transition: background 0.12s var(--ease);
}
.data-table tbody tr:hover {
  background: #fafbff;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
}
.user-mail {
  margin-top: 1px;
  font-size: 11px;
  color: var(--ink-4);
}
.limit-cell {
  min-width: 110px;
}
.limit-num {
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.limit-num small {
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ink-4);
}
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-4);
}
.pager {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pager button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12px;
}
.pager button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.pager button:disabled {
  opacity: 0.45;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}
.menu-dot {
  color: var(--ink-4);
}

/* campaign form */
.form-layout {
  display: grid;
  grid-template-columns: 1.42fr 0.78fr;
  gap: 18px;
  align-items: start;
}
.form-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.form-card + .form-card {
  margin-top: 14px;
}
.form-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.form-section-num {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 700;
}
.form-section-head h3 {
  font-size: 13px;
  font-weight: 650;
}
.form-stack > * + * {
  margin-top: 13px;
}
.radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.radio-card {
  display: flex;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: var(--surface);
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease);
}
.radio-card.is-active {
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 0 0 3px rgba(231, 42, 33, 0.09);
}
.radio-card .radio {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  border: 1.5px solid var(--line-strong);
  border-radius: 50%;
  flex-shrink: 0;
}
.radio-card.is-active .radio {
  border: 4.5px solid var(--brand);
  background: #fff;
}
.radio-card h4 {
  font-size: 12.5px;
  font-weight: 650;
}
.radio-card p {
  margin-top: 2px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
}
.date-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 9px;
}
.summary-card {
  position: sticky;
  top: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.summary-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.summary-title {
  font-size: 13px;
  font-weight: 650;
}
.summary-list {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
  font-size: 12px;
}
.summary-list span {
  color: var(--ink-3);
}
.summary-list strong {
  font-weight: 600;
  text-align: right;
}
.summary-preview {
  margin-top: 14px;
  padding: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 11px;
  background: var(--surface-2);
}
.summary-preview .tiny {
  color: var(--ink-4);
}
.summary-preview p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-2);
}
.summary-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

/* ---------- Style guide ---------- */
.guide {
  max-width: 1160px;
  margin: 0 auto;
  padding: 40px 32px 70px;
}
.guide-head {
  margin-bottom: 30px;
}
.guide-head h1 {
  font-size: 30px;
  font-weight: 730;
  letter-spacing: -0.035em;
}
.guide-head p {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--ink-3);
  max-width: 720px;
}
.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.guide-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.guide-card h2 {
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 650;
}
.guide-card.full {
  grid-column: 1 / -1;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.swatch {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.swatch i {
  display: block;
  height: 44px;
}
.swatch b {
  display: block;
  padding: 7px 9px;
  font-size: 10.5px;
  font-weight: 600;
}
.swatch small {
  display: block;
  padding: 0 9px 8px;
  font-size: 9.5px;
  color: var(--ink-4);
}
.type-row {
  display: block;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.type-row:first-of-type {
  border-top: 0;
}
.type-row span {
  display: block;
  margin-bottom: 4px;
  font-size: 10.5px;
  color: var(--ink-4);
  white-space: nowrap;
}
.type-h1 {
  font-size: 34px;
  font-weight: 730;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.type-h2 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.type-h3 {
  font-size: 16px;
  font-weight: 650;
}
.type-body {
  font-size: 13.5px;
  color: var(--ink-2);
}
.type-caption {
  font-size: 11.5px;
  color: var(--ink-4);
}
.component-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.bg-preview {
  position: relative;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(400px 220px at 15% 0%, rgba(231, 42, 33, 0.16), transparent 65%),
    #fff;
  border: 1px solid var(--line);
}
.note {
  margin-top: 30px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-500);
  border-radius: 10px;
  background: var(--surface);
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.note strong {
  color: var(--ink);
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}
.icon-cell {
  display: grid;
  place-items: center;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  background: var(--surface-2);
}

/* ---------- Responsive (concept preview) ---------- */
@media (max-width: 1180px) {
  .hero-title {
    font-size: 44px;
  }
  .grid-4,
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .site-nav {
    display: none;
  }
}
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .cabinet-grid,
  .form-layout,
  .guide-grid {
    grid-template-columns: 1fr;
  }
  .float-card {
    display: none;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .price-card.featured {
    transform: none;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .steps::before {
    display: none;
  }
  .stats-band {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    display: none;
  }
  .section {
    padding: 56px 0;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-title {
    font-size: 38px;
  }
  .footer-top {
    flex-direction: column;
  }
}
@media (max-width: 640px) {
  .container {
    padding: 0 20px;
  }
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .site-header .header-inner {
    height: 64px;
    gap: 10px;
  }
  .header-actions .btn-ghost {
    display: none;
  }
  .header-actions .btn-primary {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .brand-sub {
    display: none;
  }
  .brand-name {
    font-size: 12.5px;
    white-space: nowrap;
  }
  .hero {
    padding: 36px 0 28px;
  }
  .hero-title {
    font-size: 34px;
  }
  .hero-actions {
    flex-wrap: wrap;
    gap: 12px;
  }
  .hero-proof {
    flex-wrap: wrap;
    gap: 10px 18px;
  }
  .section {
    padding: 46px 0;
  }
  .h2 {
    font-size: 26px;
  }
  .page-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .cabinet {
    padding: 24px 20px 48px;
  }
  .page-title {
    font-size: 24px;
  }
  .admin-topbar {
    padding: 0 14px;
  }
  .admin-topbar .input-icon {
    display: none;
  }
  .admin-content {
    padding: 16px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .card-toolbar {
    padding: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   Production additions (2026 redesign)
   ============================================================ */

/* ---------- Utilities / a11y ---------- */
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  transition: top 0.16s var(--ease);
}
.skip-link:focus {
  top: 16px;
}
.hidden {
  display: none !important;
}
.nowrap {
  white-space: nowrap;
}
.text-right {
  text-align: right;
}
.full-width {
  width: 100%;
}
.mt-8 {
  margin-top: 8px;
}
.mt-12 {
  margin-top: 12px;
}
.mt-16 {
  margin-top: 16px;
}
.mt-24 {
  margin-top: 24px;
}
.mb-8 {
  margin-bottom: 8px;
}
.mb-12 {
  margin-bottom: 12px;
}
.mb-16 {
  margin-bottom: 16px;
}
.mb-24 {
  margin-bottom: 24px;
}
.flex {
  display: flex;
}
.items-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.gap-8 {
  gap: 8px;
}
.gap-12 {
  gap: 12px;
}
.gap-16 {
  gap: 16px;
}
.text-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.text-link:hover {
  color: var(--brand-600);
}

/* ---------- Header: mobile menu ---------- */
.menu-btn {
  display: none;
}
.mobile-menu {
  display: none;
}
@media (max-width: 900px) {
  .menu-btn {
    display: inline-grid;
  }
  .header-actions .btn-ghost {
    display: none;
  }
  .mobile-menu {
    border-top: 1px solid var(--line);
    background: var(--surface);
    padding: 10px 16px 18px;
  }
  .mobile-menu.is-open {
    display: block;
  }
  .mobile-menu a {
    display: flex;
    align-items: center;
    height: 46px;
    padding: 0 10px;
    border-radius: 10px;
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 550;
  }
  .mobile-menu a:hover {
    background: var(--surface-3);
    color: var(--ink);
  }
  .mobile-menu .btn {
    margin-top: 10px;
    width: 100%;
  }
}
@media (max-width: 640px) {
  .header-actions .btn-primary {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
  .brand-sub {
    display: none;
  }
}

/* ---------- Auth pages ---------- */
.auth-page {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px 20px;
  background: radial-gradient(700px 440px at 15% 0%, rgba(231, 42, 33, 0.09), transparent 65%),
    radial-gradient(600px 380px at 95% 100%, rgba(247, 144, 9, 0.08), transparent 65%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 448px;
  padding: 34px 34px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}
.auth-card.auth-card-wide {
  max-width: 480px;
}
.auth-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.auth-title {
  font-size: 26px;
  font-weight: 730;
  letter-spacing: -0.03em;
  text-align: center;
}
.auth-sub {
  margin-top: 5px;
  color: var(--ink-3);
  font-size: 13.5px;
  text-align: center;
}
.auth-form {
  margin-top: 26px;
}
.auth-form .field + .field {
  margin-top: 14px;
}
.auth-submit {
  width: 100%;
  margin-top: 20px;
}
.auth-alt {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
}
.auth-alt a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.auth-help {
  margin-top: 14px;
  color: var(--ink-4);
  font-size: 11.5px;
  text-align: center;
}
.auth-help a {
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.auth-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 22px 0 4px;
}
.auth-step {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-4);
  font-size: 11.5px;
  font-weight: 600;
}
.auth-step-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-size: 11px;
  font-weight: 700;
}
.auth-step.is-active {
  color: var(--ink);
}
.auth-step.is-active .auth-step-dot {
  border-color: var(--brand);
  background: var(--brand-50);
  color: var(--brand-600);
}
.auth-step-line {
  width: 28px;
  height: 1px;
  background: var(--line-strong);
}
.password-wrap {
  position: relative;
}
.password-wrap .input {
  padding-right: 46px;
}
.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: var(--ink-4);
}
.password-toggle:hover {
  background: var(--surface-3);
  color: var(--ink-2);
}
.password-toggle .ic {
  width: 17px;
  height: 17px;
}

/* ---------- Flash / toast ---------- */
.flash {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
}
.flash .ic {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  flex-shrink: 0;
}
.flash-success {
  border-color: var(--success-100);
  background: var(--success-50);
  color: #047857;
}
.flash-error {
  border-color: var(--danger-100);
  background: var(--danger-50);
  color: #912018;
}
.flash-warning {
  border-color: #fde68a;
  background: var(--warning-50);
  color: #92400e;
}
.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100vw - 36px));
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
  animation: toast-in 0.18s var(--ease);
}
.toast.is-success {
  border-color: var(--success-100);
}
.toast.is-error {
  border-color: var(--danger-100);
}
.toast .ic {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--brand);
  flex-shrink: 0;
}
.toast.is-success .ic {
  color: var(--success);
}
.toast.is-error .ic {
  color: var(--danger);
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Modals ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 10, 14, 0.58);
  backdrop-filter: blur(3px);
}
.modal.is-open {
  display: flex;
}
.modal-card {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  animation: modal-in 0.18s var(--ease);
}
.modal-card.modal-lg {
  max-width: 720px;
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px 14px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.modal-sub {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.modal-body {
  padding: 6px 22px 20px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 22px 20px;
  border-top: 1px solid var(--line);
}
.modal-close {
  flex-shrink: 0;
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
body.modal-open {
  overflow: hidden;
}
.modal .video-frame {
  border-radius: 12px;
}

/* ---------- Video ---------- */
.video-frame {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 14px;
  background: #111;
}
.video-frame iframe,
.video-frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.media-card .video-frame {
  padding-top: 0;
  background: transparent;
  border-radius: 0;
}
.media-card .video-frame img {
  position: static;
  width: 100%;
  height: auto;
}

/* ---------- Empty states ---------- */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 34px 20px;
  color: var(--ink-3);
  text-align: center;
}
.empty-state .icon-tile {
  margin: 0;
}
.empty-state h3 {
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
}
.empty-state p {
  max-width: 360px;
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------- Admin: shell / mobile ---------- */
.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-menu-btn {
  display: none;
}
.admin-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
  background: rgba(9, 10, 14, 0.5);
}
.admin-nav-open .admin-backdrop {
  display: block;
}
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 60;
}
.admin-search {
  max-width: 300px;
}
@media (max-width: 900px) {
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 80;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.2s var(--ease);
    box-shadow: 20px 0 50px -30px rgba(0, 0, 0, 0.6);
  }
  .admin-nav-open .admin-sidebar {
    transform: none;
  }
  .admin-menu-btn {
    display: inline-grid;
  }
  .admin-topbar {
    padding: 0 14px;
    gap: 10px;
  }
  .admin-topbar .breadcrumb {
    display: none;
  }
  .admin-topbar .admin-search {
    display: none;
  }
  .admin-content {
    padding: 16px;
  }
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .page-title {
    font-size: 24px;
  }
}
@media (max-width: 560px) {
  .kpi-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Responsive data table ---------- */
.table-wrap {
  width: 100%;
  overflow-x: auto;
}
.data-table.responsive {
  min-width: 900px;
}
@media (max-width: 900px) {
  .data-table.responsive {
    min-width: 0;
  }
  .data-table.responsive thead {
    display: none;
  }
  .data-table.responsive tbody tr {
    display: block;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
  }
  .data-table.responsive tbody tr:last-child {
    border-bottom: 0;
  }
  .data-table.responsive td {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding: 5px 0;
    border: 0;
    font-size: 12.5px;
  }
  .data-table.responsive td::before {
    content: attr(data-label);
    flex-shrink: 0;
    min-width: 120px;
    color: var(--ink-4);
    font-size: 10.5px;
    font-weight: 650;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .data-table.responsive td[data-label='Пользователь']::before,
  .data-table.responsive td[data-label='Пользователь'] {
    align-items: center;
  }
  .data-table.responsive td[data-label='Пользователь'] {
    justify-content: flex-start;
    padding-top: 0;
  }
  .data-table.responsive td[data-label='Пользователь']::before {
    display: none;
  }
  .data-table.responsive td[data-label='Действия'] {
    justify-content: flex-end;
    padding-top: 8px;
  }
  .data-table.responsive td[data-label='Действия']::before {
    display: none;
  }
  .data-table.responsive .limit-cell {
    min-width: 0;
  }
}

/* ---------- Admin forms / details ---------- */
.form-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(260px, 0.78fr);
}
.form-card {
  overflow: visible;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 14px;
  max-height: 260px;
  overflow-y: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.checkbox-grid .checkbox {
  padding: 4px 0;
  font-size: 12.5px;
}
.selected-users-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.detail-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}
.detail-card .kpi-label {
  margin-bottom: 7px;
}
.detail-value {
  font-size: 15px;
  font-weight: 650;
}
.detail-value.mono {
  font-variant-numeric: tabular-nums;
}
@media (max-width: 900px) {
  .form-layout {
    grid-template-columns: 1fr;
  }
  .summary-card {
    position: static;
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .field-row {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Documents / articles ---------- */
.doc-page .site-header {
  position: sticky;
}
.doc-hero {
  padding: 56px 0 34px;
  border-bottom: 1px solid var(--line);
  background: radial-gradient(700px 320px at 10% 0%, rgba(231, 42, 33, 0.06), transparent 65%), var(--surface);
}
.doc-hero h1 {
  max-width: 860px;
  margin-top: 12px;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 730;
}
.doc-hero .doc-meta {
  margin-top: 14px;
  color: var(--ink-3);
  font-size: 13px;
}
.doc-body {
  padding: 40px 0 64px;
}
.doc-content {
  max-width: 860px;
  margin: 0 auto;
}
.doc-content .article-text {
  max-width: 100%;
}
.article-text {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.75;
}
.article-text > * + * {
  margin-top: 1.1em;
}
.article-text h2 {
  margin-top: 1.7em;
  margin-bottom: 0.6em;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.article-text h3 {
  margin-top: 1.35em;
  margin-bottom: 0.45em;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 650;
  letter-spacing: -0.012em;
}
.article-text p {
  margin: 0.9em 0;
}
.article-text ul,
.article-text ol {
  margin: 0.9em 0;
  padding-left: 1.4em;
}
.article-text li + li {
  margin-top: 0.35em;
}
.article-text a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.article-text strong {
  color: var(--ink);
  font-weight: 650;
}
.article-text blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  border-left: 3px solid var(--brand);
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
  color: var(--ink-2);
}
.article-text img {
  border: 1px solid var(--line);
  border-radius: 14px;
}
.article-text .policy-section,
.policy-section {
  margin: 0 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.policy-section h2 {
  margin-top: 0;
}
.policy-section > :last-child {
  margin-bottom: 0;
}
.doc-content .doc-note {
  margin-top: 28px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 12.5px;
}
.doc-content .doc-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 24px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
}
.doc-content .doc-back:hover {
  color: var(--ink);
}
.doc-content .doc-back .ic {
  width: 15px;
  height: 15px;
}
@media (max-width: 700px) {
  .doc-hero {
    padding: 34px 0 24px;
  }
  .doc-hero h1 {
    font-size: 28px;
  }
  .doc-body {
    padding: 24px 0 44px;
  }
  .article-text {
    font-size: 14.5px;
  }
  .article-text h2 {
    font-size: 21px;
  }
  .article-text h3 {
    font-size: 16.5px;
  }
  .policy-section {
    padding: 16px;
  }
}

/* ---------- Articles list ---------- */
.article-list {
  display: grid;
  gap: 14px;
  max-width: 860px;
  margin: 0 auto;
}
.article-list .article-card {
  display: block;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease), transform 0.16s var(--ease);
}
.article-list .article-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}
.article-card h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.article-card p {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 13.5px;
  line-height: 1.6;
}
.article-card .article-meta {
  margin-top: 12px;
  color: var(--ink-4);
  font-size: 11.5px;
}

/* ---------- Misc ---------- */
.admin-body {
  background: var(--bg);
}
.admin-content > .page-head {
  margin-bottom: 18px;
}
.admin-table-actions {
  display: flex;
  gap: 4px;
}
.inline-form {
  display: inline;
}
.muted-2 {
  color: var(--ink-4);
  font-size: 12px;
}
.section-tight {
  padding: 44px 0;
}
.hr {
  height: 1px;
  margin: 18px 0;
  border: 0;
  background: var(--line);
}
.success-text {
  color: var(--success);
}
.danger-text {
  color: var(--danger);
}
.warning-text {
  color: var(--warning);
}

/* ---------- Pagination (admin users / mailing) ---------- */
.pager a,
.pager .pager-btn {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 30px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink-3);
  font-size: 12px;
  text-decoration: none;
}
.pager a:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}
.pager .pager-gap {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  color: var(--ink-4);
  font-size: 12px;
}
.pager .ic {
  width: 14px;
  height: 14px;
}
.pager .pager-prev .ic {
  transform: rotate(180deg);
}

/* ---------- Document pages (articles/legal) ---------- */
body.doc-page {
  background: var(--bg);
}
.doc-hero h1 {
  color: var(--ink);
}
.doc-hero .container,
.doc-hero .max-w-4xl {
  position: relative;
}

/* ---------- Disabled buttons ---------- */
.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
  filter: none;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-3);
  color: var(--ink-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

/* ---------- Form / header polish ---------- */
.radio-card input[type='radio'] {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--brand);
}
@media (max-width: 640px) {
  .user-chip {
    padding: 4px;
  }
  .user-chip > span:last-child {
    display: none;
  }
}

/* ---------- Restyle legacy dark CTA blocks on document pages ---------- */
.doc-page .bg-slate-800 {
  background: #121317 !important;
}
.doc-page .bg-slate-800 .text-slate-300 {
  color: #b8c1d6 !important;
}

/* Legacy document pages keep their max-w-4xl wrappers — add safe mobile gutters */
.doc-hero > .max-w-4xl,
.doc-body > .max-w-4xl {
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 700px) {
  .doc-hero > .max-w-4xl,
  .doc-body > .max-w-4xl {
    padding-left: 18px;
    padding-right: 18px;
  }
}

/* ============================================================
   Editorial articles (SEO/AEO/GEO)
   ============================================================ */
.article-page {
  background: var(--bg);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  padding: 18px 0 0;
  color: var(--ink-4);
  font-size: 12px;
}
.breadcrumbs a {
  color: var(--ink-3);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--brand-600);
}
.breadcrumbs span {
  color: var(--line-strong);
}
.article-hero {
  padding: 26px 0 34px;
  background: radial-gradient(700px 320px at 8% 0%, rgba(231, 42, 33, 0.07), transparent 65%), var(--surface);
  border-bottom: 1px solid var(--line);
}
.article-hero .container {
  max-width: 1120px;
}
.article-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-600);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.article-kicker::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(231, 42, 33, 0.12);
}
.article-title {
  max-width: 920px;
  margin: 12px 0 14px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 730;
  text-wrap: balance;
}
.article-lead {
  max-width: 780px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 20px;
  color: var(--ink-3);
  font-size: 12.5px;
}
.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.article-meta .ic {
  width: 14px;
  height: 14px;
  color: var(--ink-4);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.article-tags a,
.article-tags span {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 550;
}
.article-tags a:hover {
  border-color: var(--brand-200);
  color: var(--brand-600);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 286px;
  gap: 36px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px 64px;
  align-items: start;
}
.article-body {
  min-width: 0;
  max-width: 780px;
}
.article-cover {
  margin: 0 0 24px;
}
.article-cover img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.article-cover figcaption {
  margin-top: 8px;
  color: var(--ink-4);
  font-size: 11.5px;
  line-height: 1.45;
}
.article-aside {
  position: sticky;
  top: 92px;
}
.toc {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.toc h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}
.toc li {
  counter-increment: toc;
  margin: 0;
}
.toc a {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.4;
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--ink-4);
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
  padding-top: 1px;
}
.toc a:hover {
  color: var(--brand-600);
}
.aside-cta {
  margin-top: 14px;
  padding: 18px;
  border-radius: 16px;
  background: #121317;
  color: #e2e8f4;
}
.aside-cta .brand-name {
  color: #fff;
}
.aside-cta p {
  margin: 8px 0 12px;
  color: #aab4ca;
  font-size: 12px;
  line-height: 1.5;
}
.aside-cta .btn {
  width: 100%;
}
.answer-box {
  margin: 0 0 26px;
  padding: 20px 22px;
  border: 1px solid var(--brand-100);
  border-radius: 16px;
  background: linear-gradient(120deg, #fff7f6 0%, #fffdfc 70%);
}
.answer-box strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brand-600);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.answer-box p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.key-points {
  margin: 26px 0;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.key-points h2 {
  margin: 0 0 10px;
  font-size: 15px;
}
.key-points ul {
  margin: 0;
  padding-left: 1.2em;
}
.key-points li {
  margin: 5px 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.55;
}
.callout {
  display: flex;
  gap: 12px;
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.6;
}
.callout .ic {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--brand-600);
}
.steps-list {
  counter-reset: step;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.steps-list li {
  position: relative;
  margin: 0 0 14px;
  padding: 16px 18px 16px 58px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.steps-list li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 17px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--brand-100);
  border-radius: 50%;
  background: var(--brand-50);
  color: var(--brand-600);
  font-size: 12px;
  font-weight: 700;
}
.steps-list h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 650;
}
.steps-list p {
  margin: 0;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.55;
}
.article-table {
  width: 100%;
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  font-size: 13px;
}
.article-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink-3);
  font-size: 10.5px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}
.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.article-table tr:last-child td {
  border-bottom: 0;
}
.article-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}
.article-table {
  display: table;
}
.faq-list {
  margin: 22px 0;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  margin-bottom: 9px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 15px 18px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 42px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-600);
  font-size: 20px;
  font-weight: 400;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item .faq-answer {
  padding: 0 18px 16px;
  color: var(--ink-2);
  font-size: 13.5px;
  line-height: 1.65;
}
.faq-item .faq-answer p {
  margin: 0 0 8px;
}
.faq-item .faq-answer p:last-child {
  margin-bottom: 0;
}
.article-cta {
  margin: 34px 0 0;
  padding: 28px;
  border-radius: 20px;
  background: radial-gradient(600px 240px at 15% 0%, rgba(231, 42, 33, 0.32), transparent 65%), #121317;
  color: #fff;
}
.article-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
  letter-spacing: -0.025em;
}
.article-cta p {
  max-width: 560px;
  margin: 0 0 16px;
  color: #b8c1d6;
  font-size: 13px;
  line-height: 1.55;
}
.article-cta .btn {
  margin-right: 8px;
  margin-bottom: 8px;
}
.related {
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.related h2 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.related-card {
  display: block;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.related-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-sm);
}
.related-card span {
  display: block;
  margin-bottom: 5px;
  color: var(--brand-600);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.related-card strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.article-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
}
.article-author .avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}
.article-text h2[id] {
  scroll-margin-top: 90px;
}
.article-text h3[id] {
  scroll-margin-top: 90px;
}
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 26px 20px 48px;
  }
  .article-aside {
    position: static;
    order: -1;
  }
  .toc {
    display: none;
  }
  .aside-cta {
    margin: 0;
  }
  .article-body {
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .article-hero {
    padding: 18px 0 24px;
  }
  .article-title {
    font-size: 30px;
  }
  .article-lead {
    font-size: 15px;
  }
  .article-meta {
    font-size: 11.5px;
  }
  .article-layout {
    padding: 20px 18px 40px;
  }
  .answer-box,
  .key-points,
  .callout,
  .article-cta {
    padding: 16px;
  }
  .related-grid {
    grid-template-columns: 1fr;
  }
  .article-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* ---------- Article CTA / anchors ---------- */
.article-cta .btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.article-cta .btn-white:hover {
  background: #f7f5f2;
  border-color: #f7f5f2;
}
.article-text section[id],
.article-text h2[id],
.article-text h3[id] {
  scroll-margin-top: 90px;
}

/* Mobile article polish */
.breadcrumbs {
  overflow: hidden;
}
.breadcrumbs span[aria-current='page'] {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 980px) {
  .article-aside {
    display: none;
  }
  .article-hero .breadcrumbs {
    padding-top: 12px;
  }
}

/* Article lists and dark CTA contrast */
.article-text ul:not(.steps-list) {
  list-style: disc;
  padding-left: 1.35em;
}
.article-text ol:not(.steps-list) {
  list-style: decimal;
  padding-left: 1.35em;
}
.article-text li::marker {
  color: var(--brand-500);
}
.key-points ul {
  list-style: disc;
  padding-left: 1.2em;
}
.key-points li::marker {
  color: var(--brand-500);
}
.article-cta h2 {
  color: #fff;
}
.article-cta p {
  color: #b8c1d6;
}
.article-cta .btn-white {
  color: var(--ink);
}

/* Keep buttons and related cards clean inside article prose */
.article-text .btn,
.article-text .related-card,
.article-text .article-cta a {
  text-decoration: none;
}
.article-text .related-card strong {
  text-decoration: none;
}

@media (max-width: 640px) {
  .article-cover {
    display: none;
  }
  .breadcrumbs span[aria-current='page'],
  .breadcrumbs span:nth-last-child(2) {
    display: none;
  }
}

/* ---------- Legacy article content converted to design system ---------- */
.article-text h4 {
  margin: 1.2em 0 0.5em;
  color: var(--ink);
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.article-text .highlight-block {
  margin: 24px 0;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 16px 16px 0;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.article-text .highlight-block.highlight-muted {
  background: var(--surface-2);
}
.article-text .highlight-block h3,
.article-text .highlight-block h4 {
  margin-top: 0;
}
.article-text .highlight-block h4 {
  color: var(--brand-600);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.article-text .key-point {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 14px 14px 0;
  background: var(--surface-2);
}
.article-text .key-point p {
  margin: 0;
  color: var(--ink-2);
  font-style: italic;
}
.article-text .success-block {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid var(--success-100);
  border-left: 3px solid var(--success);
  border-radius: 0 16px 16px 0;
  background: var(--success-50);
}
.article-text .success-block h3 {
  margin: 0 0 8px;
  color: #047857;
  font-size: 16px;
}
.article-text .success-block p,
.article-text .success-block li {
  color: #065f46;
}
.article-text .success-block a {
  color: #047857;
}
.article-text .content-grid {
  display: grid;
  gap: 14px;
  margin: 24px 0;
}
.article-text .content-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.article-text .content-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.article-text .content-card,
.article-text .trend-card,
.article-text .bias-card,
.article-text .solution-card,
.article-text .skill-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.article-text .trend-card,
.article-text .skill-card,
.article-text .solution-card {
  margin: 0 0 12px;
}
.article-text .content-grid > .content-card {
  margin: 0;
}
.article-text .content-card h3,
.article-text .trend-card h3,
.article-text .bias-card h3,
.article-text .solution-card h3,
.article-text .skill-card h3 {
  margin-top: 0;
  font-size: 16px;
}
.article-text .stat-card {
  padding: 20px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.article-text .stat-number {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 36px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.article-text .stat-card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}
.article-text .year-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}
.article-text .year-column {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}
.article-text .year-column.year-past {
  background: var(--surface-2);
}
.article-text .year-column.year-future {
  border-color: var(--brand-200);
  background: var(--brand-50);
}
.article-text .year-column h3 {
  margin-top: 0;
  font-size: 15px;
}
.article-text .testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}
.article-text .testimonial-role {
  color: var(--ink-3);
  font-size: 12px;
}
@media (max-width: 700px) {
  .article-text .content-grid-2,
  .article-text .content-grid-3,
  .article-text .year-comparison {
    grid-template-columns: 1fr;
  }
}
