@import url('https://fonts.googleapis.com/css2?family=Unbounded&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  height: 100vh;
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: "Unbounded", sans-serif;
  font-optical-sizing: auto;
  font-size: clamp(0.9rem, 1.2vw, 1.3rem);
  background-color: #fdf6e3;
  color: #2c2c2c;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2vh 2vw;
}

h1 {
  font-weight: bold;
  font-size: clamp(2rem, 4vw, 3.5rem);
  text-align: center;
  margin-top: 0;
  margin-bottom: 3vh;
}

h2 {
  font-weight: bold;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin: 2rem 0 1rem 0;
}

.grid_arr,
.grid_others {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(22rem, 1fr));
  grid-gap: 1.5em;
  padding: 1.5em;
  border-radius: 1.25em;
  margin-bottom: 0;
}

.grid_arr {
  background-color: rgba(0, 0, 128, 0.5);
}

.grid_others {
  background-color: transparent;
  border: 0.15em solid rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 85vw;
  max-height: 75vh;
}

.panel {
  background-color: rgba(0, 0, 0, 0.05);
  display: grid;
  grid-template-columns: auto 1fr;
  grid-gap: 1.5em;
  padding: 1.2em;
  border-radius: 1.25em;
  min-width: 0;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0.1em solid transparent;
}

.panel.status-red {
  background-color: rgba(220, 53, 69, 0.25);
  border-color: rgba(220, 53, 69, 0.4);
}

.panel.status-yellow {
  background-color: rgba(255, 193, 7, 0.25);
  border-color: rgba(255, 193, 7, 0.4);
}

.panel.status-green {
  background-color: rgba(40, 167, 69, 0.25);
  border-color: rgba(40, 167, 69, 0.4);
}

.panel:hover {
  transform: translateY(-0.2em);
  box-shadow: 0 0.3em 1em rgba(0, 0, 0, 0.1);
}

.panel-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  cursor: pointer;
}

.right {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.left {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.1em;
  padding: 1em;
  background: rgba(255, 255, 255, 0.7);
  flex-shrink: 0;
}

.panel img {
  width: 6rem;
  height: 6rem;
  object-fit: contain;
}

.title {
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: bold;
  margin-bottom: 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.description {
  font-size: clamp(0.8rem, 1vw, 1rem);
  opacity: 0.8;
  margin-top: 0.5rem;
}

/* Адаптив для узких экранов */
@media (max-width: 768px) {
  h1 { font-size: 1.8rem; }
  .grid_others {
    grid-template-columns: 1fr;
    overflow-y: auto;
    max-height: 80vh;
  }
  .panel {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .title {
    white-space: normal;
  }
}
