:root {
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --secondary: #111827;
  --accent: #f59e0b;
  --bg: #f8f7fc;
  --ink: #171923;
  --muted: #6b7280;
  --line: #e5e7eb;
  --card: #ffffff;
  --shadow: 0 18px 50px rgba(20, 20, 40, 0.08);
  --shadow-hover: 0 25px 60px rgba(20, 20, 40, 0.16);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.45);
  --radius: 26px;
}

@font-face {
  font-family: Mikhak;
  src: url('Mikhak.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Mikhak;
  src: url('Mikhak-Bold.woff2') format('woff2');
  font-weight: 700;
  font-display: swap;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Mikhak, Tahoma, sans-serif;
  line-height: 1.8;
}
a { text-decoration: none; color: inherit; }
button, input, textarea, select { font: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

.site-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 90% 0, rgba(124, 58, 237, 0.12), transparent 32%),
    radial-gradient(circle at 0 35%, rgba(245, 158, 11, 0.08), transparent 26%),
    var(--bg);
}

/* ========== Hero ========== */
.hero {
  padding: 42px 0 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.6));
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.hero-inner { display: flex; flex-direction: column; gap: 32px; }
.brand-row { display: flex; align-items: center; gap: 20px; }
.site-logo {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border: 2px solid rgba(255,255,255,0.8);
}
.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  background: rgba(124, 58, 237, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin: 0.2rem 0 0.3rem;
  background: linear-gradient(135deg, #1e1b4b, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { margin: 0; color: var(--muted); max-width: 700px; }

/* ========== Filters ========== */
.filter-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
  color: var(--ink);
  padding: 10px 24px;
  border-radius: 999px;
  transition: all 0.25s;
  cursor: pointer;
  font-weight: 500;
  backdrop-filter: blur(6px);
}
.filter-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.15);
}
.filter-btn.active {
  background: var(--secondary);
  color: #fff;
  border-color: var(--secondary);
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.3);
}

/* ========== Content ========== */
.content { padding: 42px 0 70px; }
.archive-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 15px;
  margin-bottom: 28px;
}
.archive-head h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: #1f2937;
}
.count-pill, .status-pill, .mini-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.85rem;
}
.count-pill, .status-pill {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ========== Card Grid ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.work-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  transition: transform 0.3s, box-shadow 0.3s;
}
.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(124, 58, 237, 0.3);
}
.work-media {
  display: block;
  position: relative;
  background: #eee;
  aspect-ratio: 3/2;
  overflow: hidden;
}
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.work-card:hover .work-media img { transform: scale(1.06); }
.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(17, 24, 39, 0.82);
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  backdrop-filter: blur(4px);
}
.work-body { padding: 20px; }
.work-body h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #111827;
}
.work-body p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 18px;
  min-height: 48px;
}
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 13px;
  padding: 11px 18px;
  transition: all 0.25s;
  cursor: pointer;
  font-weight: 500;
}
.btn.small { padding: 9px 14px; font-size: 0.9rem; }
.btn.xsmall { padding: 6px 12px; font-size: 0.85rem; }
.btn.primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.3);
}
.btn.primary:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}
.btn.ghost {
  background: rgba(255,255,255,0.8);
  border: 1px solid var(--line);
}
.btn.ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
}
.btn.danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* ========== Empty State ========== */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  background: rgba(255,255,255,0.8);
  border: 1px dashed var(--line);
  padding: 50px;
  border-radius: 22px;
  color: var(--muted);
}

/* ========== Footer ========== */
.footer {
  border-top: 1px solid rgba(255,255,255,0.1);
  background: linear-gradient(135deg, #0f172a, #1e1b4b);
  color: #d7dbe4;
  padding: 50px 0 20px;
  backdrop-filter: blur(15px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
}
.footer h3, .footer h4 { color: #fff; margin: 0 0 18px; }
.footer p { color: #b5bdca; }
.footer a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c9cfda;
  margin: 10px 0;
  transition: color 0.2s;
}
.footer a:hover { color: var(--accent); }
.footer a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 35px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #9ca3af;
  font-size: 0.85rem;
}
.footer-trust { text-align: center; margin-top: 20px; }
.footer-trust img { max-width: 120px; height: auto; }
.footer-social {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  margin-top: 25px;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c9cfda;
  margin: 0;
}
.footer-social a svg { width: 22px; height: 22px; }
.footer-social a:hover { color: #fff; }

/* ========== Floating Contact ========== */
.floating-contact {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 50;
}
.floating-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 14px 35px rgba(79, 70, 229, 0.4);
  cursor: pointer;
  transition: transform 0.3s;
}
.floating-toggle:hover { transform: scale(1.04); }
.floating-toggle span { font-size: 0.9rem; }
.floating-panel {
  position: absolute;
  left: 0;
  bottom: 70px;
  width: 300px;
  padding: 14px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-hover);
  display: none;
  backdrop-filter: blur(12px);
}
.floating-panel.open { display: block; animation: fadeInUp 0.3s; }
.floating-title {
  font-weight: 700;
  padding: 8px 8px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
  color: #1f2937;
}
.floating-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  transition: background 0.2s;
}
.floating-panel a:hover { background: #f3f4f6; }
.floating-panel a svg { width: 20px; height: 20px; }

/* ========== Modal ========== */
.item-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 12, 20, 0.75);
  display: grid;
  place-items: center;
  padding: 20px;
  backdrop-filter: blur(5px);
}
.item-dialog {
  position: relative;
  width: min(950px, 100%);
  max-height: 94vh;
  overflow: auto;
  background: #fff;
  border-radius: 28px;
  padding: 14px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
}
.item-dialog > img {
  width: 100%;
  max-height: 58vh;
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.item-dialog > div { padding: 20px 10px 14px; }
.item-dialog h2 { margin: 0.3rem 0 0.5rem; font-size: clamp(1.5rem, 4vw, 2.4rem); }
.item-dialog p { color: var(--muted); }
.modal-close {
  position: absolute;
  top: 22px;
  left: 22px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  font-size: 26px;
  z-index: 2;
  transition: transform 0.2s;
}
.modal-close:hover { transform: scale(1.1); }
body:has(.item-modal) { overflow: hidden; }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Responsive ========== */
@media (max-width: 920px) {
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  .container { width: min(100% - 22px, 1180px); }
  .hero { padding-top: 24px; }
  .brand-row { align-items: flex-start; }
  .site-logo { width: 68px; height: 68px; border-radius: 18px; }
  .card-grid { grid-template-columns: 1fr; }
  .archive-head { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .floating-contact { left: 12px; bottom: 12px; }
  .floating-toggle { padding: 12px 16px; }
  .floating-toggle span { font-size: 0.8rem; }
  .floating-panel { width: min(300px, calc(100vw - 24px)); }
}