@font-face {
  font-family: Golos;
  src: url("type/GolosText.ttf") format("truetype");
  font-weight: 400 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f5f0e5;
  --chassis: #dad6c7;
  --well: #453b32;
  --display: #45372d;
  --ink: #342d24;
  --muted: #605647;
  --cream: #efe7d6;
  --sage: #dce2cc;
  --honey: #e9cba0;
  --slate: #d6d7ce;
  --forest: #355842;
  --orange: #ee9557;
  --travel: 5px;
  font: 16px/1.4 Golos, -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}
:root[data-edition="enamel"] {
  --chassis: #ddd1bc;
  --display: #46362d;
  --well: #4a3b32;
  --sage: #d5dfcc;
  --honey: #e7c7a6;
  --slate: #d6d6cc;
  --orange: #f1a06b;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0 auto;
  width: min(100%, 468px);
  --safe-top: calc(max(env(safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px)) + var(--tg-content-safe-area-inset-top, 0px));
  --safe-right: calc(max(env(safe-area-inset-right, 0px), var(--tg-safe-area-inset-right, 0px)) + var(--tg-content-safe-area-inset-right, 0px));
  --safe-bottom: calc(max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px)) + var(--tg-content-safe-area-inset-bottom, 0px));
  --safe-left: calc(max(env(safe-area-inset-left, 0px), var(--tg-safe-area-inset-left, 0px)) + var(--tg-content-safe-area-inset-left, 0px));
  --gutter: 14px;
  padding: max(4px, var(--safe-top)) max(var(--gutter), var(--safe-right))
    max(26px, var(--safe-bottom)) max(var(--gutter), var(--safe-left));
}
button, textarea, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { color: inherit; }
button:focus-visible, a:focus-visible {
  outline: 3px solid #995022;
  outline-offset: 3px;
  z-index: 1;
}
.mast { display: flex; min-height: 57px; align-items: center; justify-content: space-between; padding: 0 3px; }
#brand { display: flex; align-items: center; gap: 5px; padding: 0; min-height: 44px; color: #24543b; background: none; border: 0; cursor: pointer; }
#brand img { width: 36px; height: 36px; object-fit: contain; }
#brand span { font-size: 19px; font-weight: 720; letter-spacing: -.055em; }
#console {
  border-radius: 24px; padding: clamp(11px, 3.6vw, 18px); border: 1px solid #a9a28f;
  background: linear-gradient(147deg, #fff4, transparent 43%), var(--chassis);
  box-shadow: inset 0 2px 1px #fff9, inset 0 -3px 1px #7f705c40, 0 6px 12px #352a1918;
}
#console:focus { outline: none; }
#console > * + * { margin-top: 12px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(23px, 6vw, 30px); line-height: 1.12; font-weight: 670; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 15px; line-height: 1.25; font-weight: 650; letter-spacing: -.024em; }
#console > h2 { margin: 19px 3px 7px; }
#console > h2 + * { margin-top: 0; }
.display {
  padding: 17px 18px; border-radius: 13px;
  background: linear-gradient(115deg,#ffffff06,transparent 65%), var(--display);
  color: #fff3dc; box-shadow: inset 0 2px 4px #22190f80, 0 1px 0 #ffffffe0;
}
.display-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.display-top h1 { font-size: 14px; letter-spacing: -.015em; }
.due { font-size: clamp(25px, 6.7vw, 34px); font-weight: 620; letter-spacing: -.06em; line-height: 1.12; margin: 11px 0; }
.display-foot { border-top: 1px solid #f7e4c429; padding-top: 9px; color: #e7dac1; font-size: 13px; }
.lamp { display: inline-flex; gap: 7px; align-items: center; color: #cdebc0; font-size: 13px; font-weight: 580; }
.lamp::before { content: ''; width: 9px; height: 9px; flex: none; border-radius: 50%; background: #91db79; box-shadow: inset 0 1px 1px #e0ffce, 0 0 5px #9bec8026; }
.lamp.off { color: #e1d6c6; }
.lamp.off::before { background: #a3998a; box-shadow: none; }
.section-head { display: flex; align-items: center; gap: 13px; min-height: 87px; }
.section-head:is(.tint-documents, .tint-privacy) { flex-direction: column; align-items: flex-start; gap: 8px; }
.section-head:is(.tint-documents, .tint-privacy) h1 { overflow-wrap: break-word; }
.section-head p { padding-top: 6px; color: #e5d7c1; font-size: 14px; }
.section-head .badge { color: #f1d8ac; }
.key {
  --face: var(--cream); --legend: var(--ink);
  --side: #a39883;
  display: block; position: relative; min-width: 0; min-height: 46px; border: 0;
  border-radius: 10px; padding: 0 0 var(--travel); color: var(--legend);
  background: #44392f; box-shadow: 0 1px 2px #241b1666;
  cursor: pointer; text-align: left; text-decoration: none; user-select: none;
}
@supports (color: color-mix(in srgb, #eee 60%, #555)) {
  .key { --side: color-mix(in srgb, var(--face) 66%, #4f4033); }
}
.cap {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 42px; height: 100%; border-radius: inherit;
  padding: 10px 13px;
  background: linear-gradient(145deg, #ffffff17, transparent 60%), var(--face);
  box-shadow: inset 1px 1px 1px #ffffff94, inset -1px -1px 1px #30231729,
    0 var(--travel) 0 var(--side), 0 calc(var(--travel) + 1px) 2px #30231770;
  transition: transform 110ms cubic-bezier(.15,.7,.25,1), box-shadow 110ms, filter 110ms;
}
.key:is(:active, .down) .cap {
  transform: translateY(var(--travel)); filter: brightness(.94);
  box-shadow: inset 1px 2px 3px #31201228, inset 0 -1px 0 #fff4, 0 0 0 var(--side);
  transition-duration: 35ms;
}
[data-edition="engraved"] .with-icon svg image { filter: brightness(0) invert(.92); }
.key[disabled] { opacity: .6; cursor: wait; }
.key.primary { --face: var(--orange); --legend: #382719; }
.key.green, .key[aria-pressed="true"] { --face: var(--forest); --legend: #fff9e6; }
.key.danger { --face: #a34a34; --legend: #fff9ec; }
.tool, .tray { display: grid; gap: 7px; }
.tray { padding: 6px; border-radius: 14px; background: var(--well); box-shadow: inset 0 2px 3px #291e154d, 0 1px 0 #fffa; }
#console > .tool { margin-top: 14px; }
.tool h2 { padding: 0 2px 1px; }
.selector, .tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.selector .cap { justify-content: center; padding-inline: 5px; font-size: 14px; font-weight: 620; }
.legend { display: grid; gap: 3px; min-width: 0; flex: 1; }
.title { font-size: 15px; font-weight: 640; letter-spacing: -.027em; line-height: 1.22; overflow-wrap: anywhere; }
.detail { color: #5b5144; font-size: 13px; font-weight: 450; line-height: 1.35; }
.key.primary .title { font-size: 16px; }
.glyph { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; }
.glyph svg, .badge svg { display: block; width: 100%; height: 100%; }
.glyph.tail { width: 17px; height: 17px; }
.tray .badge, .section-head .badge { display: grid; place-items: center; flex: none; }
.badge { width: 39px; height: 39px; color: #314238; }
.tint-subscription, .tint-devices { --face: var(--sage); --medal: #35573e; }
.tint-referral, .tint-bonus, .tint-plans { --face: var(--honey); --medal: #784b32; }
.tint-support, .tint-guide { --face: var(--cream); --medal: #4e5e60; }
.tint-documents, .tint-privacy, .tint-terms { --face: var(--slate); --medal: #584e57; }
.tile .cap {
  position: relative; min-height: 106px; flex-flow: column; align-items: flex-start;
  justify-content: space-between; gap: 11px; padding: 12px 13px 10px;
}
.tile .legend { flex: initial; }
.tile .title { max-width: 14ch; }
[data-edition="engraved"] .badge svg { filter: drop-shadow(0 1px 0 #fff7); }
[data-edition="engraved"] .section-head .badge svg { filter: none; }
[data-edition="engraved"] .tile .cap::after {
  content: ''; position: absolute; top: 16px; right: 12px; height: 5px; width: 17px;
  background: repeating-linear-gradient(110deg, transparent 0 3px, #44392f42 3px 4px, #fff7 4px 5px);
}
[data-edition="enamel"] .badge {
  --diam: 43px;
  width: var(--diam); height: var(--diam); border-radius: 50%; padding: 8px;
  color: #fff4dc; background: linear-gradient(145deg,#fff3, transparent 56%, #21160e22), var(--medal, #476047);
  box-shadow: inset 1px 1px 1px #fff8, inset -1px -2px 2px #241b2055, 0 1px 1px #fffa;
}
[data-edition="enamel"] .tile .cap { min-height: 106px; }
[data-edition="enamel"] .section-head .badge { --diam: 47px; }
.row .cap { min-height: 58px; }
.row .badge { width: 29px; height: 29px; }
[data-edition="enamel"] .row .badge { --diam: 33px; width: var(--diam); height: var(--diam); padding: 6px; }
#nav .key, #console .compact-tariff-key { --travel: 3px; box-shadow: none; }
[data-edition="engraved"] #nav .key, [data-edition="engraved"] #console .compact-tariff-key {
  --travel: 5px;
  --side: #ded5c3;
  background: transparent;
}
[data-edition="engraved"] #nav .key:not(:active, .down) .cap,
[data-edition="engraved"] #console .compact-tariff-key:not(:active, .down) .cap {
  box-shadow: inset 0 1px 1px #fffa, 0 var(--travel) 0 var(--side);
}
#nav .cap, #console .compact-tariff-key .cap { padding: 7px 10px; min-height: 41px; gap: 4px; }
#nav .title, #console .compact-tariff-key .title { font-size: 13px; }
#nav .glyph { width: 17px; height: 17px; }
.readout, .sheet {
  background: #f2ecdd; color: var(--ink); border-radius: 11px;
  box-shadow: inset 0 1px 2px #5a483747, 0 1px 0 #fff9; padding: 4px 15px;
}
.readout > div { display: flex; justify-content: space-between; align-items: baseline; gap: 11px; padding: 11px 0; }
.readout > div + div, .sheet > section + section { border-top: 1px solid #cfc6b4; }
.readout dt { color: var(--muted); font-size: 14px; }
.readout dd { text-align: right; font-weight: 650; }
.sheet { padding: 3px 16px; }
.sheet section { padding: 14px 0; }
.sheet h2, .sheet h3 { font-size: 15px; font-weight: 660; letter-spacing: -.025em; }
.sheet p { margin-top: 4px; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.sheet .question { white-space: pre-wrap; }
.hint { color: #534b40; font-size: 14px; margin-inline: 3px; }
form { display: grid; gap: 8px; }
label { font-size: 14px; font-weight: 600; }
textarea {
  min-height: 102px; width: 100%; resize: vertical; padding: 12px; border-radius: 9px;
  background: #faf6ea; color: var(--ink); border: 1px solid #b2a796; box-shadow: inset 0 2px 4px #372a2124;
}
#notice:not(:empty) {
  position: fixed; bottom: max(18px, var(--safe-bottom)); left: 50%; transform: translateX(-50%);
  z-index: 2; width: max-content; max-width: min(90%, 420px); padding: 10px 15px; border-radius: 10px;
  font-size: 14px; color: white; background: #294d37; box-shadow: 0 3px 8px #0003; pointer-events: none;
}
@media (max-width: 350px) {
  body { --gutter: 9px; }
  #console { padding: 10px; }
  .tile .cap { padding-inline: 9px; }
  .title { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .cap { transition: none; }
  .key:is(:active, .down) .cap { transform: none; filter: brightness(.85); transition: none; }
}
.demo-label { margin: 0 auto 0 9px; color: #685d4d; font-size: 11px; }
.copy-field { margin-top: 8px; min-height: 65px; }
#console .key { width: 100%; }
#console .compact-tariff-key { width: max-content; max-width: 62%; }
.telegram-login .title { white-space: pre-line; }
.selector .legend { text-align: center; }
.tiles { grid-auto-rows: 1fr; }
.with-icon { display: flex; align-items: center; gap: 8px; }
.with-icon .badge { display: grid; place-items: center; width: 27px; height: 27px; color: #f1d8ac; }
[data-edition="enamel"] .with-icon .badge { --diam: 29px; padding: 5px; }
.editions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0 16px; }
.editions a { display: inline-flex; align-items: center; min-height: 44px; color: #685c4d; font-size: 13px; text-decoration: none; }
.editions a[aria-current] { color: #31523d; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }

.owner-content { display: grid; gap: 12px; }
.owner-content [hidden] { display: none; }
.owner-content .readout dd { overflow-wrap: anywhere; min-width: 0; }

.tariff-panel { border-radius: 12px; background: #f5eedb; padding: 10px 12px; color: var(--ink); }
.tariff-panel h2 { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.tariff-link { border: 0; background: transparent; padding: 0; cursor: pointer; text-decoration: underline; display: inline-flex; align-items: center; min-height: 44px; margin-block: -6px; color: #355842; font-size: 13px; }
.tariff-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.tariff-item { padding-block: 7px; border-top: 1px solid #c9bea5; }
.tariff-item dt { font-size: 13px; }
.tariff-prices { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.tariff-prices del { font-size: 13px; color: #625848; text-decoration-thickness: 1.5px; }
.tariff-prices strong { font-size: 18px; letter-spacing: -.045em; }
.tariff-prices > * { white-space: nowrap; }

.tariff-option .cap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 7px; min-height: 55px; }
.tariff-option:has(del) { --face: var(--sage); }
.tariff-option[aria-pressed="true"] { --face: var(--forest); }
.tariff-option[aria-pressed="true"] del { color: #e6f4df; }
.tariff-selection { font-size: 14px; }
.tariff-selection:empty { display: none; }

textarea:focus { outline: none; }
