/* Кабинет участника АДС. Визуальный язык прототипа /kabinet/ и сайта:
   бордо #4F1521, красный #D42A21 для кнопок, серый #F2F1EF, розовый для
   мягких плашек, тонкие заглавные заголовки, линии 1 px, прямые углы.
   Без курсива и без чёрного фона. На телефоне нижняя панель из 5 разделов,
   на компьютере левая колонка. Цели нажатия не меньше 44 px, поля ввода
   не мельче 16 px (иначе Safari на iPhone увеличивает страницу). */
@font-face {
  font-family: "Montserrat ADS";
  src: url("/static/fonts/montserrat-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --red: #D6473E;
  --red-b: #D42A21;
  --red-h: #B5231C;
  --red-t: #C0352C;
  --bordo: #4F1521;
  --pink: #F5AFAF;
  --pink-l: #FCEBEB;
  --grey: #BDBDBD;
  --mist: #F2F1EF;
  --white: #FFFFFF;
  --fg: #1B1B1B;
  --fg-2: #5B5857;
  --line: #D9D6D3;
  --ok: #2F6B3A;
  --font: "Montserrat ADS", "Helvetica Neue", Arial, sans-serif;
  --side: 250px;
  --top: 64px;
  --tap: 48px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.5; color: var(--fg); background: var(--white); overflow-x: hidden; font-style: normal; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--red-t); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-weight: 250; font-size: clamp(28px, 2.4vw + 14px, 42px); line-height: 1.08; text-transform: uppercase; letter-spacing: .01em; overflow-wrap: anywhere; }
h2 { font-weight: 300; font-size: clamp(19px, 1vw + 13px, 24px); line-height: 1.15; text-transform: uppercase; }
h3, .h3 { font-weight: 500; font-size: 18px; line-height: 1.25; text-transform: none; }
b, strong { font-weight: 500; }
em, i, cite, dfn, var, address { font-style: normal; }
:focus-visible { outline: 2px solid var(--red-b); outline-offset: 2px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── каркас ─────────────────────────────────────────────────────── */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-rows: var(--top) 1fr; }
.top { grid-column: 1 / -1; background: var(--bordo); color: var(--white); display: flex; align-items: center; gap: 20px; padding: 0 16px 0 24px; position: sticky; top: 0; z-index: 20; min-height: var(--top); }
.top a:hover { color: var(--white); }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; line-height: 1.05; flex: none; color: var(--white); }
.logo svg { width: 26px; height: 33px; fill: currentColor; }
.top__t { display: none; min-width: 0; }
.top__sp { flex: 1; }
.top__role { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--pink); border: 1px solid rgba(245,175,175,.5); padding: 4px 8px; white-space: nowrap; }
.redbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 8px; background: var(--red-b); color: var(--white); border-radius: 999px; text-decoration: none; font-size: 14px; white-space: nowrap; flex: none; }
.redbtn__dot { width: 28px; height: 28px; border-radius: 50%; background: var(--white); display: grid; place-items: center; }
.redbtn__dot::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--red-b); }
.redbtn:hover { background: var(--red-h); color: var(--white); }
.redbtn__sos { display: none; }
.ava { width: 36px; height: 36px; flex: none; display: grid; place-items: center; background: var(--pink); color: var(--bordo); font-size: 13px; font-weight: 500; }
.ava--l { width: 56px; height: 56px; font-size: 20px; }
.acc { position: relative; flex: none; }
.acc summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 6px 0 10px; border: 1px solid transparent; cursor: pointer; font-size: 14px; }
.acc summary::-webkit-details-marker { display: none; }
.acc[open] summary, .acc summary:hover { border-color: rgba(255,255,255,.35); }
.acc__menu { position: absolute; right: 0; top: calc(100% + 6px); width: 300px; background: var(--white); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 12px 40px rgba(27,27,27,.18); z-index: 40; padding: 6px 0; }
.acc__h { padding: 10px 16px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.acc__h span { color: var(--fg-2); font-size: 13px; }
.acc__i { display: flex; align-items: center; width: 100%; min-height: 48px; padding: 0 16px; text-decoration: none; background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; color: var(--fg); }
.acc__i:hover { background: var(--mist); color: var(--fg); }
.acc form { margin: 0; }

.side { background: var(--white); border-right: 1px solid var(--line); padding: 24px 0; position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow: auto; }
.nav { display: grid; }
.nav a { position: relative; display: flex; align-items: center; gap: 12px; min-height: var(--tap); padding: 0 24px; text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); }
.nav a svg, .bnav svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.nav a:hover { color: var(--fg); background: var(--mist); }
.nav a[aria-current="page"] { color: var(--bordo); font-weight: 500; }
.nav a[aria-current="page"]::before, .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 10px; width: 7px; height: 7px; border-color: var(--red); border-style: solid; }
.nav a[aria-current="page"]::before { top: 10px; border-width: 1px 0 0 1px; }
.nav a[aria-current="page"]::after { bottom: 10px; border-width: 0 0 1px 1px; }
.nav__cap { margin: 20px 24px 4px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.side__foot { padding: 24px 24px 0; margin-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2); display: grid; gap: 6px; }
.side__foot form { margin: 0; }

.main { padding: 40px clamp(16px, 3vw, 48px) 120px; min-width: 0; }
.page { max-width: 1120px; }
.bnav { display: none; }

/* ── заголовки страниц и плашки ─────────────────────────────────── */
.eyebrow { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; flex: none; border: solid var(--red); border-width: 1px 0 0 1px; }
.phead { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 24px; }
.phead > div:first-child { min-width: 0; }
.phead p { color: var(--fg-2); margin-top: 12px; max-width: 62ch; }
.crumb { font-size: 14px; color: var(--fg-2); margin-bottom: 8px; }
.crumb a { text-decoration: none; display: inline-block; padding: 10px 0; }
.crumb a::before { content: "‹ "; }
.plate { background: var(--pink-l); border-left: 2px solid var(--red); padding: 12px 16px; margin-bottom: 20px; font-size: 15px; }
.plate--act { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.plate--act p { flex: 1 1 320px; }
.flash { padding: 12px 16px; margin-bottom: 20px; border-left: 2px solid var(--ok); background: var(--mist); font-size: 15px; }
.flash.err { border-left-color: var(--red-b); background: var(--pink-l); }

/* ── блоки ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.g-main { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; }
.card { background: var(--mist); border: 1px solid transparent; padding: 24px; min-width: 0; }
.card--pink { background: var(--pink-l); border-color: var(--pink); }
.card.now { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); }
.card__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 12px; margin-bottom: 14px; }
.card__head a { font-size: 14px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.narrow { max-width: 640px; }
.muted { color: var(--fg-2); }
.small { font-size: 14px; }
.hint { font-size: 13px; color: var(--fg-2); }
.stack > * + * { margin-top: 14px; }
.stack-l > * + * { margin-top: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row form { margin: 0; }
.mt { margin-top: 24px; }
.mb { margin-bottom: 24px; }
.dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; }
.sub { display: block; font-size: 13px; color: var(--fg-2); }
.opt { font-size: 13px; color: var(--fg-2); font-weight: 400; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 22px; border: 1px solid var(--bordo); color: var(--bordo); background: transparent; text-decoration: none; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; transition: background .2s, color .2s, border-color .2s; text-align: center; }
.btn:hover { background: var(--bordo); color: var(--white); }
.btn--red { background: var(--red-b); border-color: var(--red-b); color: var(--white); }
.btn--red:hover { background: var(--red-h); border-color: var(--red-h); color: var(--white); }
.btn--s { min-height: 44px; padding: 0 16px; font-size: 12px; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; cursor: wait; }
.link { background: none; border: 0; padding: 0; min-height: 36px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: inherit; color: inherit; }
.link:hover { color: var(--red-t); }
a[href^="tel:"] { white-space: nowrap; }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); white-space: nowrap; background: var(--white); }
.tag--white { border-color: var(--grey); }
.tag--black { background: var(--bordo); color: var(--white); border-color: var(--bordo); }
.tag--red { background: var(--red-b); color: var(--white); border-color: var(--red-b); }
.tag--ok { border-color: var(--ok); color: var(--ok); }
.tag--warn { border-color: var(--red-t); color: var(--red-t); }

.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.list > li:first-child { padding-top: 0; }
.list > li:last-child { border-bottom: 0; padding-bottom: 0; }
.when { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--red-t); }

/* незавершённые дела */
.todo { list-style: none; margin: 0; padding: 0; }
.todo > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.todo > li:first-child { padding-top: 4px; }
.todo > li:last-child { border-bottom: 0; padding-bottom: 0; }
.todo form { margin: 0; }
.todo__t { font-weight: 500; }

/* мероприятия */
.evs { list-style: none; margin: 0; padding: 0; }
.ev { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ev:first-child { padding-top: 0; }
.ev:last-child { border-bottom: 0; padding-bottom: 0; }
.ev__date { display: grid; justify-items: center; align-content: center; min-height: 64px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--bordo); line-height: 1.1; font-size: 12px; color: var(--fg-2); text-transform: uppercase; }
.ev__date b { font-weight: 300; font-size: 24px; color: var(--fg); }
.ev--mine .ev__date { border-top-color: var(--red); }
.ev__body { min-width: 0; }
.ev__body > * + * { margin-top: 4px; }
.ev__t { font-weight: 500; text-decoration: none; overflow-wrap: anywhere; }
.ev__t:hover { text-decoration: underline; }
.ev__act form { margin: 0; }

/* куратор и срочная помощь */
.rk { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.rk__circle { width: 104px; height: 104px; border-radius: 50%; background: var(--red-b); display: grid; place-items: center; color: var(--white); box-shadow: 0 0 0 8px var(--pink-l), 0 0 0 9px var(--pink); text-decoration: none; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; text-align: center; line-height: 1.2; margin: 8px; }
a.rk__circle:hover { background: var(--red-h); color: var(--white); }

/* билет */
.ticket { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; padding: 24px; border: 1px solid var(--grey); background: var(--white); overflow: hidden; }
.ticket--black { border-color: var(--bordo); box-shadow: inset 8px 0 0 var(--bordo); padding-left: 32px; }
.ticket--red { background: var(--red-b); color: var(--white); border-color: var(--red-b); }
.ticket__mark { position: absolute; right: -30px; bottom: -40px; width: 180px; height: 226px; opacity: .07; fill: currentColor; pointer-events: none; }
.ticket__k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.ticket__name { font-weight: 300; font-size: 26px; line-height: 1.1; text-transform: uppercase; margin: 8px 0 14px; overflow-wrap: anywhere; }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-size: 14px; }
.ticket dt { color: inherit; }
.ticket:not(.ticket--red) dt { color: var(--fg-2); }
.qr { width: 172px; height: 172px; background: var(--white); padding: 6px; align-self: center; position: relative; }
.qr svg { width: 100%; height: 100%; display: block; }
.qr--off { display: grid; place-items: center; text-align: center; color: var(--fg-2); border: 1px dashed var(--grey); }

/* формы */
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; color: var(--fg-2); }
.input, .area { width: 100%; min-height: var(--tap); padding: 10px 14px; border: 1px solid var(--grey); background: var(--white); border-radius: 0; font-size: 16px; }
.input::placeholder, .area::placeholder { color: #6F6A68; }
.area { min-height: 110px; resize: vertical; }
.input:focus, .area:focus { border-color: var(--bordo); outline: 2px solid var(--pink); outline-offset: 0; }
.field.bad .input { border-color: var(--red-b); }
.err-text { color: var(--red-t); font-size: 14px; }
details.more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
details.more[open] summary { margin-bottom: 10px; }

/* таблица счетов */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); padding: 10px 12px; border-bottom: 1px solid var(--bordo); white-space: nowrap; }
.tbl td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td.r, .tbl th.r { text-align: right; white-space: nowrap; }
.tbl td a { display: inline-block; min-height: 32px; }

/* вход */
.speaker-form label { display: block; margin-bottom: 8px; }
.speaker-form textarea { display: block; box-sizing: border-box; width: 100%; padding: 12px; font: inherit; color: inherit; border: 1px solid #b7b7b7; background: #fff; resize: vertical; }
.solo { min-height: 100vh; display: flex; flex-direction: column; }
.top--solo { position: static; }
.main--solo { padding: 0; flex: 1; display: flex; flex-direction: column; }
.main--solo > .flash { margin: 16px clamp(16px, 4vw, 48px) 0; }
.main--solo > .narrow { padding: 40px clamp(16px, 4vw, 48px); }
.login { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.login__art { background: var(--red); color: var(--white); padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; min-height: 420px; }
.login__art svg.big { position: absolute; right: -8%; bottom: -12%; width: 70%; height: auto; fill: rgba(255,255,255,.12); }
.login__slogan { font-weight: 250; font-size: clamp(40px, 5vw, 76px); line-height: .95; text-transform: uppercase; position: relative; }
.login__form { background: var(--white); padding: 48px clamp(24px, 6vw, 96px); display: flex; flex-direction: column; justify-content: center; max-width: 640px; }
.login__form .card { background: var(--mist); }

/* ── счёт для печати ────────────────────────────────────────────── */
.invoice { max-width: 800px; background: #fff; border: 1px solid var(--line); padding: 36px 40px; margin-top: 16px; color: #000; font-size: 14px; }
.invoice p { margin: 0 0 6px; }
.inv-org { font-size: 16px; font-weight: 600; }
.inv-bank, .inv-items { width: 100%; border-collapse: collapse; margin: 14px 0; }
.inv-bank td, .inv-items th, .inv-items td { border: 1px solid #000; padding: 6px 8px; font-size: 13px; vertical-align: top; text-align: left; }
.inv-items th { font-weight: 600; }
.inv-items .r { text-align: right; white-space: nowrap; }
.inv-items tfoot td { border: 0; }
.inv-bank td.inv-warn { text-align: center; font-weight: 600; padding: 12px; }
.inv-title { font-size: 20px; font-weight: 600; text-transform: none; letter-spacing: 0; color: #000; margin: 22px 0 12px; line-height: 1.25; }
.inv-parties { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.inv-parties dt { font-weight: 600; }
.inv-parties dd { margin: 0; }
.inv-sign { margin-top: 40px !important; }
.inv-sign.second { margin-top: 28px !important; }
.inv-sign .line { display: inline-block; width: 200px; max-width: 40%; border-bottom: 1px solid #000; margin: 0 10px; }
.inv-paid { margin-top: 14px !important; font-weight: 600; }
.inv-cancelled { margin: 0 0 14px !important; padding: 8px 12px; border: 2px solid var(--red-b); color: var(--red-b); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; text-align: center; }
.inv-cancelled small { display: block; font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.inv-qr { display: flex; gap: 16px; align-items: center; margin: 16px 0; }
@media print {
  .top, .side, .bnav, .no-print, .flash, .plate { display: none !important; }
  .app { display: block; }
  .main { padding: 0; }
  .invoice { border: 0; padding: 0; margin: 0; max-width: none; font-size: 12pt; }
  .inv-bank td, .inv-items th, .inv-items td { font-size: 11pt; }
}

/* ── планшет и телефон ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .g-main, .g2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  :root { --top: 60px; }
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: var(--top) 1fr; }
  .side { display: none; }
  .top { padding: 0 8px 0 16px; gap: 10px; }
  .logo span, .top__name { display: none; }
  .logo svg { width: 22px; height: 28px; }
  .top__t { display: grid; flex: 1; gap: 1px; }
  .top__screen { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top__who { font-size: 12px; color: var(--pink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top__sp { display: none; }
  .top--solo .top__sp { display: block; }
  .redbtn { padding: 0; width: 44px; justify-content: center; }
  .redbtn__t, .redbtn__dot { display: none; }
  .redbtn__sos { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; }
  .acc summary { padding: 0 4px; min-width: 44px; justify-content: center; }
  .acc__menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto; border: 0; border-top: 3px solid var(--red); padding-bottom: calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 30px rgba(27,27,27,.2); }
  .main { padding: 24px 16px 100px; }
  .grid { gap: 16px; }
  .stack-l > * + * { margin-top: 16px; }
  .card { padding: 18px 16px; }
  .phead { margin-bottom: 20px; }
  .phead p { margin-top: 8px; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--white); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .bnav a { flex: 1 1 0; min-width: 0; display: grid; justify-items: center; align-content: center; gap: 3px; padding: 6px 0; min-height: 60px; text-decoration: none; font-size: 10.5px; letter-spacing: -.03em; color: var(--fg-2); position: relative; }
  .bnav a:nth-child(2) { flex-grow: 1.35; }     /* «Мероприятия» длиннее остальных: без обрезки на 360 */
  .bnav span { display: block; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .bnav svg { width: 22px; height: 22px; }
  .bnav [aria-current="page"] { color: var(--bordo); font-weight: 500; }
  .bnav [aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 2px; background: var(--red); }
  .todo > li, .list > li { grid-template-columns: minmax(0, 1fr); }
  .todo > li > :last-child, .list > li > :last-child { justify-self: start; }
  .ev { grid-template-columns: 56px minmax(0, 1fr); }
  .ev__date { min-height: 56px; }
  .ev__act { grid-column: 2; }
  .ev__act:empty { display: none; }
  .rk { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rk__circle { width: 88px; height: 88px; font-size: 11px; }
  .ticket { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; }
  .ticket--black { padding-left: 24px; }
  .no-print .row { margin-bottom: 16px; }
  .ticket__name { font-size: 22px; }
  .qr { justify-self: start; width: 188px; height: 188px; }
  .tbl--cards thead { display: none; }
  .tbl--cards, .tbl--cards tbody { display: block; }
  .tbl--cards tr { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .tbl--cards td { border: 0; padding: 2px 0; }
  .tbl--cards td.r { text-align: left; }
  .login { grid-template-columns: minmax(0, 1fr); }
  .login__art { min-height: 150px; padding: 24px 16px; }
  .login__slogan { font-size: clamp(30px, 9vw, 44px); }
  .login__form { padding: 24px 16px 40px; }
  .invoice { padding: 16px; font-size: 13px; }
  .inv-bank td, .inv-items th, .inv-items td { font-size: 12px; padding: 4px 5px; }
  .inv-parties { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .inv-parties dd { margin-bottom: 8px; }
  .inv-sign .line { width: 90px; }
}

/* подтверждение отмены записи и прочее после разбора */
.nowrap { white-space: nowrap; }
details.confirm { display: inline-block; }
details.confirm > summary { list-style: none; }
details.confirm > summary::-webkit-details-marker { display: none; }
details.confirm[open] > summary { display: none; }
.confirm__box { display: grid; gap: 10px; max-width: 320px; }
.confirm__box form { margin: 0; }
@media (max-width: 860px) {
  /* реквизиты банка на телефоне: длинные номера счетов переносятся, страница не шире экрана */
  .inv-bank { table-layout: fixed; }
  .inv-bank td, .inv-items td { overflow-wrap: anywhere; word-break: break-all; }
}
