.x-box {
  padding: 0.8rem;
}

.m-box {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 4.5rem 4rem;
  height: 18rem;
  background: url(https://data.svdu.cz/img/hexagon-mini.svg);
  padding: 0.5rem;
  border-radius: 0.3rem;
}
.m-box div {
  background-color: transparent;
}

.b-1 {
  display: grid;
  grid-area: 1 / 1 / 2 / 2;
  justify-content: end;
}
.b-2 {
  display: grid;
  grid-area: 2 / 1 / 3 / 2;
}
.b-3 {
  grid-area: 3 / 1 / 4 / 2;
  font-size: 0.9rem;
}
.btn-copy {
  justify-self: start;
  grid-row: 1/1;
}
.m-3 {
  justify-self: end;
  grid-row: 1/-1;
}

.m-box > div > div {
  display: inline-block;
  width: 4rem;
  aspect-ratio: 1 / 1;
  background-color: #ffffff12;
}

.m-1 {
  display: grid !important;
  border: 0px !important;
  justify-items: end;
  background-color: transparent !important;
}

/* Кнопка Close*/
.btn-close {
  width: 3.3rem;
  aspect-ratio: 1/1;
  background: url(https://data.svdu.cz/svg/close.svg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-color: #ffffff40 !important;
  border-radius: 50%;
  background-size: 1rem;
  border: 0px;
  cursor: pointer;
}

.w-790 {
  width: 790px;
}

.w-320 {
  width: 320px;
}

.con-box {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr;
  gap: 0px 0px;
  grid-template-areas: "left right";
}
.left {
  grid-area: left;
}
.right {
  grid-area: right;
}

/*  если больше чем  */
@media only screen and (min-width: 800px) {
  .btn-close {
    width: 2.3rem;
  }
}

.off {
  display: none;
}
