*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; }
body {
  margin: 0;
  color: #0b0d17;
  background: #f7f5f0;
  font: 18px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; height: auto; }
a { color: #4b44f5; }
:focus-visible { outline: 2px solid #4b44f5; outline-offset: 3px; }
.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0; }
.logo { color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -0.03em; }
.logo span { color: #4b44f5; }
h1 { margin: 0; font-size: clamp(34px, 7vw, 56px); letter-spacing: -0.04em; line-height: 1.05; overflow-wrap: anywhere; }
h2, h3 { overflow-wrap: anywhere; }
.hero { padding: 8px 0 22px; }
.search { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.search input, textarea, select, input[type="text"], input[type="password"], input[type="search"] {
  width: 100%; font: inherit; font-size: 16px; min-height: 48px; border: 1px solid #e4e6f0; border-radius: 12px; padding: 10px 12px; background: #fff; color: inherit;
}
.search input { width: min(100%, 420px); flex: 1 1 200px; }
.btn, .btn.ghost, .btn.danger {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 16px;
  border-radius: 999px; border: 0; background: #4b44f5; color: #fff; font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.btn.ghost { background: #fff; color: #0b0d17; border: 1px solid #e4e6f0; }
.btn.danger { background: #fff; color: #c2410c; border: 1px solid #f0c2b4; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { display: block; min-width: 0; color: inherit; text-decoration: none; background: #fff; border: 1px solid #e7e9f2; border-radius: 20px; overflow: hidden; }
.card h2, .card h3 { margin: 12px 16px 6px; font-size: 22px; letter-spacing: -0.03em; }
.card p { margin: 0 16px 12px; }
.card .ph, .card img:not(.ava) { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: linear-gradient(135deg, #d9dcff, #ffd9c8); }
.by { display: flex; align-items: center; gap: 8px; margin: 0 16px 8px; color: inherit; text-decoration: none; }
.ava { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.ava.big { width: 72px; height: 72px; }
.meta { color: #5c6178; font-size: 15px; }
.sheet { background: #fff; border: 1px solid #e7e9f2; border-radius: 24px; padding: 22px; margin-bottom: 18px; }
.cover { width: 100%; border-radius: 16px; margin-bottom: 14px; }
.lead { font-size: 20px; overflow-wrap: anywhere; }
.prose { max-width: 68ch; font-size: 18.5px; line-height: 1.65; overflow-wrap: anywhere; }
.prose h1 { font-size: 28px; letter-spacing: -0.03em; }
.prose h2 { font-size: 24px; letter-spacing: -0.03em; }
.prose h3 { font-size: 20px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose u { text-underline-offset: 2px; }
.prose del { text-decoration: line-through; }
.prose pre, .prose table { display: block; max-width: 100%; overflow-x: auto; }
.prose img { border-radius: 12px; }
.sign { color: #5c6178; font-size: 15px; }
.actions, .modal-actions, .pager { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.empty, .note, .err { border-radius: 16px; padding: 14px; }
.empty { background: #fff; }
.note { background: #e7f8ec; }
.err { background: #fff1ee; }
.foot { color: #5c6178; font-size: 15px; padding: 18px 0 28px; }
.alist { list-style: none; padding: 0; display: grid; gap: 14px; }
.alist li { display: grid; gap: 8px; }
.modal { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: rgba(11,13,23,.45); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s ease, visibility .2s ease; z-index: 20; }
.modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.modal-card { width: min(440px, 100%); background: #fff; border-radius: 20px; padding: 20px; transform: translateY(10px); transition: transform .2s ease; }
.modal.is-open .modal-card { transform: none; }
.modal-card h2 { margin-top: 0; }
label { display: grid; gap: 6px; margin: 10px 0; font-size: 15px; color: #5c6178; }
body.is-locked { overflow: hidden; }
.fields { display: grid; gap: 8px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
