.ram-home-telegram {
  position: fixed;
  z-index: 220;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  direction: rtl;
  color: #fff;
  font-family: inherit;
}

.ram-home-telegram-toggle {
  display: grid;
  place-items: center;
  min-width: 3rem;
  height: 5.4rem;
  padding: .65rem .55rem;
  border: 0;
  border-radius: 0 1.05rem 1.05rem 0;
  background: #080808;
  color: #fff;
  box-shadow: 0 .9rem 2.5rem rgba(0,0,0,.42);
  cursor: pointer;
}

.ram-home-telegram-toggle span {
  font-size: .68rem;
  font-weight: 700;
  line-height: 1;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.ram-home-telegram-card {
  position: absolute;
  left: 3.65rem;
  top: 50%;
  width: min(17rem, calc(100vw - 5rem));
  box-sizing: border-box;
  padding: 1.1rem;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 1.25rem;
  background: rgba(8,8,8,.96);
  box-shadow: 0 1.5rem 4rem rgba(0,0,0,.5);
  transform: translateY(-50%);
}

.ram-home-telegram-card[hidden] { display: none !important; }
.ram-home-telegram-card small,
.ram-home-telegram-card strong,
.ram-home-telegram-card span { display: block; }
.ram-home-telegram-card small { color: rgba(255,255,255,.48); font: 700 .5rem Arial,sans-serif; letter-spacing: .18em; direction: ltr; text-align: right; }
.ram-home-telegram-card strong { margin: .55rem 0 .35rem; font-size: 1rem; }
.ram-home-telegram-card span { color: rgba(255,255,255,.62); font-size: .7rem; line-height: 1.8; }
.ram-home-telegram-card a { display: block; margin-top: .8rem; padding: .72rem .85rem; border-radius: 999px; background: #fff; color: #080808; text-align: center; text-decoration: none; font-size: .72rem; font-weight: 700; }
.ram-home-telegram-close { position: absolute; top: .45rem; left: .45rem; width: 1.9rem; height: 1.9rem; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }

@media (max-width: 640px) {
  .ram-home-telegram {
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }
  .ram-home-telegram-toggle {
    min-width: 2.75rem;
    height: 4.85rem;
    border-radius: 0 .95rem .95rem 0;
  }
  .ram-home-telegram-card {
    top: 50%;
    bottom: auto;
    left: 3.35rem;
    transform: translateY(-50%);
  }
}
