﻿@import url("global.css");

.hero {
  padding: 60px 0 32px;
  background: var(--bg);
}

.hero__inner h1 {
  margin: 8px 0 6px 0;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 42px);
}

.lead { margin: 0; color: var(--muted); }

.section { padding: 48px 0 64px; }

.category-bar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding: 4px 0;
}

.chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #f3f4f6;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, opacity 0.2s ease;
  white-space: nowrap;
}

.chip:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.chip.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: #fff;
  border-color: transparent;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease;
}

.card.hide {
  display: none;
}

.card.fade-in {
  opacity: 0;
  animation: fadeIn 0.25s ease forwards;
}

.card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 26px 90px rgba(79, 70, 229, 0.12);
}

.card__thumb {
  height: 180px;
}

.card__thumb--light { background: linear-gradient(135deg, #fff, #f1f5f9); }
.card__thumb--dark { background: linear-gradient(135deg, #0f172a, #1f2937); }
.card__thumb--image { background: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(59, 130, 246, 0.4)), url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=800&q=80") center/cover no-repeat; }
.card__thumb--neon { background: radial-gradient(circle at 30% 30%, rgba(0, 255, 209, 0.3), transparent 30%), radial-gradient(circle at 70% 20%, rgba(255, 94, 247, 0.35), transparent 35%), #0b0b14; }
.card__thumb--text { background: linear-gradient(135deg, #f8fafc, #e5e7eb); }
.card__thumb--grid { background: repeating-linear-gradient(45deg, rgba(79, 70, 229, 0.16) 0 12px, rgba(79, 70, 229, 0.08) 12px 24px); }

.card__body {
  padding: 18px;
  display: grid;
  gap: 10px;
  flex: 1;
  align-content: space-between;
}

.card__body p { margin: 0; color: var(--muted); }

.card__actions {
  display: flex;
  gap: 10px;
}

.modal__dialog {
  width: 80%;
  height: 80%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
}

.modal iframe {
  width: 100%;
  flex: 1;
  border: none;
  background: #f8fafc;
}

.modal__action {
  position: absolute;
  right: 18px;
  bottom: 14px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .card__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
