@font-face {
  font-family: "e-Ukraine";
  src: url("assets/fonts/e-Ukraine-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "e-Ukraine";
  src: url("assets/fonts/e-Ukraine-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #dfdeca;
  --card: #d4d3bc;
  --card-stroke: #959483;
  --muted: #55544b;
  --line: #6b4b1a;
  --fab: #ff8100;
  --btn: #fafcfc;
  --paper: #fff;
  --ink: #000;
  --radius: 8px;
  --screen-w: 390px;
  --screen-h: 844px;
  --tab-select: rgba(217, 217, 208, 0.7);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

html {
  color-scheme: only light;
  background: var(--bg);
  touch-action: pan-y;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  height: 100%;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html,
body {
  min-height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  min-height: -webkit-fill-available;
  overscroll-behavior: none;
}

body {
  font-family: "e-Ukraine", system-ui, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  touch-action: pan-y;
  min-height: 100%;
}

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
}

ul {
  list-style: none;
}

.stage {
  min-height: 100dvh;
  min-height: -webkit-fill-available;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: #2c2b24;
}

.phone {
  width: fit-content;
  filter: drop-shadow(0 28px 50px rgba(20, 16, 12, 0.35));
}

.phone-bezel {
  border-radius: 54px;
  padding: 10px;
  background: #1c1c1e;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.screen {
  position: relative;
  isolation: isolate;
  width: var(--screen-w);
  height: var(--screen-h);
  background: var(--bg);
  border-radius: 44px;
  overflow: hidden;
}

.home-bar {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.page-title {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.12;
}

.btn-grey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 32px;
  padding: 8px 12px;
  border-radius: 1000px;
  background: var(--btn);
  overflow: hidden;
}

.btn-grey span:first-child {
  font-size: 13px;
  line-height: normal;
  white-space: nowrap;
}

.btn-grey-icon,
.herb,
.fab-icon,
.icon-services {
  overflow: hidden;
  flex-shrink: 0;
}

.btn-grey-icon {
  width: 16px;
  height: 16px;
}

.btn-grey-icon img,
.herb img,
.fab-icon img,
.icon-services img {
  width: 100%;
  height: 100%;
}

.page {
  position: absolute;
  inset: 0;
  overflow: auto;
  padding: 72px 24px 120px;
  overscroll-behavior: contain;
}

.page[hidden] {
  display: none;
}

.page-home {
  display: flex;
  flex-direction: column;
  gap: 72px;
  padding: 24px 24px 155px;
  overflow: auto;
}

.card-scene {
  width: 100%;
  height: 514px;
  perspective: 1400px;
  cursor: pointer;
  outline: none;
}

.card-scene:focus-visible {
  box-shadow: 0 0 0 3px rgba(107, 75, 26, 0.35);
  border-radius: var(--radius);
}

.card-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  will-change: transform;
}

.card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.card-back {
  transform: rotateY(180deg);
}

.card.card-back {
  justify-content: center;
  align-items: center;
  gap: 24px;
  background: #fafcfb;
}

.card-shade {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: #1a140c;
  opacity: 0;
}

.card {
  width: 100%;
  height: 514px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--card-stroke);
  border-radius: var(--radius);
  overflow: hidden;
}

.card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 24px 16px 0;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.card-title h1 {
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.63px;
  line-height: normal;
  white-space: nowrap;
}

.herb {
  width: 31px;
  height: 36px;
}

.card-main {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.photo {
  position: relative;
  width: 156px;
  height: 208px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.photo img {
  position: absolute;
  top: -119.29%;
  left: -25.64%;
  width: 250%;
  height: 407.07%;
  max-width: none;
}

.meta {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  max-width: 136px;
}

.meta-row {
  display: flex;
  flex-direction: column;
  gap: 9px;
  width: 100%;
}

.meta dt {
  font-size: 14px;
  line-height: normal;
  color: var(--muted);
}

.meta dd {
  font-size: 16px;
  line-height: normal;
}

.card-bottom {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
}

.moving-line {
  width: 100%;
  height: 24px;
  overflow: hidden;
  background: var(--line);
  transform: translateZ(0);
}

.moving-line-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  color: #fff;
  font-size: 14px;
  line-height: 24px;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  animation: ticker 8s linear infinite;
}

.moving-line-track span {
  flex: none;
  padding-right: 16px;
}

@keyframes ticker {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .moving-line-track {
    animation: none;
  }
}

.card-foot {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  width: 100%;
  height: 117px;
  padding: 0 16px 16px;
}

.identity {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

.identity-role {
  font-size: 14px;
  line-height: normal;
  color: var(--muted);
}

.identity-name {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.2;
}

.qr-note {
  font-size: 12px;
  line-height: normal;
  letter-spacing: 0.24px;
  text-align: center;
  white-space: nowrap;
  color: #000;
}

.qr {
  width: 302px;
  height: 306px;
  max-width: 100%;
  flex-shrink: 0;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fab {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 1000px;
  background: var(--fab);
  overflow: hidden;
  flex-shrink: 0;
}

.fab-icon {
  width: 24px;
  height: 24px;
}

.plain-list {
  margin-top: 20px;
}

.plain-list li + li {
  border-top: 0.5px solid rgba(0, 0, 0, 0.16);
}

.plain-list button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 17px;
  text-align: left;
}

.plain-list button::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 12px;
  border-right: 1.6px solid #8e8e8e;
  border-top: 1.6px solid #8e8e8e;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.jobs-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.jobs-head .page-title {
  font-size: 28px;
}

.search-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.search-glyph {
  width: 16px;
  height: 16px;
  border: 1.8px solid #000;
  border-radius: 50%;
  position: relative;
}

.search-glyph::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -5px;
  width: 7px;
  height: 1.8px;
  background: #000;
  transform: rotate(45deg);
  transform-origin: left center;
  border-radius: 1px;
}

.chips {
  display: flex;
  gap: 18px;
  overflow: auto;
  margin: 18px 0 16px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  padding: 0 0 8px;
  font-size: 16px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.chip.is-on {
  color: var(--ink);
  font-weight: 700;
  border-bottom-color: var(--ink);
}

.chip-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--fab);
  vertical-align: middle;
}

.jobs-card {
  background: var(--paper);
  border-radius: 24px;
  padding: 22px 16px 16px;
  text-align: center;
}

.jobs-card h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 18px;
}

.jobs-units {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.jobs-cta {
  width: 100%;
  height: 52px;
  border-radius: 999px;
  background: var(--fab);
  font-size: 16px;
  font-weight: 400;
}

.version {
  margin: 6px 0 22px;
  font-size: 15px;
  color: var(--muted);
}

.sheet {
  background: var(--paper);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 12px;
}

.sheet button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  font-size: 17px;
  text-align: left;
}

.sheet button:not(:last-child) {
  border-bottom: 0.5px solid rgba(0, 0, 0, 0.1);
}

.sheet button:not(.no-chevron)::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 1.6px solid #8e8e8e;
  border-top: 1.6px solid #8e8e8e;
  transform: rotate(45deg);
  flex-shrink: 0;
}

.logout {
  display: block;
  width: 100%;
  height: 52px;
  margin-top: 20px;
  border-radius: 999px;
  background: #2a271f;
  color: #fff;
  font-size: 17px;
}

.privacy {
  display: block;
  margin: 16px 8px 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mi {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  position: relative;
}

.mi-phone {
  border: 1.6px solid #000;
  border-radius: 5px;
}

.mi-phone::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 2px;
  border-radius: 1px;
  background: #000;
}

.mi-gear {
  border: 1.6px solid #000;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.2px #000;
  margin: 3px;
  width: 18px;
  height: 18px;
}

.mi-faq {
  border: 1.6px solid #000;
  border-radius: 50% 50% 50% 4px;
}

.mi-faq::after {
  content: "?";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}

.mi-support {
  border: 1.6px solid #000;
  border-radius: 6px 6px 2px 6px;
}

.mi-copy {
  border: 1.6px solid #000;
  border-radius: 3px;
  width: 16px;
  height: 16px;
  top: 2px;
  left: 4px;
  box-shadow: -3px -3px 0 -1.2px #fff, -3px -3px 0 0 #000;
}

.mi-scan {
  border: 1.6px solid #000;
  border-radius: 3px;
}

.mi-scan::before,
.mi-scan::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1.6px solid #000;
}

.mi-scan::before {
  top: 2px;
  left: 2px;
  border-right: 0;
  border-bottom: 0;
}

.mi-scan::after {
  right: 2px;
  bottom: 2px;
  border-left: 0;
  border-top: 0;
}

.tabbar {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: auto;
  padding: 16px 25px 25px;
  overflow: visible;
  pointer-events: none;
}

.tabbar-inner {
  position: relative;
  display: flex;
  flex: 1 0 0;
  align-items: stretch;
  justify-content: center;
  min-width: 0;
  height: 50px;
  padding: 0 2px;
  pointer-events: auto;
}

.tabbar-inner::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 296px;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.16), 0 -6px 18px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.tabbar-bg {
  position: absolute;
  inset: -4px;
  border-radius: 296px;
  overflow: hidden;
  pointer-events: none;
  border: 1px solid #fff;
}

.tabbar-fill,
.tabbar-burn,
.tabbar-darken {
  position: absolute;
  inset: 0;
  border-radius: 296px;
}

.tabbar-fill {
  background: rgba(247, 247, 233, 0.82);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.tabbar-burn {
  background: #ddd;
  mix-blend-mode: color-burn;
}

.tabbar-darken {
  background: #f7f7f7;
  mix-blend-mode: darken;
}

.tab {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  margin-right: -8px;
  padding: 6px 8px;
  align-self: stretch;
}

.tab:last-child {
  margin-right: 0;
}

.tab-selection {
  display: none;
  position: absolute;
  inset: 0 -2px;
  border-radius: 100px;
  background: var(--tab-select);
  opacity: 0.7;
}

.tab.is-active .tab-selection {
  display: block;
}

.tab-label {
  position: relative;
  z-index: 1;
  width: 100%;
  font-size: 10px;
  font-weight: 400;
  line-height: 10px;
  letter-spacing: 0.5px;
  text-align: center;
  white-space: nowrap;
}

.tab.is-active .tab-label {
  font-weight: 700;
}

.icon-id,
.icon-job,
.icon-menu,
.icon-services {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.icon-id {
  width: 20px;
  height: 24px;
  overflow: hidden;
  border-radius: 2px;
  background: #181806;
}

.icon-id span {
  position: absolute;
  left: 2px;
  width: 16px;
  height: 2.5px;
  background: #fff;
}

.icon-id span:first-child {
  top: 12px;
}

.icon-id span:last-child {
  top: 17px;
}

.icon-services {
  width: 24px;
  height: 24px;
}

.icon-job {
  width: 20px;
  height: 24px;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 2px;
}

.icon-job i {
  position: absolute;
  left: 0.95px;
  top: 2.95px;
  width: 10px;
  height: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-job i::after {
  content: "";
  width: 7.071px;
  height: 7.071px;
  border-radius: 1px;
  background: #000;
  transform: rotate(45deg);
}

.icon-menu {
  width: 20px;
  height: 24px;
  overflow: hidden;
  border-radius: 2px;
}

.icon-menu span {
  position: absolute;
  left: 0;
  width: 20px;
  height: 2.5px;
  background: #000;
}

.icon-menu span:nth-child(1) {
  top: 4px;
}

.icon-menu span:nth-child(2) {
  top: 11px;
}

.icon-menu span:nth-child(3) {
  top: 18px;
}

.fab:active,
.btn-grey:active,
.tab:active,
.plain-list button:active,
.sheet button:active,
.jobs-cta:active,
.logout:active {
  transform: scale(0.98);
}

@media (prefers-reduced-motion: reduce) {
  .moving-line-track {
    animation: none;
    transform: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .tabbar-fill {
    background: rgba(250, 250, 247, 0.96);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .tabbar-burn,
  .tabbar-darken {
    display: none;
  }
}

html.is-welcome {
  background: #22211e;
}

.lock {
  position: fixed;
  inset: 0;
  z-index: 2147483645;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 136px 24px 24px;
  padding-top: calc(136px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  background: var(--bg);
  overflow: auto;
}

html.is-locked .lock {
  display: flex;
}

html.is-locked .tabbar {
  display: none;
}

.lock-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 62px;
  height: 593px;
  max-height: 100%;
}

.lock-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 67px;
}

.lock-title {
  width: 258px;
  font-size: 27px;
  line-height: normal;
  letter-spacing: 0.54px;
  text-align: center;
  color: #000;
}

.dots {
  display: flex;
  align-items: center;
  gap: 24px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 1000px;
  background: #fff;
}

.dot.is-on {
  background: #000;
}

.lock-bottom {
  display: flex;
  flex-direction: column;
  gap: 62px;
}

.pad {
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-auto-rows: 68px;
  column-gap: 24px;
  row-gap: 16px;
  width: 258px;
}

.key {
  width: 68px;
  height: 68px;
  border-radius: 41px;
  background: #fff;
  font-size: 30px;
  line-height: normal;
  letter-spacing: 0.6px;
  text-align: center;
  color: #000;
  overflow: hidden;
}

.key.is-down {
  background: #000;
  color: #fff;
}

.erase {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
}

.erase-icon {
  position: relative;
  display: block;
  width: 40px;
  height: 30px;
  background: #fff;
  -webkit-mask: url("assets/erase-bg.svg") no-repeat right center / 37.88px 30px;
  mask: url("assets/erase-bg.svg") no-repeat right center / 37.88px 30px;
}

.erase-x {
  position: absolute;
  left: 15px;
  top: 5px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  background: #000;
  -webkit-mask: url("assets/erase-x.svg") no-repeat center / contain;
  mask: url("assets/erase-x.svg") no-repeat center / contain;
}

.erase.is-down .erase-icon {
  background: #000;
}

.erase.is-down .erase-x {
  background: #fff;
}

.lock-hint {
  width: 258px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  color: #000;
}

.lock.is-wrong .dots {
  animation: shake 0.4s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-5px);
  }
  80% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lock.is-wrong .dots {
    animation: none;
  }
}

.welcome {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #22211e;
}

.welcome-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 17px;
}

.welcome-herb {
  display: block;
  width: 39px;
  height: 46px;
  overflow: visible;
  flex-shrink: 0;
}

.welcome-herb img {
  width: 100%;
  height: 100%;
}

.welcome-copy {
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  text-align: center;
  color: #e1dfcc;
}

.welcome.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .welcome.is-done {
    transition: none;
  }
}

.privacy-veil {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(223, 222, 202, 0.62);
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
}

html.is-privacy .privacy-veil {
  opacity: 1;
  pointer-events: auto;
}

html.is-privacy .stage {
  filter: blur(22px);
}

@media (prefers-reduced-transparency: reduce) {
  html.is-privacy .stage {
    filter: none;
  }

  .privacy-veil {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (max-width: 900px), (display-mode: standalone), (display-mode: fullscreen) {
  html,
  body,
  .stage,
  .phone,
  .phone-bezel,
  .screen {
    background: var(--bg);
    overflow: visible;
  }

  html,
  body {
    height: 100%;
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: var(--app-h, 100lvh);
  }

  .stage {
    display: block;
    padding: 0;
    height: var(--app-h, 100%);
    min-height: 100%;
    min-height: -webkit-fill-available;
    min-height: var(--app-h, 100lvh);
  }

  .phone {
    width: 100%;
    height: 100%;
    min-height: inherit;
    filter: unset;
  }

  .phone-bezel {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    height: 100%;
    min-height: inherit;
  }

  .screen {
    width: 100%;
    height: 100%;
    min-height: inherit;
    border-radius: 0;
    isolation: auto;
  }

  .page {
    padding-top: calc(72px + env(safe-area-inset-top, 0px));
  }

  .page-home {
    padding-top: calc(24px + env(safe-area-inset-top, 0px));
  }

  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: auto;
    padding: 8px 16px max(8px, var(--safe-bottom));
    overflow: visible;
  }
}
