/* Примерният доклад в телефон (26.11.2026). Вместо разлистването на PDF страниците: докладът, отворен на телефон,
   като приложение. Мек ореол зад телефона, плаващи карти отстрани, долната част избледнява в страницата.
   Всичко вътре е от самия анонимен доклад (klienti/klimatici/report_anonimen.html): числа, текстове, находки, план.
   Размерите вътре в телефона са в em, а основата е в cqw: целият екран се смалява заедно с телефона. */

/* заглавието и текстът над телефона са в средата, както и телефонът */
.page-hero.rph-hero { text-align: center; }
.page-hero.rph-hero > .container > .lead { max-width: 50em; margin-inline: auto; text-wrap: balance; }

.rph { position: relative; padding-block: clamp(4px, 1.4vw, 18px) clamp(14px, 2.4vw, 34px); overflow: clip; }
.rph-stage { --w: 340px; position: relative; height: clamp(560px, 47vw, 650px); display: flex; justify-content: center; }

/* ореолът: широка мека лента зад телефона */
.rph-glow { position: absolute; z-index: 0; left: 50%; top: 4%; width: min(1100px, 130vw); height: 78%; transform: translateX(-50%); pointer-events: none;
  background:
    radial-gradient(30% 44% at 50% 46%, rgba(151, 202, 165, .62), rgba(151, 202, 165, 0) 72%),
    radial-gradient(58% 30% at 50% 52%, rgba(185, 214, 194, .85), rgba(185, 214, 194, 0) 74%),
    radial-gradient(16% 20% at 62% 34%, rgba(212, 186, 116, .26), rgba(212, 186, 116, 0) 70%);
  filter: blur(24px); }

/* телефонът: долната част избледнява в страницата */
.rph-phone { position: relative; z-index: 1; width: calc(var(--w) + 10px); height: 100%; padding-inline: 5px; container-type: inline-size;
  -webkit-mask-image: linear-gradient(#000 66%, rgba(0, 0, 0, 0) 97%); mask-image: linear-gradient(#000 66%, rgba(0, 0, 0, 0) 97%);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.rph-frame { position: relative; width: var(--w); aspect-ratio: 340 / 716; border-radius: 15.6% / 7.4%; padding: 3.2%;
  background: linear-gradient(145deg, #3A3D3B 0%, #171918 22%, #0E0F0F 60%, #2E3130 100%);
  box-shadow: inset 0 0 0 1.5px #4A4E4C, inset 0 0 0 3px #0B0C0C, 0 46px 70px -34px rgba(0, 32, 20, .55), 0 18px 30px -18px rgba(0, 32, 20, .35); }
.rph-btn { position: absolute; width: 3px; border-radius: 2px; background: linear-gradient(90deg, #2A2D2C, #4A4E4C); }
.rph-btn-a { left: -2px; top: 16%; height: 5%; }
.rph-btn-b { left: -2px; top: 24%; height: 8.5%; }
.rph-btn-c { right: -2px; top: 22%; height: 12%; }
.rph-screen { position: relative; height: 100%; border-radius: 12.6% / 5.9%; overflow: hidden; background: #F5F4EF; color: var(--ink);
  display: flex; flex-direction: column; font-size: 12.5px; font-size: 3.68cqw; line-height: 1.35; touch-action: pan-y; }

.rph-status { position: relative; flex: none; height: 4.2em; display: flex; align-items: center; justify-content: space-between; padding: .5em 2.1em 0 2.5em; }
.rph-time { font-size: 1.16em; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.rph-island { position: absolute; left: 50%; top: .95em; width: 8.4em; height: 2.5em; transform: translateX(-50%); border-radius: 2em; background: #050505; }
.rph-sys { display: flex; align-items: center; gap: .42em; }
.rph-sys svg { height: .95em; width: auto; fill: currentColor; }
.rph-sys svg:last-child { height: 1em; }

.rph-app { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: .5em 1.15em 0; }
.rph-head { display: flex; align-items: center; gap: .8em; }
.rph-logo { width: 2.75em; height: 2.75em; border-radius: .7em; flex: none; display: block; }
.rph-who b { display: block; font-size: 1.28em; font-weight: 800; letter-spacing: -.015em; line-height: 1.15; }
.rph-who span { display: block; font-size: .92em; color: #6B716C; }

.rph-tabs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 1em 0 .85em; padding: .25em; border-radius: 2em; background: rgba(0, 84, 53, .07); }
.rph-knob { position: absolute; z-index: 0; top: .25em; bottom: .25em; left: 0; width: 0; border-radius: 2em; background: var(--forest);
  box-shadow: 0 .5em 1em -.5em rgba(0, 84, 53, .6); transition: transform .5s cubic-bezier(.2, .8, .2, 1), width .5s cubic-bezier(.2, .8, .2, 1); }
.rph-tab { -webkit-appearance: none; appearance: none; position: relative; z-index: 1; margin: 0; border: 0; background: none; font: inherit; font-size: .98em; font-weight: 700;
  color: #4A4F4B; padding: .62em .2em; border-radius: 2em; cursor: pointer; transition: color .35s; white-space: nowrap; }
.rph-tab[aria-selected="true"] { color: var(--paper); }
.rph-tab:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

.rph-view { position: relative; flex: 1; min-height: 0; overflow: hidden; margin-inline: -1.15em; }
.rph-track { display: flex; height: 100%; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.rph-pg { flex: 0 0 100%; min-width: 0; padding: .1em 1.15em 2em; display: flex; flex-direction: column; gap: .7em; }

.rph-card { background: #FFF; border-radius: 1.35em; padding: 1em 1.05em; border: 1px solid rgba(26, 26, 26, .05);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 .9em 1.8em -1.3em rgba(0, 40, 25, .3); }

/* докато JS подрежда първото състояние: без анимации */
.rph-0, .rph-0 * { transition: none !important; }

/* появяването на раздела: картите се вдигат една след друга */
.rph-pg > * { opacity: 0; transform: translateY(1.1em); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.rph-pg.on > * { opacity: 1; transform: none; }
.rph-pg.on > :nth-child(2) { transition-delay: .08s; } .rph-pg.on > :nth-child(3) { transition-delay: .16s; }
.rph-pg.on > :nth-child(4) { transition-delay: .24s; } .rph-pg.on > :nth-child(5) { transition-delay: .32s; }

/* Резюме */
.rph-score { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1em; }
.rph-ring { position: relative; width: 6.6em; height: 6.6em; flex: none; }
.rph-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rph-ring circle { fill: none; stroke-width: 10; }
.rph-ring .tr { stroke: rgba(0, 84, 53, .1); }
.rph-ring .pr { stroke: var(--forest); stroke-linecap: round; stroke-dasharray: 320.4; stroke-dashoffset: 320.4; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .8, .2, 1) .15s; }
.rph-pg.on .rph-ring .pr { stroke-dashoffset: calc(320.4 * (1 - var(--v) / 100)); }
.rph-ring-n { position: absolute; inset: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 2.05em; }
.rph-ring-n b { font-size: 2.2em; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rph-ring-n small { font-size: .9em; color: #6B716C; margin-left: .1em; }
.rph-score-t { display: grid; gap: .22em; min-width: 0; }
.rph-score-t b { font-size: 1.12em; font-weight: 800; }
.rph-score-t > span { color: #5A605B; }
/* потенциалът е отделен ред под оценката, през цялата карта */
.rph-up { grid-column: 1 / -1; display: flex; align-items: center; gap: .4em; margin-top: .85em; padding-top: .75em; border-top: 1px solid rgba(26, 26, 26, .07);
  color: var(--forest); font-weight: 700; }
.rph-up svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.rph-two { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.rph-mini { display: grid; gap: .2em; padding: .85em 1em; }
.rph-mini b { font-size: 2em; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.rph-mini span { font-size: .92em; color: #6B716C; line-height: 1.3; }
.rph-mini strong { display: block; font-size: 1.06em; font-weight: 700; color: var(--ink); }
.rph-bad { color: var(--signal); }
.rph-good { color: var(--forest); }

.rph-stop b { display: block; font-size: 1.04em; font-weight: 800; margin-bottom: .5em; }
.rph-stop ul { list-style: none; display: grid; gap: .5em; }
.rph-stop li { position: relative; padding-left: 1.45em; font-size: .96em; color: #3B3F3C; }
.rph-stop li::before { content: ""; position: absolute; left: .1em; top: .38em; width: .8em; height: .8em; border-radius: 50%; background: var(--chip-r-bg, #F5DFDC); }
.rph-stop li::after { content: ""; position: absolute; left: .37em; top: .65em; width: .26em; height: .26em; border-radius: 50%; background: var(--signal); }

/* Индекси: име и число на един ред, лентата цяла отдолу */
.rph-idx { display: grid; gap: .72em; padding-bottom: 1.15em; }
.rph-note { margin: 0 0 .1em; font-size: .9em; color: #6B716C; }
.rph-row { display: grid; grid-template-columns: 1fr auto; row-gap: .32em; align-items: baseline; }
.rph-row span { font-size: .96em; font-weight: 700; color: #2B2F2C; }
.rph-row b { font-size: 1em; font-weight: 800; font-variant-numeric: tabular-nums; }
.rph-row i { grid-column: 1 / -1; position: relative; height: .5em; border-radius: 1em; background: rgba(0, 84, 53, .09); overflow: hidden; }
.rph-row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 1em; background: var(--forest);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s cubic-bezier(.2, .8, .2, 1); }
.rph-pg.on .rph-row i::after { transform: none; }
.rph-row:nth-child(3) i::after { transition-delay: .05s; } .rph-row:nth-child(4) i::after { transition-delay: .1s; } .rph-row:nth-child(5) i::after { transition-delay: .15s; }
.rph-row:nth-child(6) i::after { transition-delay: .2s; } .rph-row:nth-child(7) i::after { transition-delay: .25s; } .rph-row:nth-child(8) i::after { transition-delay: .3s; }
.rph-row.is-low b { color: var(--signal); }
.rph-row.is-low i::after { background: var(--signal); }

/* Находки */
.rph-find { display: grid; gap: .55em; }
.rph-find-h { display: flex; align-items: center; justify-content: space-between; }
.rph-code { font-size: .88em; font-weight: 700; color: #6B716C; font-variant-numeric: tabular-nums; }
.rph-sc { padding: .18em .62em; border-radius: 1em; background: var(--chip-r-bg, #F5DFDC); color: var(--chip-r-tx, #A32222); font-size: .88em; font-weight: 800; }
.rph-find-t { font-size: 1.12em; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.rph-shot { display: block; width: 100%; height: auto; border-radius: .8em; border: 1px solid rgba(26, 26, 26, .06); }
.rph-find p { margin: 0; font-size: .96em; color: #3B3F3C; }
.rph-find p b { color: var(--ink); }
.rph-chips { display: flex; flex-wrap: wrap; gap: .35em; }
.rph-chips span { padding: .25em .7em; border-radius: 1em; background: var(--tint, #EAF0E8); color: #2D5A45; font-size: .86em; font-weight: 700; }

/* План: задачите като в приложение за задачи */
.rph-h { margin: 0; font-size: 1.04em; font-weight: 800; }
.rph-task { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .75em; align-items: start; padding: .9em 1em; border-radius: 1.35em; background: #FFF;
  border: 1px solid rgba(26, 26, 26, .05); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 .9em 1.8em -1.3em rgba(0, 40, 25, .3); transition: background .4s; }
.rph-task small { position: absolute; right: .9em; top: .85em; padding: .12em .5em; border-radius: .5em; background: #F1EFE9; color: #6B716C; font-size: .8em; font-weight: 700; }
.rph-chk { -webkit-appearance: none; appearance: none; margin: .05em 0 0; padding: 0; width: 1.55em; height: 1.55em; border-radius: 50%; border: 1.5px solid #C9CCC6; background: #FFF;
  display: grid; place-items: center; cursor: pointer; transition: background .3s, border-color .3s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.rph-chk svg { width: 1em; height: 1em; fill: none; stroke: #FFF; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 16; stroke-dashoffset: 16; transition: stroke-dashoffset .35s ease .1s; }
.rph-chk:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.rph-task-t { display: grid; gap: .2em; padding-right: 3.6em; min-width: 0; }
.rph-task-t b { font-size: 1em; font-weight: 700; line-height: 1.25; transition: color .3s; }
.rph-task-t span { font-size: .9em; color: #6B716C; }
.rph-task-t em { justify-self: start; margin-top: .2em; padding: .18em .62em; border-radius: 1em; background: var(--chip-r-bg, #F5DFDC); color: var(--chip-r-tx, #A32222); font-style: normal; font-size: .84em; font-weight: 700; }
.rph-task.done .rph-chk { background: var(--forest); border-color: var(--forest); transform: scale(1.06); }
.rph-task.done .rph-chk svg { stroke-dashoffset: 0; }
.rph-task.done .rph-task-t b { color: #8A8F8B; text-decoration: line-through; text-decoration-color: rgba(0, 84, 53, .5); }

/* плаващите карти */
.rph-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 1px 0 #FFF inset, 0 20px 40px -22px rgba(0, 40, 25, .35), 0 6px 14px -8px rgba(0, 40, 25, .18); animation: rph-plavai 6s ease-in-out infinite; }
.rph-f1 { right: calc(50% + var(--w) / 2 - 22px); top: 27%; }   /* застъпват само рамката: съдържанието на екрана остава чисто */
.rph-f2 { left: calc(50% + var(--w) / 2 - 22px); top: 57%; animation-delay: -3s; }
.rph-f-ik { width: 24px; height: 24px; flex: none; fill: none; stroke: var(--forest); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rph-f-t { display: grid; gap: 1px; transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.rph-f-t span { font-size: 12.5px; color: #6B716C; white-space: nowrap; }
.rph-f-t b { font-size: 16px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; color: var(--ink); }
.rph-f1.swap .rph-f-t, .rph-f1.swap .rph-f-ik { opacity: 0; transform: translateY(5px); }
.rph-f-ik { transition: opacity .3s, transform .35s cubic-bezier(.2, .8, .2, 1); }
.rph-avs { display: flex; flex: none; }
.rph-avs i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 13px; font-weight: 800; color: var(--forest);
  border: 2px solid #FFF; margin-left: -9px; }
.rph-avs i:first-child { margin-left: 0; background: #DFEBE2; }
.rph-avs i:nth-child(2) { background: #CFE3D6; }
.rph-avs i:nth-child(3) { background: #EFE6CF; color: var(--zlato-d, #7A5B12); }
@keyframes rph-plavai { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }

/* телефон */
@media (max-width: 700px) {
  /* на телефон картите не се събират встрани: горната стои над ъгъла на телефона, долната в избледняващата част */
  .rph-stage { --w: min(72vw, 286px); height: calc(var(--w) * 1.86 + 34px); padding-top: 34px; }
  .rph-float { padding: 9px 13px 9px 11px; gap: 9px; border-radius: 15px; }
  .rph-f1 { right: auto; left: max(8px, calc(50% - var(--w) / 2 - 30px)); top: 2px; }
  .rph-f2 { left: auto; right: max(8px, calc(50% - var(--w) / 2 - 30px)); top: auto; bottom: 3%; }
  .rph-f-ik { width: 20px; height: 20px; }
  .rph-f-t span { font-size: 11px; }
  .rph-f-t b { font-size: 14px; }
  .rph-avs i { width: 25px; height: 25px; font-size: 11px; margin-left: -8px; }
}

@media (prefers-reduced-motion: reduce) {
  .rph-float { animation: none; }
  .rph-track, .rph-knob, .rph-pg > *, .rph-ring .pr, .rph-row i::after, .rph-f-t, .rph-f-ik, .rph-chk, .rph-chk svg { transition: none; }
}
