/* Drawer, language wipe, chapter dots, per-chapter panel designs, phone services card */
.side .step { will-change: transform, opacity; }

.burger { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.5); display: none; place-content: center; gap: 5px; position: relative; z-index: 61; }
.burger i { display: block; width: 16px; height: 2px; background: #fff; transition: transform .5s var(--ease), opacity .3s; }
.drawer-open .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drawer-open .burger i:nth-child(2) { opacity: 0; }
.drawer-open .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.burger { display: grid; }
.v-big .stepper b, .v-big .stepper > span:not(.seg) { display: none; }

.drawer { position: fixed; inset: 0; z-index: 60; background: var(--deep); padding: 100px var(--gut) 40px; display: flex; flex-direction: column; visibility: hidden; clip-path: circle(0 at var(--bx, 90%) 36px); transition: clip-path .8s cubic-bezier(.76, 0, .24, 1), visibility 0s .8s; }
.drawer-open .drawer { visibility: visible; clip-path: circle(150% at var(--bx, 90%) 36px); transition: clip-path .8s cubic-bezier(.76, 0, .24, 1); }
html[dir="ltr"] .drawer { --bx: calc(100% - 40px); }
html[dir="rtl"] .drawer { --bx: 40px; }
.drawer::before { content: ""; position: absolute; inset-inline-end: -30vw; bottom: -20vw; width: 90vw; height: 90vw; border: 14vw solid rgba(83,124,163,.18); border-bottom: 0; border-radius: 999px 999px 0 0; pointer-events: none; }
.drawer ol { counter-reset: d; display: grid; gap: 4px; }
.drawer li a { display: flex; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); text-decoration: none; font-size: clamp(1.5rem, 6.5vw, 2.2rem); font-weight: 800; opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .7s var(--ease), color .2s; }
.drawer li a b { font: 700 12px var(--fl); color: var(--lime); letter-spacing: .15em; min-width: 24px; }
.drawer li a[aria-current] { color: var(--lime); }
.drawer-open .drawer li a { opacity: 1; transform: none; transition-delay: calc(.25s + var(--i) * 45ms); }
.drawer-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; opacity: 0; transition: opacity .5s .6s; }
.drawer-open .drawer-foot { opacity: 1; }
.drawer-foot .cta { display: inline-flex !important; }

.wipe { position: fixed; inset: 0; z-index: 90; pointer-events: none; display: grid; place-items: center; background: var(--lime); clip-path: inset(100% 0 0 0 round 50% 50% 0 0); }
.wipe svg { width: 120px; color: var(--navy); opacity: 0; transition: opacity .25s; }
.wipe.in { clip-path: inset(0 0 0 0 round 0); transition: clip-path .5s cubic-bezier(.76, 0, .24, 1); }
.wipe.in svg { opacity: 1; }
.wipe.out { clip-path: inset(0 0 100% 0 round 0 0 50% 50%); transition: clip-path .6s cubic-bezier(.76, 0, .24, 1); }
.swap-in .side .step.on, .swap-in .hero, .swap-in .city-panel { animation: rise .8s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } }

/* in-card stepper: "02 / 04" + clickable segments */
.stepper { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font: 700 13px var(--fl); letter-spacing: .08em; color: rgba(255,255,255,.55); direction: ltr; }
html[dir="rtl"] .stepper { flex-direction: row-reverse; justify-content: flex-end; }
.stepper b { color: var(--lime); font-size: 15px; }
.stepper .seg { display: flex; gap: 5px; pointer-events: auto; }
html[dir="rtl"] .stepper .seg { flex-direction: row-reverse; }
.stepper .seg a { display: block; width: 26px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.18); position: relative; }
.stepper .seg a::after { content: ""; position: absolute; inset: -10px 0; }
.stepper .seg a.done, .stepper .seg a.on { background: var(--lime); }
.stepper .seg a.on { width: 40px; }
/* network: questions arrive as floating chips */
.v-chips .qs { display: flex; flex-wrap: wrap; gap: 8px; }
.v-chips .qs li { padding: 8px 14px; border-radius: 99px; background: rgba(196,214,55,.1); border: 1px solid rgba(196,214,55,.45); font-size: .92em; opacity: 0; transform: translateY(12px) scale(.94); transition: opacity .5s, transform .6s var(--ease); }
.v-chips .qs li::before { display: none; }
.v-chips .step.on .qs li { opacity: 1; transform: none; }
.v-chips .step.on .qs li:nth-child(2) { transition-delay: .12s; } .v-chips .step.on .qs li:nth-child(3) { transition-delay: .24s; } .v-chips .step.on .qs li:nth-child(4) { transition-delay: .36s; }
.v-rail .step { border-bottom-color: transparent; background: linear-gradient(180deg, rgba(3,28,52,.92), rgba(3,28,52,.78)) padding-box, linear-gradient(120deg, var(--lime), rgba(196,214,55,0) 70%) border-box; border: 1.5px solid transparent; }
/* how we work: oversized step number and a segmented bar */
.v-big .step { border-radius: 0; background: none; border: 0; padding: 0; }
.v-big .step::before { content: attr(data-n); display: block; font: 800 clamp(5rem, 12vw, 10rem)/.9 var(--fl); color: var(--lime); letter-spacing: -.05em; margin-bottom: 8px; }

/* services: phone card */
.svc-card { display: none; }
@media (max-width: 760px) {
  .svc, .svc-d#svc-d { display: none; }
  .city-panel { max-height: none; }
  .svc-card { display: block; }
  .svc-card .n { font: 800 3rem/1 var(--fl); color: var(--lime); } .svc-card .n span { font-size: .35em; color: rgba(255,255,255,.5); }
  .svc-card h3 { margin: 6px 0 6px; font-size: 1.35rem; font-weight: 800; line-height: 1.3; min-height: 2.6em; }
  .svc-card #svc-p { font-size: .92em; color: rgba(255,255,255,.75); min-height: 4.8em; }
  .svc-card .n { margin: 0; }
  .svc-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
  .svc-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); font-size: 18px; flex: none; }
  .svc-dots { display: flex; gap: 4px; flex: 1; align-items: center; }
  .svc-dots i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.16); transition: flex .5s var(--ease), background .3s; position: relative; }
  .svc-dots i::after { content: ""; position: absolute; inset: -12px 0; }
  .svc-dots i.done { background: rgba(196,214,55,.55); }
  .svc-dots i.on { flex: 2.6; background: var(--lime); }
  .svc-nav button { display: grid; place-items: center; }
  .svc-nav svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .v-big .step { background: linear-gradient(180deg, rgba(3,28,52,.0), rgba(3,28,52,.85) 30%); padding: 20px 4px 0; }
  .v-big .step::before { font-size: 4.2rem; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .wipe { transition: none !important; } .swap-in * { animation: none !important; } }
