
/* Apibesaz custom HTTP error pages — responsive, self-contained, offline-safe. */
.error-page-shell{
  min-height:calc(100vh - 210px);
  display:grid;
  place-items:center;
  padding:clamp(2rem,6vw,5rem) clamp(1rem,4vw,2rem);
}
.error-card{
  width:min(100%, 760px);
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 18px 55px rgba(0,0,0,.18);
  padding:clamp(1.35rem,4vw,3rem);
  overflow:hidden;
}
.error-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:1.5rem;
  margin-bottom:1.4rem;
}
.error-sticker{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--primary-soft);
  border:1px solid var(--border);
  font-size:1.75rem;
  flex:0 0 auto;
}
.error-code{
  font-size:clamp(3.8rem,15vw,7.5rem);
  line-height:.88;
  letter-spacing:-.055em;
  font-weight:900;
  margin:0;
  background:var(--gradient);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
}
.error-status{
  display:inline-flex;
  align-items:center;
  gap:.45rem;
  margin:.85rem 0 0;
  padding:.35rem .7rem;
  border-radius:999px;
  background:var(--surface2);
  border:1px solid var(--border);
  color:var(--muted);
  font-size:.76rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.error-card h1{margin:0 0 .7rem;font-size:clamp(1.35rem,3vw,1.8rem);line-height:1.2}
.error-card p{margin:0;color:var(--muted);line-height:1.75;max-width:62ch}
.error-note{
  margin-top:1.25rem;
  padding:1rem 1.1rem;
  border-radius:14px;
  background:var(--surface2);
  border:1px solid var(--border);
  color:var(--text2);
  font-size:.86rem;
  line-height:1.65;
}
.error-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:1.5rem}
.error-actions .btn{min-height:46px}
.error-meta{margin-top:1.25rem;font-size:.72rem;color:var(--muted);word-break:break-word}
@media (max-width:700px){
  .error-card{border-radius:18px;padding:1.2rem}
  .error-top{flex-direction:column-reverse;align-items:flex-start;gap:.9rem}
  .error-sticker{width:50px;height:50px;font-size:1.5rem}
  .error-actions{display:grid;grid-template-columns:1fr}
  .error-actions .btn{width:100%}
}
@media (max-width:380px){
  .error-page-shell{padding-inline:.75rem}
  .error-code{font-size:3.6rem}
}
