/* фирменные шрифты (OFL): Manrope — текст, Unbounded — заголовки */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/static/fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/static/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/static/fonts/unbounded-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #ffffff;
  --bg2: #f4f4f5;
  --card: #ffffff;
  --line: #e6e6e8;
  --text: #0b0b0c;
  --muted: #6e6e73;
  --accent: #0b0b0c;
  --on-accent: #ffffff;
  --ok: #1f8a4c;
  --warn: #a15c00;
  --bad: #c0362c;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg2: #161618;
  --card: #141416;
  --line: #2a2a2e;
  --text: #f5f5f7;
  --muted: #9a9aa0;
  --accent: #f5f5f7;
  --on-accent: #0b0b0c;
  --ok: #4cc283;
  --warn: #e0a24a;
  --bad: #ff6b5e;
  --shadow: none;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body {
  font: 15px/1.45 Manrope, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
#app { padding: 0 16px calc(96px + var(--safe-b)); max-width: 640px; margin: 0 auto; }

/* загрузка */
.splash { height: 80vh; display: grid; place-content: center; justify-items: center; gap: 22px; }
.splash img { width: 76px; height: 76px; border-radius: 24px; }
.spinner { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--text); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* шапка */
.gem { display: block; width: 34px; height: 34px; flex: 0 0 auto; }
.gem svg { display: block; width: 100%; height: 100%; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand b { display: block; letter-spacing: .34em; font-size: 15px; line-height: 1.2; }
.brand span { color: var(--muted); font-size: 12px; }
.hello { margin: 18px 0 4px; font-size: 27px; line-height: 1.14; font-weight: 750; letter-spacing: -.02em; }
.sub { color: var(--muted); margin: 0 0 16px; }
/* витрина: чёрная карточка с камнем — в обеих темах */
.hero { position: relative; overflow: hidden; margin-top: 14px; padding: 18px 18px 20px; border-radius: 26px; color: #f5f5f7;
  background: radial-gradient(120% 90% at 88% 108%, #3a3a40 0%, #17171a 46%, #0b0b0c 100%); border: 1px solid #232327; }
.hero .brand span, .hero .sub { color: #a4a4ab; }
.hero .hello { margin: 64px 0 8px; max-width: 13em; position: relative; }
.hero .sub { margin: 0; max-width: 19em; font-size: 14px; position: relative; }
.hero .gem.bg { position: absolute; width: 146px; height: 146px; right: -32px; top: -24px; }
.mono { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
  font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.mono.big { width: 54px; height: 54px; border-radius: 17px; font-size: 25px; }

/* промо */
.promo { display: flex; gap: 12px; align-items: center; background: var(--accent); color: var(--on-accent);
  border-radius: var(--radius); padding: 14px 16px; margin: 12px 0 4px; }
.promo .pct { font-size: 22px; font-weight: 800; white-space: nowrap; }
.promo small { display: block; opacity: .7; }

/* сегменты */
.seg { display: flex; gap: 6px; background: var(--bg2); padding: 4px; border-radius: 14px; margin: 16px 0 6px; position: sticky; top: 8px; z-index: 5; }
.seg button { flex: 1; min-width: 0; white-space: nowrap; border: 0; background: transparent; padding: 9px 4px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow); }
:root[data-theme="dark"] .seg button.on { background: #2a2a2e; }
.seg.scroll { overflow-x: auto; scrollbar-width: none; }
.seg.scroll::-webkit-scrollbar { display: none; }
.seg.scroll button { flex: 0 0 auto; padding: 9px 12px; display: inline-flex; align-items: center; }
.hint { color: var(--muted); font-size: 13px; margin: 10px 2px 12px; }

/* сетка сервисов */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.svc { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius);
  padding: 14px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow);
  transition: transform .12s ease; }
.svc:active { transform: scale(.97); }
.svc .em { font-size: 26px; line-height: 1; }
.svc .nm { font-weight: 650; margin-top: 12px; line-height: 1.2; letter-spacing: -.01em; }
.svc .pr { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* экран сервиса */
.head { padding: 18px 0 8px; }
.head .em { font-size: 40px; line-height: 1; }
.head h1 { font-size: 27px; margin: 14px 0 6px; letter-spacing: -.02em; line-height: 1.15; }
.head p { color: var(--muted); margin: 0; }
.list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.tariff { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); width: 100%; }
.tariff.sel { border-color: var(--text); box-shadow: 0 0 0 1px var(--text); }
.tariff .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.tariff .nm { font-weight: 700; font-size: 17px; }
.tariff .sl { color: var(--muted); font-size: 13px; margin-top: 2px; }
.price { font-weight: 750; white-space: nowrap; font-size: 17px; }
.price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-right: 6px; }
.price small { color: var(--muted); font-weight: 500; font-size: 13px; }
.perks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; font-size: 14px; }
.perks li { display: flex; gap: 8px; }
.perks li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--text); }

/* формы и кнопки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); margin-top: 12px; }
.card h3 { margin: 0 0 10px; font-size: 16px; }
.opt { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 14px; margin-top: 8px; }
.opt .dot { flex: 0 0 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); margin-top: 1px; }
.opt.sel { border-color: var(--text); }
.opt.sel .dot { border: 6px solid var(--text); }
.opt b { display: block; }
.opt span { color: var(--muted); font-size: 13px; }
.field { width: 100%; border: 1px solid var(--line); background: var(--bg2); border-radius: 12px; padding: 13px 14px; outline: none; margin-top: 10px; font-size: 16px; }
.field:focus { border-color: var(--text); background: var(--card); }
.err { color: var(--bad); font-size: 13px; margin-top: 8px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; padding: 15px; font-weight: 650; font-size: 16px; background: var(--accent); color: var(--on-accent); margin-top: 10px; transition: opacity .15s, transform .12s; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .45; }
.btn.ghost { background: var(--bg2); color: var(--text); }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--line); }
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(12px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 70%, transparent); z-index: 20; }
.bar .btn { max-width: 608px; margin: 0 auto; }
.sum { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; color: var(--muted); }
.sum b { color: var(--text); }
.sum.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-size: 17px; color: var(--text); font-weight: 700; }
.note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.note + .note { margin-top: 4px; }

/* заявки */
.order { display: block; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.order .row { display: flex; justify-content: space-between; gap: 10px; }
.order .nm { font-weight: 650; }
.order .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 650; padding: 4px 9px; border-radius: 999px; background: var(--bg2); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-new, .st-waiting_payment { color: var(--warn); }
.st-payment_review, .st-paid { color: var(--text); }
.st-account_replace { color: var(--warn); }
.st-done { color: var(--ok); }
.st-rejected { color: var(--bad); }
.st-cancelled { color: var(--muted); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; word-break: break-word; }
.big-code { font-size: 13px; color: var(--muted); }
.alert { border-radius: 14px; padding: 12px 14px; background: var(--bg2); font-size: 14px; margin-top: 12px; }
.alert.bad { color: var(--bad); }
.copy { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--bg2); border-radius: 12px; padding: 12px 14px; margin-top: 10px; border: 0; width: 100%; text-align: left; }
.copy code { font: 600 16px/1.3 ui-monospace, "SF Mono", Menlo, Consolas, monospace; word-break: break-all; }
.copy span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.pre { white-space: pre-wrap; font-size: 14px; }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 20px; margin-top: 12px; text-align: center; color: var(--muted); font-size: 14px; position: relative; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop b { color: var(--text); }
.drop img { max-width: 100%; max-height: 220px; border-radius: 10px; }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }

/* профиль */
.menu { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); margin-top: 12px; box-shadow: var(--shadow); }
.menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: transparent; padding: 15px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.menu button:last-child { border-bottom: 0; }
.menu button span { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats div { background: var(--bg2); border-radius: 14px; padding: 12px; text-align: center; }
.stats b { display: block; font-size: 20px; }
.stats span { color: var(--muted); font-size: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; font-size: 14px; }
.steps li::before { content: counter(s); flex: 0 0 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.section-title { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 2px 4px; }

/* нижние вкладки */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; gap: 4px; padding: 8px 12px calc(8px + var(--safe-b)); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); z-index: 15; }
.tabs button { flex: 1; max-width: 160px; border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabs button.on { color: var(--text); }
.tabs svg { box-sizing: content-box; padding: 3px 16px; border-radius: 999px; transition: background .18s; }
.tabs button.on svg { background: var(--bg2); }
:root[data-theme="dark"] .tabs button.on svg { background: #2a2a2e; }
.tabs[hidden], .toast[hidden] { display: none; }

/* бейджи-счётчики */
.dotn { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; font-weight: 700; }
.tabs button { position: relative; }
.tabs .dotn { position: absolute; top: -1px; left: calc(50% + 8px); min-width: 18px; height: 18px; font-size: 11px; }

/* чат */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 0 8px; }
.chat-head h1 { font-size: 22px; margin: 0; }
.chat-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.chat { display: flex; flex-direction: column; gap: 6px; padding: 8px 0 150px; }
.msg { max-width: 84%; padding: 9px 12px 7px; border-radius: 18px; background: var(--bg2); align-self: flex-start; word-wrap: break-word; white-space: pre-wrap; font-size: 15px; }
.msg.mine { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 6px; }
.msg:not(.mine) { border-bottom-left-radius: 6px; }
.msg .meta { display: block; font-size: 11px; opacity: .6; margin-top: 3px; text-align: right; white-space: nowrap; }
.msg .tag { display: block; font-size: 11px; font-weight: 650; opacity: .75; margin-bottom: 3px; }
.msg img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin: 2px 0 4px; cursor: zoom-in; }
.msg a.doc { display: inline-flex; gap: 6px; color: inherit; font-weight: 600; }
.day { align-self: center; font-size: 12px; color: var(--muted); padding: 6px 0; }
.composer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 12px calc(10px + var(--safe-b)); }
.composer .inner { max-width: 616px; margin: 0 auto; }
.composer .row { display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); background: var(--bg2); border-radius: 20px; padding: 10px 14px; font: inherit; font-size: 16px; color: var(--text); max-height: 140px; outline: none; }
.composer textarea:focus { border-color: var(--text); }
.iconbtn { flex: 0 0 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--bg2); color: var(--text); position: relative; overflow: hidden; }
.iconbtn.send { background: var(--accent); color: var(--on-accent); }
.iconbtn[disabled] { opacity: .4; }
.iconbtn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.iconbtn input { position: absolute; inset: 0; opacity: 0; }
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 11px; font-size: 13px; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.attach { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); padding-bottom: 8px; }
.attach button { border: 0; background: none; color: var(--bad); font-size: 13px; padding: 0; }

/* админка */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.kpi { text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); }
.kpi b { display: block; font-size: 24px; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13px; }
.kpi.hot { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.kpi.hot span { color: inherit; opacity: .75; }
.search { position: relative; }
.search .field { padding-left: 38px; margin-top: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.receipt-img { width: 100%; border-radius: 14px; margin-top: 10px; background: var(--bg2); min-height: 80px; }
.acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.acts .btn { margin-top: 0; }
.acts .wide { grid-column: 1 / -1; }
.btn.ok { background: var(--ok); color: #fff; }
.profit { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin: 2px 0 4px; color: var(--ok); }
.profit.neg { color: var(--bad); }
.kv dt { white-space: pre; }
.who { color: var(--muted); font-size: 13px; }
.stat-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.stat-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 0; }
.stat-table td { padding: 8px 0; border-top: 1px solid var(--line); }
.stat-table td:not(:first-child), .stat-table th:not(:first-child) { text-align: right; }

/* нижний лист (ввод причины и т.п.) */
.sheet-bg { position: fixed; inset: 0; background: rgba(0,0,0,.42); z-index: 60; display: flex; align-items: flex-end; animation: fade .18s ease; }
.sheet { width: 100%; max-width: 640px; margin: 0 auto; background: var(--bg); border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + var(--safe-b)); }
.sheet h3 { margin: 0 0 4px; font-size: 18px; }
.sheet p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.sheet textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line); background: var(--bg2); border-radius: 14px; padding: 12px; font: inherit; font-size: 16px; color: var(--text); outline: none; }
.sheet .acts { margin-top: 10px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 70; display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

/* отзывы */
.stars-input { display: flex; justify-content: center; gap: 6px; margin: 14px 0 6px; }
.stars-input button { border: 0; background: none; font-size: 40px; line-height: 1; padding: 2px; color: var(--line); transition: transform .12s; }
.stars-input button.on { color: #f5b400; }
.stars-input button:active { transform: scale(.9); }
.stars-hint { text-align: center; color: var(--muted); font-size: 14px; min-height: 20px; }
.st { color: #f5b400; letter-spacing: 1px; white-space: nowrap; }
.st i { color: var(--line); font-style: normal; }
.rev { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.rev .row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.rev .svc-tag { display: inline-block; font-size: 12px; font-weight: 650; background: var(--bg2); border-radius: 999px; padding: 3px 9px; margin-top: 8px; }
.rev p { margin: 8px 0 0; white-space: pre-wrap; word-wrap: break-word; }
.rating-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 12px 16px; margin-top: 12px; box-shadow: var(--shadow); }
.rating-bar b { font-size: 22px; }
.rating-bar span { color: var(--muted); font-size: 13px; }
.svc .rt { font-size: 12px; color: var(--muted); margin-top: 2px; }
.my-review { display: flex; justify-content: space-between; align-items: center; gap: 10px; }

.toast { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 50; max-width: calc(100% - 32px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.fade { animation: fade .22s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.linkbtn { border: 0; background: none; padding: 0; color: inherit; font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }

/* заголовки — Unbounded (шире обычного, поэтому чуть мельче) */
.hello, .head h1, .chat-head h1, .brand b, .mono, .profit, .kpi b, .sheet h3, .empty b, .stats b, .rating-bar b { font-family: Unbounded, Manrope, sans-serif; }
.hello { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.head h1 { font-size: 23px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.chat-head h1 { font-size: 19px; }
.brand b { font-size: 19px; font-weight: 700; letter-spacing: 0; }
.mono { font-size: 16px; font-weight: 700; } .mono.big { font-size: 22px; }
.profit { font-size: 28px; font-weight: 700; } .kpi b { font-size: 21px; } .stats b { font-size: 17px; }
.sheet h3 { font-size: 16px; } .empty b { font-size: 15px; } .rating-bar b { font-size: 17px; }
.tariff .nm, .price, .svc .nm, .order .nm, .btn, .seg button { font-weight: 700; }

/* ───── анимации ───── */
/* fill-mode backwards: после окончания transform снимается — иначе fixed-панели «прилипнут» к экрану */
.in-fwd { animation: inFwd .3s cubic-bezier(.2, .8, .2, 1) backwards; }
.in-back { animation: inBack .3s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes inFwd { from { opacity: 0; transform: translateX(32px); } }
@keyframes inBack { from { opacity: 0; transform: translateX(-32px); } }
/* карточки сервисов — волной */
.svc { animation: rise .45s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 35ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }
/* камень на витрине: медленно парит, по граням пробегает блик */
.hero .gem.bg { animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(6px) rotate(-2deg); } }
.gem .glint { position: absolute; inset: 0; pointer-events: none;
  clip-path: polygon(50% 2%, 91.6% 26%, 91.6% 74%, 50% 98%, 8.4% 74%, 8.4% 26%);
  background: linear-gradient(110deg, transparent 36%, rgba(255, 255, 255, .45) 50%, transparent 64%) 100% 0 / 300% 100% no-repeat;
  animation: glint 8s ease-in-out 1.4s infinite; }
@keyframes glint { 0% { background-position: 100% 0; } 22%, 100% { background-position: 0 0; } }
/* вкладки: иконка «подпрыгивает», подложка плавно появляется */
.tabs button.on svg { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes pop { from { transform: scale(.82); } }
/* звёзды отзыва зажигаются по очереди */
.stars-input button.on { animation: star .32s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes star { from { transform: scale(.6); color: var(--line); } }
/* нижний лист выезжает, уведомление опускается */
.sheet { animation: sheetUp .28s cubic-bezier(.2, .8, .2, 1) backwards; }
@keyframes sheetUp { from { transform: translateY(40px); opacity: .6; } }
.toast { animation: toastIn .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -10px); } }

/* слабый телефон / энергосбережение / «уменьшить движение» — без анимаций */
.calm *, .calm *::before, .calm *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
