.project-card { padding: 0; overflow: hidden; }
.project-card:hover { transform: translateY(-2px); }
.project-card-open { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; align-items: center; gap: 22px; width: 100%; padding: 22px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.project-card-open:focus-visible { outline: 2px solid #e94560; outline-offset: -4px; border-radius: 12px; }
.project-card-icon { display: block; width: 86px; height: 86px; object-fit: contain; flex-shrink: 0; }
.project-card-fallback { display: grid; place-items: center; border-radius: 20px; background: #253454; color: #9fb5dc; font-size: 30px; font-weight: 700; }
.project-card-copy { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.project-card-name { font-size: clamp(21px, 2vw, 28px); font-weight: 750; letter-spacing: .035em; text-transform: uppercase; line-height: 1.2; color: #f3f4fa; overflow-wrap: anywhere; }
.project-card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; color: #b7bdd0; font-size: 14px; line-height: 1.6; }
.project-card-facts { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; color: #909bb4; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.project-card-date { color: #bbc3d7; padding-bottom: 3px; }
.project-card-counter { display: inline-flex; align-items: center; gap: 7px; }
.project-card-counter svg { width: 15px; height: 15px; color: #8293b6; flex-shrink: 0; }
.project-card-tools { display: flex; flex-direction: row; justify-content: flex-end; gap: 7px; padding: 0 16px 12px; }
.project-card .post-edit-area { margin: 0 20px 20px; }
.container.project-is-open { overflow: hidden; }
.project-window { position: absolute; inset: 0; z-index: 900; border-radius: inherit; background: #13262c; overflow: hidden; overscroll-behavior: contain; }
.project-demo { display: block; width: 100%; height: 100%; border: 0; }
.project-window[hidden] { display: none; }
.project-window-close { position: absolute; z-index: 10; top: 5px; right: 12px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff26; border-radius: 8px; background: #163039; color: #dcece9; cursor: pointer; }
.project-window-close:hover { background: #263249; }
.project-window-close:focus-visible { outline: 2px solid #e94560; outline-offset: 3px; }
@media (max-width: 1050px) {
  .project-card-open { grid-template-columns: 70px minmax(0, 1fr); gap: 12px 18px; padding: 18px; }
  .project-card-icon { width: 70px; height: 70px; }
  .project-card-facts { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; white-space: normal; }
  .project-card-date { padding: 0; }
}
@media (max-width: 480px) {
  .project-card-open { grid-template-columns: 58px minmax(0, 1fr); padding: 15px; gap: 12px; }
  .project-card-icon { width: 58px; height: 58px; }
  .project-card-name { font-size: 21px; }
  .project-card-description { font-size: 13px; }
  .project-card-facts { grid-column: 1 / -1; gap: 9px 12px; padding-top: 10px; border-top: 1px solid #ffffff0d; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .project-card { transition: none; } .project-card:hover { transform: none; } }

@media (max-width: 768px) { .container.project-is-open { height: 90dvh; min-height: 0; } }
