/* Общие «фичи», которые встречаются на нескольких страницах:
   карточка сервиса (список каталога), созвездие комплекта, дорожка клубных уровней. */

/* ═════════ Карточка сервиса ═════════ */

.service-card { display: grid; gap: 10px; align-content: start; padding: 22px; overflow: hidden; transition: border-color var(--t); }
.service-card:hover { border-color: var(--line-strong); }
.service-card__orb {
  display: grid;
  place-items: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 250, 235, 0.3), transparent 36%), radial-gradient(circle, color-mix(in srgb, var(--accent) 65%, #0b1410), color-mix(in srgb, var(--accent) 20%, #050a07) 72%);
  box-shadow: inset -6px -8px 16px rgba(0, 0, 0, 0.4), 0 0 24px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  margin-bottom: 4px;
}
.service-card__orb img { width: 26px; height: 26px; filter: invert(1); }
.service-card .badge { justify-self: start; }
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--muted); font-size: var(--fs-sm); }
.service-card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.service-card__go {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--foil-light);
  transition: transform var(--t) var(--ease-out), background var(--t);
}
.service-card__go svg { width: 18px; height: 18px; }
.service-card:hover .service-card__go, .bundle-card:hover .service-card__go { transform: translateX(4px); background: rgba(201, 161, 90, 0.12); }

/* ═════════ Созвездие ═════════ */

.constellation {
  position: relative;
  height: 190px;
  background:
    radial-gradient(ellipse 60% 55% at 50% 55%, color-mix(in srgb, var(--accent, #3fb886) 14%, transparent), transparent 75%),
    radial-gradient(ellipse 35% 30% at 70% 30%, rgba(201, 161, 90, 0.07), transparent 70%);
}
.constellation--large { height: clamp(260px, 36vw, 380px); }
.constellation__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.constellation__line { stroke: rgba(233, 207, 150, 0.7); stroke-width: 1; }
.constellation__glow { stroke: rgba(233, 207, 150, 0.12); stroke-width: 6; stroke-linecap: round; }
.constellation__dust { position: absolute; border-radius: 50%; background: var(--cream); transform: translate(-50%, -50%); }
.constellation__dust.is-1 { width: 1.5px; height: 1.5px; }
.constellation__dust.is-2 { width: 2px; height: 2px; }
.constellation__dust.is-3 { width: 3px; height: 3px; box-shadow: 0 0 6px rgba(244, 234, 217, 0.8); }
.constellation__glint { position: absolute; color: var(--foil-light); transform: translate(-50%, -50%); filter: drop-shadow(0 0 4px rgba(233, 207, 150, 0.7)); }
.constellation__glint svg { display: block; width: 100%; height: 100%; }
.constellation__star { position: absolute; display: grid; place-items: center; transform: translate(-50%, -50%); }
.constellation__halo {
  position: absolute; width: 168%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, rgba(233, 207, 150, 0.25));
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 68%);
}
.constellation__star > .constellation__orb { grid-area: 1 / 1; }
.constellation__star > .constellation__halo { grid-area: 1 / 1; }
.constellation__orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(233, 207, 150, 0.45);
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 250, 235, 0.3), transparent 36%),
    radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--accent) 60%, #0b1410), #070d0a 82%);
  box-shadow: inset -5px -7px 14px rgba(0, 0, 0, 0.5), 0 0 30px -6px color-mix(in srgb, var(--accent) 75%, transparent);
}
.constellation__orb img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
.constellation--large .constellation__orb { width: 68px; height: 68px; }
.constellation--large .constellation__orb img { width: 30px; height: 30px; }
.constellation__glint--orb { grid-area: 1 / 1; width: 11px; height: 11px; transform: translate(170%, -170%); }
.constellation--large .constellation__glint--orb { width: 14px; height: 14px; transform: translate(210%, -210%); }
.constellation__name {
  position: absolute; top: 100%; left: 50%; margin-top: 14px; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 2px;
  font-size: var(--fs-xs); font-weight: 600; color: var(--cream); white-space: nowrap; letter-spacing: 0.01em;
}
.constellation__name small { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--foil-light); font-variant-numeric: tabular-nums; }

/* ═════════ Дорожка клубных уровней ═════════ */

.tier-track { position: relative; }
.tier-track__rail {
  position: absolute;
  left: 10%; right: 10%;
  top: 14px;
  height: 2px;
  background: var(--line-soft);
}
.tier-track__fill { display: block; width: var(--fill, 0%); height: 100%; background: var(--foil-sheen); transition: width 1.4s var(--ease-out); }
.tier-track__list { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tier { display: grid; grid-template-rows: auto 1fr; justify-items: center; gap: 16px; }
.tier__node {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--bg-1);
}
.tier__node span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); transition: background var(--t), box-shadow var(--t); }
.tier.is-reached .tier__node span { background: var(--foil-light); box-shadow: 0 0 12px var(--foil-light); }
.tier.is-current .tier__node { animation: pulse-glow 2.4s ease-in-out infinite; }
.tier__card {
  width: 100%;
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px 18px;
  border-radius: var(--r);
  border: 1px solid var(--line-soft);
  background: var(--surface-soft);
  height: 100%;
}
.tier.is-current .tier__card { border-color: var(--foil); background: linear-gradient(160deg, rgba(201, 161, 90, 0.12), transparent), var(--surface); }
.tier__subtitle { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.tier__name { font-size: 1.45rem; }
.tier--gold .tier__name, .tier--platinum .tier__name, .tier--diamond .tier__name { background: var(--foil-sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier__min { font-size: var(--fs-xs); color: var(--muted); }
.tier__perks { display: grid; gap: 6px; margin-top: 4px; }
.tier__perks li { display: flex; gap: 8px; font-size: var(--fs-xs); color: var(--cream-dim); line-height: 1.4; }
.tier__perks svg { width: 14px; height: 14px; flex: none; margin-top: 2px; color: var(--emerald-light); }
.tier__here { justify-self: start; margin-top: 6px; }

@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(233, 207, 150, 0.45); } 50% { box-shadow: 0 0 0 10px rgba(233, 207, 150, 0); } }

@media (max-width: 1000px) {
  .tier-track__rail { left: 14px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .tier-track__fill { width: 100%; height: var(--fill, 0%); }
  .tier-track__list { grid-template-columns: 1fr; gap: 14px; }
  .tier { grid-template-columns: 30px 1fr; justify-items: stretch; align-items: start; }
}
