:root {
  --ink: #242223; --ink-2: #1b191a; --ink-3: #333032;
  --dark: #3b373a; --dark-2: #322f31; --dark-line: #575255;
  --mint: #00ffb2; --mint-d: #00c98c; --mint-soft: #e8f7f2;
  --purple: #7025ff; --purple-d: #5a14e0; --lav: #f2f0f8;
  --text: #242223; --muted: #66626a; --line: #e4e2e6; --bg: #ffffff;
  --warn: #ff8a3d; --danger: #e5484d;
  --r: 10px; --r-lg: 18px;
  --shadow: 0 1px 2px rgba(36,34,35,.06), 0 8px 24px rgba(36,34,35,.06);
  --head: 'Outfit', system-ui, sans-serif; --body: 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-weight: 500; }
em { font-style: normal; color: var(--purple); }
.dark em { color: var(--mint); }
a { color: var(--purple); }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.kicker { font-family: var(--head); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--purple); margin-bottom: 14px; display: inline-flex; gap: 8px; align-items: center; }
.kicker::before { content: ''; width: 18px; height: 2px; background: currentColor; }
.dark .kicker { color: var(--mint); }
section { padding: 96px 0; }
.dark { background: linear-gradient(180deg, #423e41 0%, var(--dark) 100%); color: #f4f2f3; }
.dark .muted { color: #cdc8cb; }
.soft { background: var(--mint-soft); }
.lav { background: var(--lav); }
.hidden { display: none !important; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 50; background: rgba(59,55,58,.96); backdrop-filter: blur(8px); color: #fff; }
header.top .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--head); font-size: 1.3rem; white-space: nowrap; }
.logo b { color: var(--mint); font-weight: 400; }
nav.main { display: flex; gap: 22px; margin-left: auto; align-items: center; }
nav.main a { color: #e9e6e8; text-decoration: none; font-size: .95rem; }
nav.main a:hover, nav.main a.active { color: var(--mint); }
.lang { display: inline-flex; border: 1px solid var(--dark-line); border-radius: 999px; overflow: hidden; }
.lang button { background: none; border: 0; color: #cfcacd; padding: 5px 10px; font: 600 .78rem var(--body); cursor: pointer; }
.lang button.on { background: var(--mint); color: var(--ink); }
.burger { display: none; margin-left: auto; background: none; border: 1px solid #4a4648; color: #fff; border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: var(--r); border: 1.5px solid transparent;
  font: 600 .95rem var(--body); cursor: pointer; text-decoration: none; transition: transform .12s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #3dffc4; }
.btn-ghost { background: transparent; color: var(--mint); border-color: var(--mint); }
.btn-ghost:hover { background: rgba(0,255,178,.08); }
.btn-purple { background: var(--purple); color: #fff; }
.btn-purple:hover { background: var(--purple-d); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--ink); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f3c5c6; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 88px 0 110px; }
.hero::after { content: ''; position: absolute; right: -10%; top: 0; bottom: 0; width: 55%; background: linear-gradient(160deg, rgba(0,255,178,.16), rgba(112,37,255,.20)); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: #d6d1d4; max-width: 560px; margin: 20px 0 32px; }
.hero h1 { color: #fff; }
.versions { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; background: #fff; color: var(--ink); }
.dark .chip { background: transparent; border-color: var(--dark-line); color: #e9e6e8; }
.chip.mint { border-color: var(--mint); color: var(--mint); }
.chip.solid { background: var(--ink); color: #fff; border-color: var(--ink); }

.tb-hero { background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: var(--r-lg); padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.22); }
.tb-hero .big { font-family: var(--head); font-size: 5rem; line-height: 1; color: var(--mint); font-variant-numeric: tabular-nums; }
.tb-hero .big small { font-size: 1.3rem; margin-left: 6px; color: #fff; }
.tb-mini { margin-top: 22px; display: grid; gap: 9px; }
.tb-mini .r { display: grid; grid-template-columns: 110px 1fr 46px; gap: 10px; align-items: center; font-size: .85rem; color: #cfcacd; }
.tb-mini .r > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-mini .cell { width: 11px; height: 11px; border-radius: 2px; }
.tb-mini .r b { color: #fff; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }

/* hour cells */
.cells { display: flex; flex-wrap: wrap; gap: 3px; }
.cell { width: 14px; height: 14px; border-radius: 3px; background: var(--mint); transition: background .3s, transform .3s; }
.cell.off { background: #55505a; }
.cell.used { background: repeating-linear-gradient(135deg, #b9a4f7 0 3px, #ddd2fc 3px 6px); }
.dark .cell.used { background: repeating-linear-gradient(135deg, #7a62c9 0 3px, #4d4363 3px 6px); }
.legend i.cell { display: inline-block; width: 12px; height: 12px; vertical-align: -1px; margin-right: 4px; }
.tb-legend { margin-top: 14px; font-size: .78rem; }
.dark .legend { color: #cdc8cb; }
.tb-mini .r b .of { color: #a9a3a7; font-weight: 400; }
.cell.sel { background: var(--purple); transform: scale(1.12); }
.light .cell.off, .card .cell.off { background: #e7e4e8; }
.cells.lg .cell { width: 22px; height: 22px; border-radius: 5px; }

/* ---------- pitch ---------- */
.pitch { background: var(--purple); color: #fff; position: relative; overflow: hidden; }
.pitch::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 55%, rgba(0,255,178,.18) 55%); }
.pitch .wrap { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center; }
.pitch em { color: var(--mint); }
.pitch .kicker { color: var(--mint); }
.pitch p { font-size: 1.15rem; color: #ece4ff; max-width: 620px; }
.ticket-stub { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 26px; transform: rotate(2deg); box-shadow: 0 20px 50px rgba(0,0,0,.25); position: relative; }
.ticket-stub::before, .ticket-stub::after { content: ''; position: absolute; left: -12px; top: 50%; width: 24px; height: 24px; border-radius: 50%; background: var(--purple); transform: translateY(-50%); }
.ticket-stub::after { left: auto; right: -12px; }
.ticket-stub .n { font-family: var(--head); font-size: 3rem; line-height: 1; }
.ticket-stub hr { border: 0; border-top: 2px dashed var(--line); margin: 16px 0; }

/* ---------- grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: 8px; }
.step .num { font-family: var(--head); font-size: 2.6rem; color: var(--purple); line-height: 1; margin-bottom: 14px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head p { max-width: 560px; margin: 0; }

.area-card { display: flex; flex-direction: column; gap: 14px; transition: border-color .15s, transform .15s; }
.area-card:hover { border-color: var(--purple); transform: translateY(-2px); }
.area-card .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.area-card .h { font-family: var(--head); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.area-card .h small { font-size: .9rem; color: var(--muted); margin-left: 4px; }
.area-card.empty { opacity: .55; }
.area-card .name { font-weight: 600; }
.area-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

.values { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.values h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.vlist { display: grid; gap: 14px; }
.vlist .card { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.vlist .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-family: var(--head); font-size: 1.2rem; }
.no-cert { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); margin-top: 8px; font-size: .9rem; }
.no-cert s { color: var(--muted); }

.consultant { display: flex; flex-direction: column; gap: 12px; }
.avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-family: var(--head); font-size: 1.2rem; flex: none; }
.consultant .head { display: flex; gap: 14px; align-items: center; }
.stars { color: #f5b301; letter-spacing: 1px; }
.quote { font-size: .92rem; border-left: 3px solid var(--mint); padding-left: 12px; color: var(--ink-3); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; background: var(--lav); color: var(--ink); }
.tag.m { background: var(--mint-soft); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--lav); color: var(--purple); white-space: nowrap; }
.badge.ok { background: var(--mint-soft); color: #047a56; }
.badge.warn { background: #fff1e6; color: #b5520f; }
.badge.bad { background: #fde8e8; color: #b42318; }
.badge.ink { background: var(--ink); color: var(--mint); }

/* ---------- schedule ---------- */
.sched-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sched { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.sched table { border-collapse: collapse; width: 100%; min-width: 860px; }
.sched th, .sched td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 10px; vertical-align: top; text-align: left; }
.sched th { font-family: var(--head); font-weight: 500; background: #faf9fb; font-size: .9rem; position: sticky; top: 0; }
.sched th.today { background: var(--mint-soft); }
.sched td.area { white-space: nowrap; font-weight: 600; font-size: .9rem; width: 200px; background: #fff; position: sticky; left: 0; z-index: 1; }
.sched tr:last-child td { border-bottom: 0; }
.sched td:last-child, .sched th:last-child { border-right: 0; }
.blk { display: flex; align-items: center; gap: 6px; width: 100%; margin-bottom: 5px; padding: 6px 8px; border-radius: 8px; border: 0; cursor: pointer; font: 600 .78rem var(--body); text-align: left; color: var(--ink); transition: transform .1s, box-shadow .1s; }
.blk:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(0,0,0,.08); }
.blk .ini { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-size: .66rem; flex: none; }
.blk .t { font-weight: 400; color: var(--ink-3); margin-left: auto; white-space: nowrap; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
label.f { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
label.f .hint { font-weight: 400; color: var(--muted); font-size: .8rem; }
input, select, textarea { font: 400 1rem var(--body); padding: 11px 13px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; color: var(--text); width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,37,255,.12); }
textarea { min-height: 110px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; font-weight: 400; cursor: pointer; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--purple); flex: none; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; font-size: .88rem; background: #fff; transition: all .12s; }
.pill input:checked + span { border-color: var(--purple); background: var(--purple); color: #fff; }
.pill input:disabled + span { opacity: .4; cursor: not-allowed; }
.pill span small { opacity: .7; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stepper button { width: 44px; height: 46px; border: 0; background: #faf9fb; font-size: 1.3rem; cursor: pointer; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { width: 64px; text-align: center; font: 500 1.4rem var(--head); }
.err ul { margin: 6px 0 0; padding-left: 18px; }
input.invalid, textarea.invalid, select.invalid { border-color: var(--danger); background: #fff7f7; }
label.check.invalid span { color: var(--danger); }
.err { background: #fde8e8; color: #9b1c1c; padding: 10px 14px; border-radius: var(--r); font-size: .9rem; }
.okmsg { background: var(--mint-soft); color: #046344; padding: 10px 14px; border-radius: var(--r); font-size: .9rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 16px; }
legend { font-family: var(--head); font-size: 1.25rem; margin-bottom: 4px; padding: 0; }

.book-layout { display: grid; grid-template-columns: 1.4fr .9fr; gap: 32px; align-items: start; }
.summary { position: sticky; top: 96px; }
.summary .line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.summary .line:last-of-type { border-bottom: 0; }
.summary .tot { font-family: var(--head); font-size: 1.8rem; }
.modes { gap: 10px; }
.mode { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .92rem; }
.mode:has(input:checked) { border-color: var(--purple); background: var(--lav); }
.mode input { width: auto; margin-top: 3px; accent-color: var(--purple); }
.kpis { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)) !important; }
.drop { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1.5px dashed #c9c4cc; border-radius: var(--r); background: #fbfafc; font-size: .92rem; transition: all .15s; }
.drop.over { border-color: var(--purple); background: var(--lav); }
.drop-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--lav); color: var(--purple); display: grid; place-items: center; font-size: 1.2rem; flex: none; }
.linkish { color: var(--purple); text-decoration: underline; cursor: pointer; font-weight: 600; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.thumb img, .thumb .ext { width: 100%; height: 80px; object-fit: cover; display: grid; place-items: center; background: var(--ink); color: var(--mint); font-weight: 700; font-size: .8rem; }
.thumb .tn { font-size: .72rem; padding: 4px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb button { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(36,34,35,.8); color: #fff; cursor: pointer; line-height: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0 4px; }
.gallery img { width: 100%; height: 100px; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); display: block; }
img.ic { object-fit: cover; padding: 0; }
.slot-opt { display: grid; gap: 8px; max-height: 300px; overflow: auto; padding-right: 4px; }
.slot-opt label { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .9rem; }
.slot-opt label:has(input:checked) { border-color: var(--purple); background: var(--lav); }
.slot-opt input { width: auto; accent-color: var(--purple); }

/* ---------- page head ---------- */
.page-head { padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.page-head p { max-width: 640px; }
.page { padding: 48px 0 96px; }

/* ---------- portal ---------- */
.portal { display: grid; grid-template-columns: 230px 1fr; gap: 32px; padding: 40px 0 96px; align-items: start; }
.side { position: sticky; top: 96px; display: grid; gap: 4px; }
.side a { padding: 10px 14px; border-radius: var(--r); text-decoration: none; color: var(--ink); font-size: .95rem; display: flex; justify-content: space-between; align-items: center; }
.side a:hover { background: var(--lav); }
.side a.on { background: var(--ink); color: var(--mint); }
.side .count { font-size: .75rem; background: var(--purple); color: #fff; border-radius: 999px; padding: 1px 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.kpi .v { font-family: var(--head); font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .85rem; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
table.list th, table.list td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: .92rem; vertical-align: middle; }
table.list th { background: #faf9fb; font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.list tr:last-child td { border-bottom: 0; }
table.list tr.click { cursor: pointer; }
table.list tr.click:hover td { background: #fbfaff; }
table.list td.num, table.list th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }

.tb-admin .r { display: grid; grid-template-columns: 220px 1fr auto; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tb-admin .ctl { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }
.tb-admin input { width: 70px; padding: 6px 8px; text-align: center; }
.tb-admin .add { display: inline-flex; gap: 6px; margin-left: 10px; padding-left: 12px; border-left: 1px solid var(--line); }

.tk-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; align-items: start; }
.timeline { display: flex; gap: 0; margin: 18px 0 8px; }
.timeline .s { flex: 1; text-align: center; font-size: .76rem; color: var(--muted); position: relative; padding-top: 24px; }
.timeline .s::before { content: ''; position: absolute; top: 6px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #e2dfe4; z-index: 1; }
.timeline .s::after { content: ''; position: absolute; top: 12px; left: -50%; width: 100%; height: 2px; background: #e2dfe4; }
.timeline .s:first-child::after { display: none; }
.timeline .s.on { color: var(--ink); font-weight: 600; }
.timeline .s.on::before { background: var(--purple); box-shadow: 0 0 0 4px rgba(112,37,255,.15); }
.timeline .s.on::after { background: var(--purple); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.msgs { display: grid; gap: 10px; max-height: 420px; overflow: auto; margin-bottom: 12px; }
.msg { padding: 10px 14px; border-radius: 12px; background: var(--lav); font-size: .93rem; }
.msg.me { background: var(--mint-soft); margin-left: 40px; }
.msg .meta { font-size: .75rem; color: var(--muted); margin-bottom: 2px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 8px; }
.doc .ic { width: 36px; height: 36px; border-radius: 8px; background: var(--ink); color: var(--mint); display: grid; place-items: center; font-size: .7rem; font-weight: 700; flex: none; }
.doc .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.rate-in { display: flex; gap: 4px; }
.rate-in button { background: none; border: 0; font-size: 1.6rem; color: #d9d5db; cursor: pointer; padding: 0 2px; }
.rate-in button.on { color: #f5b301; }
.mail { border: 1px solid var(--line); border-radius: var(--r); background: #fff; margin-bottom: 10px; }
.mail summary { padding: 12px 16px; cursor: pointer; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.mail summary b { font-weight: 600; }
.mail pre { margin: 0; padding: 14px 16px; border-top: 1px solid var(--line); white-space: pre-wrap; font: .9rem/1.5 var(--body); }
.devbar { background: var(--warn); color: #2b1606; text-align: center; font-size: .82rem; padding: 6px; }
.devbar a { color: inherit; font-weight: 700; }

.vendor-tbl td.bars { min-width: 260px; }
.vbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: #eee; }
.vbar span { display: block; height: 100%; }
.score { font-family: var(--head); font-size: 1.6rem; display: inline-block; }
.vendor-tbl td.est { min-width: 320px; }
.crit { display: grid; gap: 3px; margin-top: 8px; }
.crit .cr { display: grid; grid-template-columns: 165px 1fr 26px; gap: 8px; align-items: center; font-size: .74rem; color: var(--muted); }
.crit .cr b { color: var(--ink); font-weight: 600; text-align: right; }
.crit .bar { height: 6px; border-radius: 999px; background: #ece9f1; overflow: hidden; }
.crit .bar i { display: block; height: 100%; background: var(--purple); border-radius: 999px; }

.cv-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--purple); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
h4 .cv-link { font-weight: 500; color: var(--ink); text-decoration-color: rgba(112,37,255,.35); }
h4 .cv-link:hover { color: var(--purple); }
.cvdlg { border: 0; border-radius: var(--r-lg); padding: 0; width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); box-shadow: 0 30px 80px rgba(0,0,0,.3); color: var(--text); }
.cvdlg[open] { display: flex; flex-direction: column; }
.cvdlg::backdrop { background: rgba(36,34,35,.55); }
.cv-head { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.cv-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.cv-body { padding: 20px 24px; overflow: auto; }
.cv-text { white-space: pre-wrap; font-size: .92rem; line-height: 1.6; }
.cv-foot { padding: 14px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }
.testbar { border-style: dashed; border-color: var(--warn); background: #fff8f2; }
.req-band { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--lav); border-color: transparent; }
.summary .err { margin: 14px 0 4px; }
.tb-over { color: #b5520f; font-weight: 600; }
.legal-sec { margin-bottom: 22px; } .legal-sec h3 { font-size: 1.15rem; } .legal-sec ul, .legal-sec ol { padding-left: 20px; display: grid; gap: 6px; } .legal-sec p { margin-bottom: .7em; }
.foot-links { gap: 18px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--mint); padding: 12px 20px; border-radius: var(--r); opacity: 0; transition: all .25s; z-index: 100; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.fine ol { padding-left: 20px; display: grid; gap: 10px; }
footer { background: var(--dark); color: #b9b4b7; padding: 48px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
footer a { color: var(--mint); }
.center { text-align: center; }
.mt { margin-top: 24px; } .mb0 { margin-bottom: 0; }
.big-ok { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; color: var(--ink); }
.narrow { max-width: 560px; margin: 0 auto; }
.flash { animation: flash 1.2s ease; }
@keyframes flash { 0% { color: var(--purple); transform: scale(1.08); } 100% { transform: none; } }

@media (max-width: 960px) {
  .hero .wrap, .pitch .wrap, .values, .book-layout, .tk-grid, .portal { grid-template-columns: 1fr; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  nav.main { display: none; position: absolute; top: 72px; left: 0; right: 0; background: var(--dark); flex-direction: column; align-items: flex-start; padding: 16px 24px 24px; gap: 14px; }
  nav.main.open { display: flex; }
  .burger { display: block; }
  .side { position: static; grid-auto-flow: column; overflow-x: auto; }
  .summary { position: static; }
  .tb-admin .r { grid-template-columns: 1fr; gap: 8px; }
  .tb-admin .ctl { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .tb-hero .big { font-size: 3.6rem; }
  .tb-mini .r { grid-template-columns: 96px 1fr 30px; }
  .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 8px; }
}
