/* ─────────────────────────────────────────────
   Pulsar Digital — стили сайта
   Цвета и шрифты меняются в :root
   ───────────────────────────────────────────── */
:root {
  --bg: #0B0D18;
  --bg-2: #10132A;
  --bg-3: #161A36;
  --line: rgba(238, 240, 247, 0.09);
  --line-2: rgba(238, 240, 247, 0.16);
  --text: #EEF0F7;
  --muted: #A3A9C2;
  --accent: #5CE1E6;
  --accent-2: #8B7CFF;
  --accent-ink: #051318;
  --danger: #FF7A85;
  --ok: #6EE7A8;
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 110px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 720px; margin-bottom: 56px; display: grid; gap: 18px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); }
.section-head p { color: var(--muted); font-size: 18px; }
.accent { color: var(--accent); }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: #7DEAEE; }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font-size: 14px; }
.link-btn:hover { color: var(--text); }
.link-btn--danger:hover { color: var(--danger); }

/* ── Шапка ── */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 24, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.logo svg { width: 38px; height: 38px; }
.logo__text { display: grid; line-height: 1; gap: 5px; }
.logo__name { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.02em; }
.logo__sub { font-size: 9.5px; font-weight: 700; letter-spacing: 0.52em; color: var(--accent); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.header__actions { display: flex; align-items: center; gap: 12px; }
.user-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line-2);
  font-family: var(--font-display); font-size: 14px; color: var(--accent); text-transform: uppercase;
}
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; place-items: center; }
.burger svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .burger { display: grid; margin-left: auto; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 72px;
    flex-direction: column; gap: 0; padding: 12px 24px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .header.is-open .nav { display: flex; }
  .header__actions .btn--tg-text { display: none; }
}
@media (max-width: 560px) {
  .header__actions .btn--ghost { display: none; }
  .logo__text { display: none; }
}

/* ── Hero ── */
.hero { padding: 90px 0 110px; overflow: hidden; position: relative; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
  opacity: .6;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; position: relative; }
.hero h1 { font-size: clamp(30px, 4.6vw, 58px); overflow-wrap: break-word; }
.hero__lead { margin-top: 26px; font-size: 19px; color: var(--muted); max-width: 560px; }
.hero__cta { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero__tags { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Иллюстрация «сайт → бот» */
.flow { position: relative; display: grid; gap: 22px; }
.flow__glow {
  position: absolute; width: 420px; height: 420px; right: 0; top: 50%;
  transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, rgba(92, 225, 230, 0.18), transparent 65%);
  pointer-events: none;
}
.mock {
  position: relative; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.mock__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.mock__url { margin-left: 10px; font-size: 12px; color: var(--muted); }
.mock__body { padding: 22px; display: grid; gap: 12px; }
.mock__title { font-family: var(--font-display); font-size: 17px; }
.mock__field { height: 40px; border-radius: 10px; border: 1px solid var(--line-2); padding: 0 14px; display: flex; align-items: center; font-size: 14px; color: var(--muted); }
.mock__btn { height: 42px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.flow__site { width: 78%; }
.flow__beam { position: relative; height: 56px; margin-left: 30%; width: 3px; background: linear-gradient(var(--accent), transparent); border-radius: 3px; }
.flow__beam::after {
  content: ''; position: absolute; left: -5px; top: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 18px var(--accent);
  animation: beam 1.8s ease-in-out infinite;
}
@keyframes beam { 0% { top: -6px; opacity: 0; } 20% { opacity: 1; } 100% { top: 50px; opacity: 0; } }
.flow__tg { width: 84%; margin-left: auto; }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.tg-head b { display: block; font-size: 15px; }
.tg-head small { color: var(--muted); font-size: 12px; }
.tg-head .bot-ava { width: 38px; height: 38px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; border: 1px solid var(--line-2); }
.tg-head .bot-ava svg { width: 26px; height: 26px; }
.bubble {
  margin: 16px 18px 18px; padding: 14px 16px; border-radius: 16px 16px 16px 4px;
  background: var(--bg-3); border: 1px solid var(--line); font-size: 14px; line-height: 1.55;
}
.bubble b { color: var(--accent); }
.bubble time { display: block; text-align: right; color: var(--muted); font-size: 11px; margin-top: 6px; }

@media (max-width: 920px) {
  .hero { padding: 56px 0 80px; }
  .hero__grid { grid-template-columns: 1fr; }
  .flow { max-width: 520px; }
}

/* ── Карточки услуг ── */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; display: grid; gap: 14px; align-content: start;
  transition: border-color .2s ease, transform .2s ease;
}
.section--alt .card { background: var(--bg); }
.card:hover { border-color: var(--line-2); }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(92, 225, 230, 0.1); color: var(--accent);
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 20px; }
.card p { color: var(--muted); font-size: 16px; }
.card ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 22px; font-size: 15px; color: var(--text); }
.card li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.card--feature {
  grid-column: span 2; border-color: rgba(92, 225, 230, 0.4);
  background: linear-gradient(135deg, rgba(92, 225, 230, 0.08), transparent 55%), var(--bg-2);
}
.card--feature .badge { justify-self: start; }
.badge {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; letter-spacing: .04em;
}
.badge--soft { background: rgba(92, 225, 230, 0.12); color: var(--accent); }
.badge--admin { background: rgba(139, 124, 255, 0.18); color: #B9B0FF; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .services { grid-template-columns: 1fr; } .card--feature { grid-column: auto; } }

/* ── Связка сайт + бот ── */
.bundle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.bundle__step { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); display: grid; gap: 12px; }
.bundle__step::before {
  counter-increment: step; content: '0' counter(step);
  font-family: var(--font-display); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1;
}
.bundle__step h3 { font-size: 19px; }
.bundle__step p { color: var(--muted); font-size: 16px; }
.bundle__result {
  margin-top: 20px; padding: 26px 30px; border-radius: var(--radius);
  border: 1px dashed rgba(92, 225, 230, 0.5); display: flex; gap: 18px; align-items: center; flex-wrap: wrap;
}
.bundle__result p { flex: 1; min-width: 260px; font-size: 18px; }
@media (max-width: 860px) { .bundle { grid-template-columns: 1fr; } }

/* ── Портфолио ── */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work__thumb { aspect-ratio: 16 / 11; background: var(--bg-3); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.work__thumb img { width: 100%; height: 100%; object-fit: cover; }
.work__body { padding: 24px; display: grid; gap: 12px; flex: 1; align-content: start; }
.work__meta { display: flex; gap: 8px; flex-wrap: wrap; }
.work h3 { font-size: 19px; }
.work p { color: var(--muted); font-size: 15px; }
.work__stack { display: flex; flex-wrap: wrap; gap: 6px; }
.work__stack span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: var(--bg-3); color: var(--muted); }
.work__link { margin-top: auto; padding: 0 24px 24px; font-weight: 700; font-size: 15px; }
/* Мини-макеты превью (если нет картинки) */
.thumb { position: absolute; inset: 18px 18px 0; border-radius: 12px 12px 0 0; background: var(--bg); border: 1px solid var(--line-2); border-bottom: 0; padding: 14px; display: grid; gap: 9px; align-content: start; }
.thumb i { display: block; height: 8px; border-radius: 4px; background: var(--line-2); }
.thumb .t-hero { height: 44px; border-radius: 8px; background: linear-gradient(120deg, rgba(92,225,230,.35), rgba(139,124,255,.25)); }
.thumb .t-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumb .t-row i { height: 36px; border-radius: 6px; }
.thumb .t-btn { width: 40%; height: 14px; border-radius: 7px; background: var(--accent); }
.thumb--bot { justify-items: start; }
.thumb--bot i { height: 22px; border-radius: 10px 10px 10px 3px; background: var(--bg-3); border: 1px solid var(--line-2); }
.thumb--bot i.me { justify-self: end; background: rgba(92,225,230,.25); border-color: transparent; border-radius: 10px 10px 3px 10px; }
.thumb--bot .t-keys { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 100%; }
.thumb--bot .t-keys i { height: 18px; border-radius: 6px; background: rgba(92,225,230,.14); }
.works__note { margin-top: 28px; color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .works { grid-template-columns: 1fr; } }

/* ── Процесс ── */
.process { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; counter-reset: p; }
.process li { position: relative; padding-top: 30px; border-top: 2px solid var(--line-2); display: grid; gap: 10px; align-content: start; }
.process li::before {
  counter-increment: p; content: counter(p);
  position: absolute; top: -17px; left: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent); color: var(--accent);
  display: grid; place-items: center; font-weight: 800; font-size: 14px;
}
.section--alt .process li::before { background: var(--bg-2); }
.process h3 { font-size: 17px; }
.process p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .process { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ── Цены ── */
.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.price-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.price-card h3 { font-size: 18px; }
.price-card .price { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.price-card .price small { font-family: var(--font-body); font-size: 14px; color: var(--muted); font-weight: 600; }
.price-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; flex: 1; }
.price-card li { font-size: 15px; color: var(--muted); padding-left: 24px; position: relative; }
.price-card li::before {
  content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 8px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.price-card--hot { border-color: var(--accent); position: relative; background: linear-gradient(180deg, rgba(92,225,230,.08), transparent 45%), var(--bg-2); }
.price-card--hot .badge { position: absolute; top: -13px; left: 28px; }
.pricing__note { margin-top: 26px; color: var(--muted); font-size: 15px; }
@media (max-width: 1060px) { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pricing { grid-template-columns: 1fr; } }

/* ── Почему мы ── */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; }
.why div { display: grid; gap: 10px; align-content: start; }
.why svg { width: 30px; height: 30px; color: var(--accent); }
.why h3 { font-size: 17px; }
.why p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .why { grid-template-columns: 1fr; } }

/* ── Блок форума на главной ── */
.community { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.community__text { display: grid; gap: 18px; }
.community__text h2 { font-size: clamp(28px, 3.6vw, 42px); }
.community__text p { color: var(--muted); font-size: 18px; }
.community__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 900px) { .community { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; position: relative;
  font-weight: 700; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 26px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ── CTA Telegram ── */
.cta {
  border-radius: 28px; padding: 64px; display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center;
  background: radial-gradient(circle at 90% 20%, rgba(92, 225, 230, 0.22), transparent 45%), var(--bg-3);
  border: 1px solid var(--line-2); position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(28px, 3.8vw, 44px); }
.cta p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 560px; }
.cta__actions { display: grid; gap: 12px; }
.cta__mark { position: absolute; right: -60px; bottom: -80px; width: 280px; opacity: .08; pointer-events: none; }
@media (max-width: 860px) { .cta { grid-template-columns: 1fr; padding: 40px 28px; } }

/* ── Подвал ── */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 110px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer p { color: var(--muted); font-size: 15px; margin-top: 16px; max-width: 360px; }
.footer h4 { font-family: var(--font-body); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--text); font-weight: 600; font-size: 15px; }
.footer__bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer__grid { grid-template-columns: 1fr; } }

/* ── Формы ── */
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; font-size: 14px; }
.field small { color: var(--muted); font-size: 13px; }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--line-2); font-size: 16px;
  transition: border-color .15s ease;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.form { display: grid; gap: 18px; }
.form-error { color: var(--danger); font-size: 15px; font-weight: 600; min-height: 0; }
.form-error:empty { display: none; }
.form-ok { color: var(--ok); font-size: 15px; font-weight: 600; }

/* ── Страницы форума ── */
.page-head { padding: 56px 0 36px; border-bottom: 1px solid var(--line); margin-bottom: 40px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); }
.page-head p { color: var(--muted); margin-top: 12px; font-size: 18px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.forum { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 36px; align-items: start; }
.cats { display: grid; gap: 6px; position: sticky; top: 96px; }
.cat {
  display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none !important; border: 1px solid transparent;
}
.cat:hover { background: var(--bg-2); }
.cat[aria-current="true"] { background: var(--bg-2); border-color: var(--line-2); }
.cat b { font-size: 15px; }
.cat small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.forum__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.forum__bar h2 { font-size: 22px; }
@media (max-width: 900px) {
  .forum { grid-template-columns: 1fr; }
  .cats { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .cat { flex: none; padding: 10px 16px; border-color: var(--line); border-radius: 999px; }
  .cat small { display: none; }
}

.topics { display: grid; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.topic-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 90px 170px; gap: 18px; align-items: center;
  padding: 18px 22px; border-bottom: 1px solid var(--line); background: var(--bg-2);
}
.topic-row:last-child { border-bottom: 0; }
.topic-row:hover { background: var(--bg-3); }
.topic-row__title { display: grid; gap: 6px; min-width: 0; }
.topic-row__title a { color: var(--text); font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.topic-row__meta { font-size: 13px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.topic-row__count { text-align: center; font-size: 13px; color: var(--muted); }
.topic-row__count b { display: block; font-size: 18px; color: var(--text); }
.topic-row__last { font-size: 13px; color: var(--muted); text-align: right; }
.topic-row__last b { color: var(--text); font-weight: 700; }
.pin { color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.lock { color: var(--muted); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
@media (max-width: 700px) {
  .topic-row { grid-template-columns: 1fr auto; }
  .topic-row__last { display: none; }
}
.empty { padding: 48px 24px; text-align: center; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.pager { display: flex; gap: 8px; margin-top: 20px; justify-content: center; flex-wrap: wrap; }
.pager a, .pager span { min-width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line-2); color: var(--text); font-weight: 700; font-size: 14px; text-decoration: none; }
.pager span[aria-current] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.panel { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.panel h2 { font-size: 20px; margin-bottom: 18px; }
.new-topic { margin-bottom: 24px; }
.new-topic[hidden] { display: none; }

.posts { display: grid; gap: 16px; }
.post { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); }
.post .avatar { width: 52px; height: 52px; font-size: 18px; }
.post__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.post__head b { font-size: 16px; }
.post__head time { color: var(--muted); font-size: 13px; }
.post__head .link-btn { margin-left: auto; }
.post__body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 16px; }
.post--first { border-color: var(--line-2); }
@media (max-width: 560px) { .post { grid-template-columns: 1fr; } .post .avatar { width: 40px; height: 40px; } }
.topic-tools { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.reply { margin-top: 24px; }
.notice { padding: 20px 24px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: var(--bg-2); color: var(--muted); }
.notice a { font-weight: 700; }

/* ── Вход / регистрация ── */
.auth { max-width: 460px; margin: 64px auto 0; }
.auth .panel { padding: 36px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { min-height: 44px; border-radius: 999px; border: 0; background: transparent; font-weight: 700; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--bg-3); color: var(--text); }
.auth__alt { margin-top: 22px; text-align: center; color: var(--muted); font-size: 15px; }

/* ── Виджет поддержки ── */
.support-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px;
  border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px;
  box-shadow: 0 12px 34px rgba(92, 225, 230, 0.28);
}
.support-fab svg { width: 24px; height: 24px; }
.support-fab .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); display: none; }
.support-fab.has-new .dot { display: block; }
.support {
  position: fixed; right: 22px; bottom: 92px; z-index: 81;
  width: min(390px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow);
  overflow: hidden;
}
.support[hidden] { display: none; }
.support__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.support__head svg.mark { width: 36px; height: 36px; flex: none; }
.support__head b { display: block; font-size: 15px; }
.support__head small { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.support__head small::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.support__close { margin-left: auto; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.support__close:hover { background: var(--bg-3); color: var(--text); }
.support__close svg { width: 20px; height: 20px; }
.support__body { padding: 18px; overflow-y: auto; display: grid; gap: 12px; align-content: start; flex: 1; }
.support__intro { color: var(--muted); font-size: 14px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: 11px; opacity: .7; margin-top: 4px; text-align: right; }
.msg--client { justify-self: end; background: rgba(92, 225, 230, 0.16); border-bottom-right-radius: 4px; }
.msg--support { justify-self: start; background: var(--bg-3); border-bottom-left-radius: 4px; }
.support__form { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.support__form .input { min-height: 44px; font-size: 15px; }
.support__form .textarea { min-height: 72px; font-size: 15px; }
.support__row { display: flex; gap: 10px; align-items: flex-end; }
.support__row .textarea { min-height: 48px; max-height: 140px; }
.support__send { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); cursor: pointer; display: grid; place-items: center; }
.support__send svg { width: 20px; height: 20px; }
.support__tg { font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 520px) {
  .support-fab span.label { display: none; }
  .support-fab { padding: 0 16px; }
}

/* ── Разное ── */
.center-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.center-page h1 { font-size: clamp(60px, 12vw, 140px); color: var(--accent); }
.center-page p { color: var(--muted); margin: 12px 0 28px; font-size: 18px; }
.skeleton { height: 72px; border-radius: 12px; background: linear-gradient(90deg, var(--bg-2), var(--bg-3), var(--bg-2)); background-size: 200% 100%; animation: sk 1.4s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow__beam::after, .skeleton { animation: none; }
}

/* Правки раскладки */
body[data-page="home"] .footer { margin-top: 40px; }
@media (max-width: 1020px) {
  .header__actions { margin-left: auto; }
  .burger { margin-left: 0; }
}

/* ── Админ-панель ── */
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); color: var(--text); text-decoration: none !important; }
a.stat:hover { border-color: var(--line-2); }
.stat b { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .admin-stats { grid-template-columns: 1fr 1fr; } }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.admin-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.admin-tabs button:hover { color: var(--text); }
.admin-tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ed-panel { display: grid; gap: 16px; }
.ed-intro { color: var(--muted); }
.ed-list { display: grid; gap: 16px; justify-items: start; }
.ed-list > .ed-item { width: 100%; }
.ed-item { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.ed-item__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.ed-item__head b { font-size: 17px; }
.ed-item__tools { display: flex; gap: 16px; }
.ed-item__tools .link-btn[disabled] { opacity: .35; cursor: default; }
.ed-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .ed-grid { grid-template-columns: 1fr; } }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.img-field { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.img-field__preview { width: 160px; aspect-ratio: 16 / 11; object-fit: cover; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); }
.img-field__ctl { flex: 1; min-width: 220px; display: grid; gap: 10px; }
.img-field__row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.img-field__row small { color: var(--muted); font-size: 13px; }
.ed-save {
  position: sticky; bottom: 0; z-index: 5; display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  padding: 16px 0; background: linear-gradient(transparent, var(--bg) 30%);
}
.ed-save__status { color: var(--muted); font-size: 15px; font-weight: 600; }
.ed-save__status.is-ok { color: var(--ok); }
.ed-save__status.is-err { color: var(--danger); }
body[data-page="admin"] .support-fab { bottom: 96px; }
.ticket { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ticket summary { cursor: pointer; list-style: none; padding: 16px 20px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ticket summary::-webkit-details-marker { display: none; }
.ticket__id { color: var(--muted); font-weight: 700; }
.ticket__contact { color: var(--muted); }
.ticket time { margin-left: auto; color: var(--muted); font-size: 13px; }
.ticket__thread { display: grid; gap: 10px; padding: 0 20px 20px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--bg-2); }
.table tr:last-child td { border-bottom: 0; }
.muted { color: var(--muted); font-size: 14px; }
@media (max-width: 700px) { .user-chip__name { display: none; } }
.ed-grid .field { align-content: start; }
.pricing { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
@media (max-width: 1060px) { .pricing { grid-template-columns: repeat(min(var(--cols, 4), 2), minmax(0, 1fr)); } }
@media (max-width: 600px) { .pricing { grid-template-columns: 1fr; } }
@media (min-width: 1021px) { .nav a[href="/admin"] { display: none; } }

/* ── Карточки работ: наведение и просмотр ── */
.work { transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.work:hover { transform: translateY(-6px); border-color: rgba(92, 225, 230, 0.35); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.work__thumb img { transition: transform .5s ease; }
.work:hover .work__thumb img { transform: scale(1.07); }
.work__thumb--zoom { display: block; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--line); cursor: zoom-in; font: inherit; color: inherit; }
.work__thumb--zoom::after {
  content: ''; position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(11, 13, 24, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235CE1E6' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m20 20-4.2-4.2M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 22px no-repeat;
  opacity: 0; transform: scale(.85); transition: opacity .25s ease, transform .25s ease;
}
.work:hover .work__thumb--zoom::after, .work__thumb--zoom:focus-visible::after { opacity: 1; transform: none; }
.lightbox { margin: auto; padding: 0; border: 0; background: transparent; max-width: min(1200px, 94vw); overflow: visible; position: fixed; }
.lightbox figure { position: relative; }
.lightbox::backdrop { background: rgba(5, 6, 12, 0.86); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in .25s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.lightbox figure { margin: 0; }
.lightbox__img { width: 100%; height: auto; max-height: 84vh; object-fit: contain; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.lightbox__cap { margin-top: 14px; text-align: center; color: var(--text); font-weight: 700; }
.lightbox__close {
  position: absolute; top: 14px; right: 14px; z-index: 1; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text); display: grid; place-items: center; cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; }
@media (prefers-reduced-motion: reduce) {
  .work, .work__thumb img, .work__thumb--zoom::after { transition: none; }
  .work:hover { transform: none; }
  .work:hover .work__thumb img { transform: none; }
  .lightbox[open] { animation: none; }
}
/* Пустое превью картинки в админке не показываем */
.img-field__preview[hidden] { display: none; }
/* Поле-ловушка для ботов */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
