/* ------------------------------------------------------------------
   Секция 02: живые экраны в карточках (Figma 129:25791).
   Каждый .mini — экран приложения 610×500 (2x), ужимается
   в иллюстрацию через --q. Сцены переключает script.js классами
   .s1…sN на .mini; в разметке стоит финальная сцена — её видно
   без JS и при prefers-reduced-motion.
   ------------------------------------------------------------------ */

.fcard__ill {
  position: relative;
  --q: .5;
  background:
    radial-gradient(60% 55% at 50% 105%, rgba(70, 45, 130, 0.55) 0%, rgba(37, 27, 61, 0) 100%),
    linear-gradient(#05050b, #0b0915);
}

.mini {
  position: absolute;
  top: 0;
  left: 50%;
  width: 610px;
  height: 500px;
  margin-left: -305px;
  overflow: hidden;
  transform: scale(var(--q));
  transform-origin: 50% 0;
  color: #fff;
  font: 500 24px/1.4 var(--font-text);
  --fade: .3s;
}
.mini p { margin: 0; }
.mini svg { display: block; }
.mini > * { transition: opacity var(--fade); }
.mini.is-out > * { opacity: 0; }
.mini--speak { --fade: .6s; }

/* ---------- Общие элементы: пузыри, плеер ---------- */

.lb {
  width: 546px;
  padding: 22px 20px;
  border-radius: 40px 40px 40px 8px;
  background: rgba(255, 255, 255, 0.08);
}

.ltools { display: flex; gap: 16px; margin-top: 15px; }
.ltool {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 64px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.ltool svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ltool--tr { gap: 12px; padding: 0 22px 0 11px; font-size: 22px; color: rgba(255, 255, 255, 0.85); }
.ltool--tr > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.ltool--tr svg { width: 24px; height: 24px; }

.ub {
  position: relative;
  align-self: flex-end;
  width: 546px;
  padding: 20px 20px 25px;
  border-radius: 40px 40px 8px 40px;
  background: linear-gradient(116deg, #8c65cc 45%, #a791cc 100%);
}
.ub__text {
  padding: 0 0 14px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  width: 472px;
  font-size: 24px;
  line-height: 34px;
}
.ub__check {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 24px;
  color: var(--c-lime);
}

.mp {
  display: flex;
  align-items: center;
  width: 472px;
  height: 110px;
  margin-top: 16px;
  padding: 5px;
  border-radius: 55px;
  background: rgba(255, 255, 255, 0.1);
}
.mp__play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #fff;
  color: #8c65cc;
}
.mp__play svg { width: 40px; height: 40px; margin-left: 5px; }
.mp__wave,
.sp-rec__w,
.pr-pl__w { display: flex; align-items: center; gap: 6px; }
.mp__wave { margin-left: 20px; }
.mp__wave i,
.sp-rec__w i,
.pr-pl__w i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
}
.mp__time {
  margin-left: auto;
  padding-right: 22px;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.9);
}

/* ---------- A. «Говори!» ---------- */

.mini__col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  height: 100%;
  padding: 0 32px;
}

.mini--speak .sp-q,
.mini--speak .ub,
.mini--speak .sp-dots,
.mini--speak .sp-a,
.mini--speak .sp-rec { display: none; }

.mini--speak.s1 .sp-q { display: block; }
.mini--speak.s2 .sp-rec { display: flex; }
.mini--speak.s3 .sp-rec { display: none; }
.mini--speak.s3 .ub { display: block; }
.mini--speak.s4 .sp-q { display: none; }
.mini--speak.s4 .sp-dots { display: flex; }
.mini--speak.s5 .sp-dots { display: none; }
.mini--speak.s5 .sp-a { display: block; }

/* вопрос Лексы проявляется по словам за 2 с, затем инструменты */
.sp-q .lb span { animation: m-fade .3s calc(var(--i) * .33s) ease-out both; }
.sp-q .ltools { animation: m-in .4s 2s ease-out both; }
.mini--speak .ub { animation: m-up .45s ease-out both; }
.sp-dots,
.sp-a { animation: m-in .4s ease-out both; }
.sp-a .ltools { animation: m-in .4s .35s ease-out both; }

.sp-dots {
  align-items: center;
  gap: 10px;
  width: 546px;
  height: 63px;
  padding: 0 28px;
  border-radius: 32px 32px 32px 8px;
  background: rgba(255, 255, 255, 0.08);
}
.sp-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  animation: m-dot 1s infinite;
}
.sp-dots i:nth-child(2) { animation-delay: .15s; }
.sp-dots i:nth-child(3) { animation-delay: .3s; }

/* запись голосового */
.sp-rec {
  position: absolute;
  left: 50%;
  bottom: 28px;
  align-items: center;
  gap: 16px;
  height: 64px;
  margin-left: -150px;
  width: 300px;
  padding: 0 24px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.1);
  animation: m-in .35s ease-out both;
}
.sp-rec__dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff5f5f;
  animation: m-blink 1s infinite;
}
.sp-rec__t { width: 52px; font-size: 22px; font-variant-numeric: tabular-nums; }
.sp-rec__w { gap: 5px; }
.sp-rec__w i { background: var(--c-lime); animation: m-bar .6s ease-in-out infinite alternate; }
.sp-rec__w i:nth-child(3n) { animation-delay: -.2s; }
.sp-rec__w i:nth-child(3n + 1) { animation-delay: -.4s; }

/* ---------- B. «Улучшай произношение» ---------- */

.pr-chat,
.pr-score { display: none; }
.mini--pron.s1 .pr-chat { display: flex; }
.mini--pron.s3 .pr-chat { display: none; }
.mini--pron.s3 .pr-score { display: block; }

.pr-chat {
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  height: 100%;
  padding: 39px 32px 0;
}
.ub--dark {
  align-self: flex-start;
  width: 452px;
  padding: 18px 20px 20px;
  background: linear-gradient(116deg, #2a2240 0%, #241d36 100%);
  animation: m-in .4s ease-out both;
}
.ub--dark .ub__text { width: 383px; padding-bottom: 12px; line-height: 38px; }
.ub--dark .mp { width: 383px; height: 80px; padding: 5px; margin-top: 16px; }
.ub--dark .mp__play { width: 70px; height: 70px; color: #241d36; }
.ub--dark .mp__play svg { width: 28px; height: 28px; margin-left: 4px; }
.ub--dark .mp__wave { gap: 5px; }
.ub--dark .mp__wave i { width: 2px; }
.ub--dark .ub__check { color: #fff; right: 14px; bottom: 14px; width: 30px; height: 19px; }

.pr-the {
  padding: 0 8px;
  border-radius: 20px;
  color: var(--c-lime);
  background: rgba(255, 157, 157, 0.12);
  box-shadow: inset 0 0 0 2px #ff9d9d;
}
.pr-be {
  color: #ff9d9d;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.pchips { display: flex; gap: 16px; animation: m-in .4s .3s ease-out both; }
.pchip {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px 0 6px;
  border-radius: 26px;
  background: #2a2830;
  color: var(--c-lime);
  transition: transform .2s, background-color .2s;
}
.pchip__i {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.pchip__i svg { width: 40px; height: 40px; }
.mini--pron.s2 .pchip--a { transform: scale(.94); background: #3c3a44; }

.lb--pr { width: 428px; padding: 20px 20px; animation: m-in .4s .6s ease-out both; }
.lb--pr p + p { margin-top: 16px; }

.pr-score { padding: 32px 32px 0; animation: m-in .4s ease-out both; }

.pr-top {
  position: relative;
  height: 115px;
  padding: 14px 10px;
  border-radius: 24px;
  background:
    radial-gradient(60% 80% at 75% 0%, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 70%),
    rgba(255, 255, 255, 0.07);
}
.pr-top__t { display: block; font: 400 28px/1.2 var(--font-display); }
.pr-top__v,
.ptile__v { display: block; font: 400 40px/1 var(--font-display); color: #ffc96b; }
.pr-top__v { margin-top: 18px; }
.pr-top__v b,
.ptile__v b,
.pg-t__v b { font-weight: 400; font-variant-numeric: tabular-nums; }
.pr-top__v small,
.ptile__v small {
  margin-left: 4px;
  font: 500 16px/1 var(--font-text);
  color: rgba(255, 255, 255, 0.5);
}
.pr-top__g {
  position: absolute;
  right: 12px;
  bottom: 14px;
  font: 400 22px/1 var(--font-display);
  color: #ffc96b;
}

.pr-tiles { display: flex; gap: 6px; margin-top: 13px; }
.ptile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 158 1 0;
  height: 87px;
  padding: 8px 10px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  --c: #ffc96b;
}
.ptile:last-child { flex-grow: 220; }
.ptile--g { --c: var(--c-lime); }
.ptile::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 40px;
  width: 90px;
  height: 50px;
  margin-left: -45px;
  border-radius: 50%;
  background: var(--c);
  opacity: .35;
  filter: blur(26px);
}
.ptile__l { display: block; font-size: 18px; line-height: 1.2; color: rgba(255, 255, 255, 0.7); }
.ptile__v { margin-top: 8px; font-size: 32px; color: var(--c); }
.ptile__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.16);
}
.ptile__bar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--c);
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}
.mini--pron.s4 .ptile__bar i { width: var(--w); }

.pr-play { display: flex; gap: 10px; margin-top: 12px; }
.pr-pl {
  display: flex;
  align-items: center;
  flex: 1;
  height: 38px;
  padding: 1px 22px 1px 1px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.06);
}
.pr-pl__b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: #111;
}
.pr-pl__b svg { width: 16px; height: 16px; margin-left: 2px; }
.pr-pl__w { gap: 1px; margin: 0 auto; }
.pr-pl__w i { width: 2px; background: rgba(255, 255, 255, 0.35); }
.pr-pl__t { font-size: 18px; line-height: 1; }
.pr-ref {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  margin-top: -4px;
  padding: 0 16px 0 4px;
  border-radius: 23px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 18px;
  text-transform: uppercase;
}
.pr-ref span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}
.pr-ref svg,
.pg-t__i,
.gr-go svg,
.pg-link svg,
.pg-nav__b svg,
.gr-head__x svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pr-ref svg { width: 20px; height: 20px; }

.pr-tr {
  margin-top: 10px;
  height: 152px;
  padding: 10px 10px 0;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
}
.pr-tr__h { font-size: 17px; line-height: 1.2; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); }
.pr-words {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 6px;
  margin-top: 8px;
  font-size: 22px;
  line-height: 32px;
}
.pw {
  padding: 0 3px;
  border-radius: 14px;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  --c: #fff;
  --o: #b9a0f0;
  transition:
    color .3s calc(var(--i) * .11s),
    box-shadow .3s calc(var(--i) * .11s),
    background-color .35s;
}
.pw--g { --c: var(--c-lime); }
.pw--r { --c: #ff9d9d; }
.pw--o { --c: #ffc96b; }
.pw--v { --c: #d4baff; }
.pw--lime { --o: var(--c-lime); }
.mini--pron.s5 .pw { color: var(--c); box-shadow: inset 0 0 0 2px var(--o); }
.mini--pron.s6 .pw--hot { background: rgba(255, 157, 157, 0.3); }

.pr-tr__cap {
  margin-top: 10px;
  text-align: center;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.45);
  opacity: 0;
  transition: opacity .4s;
}
.mini--pron.s6 .pr-tr__cap { opacity: 1; }

/* ---------- C. «Отрабатывай грамматику» ---------- */

.gr-rule,
.gr-test,
.gr-res { display: none; }
.mini--gram:not(.s2) .gr-rule { display: block; }
.mini--gram.s2 .gr-test { display: flex; }
.mini--gram.s6 .gr-test { display: none; }
.mini--gram.s6 .gr-res { display: flex; }

.mini--gram { font-size: 17px; line-height: 1.35; }
.mini--gram b { font-weight: 700; }

.gr-rule { padding: 38px 32px 0; }
.gr-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 12px 14px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(20, 18, 28, 0.6);
}
.gr-card__t { font-size: 22px; line-height: 1.2; }
.gr-ex { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.gr-ex span { padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, 0.12); line-height: 24px; }
.gr-ok { color: var(--c-lime); }
.gr-no { color: #ff9d9d; }
.gr-from {
  padding-top: 10px;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
  font-size: 16px;
}
.gr-from span {
  margin-right: 10px;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.gr-from s { color: #ff9d9d; }
.gr-from b { color: var(--c-lime); }

.gr-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 27px;
  margin-top: 9px;
  padding: 0 10px 0 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: var(--c-lime);
  transition: transform .2s, background-color .2s;
}
.gr-go svg { width: 16px; height: 16px; }
.mini--gram.s1 .gr-go { transform: scale(.92); background: rgba(229, 249, 116, 0.25); }

.gr-test {
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  height: 100%;
  padding: 0 32px;
  animation: m-in .4s ease-out both;
}
.gr-head,
.gr-q {
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
}
.gr-head {
  position: relative;
  display: flex;
  align-items: center;
  height: 63px;
  padding: 0 60px 16px 12px;
  font-size: 18px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}
.gr-head__n { margin-left: auto; }
.gr-head__x {
  position: absolute;
  right: 10px;
  top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.gr-head__x svg { width: 10px; height: 10px; }
.gr-prog {
  position: absolute;
  left: 12px;
  right: 56px;
  bottom: 12px;
  display: flex;
  gap: 2px;
}
.gr-prog i { flex: 1; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.gr-prog i:first-child { background: rgba(255, 255, 255, 0.55); transition: background-color .3s; }
.mini--gram.s5 .gr-prog i:first-child { background: #ff9d9d; }

.gr-q {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 12px 14px;
}
.gr-q__h { margin-bottom: -6px; font-size: 19px; color: rgba(255, 255, 255, 0.75); }
.gr-q__t { margin-bottom: 0; font-size: 19px; font-weight: 700; }
.gr-o {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 21px;
  background: #2a2440;
  font-size: 20px;
  transition: height .25s, box-shadow .25s, background-color .3s, color .3s;
}
.mini--gram.s3 .gr-o--1 { height: 42px; box-shadow: inset 0 0 0 2px var(--c-lime); }
.mini--gram.s5 .gr-o--1 { height: 34px; background: #4a2a35; box-shadow: inset 0 0 0 2px #ff9d9d; color: #ff9d9d; }
.mini--gram.s5 .gr-o--2 {
  position: relative;
  height: 42px;
  background: #3d4022;
  box-shadow: inset 0 0 0 2px var(--c-lime);
  color: var(--c-lime);
  animation: m-fade .3s ease-out both;
}
.mini--gram.s5 .gr-o--2::after { content: "✓"; position: absolute; right: 18px; font-size: 16px; }
.mini--gram.s5 .gr-o--3,
.mini--gram.s5 .gr-o--4,
.mini--gram.s5 .gr-btn--lime { display: none; }

.gr-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  border-radius: 19px;
  font: 400 18px/1 var(--font-display);
  color: var(--c-ink);
  transition: transform .15s, filter .15s;
}
.gr-btn--lime { background: var(--c-lime); }
.mini--gram.s4 .gr-btn--lime { transform: scale(.96); filter: brightness(.85); }
.gr-btn--next { align-self: center; height: 40px; padding: 0 12px; background: #fff; }
.gr-fb,
.gr-q .gr-btn--next { display: none; }
.mini--gram.s5 .gr-fb { display: block; animation: m-in .35s .1s ease-out both; }
.mini--gram.s5 .gr-q .gr-btn--next { display: flex; animation: m-in .35s .25s ease-out both; }
.gr-fb { font-size: 19px; }
.gr-fb span { color: #ff9d9d; }

.gr-res {
  flex-direction: column;
  align-items: center;
  height: 436px;
  margin: 31px 33px 0;
  padding: 12px 10px 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: rgba(20, 18, 28, 0.4);
  animation: m-in .45s ease-out both;
}
.gr-res__k { font-size: 14px; text-transform: uppercase; color: rgba(255, 255, 255, 0.75); }
.gr-res__t { margin-top: 12px; font-size: 21px; }
.gr-res__n { margin-top: 14px; font: 400 40px/1 var(--font-display); color: rgba(255, 255, 255, 0.85); }
.gr-res__n b { font-weight: 400; color: var(--c-lime); }
.gr-res__s { display: flex; gap: 14px; margin-top: 14px; font-size: 18px; }
.gr-err {
  align-self: stretch;
  margin-top: 14px;
  padding: 8px 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
}
.gr-err__h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 6px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
}
.gr-pager { display: flex; align-items: center; gap: 8px; text-transform: none; }
.gr-pager i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); }
.gr-err__q { margin-top: 10px; font-weight: 700; }
.gr-err__f { margin-top: 8px; font-size: 18px; }
.gr-err__f s { text-decoration: none; color: #ff9d9d; }
.gr-err__f b { color: var(--c-lime); }
.gr-err__x { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.gr-res .gr-btn--next { margin-top: 15px; font-size: 16px; }
.gr-res__end { margin-top: 22px; font: 400 17px/1 var(--font-display); }

/* ---------- D. «Отслеживай прогресс» ---------- */

.pg-cal { display: none; }
.mini--prog.s3 .pg-home { display: none; }
.mini--prog.s3 .pg-cal { display: block; }

.pg-home { padding: 32px 32px 0; }
.pg-hi { font-size: 20px; line-height: 1.25; color: rgba(255, 255, 255, 0.7); }
.pg-hi b { display: block; font-size: 25px; font-weight: 500; color: #fff; }

.pg-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: max-content;
  min-width: 546px;
  margin-top: 30px;
  font: 400 16px/1 var(--font-display);
  transition: color .2s, transform .2s;
}
.pg-link svg { width: 16px; height: 16px; }
.mini--prog.s2 .pg-link { color: var(--c-lime); transform: scale(.97); }

.pg-week { display: flex; justify-content: center; gap: 2px; margin-top: 15px; }
.pg-d {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  height: 85px;
  padding-top: 7px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 16px;
  line-height: 20px;
}
.pg-d--today { box-shadow: inset 0 0 0 2px var(--c-lime); }
.pg-d b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 32px;
  margin-top: 4px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.07);
  font-weight: 500;
}
.pg-d i { width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; }
.pg-d i.g { background: var(--c-lime); }
.pg-d i.r { background: #ff9d9d; }
.pg-d i.n { background: rgba(255, 255, 255, 0.2); }

.pg-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 10px;
  margin: 26px 8px 0;
}
.pg-t {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 70px;
  padding: 6px 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
}
.pg-t__l { display: block; font-size: 16px; line-height: 1.2; color: rgba(255, 255, 255, 0.7); }
.pg-t__i { position: absolute; top: 8px; right: 8px; width: 18px; height: 18px; color: var(--c-lime); }
.pg-t__v { display: block; margin-top: 6px; font: 400 28px/1 var(--font-display); }
.pg-t__v small { margin-left: 2px; font: 500 14px/1 var(--font-text); color: rgba(255, 255, 255, 0.7); }
.pg-fire {
  position: absolute;
  top: 6px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #8a5cf0;
}
.pg-fire svg { width: 15px; height: 15px; stroke-width: 1.5; }
.pg-t--streak::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -30px;
  width: 110px;
  height: 60px;
  margin-left: -40px;
  border-radius: 50%;
  background: #a37bff;
  opacity: .6;
  filter: blur(24px);
}

.pg-cal { padding-top: 46px; animation: m-in .4s ease-out both; }
.pg-grid {
  display: grid;
  grid-template-columns: repeat(7, 37px);
  justify-content: center;
  gap: 3px 4.5px;
  font-size: 18px;
}
.pg-wd {
  margin-bottom: 4px;
  text-align: center;
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.pg-c {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  transition: background-color .3s, color .3s, transform .3s;
}
.pg-c--dim { background: none; color: rgba(255, 255, 255, 0.2); }
.pg-c--today { box-shadow: inset 0 0 0 2px var(--c-lime); }
.mini--prog.s4 .pg-c--on {
  background: var(--c-lime);
  color: var(--c-ink);
  transition-delay: calc(var(--i) * .22s);
  animation: m-pop .35s calc(var(--i) * .22s) ease-out both;
}

.pg-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 42px 0 43px;
  font: 400 19px/1 var(--font-display);
}
.pg-nav b { font-weight: 400; }
.pg-nav__b {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}
.pg-nav__b svg { width: 16px; height: 16px; }
.pg-nav__b--l svg { transform: scaleX(-1); }
.pg-cnt { margin-top: 18px; text-align: center; font-size: 18px; color: rgba(255, 255, 255, 0.7); }
.pg-t--wide { height: 87px; margin: 22px 42px 0 43px; padding: 10px 10px; border-radius: 20px; }
.pg-t--wide .pg-t__l { font-size: 17px; }
.pg-t--wide .pg-t__v { font-size: 32px; }
.pg-t--wide .pg-t__v small { font-size: 15px; }
.pg-t--wide .pg-fire { top: 10px; right: 12px; width: 26px; height: 26px; }
.pg-t--wide::before { width: 160px; margin-left: -20px; }

/* ---------- Анимации ---------- */

@keyframes m-fade { from { opacity: 0; } }
@keyframes m-in { from { opacity: 0; transform: translateY(12px); } }
@keyframes m-up { from { opacity: 0; transform: translateY(60px); } }
@keyframes m-pop { 50% { transform: scale(1.15); } }
@keyframes m-dot { 0%, 60%, 100% { background: rgba(255, 255, 255, 0.35); } 30% { background: #fff; } }
@keyframes m-blink { 50% { opacity: .3; } }
@keyframes m-bar { from { transform: scaleY(.35); } }

/* ---------- Телефон ---------- */

@media (max-width: 767px) {
  .fcard__ill { --q: .436; }
}

@media (prefers-reduced-motion: reduce) {
  .mini *,
  .mini *::before,
  .mini *::after { animation: none !important; transition: none !important; }
}
