:root {
  --bg: #07060c;
  --bg-2: #100e18;
  --card: #171422;
  --line: rgba(255, 231, 168, 0.12);
  --gold: #f6c44c;
  --gold-2: #ffe7a3;
  --pink: #ff4d9a;
  --cyan: #3ef6e8;
  --violet: #8b6cff;
  --text: #f7f3ea;
  --muted: #aea6be;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 10% -10%, rgba(246, 196, 76, 0.16), transparent 50%),
    radial-gradient(900px 600px at 110% 10%, rgba(255, 77, 154, 0.14), transparent 46%),
    radial-gradient(800px 500px at 50% 120%, rgba(62, 246, 232, 0.08), transparent 40%),
    var(--bg);
  font: 17px/1.55 Manrope, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .07;
  mix-blend-mode: overlay;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; position: relative; z-index: 1; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 6, 12, 0.72);
  border-bottom: 1px solid var(--line);
}
.topbar-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Unbounded, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}
.logo img { width: 42px; height: 42px; animation: crown-float 3.2s ease-in-out infinite; }
.nav { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 650;
  font-size: 14px;
}
.nav a:hover, .nav a.is-on { color: var(--bg); background: var(--gold); }
.phones { display: flex; flex-direction: column; font-size: 13px; font-weight: 700; line-height: 1.25; }
.btn.burger { display: none; }

.hero { padding: 72px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3, .display {
  font-family: Unbounded, sans-serif;
  line-height: 1.12;
  letter-spacing: 0;
  font-feature-settings: "liga" 0, "kern" 1;
  margin: 0 0 .4em;
}
h1 { font-size: clamp(42px, 7vw, 84px); }
h2 { font-size: clamp(30px, 4.4vw, 52px); }
h3 { font-size: 22px; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font: 700 15px/1 Unbounded, sans-serif;
  letter-spacing: 0;
  cursor: pointer;
}
.btn[hidden] { display: none !important; }
.btn-gold { background: var(--gold); color: #1a1204; box-shadow: 0 0 0 0 rgba(246,196,76,.5); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(246,196,76,.28); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-pink { background: var(--pink); color: white; }
.btn-cyan { background: var(--cyan); color: #06221f; }

.stage {
  position: relative;
  min-height: 460px;
}
.crown-wrap {
  position: relative;
  width: min(420px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(246,196,76,.25));
}
.crown-wrap img { width: 100%; animation: crown-float 3.6s ease-in-out infinite; }
.spark {
  position: absolute;
  width: 10px; height: 10px;
  background: var(--gold-2);
  border-radius: 50%;
  animation: spark 1.8s ease-in-out infinite;
}
.blob {
  position: absolute;
  border-radius: 40% 60% 55% 45%;
  filter: blur(2px);
  opacity: .85;
  animation: blob 8s ease-in-out infinite;
}
.blob-a { width: 180px; height: 180px; background: #ff4d9a33; top: 10px; left: -20px; }
.blob-b { width: 160px; height: 160px; background: #3ef6e833; right: 0; bottom: 40px; animation-delay: -3s; }
.mascot {
  position: absolute;
  width: 150px;
  animation: hop 3s ease-in-out infinite;
}
.mascot.tv { left: -30px; bottom: 20px; }
.mascot.speaker { right: -20px; top: 30px; animation-delay: -.8s; }
.mascot.console { right: 40px; bottom: -10px; width: 170px; animation-delay: -1.6s; }

.marquee {
  margin: 28px 0 8px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 28px;
  width: max-content;
  animation: slide 28s linear infinite;
  font-family: Unbounded, sans-serif;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-2);
}

section { padding: 72px 0; position: relative; z-index: 1; }
.sec-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-bottom: 32px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

.card {
  background: linear-gradient(180deg, #1d1828, #14111b);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px 20px;
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { transform: translateY(-6px) rotate(-.4deg); border-color: #f6c44c55; }
.card-media {
  height: 176px;
  border-radius: 20px;
  margin-bottom: 14px;
  background: #121018;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, #07060c66 100%);
  pointer-events: none;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  display: block;
}
.card-media.is-contain {
  background: #16131f;
}
.card-media.is-contain img {
  object-fit: cover;
  object-position: center;
  padding: 0;
}
.card-media .ico-img {
  position: relative;
  z-index: 1;
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.45));
}
.card p { color: var(--muted); margin: 0 0 8px; }
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.t-gold { background: #f6c44c22; color: var(--gold-2); }
.t-pink { background: #ff4d9a22; color: #ff9ac4; }
.t-cyan { background: #3ef6e822; color: var(--cyan); }
.t-violet { background: #8b6cff22; color: #c9b8ff; }

.project {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 24px;
  border-radius: 32px;
  border: 1px solid var(--line);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform .25s ease;
}
.project::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, #07060ce8 90%);
}
.project > * { position: relative; z-index: 1; }
.project.led { background: #1a0810 url("../img/ledgame/hero.webp") center/cover; }
.project.thanks { background: #1a0810 url("../img/bg/wedding.jpg") center/cover; }
.project.crm { background: #081018 url("../img/bg/dashboard.jpg") center/cover; }
.project.usede { background: #120e0a url("../img/bg/warehouse.jpg") center/cover; }
.project:hover { transform: translateY(-6px); }

.grid-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.person {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  min-height: 196px;
}
.person:hover { transform: translateY(-4px) rotate(0); }
.avatar {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin: 0;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #221c2f;
  border: 2px solid #f6c44c33;
}
.avatar svg { width: 100%; height: 100%; }
.avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.avatar-lg {
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
}
.person-copy { min-width: 0; }
.person small {
  display: block;
  color: var(--gold);
  font-family: Manrope, sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  font-size: 13px;
  white-space: nowrap;
}
.person h3 {
  font-size: 20px;
  margin: 4px 0 8px;
  white-space: nowrap;
}
.person p {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.news-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 18px; margin-bottom: 14px; background: #221c2c; }
.meta { color: var(--muted); font-size: 13px; }

.form {
  display: grid;
  gap: 12px;
  background: #16131f;
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 28px;
}
input, textarea, select {
  width: 100%;
  min-height: 50px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #0d0b13;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
}
textarea { min-height: 120px; resize: vertical; }

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  color: var(--muted);
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; }
.footer a:hover { color: var(--gold-2); }
.legal { margin-top: 28px; font-size: 12px; opacity: .8; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  color: var(--muted);
  font-family: Manrope, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 20px 0 16px;
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold); }
.crumbs-sep { opacity: .4; padding: 0 2px; }
.crumbs [aria-current="page"] { color: var(--gold-2); }
.page-hero { padding: 8px 0 10px; }
.page-hero > .wrap > .crumbs { margin-top: 28px; }
.price small {
  display: block;
  margin-top: 6px;
  font-family: Manrope, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.product {
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.product .pic {
  height: 180px;
  border-radius: 20px;
  margin-bottom: 14px;
  display: grid;
  place-items: center;
  background: #1a1622 center/cover no-repeat;
  position: relative;
  overflow: hidden;
}
.product .pic::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, #07060c11, #07060cb8);
}
.product .pic.has-photo {
  background: #100e16;
}
.product .pic.has-photo::after { display: none; }
.product .pic img {
  width: 72px;
  height: 72px;
  position: relative;
  z-index: 1;
}
.product .pic.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  padding: 0;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 5;
}
.confetti-layer i {
  position: absolute;
  top: 45%;
  left: 50%;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  background: var(--c, #F6C44C);
  animation: confetti-burst .62s ease-out forwards;
  transform: translate(-50%, -50%) rotate(var(--r, 0deg));
}
@keyframes confetti-burst {
  to {
    transform: translate(var(--x), var(--y)) rotate(220deg);
    opacity: 0;
  }
}
.price { font-family: Unbounded, sans-serif; color: var(--gold-2); }

.seo-block { color: var(--muted); font-size: 15px; }
.seo-block h2, .seo-block h3 { color: var(--text); margin-top: 1.2em; }

.note {
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6c44c14;
  border: 1px solid #f6c44c33;
}

@keyframes crown-float {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}
@keyframes hop {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(4deg); }
}
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(16px, -12px) scale(1.08); }
}
@keyframes spark {
  0%, 100% { opacity: .2; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1.3); }
}
@keyframes slide { to { transform: translateX(-50%); } }

#game { scroll-margin-top: 92px; }
.game-wrap { padding-bottom: 12px; }
.game {
  background: linear-gradient(180deg, #1d1828, #121018);
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.game-bar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  margin-bottom: 12px;
  font-weight: 800;
}
.game-hud { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.game-hud [data-game-score] { color: var(--gold-2); font-family: Unbounded, sans-serif; letter-spacing: 0; }
.game-bar [data-game-line] { color: var(--muted); font-weight: 600; }
.game-lives { display: inline-flex; gap: 6px; }
.game-lives i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2a2438;
  box-shadow: inset 0 0 0 1px #f6c44c44;
}
.game-lives i.is-on { background: var(--gold); box-shadow: 0 0 10px #f6c44c88; }
.game-combo {
  padding: 3px 8px;
  border-radius: 999px;
  background: #ff4d9a33;
  color: #ffb3d4;
  font: 700 12px/1 Unbounded, sans-serif;
  letter-spacing: 0;
}
.game-stage {
  position: relative;
  height: 360px;
  border-radius: 24px;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f6c44c28, transparent 42%) 22% 0 / 90px 100% no-repeat,
    linear-gradient(180deg, #ff4d9a22, transparent 42%) 78% 0 / 90px 100% no-repeat,
    radial-gradient(circle at 50% 0%, #f6c44c1f, transparent 42%),
    linear-gradient(180deg, #1a1524, #0c0a12);
  touch-action: none;
  user-select: none;
  cursor: grab;
}
.game-stage.is-on { cursor: grabbing; }
.game-stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26px;
  background: repeating-linear-gradient(90deg, #2a2438 0 28px, #221c30 28px 56px);
  border-top: 3px solid #f6c44c66;
  box-shadow: 0 -18px 40px #f6c44c22;
  pointer-events: none;
}
.game-item {
  position: absolute;
  top: 0;
  width: 72px;
  margin-left: -36px;
  text-align: center;
  font: 700 11px/1.15 Manrope, sans-serif;
  color: #1a1204;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}
.game-item img,
.game-item .ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 4px;
  filter: drop-shadow(0 8px 12px #0008);
}
.game-item b {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ffe7a3;
}
.game-item.is-bad b { background: #ff4d9a; color: white; }
.game-item.is-diva img { width: 62px; height: 62px; filter: drop-shadow(0 0 16px #f6c44c99); }
.game-item.is-diva b { background: #f6c44c; }
.game-wave {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 4;
  pointer-events: none;
  font: 800 22px/1 Unbounded, sans-serif;
  letter-spacing: 0;
  color: var(--gold-2);
  background: #0c0a12aa;
  animation: game-wave 1.1s ease forwards;
}
@keyframes game-wave {
  0% { opacity: 0; }
  18% { opacity: 1; }
  70% { opacity: 1; }
  100% { opacity: 0; }
}
.game-catcher {
  position: absolute;
  bottom: 22px;
  left: 50%;
  width: 118px;
  height: 44px;
  margin: 0;
  border: 0;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #f6c44c, #d7a22a);
  color: #1a1204;
  font: 800 13px/44px Unbounded, sans-serif;
  letter-spacing: 0;
  text-align: center;
  transform: translateX(-50%);
  box-shadow: 0 10px 24px #f6c44c44;
  z-index: 2;
  pointer-events: none;
}
.game-catcher::before {
  content: "";
  position: absolute;
  left: 10px; right: 10px; top: -10px;
  height: 10px;
  border-radius: 8px 8px 0 0;
  background: #ffe7a3;
}
.game-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.game .meta { margin: 10px 0 0; }
.promo-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: #f6c44c22;
  color: var(--gold-2);
  font-size: 14px;
}
.game-catcher.is-stunned {
  background: linear-gradient(180deg, #ff4d9a, #b81d62);
  color: white;
  box-shadow: 0 10px 24px #ff4d9a55;
}
.game.is-won .game-stage {
  background:
    radial-gradient(circle at 50% 40%, #f6c44c44, #0c0a12 70%);
}
.game.is-lost .game-stage {
  background:
    radial-gradient(circle at 50% 40%, #ff4d9a33, #0c0a12 70%);
}

@media (max-width: 980px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr 1fr; }
  .phones { display: none; }
  .grid-team { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 76px; left: 0; right: 0; background: #0d0b13; padding: 12px; flex-direction: column; }
  .btn.burger { display: inline-flex; margin-left: auto; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .grid-team, .footer-grid { grid-template-columns: 1fr; }
  .person { grid-template-columns: 88px 1fr; padding: 16px; min-height: 0; }
  .avatar { width: 88px; height: 88px; }
  .person h3 { font-size: 18px; }
  .mascot { display: none; }
  h1 { font-size: 40px; }
  .game-stage { height: 300px; }
  .game-bar { flex-direction: column; gap: 6px; }
  .game-catcher { width: 96px; }
  .game-wave { font-size: 16px; padding: 0 16px; text-align: center; }
}
