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

/* ---------- Высотомер ---------- */
.alti { position: fixed; z-index: 40; right: 26px; top: 22vh; height: 60vh; width: 150px; pointer-events: none; }
.alti-rail { position: absolute; right: 0; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, .08); border-radius: 2px; overflow: hidden; }
.alti-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, #d9bd94, #95e6da, #d8baff, #ffe3a1, #ff3d2e); transform-origin: top; transform: scaleY(0); }
.alti-mark { position: absolute; right: -6px; display: flex; align-items: center; gap: 10px; transform: translateY(-50%); }
.alti-mark::after { content: ""; order: 3; width: 14px; height: 14px; border-radius: 50%; background: var(--tier); box-shadow: 0 0 0 4px rgba(6, 6, 9, .9), 0 0 18px var(--tier); transition: background .6s; }
.alti-val { order: 1; text-align: right; line-height: 1.1; }
.alti-val b { display: block; font: 400 15px var(--display); }
.alti-val small { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.alti-medal { order: 2; width: 40px; height: 40px; }
.alti-medal .medal { display: block; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6)); }

/* ---------- Первый экран ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 90px 0 110px; overflow: clip; }
.hero-stage { width: 100%; text-align: center; }
.hero-title { position: relative; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(52px, 11.5vw, 190px); line-height: .9; letter-spacing: -.02em; perspective: 900px; }
.hero-line { position: relative; display: block; white-space: nowrap; overflow: clip; padding: .04em .1em .08em; }
.hero-line .ch, .hero-line .ws { display: inline-block; }
.hero-line.l1 { z-index: 1; color: #f4ecea; }
.hero-line.l2 { z-index: 3; margin-top: -.08em; color: #ff8a5c; }
/* Градиент на каждой букве отдельно: общий background-clip на строке оставлял «призраков» букв при анимации */
.hero-line.l2 .ch { background: linear-gradient(180deg, #fff 10%, #ffb08a 55%, #ff3d2e 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-medal { position: relative; z-index: 2; display: block; width: clamp(170px, 22vw, 330px); aspect-ratio: 1; margin: -.42em auto -.5em; perspective: 900px; }
.hero-medal img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0, 0, 0, .7)) drop-shadow(0 0 40px rgba(255, 90, 50, .35)); transform-style: preserve-3d; }
.hero-halo { position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(circle, rgba(255, 90, 40, .55), rgba(209, 31, 74, .18) 38%, transparent 66%); }
.hero-foot { display: flex; flex-direction: column; align-items: center; gap: 28px; margin-top: clamp(26px, 4vw, 48px); padding: 0 20px; }
.hero-sub { max-width: 560px; color: #b8b2b8; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(16px); opacity: 0; } }

/* ---------- Калькулятор-циферблат ---------- */
.calc { position: relative; padding: 120px 0 140px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); grid-template-areas: "head head" "dial side"; gap: 40px 64px; align-items: center; }
.calc-head { grid-area: head; }
.calc-head p { margin-top: 18px; color: var(--muted); font-size: 18px; }
.calc .dial-box { grid-area: dial; }
.calc-side { grid-area: side; display: flex; flex-direction: column; gap: 18px; }
.calc-error { color: #ff9f95; font-weight: 600; font-size: 14px; }
.calc-note { color: var(--dim); font-size: 13px; text-align: center; }

/* ---------- Услуги: вертикальный рассказ ---------- */
.modes { position: relative; padding: 110px 0 40px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; margin-top: 30px; }
.story-visual { position: sticky; top: calc(50vh - 250px); height: 500px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; }
.story-stage { position: relative; width: min(440px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.story-orb {
  position: absolute; inset: 4%; border-radius: 50%; filter: blur(14px);
  background: radial-gradient(circle at 38% 32%, color-mix(in srgb, var(--m1) 60%, transparent), color-mix(in srgb, var(--m2) 22%, transparent) 55%, transparent 72%);
}
.story-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--m1) 45%, transparent); }
.story-ring::after { content: ""; position: absolute; left: 50%; top: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--m1); box-shadow: 0 0 16px var(--m1); }
.story-img {
  position: absolute; width: 74%; height: auto; filter: drop-shadow(0 40px 50px rgba(0, 0, 0, .7));
  opacity: 0; transform: translateY(60px) scale(.6) rotate(-25deg); transition: opacity .6s var(--ease), transform 1s var(--ease);
}
.story-img.gone { transform: translateY(-60px) scale(.7) rotate(20deg); }
.story-img.on { opacity: 1; transform: none; }
.story-dots { display: flex; gap: 10px; }
.story-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .18); transition: width .5s var(--ease), background .5s; }
.story-dots i.on { width: 34px; background: var(--grad); }
.story-steps { display: flex; flex-direction: column; }
.story-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; opacity: .22; transition: opacity .6s var(--ease); }
.story-step.on { opacity: 1; }
.story-inline { display: none; }
.story-step h3 { font: 400 clamp(36px, 4.4vw, 64px)/1 var(--display); }
.story-step h3::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 22px; border-radius: 4px; background: linear-gradient(90deg, var(--m1), var(--m2)); }
.story-step p { margin: 22px 0 26px; color: #b8b2b8; font-size: 18px; line-height: 1.6; max-width: 480px; }
.mode-price { margin-bottom: 26px; font-size: 18px; color: var(--muted); font-weight: 600; }
.mode-price b { font: 400 50px var(--display); color: var(--text); }
.mode-price small { font-size: 15px; }

/* ---------- Путь заказа ---------- */
.path { padding: 150px 0 120px; }
.path-body { position: relative; margin-top: 60px; }
.path-line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.path-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 70px; }
.path-steps li { display: flex; gap: 22px; align-items: flex-start; width: min(460px, 46%); padding: 26px 28px; border-radius: 28px; background: rgba(12, 11, 16, .82); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.path-steps li:nth-child(even) { justify-self: end; }
.p-num { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--grad); color: #fff; font: 400 24px var(--display); box-shadow: 0 12px 30px -10px rgba(255, 61, 46, .9); }
.path-steps h3 { font: 700 22px/1.2 var(--font); margin-bottom: 8px; }
.path-steps p { color: var(--muted); font-size: 16px; }

/* ---------- Лестница рангов ---------- */
.stairs { padding: 120px 0; }
.stairs-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.stairs-head p { max-width: 360px; color: var(--muted); font-size: 17px; }
.stairs-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; align-items: end; margin-top: 70px; perspective: 1000px; }
.stair { outline: none; transform: translateY(calc((7 - var(--i)) * 34px)); }
.stair-card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 8px 24px; border-radius: 26px; transform-style: preserve-3d;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 12%, #0e0d12), #0a090d 70%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); transition: box-shadow .4s;
}
.stair-card::before { content: ""; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 2px; background: var(--c); box-shadow: 0 0 20px var(--c); opacity: .6; }
.stair .medal { width: 100%; max-width: 128px; height: auto; transform: translateZ(40px); filter: drop-shadow(0 18px 20px rgba(0, 0, 0, .6)); transition: filter .4s; }
.stair b { margin-top: 10px; font-size: 15px; font-weight: 700; }
.stair span { color: var(--muted); font-size: 12px; margin-top: 2px; }
.stair strong { margin-top: 10px; font: 400 clamp(18px, 1.8vw, 24px) var(--display); color: var(--c); white-space: nowrap; }
.stair:hover .stair-card, .stair:focus-visible .stair-card { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent), 0 30px 60px -30px var(--c); }
.stair:hover .medal { filter: drop-shadow(0 22px 24px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px color-mix(in srgb, var(--c) 55%, transparent)); }

/* ---------- Условия ---------- */
.perks { padding: 160px 0 120px; }
.perks-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 60px; align-items: start; }
.perks-list { list-style: none; margin: 0; padding: 0; }
.perks-list li { padding: 26px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.perks-list li:first-child { padding-top: 6px; }
.perks-list h3 { font: 700 clamp(20px, 2vw, 26px)/1.2 var(--font); }
.perks-list p { margin-top: 8px; color: var(--muted); font-size: 16px; }

/* ---------- FAQ ---------- */
.qa { padding: 60px 0 120px; }
.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.qa-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }

/* ---------- Финал ---------- */
.finale { position: relative; padding: 120px 0 140px; overflow: clip; }
.finale::before { content: ""; position: absolute; left: 50%; top: 45%; width: 900px; height: 900px; margin: -450px 0 0 -450px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 46, .28), transparent 62%); pointer-events: none; }
.finale-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.finale-mascot { width: clamp(150px, 16vw, 220px); aspect-ratio: 1; }
.finale-mascot svg { display: block; width: 100%; height: 100%; filter: drop-shadow(0 40px 60px rgba(255, 61, 46, .45)); animation: bob 5s ease-in-out infinite; }
.finale-title { margin: 40px 0 44px; font: 400 clamp(40px, 7vw, 110px)/.95 var(--display); letter-spacing: -.015em; }
.finale-link { margin-top: 22px; color: var(--muted); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .25); text-underline-offset: 5px; }
.finale-link:hover { color: var(--text); }

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
  .alti { display: none; }
}
@media (max-width: 1000px) {
  .calc-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "dial" "side"; }
  .calc-side { max-width: 520px; width: 100%; margin: 0 auto; }
  .stairs-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .stair { transform: none; }
  .perks-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 899px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-visual { display: none; }
  .story-step { min-height: 0; opacity: 1; padding: 50px 0 10px; }
  .story-inline { display: block; width: 180px; height: auto; margin-bottom: 18px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .6)) drop-shadow(0 0 40px color-mix(in srgb, var(--m1) 40%, transparent)); }
}
@media (max-width: 759px) {
  .path-line { display: none; }
  .path-steps { gap: 16px; }
  .path-steps li, .path-steps li:nth-child(even) { width: 100%; justify-self: stretch; padding: 22px 20px; }
  .p-num { width: 48px; height: 48px; font-size: 20px; }
}
@media (max-width: 600px) {
  .hero { padding: 90px 0 90px; }
  .hero-medal { margin: -.3em auto -.36em; }
  .hero-cta .c-btn { width: 100%; }
  .hero-cta { width: 100%; max-width: 360px; }
  .calc { padding: 80px 0 90px; }
  .stairs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .path, .stairs, .perks { padding: 90px 0; }
  .mode-price b { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .finale-mascot svg, .scroll-cue span { animation: none; }
}
