/* Разделы сайта: вход, новый плакат, данные, плакаты, история, бот. База — style.css.
   Макет — Figma b6a3GD9i6dfqw16b03QR7d, страница «Сайт · ноябрь 2026»: текст крупнее, служебного — только «Бот работает». */

/* ---------- читаемость: основной текст 16 px, вводный 18 px ---------- */
body { font-size: 16px; line-height: 24px; }
.lead { font-size: 18px; line-height: 28px; max-width: 64ch; }
.display--title { max-width: 26ch; overflow-wrap: anywhere; }
.title { margin: 0; font: 700 30px/34px var(--f-display); letter-spacing: -.01em; text-transform: uppercase; }
.label { display: flex; flex-direction: column; gap: 8px; font: 500 15px/20px var(--f-body); color: var(--text-2); }
.text-input {
  height: 48px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: var(--r-md);
  background: var(--bg-surface); color: var(--text); font: 400 16px/22px var(--f-body); width: 100%;
}
.text-input:focus { outline: none; border-color: var(--text); box-shadow: var(--focus); }
textarea.text-input { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.note { margin: 0; font-size: 15px; line-height: 22px; color: var(--text-2); }
.note--warn { color: var(--warn); }
.note--error { color: var(--error); }
.muted { color: var(--text-3); }
.stack-8 { display: flex; flex-direction: column; gap: 8px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.a-btn { text-decoration: none; }
.btn .loader { width: 16px; height: 16px; border-width: 2px; }
.btn--ghost { background: transparent; color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: var(--bg-muted); }
.btn:disabled .loader { color: var(--text-2); }
[hidden] { display: none !important; }

/* ---------- шапка ---------- */
.nav { display: flex; align-items: center; gap: 8px; margin-right: auto; margin-left: 32px; }
.nav .btn--ghost[aria-current="page"] { background: var(--bg-muted); }
.nav .btn--secondary[aria-current="page"] { border-color: var(--text); }
.topbar__right { display: flex; align-items: center; gap: 12px; }
.bot {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border-radius: var(--r-pill);
  color: var(--text); text-decoration: none; font-weight: 500; white-space: nowrap;
}
a.bot:hover { background: var(--bg-muted); }
.bot__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); flex: none; }
.bot.is-on .bot__dot { background: var(--ok); }
.link-btn { border: 0; background: none; padding: 6px 8px; color: var(--text-2); cursor: pointer; border-radius: var(--r-sm); font: inherit; font-weight: 500; }
.link-btn:hover { color: var(--text); background: var(--bg-muted); }

/* ---------- вход ---------- */
.auth { max-width: 460px; margin: 10vh auto 0; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
.auth .logo__brand { height: 26px; width: auto; color: var(--accent); align-self: flex-start; }
.auth .btn { width: 100%; }

/* ---------- страницы ---------- */
.page-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.page-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head__text { display: flex; flex-direction: column; gap: 12px; min-width: 0; flex: 1 1 520px; }
.section { margin-top: 56px; display: flex; flex-direction: column; gap: 24px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-card { padding: 32px; display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.empty { margin: 0; padding: 24px; border: 1px dashed var(--border-strong); border-radius: var(--r-lg); color: var(--text-2); }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- новый плакат ---------- */
.links { max-width: 760px; gap: 20px; }
.link { display: flex; flex-direction: column; gap: 8px; }
.link.is-error .input { border-color: var(--error); }
.link.is-valid .input__icon { color: var(--ok); }
.link__hint:empty { display: none; }

/* ---------- данные события ---------- */
.events { display: flex; flex-direction: column; gap: 32px; }
.ev { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 40px; align-items: start; }
.ev__card { overflow: hidden; display: flex; flex-direction: column; }
.ev__photo img, .ev__noimg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--bg-wall); }
.ev__noimg { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; color: var(--text-3); text-align: center; }
.ev__info { padding: 20px 24px 4px; display: flex; flex-direction: column; gap: 10px; }
.ev__title { margin: 0; font: 700 24px/28px var(--f-display); text-transform: uppercase; overflow-wrap: anywhere; }
.ev__title a { color: inherit; text-decoration: none; }
.ev__title a:hover { color: var(--accent); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); font-size: 15px; line-height: 22px; }
.facts li { display: flex; gap: 10px; }
.facts svg { flex: none; margin-top: 2px; color: var(--text-3); }
.ev__photo-actions { padding: 12px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.ev__photo-actions .btn { margin: 0; }

.block { display: flex; flex-direction: column; gap: 14px; }
.block__title { margin: 0; font: 600 18px/24px var(--f-body); }
.block.is-missing .block__title::after { content: " · нужно заполнить"; color: var(--warn); font-weight: 500; font-size: 15px; }
.block__hint { margin: 4px 0 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline .text-input { height: 44px; flex: 1; min-width: 0; }
.check { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--border-strong);
  background: var(--bg-surface); color: var(--text); cursor: pointer; font: 500 15px/1 var(--f-body);
}
.chip:hover { border-color: var(--text); }
.chip[aria-pressed="true"] { background: var(--inverse); border-color: var(--inverse); color: var(--inverse-text); }
.chip[aria-pressed="true"]::before { content: "✓"; margin-right: 6px; }
.chip--static { display: inline-flex; align-items: center; cursor: default; }
.picked { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

details.more summary { cursor: pointer; color: var(--text-2); font-weight: 500; }
details.more[open] summary { margin-bottom: 16px; }
.more__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }

.build { margin-top: 32px; padding: 28px 32px; display: flex; flex-direction: column; gap: 24px; }
.build--single { margin-left: 400px; }
.build__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 20px 24px; border-radius: var(--r-lg); background: var(--bg-muted);
}
.build__text { margin: 0; font-weight: 500; }
.aside { margin: 20px 0 0; }

.notice { margin-bottom: 24px; }
.notice__text { font-size: 15px; line-height: 22px; }
.notice--warn { background: var(--warn-soft); } .notice--warn svg { color: var(--warn); }
.notice--info { background: var(--info-soft); } .notice--info svg { color: var(--info); }
.notice--ok { background: var(--ok-soft); } .notice--ok svg { color: var(--ok); }
.notice .btn-row { margin-top: 12px; }

/* ---------- плакаты ---------- */
.poster-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 48px 32px; }
.poster { margin: 0; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.poster__img {
  position: relative; aspect-ratio: 2480 / 3508; border-radius: 6px; overflow: hidden; color: inherit; text-decoration: none;
  background: var(--bg-wall); box-shadow: var(--shadow-poster); display: grid; place-items: center;
}
.poster__img img { width: 100%; height: 100%; object-fit: cover; background: var(--bg-surface); }
.poster__img .working { flex-direction: column; text-align: center; padding: 16px; }
.poster__img.is-dim img { opacity: .45; }
.poster__img .overlay { position: absolute; inset: auto 12px 12px 12px; }
.poster__cap { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.poster__name { margin: 0; font: 600 18px/24px var(--f-body); overflow-wrap: anywhere; }
.poster__meta { margin: 2px 0 0; color: var(--text-2); font-size: 15px; line-height: 22px; }
.poster__actions { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.poster__actions .btn { width: 100%; }
.notes { margin: 0; padding-left: 18px; font-size: 15px; line-height: 22px; color: var(--warn); }

/* ---------- история ---------- */
.search { max-width: 560px; margin-top: 12px; }

/* ---------- бот ---------- */
.steps { margin: 0; padding: 0 0 0 22px; display: flex; flex-direction: column; gap: 12px; max-width: 70ch; }
.steps code, .lead code { font-size: 14px; padding: 1px 6px; border-radius: 6px; background: var(--bg-muted); }
.workers { display: flex; flex-direction: column; gap: 8px; }
.worker { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); background: var(--bg-surface); border: 1px solid var(--border); }

/* ---------- всплывающие сообщения ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 16px; border-radius: var(--r-md); background: var(--inverse); color: var(--inverse-text); box-shadow: var(--shadow-card); font-size: 15px; }
.toast--error { background: var(--error); color: #fff; }

@media (max-width: 1040px) {
  .ev { grid-template-columns: 1fr; gap: 20px; }
  .ev__card { max-width: 560px; }
  .build--single { margin-left: 0; }
}
@media (max-width: 760px) {
  .nav { margin-left: 8px; gap: 4px; }
  .nav .btn { padding: 0 10px; }
  .nav__label, .logo__name, .bot__text { display: none; }
  .form-card, .build { padding: 20px; }
  .build__foot { flex-direction: column; align-items: stretch; }
  .build__foot .btn { width: 100%; }
  .page-head--row { align-items: stretch; }
  .poster-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .more__grid { grid-template-columns: 1fr; }
  .inline { flex-wrap: wrap; }
  .lead { font-size: 17px; line-height: 26px; }
}
@media (max-width: 440px) {
  .poster-grid { grid-template-columns: 1fr; }
}
