/* Design "Крона / Liquid Glass": design/DESIGN.md, source prototype design/concepts/editions.css (.grove) */

@font-face{font-family:Onest;font-weight:500 700;font-display:swap;src:url(fonts/onest-cyrillic.woff2) format("woff2");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;font-weight:500 700;font-display:swap;src:url(fonts/onest-latin.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

*{box-sizing:border-box;margin:0}
[hidden]{display:none!important}
html{height:100%;background:#010103;color-scheme:dark;-webkit-text-size-adjust:100%}
/* The palette is sampled from the avatar: space, planet, orbit light, the lime hood (accent) and the gold trim. */
body{height:var(--tg-viewport-stable-height,100dvh);overflow:hidden;display:flex;flex-direction:column;isolation:isolate;
  --space:#010103;--planet:#9309eb;--tint:#2b0147;--rim:#6c2191;--orbit:#f3c9ff;--accent:#a0e101;--on:#101700;--gold:#ffd531;
  --fg:#fbf6ff;--soft:#c4b9d0;--line:#382a45;--pad:18px;
  color:var(--fg);font:500 14px/1.4 Onest,system-ui,sans-serif;
  background:radial-gradient(ellipse at 108% 31%,#341448 0,transparent 47%),radial-gradient(ellipse at -20% 79%,#221133 0,transparent 43%),var(--space);
  -webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer;text-align:inherit;padding:0}
button:focus-visible,a:focus-visible{outline:2px solid var(--orbit);outline-offset:2px}
button:active{transform:translateY(1px)}
button:disabled{transform:none;cursor:default}
ol,ul{list-style:none;padding:0}
img{display:block}

.screen{flex:1;min-height:0;display:flex;flex-direction:column;overflow-y:auto}
.ic{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.star{width:.84em;height:.84em;fill:currentColor;vertical-align:-.04em;margin-left:.18em;flex:none}
.num{font-variant-numeric:tabular-nums lining-nums}
.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap}
.eyebrow{font:600 10px/1.4 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.09em;text-transform:uppercase;color:var(--soft)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}

/* One glass: a diagonal sheen over a dark violet pane, lit along the top and left edges. No backdrop blur: nothing moves behind a card. */
.glass{background:linear-gradient(142deg,#f7e7ff17,transparent 38%,#c593fa09 83%,#e9baff17),#100a1b99;box-shadow:inset 0 1px 0 #f5dfff54,inset 1px 0 0 #e0afff26,inset -1px -1px 0 #ca9df32b,0 4px 12px #0003;border-radius:18px}
.glass.tint{background:linear-gradient(145deg,#f3d9ff24,transparent 40%),radial-gradient(ellipse at 108% 110%,#831bbf88,transparent 65%),#2b093ecc}

.head{flex:none;display:flex;align-items:center;gap:10px;padding:16px var(--pad) 0}
.head img{width:32px;height:32px;border-radius:10px;object-fit:cover}
.head b{font-size:18px;font-weight:700;letter-spacing:-.04em}
.state{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--soft);white-space:nowrap}
.state .ic{width:16px;height:16px}
.state.on{color:var(--fg)}
.state.on .ic{color:var(--gold)}

.cta{flex:none;width:100%;min-height:50px;padding:0 18px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:25px;background:linear-gradient(166deg,#e4ffab8c,transparent 40%),var(--accent);box-shadow:inset 0 1px #f0ffd7b0,inset 0 -2px #4e790b59;color:var(--on);font-weight:700;font-size:15px;letter-spacing:-.01em;text-decoration:none}
.cta .ic{width:18px;height:18px}
.cta:disabled{opacity:.45}
.ghost{flex:none;width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border-radius:24px;font-weight:600}
.ghost .ic{width:18px;height:18px;color:var(--orbit)}
.note{text-align:center;color:var(--soft);font-size:12px;min-height:17px}

/* home: the canopy takes the spare height, the term sits right above the main button */
.canopy{flex:1 0 auto;position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;border-radius:0 0 28px 28px;background:linear-gradient(115deg,var(--space) 12%,#13051f 68%,var(--tint));box-shadow:inset 0 -1px #60118a}
.term{position:relative;margin-top:auto;padding:30px var(--pad) 20px}
.term h1{font-size:clamp(58px,19.5vw,76px);font-weight:500;line-height:1.04;letter-spacing:-.065em;margin:6px 0 6px -3px;white-space:nowrap}
.term h1 em{font-style:normal;color:var(--orbit);text-shadow:0 0 14px #9309eb77}
.term>p:last-of-type{font-size:13px;color:var(--soft)}
.canopy>.cta{width:auto;margin:0 var(--pad) 18px}
/* The orbit is centred on the headline row and fades towards the text it passes behind. */
.orbit{position:absolute;z-index:-1;pointer-events:none;width:232px;height:232px;right:-74px;top:50%;margin-top:-116px;-webkit-mask-image:linear-gradient(90deg,transparent 4%,#000 62%);mask-image:linear-gradient(90deg,transparent 4%,#000 62%)}
.orbit svg{display:block;width:100%;height:100%;color:var(--orbit);transform:rotate(-27deg);filter:drop-shadow(0 0 4px var(--planet))}
@media(prefers-reduced-motion:no-preference){.orbit svg{animation:orbit-turn 18s linear infinite}}
@keyframes orbit-turn{from{transform:rotate(-27deg)}to{transform:rotate(333deg)}}

.body{flex:none;display:grid;gap:10px;padding:18px var(--pad) 4px}
.body h2{font-size:15px;font-weight:600;letter-spacing:-.02em;margin-bottom:2px}
.flash{display:flex;align-items:center;gap:12px;padding:12px 14px;font-size:13px;line-height:1.35}
.flash .ic{color:var(--accent)}
.strip{display:flex;align-items:center;gap:12px;width:100%;min-height:62px;padding:12px 14px}
.strip .box{flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--tint);color:var(--orbit)}
.strip div{min-width:0}
.strip b{display:block;font-weight:600}
.strip small{display:block;font-size:12px;color:var(--soft)}
.strip>.ic{margin-left:auto;color:var(--soft)}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{display:flex;flex-direction:column;min-width:0;padding:12px 14px 13px}
.tile .top{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:var(--soft)}
.tile .top .ic{width:16px;height:16px}
.tile strong{font-size:26px;font-weight:600;line-height:1.1;letter-spacing:-.05em;margin-top:10px;white-space:nowrap}
.tile small{font-size:12px;color:var(--soft);margin-top:3px}
.tile.tint small{color:var(--gold)}

/* inner screens */
.inner{flex:1 0 auto;display:flex;flex-direction:column;gap:16px;padding:24px var(--pad) 6px}
.title{display:grid;gap:6px}
.title h1{font-size:34px;font-weight:600;line-height:1.05;letter-spacing:-.05em}
.foot{margin-top:auto;display:grid;gap:10px;padding-top:4px}
.rate{flex:none;position:relative;isolation:isolate;overflow:hidden;min-height:112px;display:flex;flex-direction:column;justify-content:space-between;padding:16px}
/* two glass discs leaning out of the top right corner of the tariff card */
.rate::before,.rate::after{content:"";position:absolute;z-index:-1;pointer-events:none;width:55%;height:140%;top:-80%;right:-3%;border-radius:50%;transform:rotate(-32deg);border:1px solid #edc9ff59;background:linear-gradient(165deg,#f2cbff30,#ba50ff06 38%,transparent 59%,#bc4cfc45);box-shadow:inset 2px -4px 7px #e8b3ff3d,0 2px 8px #52007d55}
.rate::after{width:51%;height:115%;top:-62%;right:9%;transform:rotate(-46deg);opacity:.6}
.rate .row{display:flex;align-items:baseline;justify-content:space-between}
.rate b{font-size:30px;font-weight:600;line-height:1.1;letter-spacing:-.05em}
.rate strong{font-size:20px;font-weight:600;color:var(--gold)}
.facts{display:grid;gap:10px}
.facts li{display:grid;grid-template-columns:18px 1fr;gap:10px}
.facts .ic{width:18px;height:18px;color:var(--accent);margin-top:1px}
.receipt{flex:none;padding:2px 16px;font-size:13px}
.receipt div{display:flex;align-items:center;justify-content:space-between;min-height:46px}
.receipt div+div{border-top:1px solid var(--line)}
.receipt span{color:var(--soft)}
.receipt b{font-weight:600}
.seg{flex:none;display:grid;grid-template-columns:repeat(4,1fr);padding:4px;border-radius:26px}
.seg button{height:44px;border-radius:22px;font-size:13px;text-align:center;color:var(--soft)}
.seg [aria-pressed=true]{background:var(--tint);color:var(--orbit);box-shadow:inset 0 0 0 1px var(--rim)}
.steps{display:grid;gap:8px}
.steps li{display:grid;grid-template-columns:28px 1fr auto;gap:12px;align-items:center;min-height:66px;padding:11px 14px}
.steps .n{width:28px;height:28px;border-radius:50%;box-shadow:inset 0 0 0 1px var(--rim);display:grid;place-items:center;font-size:13px;font-weight:600;color:var(--gold)}
.steps b{display:block;font-weight:600}
.steps p,.steps .mono{display:block;margin-top:2px;font-size:12px;color:var(--soft)}
.mini{height:44px;padding:0 16px;border-radius:22px;background:var(--tint);box-shadow:inset 0 0 0 1px var(--rim);color:var(--orbit);font-size:13px;font-weight:600}

/* nothing to show: no connection, opened outside Telegram, the hand-off page */
.fault{text-align:center;padding-bottom:max(20px,var(--tg-safe-area-inset-bottom,0px))}
.fault .title{margin:auto 0;gap:10px}
.fault .title p{font-size:14px;color:var(--soft)}
.fault .foot{margin-top:0}

.tab{flex:none;align-self:center;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(320px,calc(100% - 2*var(--pad)));height:60px;padding:5px;border-radius:30px;margin:12px 0 max(14px,var(--tg-safe-area-inset-bottom,0px))}
.tab button{border-radius:25px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--soft);font-size:11px;font-weight:600;line-height:1.15}
.tab [aria-current=page]{background:#ffffff16;color:var(--fg)}
