:root {
  --bg: #110d16;
  --bg-alt: #17121d;
  --panel: #1c1723;
  --panel-border: #2b2433;
  --gold: #d4af6a;
  --gold-bright: #f4d99a;
  --accent: #7c5cff;
  --accent-bright: #a084ff;
  --text: #f3f1f7;
  --muted: #a9a2b8;
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --font-sans: -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  position: relative;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}
/* Тонкая зернистая текстура — премиальный «типографский» приём вместо гладкого плоского фона */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.topbar, main, footer { position: relative; z-index: 1; }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--panel-border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-bright);
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.brand-mark { color: var(--gold); }
nav a { color: var(--text); text-decoration: none; margin-left: 22px; font-size: 0.92rem; letter-spacing: 0.01em; }
nav a:hover { color: var(--gold-bright); }

.icon { display: inline-block; vertical-align: -3px; }

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold) 60%, #b8863f);
  color: #1c1420 !important;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 18px rgba(212, 175, 106, 0.25);
}
/* Блик — светлая полоса скользит по кнопке при наведении */
.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.cta:hover::before { left: 130%; }
.cta:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 30px rgba(212, 175, 106, 0.45); }
.cta:active { transform: translateY(0) scale(0.99); }
.cta .icon { transition: transform 0.2s ease; }
.cta:hover .icon { transform: translateX(3px); }
.cta.secondary {
  background: rgba(212, 175, 106, 0.06);
  border: 1px solid rgba(212, 175, 106, 0.55);
  color: var(--gold-bright) !important;
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cta.secondary::before { background: linear-gradient(115deg, transparent, rgba(212, 175, 106, 0.35), transparent); }
.cta.secondary:hover {
  background: rgba(212, 175, 106, 0.14);
  border-color: rgba(212, 175, 106, 0.85);
  box-shadow: 0 10px 30px rgba(212, 175, 106, 0.2);
}
.cta.small { padding: 8px 16px; font-size: 0.85rem; margin-top: 10px; }

main { max-width: 1120px; margin: 0 auto; padding: 40px 24px 64px; }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { position: relative; text-align: center; padding: 72px 0 48px; overflow: hidden; border-radius: 20px; }
.hero-photo {
  padding: 100px 24px;
  background-image:
    linear-gradient(180deg, rgba(17, 13, 22, 0.55), rgba(17, 13, 22, 0.88)),
    url("/static/img/hero-bg.png");
  background-size: cover;
  background-position: center;
}
/* Во всю ширину экрана — вырывается из ограничения main{max-width} без position:absolute-хаков */
.full-bleed { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); border-radius: 0; }

/* Командный постер, теперь оживлён видео (сгенерировано из той же картинки) — она же служит
   постером/фоллбэком, пока видео грузится или если не воспроизвелось. */
.hero-team {
  aspect-ratio: 21 / 9;
  min-height: 420px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 24px 72px;
  background: #000;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 13, 22, 0) 45%, rgba(17, 13, 22, 0.82) 68%, rgba(17, 13, 22, 0.97) 100%);
}
.hero-glow {
  position: absolute;
  inset: -140px -40px auto;
  height: 400px;
  background:
    radial-gradient(circle at 22% 30%, rgba(124, 92, 255, 0.32), transparent 55%),
    radial-gradient(circle at 78% 42%, rgba(212, 175, 106, 0.28), transparent 55%);
  filter: blur(46px);
  animation: hero-drift 16s ease-in-out infinite alternate;
  z-index: 1;
  pointer-events: none;
}
@keyframes hero-drift {
  from { transform: translate(-4%, -2%) scale(1); }
  to { transform: translate(4%, 3%) scale(1.08); }
}
.hero h1, .hero p, .hero-actions { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.35rem;
  line-height: 1.2;
  letter-spacing: 0.005em;
  margin-bottom: 14px;
  animation: fade-in-up 0.6s ease both;
}
.hero p { color: var(--muted); max-width: 620px; margin: 0 auto 28px; font-size: 1.02rem; animation: fade-in-up 0.6s ease 0.1s both; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; animation: fade-in-up 0.6s ease 0.2s both; }
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow { animation: none; }
  .hero h1, .hero p, .hero-actions { animation: none; }
}

/* ── Team strip (быстрая навигация по героям под hero) ───────────────────── */
.team-strip {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  position: relative;
  z-index: 2;
  padding: 0 16px;
}
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  width: 160px;
  padding: 16px 12px;
  border-radius: 18px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.team-member:hover { transform: translateY(-4px); background: rgba(212, 175, 106, 0.08); }
.team-member-portrait {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--panel-border);
  background: var(--panel);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s ease, transform 0.2s ease;
}
.team-member:hover .team-member-portrait { border-color: rgba(212, 175, 106, 0.65); transform: scale(1.04); }
.team-member-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.team-member-name { font-size: 0.95rem; font-weight: 600; text-align: center; line-height: 1.25; }
.team-member-desc { font-size: 0.76rem; text-align: center; color: var(--muted); line-height: 1.35; }

.how { display: flex; gap: 20px; margin-top: 48px; flex-wrap: wrap; }
.how .card {
  flex: 1;
  min-width: 240px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 14px;
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.how .card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 106, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.how h3 { font-family: var(--font-serif); color: var(--gold-bright); margin-top: 0; font-weight: 600; }
.how p { color: var(--muted); line-height: 1.6; }

/* ── Filters ──────────────────────────────────────────────────────────── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 28px; }
.chip {
  color: var(--text);
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--panel-border);
  font-size: 0.9rem;
}
.chip.active { background: var(--accent); border-color: var(--accent); }
.filters-label { color: var(--muted); font-size: 0.9rem; }

.search-input, .filters select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 0.9rem;
}
.search-input { min-width: 200px; flex: 1; }
.filters select { cursor: pointer; }
.filters button.cta.small { margin-top: 0; }

/* ── Page titles ──────────────────────────────────────────────────────── */
.page-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.7rem;
  margin-bottom: 8px;
}
.title-icon { color: var(--gold); display: inline-flex; }
.page-subtitle { color: var(--muted); margin-bottom: 28px; text-transform: uppercase; font-size: 0.78rem; letter-spacing: 0.08em; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}
.back-link:hover { color: var(--gold-bright); }

/* ── Category tiles ───────────────────────────────────────────────────── */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile {
  display: block;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 106, 0.45);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
}
.tile:hover .tile-portrait img { transform: scale(1.05); }
.tile-portrait {
  width: 84px;
  height: 84px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 25%, rgba(212, 175, 106, 0.25), rgba(124, 92, 255, 0.15));
  border: 1px solid rgba(212, 175, 106, 0.3);
}
.tile-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.25s ease;
}
.tile-name { font-weight: 600; margin-bottom: 4px; }
.tile-count { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.02em; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }

/* Большой баннер категории — широкий (21:9) маскот-арт во всю ширину экрана,
   пропорция блока совпадает с картинкой, как у hero-team — без обрезки героя */
.category-banner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  aspect-ratio: 21 / 9;
  min-height: 380px;
  max-height: 86vh;
  overflow: hidden;
  margin-bottom: 32px;
  padding: 32px 24px 40px;
  background: #000;
}
.category-mascot-big {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.category-banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(17, 13, 22, 0) 40%, rgba(17, 13, 22, 0.85) 75%, rgba(17, 13, 22, 0.98) 100%);
}
.category-banner-text { position: relative; z-index: 1; text-align: center; }
.category-banner .page-title { justify-content: center; margin-bottom: 8px; }
.category-banner-desc { color: var(--muted); font-size: 1rem; }

.demo-note {
  background: rgba(212, 175, 106, 0.08);
  border: 1px solid rgba(212, 175, 106, 0.3);
  border-radius: 12px;
  padding: 14px 18px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.5;
}
.demo-note a { color: var(--gold-bright); }

/* ── Performer cards ──────────────────────────────────────────────────── */
.perf-card {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--panel-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.perf-card.demo { border-style: dashed; border-color: rgba(212, 175, 106, 0.4); }
.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(212, 175, 106, 0.15);
  color: var(--gold-bright);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-radius: 8px;
  padding: 2px 8px;
}
.perf-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  border-color: rgba(124, 92, 255, 0.4);
}
.perf-head { display: flex; align-items: flex-start; gap: 10px; }
.avatar {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.12);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.perf-name { font-weight: 600; }
.perf-cities, .perf-portfolio, .perf-fee {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 5px;
}
.perf-fee { color: var(--gold-bright); font-weight: 600; }
.perf-portfolio a { color: var(--gold-bright); }
.perf-specs { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 9px; }
.spec-badge {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  color: var(--muted);
  font-size: 0.72rem;
  border-radius: 8px;
  padding: 2px 8px;
}

.empty { color: var(--muted); text-align: center; padding: 48px 0; }

.prose { max-width: 720px; }
.prose h2 { font-family: var(--font-serif); color: var(--gold-bright); margin-top: 30px; font-weight: 600; }
.prose p { color: var(--text); line-height: 1.65; }
.prose a { color: var(--gold-bright); }

footer { text-align: center; color: var(--muted); padding: 28px; font-size: 0.85rem; border-top: 1px solid var(--panel-border); }
footer .legal { margin-top: 6px; }
footer .legal a { color: var(--muted); }

/* ── Форма отклика заказчика ──────────────────────────────────────────── */
.contact-box { max-width: 520px; margin: 0 auto; }
.contact-thanks { text-align: center; }
.contact-note { color: var(--muted); margin-bottom: 24px; line-height: 1.5; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none;
  border-color: rgba(212, 175, 106, 0.6);
}
.contact-form .cta { align-self: flex-start; margin-top: 4px; }
.contact-form select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.95rem;
  cursor: pointer;
}
/* Honeypot — скрытое от людей поле-ловушка для спам-ботов */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-error {
  background: rgba(220, 90, 90, 0.1);
  border: 1px solid rgba(220, 90, 90, 0.45);
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #f0b4b4;
  line-height: 1.45;
}
.field-hint { font-size: 0.76rem; color: var(--muted); opacity: 0.85; }
