/* =====================================================================
   Калькулятор «Восхождение». Общие стили (кнопки, циферблат, маскот) — в climb.css.
   ===================================================================== */

/* ---------- Заголовок и выбор услуги ---------- */
.cp-hero { padding: 40px 0 26px; }
.cp-title { font-size: clamp(40px, 7vw, 108px); }
.cp-title [data-split] { display: inline-block; white-space: nowrap; overflow: clip; padding-bottom: .06em; vertical-align: top; }
.cp-sub { margin-top: 18px; color: var(--muted); font-size: 18px; max-width: 560px; }
.cp-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.cp-mode {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 12px; border: 0; border-radius: 26px; text-align: left; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.cp-mode img { flex: none; width: 64px; height: 64px; filter: grayscale(.7) drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); opacity: .6; transition: filter .5s, opacity .5s, transform .7s var(--ease); }
.cp-mode b { display: block; font-size: 18px; font-weight: 700; }
.cp-mode small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.cp-mode:hover { background: rgba(255, 255, 255, .06); }
.cp-mode:hover img { opacity: .9; }
.cp-mode[aria-selected="true"] {
  background: radial-gradient(120% 160% at 0% 0%, rgba(255, 61, 46, .3), transparent 60%), rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1.5px rgba(255, 122, 61, .85), 0 24px 50px -28px rgba(255, 61, 46, .9);
}
.cp-mode[aria-selected="true"] img { filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .6)); opacity: 1; transform: scale(1.12) rotate(-8deg); }
.cp-mode:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Раскладка ---------- */
.cp-body { padding: 26px 0 120px; }
.cp-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 36px; align-items: start; }
.cp-main { display: flex; flex-direction: column; gap: 22px; }
.cp-card {
  padding: 32px; border-radius: 34px;
  background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012) 60%), rgba(8, 8, 11, .6);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.cp-head { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.cp-num { flex: none; font: 400 46px/1 var(--display); color: transparent; -webkit-text-stroke: 1.2px rgba(255, 122, 61, .75); }
.cp-head h2 { font: 400 26px/1.1 var(--display); }
.cp-head p { margin-top: 4px; color: var(--muted); font-size: 14.5px; }
.cp-head-link { margin-left: auto; padding: 12px 20px; font-size: 14px; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chips.center { justify-content: center; }
.cp-hint { color: var(--dim); font-size: 13px; line-height: 1.5; }
.cp-empty { color: var(--muted); padding: 10px 0; }

/* ---------- Буст ---------- */
.cp-boost { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.cp-boost .mmr-in input { font-size: 24px; }
.cp-boost .dial-box { max-width: 520px; margin: 10px auto -30px; }
.cp-boost .core-medal { width: 110px; height: 110px; }
.cp-boost .core-medal .medal { width: 110px; height: 110px; }
.core-gain { margin-top: 6px; font: 400 clamp(30px, 3.4vw, 46px)/1 var(--display); white-space: nowrap; }
.cp-boost .core-meta { margin-top: 4px; }
.cp-boost-side { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Калибровка ---------- */
.cp-types { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cp-type {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px 22px 22px; border: 0; border-radius: 26px; text-align: left; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .4s var(--ease), box-shadow .4s var(--ease);
}
.cp-type img { width: 70px; height: 70px; margin-bottom: 8px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.cp-type b { font-size: 19px; }
.cp-type small { color: var(--muted); font-size: 14px; line-height: 1.45; }
.cp-type strong { margin-top: 12px; font: 400 26px var(--display); }
.cp-check { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); color: transparent; transition: background .3s, color .3s; }
.cp-check .ic { width: 16px; height: 16px; stroke-width: 3; }
.cp-type:hover { background: rgba(255, 255, 255, .06); }
.cp-type[aria-pressed="true"] { background: radial-gradient(120% 120% at 100% 0%, rgba(255, 61, 46, .22), transparent 60%), rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px rgba(255, 122, 61, .85); }
.cp-type[aria-pressed="true"] .cp-check { background: var(--grad); color: #fff; box-shadow: none; }
.cp-prev { margin-top: 22px; }
.cp-prev-top { display: flex; align-items: center; gap: 18px; }
.cp-prev-medal { flex: none; width: 96px; height: 96px; }
.cp-prev-medal .medal { display: block; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .6)); }
.cp-prev-in { flex: 1; max-width: 320px; }
.cp-brackets { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin-top: 18px; }
.cp-bracket {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border: 0; border-radius: 16px; cursor: pointer; text-align: left; color: var(--text);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background .3s, box-shadow .3s;
}
.cp-bracket span { color: var(--muted); font-size: 13px; font-weight: 600; }
.cp-bracket b { font: 400 18px var(--display); }
.cp-bracket:hover { background: rgba(255, 255, 255, .06); }
.cp-bracket[aria-pressed="true"] { background: rgba(255, 61, 46, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 122, 61, .85); }

/* ---------- Победы ---------- */
.cp-counter { display: flex; align-items: center; justify-content: center; gap: 26px; margin: 6px 0 26px; }
.cp-round {
  width: 64px; height: 64px; flex: none; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: background .3s, transform .3s var(--ease);
}
.cp-round:hover { background: rgba(255, 61, 46, .18); }
.cp-round:active { transform: scale(.92); }
.cp-round .ic { width: 22px; height: 22px; stroke-width: 2.4; }
.cp-count { display: flex; flex-direction: column; align-items: center; }
.cp-count input { width: 3.1ch; padding: 0; border: 0; outline: none; background: none; color: var(--text); text-align: center; font: 400 clamp(64px, 9vw, 110px)/1 var(--display); }
.cp-count span { color: var(--muted); font-weight: 600; font-size: 16px; }
.cp-range {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 10px; margin: 0 0 22px; border-radius: 99px; outline: none; cursor: pointer;
  background: linear-gradient(90deg, #ff7a3d 0%, #ff3d2e var(--p, 0%), rgba(255, 255, 255, .08) var(--p, 0%));
}
.cp-range::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 7px solid #ff3d2e; box-shadow: 0 6px 18px rgba(0, 0, 0, .6), 0 0 0 6px rgba(255, 61, 46, .18); cursor: grab; }
.cp-range::-moz-range-thumb { box-sizing: border-box; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 7px solid #ff3d2e; box-shadow: 0 6px 18px rgba(0, 0, 0, .6); cursor: grab; }
.cp-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--gold); }
.cp-bonus { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; color: var(--gold); font-weight: 700; }
.cp-bonus .ic { width: 20px; height: 20px; }

/* ---------- Отмыв LP ---------- */
.cp-lp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cp-lp-tile {
  display: flex; flex-direction: column; align-items: center; padding: 26px 12px 22px; border: 0; border-radius: 28px; cursor: pointer; color: var(--text);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .4s var(--ease), box-shadow .4s var(--ease), transform .4s var(--ease);
}
.cp-lp-tile strong { font: 400 76px/1 var(--display); }
.cp-lp-tile span { color: var(--muted); font-weight: 600; margin-top: 4px; }
.cp-lp-tile b { margin-top: 14px; font: 400 20px var(--display); }
.cp-lp-tile:hover { background: rgba(255, 255, 255, .06); transform: translateY(-3px); }
.cp-lp-tile[aria-pressed="true"] { background: var(--grad); box-shadow: 0 24px 50px -24px rgba(255, 61, 46, .95); }
.cp-lp-tile[aria-pressed="true"] span { color: rgba(255, 255, 255, .85); }

/* ---------- Аккаунт ---------- */
.cp-param + .cp-param { margin-top: 22px; }
.cp-param-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 700; }
.cp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 0; border-radius: 99px; cursor: pointer; color: var(--text); font: 600 15px var(--font);
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); transition: background .3s, box-shadow .3s;
}
.cp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 10px var(--dot); }
.cp-pill em { font-style: normal; color: var(--muted); font-size: 13px; }
.cp-pill:hover { background: rgba(255, 255, 255, .06); }
.cp-pill[aria-pressed="true"] { background: color-mix(in srgb, var(--dot) 13%, transparent); box-shadow: inset 0 0 0 1.5px var(--dot); }
.cp-pill[aria-pressed="true"] em { color: var(--text); }

/* ---------- Опции ---------- */
.cp-opts { display: flex; flex-direction: column; gap: 10px; }
.cp-opt {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 22px; cursor: pointer;
  background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: background .3s, box-shadow .3s;
}
.cp-opt[hidden] { display: none; }
.cp-opt input { position: absolute; opacity: 0; pointer-events: none; }
.cp-opt:has(input:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; }
.cp-opt-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 122, 61, .12); color: var(--red-2); }
.cp-opt-ic .ic { width: 22px; height: 22px; }
.cp-opt-body b { display: block; font-size: 16px; }
.cp-opt-body small { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; }
.cp-opt-pct { color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cp-switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: rgba(255, 255, 255, .12); transition: background .35s var(--ease); }
.cp-switch i { position: absolute; left: 4px; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .4); transition: transform .45s var(--ease); }
.cp-opt:hover { background: rgba(255, 255, 255, .06); }
.cp-opt.on { background: rgba(255, 61, 46, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 122, 61, .7); }
.cp-opt.on .cp-switch { background: var(--grad); }
.cp-opt.on .cp-switch i { transform: translateX(20px); }
.cp-opt.on .cp-opt-ic { background: var(--grad); color: #fff; }

/* ---------- Путь по рангам ---------- */
.cp-leg { display: grid; grid-template-columns: 44px minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.cp-leg .medal { width: 44px; height: 44px; }
.cp-leg-name b { display: block; font-size: 15px; }
.cp-leg-name small { color: var(--muted); font-size: 13px; }
.cp-leg-bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.cp-leg-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 70%, transparent), #ff3d2e); transition: width .6s var(--ease); }
.cp-leg strong { font: 400 17px var(--display); white-space: nowrap; }
.cp-leg.total { display: flex; justify-content: space-between; border-bottom: 0; padding-top: 18px; }
.cp-leg.total span { color: var(--muted); font-weight: 600; }
.cp-leg.total strong { font-size: 26px; }

/* ---------- Чек ---------- */
.cp-aside { position: sticky; top: 104px; }
.receipt { position: relative; }
.rc-mascot { position: relative; z-index: 2; min-height: 0; align-items: flex-end; margin: 0 0 -24px 6px; }
.rc-mascot .mascot-body { width: 92px; height: 92px; }
.rc-mascot .bubble { align-self: center; margin-bottom: 30px; font-size: 15px; }
.rc-paper {
  position: relative; padding: 38px 26px 24px; border-radius: 30px;
  background: linear-gradient(180deg, #18131a, #0d0c11);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -40px rgba(0, 0, 0, .95), 0 0 80px -30px rgba(255, 61, 46, .25);
}
.rc-paper::before { content: ""; position: absolute; top: 0; left: 30px; right: 30px; height: 3px; border-radius: 0 0 4px 4px; background: var(--grad); }
.rc-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.rc-top > span:first-child { color: var(--muted); font-size: 13px; font-weight: 700; }
.rc-mode { padding: 6px 12px; border-radius: 99px; background: rgba(255, 61, 46, .14); color: #ffb08a; font-size: 12.5px; font-weight: 700; }
.rc-route { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 16px; }
.rc-end { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rc-end .medal { flex: none; width: 60px; height: 60px; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .6)); }
.rc-end b { display: block; font: 400 19px/1.1 var(--display); }
.rc-end small { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.rc-arrow { flex: 1; min-width: 16px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255, 122, 61, .9) 0 6px, transparent 6px 11px); }
.rc-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rc-stats div { padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .04); min-width: 0; }
.rc-stats small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.rc-stats b { display: block; margin-top: 2px; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Линия отрыва чека с вырезами по краям */
.rc-cut { position: relative; height: 28px; margin: 16px -26px 10px; }
.rc-cut::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; border-top: 2px dashed rgba(255, 255, 255, .12); }
.rc-cut::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 0 50%, #060609 13px, transparent 14px), radial-gradient(circle at 100% 50%, #060609 13px, transparent 14px);
}
.rc-lines { display: flex; flex-direction: column; gap: 4px; }
.rc-line { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.rc-line span:first-child { color: #cfc8cf; }
.rc-line i { flex: 1; min-width: 12px; border-bottom: 1px dotted rgba(255, 255, 255, .2); transform: translateY(-4px); }
.rc-line span:last-child { font-weight: 700; white-space: nowrap; }
.rc-line.plus span:last-child { color: var(--gold); }
.rc-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin: 20px 0 18px; }
.rc-total small { color: var(--muted); font-size: 15px; font-weight: 700; padding-bottom: 6px; }
.rc-total strong { font: 400 clamp(40px, 4vw, 52px)/1 var(--display); white-space: nowrap; }
.rc-total em { font-style: normal; font-size: .5em; margin-left: .12em; color: var(--gold); vertical-align: .45em; }
.rc-error { margin: -6px 0 14px; color: #ff9f95; font-size: 13.5px; font-weight: 600; }
.rc-note { margin-top: 12px; color: var(--dim); font-size: 12.5px; text-align: center; }

/* ---------- Нижняя панель на телефоне ---------- */
.cp-bar { background: rgba(10, 9, 13, .82); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-top: 1px solid rgba(255, 255, 255, .08); }
.cp-bar b { font: 400 24px var(--display); }
.cp-bar .c-btn { padding: 15px 26px; font-size: 16px; }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
  .cp-grid { grid-template-columns: minmax(0, 1fr); }
  .cp-aside { position: static; max-width: 560px; width: 100%; margin: 10px auto 0; }
  .cp-modes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .cp-boost { grid-template-columns: minmax(0, 1fr); }
  .cp-types { grid-template-columns: minmax(0, 1fr); }
  .cp-card { padding: 24px 18px; border-radius: 28px; }
  .cp-head { gap: 14px; margin-bottom: 20px; }
  .cp-num { font-size: 34px; }
  .cp-head h2 { font-size: 21px; }
  .cp-head-link { display: none; }
  .cp-lp-tile strong { font-size: 54px; }
  .cp-leg { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .cp-leg-bar { display: none; }
}
@media (max-width: 520px) {
  .cp-hero { padding-top: 26px; }
  .cp-modes { gap: 10px; margin-top: 28px; }
  .cp-mode { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; border-radius: 22px; }
  .cp-mode img { width: 48px; height: 48px; }
  .cp-mode b { font-size: 16px; }
  .cp-mode small { font-size: 12px; }
  .cp-counter { gap: 14px; }
  .cp-round { width: 52px; height: 52px; }
  .cp-lp { gap: 8px; }
  .cp-lp-tile { padding: 20px 6px 18px; border-radius: 22px; }
  .cp-lp-tile b { font-size: 16px; }
  .cp-opt { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px; }
  .cp-opt-pct { display: none; }
  .cp-pill { padding: 10px 14px; font-size: 14px; }
  .rc-paper { padding: 34px 18px 20px; }
  .rc-cut { margin: 14px -18px 8px; }
  .rc-end .medal { width: 48px; height: 48px; }
  .rc-end b { font-size: 16px; }
}
