html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

* {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8fa;
  color: #161a26;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

button {
  font: inherit;
}

.page-shell {
  min-height: 100vh;
  min-height: 100svh;
}

.desktop-view,
.mobile-view {
  display: none;
}

.desktop-view {
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  background: #f7f8fa;
  position: relative;
}

.desktop-card {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: 390px;
  min-height: 234px;
  margin-top: 21px;
  padding: 46px 40px 42px;
  border: 1px solid #eceef3;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}

.phone-glyph {
  width: 14px;
  height: 20px;
  margin: 0 auto 19px;
  border: 2px solid #6268ff;
  border-radius: 3px;
  position: relative;
}

.phone-glyph:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 2px;
  height: 2px;
  margin-left: -1px;
  border-radius: 50%;
  background: #6268ff;
}

.desktop-card h1 {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.13;
  letter-spacing: 0;
}

.desktop-card p {
  margin: 18px 0 0;
  color: #737987;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.mobile-view {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  max-width: 100%;
  background: #f7f8fa;
  position: relative;
  overflow: hidden;
}

.invite-wrap {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 220px 27px 0;
}

.invite-card {
  width: 100%;
  height: 214px;
  padding: 35px 20px 39px;
  border-radius: 17px;
  background: #fff;
  -webkit-box-shadow: 0 16px 40px rgba(21, 25, 35, 0.055);
  box-shadow: 0 16px 40px rgba(21, 25, 35, 0.055);
  text-align: center;
  overflow: hidden;
}

.avatar-wrap {
  display: block;
  width: 42px;
  height: 42px;
  margin: 0 auto 7px;
  position: relative;
}

.avatar {
  display: block;
  width: 42px;
  height: 42px;
  border: 1px solid #e2e4ea;
  border-radius: 50%;
  -o-object-fit: cover;
  object-fit: cover;
}

.status-icon {
  display: none;
  width: 42px;
  height: 42px;
  fill: none;
  stroke: #ff4b2f;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-icon-check {
  display: none;
}

.avatar-wrap.is-success .status-icon {
  stroke: #22b86f;
}

.avatar-wrap.is-success .status-icon-alert {
  display: none;
}

.avatar-wrap.is-success .status-icon-check {
  display: block;
}

.avatar-wrap.is-status .avatar,
.avatar-wrap.is-status .app-mark {
  display: none;
}

.avatar-wrap.is-status .status-icon {
  display: block;
}

.app-mark {
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border: 1px solid #e2e4ea;
  border-radius: 50%;
  background: #fff;
  -webkit-box-shadow: 0 1px 4px rgba(21, 25, 35, 0.18);
  box-shadow: 0 1px 4px rgba(21, 25, 35, 0.18);
}

.app-mark svg {
  display: block;
  width: 11px;
  height: 11px;
  margin: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  fill: #5b5cff;
}

.invite-card h1 {
  margin: 0;
  color: #151923;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.invite-card p {
  margin: 19px 0 0;
  color: #777b84;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.button-row {
  display: flex;
  gap: 10px;
  margin-top: 33px;
}

.download-button {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 9px;
  background: #e7131a;
  box-shadow: 0 10px 18px rgba(231, 19, 26, 0.22);
  color: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  line-height: 48px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-transition: background-color 160ms ease, box-shadow 160ms ease, -webkit-transform 160ms ease;
  transition: background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.download-button:hover,
.download-button:focus {
  background: #d80f16;
}

.download-button[hidden] {
  display: none;
}

.universal-test-button {
  background: #292d34;
  box-shadow: 0 10px 18px rgba(41, 45, 52, 0.18);
}

.universal-test-button:hover,
.universal-test-button:focus {
  background: #1f2329;
}

.universal-test-button:active,
.universal-test-button.is-opening {
  background: #12161c;
  box-shadow: 0 4px 8px rgba(18, 22, 28, 0.18);
}

.download-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.download-button:active,
.download-button.is-opening {
  background: #b90f15;
  box-shadow: 0 4px 8px rgba(185, 15, 21, 0.2);
  -webkit-transform: translateY(1px) scale(0.985);
  transform: translateY(1px) scale(0.985);
}

.download-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  vertical-align: -3px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 769px) {
  .desktop-view {
    display: block;
  }
}

@media (max-width: 768px) {
  body {
    background: #f7f8fa;
  }

  .mobile-view {
    display: block;
  }
}

@media (max-width: 380px) {
  .button-row {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .invite-wrap {
    padding-left: 27px;
    padding-right: 27px;
  }
}

@media (max-width: 320px) {
  .invite-wrap {
    padding-left: 27px;
    padding-right: 27px;
  }

  .invite-card h1 {
    font-size: 15px;
  }

  .invite-card p,
  .download-button {
    font-size: 12px;
  }
}
