/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 44px; border-radius: 999px;
  font-size: 16px; font-weight: 600; cursor: pointer;
  border: none; text-decoration: none; font-family: inherit;
  position: relative; overflow: hidden;
  transition: transform .18s var(--ease), box-shadow .25s ease, background .2s ease;
}
.btn-primary {
  background: var(--grad-neon);
  background-size: 200% auto;
  color: #fff;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.4);
}
.btn-primary:hover {
  background-position: 100% center;
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(139, 92, 246, 0.55);
}
.btn-outline {
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text);
  border: 1.5px solid var(--glass-border);
}
.btn-outline:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--glow-violet);
}

/* соцссылки в hero и в контактах */
.contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  color: var(--text); text-decoration: none;
  font-size: 14px; font-weight: 500;
  transition: all .2s ease;
}
.contact-link:hover {
  border-color: var(--accent-2);
  background: var(--accent-soft);
  color: var(--accent-2);
  transform: translateY(-2px);
  box-shadow: var(--glow-violet);
}

/* кнопка на карточке проекта/пака */
.btn-card {
  display: inline-block;
  background: linear-gradient(120deg, var(--accent-blue), var(--accent));
  color: #fff;
  padding: 9px 20px; border-radius: 999px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  text-decoration: none;
  transition: filter .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-card:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
  text-decoration: none;
}
.btn-card:visited, .btn-card:active, .btn-card:focus { text-decoration: none; color: #fff; }

.btn-card-outline {
  display: inline-block;
  background: transparent; color: var(--accent-2);
  padding: 9px 20px; border-radius: 999px;
  border: 1.5px solid var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.btn-card-outline:hover {
  background: var(--accent-soft);
  color: var(--accent-2);
  text-decoration: none;
}
.btn-card-outline:visited,
.btn-card-outline:active,
.btn-card-outline:focus { text-decoration: none; color: var(--accent-2); }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== ВЫПАДАЮЩИЙ СПИСОК ВАРИАНТОВ СКАЧИВАНИЯ ===== */
.action-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  font-family: inherit;
}
.dd-arrow { font-size: 10px; transition: transform .2s ease; }
.action-toggle.open .dd-arrow { transform: rotate(180deg); }

.action-dropdown-global {
  position: fixed;
  transform: translateX(-50%);
  min-width: 180px;
  max-width: min(280px, calc(100vw - 24px));
  background: rgba(16, 16, 24, 0.85);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
  transform-origin: top center;
  z-index: 500;
  box-shadow: 0 16px 40px rgba(0,0,0,0.55), 0 0 0 1px rgba(139,92,246,0.08);
}
.action-dropdown-global.open {
  opacity: 1;
  pointer-events: auto;
}
.action-dropdown-item {
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.action-dropdown-item:hover { background: var(--accent-soft); color: var(--accent-2); }
