/* Rassadka · цвета продукта и оформление результата (схема зала + меню в бюджет и расчёт банкета). */
:root {
  --brand: #7a1f3d; --brand-2: #9a2a50; --brand-ink: #5c1630; --brand-soft: #f8edf1; --brand-line: #eccfd9;
  --accent: #5c9d7a; --accent-soft: #e6f2eb; --accent-ink: #2d6347;
}
.rs { display: flex; flex-direction: column; gap: 14px; }
.rs-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 31px; }
.rs-und { font-size: 14px; color: var(--muted); margin-right: 2px; }
.rs-chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 8px; background: var(--brand-soft); color: var(--brand-ink);
  font-size: 14px; font-weight: 600; border: 1px solid var(--brand-line); white-space: nowrap; }
.rs-chip.nw { background: var(--accent-soft); color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.rs-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }

/* схема зала */
.rs-sheet { display: flex; flex-direction: column; border: 1px solid var(--brand-line); border-radius: 14px; padding: 10px 12px; }
.rs-sheet-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand-ink); }
.rs-free { color: var(--good-ink); }
.rs-free.t { color: var(--muted); }
.rs-svg { display: block; width: 100%; height: auto; margin: auto 0; padding: 4px 0 2px; }
.rs-svg text { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.rs-svg .w-h { transform-box: fill-box; transform-origin: center; }
.rs-svg .rs-seat.w-h:not(.in) { transform: scale(.3); }
.rs-wall { fill: none; stroke: #2a2226; stroke-width: 6; stroke-linecap: square; }
.rs-thin { fill: none; stroke: #2a2226; stroke-width: 1.5; }
.rs-glass { fill: none; stroke: #86b9d6; stroke-width: 5; }
.rs-brick { fill: #efdcd0; stroke: #2a2226; stroke-width: 1.5; }
.rs-hearth { fill: #3a2c30; }
.rs-flame { fill: #ee8a3c; }
.rs-barc { fill: #4a3a40; }
.rs-barc-t { font-size: 11px; font-weight: 750; letter-spacing: .14em; fill: #fff; }
.rs-t { fill: #fff; stroke: #8d7a82; stroke-width: 1.4; }
.rs-t.bz { fill: #ddd3d7; stroke: #b3a3aa; }
.rs-ch { fill: #fff; stroke: #c3b3b9; stroke-width: 1.3; }
.rs-ch.bz { fill: #b6a6ad; stroke: #fff; stroke-width: 1.3; }
.rs-seat { fill: var(--brand); stroke: #fff; stroke-width: 1.6; }
.rs-seat.vip { fill: var(--accent); }
.rs-lbl { font-size: 13px; font-weight: 600; fill: #2a2226; paint-order: stroke; stroke: #fbfdfe; stroke-width: 4px; stroke-linejoin: round; }
.rs-mut { fill: #85757c; font-weight: 500; }
.rs-vipl { fill: var(--accent-ink); font-weight: 700; }
.rs-zl { fill: var(--accent-ink); font-weight: 600; }
.rs-big .n { font-size: 38px; font-weight: 800; fill: var(--brand); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rs-big .u { font-size: 13.5px; font-weight: 650; fill: var(--brand-ink); }
.rs-zone { fill: color-mix(in srgb, var(--accent) 10%, transparent); stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 5 4; }
.rs-ct { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1.6; }
.rs-cake { fill: #fff; stroke: var(--brand); stroke-width: 1.5; }
.rs-candle { fill: none; stroke: #e0a100; stroke-width: 1.7; stroke-linecap: round; }
.rs-cl { fill: var(--accent-ink); font-weight: 700; }
.rs-screen { fill: none; stroke: #2a2226; stroke-width: 5; stroke-linecap: round; }
.rs-ring { fill: color-mix(in srgb, var(--brand) 7%, transparent); stroke: var(--brand); stroke-width: 1.6; stroke-dasharray: 4 3; }
.rs-ring.on { fill: color-mix(in srgb, var(--brand) 10%, #fff); stroke-width: 2.8; stroke-dasharray: none; }
.rs-badge { fill: var(--brand); }
.rs-badge-t { font-size: 11.5px; font-weight: 800; fill: #fff; }
.rs-leg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: 13px; color: var(--ink-2); }
.rs-leg span { display: inline-flex; align-items: center; gap: 6px; }
.rs-leg i { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.rs-leg i.v { background: var(--accent); }
.rs-leg i.bz { border-radius: 3px; background: #ddd3d7; border: 1px solid #b3a3aa; }
.rs-leg i.fr { border-radius: 3px; background: #fff; border: 1px solid #8d7a82; }
.rs-leg i.pk { border-radius: 3px; background: #fff; border: 2px solid var(--brand); }
.rs-leg .nm { margin-left: auto; font-weight: 650; color: var(--brand-ink); }

/* меню в бюджет и расчёт */
.rs-calc { display: flex; flex-direction: column; gap: 6px; }
.rs-calc-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); padding: 1px 2px 2px; }
.rs-menus { display: flex; flex-direction: column; gap: 6px; }
.rs-menus.bud { padding-bottom: 15px; }
.rs-mb { position: relative; padding: 7px 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.rs-mb-t { display: flex; align-items: baseline; gap: 2px 10px; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.rs-mb-t .nm { flex: 1; min-width: 0; }
.rs-mb-t .nm b { color: var(--ink); font-weight: 700; }
.rs-mb-t .v { font-size: 16.5px; font-weight: 750; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-mb.pick .rs-mb-t .v { color: var(--brand); }
.rs-mb-b { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; margin-top: 5px; }
.rs-mb-b .rs-tag { min-width: 100px; text-align: center; }
.rs-bar { position: relative; height: 10px; border-radius: 5px; background: var(--line-2); }
.rs-bar i { position: absolute; top: 0; bottom: 0; display: block; }
.rs-bar .a { left: 0; border-radius: 5px; background: color-mix(in srgb, var(--brand) 38%, #fff); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.rs-mb.pick .rs-bar .a { background: var(--brand); }
.rs-bar .o { border-radius: 0 5px 5px 0; background: repeating-linear-gradient(-45deg, #e19a00 0 4px, #f4c24a 4px 8px); transform-origin: left; transform: scaleX(0);
  transition: transform .5s var(--ease) .8s; }
.rs-mb.in .rs-bar .a, .rs-mb.in .rs-bar .o { transform: none; }
.rs-bar .bl { width: 2px; top: -5px; bottom: -5px; margin-left: -1px; border-radius: 1px; background: var(--ink); }
.rs-blab { position: absolute; top: 19px; margin-right: -5px; white-space: nowrap; font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.rs-tag { font-style: normal; font-size: 13px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.rs-tag.good { background: var(--good-soft); color: var(--good-ink); }
.rs-tag.warn { background: var(--warn-soft); color: var(--warn-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--warn) 35%, transparent); }
.rs-tag.mgr { background: var(--brand-soft); color: var(--brand-ink); }
.rs-sel { position: absolute; inset: -2px; border-radius: 13px; border: 2.5px solid var(--brand); pointer-events: none; }
.rs-lines { display: flex; flex-direction: column; gap: 5px; }
.rs-line { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 12px; border-radius: 10px; background: var(--page);
  font-size: 14px; line-height: 1.35; }
.rs-line b { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 650; }
.rs-line.x { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.rs-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 8px 2px 0; border-top: 2px solid var(--ink); }
.rs-total > span { font-weight: 650; font-size: 15px; }
.rs-sum { font-size: 31px; letter-spacing: -.025em; color: var(--brand); font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1; }
.rs-fin { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rs-dep { display: flex; flex-direction: column; gap: 1px; padding-left: 2px; }
.rs-dep > span { font-size: 13px; color: var(--muted); }
.rs-dep b { font-size: 21px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rs-stamp { --rot: -5deg; flex: none; display: flex; flex-direction: column; align-items: center; gap: 1px; margin: 2px 10px 0 0; padding: 6px 15px;
  border: 3px solid var(--brand); border-radius: 10px; color: var(--brand); background: rgba(255, 255, 255, .92); text-transform: uppercase;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent); }
.rs-stamp.ok { border-color: #15803d; color: #15803d; box-shadow: inset 0 0 0 2px rgba(21, 128, 61, .22); }
.rs-stamp b { font-size: 15px; letter-spacing: .07em; font-weight: 850; white-space: nowrap; }
.rs-stamp span { font-size: 12px; font-weight: 700; letter-spacing: .03em; white-space: nowrap; }

/* свободные столы на вечер */
.rs-tl { --nm: 132px; position: relative; padding-bottom: 24px; }
.rs-tl-ax { position: relative; height: 20px; margin-left: var(--nm); font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rs-tl-ax span { position: absolute; top: 0; transform: translateX(-50%); }
.rs-tl-ax span:first-child { transform: none; }
.rs-tl-ax span:last-child { transform: translateX(-100%); }
.rs-tl-r { display: grid; grid-template-columns: var(--nm) minmax(0, 1fr); align-items: center; padding: 6px 0; border-top: 1px solid var(--line-2); }
.rs-tl-r .nm { display: flex; flex-direction: column; line-height: 1.25; }
.rs-tl-r .nm b { font-size: 14.5px; }
.rs-tl-r .nm small { font-size: 13px; color: var(--muted); }
.rs-tl-r.pick .nm b { color: var(--brand); }
.rs-tl-r .tr { position: relative; height: 30px; border-radius: 7px; border: 1px solid var(--line); background-color: #fff;
  background-image: linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: calc(100% / 6) 100%; }
.rs-tl-r .tr i { position: absolute; top: 3px; bottom: 3px; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap;
  border-radius: 5px; font-style: normal; font-size: 13px; font-weight: 650; }
.rs-tl-r .bz { background: #e8e1e4; color: #85757c; }
.rs-tl-r .nw { background: var(--brand); color: #fff; }
.rs-tl-ask { position: absolute; top: 22px; bottom: 22px; left: calc(var(--nm) + (100% - var(--nm)) * var(--p)); border-left: 2px dashed var(--ink); }
.rs-tl-ask span { position: absolute; bottom: -21px; left: 0; transform: translateX(-50%); font-size: 13px; font-weight: 700; white-space: nowrap; }
.rs-bk { display: flex; flex-direction: column; gap: 2px; margin-top: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--brand-line); background: var(--brand-soft); }
.rs-bk small { font-size: 12px; font-weight: 700; color: var(--brand-ink); text-transform: uppercase; letter-spacing: .06em; }
.rs-bk b { font-size: 17px; }
.rs-bk span { font-size: 14.5px; color: var(--ink-2); }
.rs-bk i { font-style: normal; font-weight: 650; color: var(--ink); white-space: nowrap; }
.rs-fin.tb { align-items: center; margin-top: 2px; }
.rs-rule { flex: 1; min-width: 0; padding: 7px 12px; border-radius: 10px; background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent);
  font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }

/* карточка расчёта в переписке */
.rs-cc { min-width: 230px; }
.rs-cc-h { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.rs-cc-sum { font-size: 25px; font-weight: 800; color: var(--brand); letter-spacing: -.02em; margin: 3px 0 2px; }
.rs-cc-s { font-size: 13px; color: var(--ink-2); }

/* конечный вид и миниатюры сетки: полосы бюджета сразу во всю длину */
.w-final .rs-bar i, .w-th-in .rs-bar i { transition: none !important; }

@container (max-width: 700px) {
  .rs-body { grid-template-columns: minmax(0, 1fr); }
  .rs-sum { font-size: 28px; }
  .rs-fin { flex-wrap: wrap; }
  .rs-fin .rs-stamp { margin: 6px auto 2px; }
  .rs-tl { --nm: 104px; }
}
