/* «Свой набор» — конструктор: слева выбор подписок, справа (на телефоне —
   ниже) созвездие набора, сроки, скидка и оплата. */
.combo { padding-block: clamp(24px, 4vw, 48px) 56px; display: grid; gap: 30px; }
.combo-head { display: grid; gap: 12px; }
.combo-head .eyebrow { margin: 0; }
.combo-head h1 { font-size: var(--fs-3xl); line-height: 1.02; }
.combo-ladder { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.combo-step {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px; border-radius: var(--r-pill);
  border: 1px solid var(--line); color: var(--muted); font-size: var(--fs-sm);
  transition: border-color var(--t), color var(--t), background var(--t);
}
.combo-step strong { font-family: var(--font-display); font-size: 1.15rem; color: var(--foil-light); }
.combo-step.is-on { border-color: var(--foil); color: var(--cream); background: rgba(201, 161, 90, 0.1); }

.combo-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(20px, 3vw, 40px); align-items: start; }

/* выбор */
.combo-pick { display: grid; gap: 16px; min-width: 0; }
.combo-pick__head { display: grid; gap: 12px; }
.combo-search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-soft); color: var(--faint);
}
.combo-search:focus-within { border-color: var(--foil); }
.combo-search svg { width: 18px; height: 18px; flex: none; }
.combo-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--cream); }
.combo-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.combo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.combo-item {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 28px; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r); border: 1px solid var(--line-soft); background: var(--glass);
  color: var(--cream); text-align: left; cursor: pointer;
  transition: border-color var(--t-fast), background var(--t-fast), transform var(--t) var(--ease-out), opacity var(--t);
}
.combo-item:hover:not(:disabled) { border-color: var(--line-strong); transform: translateY(-1px); }
.combo-item:focus-visible { outline: 2px solid var(--foil); outline-offset: 2px; }
.combo-item:disabled { opacity: 0.38; cursor: not-allowed; }
.combo-item.is-picked { border-color: var(--foil); background: linear-gradient(150deg, rgba(201, 161, 90, 0.14), rgba(19, 36, 29, 0.5)); }
.combo-item__orb, .combo-slot__orb {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(255, 250, 235, 0.28), transparent 38%), radial-gradient(circle, color-mix(in srgb, var(--accent) 65%, #0b1410), color-mix(in srgb, var(--accent) 22%, #050a07) 72%);
  box-shadow: inset -4px -6px 12px rgba(0, 0, 0, 0.4);
}
.combo-item__orb img, .combo-slot__orb img { width: 20px; height: 20px; filter: invert(1); }
.combo-item__text { display: grid; gap: 1px; min-width: 0; }
.combo-item__text strong { font-size: var(--fs-sm); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combo-item__text small { font-size: var(--fs-xs); color: var(--faint); font-variant-numeric: tabular-nums; }
.combo-item__mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); color: var(--foil-light); }
.combo-item__mark svg { width: 14px; height: 14px; }
.combo-item.is-picked .combo-item__mark { background: var(--foil-sheen); background-size: 200% 100%; border-color: transparent; color: #14110a; }
.combo-empty { color: var(--faint); padding: 24px 0; }

/* набор */
.combo-summary { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding: 24px; }
.combo-summary h2 { font-size: var(--fs-xl); }
.combo-summary__sky .constellation { height: 180px; margin: -8px -8px 0; border-radius: var(--r) var(--r) 0 0; }
.combo-sky { display: flex; justify-content: center; gap: 18px; padding: 22px 0 8px; }
.combo-sky__slot {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  border: 1px dashed var(--line-strong); color: var(--faint);
}
.combo-sky__slot svg { width: 20px; height: 20px; }
.combo-sky__slot.is-filled {
  border: 0; background: radial-gradient(circle at 32% 26%, rgba(255, 250, 235, 0.3), transparent 38%), radial-gradient(circle, color-mix(in srgb, var(--accent) 65%, #0b1410), color-mix(in srgb, var(--accent) 22%, #050a07) 72%);
  box-shadow: 0 0 28px -6px var(--accent);
}
.combo-sky__slot img { width: 28px; height: 28px; filter: invert(1); }
.combo-slots { display: grid; gap: 10px; }
.combo-slot { display: grid; grid-template-columns: 40px minmax(0, 1fr) 32px; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.combo-slot__main { display: grid; gap: 4px; min-width: 0; }
.combo-slot__main strong { font-size: var(--fs-sm); }
.combo-plan {
  width: 100%; min-width: 0; height: 34px; padding: 0 30px 0 10px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a15a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center / 14px;
  color: var(--cream-dim); font-size: var(--fs-xs); appearance: none; cursor: pointer; text-overflow: ellipsis;
}
.combo-plan:focus-visible { outline: 2px solid var(--foil); outline-offset: 2px; }
.combo-slot__remove { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-soft); background: none; color: var(--muted); cursor: pointer; }
.combo-slot__remove:hover { color: var(--cream); border-color: var(--line-strong); }
.combo-slot__remove svg { width: 14px; height: 14px; }
.combo-hint { color: var(--muted); font-size: var(--fs-sm); text-align: center; }
.combo-total { display: grid; gap: 6px; margin: 0; }
.combo-total > div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.combo-total dd { margin: 0; }
.combo-total__save { color: var(--emerald-light) !important; }
.combo-total__final { padding-top: 8px; border-top: 1px solid var(--line-soft); color: var(--cream) !important; align-items: baseline; }
.combo-total__final dd { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--foil-light); }
.combo-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }

@media (max-width: 980px) {
  .combo-layout { grid-template-columns: minmax(0, 1fr); }
  .combo-summary { position: static; }
}
@media (max-width: 520px) {
  .combo-grid { grid-template-columns: minmax(0, 1fr); }
  .combo-actions { grid-template-columns: minmax(0, 1fr); }
}

/* плашка итога — только на телефоне/планшете, над нижним меню */
.combo-bar { display: none; }
@media (max-width: 980px) {
  .combo-bar {
    position: fixed; z-index: calc(var(--z-bottom-nav) - 1); left: 12px; right: 12px;
    bottom: calc(66px + env(safe-area-inset-bottom, 0px));
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 10px 10px 10px 12px; border-radius: var(--r-lg); border: 1px solid var(--line);
    background: rgba(11, 20, 16, 0.92); backdrop-filter: blur(14px); box-shadow: var(--shadow-soft);
  }
  .combo-bar__orbs { display: flex; }
  .combo-bar__orbs .combo-item__orb { width: 32px; height: 32px; border: 2px solid var(--bg-1); }
  .combo-bar__orbs .combo-item__orb + .combo-item__orb { margin-left: -10px; }
  .combo-bar__orbs img { width: 15px; height: 15px; }
  .combo-bar__text { display: grid; line-height: 1.2; min-width: 0; }
  .combo-bar__text strong { font-family: var(--font-display); font-size: 1.2rem; color: var(--foil-light); font-variant-numeric: tabular-nums; }
  .combo-bar__text small { font-size: var(--fs-xs); color: var(--muted); }
  .combo { padding-bottom: 96px; }
}
