/* Интерфейс в духе Telegram (сгруппированные списки, линейные иконки) в фирменном стиле BotYard:
   тёмно-зелёный фон с мятным свечением, как баннер с капибарой. Светлая или тёмная — по теме Telegram
   (или выбору в приложении: html[data-theme] ставит app.js), цвета — свои, не из темы Telegram.
   Главное действие на экране — мятный градиент (--grad), остальное — спокойное. */
:root {
  --bg: #ffffff;
  --text: #0f1a14;
  --hint: #6a7d73;
  --link: #11915a;
  --accent: #17a463;
  --accent-text: #ffffff;
  --page: #eef4f0;
  --card: #ffffff;
  --section-hint: #6a7d73;
  --danger: #e5484d;
  --line: color-mix(in srgb, var(--hint) 22%, transparent);
  --tint: color-mix(in srgb, var(--accent) 11%, transparent);
  --grad: linear-gradient(135deg, #1fae6c 0%, #0f8250 55%, #0a6440 100%);   /* темнее мяты: белый текст читается */
  --grad-text: #ffffff;
  --glow: rgba(23, 164, 99, 0.28);
  --aura: rgba(23, 164, 99, 0.10);
  --radius: 16px;
  --ok: #2fa84f;
  --warn: #e08a00;
  --go: #2f7fe0;          /* статус «в работе» — синий, не путать с зелёным «готово» */
  --display: "Bahnschrift", "Oswald", "Arial Narrow", sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { background: var(--page); }
body {
  min-height: 100vh;
  background:
    radial-gradient(520px 420px at 105% -5%, var(--aura), transparent 70%),
    radial-gradient(480px 420px at -15% 38%, var(--aura), transparent 70%),
    var(--page);
  background-attachment: fixed;
}
html, body {
  margin: 0;
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  padding: 20px 16px calc(88px + env(safe-area-inset-bottom));
  max-width: 600px;
  margin: 0 auto;
}

h1 { font-family: var(--display); font-stretch: condensed; font-size: 30px; line-height: 1.1; font-weight: 700;
  letter-spacing: 0.01em; text-transform: uppercase; margin: 0 0 8px; }
:root[data-theme="dark"] h1 { color: #e6fff0; text-shadow: 0 0 18px rgba(126, 240, 184, 0.35); }
h2 { font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 4px; }
h3 { font-size: 16px; line-height: 1.3; font-weight: 600; margin: 0; }
p { margin: 0 0 8px; }
a { color: var(--link); text-decoration: none; }

.hint { color: var(--hint); font-size: 13px; }
.muted { color: var(--hint); }
.rich { white-space: pre-line; overflow-wrap: anywhere; }
.rich blockquote { margin: 8px 0; padding: 8px 12px; border-left: 3px solid var(--accent); border-radius: 6px;
  background: var(--tint); }
.rich code, .rich pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }

/* --- загрузка и пусто --- */
.splash { min-height: 60vh; display: grid; place-items: center; }
.spinner {
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--hint); padding: 56px 24px; }
.empty svg.i { width: 36px; height: 36px; stroke-width: 1.5; margin-bottom: 10px; }

/* --- шапка --- */
.brand { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; color: var(--hint);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.logo { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 800; }
.lead { color: var(--hint); font-size: 15px; margin: 0 0 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text); font-size: 13px; font-weight: 500; }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.facts svg.i { width: 16px; height: 16px; color: var(--accent); }

/* --- секции и списки --- */
.section { margin-top: 26px; }
.section-title { margin: 0 16px 7px; color: var(--section-hint); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; }
.section-note { margin: 7px 16px 0; color: var(--hint); font-size: 13px; }
.group { background: var(--card); border-radius: var(--radius); overflow: hidden; }

.row {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 14px; min-height: 52px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left;
}
button.row, .row.tap { cursor: pointer; }
button.row:active, .row.tap:active { background: var(--tint); }
.row + .row { box-shadow: inset 0 0.5px 0 var(--line); }
.row .body { flex: 1; min-width: 0; }
.row .title { font-weight: 500; }
.row .sub { color: var(--hint); font-size: 13px; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.row .end { color: var(--hint); font-size: 14px; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.row .chev { width: 16px; height: 16px; color: var(--hint); opacity: 0.6; }
.ico {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: grid; place-items: center; background: var(--tint); color: var(--accent);
}
.ico svg.i { width: 19px; height: 19px; }

/* --- карточки витрины --- */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 14%, transparent); }
.card .pad { padding: 14px 16px 16px; }
/* обложки — 1280×640: показываем целиком, без обрезки краёв */
.card img.cover { display: block; width: 100%; aspect-ratio: 2 / 1; object-fit: cover; background: var(--page); }
.card .desc { margin-top: 6px; color: var(--text); font-size: 14px; }
.card .desc.clamp { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
/* низ карточки: цена строкой, под ней кнопки; «Хочу такой» — во всю ширину, последней */
.card .foot { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
.card .foot > span:empty { display: none; }
.card .foot .buttons { flex-wrap: wrap; }
.card .foot .btn { flex: 1 1 0; white-space: nowrap; }
.card .foot .btn:not(.soft) { flex-basis: 100%; }
.price { font-weight: 700; font-size: 17px; white-space: nowrap; }
.result { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 12%, transparent);
  color: var(--ok); font-size: 13px; font-weight: 600; }
.result svg.i { width: 15px; height: 15px; }

/* --- кнопки --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; border-radius: 12px; padding: 12px 16px;
  font: inherit; font-weight: 600; cursor: pointer;
  background: var(--grad); color: var(--grad-text); box-shadow: 0 4px 16px var(--glow);
}
.btn.block { width: 100%; }
.btn.small { padding: 8px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn.soft { background: var(--tint); color: var(--accent); box-shadow: none; }
.btn.quiet { background: none; color: var(--accent); padding-left: 4px; padding-right: 4px; box-shadow: none; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn:active:not(:disabled) { opacity: 0.8; }
.buttons { display: flex; gap: 8px; }
.stack { display: grid; gap: 8px; margin-top: 16px; }

/* --- переключатель --- */
.seg {
  display: flex; background: color-mix(in srgb, var(--hint) 14%, transparent);
  border-radius: 10px; padding: 2px; margin-bottom: 16px;
}
.seg button {
  flex: 1; border: 0; background: transparent; color: var(--text);
  padding: 7px 6px; border-radius: 8px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.seg button.on { background: var(--card); font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); }

/* --- формы --- */
.field { margin-bottom: 22px; }
.field > .label { display: block; margin: 0 4px 8px; font-size: 13px; font-weight: 600; color: var(--section-hint);
  text-transform: uppercase; letter-spacing: 0.04em; }
.field > .hint { margin: -2px 4px 8px; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }

/* Примеры ботов на главной */
.group.demo { padding: 12px 14px 14px; }
.group.demo .hint { margin: 0 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 0; border-radius: 999px; padding: 9px 14px; background: var(--tint); color: var(--accent);
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.chip:active { opacity: 0.8; }

/* Стили-картинки в форме дизайна */
.styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.style {
  display: flex; flex-direction: column; gap: 4px; padding: 4px; border: 1.5px solid var(--line);
  border-radius: 12px; background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: left;
}
.style img, .style .noimg {
  width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; background: var(--page);
  display: grid; place-items: center; color: var(--hint);
}
.style .cap { font-size: 12px; line-height: 1.25; padding: 0 2px 2px; overflow-wrap: anywhere; }
.style.on { border-color: var(--accent); background: var(--tint); }
.option {
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  border-radius: 11px; padding: 9px 12px; font: inherit; font-size: 14px; cursor: pointer; text-align: left;
}
.option small { display: block; color: var(--hint); font-size: 12px; }
.option small { margin-top: 2px; line-height: 1.35; }
.opt-price { display: inline-block; margin-left: 6px; color: var(--accent); font-weight: 600; white-space: nowrap; }
.option.on { border-color: var(--accent); background: var(--tint); color: var(--text); }
textarea, input[type="text"] {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; font: inherit;
  background: var(--card); color: var(--text); resize: vertical;
}
textarea:focus, input:focus { outline: none; border-color: var(--accent); }
.switch { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer; }
.switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent); flex: none; }
.inline { display: flex; gap: 8px; }
.inline input { flex: 1; }

/* --- заявки --- */
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--hint); display: inline-block; }
.dot.go { background: var(--go); }
.dot.pay { background: var(--warn); }
.dot.ok { background: var(--ok); }
.dot.off { background: color-mix(in srgb, var(--hint) 60%, transparent); }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--hint); }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.kv + .kv { box-shadow: inset 0 0.5px 0 var(--line); }
.kv .k { color: var(--hint); }
.kv .v { font-weight: 500; text-align: right; }
.group .text { padding: 13px 16px; font-size: 14px; }
.steps { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 14px 16px 12px; }
.steps span { display: block; height: 4px; border-radius: 2px; background: var(--line); }
.steps span.on { background: var(--accent); }
.steps-label { padding: 0 16px 14px; font-size: 13px; color: var(--hint); }
.notice {
  display: flex; gap: 12px; align-items: flex-start;
  border-radius: var(--radius); padding: 14px 16px; margin-top: 12px;
  background: var(--tint);
}
.notice svg.i { color: var(--accent); margin-top: 1px; }
.notice.error { background: color-mix(in srgb, var(--danger) 12%, transparent); }
.notice.error svg.i { color: var(--danger); }

/* --- отзывы --- */
.stars { color: #f5a524; letter-spacing: 1px; font-size: 14px; }
.score { display: flex; align-items: baseline; gap: 10px; padding: 16px; }
.score b { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.review { padding: 14px 16px; }
.review + .review { box-shadow: inset 0 0.5px 0 var(--line); }
.review p { margin: 6px 0 4px; }

/* --- FAQ --- */
details { background: var(--card); }
details + details { box-shadow: inset 0 0.5px 0 var(--line); }
details summary { list-style: none; cursor: pointer; padding: 13px 16px; display: flex; gap: 10px;
  align-items: center; font-weight: 500; }
details summary::-webkit-details-marker { display: none; }
details summary .body { flex: 1; }
details summary svg.i { width: 16px; height: 16px; color: var(--hint); transition: transform 0.15s; }
details[open] summary svg.i { transform: rotate(90deg); }
details .rich { padding: 0 16px 14px; color: var(--text); font-size: 14px; }

/* --- нижние вкладки --- */
#tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: inset 0 0.5px 0 var(--line);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
#tabs button {
  flex: 1; max-width: 120px; border: 0; background: transparent; color: var(--hint);
  font: inherit; font-size: 10.5px; font-weight: 500; cursor: pointer; padding: 3px 0;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
}
#tabs button svg.i { width: 24px; height: 24px; stroke-width: 1.7; }
#tabs button.on { color: var(--accent); }
#tabs button .badge-dot { position: relative; }

/* --- выезжающая панель (формы и заявка) --- */
.sheet {
  position: fixed; inset: 0; z-index: 20; overflow-y: auto;
  background: var(--page);
  animation: rise 0.2s ease-out;
}
.sheet-body { max-width: 600px; margin: 0 auto; padding: 14px 16px calc(28px + env(safe-area-inset-bottom)); }
@keyframes rise { from { transform: translateY(18px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.close {
  border: 0; background: color-mix(in srgb, var(--hint) 16%, transparent); color: var(--hint);
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
}
.close svg.i { width: 16px; height: 16px; stroke-width: 2.2; }

.toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: 440px; margin: 0 auto;
  background: color-mix(in srgb, var(--text) 88%, transparent); color: var(--bg);
  border-radius: 12px; padding: 11px 14px; text-align: center; font-size: 14px;
  animation: rise 0.18s ease-out;
}
.done-mark { width: 56px; height: 56px; border-radius: 50%; margin: 24px auto 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.done-mark svg.i { width: 28px; height: 28px; stroke-width: 2.2; }
.center { text-align: center; }

@media (max-width: 360px) {
  main, .sheet-body { padding-left: 12px; padding-right: 12px; }
}

/* --- прототип будущего бота: «телефон» с чатом --- */
.proto-sheet { z-index: 25; }
.phone {
  max-width: 380px; margin: 4px auto 0; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); background: var(--card);
}
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; box-shadow: inset 0 -0.5px 0 var(--line); }
.phone-top .logo { width: 38px; height: 38px; border-radius: 50%; background: var(--grad); font-size: 19px; }
.phone-top b { display: block; }
.phone-chat {
  min-height: 420px; padding: 16px 12px 18px;
  background: color-mix(in srgb, var(--accent) 6%, var(--page));
}
.bubble {
  background: var(--card); border-radius: 16px 16px 16px 6px; padding: 10px 12px; font-size: 14px;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.06); max-width: 92%;
}
.phone-chat { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.phone-chat > * { width: 100%; }
.bubble { width: auto; }
.bubble.me {
  align-self: flex-end; max-width: 75%; border-radius: 16px 16px 6px 16px; margin-bottom: 4px;
  background: color-mix(in srgb, var(--accent) 22%, var(--card));
}
/* «фото» над сообщением бота: цвет — из прототипа (--tone), эмодзи крупно */
.media {
  max-width: 92%; aspect-ratio: 16 / 9; border-radius: 16px 16px 4px 4px; margin-bottom: -6px;
  display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 52px; line-height: 1;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--tone) 55%, #fff) 0%, var(--tone) 55%,
    color-mix(in srgb, var(--tone) 70%, #000) 100%);
  box-shadow: inset 0 -30px 40px rgba(0, 0, 0, 0.18);
}
.media span { filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.3)); }
.media span:nth-child(2) { font-size: 40px; transform: translateY(10px) rotate(8deg); }
.media span:nth-child(3) { font-size: 34px; transform: translateY(-12px) rotate(-6deg); }
.bubble.under { border-radius: 4px 4px 16px 6px; max-width: 92%; width: 100%; }
.inline-kb { display: grid; gap: 5px; margin-top: 6px; max-width: 92%; }
.kb-row { display: flex; gap: 5px; }
.kb-row button {
  flex: 1; border: 0; border-radius: 10px; padding: 9px 8px; font: inherit; font-size: 13.5px; font-weight: 500;
  background: color-mix(in srgb, var(--card) 72%, transparent); color: var(--text); cursor: pointer;
  backdrop-filter: blur(6px);
}
.kb-row button:active { background: var(--tint); }
/* Заголовок группы в «Решениях» — отбивка от предыдущей карточки */
.section-title.group-head { margin-top: 22px; }
/* Кнопка отправки формы заказа — внизу экрана, пока заполняют форму: на ней сумма по прайсу */
.btn.sticky { position: sticky; bottom: 12px; z-index: 2; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18); }

/* --- тёмная тема ---
   Светлая или тёмная — по теме Telegram (tg.colorScheme) или выбору в приложении: app.js всегда ставит html[data-theme].
   Цвета фирменные (тёмно-зелёный, мята), из темы Telegram не берутся. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {     /* до запуска app.js (заставка) — по системе */
    --text: #e8f6ee; --page: #08110d; --card: #10201a; --bg: #10201a;
  }
}
:root[data-theme="dark"] {
  --bg: #10201a; --text: #e8f6ee; --hint: #83a192; --link: #7fe8b6; --accent: #62dfa0; --accent-text: #05210f;
  --page: #08110d; --card: #10201a; --section-hint: #83a192; --danger: #ff6369; --ok: #62dfa0; --warn: #f0a33a; --go: #5aa9ff;
  --grad: linear-gradient(135deg, #8ff5c3 0%, #3fcf88 50%, #169158 100%); --grad-text: #04200f;
  --glow: rgba(98, 223, 160, 0.30); --aura: rgba(52, 168, 104, 0.22);
  color-scheme: dark;
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] .seg button.on { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }

/* карточка готового бота: «чаще берут» и свёрнутые подробности */
.card h3 .badge, .ready-row .badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 600; vertical-align: middle; background: color-mix(in srgb, #ff7a1a 18%, transparent); color: #d9600b; }
.card details.more { margin-top: 8px; background: none; box-shadow: none; }
.card details.more summary { cursor: pointer; font-size: 14px; color: var(--link); list-style: none;
  display: block; padding: 4px 0; font-weight: 500; }
.card details.more summary::-webkit-details-marker { display: none; }
.card details.more[open] summary { margin-bottom: 6px; }

/* строка под заголовком группы готовых ботов: какие задачи решают */
.group-head .group-about { margin-top: 2px; font-size: 13px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--hint); }
.card details.more .qa { margin: 6px 0 10px; font-size: 14px; }
.card details.more .qa p { margin: 2px 0 0; color: var(--hint); }

/* «Сравнить ботов»: таблица с прокруткой вбок, первая колонка закреплена */
.compare { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; background: var(--card); }
.compare table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.compare th, .compare td { padding: 8px 10px; text-align: center; border-bottom: 0.5px solid var(--line); }
.compare th { font-weight: 600; vertical-align: bottom; min-width: 84px; }
.compare th .price { display: block; margin-top: 2px; font-weight: 400; color: var(--hint); }
.compare td:first-child, .compare th:first-child { text-align: left; position: sticky; left: 0; background: var(--card); }
.compare td.yes { color: var(--accent); font-weight: 700; }
.compare td.no { color: var(--hint); }

/* --- главная: баннер и «с чего начать» --- */
.hero { display: block; width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: 20px;
  margin: 0 0 18px; box-shadow: 0 10px 34px var(--glow); }
.start-hint { margin: 18px 4px 8px; color: var(--section-hint); font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; }
.cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cta-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 118px;
  padding: 14px; border-radius: 18px; border: 0; font: inherit; text-align: left; cursor: pointer;
  background: var(--card); color: var(--text);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 45%, transparent);
}
.cta-tile.main { background: var(--grad); color: var(--grad-text); box-shadow: 0 8px 24px var(--glow); }
.cta-tile .ico { background: color-mix(in srgb, currentColor 14%, transparent); color: inherit; }
.cta-tile.main .ico { background: rgba(255, 255, 255, 0.28); }
.cta-tile b { font-size: 16px; line-height: 1.2; }
.cta-tile small { font-size: 12.5px; line-height: 1.3; opacity: 0.85; }
.cta-tile:active { transform: scale(0.98); }
.cta-pick { margin-top: 10px; }

/* --- пустые заявки: что здесь будет и куда идти --- */
.empty-hero { text-align: center; padding: 28px 18px 22px; background: var(--card); border-radius: var(--radius); }
.orb { width: 76px; height: 76px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--accent) 40%, transparent), var(--tint));
  color: var(--accent); box-shadow: 0 0 34px var(--glow); }
.orb svg.i { width: 34px; height: 34px; stroke-width: 1.6; }
.empty-hero h2 { margin-bottom: 6px; }
.empty-hero p { color: var(--hint); font-size: 14px; margin: 0 auto 16px; max-width: 300px; }
.empty-hero .steps-mini { display: grid; gap: 8px; text-align: left; margin: 0 auto 18px; max-width: 300px; }
.empty-hero .steps-mini span { display: flex; gap: 10px; align-items: center; font-size: 14px; }
.empty-hero .steps-mini i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-style: normal; font-size: 12px; font-weight: 700; background: var(--tint); color: var(--accent); }

/* витрина: фильтр по задачам и компактные строки; карточка открывается панелью */
.chips.filter { position: relative; flex-wrap: nowrap; overflow-x: auto; margin: 4px -16px 6px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips.filter::-webkit-scrollbar { display: none; }
.chip.on { background: var(--grad); color: var(--grad-text); }
.chips.filter .chip { flex: none; white-space: nowrap; }
.ready-row {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px 10px 10px;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.ready-row + .ready-row { box-shadow: inset 0 0.5px 0 var(--line); }
.ready-row:active { background: var(--tint); }
/* значок — квадрат с иконкой из обложки 1280×640 (иконка в x 95–365, y 165–435) */
.ready-row .thumb {
  flex: none; width: 56px; height: 56px; border-radius: 14px; background-color: var(--tint);
  background-size: 265px auto; background-position: -20px -34px; background-repeat: no-repeat;
  display: grid; place-items: center; color: var(--accent);
}
.ready-row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ready-row .title { font-weight: 600; }
.ready-row .sub { font-size: 14px; color: var(--hint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ready-row .price { font-size: 14px; font-weight: 600; color: var(--accent); }
.ready-row .chev { flex: none; width: 18px; height: 18px; color: var(--hint); }
.sheet .card { margin: 0; }
.sheet .card .desc.clamp { display: block; -webkit-line-clamp: unset; }     /* открыли — описание целиком */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .spinner { animation-duration: 1.6s !important; animation-iteration-count: infinite !important; }   /* загрузка видна */
}
