/* Local Agent Site — dark theme #0f1117 / accent #4b8bff */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-input: #12151c;
  --border: #2a2f3d;
  --text: #e8eaef;
  --text-muted: #94a3b8;
  --accent: #4b8bff;
  --accent-hover: #3a7aef;
  --ok: #4ade80;
  --err: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Background orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}

.orb-1 {
  width: 400px; height: 400px;
  background: #4b8bff;
  top: -100px; right: -100px;
}

.orb-2 {
  width: 300px; height: 300px;
  background: #6366f1;
  bottom: 20%; left: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 250px; height: 250px;
  background: #4b8bff;
  bottom: -50px; right: 30%;
  animation-delay: -8s;
  opacity: 0.2;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  min-height: 64px;
  padding: 10px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}

.logo:hover { text-decoration: none; }

.logo .badge {
  font-size: 0.68rem;
  padding: 3px 8px;
  margin-left: 4px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex: 1 1 280px;
  flex-wrap: wrap;
  gap: 6px 14px;
  row-gap: 6px;
}

.nav-soon-link {
  white-space: nowrap;
}

.nav-soon-link .badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  margin-left: 4px;
  vertical-align: middle;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--text); }

.nav-muted { opacity: 0.8; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), transform 0.15s ease, box-shadow var(--transition);
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(75, 139, 255, 0.35);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-lg { padding: 16px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-secondary {
  background: #2a3448;
  color: var(--text);
}

.btn-secondary:hover {
  background: #354158;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

.btn-danger { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; box-shadow: 0 4px 16px rgba(220,38,38,0.3); }

/* Main layout */
main { position: relative; z-index: 1; }

.section { padding: 60px 0; }

.page-header { padding-bottom: 20px; }
.page-header h1 { margin: 0 0 8px; font-size: 2rem; }

.section-title {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 40px;
}

/* Hero */
.hero { padding: 80px 0 60px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 16px 0;
}

.gradient-text {
  background: linear-gradient(135deg, #4b8bff, #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-free-hint {
  color: var(--ok);
  font-weight: 600;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(75, 139, 255, 0.15);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

.hero-illustration svg { width: 100%; max-width: 400px; }

/* Hero illustration animations */
.hero-anim-pc {
  transform-origin: 150px 140px;
  animation: heroPcIn 0.8s ease both;
}

.hero-anim-phone {
  transform-origin: 320px 170px;
  animation: heroPhoneIn 0.8s ease 0.25s both;
}

.hero-anim-link {
  stroke-dasharray: 6 4;
  animation: heroLinkFlow 2.5s linear infinite;
}

.hero-anim-signal {
  transform-origin: center;
  animation: heroSignalPulse 2s ease-in-out infinite;
}

.hero-anim-ai-ring {
  transform-origin: 150px 136px;
  animation: heroAiRing 2.4s ease-in-out infinite;
}

.hero-anim-ai-core {
  transform-origin: 150px 136px;
  animation: heroAiCore 2.4s ease-in-out infinite;
}

.hero-anim-smile {
  transform-origin: 150px 170px;
  animation: heroSmile 3s ease-in-out infinite;
}

.hero-anim-check {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: heroCheckDraw 0.7s ease 0.9s forwards, heroCheckGlow 2.5s ease-in-out 1.6s infinite;
}

.hero-anim-phone-dot {
  animation: heroPhoneDot 2s ease-in-out infinite;
}

@keyframes heroPcIn {
  from { opacity: 0; transform: translateX(-24px) scale(0.96); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes heroPhoneIn {
  from { opacity: 0; transform: translateX(24px) scale(0.92); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes heroLinkFlow {
  to { stroke-dashoffset: -20; }
}

@keyframes heroSignalPulse {
  0%, 100% { opacity: 0.45; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.25); }
}

@keyframes heroAiRing {
  0%, 100% { opacity: 0.25; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.12); }
}

@keyframes heroAiCore {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes heroSmile {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.15); }
}

@keyframes heroCheckDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes heroCheckGlow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 6px rgba(74, 222, 128, 0.6)); }
}

@keyframes heroPhoneDot {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Free tier section */
.free-section {
  padding-top: 20px;
}

.free-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.free-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  position: relative;
}

.free-tag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: 12px;
  background: rgba(74, 222, 128, 0.12);
  color: var(--ok);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.free-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.free-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.free-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.free-compare-col h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.free-compare-col ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.free-compare-col li { margin-bottom: 6px; }

.free-compare-paid {
  border-left: 1px solid var(--border);
  padding-left: 28px;
}

.free-compare-paid .btn { margin-top: 16px; }

.pulse-dot { animation: pulse 2s ease-in-out infinite; }

@keyframes pulse {
  0%, 100% { opacity: 1; r: 4; }
  50% { opacity: 0.5; r: 6; }
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(75, 139, 255, 0.4);
  box-shadow: var(--shadow);
}

.feature-icon { margin-bottom: 16px; }

.feature-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.feature-card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* Pricing */
.pricing-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(135deg, rgba(75,139,255,0.15), rgba(99,102,241,0.1));
  border: 1px solid rgba(75, 139, 255, 0.3);
  border-radius: var(--radius);
  padding: 32px 40px;
}

.pricing-banner h2 { margin: 0 0 8px; }
.pricing-banner p { margin: 0; color: var(--text-muted); }

.partners-section { border-top: 1px solid var(--border); padding-bottom: 72px; }
.partners-subtitle {
  margin: 28px 0 14px;
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* Coverflow партнёров — под тёмную тему Local Agent */
.partner-coverflow {
  position: relative;
  max-width: 980px;
  margin: 28px auto 0;
  padding: 8px 48px 28px;
}
.partner-stage {
  position: relative;
  height: 360px;
  overflow: visible;
  transform-style: preserve-3d;
  perspective: 1100px;
}
.partner-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 220px;
  height: 300px;
  margin: -150px 0 0 -110px;
  border-radius: 18px;
  background: linear-gradient(160deg, #1a2744, #151821);
  border: 1px solid rgba(75, 139, 255, 0.35);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  transform-origin: center center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, filter 0.45s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  /* Видны и без JS (иначе opacity:0 + старый кэш main.js = пустота) */
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
  transform: scale(0.78);
}
.partner-slide:nth-child(1) {
  opacity: 1;
  z-index: 5;
  transform: scale(1);
  pointer-events: auto;
  border-color: rgba(75, 139, 255, 0.65);
}
.partner-slide:nth-child(2) {
  opacity: 0.75;
  z-index: 3;
  transform: translateX(150px) scale(0.82);
}
.partner-slide:nth-child(3) {
  opacity: 0.75;
  z-index: 3;
  transform: translateX(-150px) scale(0.82);
}
.partner-slide.is-active {
  pointer-events: auto;
}
.partner-slide-art {
  flex: 1;
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(75, 139, 255, 0.35), transparent 55%),
    radial-gradient(circle at 70% 80%, rgba(255,255,255,0.06), transparent 50%);
}
.partner-slide-art img {
  width: 72%;
  height: 72%;
  max-width: 140px;
  max-height: 140px;
  object-fit: contain;
  border-radius: 12px;
  background: rgba(0,0,0,0.2);
}
.partner-slide-fallback {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  background: #3b82f6;
}
.partner-slide-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 4px;
  font-size: 0.86rem;
}
.partner-slide-name { font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.partner-slide-stat { color: var(--text-muted); flex-shrink: 0; }
.partner-slide-desc {
  margin: 0;
  padding: 0 14px 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-height: 2.7em;
  overflow: hidden;
}
.partner-slide-link {
  display: block;
  text-align: center;
  padding: 8px 12px 12px;
  color: var(--accent);
  font-size: 0.82rem;
  text-decoration: none;
}
.partner-slide-link:hover { text-decoration: underline; }
.partner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 20;
}
.partner-nav:hover { border-color: var(--accent); color: var(--accent); }
.partner-nav-prev { left: 0; }
.partner-nav-next { right: 0; }
.partner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.partner-dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.partner-dots button.active { background: var(--accent); width: 18px; }

@media (max-width: 700px) {
  .partner-coverflow { padding: 8px 36px 16px; }
  .partner-stage { height: 320px; }
  .partner-slide { width: 180px; height: 260px; margin: -130px 0 0 -90px; }
  .partner-slide:nth-child(2) { transform: translateX(110px) scale(0.8); }
  .partner-slide:nth-child(3) { transform: translateX(-110px) scale(0.8); }
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.partner-card h4 { margin: 10px 0 6px; font-size: 1rem; }
.partner-card h4 a { color: var(--text); text-decoration: none; }
.partner-card h4 a:hover { color: var(--accent); }
.partner-card p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.partner-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
  display: block;
}
.partner-logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(75, 139, 255, 0.15);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.4rem;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.plan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.plan-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(75,139,255,0.2);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.plan-card h3 { margin: 0 0 12px; }

.plan-price {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.plan-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.plan-hint {
  margin: -4px 0 12px;
  color: var(--ok);
  font-size: 0.9rem;
  font-weight: 600;
}

.plan-badge-save { background: var(--ok); }

.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 16px; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.plan-features li {
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
  font-size: 0.9rem;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}

/* Cards */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card.ok { border-color: rgba(74, 222, 128, 0.4); }
.card.err { border-color: rgba(248, 113, 113, 0.4); }

/* Forms */
.input {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-input);
  color: var(--text);
  margin-bottom: 12px;
  transition: border-color var(--transition);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
}

.label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-form .input { width: auto; flex: 1; min-width: 120px; margin-bottom: 0; }

/* Auth */
.auth-section { min-height: 60vh; display: flex; align-items: center; }
.auth-container { max-width: 420px; margin: 0 auto; width: 100%; }
.auth-card h1 { margin: 0 0 24px; text-align: center; }
.auth-footer { text-align: center; margin-top: 20px; color: var(--text-muted); font-size: 0.9rem; }
.auth-forgot { margin: -4px 0 14px; text-align: right; font-size: 0.88rem; }
.auth-forgot a { color: var(--accent); text-decoration: none; }
.auth-forgot a:hover { text-decoration: underline; }
.err-msg { color: var(--err); background: rgba(248,113,113,0.1); padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }

/* Key display */
.key-display {
  font-family: Consolas, "Courier New", monospace;
  font-size: 1.05rem;
  padding: 12px 16px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  word-break: break-all;
  letter-spacing: 0.5px;
}

.key-card { margin-bottom: 16px; }
.key-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.key-label { font-size: 0.8rem; color: var(--text-muted); display: block; margin-bottom: 4px; }
.key-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 12px; font-size: 0.9rem; color: var(--text-muted); }

.devices-list { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.devices-list h4 { margin: 0 0 8px; font-size: 0.9rem; }
.devices-list ul { list-style: none; padding: 0; margin: 0; }
.devices-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  font-size: 0.9rem;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.tab {
  padding: 12px 20px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

.tab:hover { color: var(--text); text-decoration: none; }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Tables */
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--text-muted); font-weight: 500; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.data-table tr.sub-row td { padding-top: 4px; padding-bottom: 4px; background: rgba(0,0,0,0.15); }
.data-table code { font-size: 0.85rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}

.stat-num { font-size: 2rem; font-weight: 700; color: var(--accent); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

/* Badges */
.badge-ok { color: var(--ok); font-size: 0.8rem; }
.badge-err { color: var(--err); font-size: 0.8rem; }

/* Support */
.support-card {
  text-align: center;
  padding: 48px 32px;
  max-width: 560px;
  margin: 24px auto 0;
}

.support-card h2 {
  margin: 16px 0 12px;
  font-size: 1.5rem;
  color: var(--text);
}

.support-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 20px;
}

.support-card a:not(.btn) {
  color: var(--accent);
  font-weight: 500;
}

.support-card a.btn {
  color: #fff;
}

.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 4px;
}

.support-hint {
  margin: 16px 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-sm { padding: 8px 12px; font-size: 0.85rem; max-width: 160px; }

.role-form { flex-wrap: nowrap; gap: 8px; }

.role-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.role-admin { background: rgba(75,139,255,0.2); color: var(--accent); }
.role-user { background: rgba(148,163,184,0.15); color: var(--text-muted); }
.role-vip { background: rgba(251,191,36,0.15); color: #fbbf24; }
.role-support { background: rgba(74,222,128,0.15); color: var(--ok); }
.role-tester { background: rgba(168,85,247,0.15); color: #a855f7; }
.role-developer { background: rgba(99,102,241,0.15); color: #818cf8; }
.role-partner { background: rgba(251,146,60,0.15); color: #fb923c; }
.role-showcase { background: rgba(56,189,248,0.15); color: #38bdf8; }
.role-blocked { background: rgba(239,68,68,0.18); color: #f87171; }
.role-company_director { background: rgba(34,197,94,0.15); color: #4ade80; }
.role-partner_director { background: rgba(45,212,191,0.15); color: #2dd4bf; }
.role-multi-form { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.role-checks { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; padding: 4px 0; }
.role-check { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; }
.role-check input { margin: 0; }
.badge-err { color: #f87171; }
.workspace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.workspace-card {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.workspace-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.workspace-card h2 { margin: 10px 0 6px; font-size: 1.15rem; }
.workspace-dock {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.workspace-dock a {
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
}
.workspace-dock a:hover { text-decoration: underline; }
.role-showcase { background: rgba(56,189,248,0.15); color: #38bdf8; }
.role-blocked { background: rgba(239,68,68,0.18); color: #f87171; }
.role-multi-form { display: flex; flex-direction: column; gap: 8px; min-width: 200px; }
.role-checks { display: flex; flex-direction: column; gap: 4px; max-height: 180px; overflow: auto; }
.role-check { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); cursor: pointer; }
.role-check input { margin: 0; }
.badge-err { color: #f87171; }

.badge-dev {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  font-size: 0.68rem;
  font-weight: 600;
  vertical-align: middle;
  background: rgba(148,163,184,0.2);
  color: var(--text-muted);
  border-radius: 10px;
  text-transform: lowercase;
}

.ref-link-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.ref-link-row .input { flex: 1; min-width: 200px; }
.ref-stats { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 16px; font-size: 0.95rem; }
.partner-promo-box { margin-top: 16px; padding: 16px; background: var(--bg-input); border-radius: var(--radius-sm); }

.vip-section { max-width: 900px; margin: 0 auto; }
.vip-hero { text-align: center; padding: 32px; border-color: rgba(251,191,36,0.35); }
.vip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.vip-perk-card { position: relative; padding-top: 36px; }
.vip-perk-icon {
  position: absolute;
  top: 16px;
  left: 20px;
  color: #fbbf24;
  font-size: 1.1rem;
}
.vip-criteria-list { margin: 12px 0 0; padding-left: 20px; color: var(--text-muted); }
.vip-criteria ul { margin: 0; padding-left: 20px; color: var(--text-muted); }

.panel-card { margin-bottom: 16px; }
.panel-block h2 { margin: 0 0 16px; }
.panel-subtitle { margin: 28px 0 12px; font-size: 1.05rem; }
.panel-table { margin-top: 20px; }
.panel-hint { margin-top: 12px; font-size: 0.85rem; }

.release-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.changelog, .ticket-message {
  margin: 12px 0 0;
  padding: 12px;
  background: var(--bg-input);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.9rem;
  white-space: pre-wrap;
  color: var(--text-muted);
}

.ticket-reply { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }

.support-placeholder { text-align: center; padding: 48px 24px; }
.support-icon { margin-bottom: 16px; opacity: 1; }
.support-icon svg { display: block; margin: 0 auto; }

.support-topics {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.support-topic {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.support-topic strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

/* CTA */
.cta-block { text-align: center; padding: 48px 24px; }
.cta-block h2 { margin: 0 0 8px; }
.cta-block p { color: var(--text-muted); margin-bottom: 24px; }

.empty-state { text-align: center; padding: 40px; }
.empty-state p { color: var(--text-muted); margin-bottom: 16px; }

.download-card { margin-top: 20px; }
.download-card h3 { margin: 0 0 8px; }

.result-card { animation: fadeIn 0.4s ease; }
.result-card.ok h3 { color: var(--ok); }

.feature-list { margin: 12px 0 0; padding-left: 20px; }
.feature-list li { margin-bottom: 4px; }

.muted { color: var(--text-muted); font-size: 0.9rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-inner p { margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.85rem; text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* Animations — без «чёрной вспышки»: контент виден сразу */
.fade-in {
  opacity: 1;
  transform: none;
}

.fade-in-scroll {
  opacity: 1;
  transform: none;
}

.fade-in-scroll.visible {
  opacity: 1;
  transform: none;
}

.delay-1, .delay-2, .delay-3 { animation: none; }

.feature-card,
.plan-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1100px) {
  .header-inner { position: relative; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    z-index: 101;
  }
  .mobile-menu-btn { display: flex; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-illustration { max-width: 280px; margin: 0 auto; }
  .free-compare { grid-template-columns: 1fr; }
  .free-compare-paid {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 20px;
  }
  .pricing-banner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Плавающая кнопка техподдержки */
.support-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  background: var(--accent, #4b8bff);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.support-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
  color: #fff;
}
.support-fab-label { white-space: nowrap; }
.support-fab-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg, #0f1117);
}
@media (max-width: 700px) {
  .support-fab {
    right: 16px;
    bottom: 16px;
    padding: 0;
    width: 54px;
    height: 54px;
    justify-content: center;
  }
  .support-fab-label { display: none; }
}
