/* ===== ANIMATOR MATCH · DESIGN SYSTEM (AntechPC / Blindspot glass style) ===== */
:root {
  --bg: #0b0914;
  --bg-subtle: #120e22;
  --panel: rgba(22, 17, 38, 0.75);
  --panel-2: rgba(33, 26, 56, 0.65);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f3ff;
  --muted: #a79fc2;
  --dim: #70688c;
  --accent: #8b7cf6;
  --accent-rgb: 139, 124, 246;
  --accent-bright: #a78bfa;
  --on-accent: #ffffff;
  --ok: #22c55e;
  --ok-bg: rgba(34, 197, 94, 0.12);
  --warn: #f59e0b;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --r-xl: 24px;
  --r-lg: 18px;
  --r-md: 12px;
  --r-pill: 9999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 24px rgba(var(--accent-rgb), 0.35);
  --container-w: min(calc(100% - 32px), 1140px);
}

html[data-theme="light"] {
  --bg: #f5f3fa;
  --bg-subtle: #eae5f5;
  --panel: rgba(255, 255, 255, 0.88);
  --panel-2: #f0eafc;
  --line: rgba(124, 92, 224, 0.14);
  --line-strong: rgba(124, 92, 224, 0.28);
  --text: #1a142e;
  --muted: #655b82;
  --dim: #948aa8;
  --on-accent: #ffffff;
}

html[data-theme="amoled"] {
  --bg: #000000;
  --bg-subtle: #08080a;
  --panel: rgba(12, 12, 16, 0.85);
  --panel-2: #14141a;
  --line: #22222a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  padding-bottom: 90px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

button, input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* Шапка: плавающая стеклянная капсула */
.top {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: var(--container-w);
  height: 56px;
  margin: 12px auto 0;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--panel);
  border: 1px solid var(--line);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.brand, button.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  color: inherit;
  font-family: inherit;
}
.brand-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 8px;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
  display: block;
}

.snav {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--r-pill);
}
.snav a, .snav button.nav-btn {
  padding: 6px 14px;
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.snav a:hover, .snav button.nav-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.snav a[aria-current="page"], .snav button.nav-btn[aria-current="page"], .snav button.nav-btn.on {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.4);
}

.tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.seg {
  display: inline-flex;
  align-items: center;
  padding: 2.5px;
  border-radius: var(--r-pill);
  background: var(--panel-2);
  border: 1px solid var(--line);
}
.seg button {
  height: 28px;
  min-width: 28px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 11.5px;
  transition: none;
}
.seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.4);
}

.round {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 14px;
  transition: background 0.2s var(--ease);
}
.round:hover { background: rgba(255, 255, 255, 0.12); }

/* Панель темы оформления с отступом сверху (image_6facf7 fix) */
.look {
  position: fixed;
  top: 76px;
  right: max(16px, calc((100vw - 1140px)/2 + 16px));
  z-index: 60;
  width: 290px;
  padding: 18px;
  border-radius: var(--r-xl);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  backdrop-filter: blur(24px) saturate(2);
  -webkit-backdrop-filter: blur(24px) saturate(2);
  box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.6);
  animation: popIn 0.25s var(--ease) both;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
.look-h {
  margin: 12px 0 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.swatches {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin: 8px 0 14px;
}
.swatch {
  height: 28px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease);
}
.swatch:hover { transform: scale(1.1); }
.swatch.on { border-color: #ffffff; box-shadow: 0 0 8px rgba(255, 255, 255, 0.5); }
.ghost.small {
  width: 100%;
  padding: 8px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}
.ghost.small:hover { background: rgba(255, 255, 255, 0.05); }

/* Основной контейнер */
.wrap {
  width: var(--container-w);
  margin: 28px auto 60px;
}

.hero {
  text-align: center;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(28px, 4.2vw, 42px);
  font-weight: 900;
  letter-spacing: -1.2px;
  line-height: 1.15;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-bright) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1b1733 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.hero .sub {
  font-size: 15px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Переключатель 2D / 3D */
.type-switch-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.type-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 5px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.3);
}
.type-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--r-lg);
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
}
.type-btn .icon { font-size: 22px; }
.type-btn .lbl b { display: block; font-size: 15px; font-weight: 800; }
.type-btn .lbl small { display: block; font-size: 11px; opacity: 0.8; }
.type-btn:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.type-btn.on {
  background: var(--panel-2);
  color: var(--text);
  border-color: var(--accent);
  box-shadow: 0 0 18px rgba(var(--accent-rgb), 0.35);
}

/* Карточки секций */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 3vw, 28px);
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.35);
  margin-bottom: 20px;
}
.label {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.hint { font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* Бюджет */
.budget-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.budget-input {
  display: inline-flex;
  align-items: center;
  background: var(--panel-2);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 4px 14px;
  gap: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.budget-input:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.25);
}
.budget-input .cur {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-bright);
}
.budget-input input {
  background: transparent;
  border: none;
  font-size: 24px;
  font-weight: 800;
  width: 140px;
  color: var(--text);
}
.budget-input input:focus { outline: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.chip {
  padding: 7px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s var(--ease);
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip[aria-pressed="true"] {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
  box-shadow: 0 2px 10px rgba(var(--accent-rgb), 0.4);
}

/* Сетка тарифов (Равная высота и подсветка выбранного - fix image_6facfb) */
.rec-text { font-size: 13.5px; font-weight: 700; color: var(--accent-bright); margin-bottom: 10px; }
.pkgs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
@media (max-width: 860px) {
  .pkgs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .pkgs { grid-template-columns: 1fr; }
}

.pkg {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 88px;
  padding: 14px 16px;
  border-radius: var(--r-lg);
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.pkg b { font-size: 14px; font-weight: 800; display: block; margin-bottom: 4px; }
.pkg span { font-size: 18px; font-weight: 800; color: var(--accent-bright); }
.pkg em {
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  background: var(--accent);
  padding: 2px 8px;
  border-radius: var(--r-pill);
  margin-top: 6px;
  display: inline-block;
  align-self: flex-start;
}
.pkg:hover { border-color: var(--line-strong); transform: translateY(-2px); }
/* Подсветка выбранного/рекомендованного тарифа */
.pkg.is-rec, .pkg.is-selected {
  border: 2px solid var(--accent) !important;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.16), var(--panel-2)) !important;
  box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.35) !important;
}

/* Двухколоночный калькулятор */
.grid-calc {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 900px) {
  .grid-calc { grid-template-columns: 1fr; }
}

.form-row {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.form-row:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.row-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}
.row-h b { color: var(--accent-bright); font-size: 15px; }

/* Сегменты длительности */
.segs-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.seg-btn {
  padding: 6px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.seg-btn:hover { color: var(--text); border-color: var(--line-strong); }
.seg-btn.on {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.range-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

/* Счётчик персонажей */
.counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 2px 8px;
}
.counter button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.counter button:hover { background: var(--accent); color: #fff; }
.counter b { min-width: 24px; text-align: center; font-size: 15px; }

.char-extras {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}
.char-mode {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--r-md);
  background: var(--panel-2);
  border: 1px solid var(--line);
  font-size: 13px;
}
.char-mode .mode-btns {
  display: inline-flex;
  gap: 4px;
}
.char-mode button {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
}
.char-mode button.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* Опции в виде сеток */
.opts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.opt-btn {
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  background: var(--panel-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.opt-btn b { display: block; font-size: 13.5px; font-weight: 800; margin-bottom: 2px; }
.opt-btn small { display: block; font-size: 11px; color: var(--muted); }
.opt-btn:hover { border-color: var(--line-strong); }
.opt-btn.on {
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.15);
}

/* Кастомный переключатель-тумблер (fix image_6facdb & image_6facde) */
.custom-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}
.custom-switch input { display: none; }
.switch-slider {
  width: 44px;
  height: 24px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--line-strong);
  position: relative;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
  flex-shrink: 0;
}
html[data-theme="light"] .switch-slider {
  background: #d8d0ee;
  border-color: #beb0e0;
}
.switch-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s var(--ease);
}
.custom-switch input:checked + .switch-slider {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(var(--accent-rgb), 0.5);
}
.custom-switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}
.switch-content b { display: block; font-size: 14px; font-weight: 800; }
.switch-content small { display: block; font-size: 12px; color: var(--muted); }
.switch-label { font-size: 13.5px; font-weight: 700; color: var(--text); }

/* Правая колонка: Итого и шкала бюджета */
.sum-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.big-sum {
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  margin: 10px 0 16px;
  font-variant-numeric: tabular-nums;
}

.budget-meter {
  margin-bottom: 20px;
}
.meter-track {
  width: 100%;
  height: 10px;
  border-radius: 9999px;
  background: var(--panel-2);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 8px;
}
.meter-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 9999px;
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.meter-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
}
.meter-labels span { color: var(--muted); }
.meter-labels b { color: var(--accent-bright); }

.breakdown {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.breakdown .row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
.breakdown .row b { color: var(--text); }

/* Секция аниматоров */
.anim-filter {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.anim-category-tabs {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: var(--r-pill);
}
.anim-category-tab {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.anim-category-tab:hover { color: var(--text); }
.anim-category-tab.on {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 2px 8px rgba(var(--accent-rgb), 0.35);
}

.anim-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
  font-style: normal;
}

.anim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.anim-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.anim-card {
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--panel-2);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.anim-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.4);
}
@media (max-width: 680px) {
  .anim-card { grid-template-columns: 60px 1fr; gap: 12px; }
  .anim-actions { grid-column: 1 / -1; margin-top: 8px; }
}

.anim-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--line-strong);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--muted);
  flex-shrink: 0;
}
.anim-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.anim-info h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.badge-type {
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.badge-type.cyan {
  background: rgba(14, 165, 233, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.badge-type.magenta {
  background: rgba(236, 72, 153, 0.2);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
}
.badge-type.blue {
  background: rgba(59, 130, 246, 0.2);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.25);
}
.badge-type.pink {
  background: rgba(244, 114, 182, 0.2);
  color: #f472b6;
  border: 1px solid rgba(244, 114, 182, 0.4);
  box-shadow: 0 0 10px rgba(244, 114, 182, 0.25);
}
.badge-type.purple {
  background: rgba(168, 85, 247, 0.2);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.4);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.25);
}

.anim-role { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.anim-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.tag {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--dim);
}

.anim-pricing {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}
.price-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  display: inline-block;
}
.price-pill.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.price-pill.over {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.price-pill.custom {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.anim-links {
  display: flex;
  gap: 6px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--panel);
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.btn-link:hover {
  color: var(--text);
  border-color: var(--accent);
  background: rgba(var(--accent-rgb), 0.15);
}

/* Команда (страница #team) */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}
.team-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.35);
}
.team-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.team-head .anim-avatar {
  width: 64px;
  height: 64px;
}

/* Подвал */
.foot {
  text-align: center;
  padding: 30px 16px;
  font-size: 13px;
  color: var(--dim);
}

/* Мобильный док быстрой навигации */
.mobile-dock {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  width: calc(100% - 24px);
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 6px 12px;
  backdrop-filter: blur(20px) saturate(2);
  -webkit-backdrop-filter: blur(20px) saturate(2);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  justify-content: space-around;
  align-items: center;
}
.dock-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
}
.dock-btn .icon { font-size: 18px; }
.dock-btn .text { font-size: 10px; font-weight: 700; }
.dock-btn:hover { color: var(--text); }

@media (max-width: 680px) {
  .mobile-dock { display: flex; }
  body { padding-bottom: 80px; }
}

/* Секции команды (Чёткое разделение 3D и 2D) */
.team-section {
  margin-bottom: 38px;
}
.team-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.team-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}
.team-section-desc {
  font-size: 13px;
  color: var(--muted);
}

.view-wrap {
  animation: viewFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes viewFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.view-wrap[hidden] {
  display: none !important;
}
