/* Grid и карточки */
.totweb-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  padding: 20px;
}

.slot-card {
  position: relative;
  background: #1b1b1b;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  color: #fff;
  transition: transform 0.3s;
}
.slot-card:hover {
  transform: translateY(-4px);
}
.slot-card img {
  width: 100%;
  height: auto;
  display: block;
}
.slot-info {
  padding: 0px 12px 12px 12px;
  transition: opacity 0.3s;
}
.slot-info h3 {
  margin: 0px 0 5px;
}
.slot-info p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Hover-кнопки */
.slot-buttons {
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.slot-card:hover .slot-buttons {
  opacity: 1;
  pointer-events: auto;
}
.slot-buttons .btn {
  padding: 6px 12px;
  border-radius: 6px;
  background: #ffcf3d;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s;
}
.slot-buttons .btn:hover {
  background: #ffb800;
}

/* Модалка */
.totweb-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
}
.totweb-modal-content {
	background: rgb(255 255 255);
    color: #000;
    padding: 10px;
    border-radius: 10px;
    max-width: 60%;
    width: 90%;
    position: relative;
}
.totweb-modal-close {
  position: absolute;
  top: 10px; right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}
