:root {
  --bg: #0b1220;
  --bg-alt: #0f1729;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf7;
  --text-muted: #8b9bb8;
  --discord: #5865F2;
  --discord-dark: #4752C4;
  --discord-bg: #313338;
  --discord-sidebar: #2b2d31;
  --discord-embed: #2b2d31;
  --violet: #7c6cff;
  --cyan: #3dd6f5;
  --radius: 16px;
  --radius-lg: 24px;
  --font: 'Manrope', system-ui, sans-serif;
  --header-h: 72px;
  --max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

.hero,
.section {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.bg-glow--1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: rgba(88, 101, 242, 0.15);
}
.bg-glow--2 {
  width: 500px; height: 500px;
  bottom: 10%; left: -150px;
  background: rgba(124, 108, 255, 0.12);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
  pointer-events: none;
  z-index: 0;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.hidden { display: none !important; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.header__inner {
  container-type: inline-size;
  container-name: site-header;
  max-width: min(100%, 1560px);
  width: 100%;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

/* Страницы без .header__inner (legal и др.) */
.header:not(:has(.header__inner)) {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 0;
}
.logo__icon {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.35);
}
.logo__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.logo__icon svg { width: 18px; height: 18px; }

/* ─── Шапка: десктоп — широкий контейнер (≥1500px внутри) ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.35rem 0.55rem;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }

.header__tail {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

/* Бургер скрыт, пока в контейнере достаточно места */
.header-dropdown {
  display: none;
  position: relative;
}

.header-dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 40px;
  padding: 0 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.header-dropdown__toggle:hover,
.header-dropdown__toggle[aria-expanded="true"] {
  background: var(--surface-hover);
  border-color: rgba(255, 255, 255, 0.14);
}
.header-dropdown__toggle[aria-expanded="true"] {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.25);
}

.header-dropdown__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 18px;
  height: 14px;
  flex-shrink: 0;
}
.header-dropdown__burger span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.2s;
}
.header-dropdown__toggle[aria-expanded="true"] .header-dropdown__burger span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.header-dropdown__toggle[aria-expanded="true"] .header-dropdown__burger span:nth-child(2) {
  opacity: 0;
}
.header-dropdown__toggle[aria-expanded="true"] .header-dropdown__burger span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.header-dropdown__label {
  line-height: 1;
}

.header-dropdown__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 15.5rem;
  max-width: min(20rem, calc(100vw - 2rem));
  max-height: min(70vh, 28rem);
  overflow-y: auto;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(12, 18, 32, 0.98);
  backdrop-filter: blur(24px) saturate(1.1);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 120;
  animation: headerDropdownIn 0.2s ease;
}
.header-dropdown__panel[hidden] {
  display: none;
}
@keyframes headerDropdownIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.header-dropdown__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.header-dropdown__nav a {
  display: block;
  padding: 0.62rem 0.8rem;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.35;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.header-dropdown__nav a:hover {
  color: var(--text);
  background: var(--surface-hover);
}
.header-dropdown__nav a[aria-current="page"] {
  color: var(--text);
  background: rgba(88, 101, 242, 0.16);
}
.header-dropdown__nav a.header-dropdown__link--accent {
  margin-top: 0.35rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: #ede9fe;
}
.header-dropdown__nav a.header-dropdown__link--accent:hover {
  color: #fff;
  background: rgba(124, 108, 255, 0.18);
}

.header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.header__actions .btn {
  flex-shrink: 0;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.lang-switch__btn {
  min-width: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: 600 0.75rem/1 Manrope, system-ui, sans-serif;
  cursor: pointer;
}

.lang-switch__btn--active {
  background: rgba(88, 101, 242, 0.35);
  color: #fff;
}

.lang-switch__btn:hover:not(.lang-switch__btn--active) {
  color: #fff;
}

.btn--partnership {
  color: #ede9fe;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.18), rgba(61, 214, 245, 0.08));
  border: 1px solid rgba(167, 139, 250, 0.5);
  box-shadow: 0 0 0 1px rgba(124, 108, 255, 0.12), 0 4px 18px rgba(124, 108, 255, 0.18);
}
.btn--partnership:hover {
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 108, 255, 0.32), rgba(61, 214, 245, 0.14));
  border-color: rgba(196, 181, 253, 0.75);
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 6px 22px rgba(124, 108, 255, 0.28);
}
.header__partnership[aria-current="page"] {
  pointer-events: none;
  opacity: 0.92;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn__icon { width: 20px; height: 20px; }
.btn__avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.btn--sm { padding: 0.55rem 1.1rem; font-size: 0.875rem; }
.btn--lg { padding: 0.9rem 1.75rem; font-size: 1rem; }

.btn--primary {
  background: linear-gradient(135deg, var(--discord), var(--discord-dark));
  color: white;
  box-shadow: 0 4px 24px rgba(88, 101, 242, 0.35);
}
.btn--primary:hover {
  box-shadow: 0 6px 32px rgba(88, 101, 242, 0.5);
}

.btn--ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn--ghost:hover { background: var(--surface-hover); }

.btn--glow {
  box-shadow: 0 0 40px rgba(88, 101, 242, 0.4), 0 4px 24px rgba(88, 101, 242, 0.3);
}

main { position: relative; z-index: 1; padding-top: var(--header-h); }

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h));
}

.badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  background: rgba(88, 101, 242, 0.12);
  border: 1px solid rgba(88, 101, 242, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--discord);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--discord) 0%, var(--violet) 50%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero__lead code {
  background: rgba(88, 101, 242, 0.12);
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--discord);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2.5rem;
}
.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero__visual {
  display: flex;
  justify-content: center;
}

.logo__icon--discord { background: var(--discord); }

.discord-window {
  display: flex;
  width: min(520px, 95vw);
  min-height: 380px;
  background: #313338;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.discord-window__sidebar {
  width: 148px;
  background: #2b2d31;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex-shrink: 0;
}

.discord-window__guild-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0.75rem;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.4);
}
.discord-window__guild-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.discord-window__channel {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #949ba4;
}
.discord-window__channel--active {
  background: #404249;
  color: #f2f3f5;
}

.discord-window__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--discord-bg);
}

.discord-window__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-weight: 600;
  font-size: 0.9rem;
  color: #f2f3f5;
}

.discord-window__pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(35, 165, 90, 0.2);
  color: #23a55a;
}

.discord-feed {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dmsg {
  display: flex;
  gap: 0.75rem;
  animation: msgIn 0.4s ease backwards;
}
.dmsg:nth-child(1) { animation-delay: 0.15s; }
.dmsg:nth-child(2) { animation-delay: 0.45s; }
.dmsg:nth-child(3) { animation-delay: 0.75s; }

.dmsg__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.dmsg__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dmsg__avatar--user {
  background: #5865f2;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.dmsg__avatar--bot {
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.45);
}

.dmsg__head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.dmsg__name { font-weight: 600; font-size: 0.875rem; color: #f2f3f5; }
.dmsg__tag {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.3rem;
  border-radius: 3px;
  background: #5865f2;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
}
.dmsg__time { font-size: 0.7rem; color: #949ba4; }
.dmsg__body p { font-size: 0.875rem; color: #dbdee1; line-height: 1.45; }
.dmsg__body code {
  background: #1e1f22;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: #e3e5e8;
}
.dmsg__slash { color: #949ba4 !important; font-style: italic; }

.dmsg__embed {
  margin-top: 0.25rem;
  padding: 0.75rem 1rem 0.75rem 0.75rem;
  max-width: 520px;
  background: #2b2d31;
  border-left: 4px solid #5865f2;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
  color: #dbdee1;
}
.dmsg__embed strong { color: #f2f3f5; font-size: 0.85rem; }

.dmsg__embed--rich {
  gap: 0.5rem;
  max-width: 100%;
}
.dmsg__embed-title {
  color: #f2f3f5;
  font-weight: 700;
  font-size: 0.875rem;
}
.dmsg__embed-desc {
  color: #dbdee1;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
}
.dmsg__embed-desc strong { color: #f2f3f5; }
.dmsg__embed-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 0.75rem;
  margin-top: 0.25rem;
}
.dmsg__embed-field {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.dmsg__embed-field-name {
  color: #f2f3f5;
  font-weight: 600;
  font-size: 0.75rem;
}
.dmsg__embed-field-value {
  color: #b5bac1;
  font-size: 0.72rem;
  line-height: 1.35;
}
.dmsg__embed-field-value code {
  background: #1e1f22;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.95em;
  color: #e3e5e8;
}
.dmsg__embed-footer {
  color: #949ba4;
  font-size: 0.68rem;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta__support {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--discord);
  font-weight: 600;
  font-size: 0.925rem;
}
.cta__support:hover { text-decoration: underline; }
.cta__support[hidden] { display: none; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: none;
}
.section--alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section__head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}
.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--discord);
  margin-bottom: 0.75rem;
}
.section__head h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section__head p { color: var(--text-muted); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  border-color: rgba(88, 101, 242, 0.3);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.card__icon--blue { background: rgba(88, 101, 242, 0.15); }
.card__icon--violet { background: rgba(124, 108, 255, 0.15); }
.card__icon--cyan { background: rgba(61, 214, 245, 0.15); }
.card__icon--green { background: rgba(52, 211, 153, 0.15); }
.card__icon--orange { background: rgba(251, 146, 60, 0.15); }
.card__icon--pink { background: rgba(244, 114, 182, 0.15); }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.card p { color: var(--text-muted); font-size: 0.925rem; }
.card p code {
  background: rgba(88, 101, 242, 0.1);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--discord);
}

.section__head code {
  background: rgba(88, 101, 242, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--discord);
}

/* ── Why us ── */
.section--why {
  position: relative;
  overflow: hidden;
}
.section--why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 30%, rgba(88, 101, 242, 0.08), transparent 60%),
              radial-gradient(ellipse 50% 40% at 80% 70%, rgba(52, 211, 153, 0.06), transparent 55%);
  pointer-events: none;
}
.section--why > * {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.why__layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(320px, 1.15fr);
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
  margin-bottom: 2.5rem;
}
.why__intro {
  min-width: 0;
}
.why__intro .section__tag {
  display: block;
  text-align: left;
  margin-bottom: 0.75rem;
}
.why__intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.why__intro p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
  max-width: 34ch;
}
.why__intro .btn {
  max-width: 100%;
  width: max-content;
  white-space: normal;
  text-align: center;
  line-height: 1.25;
  text-wrap: balance;
}

.why__grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
}
.why__item {
  display: flex;
  gap: 0.9rem;
  padding: 1.15rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.why__item:hover {
  border-color: rgba(88, 101, 242, 0.28);
  background: var(--surface-hover);
  transform: translateY(-2px);
}
.why__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}
.why__icon--blue { background: rgba(88, 101, 242, 0.15); }
.why__icon--green { background: rgba(52, 211, 153, 0.15); }
.why__icon--violet { background: rgba(124, 108, 255, 0.15); }
.why__icon--cyan { background: rgba(61, 214, 245, 0.15); }
.why__icon--orange { background: rgba(251, 146, 60, 0.15); }
.why__icon--pink { background: rgba(244, 114, 182, 0.15); }

.why__item h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.why__item p {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.why__item code {
  background: rgba(88, 101, 242, 0.1);
  padding: 0.05rem 0.3rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--discord);
}

.why__bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 1.35rem 0;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 101, 242, 0.2);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(52, 211, 153, 0.06));
  margin-top: 0.25rem;
}
.why__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 4.75rem;
  padding: 0 0.75rem;
  text-align: center;
}
.why__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18%;
  right: 0;
  width: 1px;
  height: 64%;
  background: rgba(255, 255, 255, 0.1);
}
.why__stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
.why__stat span {
  display: block;
  max-width: 12rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  line-height: 1.35;
}

@media (max-width: 900px) {
  .why__layout {
    grid-template-columns: 1fr;
  }
  .why__intro {
    text-align: center;
  }
  .why__intro .section__tag { text-align: center; }
  .why__intro p { max-width: none; margin-left: auto; margin-right: auto; }
  .why__intro .btn {
    width: 100%;
    max-width: min(320px, 100%);
    margin: 0 auto;
  }
  .why__grid { grid-template-columns: 1fr; }
  .why__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Slash command demo (Discord UI) ── */
.slash-demo {
  max-width: 780px;
  margin: 0 auto;
}

.slash-demo__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 0.15rem;
}

.slash-filter {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(88, 101, 242, 0.15);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}
.slash-filter:hover {
  background: rgba(88, 101, 242, 0.08);
  color: var(--text);
  transform: translateY(-1px);
}
.slash-filter--active {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.25), rgba(124, 108, 255, 0.15));
  border-color: rgba(88, 101, 242, 0.5);
  color: #fff;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.2);
}

.slash-demo__window {
  display: flex;
  min-height: 480px;
  background: #313338;
  border-radius: 8px;
  overflow: hidden;
  border: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  font-size: 16px;
  line-height: 1.375;
}

.slash-demo__sidebar {
  width: 176px;
  flex-shrink: 0;
  background: #2b2d31;
  padding: 0.75rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.slash-demo__guild img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 2px rgba(88, 101, 242, 0.4);
}

.slash-demo__channels {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.slash-demo__channel-cat {
  padding: 1rem 0.35rem 0.35rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #949ba4;
  text-transform: uppercase;
}

.slash-demo__channel {
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  color: #949ba4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slash-demo__channel--active {
  background: #404249;
  color: #f2f3f5;
}

.slash-demo__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #313338;
}

.slash-demo__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 1rem;
  border-bottom: 1px solid #1f2023;
  background: #313338;
  box-shadow: 0 1px 0 rgba(4, 4, 5, 0.2), 0 1.5px 0 rgba(6, 6, 7, 0.05), 0 2px 0 rgba(4, 4, 5, 0.05);
}

.slash-demo__topbar-left {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.slash-demo__hash {
  color: #80848e;
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}
.slash-demo__channel-name {
  font-weight: 600;
  font-size: 1rem;
  color: #f2f3f5;
}

.slash-demo__topbar-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  color: #b5bac1;
}
.slash-demo__toolbar-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  opacity: 0.7;
  cursor: default;
}
.slash-demo__toolbar-icon svg {
  width: 20px;
  height: 20px;
  fill: #b5bac1;
}

.slash-demo__chat {
  flex: 1;
  padding: 1rem 1rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-height: 240px;
  overflow-y: auto;
  background: #313338;
}

.slash-demo__welcome {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin: auto;
  padding: 1.5rem 1rem;
  max-width: 340px;
}

.slash-demo__welcome-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.35), transparent 70%);
  filter: blur(24px);
  top: 0;
  pointer-events: none;
  animation: welcomePulse 3s ease-in-out infinite;
}

@keyframes welcomePulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.slash-demo__welcome-avatar {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow:
    0 0 0 3px rgba(88, 101, 242, 0.45),
    0 8px 32px rgba(0, 0, 0, 0.4);
}

.slash-demo__welcome-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f2f3f5;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.slash-demo__welcome-text {
  font-size: 0.875rem;
  color: #949ba4;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.slash-demo__suggestions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}

.slash-suggest {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(88, 101, 242, 0.3);
  background: rgba(88, 101, 242, 0.1);
  color: #c8cdf5;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.slash-suggest:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.55);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.25);
}

.slash-demo__exchange {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  animation: msgIn 0.3s ease;
  padding: 0.125rem 0;
}

.slash-interaction {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 1.375rem;
  font-size: 0.875rem;
  line-height: 1.2857;
  color: #b5bac1;
}
.slash-interaction__avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #5865f2;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.slash-interaction__user {
  color: #f2f3f5;
  font-weight: 500;
}
.slash-interaction__used {
  color: #b5bac1;
  font-weight: 400;
}
.slash-interaction__cmd {
  display: inline-flex;
  align-items: center;
  padding: 0 0.375rem;
  min-height: 1.25rem;
  border-radius: 3px;
  background: #41434a;
  color: #dbdee1;
  font-weight: 500;
  font-size: 0.875rem;
}

.slash-used__bot {
  margin-top: 0.125rem;
  padding-left: 0;
}
.slash-used__bot .dmsg__avatar {
  width: 40px;
  height: 40px;
  margin-top: 2px;
}
.slash-used__bot .dmsg__body p {
  font-size: 0.875rem;
  color: #dbdee1;
  margin: 0;
  line-height: 1.45;
}
.slash-used__bot .dmsg__body p strong { color: #f2f3f5; }

.slash-used__typing {
  display: flex;
  gap: 4px;
  padding: 0.25rem 0;
}
.slash-used__typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #949ba4;
  animation: typingBounce 1.2s ease infinite;
}
.slash-used__typing span:nth-child(2) { animation-delay: 0.15s; }
.slash-used__typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.dmsg__ephemeral {
  font-size: 0.75rem;
  color: #949ba4;
  margin: 0.25rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.dmsg__ephemeral::before {
  content: '';
  width: 16px;
  height: 16px;
  opacity: 0.7;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23949ba4'%3E%3Cpath d='M12 5C7 5 2.73 8.11 1 12.5 2.73 16.89 7 20 12 20s9.27-3.11 11-7.5C21.27 8.11 17 5 12 5zm0 11.5a4 4 0 1 1 0-8 4 4 0 0 1 0 8z'/%3E%3C/svg%3E");
}

.dmsg__file {
  font-size: 0.8rem;
  color: #00a8fc;
  margin: 0.35rem 0 0;
}

.demo-rank-img,
.demo-top-img {
  display: block;
  max-width: min(420px, 100%);
  height: auto;
  border-radius: 8px;
  margin-top: 0.125rem;
}

.demo-top-img {
  max-width: min(480px, 100%);
}

.slash-demo__footer {
  padding: 0 1rem 1.5rem;
  background: #313338;
}

.slash-demo__composer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #383a40;
  border-radius: 8px;
  padding: 0 1rem;
  min-height: 44px;
  border: none;
}
.slash-demo__composer:focus-within {
  box-shadow: none;
}

.demo-top { display: flex; flex-direction: column; gap: 0.3rem; margin-top: 0.25rem; }
.demo-top__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #b5bac1;
}
.demo-top__row span:first-child { width: 1.25rem; text-align: center; flex-shrink: 0; }
.demo-top__row strong { color: #f2f3f5; margin-left: auto; font-weight: 600; }
.demo-top__row--1 { color: #ffd700; }
.demo-top__row--2 { color: #c0c0c0; }
.demo-top__row--3 { color: #cd7f32; }

.demo-stats__preview {
  background: linear-gradient(135deg, #0f1729, #1e293b);
  border: 1px solid rgba(88, 101, 242, 0.3);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  max-width: 260px;
}
.demo-stats__head {
  font-weight: 700;
  font-size: 0.85rem;
  color: #f2f3f5;
  margin-bottom: 0.5rem;
}
.demo-stats__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.75rem;
  font-size: 0.75rem;
}
.demo-stats__grid span { color: #949ba4; }
.demo-stats__grid strong { color: #dbdee1; text-align: right; }

.demo-rp-list {
  line-height: 1.6 !important;
}
.demo-rp-list code {
  background: #1e1f22;
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  font-size: 0.9em;
  margin-right: 0.15rem;
}

.slash-demo__composer-plus {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #404249;
  color: #b5bac1;
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  cursor: default;
  opacity: 0.65;
}

.slash-picker-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}

.slash-pick-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.625rem 0;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 400;
  color: #dbdee1;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
}
.slash-pick-btn:hover {
  color: #f2f3f5;
}
.slash-pick-btn--open {
  color: #f2f3f5;
}

.slash-pick-btn__slash {
  display: none;
}

.slash-pick-btn__label {
  flex: 1;
  min-width: 0;
  color: #6d6f78;
  font-weight: 400;
}
.slash-pick-btn:hover .slash-pick-btn__label,
.slash-pick-btn--open .slash-pick-btn__label {
  color: #949ba4;
}

.slash-pick-btn__hint {
  font-size: 0.72rem;
  font-weight: 500;
  color: #949ba4;
  flex-shrink: 0;
}
.slash-pick-btn:hover .slash-pick-btn__hint,
.slash-pick-btn--open .slash-pick-btn__hint {
  color: #b5bac1;
}

.slash-picker {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 10;
}
.slash-picker[hidden] { display: none; }

.slash-picker .slash-autocomplete {
  position: static;
  max-height: 340px;
}

.slash-autocomplete {
  background: #2b2d31;
  border: 1px solid #1e1f22;
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.slash-autocomplete__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #949ba4;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}
.slash-autocomplete__header img {
  border-radius: 50%;
  object-fit: cover;
}

.slash-autocomplete__list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 0.25rem 0;
}
.slash-autocomplete__list:empty::after {
  content: 'Нет команд';
  display: block;
  padding: 1rem 0.75rem;
  color: #949ba4;
  font-size: 0.85rem;
  text-align: center;
}
html[lang="en"] .slash-autocomplete__list:empty::after {
  content: 'No commands';
}

.slash-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.65rem;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: background 0.12s;
}
.slash-option:hover,
.slash-option--active {
  background: #404249;
}
.slash-option__name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #f2f3f5;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.slash-option__name img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
}
.slash-option__desc {
  grid-column: 2;
  font-size: 0.75rem;
  color: #949ba4;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}
.step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.step__num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--discord), var(--violet));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}
.step h3 { font-weight: 700; margin-bottom: 0.35rem; }
.step p { color: var(--text-muted); font-size: 0.925rem; }
.step code {
  background: rgba(88, 101, 242, 0.12);
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  font-size: 0.85em;
  color: var(--discord);
}

.faq {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq__item summary {
  padding: 1.15rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--discord);
  transition: transform 0.2s;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p {
  padding: 0 1.5rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}

.cta {
  padding: clamp(4rem, 10vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
.cta__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(42,171,238,0.12), rgba(124,108,255,0.12));
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: var(--radius-lg);
}
.cta__avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 0 3px rgba(88, 101, 242, 0.35), 0 8px 32px rgba(0,0,0,0.3);
}
.cta__inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.cta__inner p {
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 2rem clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 1;
}

/* Site footer (RudeHolm-style grid) */
.site-footer {
  margin-top: 48px;
  padding: 40px clamp(1rem, 4vw, 2.5rem) 32px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.25));
  position: relative;
  z-index: 1;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 32px;
  align-items: start;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
}
.footer-brand:hover .brand-grib { text-shadow: 0 0 20px rgba(88, 101, 242, 0.45); }
.footer-logo-i {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(88, 101, 242, 0.25);
}
.footer-brand-text {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.footer-brand-text small {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-top: 2px;
}
.brand-grib { color: var(--text); }
.footer-copy {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.footer-mail a,
.footer-req {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}
.footer-mail a:hover { color: var(--discord); }
.footer-hours {
  font-size: 0.78rem;
  margin-top: 4px;
  opacity: 0.85;
  color: var(--text-muted);
}
.footer-req {
  margin-top: 8px;
  line-height: 1.5;
  color: var(--text-muted);
  font-size: 0.78rem;
}
.footer-legal p {
  margin-bottom: 14px;
  font-size: 0.78rem;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--text-muted);
}
.footer-legal p a {
  color: var(--text-muted);
  text-decoration: underline;
}
.footer-legal p a:hover { color: var(--discord); }
.footer-legal > a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 8px;
}
.footer-legal a.under {
  text-decoration: underline;
  font-weight: 500;
  color: var(--text-muted);
}
.footer-legal > a:hover { color: var(--discord); }
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
}
.footer-nav a:hover { color: var(--discord); opacity: 1; }
.footer-social {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.footer-soc {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
  color: inherit;
  text-decoration: none;
}
.footer-soc:hover {
  transform: translateY(-2px);
  border-color: var(--discord);
  background: rgba(88, 101, 242, 0.12);
}
.footer-soc svg { width: 22px; height: 22px; fill: currentColor; }
.footer-soc.tg { color: #2aabee; }
.footer-soc.ds { color: #7289da; }
.footer-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.footer-topgg {
  display: inline-block;
  margin-top: 8px;
  opacity: 0.92;
  transition: opacity 0.2s, transform 0.2s;
}
.footer-topgg:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.footer-topgg img {
  display: block;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-social { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .site-footer { padding: 32px 18px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem 1.5rem 4rem;
}
.legal__doc {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
}
.legal__updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin: 0 0 1rem;
}
.legal__doc h1 {
  font-size: 1.75rem;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.legal__doc h2 {
  font-size: 1.05rem;
  margin: 1.75rem 0 0.65rem;
  color: var(--text);
}
.legal__doc p,
.legal__doc li {
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
}
.legal__doc ul {
  margin: 0.5rem 0 1rem;
  padding-left: 1.25rem;
}
.legal__doc a:not(.btn) { color: var(--discord); }
.legal__doc .btn--primary { color: #fff; }
.legal__doc code {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.88em;
}
.legal__back {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.legal__doc h3 {
  font-size: 1.05rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text);
}

/* ── Trust / security ── */
.section--trust {
  position: relative;
  overflow: hidden;
}
.section--trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(52, 211, 153, 0.06), transparent 60%);
  pointer-events: none;
}
.section--trust > * { position: relative; z-index: 1; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.trust-card {
  padding: 1.35rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color 0.2s, transform 0.2s;
}
.trust-card:hover {
  border-color: rgba(88, 101, 242, 0.28);
  transform: translateY(-2px);
}
.trust-card--shield {
  border-color: rgba(52, 211, 153, 0.25);
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.08), var(--surface));
}
.trust-card__ico {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.65rem;
}
.trust-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.trust-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.trust-card a { color: var(--discord); }

.trust-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid rgba(88, 101, 242, 0.22);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(255, 255, 255, 0.02));
}
.trust-banner p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  max-width: 52ch;
}
.trust-banner strong { color: var(--text); }

.trust-page .trust-doc { max-width: 720px; }
.trust-hero { margin-bottom: 1.5rem; }
.trust-hero__badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: #86efac;
  margin-bottom: 0.75rem;
}
.trust-hero__lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.trust-highlight {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.trust-highlight--ok {
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.08);
}
.trust-highlight strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #86efac;
}
.trust-highlight p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.trust-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.trust-compare__col {
  padding: 1.15rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.trust-compare__col--accent {
  border-color: rgba(88, 101, 242, 0.3);
  background: linear-gradient(145deg, rgba(88, 101, 242, 0.1), var(--surface));
}
.trust-compare__col h3 {
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.trust-compare__col p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.trust-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.trust-perms {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.trust-perm {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.trust-perm__ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border-radius: 10px;
  background: rgba(88, 101, 242, 0.12);
}
.trust-perm h3 {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.trust-perm p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.trust-dont {
  margin: 0 0 1.5rem;
  padding-left: 0;
  list-style: none;
}
.trust-dont li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.trust-dont li:last-child { border-bottom: none; }

.trust-steps {
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
.trust-steps li { margin-bottom: 0.5rem; }
.trust-steps strong { color: var(--text); }

.trust-cta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(88, 101, 242, 0.25);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(124, 108, 255, 0.06));
}
.trust-cta img { border-radius: 14px; }
.trust-cta p { margin: 0 0 0.75rem; font-weight: 600; }

@media (max-width: 640px) {
  .trust-banner { flex-direction: column; align-items: stretch; }
  .trust-banner .btn { width: 100%; justify-content: center; }
  .trust-cta { flex-direction: column; text-align: center; }
  .trust-cta .btn { width: 100%; }
}

.data-req-tabs {
  display: flex;
  gap: 0.5rem;
  margin: 1.5rem 0 1rem;
  flex-wrap: wrap;
}
.data-req-tab {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}
.data-req-tab--active {
  border-color: var(--discord);
  color: var(--text);
  background: rgba(88, 101, 242, 0.15);
}
.data-req-form { margin: 0 0 2rem; }
.data-req-check {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
}
.data-req-check input { margin-top: 0.2rem; }
.data-req-check a { color: var(--discord); }

/* ─── Контейнер ≤1499px: планшет/ноутбук (компакт + hide-on-tablet) ─── */
@container site-header (max-width: 1499px) {
  .nav { gap: 0.4rem; }
  .nav a {
    font-size: 0.78rem;
    padding: 0.2rem 0.3rem;
  }
  .nav .hide-on-tablet {
    display: none !important;
  }
}

/* ─── Контейнер ≤1280px: ещё меньше пунктов ─── */
@container site-header (max-width: 1280px) {
  .nav .hide-on-laptop {
    display: none !important;
  }
}

/* ─── Контейнер ≤1000px: бургер-шторка ─── */
@container site-header (max-width: 1000px) {
  .nav { display: none !important; }
  .header-dropdown { display: block; }
  .header-dropdown__panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
    max-height: calc(100vh - var(--header-h));
    border-radius: 0 0 16px 16px;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem;
    animation: headerCurtainIn 0.22s ease;
  }
  .header-dropdown__nav a {
    font-size: 1rem;
    padding: 0.75rem 0.85rem;
  }
}

@keyframes headerCurtainIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Viewport fallback: 1025–1400px */
@media (max-width: 1400px) {
  .nav { gap: 0.4rem; }
  .nav a {
    font-size: 0.78rem;
    padding: 0.2rem 0.3rem;
  }
  .nav .hide-on-tablet {
    display: none !important;
  }
}

@media (max-width: 1280px) {
  .nav .hide-on-laptop {
    display: none !important;
  }
}

/* Viewport fallback: ≤1024px — бургер */
@media (max-width: 1024px) {
  .nav { display: none !important; }
  .header-dropdown { display: block; }
  .header-dropdown__panel {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    min-width: 0;
    max-width: none;
    max-height: calc(100vh - var(--header-h));
    border-radius: 0 0 16px 16px;
    border-top: 1px solid var(--border);
    padding: 0.75rem 1rem 1.25rem;
    animation: headerCurtainIn 0.22s ease;
  }
  .header-dropdown__nav a {
    font-size: 1rem;
    padding: 0.75rem 0.85rem;
  }
}

@media (max-width: 900px) {
  :root { --header-h: 60px; }

  .header { padding: 0; }
  .header__inner { padding: 0 1rem; }
  .header-dropdown__label { display: none; }
  .header-dropdown__toggle {
    width: 40px;
    padding: 0;
  }
  .header__cta {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.8125rem;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding: 2.5rem 1rem 3rem;
    gap: 2rem;
  }
  .hero__lead { margin-left: auto; margin-right: auto; font-size: 1rem; }
  .hero__actions {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero__actions .btn { width: 100%; }
  .hero__stats { justify-content: center; flex-wrap: wrap; gap: 1.25rem 2rem; }
  .hero__visual { order: -1; max-width: 100%; }
  .discord-window {
    animation: none;
    max-width: 100%;
    margin: 0 auto;
  }
  .slash-demo__sidebar { display: none; }
  .slash-demo__topbar-right .slash-demo__toolbar-icon { display: none; }
  .slash-pick-btn__hint { display: none; }

  .section {
    padding: 3rem 1rem;
  }
  .section--alt {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .cards { grid-template-columns: 1fr; }
  .network-grid { grid-template-columns: 1fr; }
  .network-stats { grid-template-columns: repeat(2, 1fr); }
  .shop-teaser { padding: 1.25rem; text-align: center; }
  .shop-teaser .btn { width: 100%; max-width: 320px; }
  .steps { gap: 0.75rem; }
  .cta { padding: 2.5rem 1rem; }
  .cta__inner { flex-direction: column; text-align: center; }
  .cta__actions { flex-direction: column; width: 100%; max-width: 320px; }
  .cta__actions .btn { width: 100%; }
  .why__bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    padding: 1rem 0;
  }
  .why__stat:nth-child(2)::after { display: none; }
  .why__stat:nth-child(odd):not(:last-child)::after { display: block; }
  .why__stat:nth-child(even)::after { display: none; }
  .why__stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, 0.08); padding-bottom: 1rem; margin-bottom: 0.25rem; }
  .studio-login__card { padding: 1.25rem; }
  .studio-form__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 2rem; }
  .why__intro h2 { font-size: clamp(1.4rem, 6.5vw, 1.75rem); }
  .hero__stats { gap: 1rem 1.5rem; }
  .stat__value { font-size: 1.25rem; }
  .dmsg__embed-fields { grid-template-columns: 1fr; }
  .slash-demo__welcome-avatar { width: 64px; height: 64px; }
  .slash-demo__filters { gap: 0.35rem; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 0.35rem; }
  .slash-filter { font-size: 0.75rem; padding: 0.4rem 0.7rem; flex-shrink: 0; }
  .logo__text { font-size: 1rem; }
  .why__bar { grid-template-columns: 1fr 1fr; }
  .faq__item summary { font-size: 0.92rem; }
}

.network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.network-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.network-card__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.network-card h3 { margin: 0 0 0.75rem; font-size: 1.15rem; }
.network-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.network-card__meta { font-size: 0.75rem; color: var(--muted); }
.network-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.925rem;
}
.network-list li { margin-bottom: 0.35rem; }
.network-note {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.guild-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guild-leaderboard__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}
.guild-leaderboard__item:last-child { border-bottom: none; }
.guild-leaderboard__rank {
  width: 1.75rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
}
.guild-leaderboard__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-alt);
  flex-shrink: 0;
}
.guild-leaderboard__icon--ph {
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.guild-leaderboard__body { flex: 1; min-width: 0; }
.guild-leaderboard__name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.guild-leaderboard__meta {
  font-size: 0.78rem;
  color: var(--muted);
}
.guild-leaderboard__empty {
  color: var(--muted);
  padding: 1rem 0;
}
.network-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  padding-top: 0.5rem;
}
.network-stat { text-align: center; }
.network-stat__val {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}
.network-stat__lbl {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ── Studio triggers ── */
.studio-login__card {
  max-width: 420px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.studio-login__card h3 { margin: 0 0 0.75rem; }
.studio-pricing {
  text-align: left;
  margin: 1.25rem 0 1.5rem;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.studio-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.studio-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.studio-user {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.studio-balance { color: #22c55e; }
.studio-label {
  display: block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.studio-input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
}
.studio-textarea { min-height: 5rem; resize: vertical; }
.studio-hint {
  display: block;
  margin-top: 0.35rem;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}
.studio-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .studio-form__grid { grid-template-columns: 1fr; }
}
.studio-form__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.studio-status {
  min-height: 1.25rem;
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.studio-status--ok { color: #22c55e; }
.studio-status--err { color: #ef4444; }
.studio-list-title {
  margin: 2rem 0 1rem;
  font-size: 1rem;
}
.studio-list { display: flex; flex-direction: column; gap: 0.75rem; }
.studio-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.studio-trigger {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.studio-trigger--off { opacity: 0.55; }
.studio-trigger__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.studio-trigger__phrase {
  font-size: 1rem;
  background: rgba(88, 101, 242, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}
.studio-trigger__match,
.studio-trigger__on,
.studio-trigger__off {
  font-size: 0.75rem;
  color: var(--muted);
}
.studio-trigger__on { color: #22c55e; }
.studio-trigger__off { color: #f59e0b; }
.studio-trigger__text {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  white-space: pre-wrap;
}
.studio-trigger__img {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.studio-trigger__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}
.studio-trigger__del { color: #ef4444 !important; }

/* ── Card shop ── */
.card-shop {
  max-width: 1100px;
  margin: 0 auto;
}
.card-shop-login__card {
  max-width: 420px;
  margin: 0 auto 1.5rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.card-shop-login__card h3 { margin: 0 0 0.5rem; }
.card-shop-panel { margin-bottom: 1rem; }
.card-shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.card-shop-user {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}
.card-shop-balance { color: #22c55e; }
.card-shop-premium-badge {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fbbf24;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.12);
}
.shop-billing {
  margin-bottom: 1.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 108, 255, 0.35);
  background: rgba(15, 23, 42, 0.55);
}
.shop-billing__head h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.shop-billing__head p { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.88rem; }
.shop-billing__grid {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 280px);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 760px) {
  .shop-billing__grid { grid-template-columns: 1fr; }
}
.shop-billing__packs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
@media (max-width: 560px) {
  .shop-billing__packs { grid-template-columns: 1fr; }
}
.shop-pack {
  padding: 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.65);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.shop-pack__amount { font-size: 1.05rem; font-weight: 700; }
.shop-pack__price { color: var(--muted); font-size: 0.9rem; }
.shop-pack__price strong { color: #22c55e; font-size: 1.1rem; }
.shop-billing__premium {
  position: relative;
  padding: 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.45);
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.12), rgba(124, 108, 255, 0.15));
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.shop-billing__premium--owned {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.1), rgba(124, 108, 255, 0.1));
}
.shop-billing__premium-tag {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fbbf24;
}
.shop-billing__premium h4 { margin: 0; font-size: 1rem; }
.shop-billing__price { margin: 0; font-size: 0.9rem; color: var(--muted); }
.shop-billing__price strong { color: #fbbf24; font-size: 1.35rem; }
.shop-billing__perks {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: var(--muted);
  flex: 1;
}
.shop-billing__premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.15rem;
}
.shop-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.shop-modal[hidden] { display: none; }
body.shop-modal-open { overflow: hidden; }
.shop-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}
.shop-modal__panel {
  position: relative;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 1.25rem 1.35rem 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: linear-gradient(160deg, #12182a 0%, #0b1220 55%, #151028 100%);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.shop-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.shop-modal__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.shop-modal__title {
  margin: 0 2rem 0.75rem 0;
  font-size: 1.1rem;
  color: #fde68a;
}
.shop-modal__lead {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
}
.shop-modal__section {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.55);
}
.shop-modal__section h4 {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  color: #c7d2fe;
}
.shop-modal__section ul {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}
.shop-modal__footer {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}
.shop-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}
.shop-modal__panel--wide { width: min(920px, 100%); }
.premium-picks__tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.premium-picks__tab {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}
.premium-picks__tab--active {
  border-color: rgba(167, 139, 250, 0.55);
  color: #e9d5ff;
  background: rgba(167, 139, 250, 0.12);
}
.premium-picks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.65rem;
  max-height: 50vh;
  overflow: auto;
  padding: 0.15rem;
}
.premium-picks__section {
  grid-column: 1 / -1;
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: #c7d2fe;
}
.premium-picks__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.45rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(11, 18, 32, 0.45);
  cursor: pointer;
  font-size: 0.78rem;
}
.premium-picks__item--on {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.25);
}
.premium-picks__item input { margin: 0; }
.premium-picks__item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.premium-picks__counter {
  margin-right: auto;
  font-size: 0.9rem;
  color: #fde68a;
}
.shop-billing__note {
  margin: 0.75rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}
.shop-billing__paybar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.65rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.2);
}
.shop-pay-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c4b5fd;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(139, 92, 246, 0.2);
}
.shop-pay-methods {
  font-size: 0.78rem;
  color: var(--muted);
}
.shop-pack__btn--pay {
  width: 100%;
  margin-top: 0.35rem;
}
.card-shop-tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}
.card-shop-tab {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.card-shop-tab:hover { border-color: var(--accent); }
.card-shop-tab--active {
  background: rgba(88, 101, 242, 0.18);
  border-color: #5865f2;
  color: #c7d2fe;
}
.card-shop-top-bar {
  margin-bottom: 1rem;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-shop-top-glow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: var(--muted);
  cursor: pointer;
}
.card-shop-top-glow input {
  width: 1rem;
  height: 1rem;
  accent-color: #5865f2;
}
.card-shop-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}
.card-shop-filters__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  flex: 1 1 200px;
}
.card-shop-chip {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.card-shop-chip:hover {
  border-color: var(--accent);
  color: var(--text);
}
.card-shop-chip--active {
  background: rgba(88, 101, 242, 0.14);
  border-color: #5865f2;
  color: #c7d2fe;
}
.card-shop-filters__sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  flex: 0 0 auto;
}
.card-shop-filters__sort-label {
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
.card-shop-filters__select {
  min-width: 9.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.85rem;
}
.card-shop-section {
  grid-column: 1 / -1;
  margin: 0.5rem 0 0;
  padding: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #c7d2fe;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(88, 101, 242, 0.2);
}
.card-shop-section:first-child {
  margin-top: 0;
}
.card-shop-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
}
.card-shop-status {
  min-height: 1.25rem;
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.card-shop-status--ok { color: #22c55e; }
.card-shop-status--err { color: #ef4444; }
.card-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.card-theme {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.card-theme--equipped {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.25);
}
.card-theme__preview {
  position: relative;
  background: #0b1220;
  line-height: 0;
  min-height: 120px;
}
.card-theme__preview img {
  width: 100%;
  height: auto;
  display: block;
}
.card-theme__badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(0,0,0,0.65);
  color: #fff;
}
.card-theme__badge--owned { color: #86efac; }
.card-theme--luxe {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.15);
}
.card-theme__badge--luxe {
  background: linear-gradient(135deg, #fbbf24, #f472b6);
  color: #1a1020;
}
.card-theme__badge--gif {
  background: linear-gradient(135deg, #22d3ee, #a78bfa);
  color: #0b1220;
  top: 2.1rem;
}
.card-theme__badge--equipped ~ .card-theme__badge--gif,
.card-theme__badge--owned ~ .card-theme__badge--gif {
  top: 3.8rem;
}
.card-theme__badge--equipped ~ .card-theme__badge--luxe,
.card-theme__badge--owned ~ .card-theme__badge--luxe {
  top: 2.1rem;
}
.card-theme--custom-slot .card-theme__preview {
  border: 1px dashed rgba(251, 191, 36, 0.35);
}
.card-custom-editor {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(15, 23, 42, 0.6);
}
.card-custom-editor__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.card-custom-editor__head p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.card-custom-editor__layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 1rem;
  align-items: start;
}
@media (max-width: 800px) {
  .card-custom-editor__layout { grid-template-columns: 1fr; }
}
.card-custom-editor__preview-wrap {
  background: #0b1220;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
}
.card-custom-editor__preview-wrap img {
  width: 100%;
  height: auto;
  display: block;
}
.card-custom-editor__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.card-custom-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}
.card-custom-file__label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.card-custom-file__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}
.card-custom-file__input {
  font: inherit;
  font-size: 0.85rem;
  color: var(--muted);
  max-width: 100%;
}
.card-custom-file__input::file-selector-button {
  margin-right: 0.65rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(124, 108, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(124, 108, 255, 0.2));
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.card-custom-file__input::file-selector-button:hover {
  border-color: rgba(167, 139, 250, 0.7);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.5), rgba(124, 108, 255, 0.35));
}
.card-custom-file__input::-webkit-file-upload-button {
  margin-right: 0.65rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(124, 108, 255, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.35), rgba(124, 108, 255, 0.2));
  color: var(--text);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.card-custom-file__name {
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 12rem;
}
.card-custom-editor__preview-wrap img.is-loading {
  opacity: 0.45;
  transition: opacity 0.2s;
}
.card-custom-bg-pan {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}
.card-custom-bg-pan__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 920 / 280;
  border-radius: 10px;
  overflow: hidden;
  cursor: grab;
  background: #0b1220;
  border: 1px solid rgba(88, 101, 242, 0.35);
  touch-action: none;
  user-select: none;
}
.card-custom-bg-pan__frame.is-dragging {
  cursor: grabbing;
}
.card-custom-bg-pan__frame img {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  max-width: none;
}
.card-custom-bg-pan__hint {
  margin: 0;
}
.card-custom-bg-pan__slider {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.card-custom-bg-pan__range {
  width: 100%;
  accent-color: #5865f2;
}
.card-theme__body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.card-theme__title {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.card-theme__price {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.card-theme__price strong { color: #22c55e; }

.card-theme__effects {
  margin-left: 0.5rem;
  font-size: 0.78rem;
  color: rgba(200, 190, 255, 0.65);
}
.card-theme__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.35rem;
}
.card-theme__hint {
  font-size: 0.8rem;
  color: var(--muted);
}
.card-shop-note {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}
.card__icon--green { background: linear-gradient(135deg, #22c55e, #16a34a); }

/* ——— Shop page ——— */
.shop-page {
  padding-top: calc(var(--header-h) + 1.25rem);
  padding-bottom: 3rem;
}

.section--shop {
  padding-top: 0;
}

.section--shop .section__head h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.5rem 0 0.75rem;
}

.shop-back {
  margin: 2rem auto 0;
  max-width: var(--max);
  padding: 0 1.25rem;
  text-align: center;
}

.shop-teaser {
  max-width: 36rem;
  margin: 0 auto;
  text-align: center;
}

.shop-teaser__list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
  text-align: left;
}

.shop-teaser__list li {
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(124, 108, 255, 0.2);
  background: rgba(88, 101, 242, 0.06);
}

/* ——— Partnership / Сотрудничество ——— */
.partnership-page {
  padding-top: calc(var(--header-h) + 1.25rem);
  padding-bottom: 3rem;
}

.section--partnership {
  padding-top: 0;
  max-width: none;
}

.partnership-hero {
  position: relative;
  margin: 0 auto 3rem;
  max-width: var(--max);
  padding: 0 1.25rem;
}

.partnership-hero__glow {
  position: absolute;
  inset: -20% 10% auto;
  height: 280px;
  background: radial-gradient(ellipse at center, rgba(124, 108, 255, 0.35), transparent 70%);
  pointer-events: none;
}

.partnership-hero__inner {
  position: relative;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(124, 108, 255, 0.25);
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.12), rgba(124, 108, 255, 0.06) 50%, rgba(61, 214, 245, 0.05));
  text-align: center;
}

.partnership-hero__inner h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.75rem 0 1rem;
  line-height: 1.15;
}

.partnership-hero__lead {
  max-width: 640px;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.partnership-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.partnership-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  max-width: var(--max);
  margin: 0 auto 2.5rem;
  padding: 0 1.25rem;
}

.partnership-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  transition: border-color 0.2s, transform 0.2s;
}

.partnership-card:hover {
  border-color: rgba(124, 108, 255, 0.35);
  transform: translateY(-2px);
}

.partnership-card--featured {
  border-color: rgba(124, 108, 255, 0.45);
  background: linear-gradient(160deg, rgba(124, 108, 255, 0.14), rgba(255, 255, 255, 0.03));
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.12);
}

.partnership-card__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.partnership-card h3 {
  margin: 0;
  font-size: 1.15rem;
}

.partnership-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.partnership-list {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.partnership-list li { margin-bottom: 0.3rem; }

.partnership-cmd {
  display: block;
  margin-top: auto;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 0.78rem;
  color: #c4b5fd;
  word-break: break-all;
}

.partnership-link {
  margin-top: auto;
  font-size: 0.9rem;
  color: var(--cyan);
  font-weight: 600;
}

.partnership-link:hover { text-decoration: underline; }

.partnership-feed {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 1rem;
}

.partnership-feed__head {
  margin-bottom: 1.25rem;
}

.partnership-feed__head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.partnership-feed__head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.partnership-feed__list {
  display: grid;
  gap: 0.85rem;
}

.partnership-feed__empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.partnership-ad {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  align-items: flex-start;
}

.partnership-ad__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: cover;
}

.partnership-ad__icon--ph {
  display: grid;
  place-items: center;
  background: rgba(124, 108, 255, 0.2);
  font-size: 1.4rem;
}

.partnership-ad__body { flex: 1; min-width: 0; }

.partnership-ad__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.partnership-ad__head h4 {
  margin: 0;
  font-size: 1rem;
}

.partnership-ad__head time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.partnership-ad p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.partnership-ad__product {
  margin: 0.15rem 0 0;
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}

.partnership-ad__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.partnership-ad__meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.partnership-ad__link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--discord);
}

.partnership-ad__link:hover { text-decoration: underline; }

.partnership-back {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 0 1.25rem;
  text-align: center;
  font-size: 0.9rem;
}
.partnership-back a {
  color: var(--text-muted);
}
.partnership-back a:hover { color: var(--text); }

.partnership-hero__inner h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin: 0.75rem 0 1rem;
  line-height: 1.15;
}

.partnership-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.partnership-feed__head h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

@media (max-width: 640px) {
  .partnership-hero__inner { padding: 1.75rem 1.25rem; }
  .partnership-hero__actions .btn { width: 100%; }
}

.partnership-apply {
  max-width: var(--max);
  margin: 2rem auto 0;
  padding: 0 1.25rem;
}
.partnership-apply--feedback { margin-top: 1.5rem; }

.partnership-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.partnership-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.partnership-form__full { grid-column: 1 / -1; }
.partnership-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.partnership-form input,
.partnership-form textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.92rem;
}
.partnership-form textarea { resize: vertical; min-height: 100px; }
.partnership-file__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-top: 0.15rem;
}
.partnership-file__name {
  font-size: 0.85rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 16rem;
}
.partnership-form__hint {
  margin: 0.75rem 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.partnership-form__status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
}
.partnership-form__status--ok { color: #86efac; }
.partnership-form__status--bad { color: #fca5a5; }

.partnership-price {
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border-radius: 12px;
  background: rgba(87, 242, 135, 0.08);
  border: 1px solid rgba(87, 242, 135, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.partnership-price strong {
  font-size: 1.15rem;
  color: var(--text);
}

.partnership-price__note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.partnership-auth {
  text-align: center;
  padding: 2rem 1rem;
  border: 1px dashed var(--border);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
  .partnership-form__grid { grid-template-columns: 1fr; }
}

/* ── Post-install banner (after adding bot) ─────────────────────────── */
.post-install {
  position: relative;
  z-index: 95;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
  pointer-events: none;
}
.post-install--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.post-install--hide {
  opacity: 0;
  transform: translateY(-8px);
}
.post-install__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem 1.5rem;
  align-items: center;
  margin: 0.85rem 0 0.25rem;
  padding: 1.25rem 1.35rem 1.25rem 1.15rem;
  border-radius: 18px;
  border: 1px solid rgba(87, 242, 135, 0.28);
  background:
    linear-gradient(135deg, rgba(87, 242, 135, 0.12) 0%, rgba(88, 101, 242, 0.14) 45%, rgba(15, 23, 42, 0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 18px 48px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(87, 242, 135, 0.08);
  overflow: hidden;
}
.post-install__glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(87, 242, 135, 0.22), transparent 68%);
  pointer-events: none;
}
.post-install__icon {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.post-install__icon img {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.post-install__check {
  position: absolute;
  right: -6px;
  bottom: -6px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #22c55e;
  color: #052e16;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #0f172a;
}
.post-install__body { min-width: 0; }
.post-install__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #86efac;
  margin-bottom: 0.35rem;
}
.post-install__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  line-height: 1.25;
}
.post-install__lead {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 58ch;
}
.post-install__lead strong { color: var(--text); }
.post-install__perks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-install__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  min-width: min(220px, 100%);
}
.post-install__cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  text-align: center;
  box-shadow: 0 10px 28px rgba(88, 101, 242, 0.35);
}
.post-install__cta-sub {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}
.post-install__secondary {
  justify-content: center;
  font-size: 0.86rem;
}
.post-install__dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 0.2rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-install__dismiss:hover { color: var(--text); }
.post-install__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.post-install__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
@media (max-width: 900px) {
  .post-install__inner {
    grid-template-columns: auto 1fr;
  }
  .post-install__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .post-install__cta { flex: 1 1 200px; }
}
@media (max-width: 640px) {
  .post-install { padding: 0 1rem; }
  .post-install__inner {
    grid-template-columns: 1fr;
    padding-top: 2.25rem;
  }
  .post-install__icon { display: none; }
  .post-install__actions { flex-direction: column; }
  .post-install__cta { width: 100%; }
}
