.clean-vertical {
  padding: 40px 0;
}
.section-subtitle {
  color: #64748b;
  font-size: 15px;
  line-height: 1.5;
}

/* =========================
   БАННЕР ИЗБРАННОГО
   ========================= */
.featured-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.08);
  margin-bottom: 48px;
  display: flex;
  flex-wrap: wrap;
  background: #ffffff;
}

@media (min-width: 900px) { .featured-banner { flex-direction: row; } }
@media (max-width: 899px) { .featured-banner { flex-direction: column; } }

.banner-media-wrapper {
  flex: 1 1 420px;
  position: relative;
  min-height: 320px;
  overflow: hidden;
}

.media-item {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 40px;
  font-weight: 700;
  background: #e2e8f0;
}

.banner-content {
  flex: 1 1 360px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  background-color: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.banner-title {
  margin: 0 0 14px 0;
  font-size: 30px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.banner-desc {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: #475569;
  line-height: 1.5;
  flex: 1;
}

/* =========================
   СЕТКА И КАРТОЧКИ
   ========================= */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.proj-card {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 16px;
  background: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  transition: box-shadow 0.3s ease;
}

.proj-card:hover {
  box-shadow: 0 16px 36px rgba(0,0,0,0.12);
}

.proj-media-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.proj-video,
.proj-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.proj-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 32px;
  font-weight: 700;
  background: #e2e8f0;
}

/* Нижняя панель */
.proj-bottom-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255,255,255,0.4);
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Заголовок: двигается при hover */
.proj-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
  transform: translateY(0);
  transition: transform 0.4s cubic-bezier(0.25,1,0.5,1);
}

/* Скрытый блок: описание + кнопка */
.proj-hidden-content {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* При наведении: двигаем заголовок, показываем описание и кнопку */
.proj-card:hover .proj-title {
  transform: translateY(-12px);
}

.proj-card:hover .proj-hidden-content {
  opacity: 1;
  visibility: visible;
}

.proj-desc {
  margin: 0;
  font-size: 14px;
  color: #475569;
  line-height: 1.4;
}

.btn-primary {
  display: inline-block;
  padding: 8px 16px;
  background-color: #2563eb;
  color: #ffffff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

.btn-primary:hover {
  background-color: #1d4088;
}

.no-projects {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  padding: 40px;
}
