/* КТО? — сайт. Графит, крем, оранжевый (палитра из kto-platform/DESIGN.md). Сначала телефон. */
@font-face {
  font-family: Golos;
  src: url("/s/fonts/GolosText.ttf") format("truetype");
  font-weight: 400 800;
  font-display: swap;
}

:root {
  --ground: #222321;
  --ground-2: #2c2d2a;
  --line-dark: #3b3c38;
  --cream: #f5f2e9;
  --cream-2: #ebe7da;
  --ink: #232521;
  --muted-light: #bcbdb6;
  --muted: #5e6258;
  --line: #d8d4c6;
  --orange: #f78343;
  --orange-hover: #ff9a5f;
  --orange-ink: #9a3d06;
  --ok: #2f7547;
  --error: #a12e29;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Golos, "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--cream);
  background: var(--ground);
  text-rendering: optimizeLegibility;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; }
a { color: inherit; text-underline-offset: 0.2em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: 0.55; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.surface :focus-visible { outline-color: var(--orange-ink); }
[hidden] { display: none !important; }
::selection { background: var(--orange); color: var(--ink); }

.skip { position: fixed; left: 16px; top: 8px; z-index: 50; padding: 10px 14px; background: var(--cream); color: var(--ink); transform: translateY(-200%); }
.skip:focus { transform: none; }
.banner { padding: 8px 16px; text-align: center; font-size: 0.8125rem; background: #3a2a1d; color: #ffd2b5; }

/* ── Шапка ── */
.top {
  display: flex; align-items: center; gap: 14px;
  width: min(1040px, 100% - 32px); margin: 0 auto; min-height: 68px;
}
.brand { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.05em; text-decoration: none; line-height: 1; }
.brand span { color: var(--orange); }
.brand.small { font-size: 1.15rem; }
.city { display: inline-flex; align-items: center; gap: 4px; font-size: 0.875rem; color: var(--muted-light); }
.city svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a, .nav button {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px;
  font-size: 0.9rem; font-weight: 600; text-decoration: none; border-radius: 999px;
}
.nav a:hover, .nav button:hover { color: var(--orange); }
.nav .pill { border: 1px solid var(--line-dark); }
.nav .hide-sm { display: none; }
/* Переключатель кабинетов «Я заказываю / Я мастер» — у кого есть профиль мастера */
.nav .modes { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-dark); border-radius: 999px; }
.nav .modes a { min-height: 34px; padding: 0 12px; font-size: 0.85rem; color: var(--muted-light); white-space: nowrap;
  transition: background-color 0.2s var(--out), color 0.2s var(--out); }
.nav .modes a.on { background: var(--cream); color: var(--ink); }
.nav .modes a.master.on { background: var(--orange); color: var(--ink); }
.nav .modes a.on:hover { color: var(--ink); }
.page-head .eyebrow { display: block; margin-bottom: 2px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-light); }
.page-head .eyebrow.master { color: var(--orange); }
/* В кабинете мастера — оранжевая черта под шапкой: видно, в каком вы кабинете */
body[data-mode="master"] .top { box-shadow: inset 0 -2px 0 var(--orange); }
.invite { margin-top: 28px; }
.invite .btn { margin-top: 14px; }
@media (max-width: 719px) {
  .top:has(.modes) .city { display: none; }
  .nav .modes a { padding: 0 10px; }
}

main { flex: 1; width: min(1040px, 100% - 32px); margin: 0 auto; padding: 8px 0 56px; }
main:focus { outline: none; }

/* ── Главная ── */
.hero { max-width: 680px; margin: 20px auto 0; }
.hero h1 { font-size: clamp(2.1rem, 8vw, 3.2rem); line-height: 1.08; font-weight: 700; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { margin-top: 14px; padding: 0; font-size: 1.05rem; color: var(--muted-light); max-width: 52ch; }

.surface { background: var(--cream); color: var(--ink); border-radius: var(--radius); color-scheme: light; }
.composer { margin-top: 24px; padding: 14px; }
.composer label { display: block; padding: 4px 4px 8px; font-weight: 700; }
textarea, .input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 12px; background: #fffdf7;
  padding: 12px 14px; color: var(--ink); font-size: 1.05rem; line-height: 1.45;
}
textarea { min-height: 120px; resize: vertical; }
textarea:focus, .input:focus { outline: none; border-color: var(--ink); }
textarea::placeholder, .input::placeholder { color: #8b8e85; }
.hint { margin: 8px 4px 0; font-size: 0.85rem; color: var(--muted); }
.photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.photos:empty { display: none; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; background: var(--cream-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.uploading img { opacity: 0.5; }
.thumb .spinner { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -9px; color: var(--ink); }
.thumb.error { outline: 2px solid var(--error); }
.thumb-err { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 800; background: rgba(161, 46, 41, 0.6); }
.thumb-x { position: absolute; right: 4px; top: 4px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 20, 18, 0.7); color: #fff; }
.thumb-x svg { width: 16px; height: 16px; }
.photo-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 10px; }
.photo-row .hint { margin: 0; }
.photo-row .btn { color: var(--ink); border-color: var(--line); }
.on-dark-photos { margin-top: 10px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--ground-2); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 2px; }
.examples button {
  padding: 7px 12px; border-radius: 999px; background: var(--cream-2); font-size: 0.875rem; color: var(--ink);
}
.examples button:hover { background: #e2ddcd; }
.composer .actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  background: var(--orange); color: #1d1e1b; font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: background-color 160ms ease-out, transform 120ms ease-out;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn.wide { width: 100%; }
.btn.dark { background: var(--ink); color: var(--cream); }
.btn.dark:hover { background: #34362f; }
.btn.ghost { background: transparent; color: inherit; border: 1.5px solid currentColor; }
.btn.ghost:hover { background: rgba(127, 127, 127, 0.08); }
.btn.tg { background: #2aabee; color: #fff; }
.btn.vk { background: #0077ff; color: #fff; }
.btn.vk:hover { background: #2a8cff; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 0.92rem; }
.note.center { text-align: center; margin-top: 10px; }
.text-link { color: var(--orange-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 0.2em; }
.methods { margin-top: 28px; }
.method { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ground-2); border: 1px solid var(--line-dark); }
.method small { display: block; color: var(--muted-light); font-weight: 400; font-size: 0.8rem; }
.method .ok-mark { color: #a6dcb4; }
.vk-mini .btn { margin-top: 0; }
.btn.tg:hover { background: #3cb6f2; }
.btn svg { width: 20px; height: 20px; }
.link { color: var(--orange-ink); font-weight: 600; text-decoration: underline; }
.on-dark .link, .link.light { color: var(--orange); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.how { max-width: 680px; margin: 40px auto 0; }
.how h2, .section-title { font-size: 1.35rem; font-weight: 700; }
.steps { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--ground-2); }
.steps .num {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--orange); color: var(--ink); font-weight: 800;
}
.steps b { display: block; }
.steps span { color: var(--muted-light); font-size: 0.95rem; }
.master-cta { max-width: 680px; margin: 28px auto 0; padding: 20px; border-radius: var(--radius); border: 1.5px solid var(--line-dark); }
.master-cta p { margin-top: 6px; color: var(--muted-light); }
.master-cta .btn { margin-top: 14px; }

/* ── Черновик заявки ── */
.flow { max-width: 680px; margin: 12px auto 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted-light); font-weight: 600; }
.back:hover { color: var(--cream); }
.quote { margin-top: 10px; padding: 14px 16px; border-left: 3px solid var(--orange); background: var(--ground-2); border-radius: 0 12px 12px 0; color: var(--cream); }
.quote small { display: block; margin-top: 6px; color: var(--muted-light); }
.card { margin-top: 16px; padding: 20px 18px; }
.card h2 { font-size: 1.3rem; font-weight: 700; }
.card .sub { margin-top: 4px; color: var(--muted); }
.question { margin-top: 4px; }
.question h2 { font-size: 1.25rem; }
.step-meta { font-size: 0.8125rem; font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.06em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  min-height: 44px; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  background: #fffdf7; color: var(--ink); font-weight: 600; text-align: left; line-height: 1.25;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip.soft { background: transparent; border-style: dashed; color: var(--muted); font-weight: 500; }
.chip-group-title { margin-top: 16px; font-size: 0.875rem; font-weight: 700; color: var(--muted); }
.catalog { margin-top: 12px; display: grid; gap: 6px; }
.catalog details { border: 1.5px solid var(--line); border-radius: 12px; background: #fffdf7; }
.catalog summary { padding: 12px 14px; font-weight: 700; cursor: pointer; list-style: none; }
.catalog summary::-webkit-details-marker { display: none; }
.catalog .chips { margin: 0; padding: 0 12px 12px; }

.rows { margin: 14px 0 0; display: grid; }
.row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row dt { color: var(--muted); font-size: 0.9rem; }
.row dd { margin: 0; font-weight: 650; }
.row dd.empty { color: var(--muted); font-weight: 500; }
.row .edit { color: var(--orange-ink); font-weight: 600; font-size: 0.9rem; min-height: 36px; padding: 0 4px; }
.row-editor { grid-column: 1 / -1; }
.row-editor .chips { margin-top: 2px; }
.inline-input { display: flex; gap: 8px; margin-top: 10px; }
.inline-input .input { flex: 1; font-size: 1rem; padding: 10px 12px; }
.inline-input .btn { min-height: 46px; padding: 0 16px; }
.note { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.notice { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: #fbe7d9; color: #5a2a0c; font-size: 0.95rem; }
.notice.ok { background: #e2efe3; color: #1f4a2c; }
.notice.warn { background: #fde8d7; color: #6b2a06; border: 1px solid #f3b98e; font-size: 0.92rem; }
.complain-link { display: block; margin-top: 12px; color: var(--muted); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 0.2em; }
.notice.dark { background: var(--ground-2); color: var(--cream); }
.card .btn.wide { margin-top: 18px; }

/* ── Заявки ── */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 680px; margin: 16px auto 0; }
.page-head h1 { font-size: 1.7rem; }
.list { max-width: 680px; margin: 14px auto 0; display: grid; gap: 10px; }
.req {
  display: block; padding: 16px 18px; text-decoration: none; border-radius: 16px;
  background: var(--ground-2); border: 1px solid var(--line-dark);
}
.req:hover { border-color: #55574f; }
.req h3 { font-size: 1.08rem; }
.req p { margin-top: 4px; color: var(--muted-light); font-size: 0.92rem; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.badge.open { background: #3b2b1f; color: #ffb88c; }
.badge.offers { background: var(--orange); color: var(--ink); }
.badge.closed { background: #33342f; color: var(--muted-light); }
.badge.done { background: #23392a; color: #a6dcb4; }
.req .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.empty-state { max-width: 680px; margin: 30px auto 0; text-align: center; color: var(--muted-light); }
.empty-state .btn { margin-top: 16px; }

.detail { max-width: 680px; margin: 0 auto; }
.detail .card dl { margin-top: 10px; }
.waiting { display: flex; gap: 14px; align-items: flex-start; }
.pulse { width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(247, 131, 67, 0.6); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(247, 131, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 131, 67, 0); } }
.offer { margin-top: 12px; padding: 18px; }
.offer-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.offer h3 { font-size: 1.08rem; }
.stars { color: var(--orange-ink); font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.offer .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 12px; }
.offer .facts dt { color: var(--muted); }
.offer .facts dd { margin: 0; font-weight: 650; }
.offer .msg { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--cream-2); }
.offer .about { margin-top: 10px; color: var(--muted); font-size: 0.92rem; }
.offer .btn { margin-top: 14px; }
.contact { display: grid; gap: 8px; margin-top: 14px; }
.rating { display: flex; gap: 6px; margin-top: 12px; }
.rating button { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: #fffdf7; font-size: 1.4rem; color: #b9b5a6; }
.rating button[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); }
.detail .section-title { margin-top: 24px; }
.note.on-dark { color: var(--muted-light); margin-top: 18px; }
.danger-link { display: inline-block; margin-top: 18px; color: var(--muted-light); font-size: 0.9rem; text-decoration: underline; }

/* ── Окно входа ── */
.sheet { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(10, 10, 9, 0.6); }
.sheet-card {
  position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0;
  background: var(--cream); color: var(--ink); color-scheme: light;
  animation: up 200ms ease-out;
}
@keyframes up { from { transform: translateY(24px); opacity: 0.4; } }
.sheet-card h2 { font-size: 1.35rem; padding-right: 36px; }
.sheet-card .sub { margin-top: 6px; color: var(--muted); }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.sheet-close:hover { background: var(--cream-2); color: var(--ink); }
.sheet-card .btn { margin-top: 16px; }
.or { display: flex; align-items: center; gap: 10px; margin: 18px 0 2px; color: var(--muted); font-size: 0.85rem; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 0.92rem; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--ink); flex: none; }
.field-label { display: block; margin-top: 14px; font-weight: 700; font-size: 0.95rem; }
.field-label + .input { margin-top: 6px; }
.err { margin-top: 12px; color: var(--error); font-weight: 600; font-size: 0.92rem; }
.wait-line { display: flex; align-items: center; gap: 10px; margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--cream); color: var(--ink);
  font-weight: 600; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* ── Подвал ── */
.foot { width: min(1040px, 100% - 32px); margin: 0 auto; padding: 22px 0 calc(26px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-dark); color: var(--muted-light); font-size: 0.875rem; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.foot-row + .foot-row { margin-top: 10px; }
.foot .links a { color: var(--muted-light); }
.foot .links a:hover { color: var(--cream); }

@media (min-width: 720px) {
  .nav .hide-sm { display: inline-flex; }
  .hero { margin-top: 48px; }
  .composer { padding: 20px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .sheet { align-items: center; }
  .sheet-card { border-radius: 22px; padding: 28px 26px; }
  .card { padding: 26px 26px; }
  .row { grid-template-columns: 120px 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.text-link.light { color: var(--orange); }
.push-box { margin-top: 12px; }
.btn.dark-ghost { background: transparent; color: var(--cream); border: 1.5px solid var(--line-dark); }
.btn.dark-ghost:hover { background: var(--ground-2); }
.install-steps { margin: 14px 0 0; padding-left: 20px; display: grid; gap: 8px; }
/* Полоска «Установите приложение» — только на телефоне; на компьютере кнопка словами в шапке */
.install-bar {
  display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px 12px;
  width: min(1040px, 100% - 32px); margin: 0 auto 8px; padding: 12px 8px 12px 12px;
  border-radius: 14px; background: var(--ground-2); border: 1px solid var(--line-dark);
}
.install-bar[hidden] { display: none; }
.install-icon { width: 40px; height: 40px; border-radius: 10px; }
.install-text { min-width: 0; display: grid; gap: 2px; line-height: 1.25; }
.install-text b { font-size: 0.9375rem; }
.install-text small { font-size: 0.8125rem; color: var(--muted-light); }
.install-go {
  grid-column: 1 / -1; margin-right: 4px; min-height: 46px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; text-decoration: none;   /* ссылка на RuStore */
  background: var(--orange); color: #1d1e1b; font-weight: 700; font-size: 1rem;
}
.install-go:hover { background: var(--orange-hover); }
.install-x { display: grid; place-items: center; width: 36px; height: 40px; color: var(--muted-light); }
.install-x svg { width: 18px; height: 18px; }
.install-x:hover { color: var(--cream); }
/* Кабинет мастера: заявки из групп VK */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.master-cta .cta-row .btn { margin-top: 0; }
.hero .cta-row { margin-top: 22px; }
.catalog .picked { color: var(--orange-ink); }
.muted { color: var(--muted); font-weight: 400; }
.master-sum { margin-top: 0; color: var(--cream); font-weight: 600; }
.notify-box > * + * { margin-top: 10px; }
.notify-box .push-box { margin-top: 10px; }
.lead { padding: 16px 16px 14px; }
.lead-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.lead-cat { font-size: 0.8125rem; font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: 0.03em; }
.lead-time { flex: none; font-size: 0.8125rem; color: var(--muted); }
.lead-text { margin-top: 8px; white-space: pre-line; overflow-wrap: anywhere; }
.lead-meta { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }
.lead .btn { margin-top: 12px; }
.foot-actions { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 6px; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 42px; padding: 0 6px;
  border-radius: 999px; border: 1.5px solid var(--line-dark); color: var(--muted-light); font-weight: 700;
  font-size: 0.84rem; line-height: 1.15; text-align: center;
}
.tab[aria-selected="true"] { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.tab .count { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--ground-2); color: var(--cream); font-size: 0.78rem; text-align: center; }
.tab[aria-selected="true"] .count { background: var(--cream-2); color: var(--ink); }
.tab .count.hot { background: var(--orange); color: var(--ink); }
.lead .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin-top: 10px; font-size: 0.95rem; }
.lead .facts dt { color: var(--muted); }
.lead .facts dd { margin: 0; font-weight: 650; }
.lead .gallery { margin-top: 12px; }
.lead textarea, .field-label + textarea { margin-top: 6px; }
.list .section-title.flow-gap { margin-top: 18px; }
.offer-form { margin-top: 6px; border-top: 1px solid var(--line); }
.status-line { margin-top: 10px; font-weight: 700; color: var(--muted); }
.deal-fail { margin-top: 10px; }
.deal-fail summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 8px 0; }
.deal-fail .chips { margin-top: 4px; }
.inbox-item { padding: 12px 14px; border-radius: 12px; background: var(--ground-2); border: 1px solid var(--line-dark); }
.inbox-item p { margin-top: 4px; white-space: pre-line; overflow-wrap: anywhere; }
.foot .links button { color: var(--muted-light); font-size: inherit; }
.foot .links button:hover { color: var(--cream); }
.foot .links button[hidden] { display: none; }
@media (min-width: 720px) {
  .install-bar { display: none; }
}
.notify-box { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--ground-2); border: 1px solid var(--line-dark); }
.notify-box > p:first-child { margin-bottom: 10px; color: var(--cream); }

/* ── Движение «на пружинах» (08.10.2026, по мотивам kinetics.colorion.co — свой код). Только transform и opacity:
   не тормозит на слабых телефонах. «Уменьшить движение» в настройках телефона выключает всё (правило выше). ── */
:root {
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);        /* с лёгким перелётом */
  --spring-soft: cubic-bezier(0.22, 1.25, 0.36, 1);   /* мягче — для крупных вещей */
  --out: cubic-bezier(0.22, 1, 0.36, 1);
}
/* Кнопки, чипы, вкладки: при нажатии сжимаются и пружинят обратно */
.btn, .install-go, .chip, .tab {
  transition: background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out, transform 340ms var(--spring);
}
.btn:active, .install-go:active, .chip:active, .tab:active { transform: scale(0.95); transition-duration: 160ms, 160ms, 160ms, 90ms; }
.btn:disabled:active { transform: none; }
/* Отметили чип — подпрыгнул */
.chip.pop { animation: pop 380ms var(--spring); }
@keyframes pop { 0% { transform: scale(0.92); } 55% { transform: scale(1.07); } 100% { transform: scale(1); } }
/* Отправлено: кнопка становится зелёной и рисует галочку */
.btn.ok, .btn.ok:disabled { background: #2f9e5b; color: #fff; opacity: 1; animation: pop 420ms var(--spring); }
.btn .check { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 360ms 120ms var(--out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Новые карточки появляются снизу по очереди */
.enter { animation: rise 520ms var(--spring-soft) both; }
.enter.d1 { animation-delay: 70ms; }
.enter.d2 { animation-delay: 140ms; }
.enter.d3 { animation-delay: 210ms; }
.enter.d4 { animation-delay: 280ms; }
.enter.d5 { animation-delay: 350ms; }
.enter.d6 { animation-delay: 420ms; }
.enter.d7 { animation-delay: 490ms; }
.enter.d8 { animation-delay: 560ms; }
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
/* Число выросло (пришёл отклик) — подпрыгнуло */
.bump { display: inline-block; animation: bump 560ms var(--spring); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
/* Сообщение снизу проскакивает и встаёт на место */
.toast.in { animation: toast-in 460ms var(--spring); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 24px) scale(0.96); } }
/* Вкладки кабинета: подсветка переезжает к выбранной */
.tabs { position: relative; }
.tab-ind { position: absolute; left: 0; top: 0; bottom: 0; width: calc((100% - 12px) / 3); border-radius: 999px; background: var(--cream);
  transform: translateX(calc(var(--i, 0) * (100% + 6px))); transition: transform 440ms var(--spring-soft); pointer-events: none; }
.tab { position: relative; z-index: 1; background: transparent; }
.tab[aria-selected="true"] { background: transparent; border-color: transparent; }
/* Переключатель «Получать заявки» */
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px;
  border-radius: 14px; background: var(--ground-2); border: 1px solid var(--line-dark); font-weight: 600; }
.switch { flex: none; position: relative; width: 52px; height: 32px; border-radius: 999px; background: #4a4c46; transition: background-color 220ms ease-out; }
.switch[aria-checked="true"] { background: #2f9e5b; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); transition: transform 400ms var(--spring); }
.switch[aria-checked="true"] .knob { transform: translateX(20px); }

/* ── Вторая порция движения (08.10.2026) ── */
/* «Думает»: три прыгающие точки */
.dots { display: inline-flex; gap: 4px; align-items: center; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-5px); opacity: 1; } }
.waiting-title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--cream); }
/* Точка-маячок в шапке: есть новое */
.nav .pill, .nav a { position: relative; }
.nav .dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(247, 131, 67, 0.7); animation: ping 1.8s ease-out 4; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(247, 131, 67, 0); } 100% { box-shadow: 0 0 0 0 rgba(247, 131, 67, 0); } }
/* Плашка сверху: новый отклик / новая заявка */
.drop { position: fixed; left: 50%; top: calc(10px + env(safe-area-inset-top)); z-index: 70; transform: translateX(-50%);
  width: min(440px, calc(100% - 24px)); padding: 12px 16px; border-radius: 14px; background: var(--cream); color: var(--ink);
  font-weight: 650; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); text-align: left; animation: drop-in 520ms var(--spring); }
.drop.out { animation: drop-out 260ms ease-in forwards; }
@keyframes drop-in { from { transform: translate(-50%, -140%); } }
@keyframes drop-out { to { transform: translate(-50%, -140%); opacity: 0; } }
/* Отмена: «Заявка закроется…» с тающей полоской */
.snack { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 65; transform: translateX(-50%);
  width: min(440px, calc(100% - 24px)); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 12px;
  padding: 12px 14px 0; border-radius: 14px; background: var(--cream); color: var(--ink); font-weight: 600; overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); animation: toast-in 460ms var(--spring); }
.snack button { color: var(--orange-ink); font-weight: 800; padding: 6px 4px; }
.snack .bar { grid-column: 1 / -1; height: 4px; margin: 6px -14px 0; background: var(--orange); transform-origin: left;
  animation: drain 5s linear forwards; }
@keyframes drain { to { transform: scaleX(0); } }
/* Праздник: мастер выбран */
.confetti { position: fixed; z-index: 80; width: 8px; height: 12px; border-radius: 2px; pointer-events: none;
  animation: burst 900ms cubic-bezier(0.2, 0.8, 0.3, 1) forwards; }
@keyframes burst {
  0% { transform: translate(0, 0) rotate(0); opacity: 1; }
  100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; }
}
/* Ошибка: поле или форма коротко «мотают головой» */
.shake { animation: shake 460ms cubic-bezier(0.36, 0.07, 0.19, 0.97); }
@keyframes shake { 15% { transform: translateX(-6px); } 30% { transform: translateX(5px); } 45% { transform: translateX(-4px); }
  60% { transform: translateX(3px); } 75% { transform: translateX(-2px); } 90% { transform: translateX(1px); } }
/* Шаги уточнения заявки */
.stepbar { display: flex; gap: 5px; margin-top: 8px; }
.stepbar i { flex: 1; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; position: relative; }
.stepbar i.done { background: var(--orange); }
.stepbar i.now::after { content: ""; position: absolute; inset: 0; background: var(--orange); border-radius: inherit;
  transform-origin: left; animation: fill 600ms var(--out) forwards; opacity: 0.55; }
@keyframes fill { from { transform: scaleX(0); } }
/* Заготовки, пока грузится */
.skel { padding: 18px; border-radius: var(--radius); background: var(--ground-2); display: grid; gap: 10px; }
.skel i { display: block; height: 14px; border-radius: 7px;
  background: linear-gradient(90deg, #34352f 25%, #45463f 50%, #34352f 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel i:first-child { width: 55%; height: 18px; }
.skel i.short { width: 35%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
/* Разделы раскрываются плавно (Chrome 131+; в остальных — как раньше, сразу) */
:root { interpolate-size: allow-keywords; }
details::details-content { block-size: 0; overflow: hidden; transition: block-size 340ms var(--out), content-visibility 340ms allow-discrete; }
details[open]::details-content { block-size: auto; }
/* Форма отклика вырастает в карточке */
.offer-form { animation: grow 380ms var(--out); }
@keyframes grow { from { opacity: 0; transform: translateY(-8px); } }
/* Звёзды: подсветка до наведённой и щелчок при выборе */
.rating button { transition: color 120ms, border-color 120ms, transform 300ms var(--spring); }
.rating button:hover, .rating button:has(~ button:hover) { color: var(--orange); border-color: var(--orange); }
.rating button.pop { animation: pop 380ms var(--spring); }

/* ── Заголовки: слово в плашке сменяется, по буквам пробегает волна (08.10.2026) ── */
.rot {
  display: inline-grid; vertical-align: bottom; justify-items: start; overflow: hidden; white-space: nowrap;
  padding: 0 0.2em; margin: 0 0.03em; border-radius: 0.2em; line-height: 1.12;
  background: var(--orange); color: var(--ink); transition: width 560ms var(--spring-soft);
}
.rot.measure { position: absolute; visibility: hidden; width: auto !important; }
.rot-line { white-space: nowrap; }   /* слово и «?» не разрываются переносом */
.rot-in { grid-area: 1 / 1; }
.rot-in .ch { display: inline-block; }
.rot-in.in .ch { animation: ch-in 560ms var(--spring) both; }
.rot-in.out .ch { animation: ch-out 380ms var(--out) forwards; }
@keyframes ch-in { from { transform: translateY(110%); opacity: 0; } }
@keyframes ch-out { to { transform: translateY(-110%); opacity: 0; } }
.sw-word { white-space: nowrap; }
.sw { animation: sweep-letter 1100ms ease-out both; }
@keyframes sweep-letter {
  0% { color: rgba(245, 242, 233, 0.18); }
  30% { color: #fff6ee; text-shadow: 0 0 18px rgba(247, 131, 67, 0.95); }
  100% { color: var(--orange); text-shadow: 0 0 0 rgba(247, 131, 67, 0); }
}
/* На телефоне сменяющееся слово — на своей строке: длинные слова не переносятся и заголовок не прыгает */
@media (min-width: 720px) { .sm-only { display: none; } }

/* ── Третья порция (08.10.2026): счётчик-автомат, текст при прокрутке, заголовки, блик, кнопка со стрелкой,
   огонёк по рамке поля ── */
/* Плашка «Бесплатно · без комиссии» */
.free-pill { display: inline-flex; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: var(--ground-2);
  border: 1px solid var(--line-dark); color: var(--cream); font-size: 0.875rem; font-weight: 700; }
/* Блик пробегает 3 раза и замирает */
.shine { position: relative; overflow: hidden; isolation: isolate; }
.shine::after { content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-130%);
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.5) 50%, transparent 70%);
  animation: shine 2.8s 1.2s ease-in-out 3; }
@keyframes shine { 55%, 100% { transform: translateX(130%); } }
/* Счётчик заявок за неделю */
.week { display: flex; align-items: center; gap: 14px; margin-top: 22px; color: var(--muted-light); font-size: 0.95rem; line-height: 1.3; }
.week .roll { display: inline-flex; font-size: 2.6rem; font-weight: 800; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.dg { display: inline-block; height: 1em; overflow: hidden; }
.dg-in { display: flex; flex-direction: column; transition: transform 1600ms cubic-bezier(0.16, 1, 0.3, 1); }
.dg-in span { display: block; height: 1em; line-height: 1em; text-align: center; }
/* Абзац, который загорается при прокрутке */
.story-wrap { max-width: 680px; margin: 44px auto 0; }
.story { font-size: clamp(1.35rem, 5.4vw, 1.9rem); font-weight: 700; line-height: 1.35; }
.story .w { color: rgba(245, 242, 233, 0.2); transition: color 260ms ease-out; }
.story .w.on { color: var(--cream); }
.story .w.key.on { color: var(--orange); }
/* Заголовки разделов: слова поднимаются по очереди */
.rise-ready .rw { display: inline-block; opacity: 0; transform: translateY(0.7em);
  transition: transform 640ms var(--spring), opacity 380ms ease-out; }
.rise-ready.in .rw { opacity: 1; transform: none; }
/* «Найти мастера»: стрелка в кружке; на компьютере при наведении кружок заливает кнопку */
.arrow-btn { position: relative; overflow: hidden; isolation: isolate; }
.arrow-btn .lbl { position: relative; z-index: 1; }
.arrow-btn .arr { position: absolute; right: 8px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  display: grid; place-items: center; color: var(--cream); }
.arrow-btn .arr::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--ink);
  transition: transform 560ms var(--spring-soft); }
.arrow-btn .arr svg { transition: transform 400ms var(--spring); }
@media (hover: hover) {
  .arrow-btn:hover { background: var(--orange-hover); color: inherit; }   /* 17.10.2026: без тёмной заливки — надпись не пропадает */
  .arrow-btn:hover .arr::before { transform: scale(1.08); }
  .arrow-btn:hover .arr svg { transform: translateX(3px); }
}
.arrow-btn:disabled .arr { display: none; }
/* Огонёк бежит по рамке поля «Что случилось?», пока в нём пусто; начали писать — гаснет */
@property --beam { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.beam { position: relative; border-radius: 12px; }
.beam textarea { position: relative; display: block; }
.beam::before { content: ""; position: absolute; inset: -1.5px; z-index: 1; border-radius: 13.5px; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--beam), transparent 0 70%, rgba(247, 131, 67, 0.15) 78%, var(--orange) 92%, #ffd2b5 96%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: beam 3.4s linear infinite; transition: opacity 300ms; }
.beam:has(textarea:focus)::before, .beam:has(textarea:not(:placeholder-shown))::before { opacity: 0; animation-play-state: paused; }
@keyframes beam { to { --beam: 360deg; } }

/* ── Поле «Что случилось?»: подсказка о телефоне сверху, скрепка для фото внутри поля (08.10.2026) ── */
.composer label { padding-bottom: 2px; }
.privacy { margin: 0 4px 10px; font-size: 0.82rem; color: var(--muted); line-height: 1.35; }
.beam textarea { padding-right: 58px; resize: none; min-height: 120px; overflow: hidden; }
.clip { position: absolute; right: 8px; bottom: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: var(--muted);
  transition: background-color 160ms ease-out, color 160ms ease-out, transform 340ms var(--spring); }
.clip svg { width: 22px; height: 22px; }
.clip:hover { background: var(--cream-2); color: var(--ink); }
.clip:active { transform: scale(0.86); transition-duration: 160ms, 160ms, 90ms; }
.clip-count { position: absolute; top: 1px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center; background: var(--orange); color: var(--ink); font-size: 0.72rem; font-weight: 800; line-height: 1; }
.clip-count[hidden] { display: none; }
/* Подсказка «Прикрепить фото» — только где есть мышь, появляется с задержкой, исчезает сразу */
@media (hover: hover) {
  .clip::after { content: attr(data-tip); position: absolute; right: 0; bottom: calc(100% + 8px); padding: 6px 10px;
    border-radius: 8px; background: var(--ink); color: var(--cream); font-size: 0.8rem; font-weight: 600; white-space: nowrap;
    opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 120ms ease-out, transform 120ms ease-out; }
  .clip:hover::after { opacity: 1; transform: none; transition: opacity 180ms ease-out 450ms, transform 320ms var(--spring) 450ms; }
}

/* Перетаскивают фото — поле заявки подсвечено и подсказывает «отпустите» */
.composer { position: relative; }
.composer.dropping::after { content: "📷  Отпустите — фото прикрепятся"; position: absolute; inset: 0; z-index: 5; border-radius: inherit;
  display: grid; place-items: center; padding: 20px; text-align: center; font-size: 1.35rem; font-weight: 800; color: var(--orange-ink);
  background: rgba(255, 244, 234, 0.92); outline: 2.5px dashed var(--orange); outline-offset: -10px; pointer-events: none;
  animation: pop 320ms var(--spring); }

/* ── Фон главной: арка из точек (heroArc в app.js; выключается HERO_FX = false) ── */
body { overflow-x: clip; }
.hero { position: relative; isolation: isolate; }
.hero-fx { position: absolute; z-index: -1; left: 50%; top: -110px; width: 100vw; height: 560px; transform: translateX(-50%);
  pointer-events: none; opacity: 0.9;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); }
@media (max-width: 719px) { .hero-fx { opacity: 0.6; } }
@media (min-width: 720px) { .hero-fx { height: 620px; top: -130px; } }
/* Вход: согласия сверху — для Telegram и VK ID; пока не отмечены, кнопка Telegram приглушена */
.consents { margin: 4px 0 16px; }
.btn.tg[aria-disabled="true"] { opacity: 0.5; }

/* Плитки разделов на главной и нижнее меню есть только в теме «вечер» (ниже), в обычной теме скрыты */
.cats, .tabbar { display: none; }

/* ══ Тема «вечер»: вариант A от Codex (10.10.2026). Пока на пробу, включается kto-lg.ru/?theme=glass ══
   Тёмный тёплый градиент с оранжевым светом, тёмное «жидкое стекло» с бликом по краю, молочные карточки
   для формы и откликов, белые таблетки активных вкладок. На телефоне нижнее меню, на ПК две колонки. */
html[data-theme="glass"] {
  --ground: #140f0c;
  --ground-2: rgba(255, 244, 232, 0.08);
  --line-dark: rgba(255, 236, 215, 0.16);
  --cream: #fff8ee;
  --cream-2: #f4e9dd;
  --ink: #2a221c;
  --muted-light: #cdbcad;
  --muted: #6e6157;
  --line: #e4d6c7;
  --orange: #f78343;
  --orange-hover: #ff9a5f;
  --radius: 30px;
  --glass-bg: linear-gradient(145deg, rgba(255, 244, 232, 0.13), rgba(255, 244, 232, 0.045));
  --glass-line: rgba(255, 236, 215, 0.18);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 1px 0 0 rgba(255, 255, 255, 0.06), 0 18px 44px rgba(0, 0, 0, 0.38);
  --milk-bg: linear-gradient(160deg, rgba(255, 249, 241, 0.94), rgba(246, 233, 219, 0.88));
  --btn-bg: linear-gradient(135deg, #ffaa65, #f78343);
}
html[data-theme="glass"] body { background: var(--ground); }
html[data-theme="glass"] body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 45% at 88% -5%, rgba(247, 131, 67, 0.42), transparent 62%),
    radial-gradient(45% 40% at -5% 105%, rgba(196, 92, 36, 0.34), transparent 62%),
    radial-gradient(35% 30% at 45% 55%, rgba(140, 70, 30, 0.16), transparent 70%),
    linear-gradient(165deg, #21170f 0%, #130e0b 55%, #1b120c 100%);
}
html[data-theme="glass"] .hero-fx { display: none; }

/* Тёмное стекло */
html[data-theme="glass"] :is(.top, .req, .steps, .method, .master-cta, .quote, .notice.dark, .nav .modes, .switch-row,
    .cats button, .tabbar, .banner, .install-bar) {
  background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
}
html[data-theme="glass"] #preview-banner, html[data-theme="glass"] .banner.banner.banner { border-radius: 0; border-width: 0 0 1px; }

/* Шапка: плавающая стеклянная панель */
html[data-theme="glass"] .top { margin-top: 12px; padding: 8px 10px 8px 18px; min-height: 60px; border-radius: 26px; }
html[data-theme="glass"] body[data-mode="master"] .top { box-shadow: var(--glass-shadow); }
html[data-theme="glass"] .nav .pill { border: 1px solid var(--glass-line); background: rgba(255, 244, 232, 0.06); }
html[data-theme="glass"] .nav .modes { padding: 4px; }
html[data-theme="glass"] .nav .modes a { min-height: 36px; padding: 0 14px; }
html[data-theme="glass"] .nav .modes a.on, html[data-theme="glass"] .nav .modes a.master.on {
  background: var(--cream); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Главная */
html[data-theme="glass"] .hero h1 { font-weight: 800; letter-spacing: -0.03em; color: #fffaf3; }
html[data-theme="glass"] .hero h1 em { color: var(--orange); }
html[data-theme="glass"] .hero .lead { color: var(--muted-light); }

/* Молочное стекло: форма заявки, карточки, отклики, окно входа */
html[data-theme="glass"] :is(.surface, .sheet-card) {
  background: var(--milk-bg); border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 22px 60px rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(28px) saturate(140%); backdrop-filter: blur(28px) saturate(140%);
}
html[data-theme="glass"] .sheet-card { border-radius: 30px 30px 0 0; }
html[data-theme="glass"] .sheet-backdrop { background: rgba(12, 8, 6, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
html[data-theme="glass"] :is(textarea, .input) { background: rgba(255, 255, 255, 0.82); border-color: rgba(42, 34, 28, 0.1); border-radius: 22px; }
html[data-theme="glass"] :is(.chip, .catalog details, .rating button) { background: rgba(255, 255, 255, 0.72); border-radius: 16px; }
html[data-theme="glass"] .examples button { background: rgba(42, 34, 28, 0.07); border-radius: 16px; text-align: left; }
html[data-theme="glass"] .chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }

/* Кнопки: таблетки, главная с тёплым градиентом, стрелка в тёмном круге */
html[data-theme="glass"] .btn { border-radius: 999px; min-height: 54px; }
html[data-theme="glass"] .btn:not(.tg):not(.vk):not(.dark):not(.ghost) {
  background: var(--btn-bg); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 10px 26px rgba(247, 131, 67, 0.32);
}
html[data-theme="glass"] .btn.ghost { background: rgba(255, 244, 232, 0.07); border: 1px solid var(--glass-line); }
html[data-theme="glass"] :is(.surface, .sheet-card) .btn.ghost { background: transparent; border-color: rgba(42, 34, 28, 0.25); }
html[data-theme="glass"] .btn.small { min-height: 40px; }

/* Списки и карточки */
html[data-theme="glass"] :is(.req, .method, .master-cta, .switch-row) { border-radius: 26px; }
html[data-theme="glass"] .req { padding: 18px 20px; }
html[data-theme="glass"] .req:hover { border-color: rgba(255, 236, 215, 0.34); }
html[data-theme="glass"] .steps { padding: 18px; border-radius: 28px; gap: 6px; }
html[data-theme="glass"] .steps li { background: none; padding: 10px 6px; }
html[data-theme="glass"] .steps .num { background: var(--cream); color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
html[data-theme="glass"] .page-head h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.12; }
html[data-theme="glass"] .badge.open { background: rgba(255, 184, 140, 0.14); }
html[data-theme="glass"] .badge.closed { background: rgba(255, 240, 225, 0.1); }
html[data-theme="glass"] .badge.done { background: rgba(166, 220, 180, 0.14); }
html[data-theme="glass"] .foot { border-top-color: var(--glass-line); }

/* Плитки разделов под формой: нажал, и в поле подставилось начало заявки */
html[data-theme="glass"] .cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
html[data-theme="glass"] .cats button {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 14px; border-radius: 22px;
  color: var(--cream); font-weight: 650; text-align: left;
}
html[data-theme="glass"] .cats svg { width: 26px; height: 26px; flex: none; color: #ffb88a; }
html[data-theme="glass"] .cats button:hover { border-color: rgba(255, 236, 215, 0.36); }

/* Нижнее меню на телефоне */
@media (max-width: 899px) {
  html[data-theme="glass"] .tabbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 30;
    justify-content: space-around; padding: 7px; border-radius: 30px;
  }
  html[data-theme="glass"] .tabbar a {
    position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px;
    border-radius: 22px; color: var(--muted-light); font-size: 0.72rem; font-weight: 650; text-decoration: none;
  }
  html[data-theme="glass"] .tabbar svg { width: 24px; height: 24px; }
  html[data-theme="glass"] #tabbar { background: rgba(28, 20, 15, 0.8); }
  html[data-theme="glass"] .tabbar a.on { background: var(--cream); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
  html[data-theme="glass"] .tabbar .dot { position: absolute; top: 5px; right: calc(50% - 20px); width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
  html[data-theme="glass"] body { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  html[data-theme="glass"] .nav > a.pill[href="/requests"] { display: none; }
}

/* Компьютер: шире, главная в две колонки, плитки в ряд */
@media (min-width: 900px) {
  html[data-theme="glass"] :is(.top, main, .foot) { width: min(1240px, 100% - 64px); }
  html[data-theme="glass"] .top { margin-top: 18px; padding: 10px 12px 10px 24px; }
  html[data-theme="glass"] .hero {
    max-width: none; margin-top: 40px; display: grid; grid-template-columns: 1fr 1.15fr; column-gap: 40px; align-items: start;
  }
  html[data-theme="glass"] .hero h1 { grid-column: 1; font-size: clamp(2.5rem, 3.9vw, 3.6rem); margin-top: 18px; }
  html[data-theme="glass"] .hero .lead { grid-column: 1; font-size: 1.2rem; }
  html[data-theme="glass"] .hero .composer { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; padding: 28px; }
  html[data-theme="glass"] .hero .cats { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }
  html[data-theme="glass"] .cats button { min-height: 72px; font-size: 1.05rem; padding: 0 20px; }
  html[data-theme="glass"] :is(.how, .master-cta) { max-width: none; }
  html[data-theme="glass"] .steps { grid-template-columns: repeat(3, 1fr); padding: 24px 28px; }
  html[data-theme="glass"] .steps li { flex-direction: row; align-items: center; }
  html[data-theme="glass"] :is(.page-head, .list, .detail, .empty-state, .flow) { max-width: 820px; }
}

/* Где размытие не работает (старые телефоны), там плотный фон вместо стекла, чтобы текст читался */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="glass"] :is(.top, .req, .steps, .method, .master-cta, .quote, .notice.dark, .nav .modes, .switch-row, .cats button, .tabbar) { background: #2a1f18; }
}

/* ── «Вечер», вторая итерация: ближе к концепту Codex (10.10.2026) ── */
.desk-links, .privacy-note, .how-row { display: none; }

/* Фон: оранжевое свечение заметнее, как тёплый свет лампы */
html[data-theme="glass"] body::before {
  background:
    radial-gradient(48% 40% at 92% 4%, rgba(255, 150, 80, 0.55), transparent 65%),
    radial-gradient(40% 36% at 70% 60%, rgba(247, 131, 67, 0.18), transparent 70%),
    radial-gradient(50% 45% at -4% 100%, rgba(214, 100, 40, 0.45), transparent 65%),
    radial-gradient(30% 28% at 12% 30%, rgba(255, 170, 100, 0.14), transparent 70%),
    linear-gradient(165deg, #241810 0%, #150f0b 55%, #1d130c 100%);
}

/* Шапка: на телефоне логотип и город сверху, переключатель на всю ширину; на ПК — в одну строку */
html[data-theme="glass"] .top { flex-wrap: wrap; row-gap: 10px; padding: 12px 12px 12px 18px; }
html[data-theme="glass"] .top .city { display: inline-flex; margin-left: auto; padding-right: 6px; color: var(--cream); }
html[data-theme="glass"] .top .city svg { stroke: var(--cream); }
html[data-theme="glass"] .nav { order: 3; width: 100%; margin-left: 0; }
html[data-theme="glass"] .nav .modes { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
html[data-theme="glass"] .nav .modes a { justify-content: center; min-height: 42px; font-size: 0.95rem; }
html[data-theme="glass"] .desk-links a, html[data-theme="glass"] .desk-links .pill { min-height: 40px; padding: 0 16px; color: var(--cream); }
html[data-theme="glass"] .desk-links a.on { background: var(--cream); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }

/* Главная */
html[data-theme="glass"] .hero h1 { font-size: clamp(3rem, 13vw, 3.6rem); line-height: 0.98; letter-spacing: -0.04em; margin-top: 8px; }
html[data-theme="glass"] .hero h1 em { font-style: normal; color: var(--orange); }
html[data-theme="glass"] .hero .lead { margin-top: 10px; font-size: 1.1rem; color: #e9dccf; }

/* Форма — полупрозрачное молочное стекло, сквозь которое видно фон */
html[data-theme="glass"] .composer.surface {
  margin-top: 20px; padding: 18px;
  background: linear-gradient(160deg, rgba(255, 245, 234, 0.88), rgba(255, 222, 192, 0.66));
  border: 1px solid rgba(255, 244, 232, 0.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75), 0 0 40px rgba(255, 150, 80, 0.16), 0 24px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(30px) saturate(150%); backdrop-filter: blur(30px) saturate(150%);
}
html[data-theme="glass"] .composer label { font-size: 1.25rem; padding: 2px 4px 12px; }
html[data-theme="glass"] .composer textarea { background: rgba(255, 252, 248, 0.88); border-color: rgba(255, 255, 255, 0.7); min-height: 112px; }
html[data-theme="glass"] .composer .actions { margin-top: 14px; }
html[data-theme="glass"] .privacy-note { display: flex; align-items: center; gap: 8px; margin: 12px 4px 0; font-size: 0.85rem; color: #4d4239; }
html[data-theme="glass"] .privacy-note svg { width: 16px; height: 16px; flex: none; }

/* Плитки разделов: на телефоне — лента таблеток, на ПК — четыре крупные плитки */
html[data-theme="glass"] .cats { display: flex; gap: 10px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
html[data-theme="glass"] .cats::-webkit-scrollbar { display: none; }
html[data-theme="glass"] .cats button { flex: none; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px; font-size: 1rem; }
html[data-theme="glass"] .cats svg { width: 24px; height: 24px; color: #ffb27a; filter: drop-shadow(0 0 6px rgba(255, 150, 80, 0.45)); }

/* «Как это работает»: одна стеклянная карточка, шаги по одному в строку */
html[data-theme="glass"] .how-row {
  display: block; margin-top: 14px; padding: 18px 20px; border-radius: 28px;
  background: var(--glass-bg); border: 1px solid var(--glass-line); box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(24px) saturate(150%); backdrop-filter: blur(24px) saturate(150%);
}
html[data-theme="glass"] .how-row h2 { font-size: 1.3rem; font-weight: 750; }
html[data-theme="glass"] .how-row ol { list-style: none; margin: 10px 0 0; padding: 0; }
html[data-theme="glass"] .how-row li { display: flex; align-items: center; gap: 14px; padding: 9px 0; font-size: 1.02rem; color: var(--cream); }
html[data-theme="glass"] .how-row li + li { border-top: 1px solid rgba(255, 236, 215, 0.12); }
html[data-theme="glass"] .how-row .num {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%;
  background: var(--cream); color: var(--ink); font-weight: 800; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
html[data-theme="glass"] .master-cta { margin-top: 28px; }

@media (min-width: 900px) {
  html[data-theme="glass"] .top { flex-wrap: nowrap; padding: 12px 14px 12px 28px; gap: 20px; }
  html[data-theme="glass"] .top .city { margin-left: 4px; }
  html[data-theme="glass"] .nav { order: 0; width: auto; flex: 1; display: flex; justify-content: space-between; align-items: center; margin-left: 12px; }
  html[data-theme="glass"] .nav .modes { width: 360px; margin: 0 auto; }
  html[data-theme="glass"] .desk-links { display: flex; align-items: center; gap: 6px; }
  html[data-theme="glass"] .brand { font-size: 2rem; }

  html[data-theme="glass"] .hero { grid-template-columns: 1fr 1.05fr; column-gap: 48px; margin-top: 52px; }
  html[data-theme="glass"] .hero h1 { font-size: clamp(4rem, 7.4vw, 6.6rem); line-height: 0.92; margin-top: 30px; }
  html[data-theme="glass"] .hero .lead { font-size: 1.55rem; line-height: 1.3; margin-top: 18px; max-width: 18em; }
  html[data-theme="glass"] .hero .composer { grid-row: 1 / span 2; padding: 30px 32px 26px; }
  html[data-theme="glass"] .composer label { font-size: 1.6rem; }
  html[data-theme="glass"] .hero .cats { display: grid; overflow: visible; margin: 28px 0 0; padding: 0; gap: 16px; }
  html[data-theme="glass"] .cats button { min-height: 92px; border-radius: 28px; padding: 0 26px; font-size: 1.25rem; gap: 18px; justify-content: center; }
  html[data-theme="glass"] .cats svg { width: 38px; height: 38px; }
  html[data-theme="glass"] .how-row { grid-column: 1 / -1; margin-top: 16px; padding: 22px 32px 24px; }
  html[data-theme="glass"] .how-row h2 { font-size: 1.7rem; }
  html[data-theme="glass"] .how-row ol { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; }
  html[data-theme="glass"] .how-row li { font-size: 1.2rem; padding: 4px 0 4px 26px; }
  html[data-theme="glass"] .how-row li:first-child { padding-left: 0; }
  html[data-theme="glass"] .how-row li + li { border-top: 0; border-left: 1px solid rgba(255, 236, 215, 0.14); }
  html[data-theme="glass"] .how-row .num { width: 46px; height: 46px; font-size: 1.15rem; }
}

/* ── «Вечер», третья итерация (10.10.2026): гамма как у основного сайта — графит, крем, оранжевый.
   Фон — спокойный серый градиент и параллакс из точек на весь экран (canvas #bg-fx). ── */
.bg-fx { display: none; }
html[data-theme="glass"] {
  --ground: #222321;
  --glass-bg: linear-gradient(145deg, rgba(245, 242, 233, 0.085), rgba(245, 242, 233, 0.035));
  --glass-line: rgba(245, 242, 233, 0.13);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 16px 40px rgba(0, 0, 0, 0.32);
  --muted-light: #bcbdb6;
  --btn-bg: linear-gradient(135deg, #ff9a5f, #f78343);
}
html[data-theme="glass"] body::before {
  background:
    radial-gradient(70% 55% at 50% -10%, rgba(255, 255, 255, 0.07), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, rgba(0, 0, 0, 0.35), transparent 70%),
    linear-gradient(180deg, #262725 0%, #1f201e 60%, #1b1c1a 100%);
}
html[data-theme="glass"] .bg-fx { display: block; position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; pointer-events: none; }
html[data-theme="glass"] .hero .lead { color: var(--muted-light); }
html[data-theme="glass"] .top .city, html[data-theme="glass"] .top .city svg { color: var(--muted-light); stroke: var(--muted-light); }

/* Форма — кремовая, как на основном сайте, с лёгким стеклом */
html[data-theme="glass"] .composer.surface {
  background: rgba(245, 242, 233, 0.95); border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 60px rgba(0, 0, 0, 0.4);
}
html[data-theme="glass"] .composer textarea { background: #fffdf7; border-color: var(--line); }
html[data-theme="glass"] .privacy-note { color: var(--muted); }
html[data-theme="glass"] :is(.surface, .sheet-card) { background: rgba(245, 242, 233, 0.96); }

/* Иконки разделов — оранжевые, без тёплого свечения */
html[data-theme="glass"] .cats svg { color: var(--orange); filter: none; }
html[data-theme="glass"] #tabbar { background: rgba(34, 35, 33, 0.85); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html[data-theme="glass"] :is(.top, .req, .steps, .method, .master-cta, .quote, .notice.dark, .nav .modes, .switch-row, .cats button, .tabbar, .how-row) { background: #2c2d2a; }
}

/* ── «Вечер», прозрачность (10.10.2026): серые блики на фоне, сквозь стекло они просвечивают ── */
html[data-theme="glass"] {
  --glass-bg: linear-gradient(145deg, rgba(245, 242, 233, 0.14), rgba(245, 242, 233, 0.04) 60%, rgba(245, 242, 233, 0.08));
  --glass-line: rgba(245, 242, 233, 0.2);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 1px 0 0 rgba(255, 255, 255, 0.08), 0 18px 44px rgba(0, 0, 0, 0.35);
}
html[data-theme="glass"] body::before {
  background:
    radial-gradient(34% 26% at 18% 22%, rgba(200, 200, 195, 0.16), transparent 70%),
    radial-gradient(30% 24% at 82% 38%, rgba(220, 218, 210, 0.13), transparent 70%),
    radial-gradient(38% 28% at 40% 78%, rgba(180, 180, 175, 0.12), transparent 70%),
    radial-gradient(22% 16% at 88% 88%, rgba(247, 131, 67, 0.10), transparent 70%),
    linear-gradient(180deg, #2a2b29 0%, #212220 55%, #1c1d1b 100%);
}
html[data-theme="glass"] .composer.surface {
  background: linear-gradient(160deg, rgba(245, 242, 233, 0.78), rgba(245, 242, 233, 0.52));
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), inset 1px 0 0 rgba(255, 255, 255, 0.35), 0 24px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(26px) saturate(140%); backdrop-filter: blur(26px) saturate(140%);
}
html[data-theme="glass"] .composer textarea { background: rgba(255, 253, 247, 0.85); border-color: rgba(255, 255, 255, 0.7); }
html[data-theme="glass"] #tabbar { background: rgba(34, 35, 33, 0.62); }

/* ── «Вечер», ещё прозрачнее (10.10.2026): форма — светлое стекло со светлым текстом, поле ввода плотное ── */
html[data-theme="glass"] {
  --glass-bg: linear-gradient(145deg, rgba(245, 242, 233, 0.10), rgba(245, 242, 233, 0.015) 55%, rgba(245, 242, 233, 0.05));
  --glass-line: rgba(245, 242, 233, 0.24);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), inset 1px 0 0 rgba(255, 255, 255, 0.1), 0 18px 44px rgba(0, 0, 0, 0.3);
}
html[data-theme="glass"] body::before {
  background:
    radial-gradient(30% 24% at 16% 20%, rgba(215, 215, 210, 0.22), transparent 70%),
    radial-gradient(28% 22% at 84% 34%, rgba(230, 228, 220, 0.18), transparent 70%),
    radial-gradient(36% 26% at 38% 74%, rgba(195, 195, 190, 0.16), transparent 70%),
    radial-gradient(22% 16% at 90% 90%, rgba(247, 131, 67, 0.14), transparent 70%),
    linear-gradient(180deg, #2a2b29 0%, #212220 55%, #1c1d1b 100%);
}
html[data-theme="glass"] .composer.surface {
  background: linear-gradient(160deg, rgba(245, 242, 233, 0.26), rgba(245, 242, 233, 0.10));
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 1px 0 0 rgba(255, 255, 255, 0.18), 0 24px 60px rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
  color: var(--cream);
}
html[data-theme="glass"] .composer label { color: #fffaf3; }
html[data-theme="glass"] .privacy-note { color: #d9d6cc; }
html[data-theme="glass"] .composer textarea { background: rgba(255, 253, 247, 0.92); }
html[data-theme="glass"] .composer .clip { color: var(--ink); }
html[data-theme="glass"] #tabbar { background: rgba(34, 35, 33, 0.45); }

/* ══ Правки дизайн-ревью Codex (10.10.2026, «как за $10M»): тише материалы, чёткая иерархия, прозрачное стекло везде ══ */
/* КТО? — согласованная прозрачная тема.
   Добавить ПОСЛЕ всех существующих правил темы glass. */

html[data-theme="glass"] {
  --ground: #222321;
  --ground-2: rgba(245, 242, 233, 0.035);

  --cream: #F5F2E9;
  --cream-2: #ECE8DE;
  --ink: #222321;

  --muted-light: #C0C1BB;
  --muted: #C0C1BB;
  --field-muted: #686963;

  --orange: #F78343;
  --orange-hover: #FF9359;

  --line: rgba(245, 242, 233, 0.12);
  --line-dark: rgba(245, 242, 233, 0.12);
  --radius: 24px;

  --glass-bg: linear-gradient(
    145deg,
    rgba(245, 242, 233, 0.055),
    rgba(245, 242, 233, 0.015) 65%,
    rgba(245, 242, 233, 0.025)
  );

  --glass-quiet-bg: linear-gradient(
    145deg,
    rgba(245, 242, 233, 0.035),
    rgba(245, 242, 233, 0.008)
  );

  --glass-line: rgba(245, 242, 233, 0.12);

  --glass-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.10),
    0 2px 5px rgba(0, 0, 0, 0.10),
    0 12px 28px rgba(0, 0, 0, 0.14);

  /* Старое имя переменной сохраняется, плотная заливка убирается. */
  --milk-bg: var(--glass-bg);

  --btn-bg: linear-gradient(180deg, #FA8B50, #F78343);

  background: var(--ground);
  color-scheme: dark;
  scroll-padding-block: 24px 128px;
}

/* Фон и слой canvas: определённый порядок внутри body. */

html[data-theme="glass"] body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  background: transparent;
  color: var(--cream);
  font-family: Golos, "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

html[data-theme="glass"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(
      85% 62% at 14% 8%,
      rgba(245, 242, 233, 0.075),
      transparent 72%
    ),
    radial-gradient(
      72% 55% at 100% 64%,
      rgba(245, 242, 233, 0.04),
      transparent 76%
    ),
    linear-gradient(165deg, #292A28, #222321 58%, #20211F);
}

html[data-theme="glass"] .bg-fx {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.28;
  pointer-events: none;
}

/* Основной материал.
   .nav .modes внутри :is задаёт специфичность всего списка. */

html[data-theme="glass"] body :is(
  .top,
  .surface,
  .sheet-card,
  .req,
  .steps,
  .how-row,
  .method,
  .master-cta,
  .quote,
  .notice.dark,
  .nav .modes,
  .switch-row,
  .cats button,
  .tabbar,
  .banner,
  .install-bar
) {
  color: var(--cream);
  background: var(--glass-bg);

  border: 1px solid var(--glass-line);
  border-top-color: rgba(245, 242, 233, 0.18);
  border-bottom-color: rgba(245, 242, 233, 0.07);

  box-shadow: var(--glass-shadow);

  -webkit-backdrop-filter: blur(14px) saturate(105%);
  backdrop-filter: blur(14px) saturate(105%);
}

/* Тихие панели не спорят с формой. */

html[data-theme="glass"] body :is(
  .top.top,
  .steps.steps,
  .how-row.how-row,
  .master-cta.master-cta
) {
  background: var(--glass-quiet-bg);
  box-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.10);
}

/* Убираем отдельную обработку старой плотной banner.banner.banner. */

html[data-theme="glass"] #preview-banner,
html[data-theme="glass"] .banner.banner.banner {
  color: var(--muted-light);
  background: rgba(34, 35, 33, 0.72);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 8px 20px;
  min-height: 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

/* Единая ширина и поля страницы. */

html[data-theme="glass"] :is(.top, main, .foot) {
  box-sizing: border-box;
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

html[data-theme="glass"] body :is(
  .surface,
  .req,
  .method,
  .quote,
  .switch-row,
  .master-cta
) {
  border-radius: 24px;
}

html[data-theme="glass"] body :is(.surface, .req, .quote) {
  padding: 20px;
}

html[data-theme="glass"] body :is(
  .surface,
  .sheet-card,
  .quote,
  .req
) :is(h1, h2, h3, label) {
  color: var(--cream);
}

html[data-theme="glass"] body :is(
  .surface,
  .sheet-card,
  .quote,
  .req
) :is(strong, b) {
  color: inherit;
}

/* Шапка. */

html[data-theme="glass"] .top {
  margin-top: 12px;
  min-height: 0;
  padding: 14px;
  border-radius: 24px;
  flex-wrap: wrap;
  row-gap: 12px;
}

html[data-theme="glass"] body[data-mode="master"] .top {
  box-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.08),
    0 6px 18px rgba(0, 0, 0, 0.10);
}

html[data-theme="glass"] .top .brand {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

html[data-theme="glass"] .top .city {
  margin-left: auto;
  padding-right: 2px;
  gap: 6px;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 400;
}

html[data-theme="glass"] .top .city svg {
  width: 18px;
  height: 18px;
  color: var(--muted-light);
  stroke: currentColor;
}

html[data-theme="glass"] .nav {
  order: 3;
  width: 100%;
  min-width: 0;
  margin-left: 0;
}

html[data-theme="glass"] body .nav .modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  box-sizing: border-box;
  padding: 4px;
  border-radius: 999px;
  background: rgba(245, 242, 233, 0.025);
  border-color: rgba(245, 242, 233, 0.10);
  box-shadow: inset 0 1px 0 rgba(245, 242, 233, 0.06);

  /* Не размываем уже размытый фон шапки второй раз. */
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="glass"] .nav .modes a {
  min-width: 0;
  min-height: 44px;
  padding: 0 8px;
  justify-content: center;
  border-radius: 999px;
  color: var(--muted-light);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

html[data-theme="glass"] .nav .modes a.on,
html[data-theme="glass"] .nav .modes a.master.on {
  color: var(--ink);
  background: var(--cream);
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.50),
    0 2px 5px rgba(0, 0, 0, 0.12);
}

/* Главная: сохраняем композицию, упорядочиваем масштаб. */

html[data-theme="glass"] .hero {
  display: block;
  max-width: none;
  margin-top: 26px;
}

html[data-theme="glass"] .hero h1 {
  max-width: 9ch;
  margin: 0;
  color: var(--cream);
  font-size: clamp(48px, 13.4vw, 60px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.035em;
}

html[data-theme="glass"] .hero h1 em {
  color: var(--orange);
  font-style: normal;
}

html[data-theme="glass"] .hero .lead {
  max-width: 34ch;
  margin: 14px 0 0;
  color: var(--muted-light);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Форма немного светлее остальных панелей, но прозрачная. */

html[data-theme="glass"] body .composer.surface {
  margin-top: 24px;
  padding: 20px;
  border-radius: 26px;
  color: var(--cream);

  background: linear-gradient(
    145deg,
    rgba(245, 242, 233, 0.14),
    rgba(245, 242, 233, 0.055) 72%
  );

  border-color: rgba(245, 242, 233, 0.14);
  border-top-color: rgba(245, 242, 233, 0.24);
  border-bottom-color: rgba(245, 242, 233, 0.08);

  box-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.13),
    0 3px 7px rgba(0, 0, 0, 0.12),
    0 16px 32px rgba(0, 0, 0, 0.16);

  -webkit-backdrop-filter: blur(16px) saturate(105%);
  backdrop-filter: blur(16px) saturate(105%);
}

html[data-theme="glass"] .composer label {
  display: block;
  padding: 0;
  margin: 0 0 14px;
  color: var(--cream);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

/* Плотное поле — функциональная поверхность внутри стекла. */

html[data-theme="glass"] body :is(textarea, .input) {
  box-sizing: border-box;
  max-width: 100%;
  color: var(--ink);
  caret-color: var(--ink);
  color-scheme: light;
  background: rgba(245, 242, 233, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.30);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
}

html[data-theme="glass"] body .composer textarea {
  display: block;
  width: 100%;
  min-height: 120px;
  padding: 16px 52px 18px 16px;
  color: var(--ink);
  background: rgba(245, 242, 233, 0.96);
  border-color: rgba(255, 255, 255, 0.30);
  border-radius: 18px;
  font-size: 18px;
  line-height: 1.45;
}

html[data-theme="glass"] :is(textarea, .input)::placeholder {
  color: var(--field-muted);
  opacity: 1;
}

html[data-theme="glass"] .composer .clip {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 12px;
  color: var(--ink);
  background: transparent;
}

html[data-theme="glass"] .composer .clip svg {
  width: 22px;
  height: 22px;
}

html[data-theme="glass"] .composer .actions {
  margin-top: 14px;
}

html[data-theme="glass"] .composer .actions .btn {
  width: 100%;
  min-height: 56px;
  font-size: 17px;
}

html[data-theme="glass"] .privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: var(--muted-light);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

html[data-theme="glass"] .privacy-note svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

/* Кнопки: короткая тень, тёмный текст, никаких ореолов. */

html[data-theme="glass"] .btn {
  box-sizing: border-box;
  min-height: 52px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
  text-decoration: none;
}

html[data-theme="glass"] .btn:not(.tg):not(.vk):not(.dark):not(.ghost) {
  color: var(--ink);
  background: var(--btn-bg);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 3px 8px rgba(0, 0, 0, 0.14);
}

html[data-theme="glass"] body :is(
  .btn.ghost,
  .btn.dark,
  .surface .btn.ghost,
  .sheet-card .btn.ghost
) {
  color: var(--cream);
  background: rgba(245, 242, 233, 0.035);
  border: 1px solid var(--glass-line);
  box-shadow: none;
}

html[data-theme="glass"] .btn.small {
  min-height: 44px;
  font-size: 14px;
}

/* Категории — вторичный быстрый путь, не четыре CTA. */

html[data-theme="glass"] .hero .cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 14px -20px 0;
  padding: 2px 20px 6px;
  scrollbar-width: none;
}

html[data-theme="glass"] .cats::-webkit-scrollbar {
  display: none;
}

html[data-theme="glass"] body .cats button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 18px;
  color: var(--cream);
  background: var(--glass-quiet-bg);
  border-color: rgba(245, 242, 233, 0.10);
  box-shadow: inset 0 1px 0 rgba(245, 242, 233, 0.06);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;

  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="glass"] .cats svg {
  flex: none;
  width: 22px;
  height: 22px;
  color: var(--cream);
  filter: none;
}

/* Инструкция — один спокойный блок. */

html[data-theme="glass"] body :is(.how-row, .steps) {
  margin-top: 16px;
  padding: 20px;
  border-radius: 24px;
}

html[data-theme="glass"] :is(.how-row, .how) h2 {
  margin: 0;
  color: var(--cream);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

html[data-theme="glass"] .how-row ol {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

html[data-theme="glass"] :is(.how-row, .steps) li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 0;
  color: var(--cream);
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

html[data-theme="glass"] :is(.how-row, .steps) li + li {
  border-top: 1px solid rgba(245, 242, 233, 0.08);
}

html[data-theme="glass"] :is(.how-row, .steps) .num {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--cream);
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

html[data-theme="glass"] body .master-cta {
  margin-top: 32px;
  padding: 24px;
}

html[data-theme="glass"] .master-cta h2 {
  margin: 0 0 12px;
  color: var(--cream);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

html[data-theme="glass"] .master-cta p {
  color: var(--muted-light);
  font-size: 16px;
  line-height: 1.6;
}

/* Страницы заявок и кабинет мастера. */

html[data-theme="glass"] .page-head {
  gap: 16px;
}

html[data-theme="glass"] .page-head h1 {
  margin: 0;
  color: var(--cream);
  font-size: clamp(32px, 8.5vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

html[data-theme="glass"] .page-head .btn.small {
  white-space: nowrap;
}

html[data-theme="glass"] :is(.detail, .list) .surface h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

html[data-theme="glass"] :is(.chip, .catalog details, .rating button) {
  color: var(--cream);
  background: rgba(245, 242, 233, 0.04);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
}

html[data-theme="glass"] :is(.chip, .rating button) {
  min-height: 44px;
}

html[data-theme="glass"] .examples button {
  color: var(--cream);
  background: rgba(245, 242, 233, 0.04);
  border: 1px solid var(--glass-line);
  border-radius: 16px;
  text-align: left;
}

html[data-theme="glass"] .chip[aria-pressed="true"] {
  color: var(--ink);
  background: var(--cream);
  border-color: transparent;
}

html[data-theme="glass"] .badge.open {
  color: var(--orange);
  background: rgba(247, 131, 67, 0.10);
}

html[data-theme="glass"] .badge.closed {
  color: var(--muted-light);
  background: rgba(245, 242, 233, 0.05);
}

html[data-theme="glass"] .badge.done {
  color: var(--cream);
  background: rgba(245, 242, 233, 0.08);
}

/* Модальные поверхности — тот же материал. */

html[data-theme="glass"] body .sheet-card {
  border-radius: 24px 24px 0 0;
}

html[data-theme="glass"] .sheet-backdrop {
  background: rgba(20, 21, 19, 0.64);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

html[data-theme="glass"] .foot {
  margin-top: 48px;
  padding-block: 24px;
  border-top-color: rgba(245, 242, 233, 0.10);
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Нижняя навигация.
   ID обязателен: класс не перебьёт прежний #tabbar. */

@media (max-width: 899px) {
  html[data-theme="glass"] body {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }

  html[data-theme="glass"] .tabbar {
    display: flex;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 30;
    box-sizing: border-box;
    min-height: 74px;
    justify-content: space-around;
    padding: 6px;
    border-radius: 26px;
  }

  html[data-theme="glass"] body #tabbar {
    color: var(--cream);
    background: linear-gradient(
      145deg,
      rgba(34, 35, 33, 0.62),
      rgba(34, 35, 33, 0.46)
    );
    border: 1px solid rgba(245, 242, 233, 0.15);
    border-top-color: rgba(245, 242, 233, 0.22);
    box-shadow:
      inset 0 1px 0 rgba(245, 242, 233, 0.08),
      0 4px 10px rgba(0, 0, 0, 0.16),
      0 12px 28px rgba(0, 0, 0, 0.18);
    -webkit-backdrop-filter: blur(20px) saturate(105%);
    backdrop-filter: blur(20px) saturate(105%);
  }

  html[data-theme="glass"] .tabbar a {
    position: relative;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 60px;
    gap: 4px;
    padding: 7px 3px;
    border-radius: 20px;
    color: var(--muted-light);
    font-size: clamp(10px, 2.7vw, 12px);
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: normal;
  }

  html[data-theme="glass"] .tabbar a.on {
    color: var(--ink);
    background: var(--cream);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  }

  html[data-theme="glass"] .tabbar svg {
    width: 24px;
    height: 24px;
  }

  html[data-theme="glass"] .tabbar .dot {
    width: 6px;
    height: 6px;
    top: 6px;
    right: calc(50% - 18px);
    background: var(--orange);
    box-shadow: none;
  }
}

/* ПК: одна сетка, одна шкала размеров. */

@media (min-width: 900px) {
  html[data-theme="glass"] :is(.top, main, .foot) {
    width: min(1240px, calc(100% - 80px));
  }

  html[data-theme="glass"] .top {
    flex-wrap: nowrap;
    gap: 16px;
    margin-top: 24px;
    padding: 12px 16px 12px 24px;
  }

  html[data-theme="glass"] .top .city {
    margin-left: 0;
    white-space: nowrap;
  }

  html[data-theme="glass"] .nav {
    order: 0;
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: auto;
    margin-left: 8px;
  }

  html[data-theme="glass"] body .nav .modes {
    flex: 0 1 320px;
    width: clamp(220px, 24vw, 320px);
    margin: 0;
  }

  html[data-theme="glass"] .nav .modes a {
    font-size: 14px;
  }

  html[data-theme="glass"] .desk-links {
    display: flex;
    flex: none;
    align-items: center;
    gap: 4px;
  }

  html[data-theme="glass"] .desk-links a,
  html[data-theme="glass"] .desk-links .pill {
    min-height: 44px;
    padding: 0 10px;
    color: var(--muted-light);
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
  }

  html[data-theme="glass"] .desk-links a.on {
    color: var(--ink);
    background: var(--cream);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.10);
  }

  html[data-theme="glass"] .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(32px, 4.4vw, 64px);
    row-gap: 0;
    align-items: start;
    margin-top: 56px;
  }

  html[data-theme="glass"] .hero h1 {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
    margin: 0;
    font-size: clamp(72px, 6.8vw, 96px);
    line-height: 1.02;
  }

  html[data-theme="glass"] .hero .lead {
    grid-column: 1;
    grid-row: 2;
    max-width: 26ch;
    margin: 18px 0 0;
    font-size: 22px;
    line-height: 1.45;
  }

  html[data-theme="glass"] body .hero .composer.surface {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 0;
    padding: 28px;
  }

  html[data-theme="glass"] .composer label {
    font-size: 24px;
  }

  html[data-theme="glass"] body .composer textarea {
    min-height: 140px;
    font-size: 20px;
  }

  html[data-theme="glass"] .hero .cats {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
    gap: 16px;
    margin: 28px 0 0;
    padding: 0;
  }

  html[data-theme="glass"] body .cats button {
    justify-content: center;
    min-height: 76px;
    padding: 0 18px;
    gap: 12px;
    border-radius: 22px;
    font-size: 18px;
  }

  html[data-theme="glass"] .cats svg {
    width: 28px;
    height: 28px;
  }

  html[data-theme="glass"] body .how-row {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 20px;
    padding: 24px 28px;
  }

  html[data-theme="glass"] .how-row h2 {
    font-size: 26px;
  }

  html[data-theme="glass"] .how-row ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 18px;
  }

  html[data-theme="glass"] .how-row li {
    min-height: 48px;
    padding: 0 20px;
    font-size: 17px;
  }

  html[data-theme="glass"] .how-row li:first-child {
    padding-left: 0;
  }

  html[data-theme="glass"] .how-row li + li {
    border-top: 0;
    border-left: 1px solid rgba(245, 242, 233, 0.08);
  }

  html[data-theme="glass"] .how-row .num {
    width: 40px;
    height: 40px;
  }

  html[data-theme="glass"] :is(
    .page-head, .list, .detail, .empty-state, .flow
  ) {
    max-width: 760px;
  }

  html[data-theme="glass"] .tabbar {
    display: none;
  }
}

/* Состояния: без анимации размытия, теней и размеров. */

html[data-theme="glass"] :is(
  .btn,
  .cats button,
  .nav .modes a,
  .tabbar a,
  .chip,
  .composer .clip,
  .req
) {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    transform 140ms cubic-bezier(0.2, 0, 0, 1);
}

html[data-theme="glass"] :is(
  a, button, textarea, input, select, summary
):focus-visible {
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}

html[data-theme="glass"] :is(textarea, .input):focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

html[data-theme="glass"] :is(textarea, .input)[aria-invalid="true"] {
  border-color: var(--orange);
  box-shadow: inset 0 0 0 1px var(--orange);
}

html[data-theme="glass"] .btn:not(:disabled):not(
  [aria-disabled="true"]
):active {
  transform: scale(0.985);
}

html[data-theme="glass"] :is(
  .cats button,
  .composer .clip
):not(:disabled):active {
  transform: scale(0.97);
}

html[data-theme="glass"] :is(
  button, .btn
):is(:disabled, [aria-disabled="true"]) {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

html[data-theme="glass"] .btn:not(.tg):not(.vk):not(
  .dark
):not(.ghost):is(:disabled, [aria-disabled="true"]) {
  box-shadow: none;
}

html[data-theme="glass"] .btn[aria-busy="true"] {
  cursor: progress;
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="glass"] .btn:not(.tg):not(.vk):not(
    .dark
  ):not(.ghost):not(:disabled):not([aria-disabled="true"]):hover {
    background: var(--orange-hover);
  }

  html[data-theme="glass"] body :is(
    .cats button,
    .req
  ):hover {
    border-color: rgba(245, 242, 233, 0.23);
  }

  html[data-theme="glass"] .composer .clip:hover {
    background: rgba(34, 35, 33, 0.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  html[data-theme="glass"] body :is(
    .btn,
    .cats button,
    .nav .modes a,
    .tabbar a,
    .chip,
    .composer .clip,
    .req
  ) {
    transition: none;
    transform: none;
  }

  html[data-theme="glass"] .bg-fx {
    display: none;
  }
}

/* Только для браузеров без поддержки backdrop-filter. */

@supports not (
  (backdrop-filter: blur(1px)) or
  (-webkit-backdrop-filter: blur(1px))
) {
  html[data-theme="glass"] body :is(
    .top,
    .surface,
    .sheet-card,
    .composer.surface,
    .req,
    .steps,
    .how-row,
    .method,
    .master-cta,
    .quote,
    .notice.dark,
    .nav .modes,
    .switch-row,
    .cats button,
    .tabbar,
    .install-bar
  ) {
    background: #2B2C29;
  }

  html[data-theme="glass"] body #tabbar {
    background: #262724;
  }
}

/* Дополнения к правкам Codex (10.10.2026): карточки стали тёмным стеклом — всё, что внутри было тёмным
   на кремовом (ссылки, подписи, плашки), переводим в светлое, чтобы читалось. */
html[data-theme="glass"] :is(.link, .text-link, .row .edit, .stars, .step-meta, .lead-cat) { color: var(--orange); }
html[data-theme="glass"] :is(.surface, .sheet-card) :is(.sub, .note, .hint, .row dt, .offer .facts dt, .offer .about, .chip-group-title, .lead-time, .lead-meta, .wait-line, .or) { color: var(--muted-light); }
html[data-theme="glass"] .or::before, html[data-theme="glass"] .or::after { background: rgba(245, 242, 233, 0.14); }
html[data-theme="glass"] .row { border-top-color: rgba(245, 242, 233, 0.1); }
html[data-theme="glass"] .offer .msg { background: rgba(245, 242, 233, 0.07); color: var(--cream); }
html[data-theme="glass"] .err { color: #ff9b8f; }
html[data-theme="glass"] .sheet-close { color: var(--muted-light); }
html[data-theme="glass"] .sheet-close:hover { background: rgba(245, 242, 233, 0.08); color: var(--cream); }
html[data-theme="glass"] .check input { accent-color: var(--orange); }
html[data-theme="glass"] .chip.soft { color: var(--muted-light); }
html[data-theme="glass"] .thumb { background: rgba(245, 242, 233, 0.08); }
html[data-theme="glass"] .rating button[aria-pressed="true"] { color: var(--orange); border-color: var(--orange); }
html[data-theme="glass"] .catalog summary { color: var(--cream); }
/* Окно входа: тёмное стекло поверх затемнения — плотнее, чтобы не просвечивал текст страницы */
html[data-theme="glass"] body .sheet-card { background: linear-gradient(145deg, rgba(48, 49, 46, 0.92), rgba(34, 35, 33, 0.9)); }
html[data-theme="glass"] .bg-fx { opacity: 0.4; }

/* ══ Ревью Codex №2 (10.10.2026): 6/10 → геометрия, акценты, отклик, вход, подвал ══ */

/* КТО? — ревью 2. Добавить в самый конец site.css. */

html[data-theme="glass"] {
  --panel-radius: 20px;
  --control-radius: 16px;
  --glass-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.08),
    0 8px 20px rgba(0, 0, 0, 0.10);
}

html[data-theme="glass"] body {
  font-family: "Golos Text", Golos, "Segoe UI", system-ui, sans-serif;
}

/* Двойные классы намеренны: перебивают body :is(...) из первого патча. */
html[data-theme="glass"] body :is(
  .top.top,
  .surface.surface,
  .req.req,
  .quote.quote,
  .steps.steps,
  .how-row.how-row,
  .master-cta.master-cta,
  .switch-row.switch-row,
  .method.method
) {
  border-radius: var(--panel-radius);
}

/* Вторичные акценты: без оранжевого. */
html[data-theme="glass"] body :is(
  .link.link,
  .text-link.text-link,
  .stars.stars,
  .step-meta.step-meta,
  .lead-cat.lead-cat
) {
  color: var(--cream);
}

html[data-theme="glass"] body .row .edit {
  color: var(--cream);
  text-underline-offset: 3px;
}

html[data-theme="glass"] body .lead-cat.lead-cat {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.025em;
}

/* Статусы: различаются текстом, а не яркими заливками. */
html[data-theme="glass"] body :is(
  .badge.open,
  .badge.closed,
  .badge.done
) {
  padding: 5px 9px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: rgba(245, 242, 233, 0.04);
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

html[data-theme="glass"] body .badge.open {
  color: var(--cream);
}

html[data-theme="glass"] body .rating button[aria-pressed="true"] {
  color: var(--cream);
  border-color: rgba(245, 242, 233, 0.35);
  background: rgba(245, 242, 233, 0.10);
}

/* Геометрия управления. */
html[data-theme="glass"] body .btn.btn {
  border-radius: var(--control-radius);
  text-shadow: none;
}

html[data-theme="glass"] body .nav .modes {
  border-radius: 18px;
}

html[data-theme="glass"] body .nav .modes a {
  border-radius: 16px;
}

html[data-theme="glass"] body .cats.cats button {
  border-radius: 999px;
  background: var(--glass-quiet-bg);
  border-color: rgba(245, 242, 233, 0.12);
  box-shadow: inset 0 1px 0 rgba(245, 242, 233, 0.06);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="glass"] body .composer.composer.surface {
  border-radius: var(--panel-radius);
  box-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.10),
    0 8px 20px rgba(0, 0, 0, 0.10);
}

html[data-theme="glass"] body .composer.composer textarea {
  border-radius: var(--control-radius);
  box-shadow: none;
  filter: none;
}

html[data-theme="glass"] body .composer .actions .btn {
  filter: none;
  box-shadow:
    inset 0 1px 0 rgba(245, 242, 233, 0.20),
    0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Отклик: типографика и вложенные поверхности. */
html[data-theme="glass"] body .offer.offer :is(h2, h3) {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

html[data-theme="glass"] body .offer .facts {
  margin-block: 18px;
  font-size: 16px;
  line-height: 1.45;
}

html[data-theme="glass"] body .offer .facts dt {
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 400;
}

html[data-theme="glass"] body .offer .facts dd {
  min-width: 0;
  color: var(--cream);
  font-weight: 500;
  overflow-wrap: anywhere;
}

html[data-theme="glass"] body .offer .facts strong {
  font-weight: 600;
}

html[data-theme="glass"] body .offer .fact-note {
  display: block;
  margin-top: 3px;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

html[data-theme="glass"] body .offer .msg.msg {
  margin-block: 16px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  color: var(--cream);
  background: rgba(245, 242, 233, 0.045);
  box-shadow: none;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-theme="glass"] body .offer .about {
  color: var(--muted-light);
  font-size: 14px;
  line-height: 1.5;
}

/* Подключается классом chosen к существующей зелёной плашке. */
html[data-theme="glass"] body .offer .chosen.chosen {
  display: block;
  margin-block: 18px;
  padding: 14px;
  border: 1px solid var(--glass-line);
  border-radius: var(--control-radius);
  color: var(--cream);
  background: rgba(245, 242, 233, 0.055);
  box-shadow: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

html[data-theme="glass"] body .offer .chosen.chosen strong {
  color: var(--cream);
  font-weight: 600;
}

html[data-theme="glass"] body .offer .chosen.chosen p {
  margin: 4px 0 0;
  color: var(--muted-light);
}

/* Связь после выбора мастера — главное действие карточки. */
html[data-theme="glass"] body .offer .btn.tg {
  min-height: 52px;
  color: var(--ink);
  background: var(--orange);
  border: 1px solid rgba(245, 242, 233, 0.18);
  box-shadow: inset 0 1px 0 rgba(245, 242, 233, 0.20);
}

html[data-theme="glass"] body .offer .btn.tg svg {
  width: 20px;
  height: 20px;
}

/* Новая шапка отклика; не угадывает старую разметку. */
html[data-theme="glass"] body .offer .offer-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

html[data-theme="glass"] body .offer .offer-specialty {
  margin: 5px 0 0;
  color: var(--muted-light);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

html[data-theme="glass"] body .offer .offer-rating {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: underline;
  text-decoration-color: rgba(245, 242, 233, 0.30);
  text-underline-offset: 3px;
}

html[data-theme="glass"] body .offer .demo-label {
  display: block;
  margin-top: 5px;
  color: var(--muted-light);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
}

/* Вторичные команды. */
html[data-theme="glass"] body :is(
  .logout.logout,
  .report-link.report-link
) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--muted-light);
  background: transparent;
  box-shadow: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  text-decoration: none;
}

html[data-theme="glass"] body .logout.logout {
  margin-block: 16px;
}

html[data-theme="glass"] body .report-link.report-link {
  margin-top: 8px;
}

/* Подвал. */
html[data-theme="glass"] body .foot.foot {
  margin-top: 40px;
  padding-block: 24px;
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="glass"] body .foot.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted-light);
  font-weight: 400;
  text-decoration: none;
}

html[data-theme="glass"] body .foot .foot-links {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 0;
  margin-top: 8px;
}

/* Вход: один главный способ, остальные вторичные. */
html[data-theme="glass"] body .sheet-card.sheet-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 440px;
  max-height: calc(100dvh - 24px);
  padding: 24px;
  border-radius: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

html[data-theme="glass"] body .sheet-card :is(h2, h3) {
  margin: 0 0 8px;
  padding-right: 44px;
  color: var(--cream);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

html[data-theme="glass"] body .sheet-card :is(.sub, .note, .hint) {
  color: var(--muted-light);
  font-size: 13px;
  line-height: 1.5;
}

html[data-theme="glass"] body .sheet-card .check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin-block: 12px;
  color: var(--cream);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

html[data-theme="glass"] body .sheet-card .check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--cream);
}

html[data-theme="glass"] body .sheet-card .check a {
  color: var(--cream);
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: rgba(245, 242, 233, 0.40);
  text-underline-offset: 3px;
}

html[data-theme="glass"] body .sheet-card .btn {
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--control-radius);
  font-size: 14px;
  line-height: 1.35;
}

html[data-theme="glass"] body .sheet-card .btn:is(.tg, .vk) {
  color: var(--cream);
  background: rgba(245, 242, 233, 0.04);
  border: 1px solid var(--glass-line);
  box-shadow: none;
}

html[data-theme="glass"] body .sheet-card .btn.tg {
  color: var(--ink);
  background: var(--cream);
  border-color: transparent;
}

html[data-theme="glass"] body .sheet-card .btn:is(
  .tg, .vk
):is(:disabled, [aria-disabled="true"]) {
  opacity: 1;
  color: var(--muted-light);
  background: rgba(245, 242, 233, 0.035);
  border-color: var(--glass-line);
  box-shadow: none;
}

html[data-theme="glass"] body .sheet-card .demo-login.demo-login {
  color: var(--muted-light);
  background: transparent;
  border-color: var(--glass-line);
  box-shadow: none;
  font-size: 13px;
  font-weight: 400;
}

html[data-theme="glass"] body .sheet-card .or {
  margin-block: 16px;
  color: var(--muted-light);
  font-size: 12px;
  line-height: 1.4;
}

html[data-theme="glass"] body .sheet-close.sheet-close {
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 12px;
}

/* Мобильная плотность ближе к target. */
@media (max-width: 899px) {
  html[data-theme="glass"] :is(.top, main, .foot) {
    width: calc(100% - 28px);
  }

  html[data-theme="glass"] body .top.top {
    padding: 14px 12px 10px;
    row-gap: 10px;
  }

  html[data-theme="glass"] body .nav .modes {
    padding: 2px;
  }

  html[data-theme="glass"] body .nav .modes a {
    min-height: 38px;
    font-size: 14px;
    font-weight: 400;
  }

  html[data-theme="glass"] body .nav .modes a.on {
    font-weight: 600;
  }

  html[data-theme="glass"] body .hero {
    margin-top: 22px;
  }

  html[data-theme="glass"] body .hero h1 {
    font-size: clamp(44px, 13vw, 56px);
    line-height: 1.01;
  }

  html[data-theme="glass"] body .hero .lead {
    margin-top: 12px;
    color: var(--cream);
    font-size: 16px;
    line-height: 1.3;
  }

  html[data-theme="glass"] body .composer.composer.surface {
    margin-top: 18px;
    padding: 14px;
  }

  html[data-theme="glass"] body .composer.composer label {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.25;
  }

  html[data-theme="glass"] body .composer.composer textarea {
    min-height: 100px;
    padding: 12px 48px 12px 16px;
    font-size: 16px;
    line-height: 1.4;
  }

  html[data-theme="glass"] body .composer .actions {
    margin-top: 10px;
  }

  html[data-theme="glass"] body .composer .actions .btn {
    min-height: 52px;
    font-size: 16px;
  }

  html[data-theme="glass"] body .privacy-note {
    gap: 8px;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
  }

  html[data-theme="glass"] body .hero .cats {
    margin: 12px -14px 0;
    padding: 2px 14px 4px;
    gap: 10px;
  }

  html[data-theme="glass"] body .cats.cats button {
    min-height: 44px;
    padding-inline: 16px;
    font-weight: 400;
  }

  html[data-theme="glass"] body :is(
    .how-row.how-row, .steps.steps
  ) {
    margin-top: 14px;
    padding: 16px;
  }

  html[data-theme="glass"] body :is(.how-row, .steps) li {
    min-height: 48px;
    padding-block: 8px;
    font-size: 15px;
  }

  html[data-theme="glass"] body :is(.how-row, .steps) .num {
    width: 32px;
    height: 32px;
  }

  html[data-theme="glass"] body {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
    scroll-padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  html[data-theme="glass"] body #tabbar {
    left: 14px;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 64px;
    padding: 4px;
    border-radius: 22px;
    box-shadow:
      inset 0 1px 0 rgba(245, 242, 233, 0.08),
      0 8px 20px rgba(0, 0, 0, 0.16);
  }

  html[data-theme="glass"] body #tabbar a {
    min-height: 54px;
    padding: 6px 2px;
    gap: 3px;
    border-radius: 17px;
    font-size: clamp(10px, 2.6vw, 11px);
    font-weight: 400;
    white-space: nowrap;
  }

  html[data-theme="glass"] body #tabbar a.on {
    font-weight: 500;
    box-shadow: none;
  }

  html[data-theme="glass"] body #tabbar svg {
    width: 22px;
    height: 22px;
  }

  html[data-theme="glass"] body #tabbar .dot {
    background: var(--cream);
    box-shadow: none;
  }

  html[data-theme="glass"] body #tabbar a.on .dot {
    background: var(--ink);
  }

  html[data-theme="glass"] body .sheet-card.sheet-card {
    padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 600px) {
  html[data-theme="glass"] body .offer .offer-head {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 20px;
  }
}

@media (min-width: 900px) {
  html[data-theme="glass"] {
    --panel-radius: 24px;
  }

  html[data-theme="glass"] body .hero h1 {
    align-self: start;
  }

  html[data-theme="glass"] body .hero .composer.composer.surface {
    padding: 24px;
  }

  html[data-theme="glass"] body .cats.cats button {
    min-height: 64px;
    font-size: 16px;
    font-weight: 400;
  }
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="glass"] body .offer .btn.tg:not(
    :disabled
  ):not([aria-disabled="true"]):hover {
    background: var(--orange-hover);
  }

  html[data-theme="glass"] body :is(
    .logout.logout,
    .report-link.report-link,
    .foot.foot a
  ):hover {
    color: var(--cream);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

/* Сохраняем fallback: более сильное правило категорий
   не должно вернуть прозрачный фон без backdrop-filter. */
@supports not (
  (backdrop-filter: blur(1px)) or
  (-webkit-backdrop-filter: blur(1px))
) {
  html[data-theme="glass"] body .cats.cats button {
    background: #2B2C29;
  }
}

/* Дополнения к ревью 2 (10.10.2026). */
/* Оранжевая «бегущая» рамка вокруг пустого поля — второй акцент рядом с кнопкой: в «вечере» убираем */
html[data-theme="glass"] body .beam::before { display: none; }
/* Шапка отклика: имя, ниже рейтинг — а не рядом, теснясь */
html[data-theme="glass"] body .offer .offer-head { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
html[data-theme="glass"] body .offer .offer-head .stars { font-weight: 400; font-size: 14px; color: var(--muted-light); }
/* Пометка «учебный» в имени — в превью, не в продакшене; на скрине съедала строку */

/* ══ Тема glass = вид Android-приложения (13.10.2026) ══════════════════════════════════════════════
   Те же значения, что в приложении: холодный графит с цветными пятнами под стеклом, светлое стекло,
   капсулы, компактный hero. Движение — эффекты kinetics.colorion.co (Squish, Liquid Glass, Tab Pill
   Glide, Stagger, Border Beam, Shine Sweep, Error Shake, Submit States, Pulse Badge). */
html[data-theme="glass"][data-theme][data-theme] {
  --ground: #26292b;
  --cream: #F5F2E9;
  --orange: #F78343;
  --app-glass: linear-gradient(135deg, rgba(245,242,233,.09), rgba(245,242,233,.024) 65%, rgba(245,242,233,.035));
  --app-glass-strong: linear-gradient(135deg, rgba(245,242,233,.14), rgba(245,242,233,.055) 72%);
  --app-line: rgba(245,242,233,.12);
  --squish-back: cubic-bezier(.34,1.56,.64,1);
  --glide: cubic-bezier(.65,0,.35,1);
  --expo: cubic-bezier(.16,1,.3,1);
}

/* Фон: графит + янтарь справа, холодный сине-серый слева, кремовый свет сверху; медленно плывёт (Aurora Drift, 12s). */
html[data-theme="glass"][data-theme][data-theme] body { background: var(--ground); }
html[data-theme="glass"][data-theme][data-theme] body::before {
  /* Те же пятна, что в приложении (KtoApp.Background): размер — доля большей стороны экрана, центр за краем. */
  content: ""; position: fixed; inset: -6%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(circle 55vmax at 8% 4%, rgba(245,230,207,.14), rgba(245,230,207,.063) 55%, transparent 100%),
    radial-gradient(circle 48vmax at 102% 36%, rgba(247,131,67,.19), rgba(247,131,67,.085) 55%, transparent 100%),
    radial-gradient(circle 55vmax at -4% 78%, rgba(111,135,150,.18), rgba(111,135,150,.08) 55%, transparent 100%),
    radial-gradient(circle 45vmax at 75% 105%, rgba(217,150,94,.094), rgba(217,150,94,.042) 55%, transparent 100%),
    linear-gradient(165deg, #33373a, #282b2d 55%, #1c1f21);
  animation: app-aurora 12s ease-in-out infinite alternate;
}
@keyframes app-aurora { from { transform: translate(-2%, -1.5%) scale(1.04); } to { transform: translate(2%, 1.5%) scale(1.1); } }
html[data-theme="glass"][data-theme][data-theme] .bg-fx { display: none; }

/* Стекло карточек — как glassMaterial в приложении. */
html[data-theme="glass"][data-theme][data-theme] body :is(.top, .surface, .sheet-card, .req, .how-row, .master-cta, .account-panel) {
  background: var(--app-glass);
  border: 1px solid var(--app-line);
  border-top-color: rgba(245,242,233,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 5px rgba(0,0,0,.10), 0 12px 28px rgba(0,0,0,.14);
  -webkit-backdrop-filter: blur(24px) saturate(130%); backdrop-filter: blur(24px) saturate(130%);
  border-radius: 20px;
}
html[data-theme="glass"][data-theme][data-theme] body .surface.composer {
  background: var(--app-glass-strong); border-color: rgba(245,242,233,.16); border-top-color: rgba(245,242,233,.26);
}

/* Шапка: компактная, переключатель-капсула с переезжающей светлой «таблеткой» (Tab Pill Glide 0.4s). */
html[data-theme="glass"][data-theme][data-theme] .top { padding: 10px 12px; }
html[data-theme="glass"][data-theme][data-theme] .brand { font-size: 30px; letter-spacing: -.055em; -webkit-text-stroke: .9px currentColor; }
html[data-theme="glass"][data-theme][data-theme] .nav .modes {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border-radius: 999px;
  background: rgba(245,242,233,.025); border: 1px solid rgba(245,242,233,.10); box-shadow: none;
}
html[data-theme="glass"][data-theme][data-theme] .nav .modes::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px;
  background: var(--cream); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 2px 5px rgba(0,0,0,.12);
  transition: transform .4s var(--glide);
}
html[data-theme="glass"][data-theme][data-theme] .nav .modes:has(.master.on)::before { transform: translateX(100%); }
html[data-theme="glass"][data-theme][data-theme] .nav .modes a {
  position: relative; z-index: 1; min-height: 36px; border-radius: 999px; background: none !important; box-shadow: none !important;
  color: #C0C1BB; font-size: 14.5px; font-weight: 500; transition: color .3s, transform .5s var(--squish-back);
}
html[data-theme="glass"][data-theme][data-theme] .nav .modes a.on { color: #222321; font-weight: 600; }

/* Hero как в приложении: заголовок меньше, светлый подзаголовок вплотную, появление по очереди (Stagger 90ms). */
html[data-theme="glass"][data-theme][data-theme] .hero { margin-top: 18px; }
html[data-theme="glass"][data-theme][data-theme] .hero h1 { font-size: clamp(42px, 11.2vw, 64px); line-height: .98; letter-spacing: -.035em; }
html[data-theme="glass"][data-theme][data-theme] .hero .lead { margin: 6px 0 0; color: #F0EEE8; font-size: 15px; line-height: 1.24; max-width: 34ch; }
html[data-theme="glass"][data-theme][data-theme] .hero > :is(h1, .lead, .composer, .how-row) { animation: app-rise .45s var(--expo) both; }
html[data-theme="glass"][data-theme][data-theme] .hero > .lead { animation-delay: 90ms; }
html[data-theme="glass"][data-theme][data-theme] .hero > .composer { animation-delay: 180ms; }
html[data-theme="glass"][data-theme][data-theme] .hero > .how-row { animation-delay: 270ms; }
@keyframes app-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Форма «Что случилось?» */
html[data-theme="glass"][data-theme][data-theme] body .composer { margin-top: 16px; padding: 16px 14px 12px; border-radius: 20px; position: relative; }
html[data-theme="glass"][data-theme][data-theme] .composer > label { font-size: 18px; font-weight: 750; letter-spacing: -.015em; margin: 0 0 10px 4px; }
html[data-theme="glass"][data-theme][data-theme] .composer textarea {
  min-height: 80px; padding: 14px 92px 14px 16px; border-radius: 16px; background: #F5F2E9; color: #252A27;
  font-size: 15px; line-height: 1.38; border: 1px solid rgba(255,255,255,.3);
}
html[data-theme="glass"][data-theme][data-theme] .composer textarea::placeholder { color: #70756E; }
/* Скрепка → понятная капсула «Фото» */
html[data-theme="glass"][data-theme][data-theme] .composer .clip {
  right: 6px; bottom: 6px; top: auto; width: auto; min-width: 44px; height: 44px; padding: 0 10px; gap: 4px;
  display: inline-flex; align-items: center; border-radius: 999px; color: #343A36; background: transparent;
  transition: transform .5s var(--squish-back);
}
html[data-theme="glass"][data-theme][data-theme] .composer .clip::after { content: "Фото"; font-size: 14px; font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] .composer .clip svg { width: 18px; height: 18px; }
/* Border Beam: пока пишете, по рамке формы бежит огонёк (3s). */
@property --beam-turn { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
html[data-theme="glass"][data-theme][data-theme] .composer::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--beam-turn), transparent 0 72%, var(--orange) 84%, #EDE9E0 90%, transparent 96%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s; animation: app-beam 3s linear infinite;
}
html[data-theme="glass"][data-theme][data-theme] .composer:focus-within::after { opacity: 1; }
@keyframes app-beam { to { --beam-turn: 360deg; } }
/* Error Shake */
@keyframes app-shake {
  10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); }
}

/* Главная кнопка: капсула, Squish при нажатии, Shine Sweep когда описание готово. */
html[data-theme="glass"][data-theme][data-theme] .composer .actions { margin-top: 9px; }
html[data-theme="glass"][data-theme][data-theme] body .btn:not(.tg):not(.vk):not(.dark):not(.ghost) {
  border-radius: 999px; background: linear-gradient(180deg, #FA8B50, #F78343); color: #222321;
  border: 1px solid rgba(255,255,255,.18); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 3px 8px rgba(0,0,0,.14);
  position: relative; overflow: hidden; transition: transform .5s var(--squish-back);
}
html[data-theme="glass"][data-theme][data-theme] .composer .actions .btn { min-height: 46px; font-size: 16px; font-weight: 750; }
html[data-theme="glass"][data-theme][data-theme] :is(.btn, .clip, .nav .modes a, .tabbar a, .how-row, .req):active { transform: scale(.96); transition: transform 80ms ease-out; }
html[data-theme="glass"][data-theme][data-theme] .btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(237,233,224,.25), transparent); pointer-events: none;
}
html[data-theme="glass"][data-theme][data-theme] .composer.ready .actions .btn::before { animation: app-shine 6s var(--glide) 1.2s infinite; }
@keyframes app-shine { 0% { left: -120%; } 15%, 100% { left: 120%; } }
/* Submit States: точки вместо надписи, пока идёт разбор */
html[data-theme="glass"][data-theme][data-theme] .btn .dots { display: inline-flex; gap: 5px; }
html[data-theme="glass"][data-theme][data-theme] .btn .dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: app-dot .6s ease-in-out infinite; }
html[data-theme="glass"][data-theme][data-theme] .btn .dots i:nth-child(2) { animation-delay: .12s; }
html[data-theme="glass"][data-theme][data-theme] .btn .dots i:nth-child(3) { animation-delay: .24s; }
@keyframes app-dot { 50% { transform: translateY(-6px); } }

html[data-theme="glass"][data-theme][data-theme] .privacy-note { margin: 10px 0 0 4px; color: #D9D8D2; font-size: 11.5px; line-height: 1.3; }

/* Плитки разделов владелец убрал */
html[data-theme="glass"][data-theme][data-theme] .hero .cats { display: none; }

/* «Как это работает»: стеклянная карточка, кремовые номера, «Подробнее →» */
html[data-theme="glass"][data-theme][data-theme] body .how-row { margin-top: 12px; padding: 12px 12px 8px 16px; cursor: pointer; position: relative; overflow: hidden; }
html[data-theme="glass"][data-theme][data-theme] .how-row h2 { font-size: 18px; font-weight: 750; letter-spacing: -.015em; display: flex; align-items: center; }
html[data-theme="glass"][data-theme][data-theme] .how-row h2::after { content: "Подробнее →"; margin-left: auto; font-size: 13px; font-weight: 400; color: #FFB880; }
html[data-theme="glass"][data-theme][data-theme] .how-row ol { margin: 4px 0 0; }
html[data-theme="glass"][data-theme][data-theme] body .how-row li { min-height: 40px; padding: 4px 0; font-size: 14px; gap: 12px; }
html[data-theme="glass"][data-theme][data-theme] .how-row li + li { border-top: 1px solid rgba(245,242,233,.08); }
html[data-theme="glass"][data-theme][data-theme] body .how-row .num { width: 28px; height: 28px; font-size: 14px; background: var(--cream); color: #222321; }
/* Liquid Glass Press: блик проходит по стеклу при нажатии */
html[data-theme="glass"][data-theme][data-theme] :is(.how-row, .req)::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; transform: translateX(-100%);
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
}
html[data-theme="glass"][data-theme][data-theme] :is(.how-row, .req):active::after { transform: translateX(220%); transition: transform .65s var(--expo); }

/* Нижнее меню: тёмное стекло, капсула выбранного пункта переезжает (Tab Pill Glide) */
html[data-theme="glass"][data-theme][data-theme] .tabbar {
  background: linear-gradient(125deg, rgba(245,242,233,.10), rgba(245,242,233,.04)), rgba(42,45,47,.85);
  border: 1px solid rgba(245,242,233,.18); border-radius: 22px; padding: 5px;
  -webkit-backdrop-filter: blur(28px) saturate(130%); backdrop-filter: blur(28px) saturate(130%);
}
html[data-theme="glass"][data-theme][data-theme] .tabbar a { border-radius: 17px; transition: background .4s var(--glide), color .3s, transform .5s var(--squish-back); }
html[data-theme="glass"][data-theme][data-theme] .tabbar a.on { background: var(--cream); color: #293128; }
/* Pulse Badge на «Мои заявки» */
html[data-theme="glass"][data-theme][data-theme] .tabbar .dot, html[data-theme="glass"][data-theme][data-theme] .nav .dot { position: relative; }
html[data-theme="glass"][data-theme][data-theme] :is(.tabbar, .nav) .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: app-pulse 1.8s ease-out infinite;
}
@keyframes app-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.6); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html[data-theme="glass"][data-theme][data-theme] *, html[data-theme="glass"][data-theme][data-theme] body::before { animation: none !important; transition: none !important; }
}

/* Инструкция «Как это работает» (/how) */
.how-page { display: grid; gap: 14px; margin-top: 18px; }
.how-page .eyebrow { margin: 0 4px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.how-page h1 { margin: 0 4px 4px; font-size: clamp(30px, 8vw, 40px); line-height: 1.1; letter-spacing: -.03em; }
.how-step { padding: 14px; display: grid; gap: 12px; }
.how-pic { aspect-ratio: 16 / 9; border-radius: 14px; display: grid; place-content: center; justify-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(245,242,233,.12), rgba(245,242,233,.03)); border: 1px solid rgba(245,242,233,.1);
  color: rgba(245,242,233,.7); font-size: 12px; }
.how-pic svg { width: 34px; height: 34px; }
.how-head { display: flex; align-items: center; gap: 12px; }
.how-head .num { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: #F5F2E9; color: #222321; font-weight: 700; }
.how-head .kicker { margin: 0; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: #FFB880; }
.how-head h2 { margin: 0; font-size: 18px; font-weight: 750; }
.how-step > p { margin: 0; font-size: 14px; line-height: 1.5; opacity: .85; }
html[data-theme="glass"][data-theme][data-theme] .how-page > * { animation: app-rise .45s var(--expo) both; }
html[data-theme="glass"][data-theme][data-theme] .how-page > :nth-child(3) { animation-delay: 90ms; }
html[data-theme="glass"][data-theme][data-theme] .how-page > :nth-child(4) { animation-delay: 180ms; }
html[data-theme="glass"][data-theme][data-theme] .how-page > :nth-child(5) { animation-delay: 270ms; }

/* ══ Тема glass: размеры 1:1 с Android-приложением (dp = px) + блоки приглашения и вопросов (14.10.2026) ══ */
@font-face {                     /* шрифт заголовков приложения (DejaVu Sans Bold, свободная лицензия) */
  font-family: KtoDisplay;
  src: url("/s/fonts/DejaVuSans-Bold.ttf") format("truetype");
  font-weight: 700 900;
  font-display: swap;
}
html[data-theme="glass"][data-theme][data-theme] :is(.brand, .hero h1) { font-family: KtoDisplay, Golos, sans-serif; }

/* «Как это работает»: шаги раскрываются по нажатию, каждый независимо */
html[data-theme="glass"][data-theme][data-theme] body .how-row { cursor: default; padding: 12px 12px 6px 16px; }
html[data-theme="glass"][data-theme][data-theme] .how-row h2::after { content: none; }
html[data-theme="glass"][data-theme][data-theme] body .how-row li { display: block; min-height: 0; padding: 0; }
html[data-theme="glass"][data-theme][data-theme] .how-step-btn {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 12px; padding: 4px 4px 4px 0;
  background: none; border: 0; color: var(--cream); font: inherit; font-size: 14px; text-align: left; cursor: pointer;
  transition: transform .5s var(--squish-back);
}
html[data-theme="glass"][data-theme][data-theme] .how-step-btn:active { transform: scale(.98); transition: transform 80ms ease-out; }
html[data-theme="glass"][data-theme][data-theme] .how-step-btn .num {
  width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--cream); color: #222321; font-size: 14px; font-weight: 700;
}
html[data-theme="glass"][data-theme][data-theme] .how-step-btn .t { flex: 1; }
html[data-theme="glass"][data-theme][data-theme] :is(.how-step-btn, .faq-app summary) .plus { position: relative; width: 20px; height: 20px; flex: none; }
html[data-theme="glass"][data-theme][data-theme] :is(.how-step-btn, .faq-app summary) .plus::before,
html[data-theme="glass"][data-theme][data-theme] :is(.how-step-btn, .faq-app summary) .plus::after {
  content: ""; position: absolute; left: 3px; right: 3px; top: 9px; height: 2px; border-radius: 2px; background: var(--orange);
}
html[data-theme="glass"][data-theme][data-theme] :is(.how-step-btn, .faq-app summary) .plus::after { transform: rotate(90deg); }
html[data-theme="glass"][data-theme][data-theme] :is(.how-step-btn, .faq-app summary) .plus { transition: transform .4s var(--squish-back); }
html[data-theme="glass"][data-theme][data-theme] :is(.how-step-btn[aria-expanded="true"], .faq-app details[open] summary) .plus { transform: rotate(45deg); }
html[data-theme="glass"][data-theme][data-theme] .how-more { padding: 2px 0 12px 40px; animation: app-rise .45s var(--expo) both; }
html[data-theme="glass"][data-theme][data-theme] .how-more p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; color: #D0D2CB; }
html[data-theme="glass"][data-theme][data-theme] .how-more .how-pic { aspect-ratio: 16 / 9; }

/* Приглашение мастеров — кремовая карточка, как в приложении */
html[data-theme="glass"][data-theme][data-theme] .invite { margin-top: 20px; padding: 28px 21px; border-radius: 20px; background: #EFE9DD; color: #25271F; }
html[data-theme="glass"][data-theme][data-theme] .invite .eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; color: #C9561B; }
html[data-theme="glass"][data-theme][data-theme] .invite h2 { margin: 0 0 14px; font-size: 23.5px; line-height: 30px; letter-spacing: -1px; font-weight: 700; color: #25271F; }
html[data-theme="glass"][data-theme][data-theme] .invite h2 em, html[data-theme="glass"][data-theme][data-theme] .faq-app h2 em { font-style: normal; color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] .invite > p:not(.eyebrow) { margin: 0; font-size: 16px; line-height: 24px; color: #3B3E35; font-weight: 450; }   /* 17.10.2026: было 13px #717568 — плохо видно на светлом */
html[data-theme="glass"][data-theme][data-theme] .invite-btn {
  margin-top: 24px; min-height: 60px; padding: 0 22px; border-radius: 13px; display: flex; align-items: center; justify-content: space-between;
  background: #282B24; color: #FFF7EB; font-size: 13px; text-decoration: none; transition: transform .5s var(--squish-back);
}
html[data-theme="glass"][data-theme][data-theme] .invite-btn:active { transform: scale(.97); transition: transform 80ms ease-out; }
html[data-theme="glass"][data-theme][data-theme] .invite-btn svg { width: 24px; height: 24px; }

/* «Пара вопросов перед началом» */
html[data-theme="glass"][data-theme][data-theme] .faq-app { margin-top: 36px; padding-bottom: 15px; }
html[data-theme="glass"][data-theme][data-theme] .faq-app .eyebrow { margin: 0; font-size: 9px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; color: #FFAD75; }
html[data-theme="glass"][data-theme][data-theme] .faq-app h2 { margin: 22px 0; font-size: 27px; line-height: 32.4px; letter-spacing: -1px; font-weight: 700; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] .faq-app details { border-bottom: 1px solid rgba(255,255,255,.086); }
html[data-theme="glass"][data-theme][data-theme] .faq-app summary {
  list-style: none; display: flex; align-items: center; gap: 15px; padding: 20px 0; cursor: pointer; font-size: 14px; line-height: 20px; color: var(--cream);
}
html[data-theme="glass"][data-theme][data-theme] .faq-app summary::-webkit-details-marker { display: none; }
html[data-theme="glass"][data-theme][data-theme] .faq-app summary > :first-child { flex: 1; }
html[data-theme="glass"][data-theme][data-theme] .faq-app details p { margin: 0 25px 20px 0; font-size: 13px; line-height: 23.4px; color: #A9ACA2; animation: app-rise .45s var(--expo) both; }
html[data-theme="glass"][data-theme][data-theme] .faq-app summary { justify-content: space-between; }

/* Телефон: те же размеры, что в приложении (Page: поля 14, шапка 14/10, hero 42/41 и т.д.) */
@media (max-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] .app { padding-left: 14px; padding-right: 14px; }
  html[data-theme="glass"][data-theme][data-theme] main { padding-left: 0; padding-right: 0; }
  html[data-theme="glass"][data-theme][data-theme] body .top { margin: 10px 14px 0; padding: 9px 12px; border-radius: 20px; gap: 6px; }
  html[data-theme="glass"][data-theme][data-theme] .brand { font-size: 30px; line-height: 30px; letter-spacing: -1.65px; -webkit-text-stroke: 1.2px currentColor; }
  html[data-theme="glass"][data-theme][data-theme] .top .city { font-size: 12.4px; }
  html[data-theme="glass"][data-theme][data-theme] .nav .modes a { min-height: 34px; font-size: 14.5px; }
  html[data-theme="glass"][data-theme][data-theme] .hero { margin-top: 16px; }
  html[data-theme="glass"][data-theme][data-theme] .hero h1 { font-size: 42px; line-height: 41px; letter-spacing: -1.5px; font-weight: 800; }
  html[data-theme="glass"][data-theme][data-theme] .hero .lead { margin-top: 6px; font-size: 15px; line-height: 18.5px; }
  html[data-theme="glass"][data-theme][data-theme] body .composer { margin-top: 16px; padding: 16px 14px 12px; }
  html[data-theme="glass"][data-theme][data-theme] .composer > label { font-size: 18px; line-height: 22px; margin: 0 0 10px 4px; }
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { min-height: 80px; font-size: 14.5px; line-height: 20px; padding: 16px 96px 16px 16px; }
  html[data-theme="glass"][data-theme][data-theme] .composer .actions .btn { min-height: 46px; }
  html[data-theme="glass"][data-theme][data-theme] .composer .arr { width: 36px; height: 36px; }
  html[data-theme="glass"][data-theme][data-theme] .privacy-note { font-size: 11.5px; line-height: 15px; margin-top: 10px; }
  html[data-theme="glass"][data-theme][data-theme] body .how-row { margin-top: 12px; }
  html[data-theme="glass"][data-theme][data-theme] .how-row h2 { font-size: 18px; line-height: 22px; margin: 0 0 4px; }
  html[data-theme="glass"][data-theme][data-theme] .tabbar { left: 16px; right: 16px; bottom: 10px; padding: 5px; border-radius: 22px; }
  html[data-theme="glass"][data-theme][data-theme] .tabbar a { min-height: 55px; border-radius: 17px; font-size: 10px; gap: 5px; }
  html[data-theme="glass"][data-theme][data-theme] .tabbar a svg { width: 21px; height: 21px; }
}

/* ══ Тема glass: компьютер — полноценная витрина (14.10.2026) ══════════════════════════════════════
   Первый экран в две колонки с телефоном приложения, шаги с картинками, «Почему КТО?», приглашение
   мастеров со снимком кабинета, вопросы в две колонки. На телефоне .wide-only скрыты — там вид 1:1 с приложением. */
.wide-only { display: none; }
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .wide-only { display: revert; }
  html[data-theme="glass"][data-theme][data-theme] .app { max-width: 1240px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
  html[data-theme="glass"][data-theme][data-theme] main { padding: 0; }
  html[data-theme="glass"][data-theme][data-theme] body .top { margin: 18px 0 0; padding: 12px 18px; }
  html[data-theme="glass"][data-theme][data-theme] .tabbar { display: none; }

  /* Первый экран */
  html[data-theme="glass"][data-theme][data-theme] .hero {
    display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); column-gap: 64px;
    grid-template-areas: "kicker visual" "h1 visual" "lead visual" "points visual" "form visual" "how how";
    align-items: start; margin-top: 56px;
  }
  html[data-theme="glass"][data-theme][data-theme] .hero > .kicker { grid-area: kicker; margin: 0 0 18px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #FFB880; }
  html[data-theme="glass"][data-theme][data-theme] .hero > h1 { grid-area: h1; font-size: 96px; line-height: .94; letter-spacing: -4px; margin: 0; }
  html[data-theme="glass"][data-theme][data-theme] .hero > .lead { grid-area: lead; margin: 22px 0 0; font-size: 21px; line-height: 1.4; color: #E8E6DF; max-width: 30ch; }
  html[data-theme="glass"][data-theme][data-theme] .hero > .points { grid-area: points; list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
  html[data-theme="glass"][data-theme][data-theme] .points li { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.4; color: #BFC1BA; }
  html[data-theme="glass"][data-theme][data-theme] .points li svg { width: 20px; height: 20px; flex: none; color: #FFB880; margin-top: 1px; }
  html[data-theme="glass"][data-theme][data-theme] .points b { display: block; color: var(--cream); font-size: 14px; font-weight: 650; margin-bottom: 2px; }
  html[data-theme="glass"][data-theme][data-theme] body .hero > .composer { grid-area: form; margin-top: 36px; padding: 22px 20px 16px; border-radius: 26px; max-width: 600px; }
  html[data-theme="glass"][data-theme][data-theme] .composer > label { font-size: 22px; line-height: 26px; }
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { min-height: 112px; font-size: 16px; line-height: 1.45; border-radius: 18px; }
  html[data-theme="glass"][data-theme][data-theme] .composer .actions .btn { min-height: 56px; font-size: 17px; }

  /* Телефон приложения справа: два экрана с глубиной и стеклянные подсказки */
  html[data-theme="glass"][data-theme][data-theme] .hero-visual { grid-area: visual; position: relative; height: 700px; margin-top: 8px; }
  html[data-theme="glass"][data-theme][data-theme] .phone {
    position: absolute; width: 300px; aspect-ratio: 1080 / 2400; border-radius: 44px; padding: 10px;
    background: linear-gradient(160deg, #3a3d40, #17191a); box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 30px 80px rgba(0,0,0,.45), 0 8px 20px rgba(0,0,0,.3);
  }
  html[data-theme="glass"][data-theme][data-theme] .phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 34px; display: block; }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone { right: 40px; top: 0; transform: rotate(3deg); z-index: 2; animation: app-float 7s ease-in-out infinite alternate; }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone.back { right: 250px; top: 90px; transform: rotate(-7deg) scale(.86); z-index: 1; filter: brightness(.7) saturate(.9); animation-delay: -3s; }
  @keyframes app-float { from { translate: 0 0; } to { translate: 0 -14px; } }
  html[data-theme="glass"][data-theme][data-theme] .float {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; max-width: 250px; padding: 12px 16px;
    border-radius: 18px; font-size: 13px; line-height: 1.35; color: var(--cream);
    background: linear-gradient(135deg, rgba(245,242,233,.16), rgba(245,242,233,.06)); border: 1px solid rgba(245,242,233,.2);
    -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); box-shadow: 0 16px 40px rgba(0,0,0,.3);
    animation: app-rise .6s var(--expo) both;
  }
  html[data-theme="glass"][data-theme][data-theme] .float svg { width: 20px; height: 20px; flex: none; color: #FFB880; }
  html[data-theme="glass"][data-theme][data-theme] .float.f1 { left: 0; top: 420px; animation-delay: .5s; }
  html[data-theme="glass"][data-theme][data-theme] .float.f2 { right: 0; top: 560px; animation-delay: .8s; }
  html[data-theme="glass"][data-theme][data-theme] .float.f2 i { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex: none; position: relative; }
  html[data-theme="glass"][data-theme][data-theme] .float.f2 i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--orange); animation: app-pulse 1.8s ease-out infinite; }

  /* Как это работает — три карточки с картинками, всё раскрыто */
  html[data-theme="glass"][data-theme][data-theme] body .hero > .how-row { grid-area: how; margin-top: 96px; padding: 0; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; overflow: visible; }
  html[data-theme="glass"][data-theme][data-theme] .how-row h2 { font-size: 44px; line-height: 1.05; letter-spacing: -1.5px; margin: 0 0 28px; }
  html[data-theme="glass"][data-theme][data-theme] .how-row ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0; }
  html[data-theme="glass"][data-theme][data-theme] body .how-row li {
    border: 1px solid var(--app-line) !important; border-top-color: rgba(245,242,233,.2) !important; border-radius: 24px; padding: 14px;
    background: var(--app-glass); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: 0 12px 28px rgba(0,0,0,.14);
    display: flex; flex-direction: column-reverse;
  }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn { pointer-events: none; padding: 14px 4px 0; font-size: 18px; font-weight: 700; }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn .plus { display: none; }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn .num { width: 32px; height: 32px; font-size: 15px; }
  html[data-theme="glass"][data-theme][data-theme] .how-more, html[data-theme="glass"][data-theme][data-theme] .how-more[hidden] { display: block !important; padding: 0; animation: none; }
  html[data-theme="glass"][data-theme][data-theme] .how-more p { font-size: 14px; line-height: 1.55; padding: 0 4px 6px; }
  html[data-theme="glass"][data-theme][data-theme] .how-more .how-pic { border-radius: 16px; }

  /* Почему «КТО?» — бенто */
  html[data-theme="glass"][data-theme][data-theme] .why { margin-top: 120px; }
  html[data-theme="glass"][data-theme][data-theme] :is(.why, .faq-app) .eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #FFB880; }
  html[data-theme="glass"][data-theme][data-theme] .why h2 { margin: 0 0 32px; font-size: 44px; line-height: 1.05; letter-spacing: -1.5px; }
  html[data-theme="glass"][data-theme][data-theme] .why h2 em { font-style: normal; color: var(--orange); }
  html[data-theme="glass"][data-theme][data-theme] .why-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid .surface { padding: 26px; border-radius: 24px; transition: transform .5s var(--squish-back), border-color .3s; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid .surface:hover { transform: translateY(-4px); border-color: rgba(245,242,233,.24); }
  html[data-theme="glass"][data-theme][data-theme] .why-grid .w-big { grid-row: span 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: 340px;
    background: radial-gradient(120% 90% at 100% 0%, rgba(247,131,67,.22), transparent 60%), var(--app-glass); }
  html[data-theme="glass"][data-theme][data-theme] .why-grid svg { width: 28px; height: 28px; color: #FFB880; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid h3 { margin: 18px 0 8px; font-size: 20px; letter-spacing: -.3px; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid .w-big h3 { font-size: 30px; letter-spacing: -.8px; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid p { margin: 0; font-size: 14px; line-height: 1.55; color: #C5C7C0; }

  /* Приглашение мастеров — широко, со снимком кабинета */
  html[data-theme="glass"][data-theme][data-theme] .invite { position: relative; margin-top: 120px; padding: 64px 56px; border-radius: 32px; min-height: 360px; overflow: hidden; padding-right: 46%; }
  html[data-theme="glass"][data-theme][data-theme] .invite .eyebrow { font-size: 12px; }
  html[data-theme="glass"][data-theme][data-theme] .invite h2 { font-size: 46px; line-height: 1.08; letter-spacing: -1.8px; }
  html[data-theme="glass"][data-theme][data-theme] .invite > p:not(.eyebrow) { font-size: 19px; line-height: 1.6; max-width: 46ch; }
  html[data-theme="glass"][data-theme][data-theme] .invite-btn { display: inline-flex; gap: 28px; min-height: 60px; padding: 0 26px; font-size: 16px; }
  html[data-theme="glass"][data-theme][data-theme] .invite-visual { position: absolute; right: 64px; top: 48px; bottom: -160px; width: 300px; }
  html[data-theme="glass"][data-theme][data-theme] .invite-visual .phone { position: relative; width: 300px; transform: rotate(-4deg); }

  /* Вопросы — две колонки */
  html[data-theme="glass"][data-theme][data-theme] .faq-app { display: grid; grid-template-columns: 1fr 1.25fr; column-gap: 64px; margin-top: 120px; padding-bottom: 80px; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app > .eyebrow, html[data-theme="glass"][data-theme][data-theme] .faq-app > h2 { grid-column: 1; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app > h2 { font-size: 44px; line-height: 1.08; letter-spacing: -1.5px; margin: 0; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app details { grid-column: 2; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app details:first-of-type { grid-row: 1 / span 1; border-top: 1px solid rgba(255,255,255,.086); }
  html[data-theme="glass"][data-theme][data-theme] .faq-app summary { font-size: 18px; padding: 24px 0; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app details p { font-size: 15px; line-height: 1.7; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  html[data-theme="glass"][data-theme][data-theme] .hero > h1 { font-size: 76px; }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone.back { display: none; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid { grid-template-columns: 1fr 1fr; }
  html[data-theme="glass"][data-theme][data-theme] .why-grid .w-big { grid-row: auto; grid-column: span 2; min-height: 0; }
  html[data-theme="glass"][data-theme][data-theme] .invite { padding-right: 56px; }
  html[data-theme="glass"][data-theme][data-theme] .invite-visual { display: none; }
}

/* Картинки шагов «Как это работает» (снимки приложения с подписями) */
.how-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; border: 1px solid rgba(245,242,233,.1); }
@media (min-width: 900px) {
  /* шаг на компьютере: картинка → номер и название → пояснение; шапка во всю ширину */
  html[data-theme="glass"][data-theme][data-theme] body .how-row li { display: flex; flex-direction: column; }
  html[data-theme="glass"][data-theme][data-theme] .how-more, html[data-theme="glass"][data-theme][data-theme] .how-more[hidden] { display: contents !important; }
  html[data-theme="glass"][data-theme][data-theme] .how-more .how-img { order: 1; }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn { order: 2; padding: 16px 4px 4px; }
  html[data-theme="glass"][data-theme][data-theme] .how-more p { order: 3; margin-top: 6px; }
  html[data-theme="glass"][data-theme][data-theme] body .top { width: auto; max-width: none; }
}
@media (min-width: 900px) {
  /* «Пишете как есть»: живые примеры фраз сообщениями */
  html[data-theme="glass"][data-theme][data-theme] .why-grid .w-big { justify-content: space-between; }
  html[data-theme="glass"][data-theme][data-theme] .bubbles { display: grid; gap: 10px; justify-items: start; margin-bottom: 22px; }
  html[data-theme="glass"][data-theme][data-theme] .bubbles span {
    padding: 10px 16px; border-radius: 18px 18px 18px 6px; font-size: 14px; color: #222321; background: #F5F2E9;
    box-shadow: 0 8px 20px rgba(0,0,0,.18); animation: app-rise .6s var(--expo) both;
  }
  html[data-theme="glass"][data-theme][data-theme] .bubbles span:nth-child(2) { margin-left: 34px; background: rgba(245,242,233,.88); animation-delay: .15s; }
  html[data-theme="glass"][data-theme][data-theme] .bubbles span:nth-child(3) { margin-left: 12px; background: rgba(245,242,233,.76); animation-delay: .3s; }
}
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .faq-app { align-content: start; align-items: start; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app > .eyebrow { grid-row: 1; }
  html[data-theme="glass"][data-theme][data-theme] .faq-app > h2 { grid-row: 2; }
  html[data-theme="glass"][data-theme][data-theme] .faq-list { grid-column: 2; grid-row: 1 / span 2; border-top: 1px solid rgba(255,255,255,.086); }
  html[data-theme="glass"][data-theme][data-theme] .faq-app details:first-of-type { border-top: 0; }
}

/* Сплошная заливка страницы закрывала цветной фон — в теме glass она прозрачная, цвет основы даёт html. */
html[data-theme="glass"][data-theme][data-theme] body { background: transparent; }
@media (max-width: 640px) {
  /* Первый экран как в приложении: промежутки фиксированные (16 / 12), а весь блок от заголовка до
     «Как это работает» масштабируется под высоту телефона (--fit считает fitFirstScreen в app.js),
     чтобы «Как это работает» вставало ровно над нижним меню. Следующий блок всегда за краем экрана. */
  html[data-theme="glass"][data-theme][data-theme] .hero {
    box-sizing: border-box; min-height: calc(100svh - var(--first-top, 123px)); padding-bottom: var(--nav-room, 86px);
  }
  html[data-theme="glass"][data-theme][data-theme] .hero > :is(h1, .lead, .composer, .how-row) { zoom: var(--fit, 1); }
  html[data-theme="glass"][data-theme][data-theme] .hero > .lead { margin-bottom: 16px; }
  html[data-theme="glass"][data-theme][data-theme] body .hero > .composer { margin-top: 0; margin-bottom: 12px; }
  html[data-theme="glass"][data-theme][data-theme] body .hero > .how-row { margin-top: 0; }
}
@media (max-width: 640px) {
  /* «Нужен мастер?» крупнее и жирнее (обводка, как у логотипа); место — из отступа над заголовком */
  html[data-theme="glass"][data-theme][data-theme] .hero { margin-top: 6px; }
  html[data-theme="glass"][data-theme][data-theme] .hero h1 { font-size: 48px; line-height: 46px; letter-spacing: -1.8px; -webkit-text-stroke: 1.2px currentColor; }
  html[data-theme="glass"][data-theme][data-theme] .hero h1 em { -webkit-text-stroke-color: var(--orange); }
}

/* ══ Компьютер: первый экран по высоте окна (ноутбук 15″ — форма на первом экране), шире на больших мониторах ══ */
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .app { max-width: min(1520px, 92vw); }
  html[data-theme="glass"][data-theme][data-theme] .hero { margin-top: clamp(18px, 4vh, 56px); column-gap: clamp(40px, 5vw, 96px); }
  html[data-theme="glass"][data-theme][data-theme] .hero > .kicker { margin-bottom: clamp(8px, 1.6vh, 18px); }
  html[data-theme="glass"][data-theme][data-theme] .hero > h1 { font-size: clamp(56px, min(9.4vh, 6.6vw), 108px); letter-spacing: -0.045em; }
  html[data-theme="glass"][data-theme][data-theme] .hero > .lead { margin-top: clamp(10px, 2vh, 22px); font-size: clamp(17px, 2.3vh, 22px); }
  html[data-theme="glass"][data-theme][data-theme] .hero > .points { margin-top: clamp(14px, 2.6vh, 28px); }
  html[data-theme="glass"][data-theme][data-theme] body .hero > .composer { margin-top: clamp(16px, 3.2vh, 36px); padding: clamp(14px, 2vh, 22px) 20px clamp(12px, 1.6vh, 16px); }
  html[data-theme="glass"][data-theme][data-theme] .composer > label { font-size: clamp(18px, 2.4vh, 22px); }
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { min-height: clamp(68px, 11vh, 120px); }
  html[data-theme="glass"][data-theme][data-theme] .composer .actions .btn { min-height: clamp(48px, 6vh, 56px); }
  /* Телефоны: размер от высоты окна, чтобы целиком помещались на первом экране */
  html[data-theme="glass"][data-theme][data-theme] .hero-visual { --pw: clamp(220px, calc((100vh - 190px) / 2.35), 330px); height: calc(var(--pw) * 2.3); }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone { width: var(--pw); right: calc(var(--pw) * .12); }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone.back { right: calc(var(--pw) * .8); top: calc(var(--pw) * .3); }
  html[data-theme="glass"][data-theme][data-theme] .float { display: none; }
  /* «Пришло предложение мастера» — как push-уведомление, ровно над экраном переднего телефона */
  html[data-theme="glass"][data-theme][data-theme] .push {
    position: absolute; z-index: 3; right: calc(var(--pw) * .12 - 14px); top: calc(var(--pw) * .16);
    width: calc(var(--pw) + 28px); box-sizing: border-box; display: grid; grid-template-columns: auto 1fr auto;
    align-items: center; gap: 4px 10px; padding: 12px 14px; border-radius: 20px; transform: rotate(3deg);
    background: linear-gradient(135deg, rgba(245,242,233,.2), rgba(245,242,233,.08)); border: 1px solid rgba(245,242,233,.24);
    -webkit-backdrop-filter: blur(22px) saturate(150%); backdrop-filter: blur(22px) saturate(150%);
    box-shadow: 0 18px 44px rgba(0,0,0,.35); color: var(--cream); font-size: 14px;
    animation: app-push .7s var(--expo) 1s both;
  }
  html[data-theme="glass"][data-theme][data-theme] .push b { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
    background: #222321; color: var(--orange); font-size: 11px; font-family: KtoDisplay, Golos, sans-serif; letter-spacing: -.5px; }
  html[data-theme="glass"][data-theme][data-theme] .push span { font-weight: 600; }
  html[data-theme="glass"][data-theme][data-theme] .push small { grid-row: span 2; align-self: start; font-size: 11px; color: rgba(245,242,233,.6); }
  @keyframes app-push { from { opacity: 0; translate: 0 -18px; } to { opacity: 1; translate: 0 0; } }
}
.push { display: none; }
@media (min-width: 900px) { html[data-theme="glass"][data-theme][data-theme] .push { display: grid; } }

/* ══ Телефон: шрифты крупнее (подгонка по высоте --fit сохраняет позиционирование) ══ */
@media (max-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] .hero .lead { font-size: 17px; line-height: 21px; }
  html[data-theme="glass"][data-theme][data-theme] .composer > label { font-size: 20px; line-height: 24px; }
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { font-size: 16px; line-height: 22px; }
  html[data-theme="glass"][data-theme][data-theme] .composer .actions .btn { font-size: 17px; }
  html[data-theme="glass"][data-theme][data-theme] .privacy-note { font-size: 12.5px; line-height: 16px; }
  html[data-theme="glass"][data-theme][data-theme] .how-row h2 { font-size: 20px; line-height: 24px; }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn { font-size: 16px; }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn .num { width: 30px; height: 30px; font-size: 15px; }
}
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .hero > h1 { font-size: clamp(46px, min(8.4vh, 6.6vw), 108px); }
  html[data-theme="glass"][data-theme][data-theme] .hero > .points { margin-top: clamp(12px, 2.2vh, 28px); }
  html[data-theme="glass"][data-theme][data-theme] body .hero > .composer { margin-top: clamp(14px, 2.6vh, 36px); }
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { min-height: clamp(58px, 9vh, 120px); }
  /* уведомление: шире телефона, над его верхним краем, в одну строку */
  html[data-theme="glass"][data-theme][data-theme] .push { width: calc(var(--pw) + 70px); right: calc(var(--pw) * .12 - 35px); top: calc(var(--pw) * -.06); font-size: 13px; padding: 10px 14px; }
  html[data-theme="glass"][data-theme][data-theme] .push span { white-space: nowrap; }
}
@media (min-width: 900px) {
  /* рабочая ширина 1520 (на 24″ меньше пустоты по бокам); шапка по той же ширине */
  html[data-theme="glass"][data-theme][data-theme] main, html[data-theme="glass"][data-theme][data-theme] .foot, html[data-theme="glass"][data-theme][data-theme] body .top { width: min(1520px, calc(100% - 64px)); max-width: none; margin-left: auto; margin-right: auto; box-sizing: border-box; }
  html[data-theme="glass"][data-theme][data-theme] body .top { margin-top: 18px; }
}

/* Низкие экраны компьютера (ноутбук 15″ с масштабом 150%): без строки-подзаголовка и пунктов — форма на первом экране */
@media (min-width: 900px) and (max-height: 720px) {
  html[data-theme="glass"][data-theme][data-theme] .hero > .kicker, html[data-theme="glass"][data-theme][data-theme] .hero > .points { display: none; }
  html[data-theme="glass"][data-theme][data-theme] body .top { margin-top: 10px; padding-top: 8px; padding-bottom: 8px; }
  html[data-theme="glass"][data-theme][data-theme] .hero { margin-top: 14px; }
  html[data-theme="glass"][data-theme][data-theme] body .hero > .composer { margin-top: 18px; }
}
@media (min-width: 900px) {
  /* Левая колонка прижата вверх: лишняя высота от телефонов уходит в пустую строку под формой, а не в промежутки */
  html[data-theme="glass"][data-theme][data-theme] .hero {
    grid-template-areas: "kicker visual" "h1 visual" "lead visual" "points visual" "form visual" ". visual" "how how";
    grid-template-rows: auto auto auto auto auto 1fr auto;
  }
}

/* Главная: «мастер» в заголовке сменяется (сантехник, электрик…) — без плашки, «?» плавно едет за словом */
html[data-theme="glass"][data-theme][data-theme] .hero:has(> .composer) h1 .rot { background: none; color: inherit; padding: 0 0 .2em; margin: 0 0 -.2em; border-radius: 0; line-height: inherit; vertical-align: baseline; }   /* 17.10.2026: запас под хвосты «р», «ф», «у» — иначе обрезались снизу */
html[data-theme="glass"][data-theme][data-theme] .hero:has(> .composer) h1 .rot-in .ch { -webkit-text-stroke: inherit; }
@media (max-width: 640px) {
  /* масштаб подгонки — только у первого экрана главной (у страницы мастеров свой заголовок) */
  html[data-theme="glass"][data-theme][data-theme] .hero:not(:has(> .composer)) > * { zoom: 1; }
  /* заголовок жирнее, текст крупнее; место — из внутренних отступов */
  html[data-theme="glass"][data-theme][data-theme] .hero h1 { -webkit-text-stroke: 1.9px currentColor; }
  html[data-theme="glass"][data-theme][data-theme] .hero .lead { font-size: 18px; line-height: 22px; }
  html[data-theme="glass"][data-theme][data-theme] .composer > label { font-size: 21px; line-height: 25px; margin-bottom: 8px; }
  html[data-theme="glass"][data-theme][data-theme] body .composer { padding: 14px 12px 10px; }
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { font-size: 17px; line-height: 23px; min-height: 74px; padding-top: 12px; padding-bottom: 12px; }
  html[data-theme="glass"][data-theme][data-theme] .composer .actions .btn { font-size: 18px; min-height: 48px; }
  html[data-theme="glass"][data-theme][data-theme] .privacy-note { font-size: 13.5px; line-height: 17px; margin-top: 8px; }
  html[data-theme="glass"][data-theme][data-theme] body .how-row { padding: 10px 10px 4px 14px; }
  html[data-theme="glass"][data-theme][data-theme] .how-row h2 { font-size: 21px; line-height: 25px; margin-bottom: 2px; }
  html[data-theme="glass"][data-theme][data-theme] .how-step-btn { font-size: 17px; min-height: 42px; }
}
@media (max-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] .composer textarea { min-height: 96px; }   /* подсказка крупным шрифтом — в три строки */
}

/* ══ Телефоны — оранжевые iPhone 17 Pro (картинки с прозрачным фоном, наклон уже в мокапе) ══ */
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .phone.mock {
    background: none; padding: 0; border-radius: 0; box-shadow: none; aspect-ratio: auto;
    filter: drop-shadow(0 34px 44px rgba(0,0,0,.5)) drop-shadow(0 8px 14px rgba(0,0,0,.3));
  }
  html[data-theme="glass"][data-theme][data-theme] .phone.mock img { height: auto; object-fit: contain; border-radius: 0; }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone.mock { width: calc(var(--pw) * 1.42); right: calc(var(--pw) * -.04); top: 0; transform: none; }
  html[data-theme="glass"][data-theme][data-theme] .hero-visual .phone.mock.back {
    width: calc(var(--pw) * 1.22); right: calc(var(--pw) * .92); top: calc(var(--pw) * .27); transform: none;
    filter: brightness(.72) saturate(.9) drop-shadow(0 30px 40px rgba(0,0,0,.45));
  }
  html[data-theme="glass"][data-theme][data-theme] .invite-visual { width: 390px; right: 30px; top: 30px; }
  html[data-theme="glass"][data-theme][data-theme] .invite-visual .phone.mock { width: 390px; transform: none; }
}

/* «Как это работает»: подробности списком и картинка на весь экран (17.10.2026) */
.how-list { margin: 10px 0 0; display: grid; gap: 8px; order: 4; }   /* в карточках на ПК: картинка → заголовок → пояснение → список */
.how-li { position: relative; display: block; padding-left: 18px; font-size: 14px; line-height: 1.5; color: #D0D2CB; }
.how-li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
img[data-zoom] { cursor: zoom-in; }
.zoom-box { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: rgba(15, 16, 15, .88); cursor: zoom-out; animation: zoom-fade 180ms ease-out; }
.zoom-box img { max-width: min(100%, 1400px); max-height: 100%; border-radius: 16px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
@keyframes zoom-fade { from { opacity: 0; } }

/* Ссылка на приложение в RuStore в строке над заголовком главной (27.10.2026) */
.kicker-store { color: var(--orange); text-decoration: underline; text-underline-offset: 3px; }
.kicker-store:hover { color: var(--orange-hover); }

/* Свои значки «КТО?» (icons.js) вместо смайликов — рядом с текстом, размер по шрифту (27.10.2026) */
.ico { display: inline-block; width: 1.2em; height: 1.2em; flex: none; vertical-align: -0.25em; margin-right: 0.4em; color: var(--orange); }
.chip .ico { width: 1.15em; height: 1.15em; margin-right: 0.45em; }
:is(.chip[aria-pressed="true"], .btn, .install-go, .notice, .lead-cat) .ico { color: currentColor; }
.req h3 .ico, .card h2 .ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; }

/* ══ Два режима: заказчик и мастер (ревью Terra, 27.10.2026) ═══════════════════════════════════════════
   Шапка: логотип (+ «мастер» в режиме мастера), город, ссылка в другой режим. Меню режима — внизу телефона
   и ссылками в шапке на ПК. Большого переключателя «Ищу мастера / Я мастер» больше нет. */
html[data-theme="glass"][data-theme][data-theme] body .top { flex-wrap: nowrap; align-items: center; column-gap: 10px; }
html[data-theme="glass"][data-theme][data-theme] body .top .city { margin-left: auto; }
html[data-theme="glass"][data-theme][data-theme] body .nav { order: 0; width: auto; flex: none; margin-left: 0; display: flex; align-items: center; gap: 8px; }
html[data-theme="glass"][data-theme][data-theme] .mode-tag {
  display: inline-flex; align-items: center; flex: none; height: 22px; padding: 0 9px; border-radius: 999px;
  background: var(--orange); color: #222321; font-size: 12px; font-weight: 700; line-height: 1;
}
html[data-theme="glass"][data-theme][data-theme] .mode-tag[hidden] { display: none; }
html[data-theme="glass"][data-theme][data-theme] body .nav .mode-switch {
  position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid rgba(245,242,233,.2); background: rgba(245,242,233,.05); color: var(--cream);
  font-size: 14px; font-weight: 600; white-space: nowrap; text-decoration: none;
}
html[data-theme="glass"][data-theme][data-theme] body .nav .mode-switch:hover { border-color: var(--orange); color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] body .nav .mode-switch .dot {
  position: absolute; top: 2px; right: 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
@media (max-width: 480px) {
  html[data-theme="glass"][data-theme][data-theme] body[data-mode="master"] .top .city { display: none; }
  html[data-theme="glass"][data-theme][data-theme] body[data-mode="master"] .nav { margin-left: auto; }
  html[data-theme="glass"][data-theme][data-theme] body .nav .mode-switch { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
}
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] body .top .city { margin-left: 4px; }
  html[data-theme="glass"][data-theme][data-theme] body .nav { flex: 1 1 auto; justify-content: flex-end; gap: 12px; }
}
html[data-theme="glass"][data-theme][data-theme] .list:empty { display: none; }

/* «Новые заявки»: фильтр и откуда заявка */
html[data-theme="glass"][data-theme][data-theme] .feed-filter { margin: 4px 0 2px; }
html[data-theme="glass"][data-theme][data-theme] .feed-filter .count {
  margin-left: 6px; padding: 0 7px; border-radius: 999px; background: rgba(245,242,233,.14); font-size: 12px; font-weight: 700;
}
html[data-theme="glass"][data-theme][data-theme] .feed-filter .chip[aria-pressed="true"] .count { background: rgba(34,35,33,.16); }
html[data-theme="glass"][data-theme][data-theme] .feed-title {
  margin: 16px 4px 0; font-size: 12px; font-weight: 750; letter-spacing: 1.2px; text-transform: uppercase; color: #FFAD75;
}
html[data-theme="glass"][data-theme][data-theme] .src {
  display: inline-flex; align-items: center; margin: 0 0 8px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; line-height: 1.35; letter-spacing: .01em; vertical-align: middle; text-transform: none;
}
html[data-theme="glass"][data-theme][data-theme] .src.kto { background: rgba(247,131,67,.16); color: #FFB27F; border: 1px solid rgba(247,131,67,.38); }
html[data-theme="glass"][data-theme][data-theme] .src.vk { background: rgba(110,160,240,.14); color: #A9C8FF; border: 1px solid rgba(110,160,240,.34); }
html[data-theme="glass"][data-theme][data-theme] .note .src { margin: 0 2px; }

/* Примеры: «Так выглядит отклик» (главная) и «Так выглядит заявка» (для мастеров) */
html[data-theme="glass"][data-theme][data-theme] :is(.offer-demo, .lead-demo) { margin-top: 32px; }
html[data-theme="glass"][data-theme][data-theme] :is(.offer-demo, .lead-demo) .eyebrow {
  margin: 0 4px; font-size: 11px; font-weight: 750; letter-spacing: 1.3px; text-transform: uppercase; color: #FFAD75;
}
html[data-theme="glass"][data-theme][data-theme] :is(.offer-demo, .lead-demo) > h2 {
  margin: 10px 4px 18px; font-size: 27px; line-height: 1.15; letter-spacing: -1px; font-weight: 700; color: var(--cream);
}
html[data-theme="glass"][data-theme][data-theme] :is(.offer-demo, .lead-demo) > h2 em { font-style: normal; color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] .surface.demo { position: relative; max-width: 560px; overflow: visible; }
html[data-theme="glass"][data-theme][data-theme] .demo-tag {
  position: absolute; top: -10px; right: 16px; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px;
  color: #222321; background: #D9D6CC;
}
html[data-theme="glass"][data-theme][data-theme] .demo-btn { display: flex; align-items: center; justify-content: center; pointer-events: none; }
html[data-theme="glass"][data-theme][data-theme] .demo-points { list-style: none; margin: 18px 4px 0; padding: 0; display: grid; gap: 10px; }
html[data-theme="glass"][data-theme][data-theme] .demo-points li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.4; color: #E6E3DA; }
html[data-theme="glass"][data-theme][data-theme] .demo-points svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] .lead-demo > .note { margin: 12px 4px 0; }
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .offer-demo {
    display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); column-gap: 64px; align-items: center; margin-top: 88px;
  }
  html[data-theme="glass"][data-theme][data-theme] .offer-demo > :is(.eyebrow, h2) { grid-column: 1 / -1; }
  html[data-theme="glass"][data-theme][data-theme] .offer-demo > h2, html[data-theme="glass"][data-theme][data-theme] .lead-demo > h2 { font-size: 44px; letter-spacing: -1.6px; }
  html[data-theme="glass"][data-theme][data-theme] .offer-demo .demo-points { margin: 0; gap: 18px; }
  html[data-theme="glass"][data-theme][data-theme] .offer-demo .demo-points li { font-size: 19px; }
  html[data-theme="glass"][data-theme][data-theme] .offer-demo .demo-points svg { width: 22px; height: 22px; }
  html[data-theme="glass"][data-theme][data-theme] .lead-demo { max-width: 680px; margin-top: 56px; }
}

/* Цена или оценка: пометка в отклике и быстрые кнопки в форме мастера */
html[data-theme="glass"][data-theme][data-theme] .price-kind {
  display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 18px;
  vertical-align: 1px; color: #FFB27F; border: 1px solid rgba(247,131,67,.42);
}
html[data-theme="glass"][data-theme][data-theme] .price-kinds { margin-top: 8px; }

/* Приложение в RuStore — строкой там, где полезно (вместо большой плашки над страницей) */
html[data-theme="glass"][data-theme][data-theme] .store-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 16px;
  padding: 12px 12px 12px 14px; border-radius: 18px; text-decoration: none; color: var(--cream);
  background: var(--app-glass); border: 1px solid var(--app-line); border-top-color: rgba(245,242,233,.2);
}
html[data-theme="glass"][data-theme][data-theme] .store-row .ico { width: 28px; height: 28px; margin: 0; color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] .store-row b { display: block; font-size: 14.5px; line-height: 1.25; }
html[data-theme="glass"][data-theme][data-theme] .store-row small { display: block; margin-top: 2px; color: var(--muted-light); font-size: 12.5px; line-height: 1.3; }
html[data-theme="glass"][data-theme][data-theme] .store-go {
  padding: 8px 12px; border-radius: 999px; background: var(--orange); color: #222321; font-size: 13px; font-weight: 750; white-space: nowrap;
}
html[data-theme="glass"][data-theme][data-theme] .list > .store-row { margin-top: 0; }

/* Услуга уже выбрана на странице каталога — капсула над полем, её можно убрать */
html[data-theme="glass"][data-theme][data-theme] .preset {
  display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 10px; padding: 4px 4px 4px 12px;
  border-radius: 999px; background: rgba(247,131,67,.14); border: 1px solid rgba(247,131,67,.36); color: var(--cream); font-size: 14px;
}
html[data-theme="glass"][data-theme][data-theme] .preset .ico { margin: 0; }
html[data-theme="glass"][data-theme][data-theme] .preset-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] .preset-x svg { width: 16px; height: 16px; }
html[data-theme="glass"][data-theme][data-theme] .preset-x:hover { color: var(--cream); background: rgba(245,242,233,.08); }

/* Под кнопкой «Найти мастера»: что будет дальше */
html[data-theme="glass"][data-theme][data-theme] .privacy-note.next-note + .privacy-note { margin-top: 6px; }
html[data-theme="glass"][data-theme][data-theme] .next-note svg { color: var(--orange); }

/* Правки после проверки на телефоне (27.10.2026) */
html[data-theme="glass"][data-theme][data-theme] body .tabbar a > .dot {
  position: absolute; top: 7px; left: calc(50% + 9px); right: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
}
html[data-theme="glass"][data-theme][data-theme] .feed-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
html[data-theme="glass"][data-theme][data-theme] .feed-filter::-webkit-scrollbar { display: none; }
html[data-theme="glass"][data-theme][data-theme] .feed-filter .chip { flex: none; }
html[data-theme="glass"][data-theme][data-theme] .method > .btn { flex: none; white-space: nowrap; }
html[data-theme="glass"][data-theme][data-theme] .lead-cat .ico { width: 1.45em; height: 1.45em; vertical-align: -0.38em; margin-right: .45em; }

/* ══ Второй круг ревью Terra (27.10.2026) ══════════════════════════════════════════════════════════════ */
/* Нижнее меню: плотнее (содержимое под ним не просвечивает) и ниже */
@media (max-width: 899px) {
  html[data-theme="glass"][data-theme][data-theme] body #tabbar {
    background: linear-gradient(125deg, rgba(245,242,233,.08), rgba(245,242,233,.03)), rgba(36,38,40,.95);
  }
  html[data-theme="glass"][data-theme][data-theme] body .tabbar a { min-height: 52px; gap: 4px; }
}
/* «новое» у ссылки в другой режим — вместо непонятной точки */
html[data-theme="glass"][data-theme][data-theme] .new-badge {
  margin-left: 7px; padding: 1px 6px; border-radius: 999px; background: var(--orange); color: #222321;
  font-size: 10.5px; font-weight: 750; line-height: 15px;
}
@media (max-width: 400px) {
  html[data-theme="glass"][data-theme][data-theme] body .nav .mode-switch { padding: 0 10px; font-size: 13px; }
  html[data-theme="glass"][data-theme][data-theme] .new-badge { margin-left: 5px; }
}
/* Примеры можно нажать: объясним, что это пример */
html[data-theme="glass"][data-theme][data-theme] .demo-btn { pointer-events: auto; cursor: pointer; }
/* Пост из VK: как связаться — прямо в карточке */
html[data-theme="glass"][data-theme][data-theme] .vk-note { margin: 8px 2px 0; text-align: center; font-size: 12.5px; color: var(--muted-light); }
/* Ответы в «Коротко о главном» — контрастнее */
html[data-theme="glass"][data-theme][data-theme] .faq-app details p { color: #C9CBC3; }
/* Фильтр ленты мастера: три кнопки в одну строку и на узком телефоне */
@media (max-width: 420px) {
  html[data-theme="glass"][data-theme][data-theme] .feed-filter .chip { padding-left: 12px; padding-right: 12px; }
}
/* Для мастеров: на телефоне заголовок скромнее, на ПК — заголовок и пример заявки рядом */
@media (max-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] .mhero h1 { font-size: 36px; line-height: 37px; letter-spacing: -1.2px; }
}
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .m-top {
    display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(40px, 5vw, 88px);
    align-items: center; margin-top: 36px;
  }
  html[data-theme="glass"][data-theme][data-theme] body .m-top .mhero { display: block; min-height: 0; margin: 0; padding: 0; }
  html[data-theme="glass"][data-theme][data-theme] .m-top .mhero > * { grid-area: auto; }
  html[data-theme="glass"][data-theme][data-theme] .m-top .mhero .free-pill { display: inline-flex; width: auto; }
  html[data-theme="glass"][data-theme][data-theme] .m-top .mhero h1 {
    margin-top: 18px; max-width: none; font-size: clamp(52px, 4.6vw, 76px); line-height: 1.02; letter-spacing: -.035em;
  }
  html[data-theme="glass"][data-theme][data-theme] .m-top .mhero .lead { max-width: 34ch; margin-top: 20px; }
  html[data-theme="glass"][data-theme][data-theme] .m-top .mhero .week { margin-top: 22px; }
  html[data-theme="glass"][data-theme][data-theme] .m-top .mhero .cta-row { margin-top: 24px; }
  html[data-theme="glass"][data-theme][data-theme] .m-top .lead-demo { margin-top: 0; max-width: 560px; }
}

/* Для мастеров: тире — в начале оранжевой строки, а не отдельной строкой после «ваши услуги» */
html[data-theme="glass"][data-theme][data-theme] .mhero h1 .dash { display: none; }
html[data-theme="glass"][data-theme][data-theme] .mhero h1 em::before { content: "— "; }
html[data-theme="glass"][data-theme][data-theme] body .mhero h1 { max-width: none; }
/* На телефоне: не на весь экран (как главная), а сразу за ним — пример заявки; заголовок без тяжёлой обводки */
@media (max-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] body .mhero { min-height: 0; padding-bottom: 0; }
  html[data-theme="glass"][data-theme][data-theme] body .mhero h1 { font-size: 36px; line-height: 38px; -webkit-text-stroke: 1px currentColor; }
  html[data-theme="glass"][data-theme][data-theme] body .mhero h1 em { -webkit-text-stroke-color: var(--orange); }
}

/* ══ Третий круг ревью Terra (27.10.2026) ═════════════════════════════════════════════════════════════ */
/* Число нового у ссылки в другой режим */
html[data-theme="glass"][data-theme][data-theme] .new-badge { min-width: 18px; padding: 1px 5px; text-align: center; font-size: 11px; }
/* Подсказка после перехода в другой режим — до «Понятно» */
html[data-theme="glass"][data-theme][data-theme] .mode-note {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 18px;
  background: rgba(245,242,233,.97); color: #222321; box-shadow: 0 10px 30px rgba(0,0,0,.35);
  animation: app-rise .45s var(--expo) both;
}
html[data-theme="glass"][data-theme][data-theme] .mode-note p { margin: 0; font-size: 14px; line-height: 1.35; }
html[data-theme="glass"][data-theme][data-theme] .mode-note .btn { flex: none; background: #222321; color: #F5F2E9; }
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] .mode-note { left: auto; right: 32px; bottom: 32px; max-width: 460px; }
}
/* Окно «Выбрать этого мастера?»: что произойдёт — по пунктам */
html[data-theme="glass"][data-theme][data-theme] .sheet-points { margin: 6px 0 18px; padding-left: 20px; display: grid; gap: 8px; line-height: 1.4; }
/* Отзывы о мастере в отклике */
html[data-theme="glass"][data-theme][data-theme] .reviews { margin-top: 12px; }
html[data-theme="glass"][data-theme][data-theme] .reviews summary { cursor: pointer; color: var(--orange); font-weight: 650; font-size: 14.5px; }
html[data-theme="glass"][data-theme][data-theme] .review { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(245,242,233,.05); }
html[data-theme="glass"][data-theme][data-theme] .review .stars { margin-right: 8px; letter-spacing: 1px; }
html[data-theme="glass"][data-theme][data-theme] .review p { margin: 4px 0 0; font-size: 14px; line-height: 1.4; }
/* Телефон: карточки и строки профиля плотнее — меньше прокрутки до действия */
@media (max-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] body .surface.offer { padding: 16px 16px 14px; }
  html[data-theme="glass"][data-theme][data-theme] body .offer .msg { margin-top: 10px; padding: 10px 12px; }
  html[data-theme="glass"][data-theme][data-theme] body .method { padding: 11px 14px; }
  html[data-theme="glass"][data-theme][data-theme] body .methods { margin-top: 20px; }
}

/* ══ Четвёртый круг ревью Terra (27.10.2026) ═════════════════════════════════════════════════════════ */
/* Коротко над откликами: кто, сколько, когда — нажал строку, и страница едет к отклику */
html[data-theme="glass"][data-theme][data-theme] .offer-compare { margin-top: 10px; padding: 6px; display: grid; gap: 2px; }
html[data-theme="glass"][data-theme][data-theme] .cmp-row {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr) 12px; gap: 10px; align-items: baseline;
  width: 100%; padding: 10px 10px; border-radius: 12px; text-align: left; color: var(--cream); font-size: 14px; line-height: 1.3;
}
html[data-theme="glass"][data-theme][data-theme] .cmp-row:hover { background: rgba(245,242,233,.06); }
html[data-theme="glass"][data-theme][data-theme] .cmp-row + .cmp-row { border-top: 1px solid rgba(245,242,233,.08); }
html[data-theme="glass"][data-theme][data-theme] .cmp-row b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html[data-theme="glass"][data-theme][data-theme] .cmp-time { color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] .cmp-row .price-kind { margin-left: 4px; }
html[data-theme="glass"][data-theme][data-theme] .cmp-go { color: var(--orange); font-size: 20px; line-height: 1; font-weight: 700; }
html[data-theme="glass"][data-theme][data-theme] .method .ok-mark { flex: none; white-space: nowrap; }

/* Телефон: фон ровно по экрану (владелец 27.10.2026: «можно отдалить, внизу огромная панель»). Пятна фона
   были больше экрана (inset −6% + плавание scale 1.1) — Chrome на Android считал их шириной страницы и давал
   отдалить, а при отдалении фон рос вместе с окном — до 4×. На телефоне без плавания и вылета за край. */
@media (max-width: 899px), (pointer: coarse) {
  html[data-theme="glass"][data-theme][data-theme] body::before { inset: 0; animation: none; transform: none; }
  html, body { overflow-x: clip; }
}

/* ── Переписка заказчика и мастера (chat.py, /chat/<id>, /master/chat/<id>) ── */
html[data-theme="glass"][data-theme][data-theme] body[data-chat="1"] .tabbar { display: none; }
html[data-theme="glass"][data-theme][data-theme] body[data-chat="1"] { padding-bottom: 0; }
html[data-theme="glass"][data-theme][data-theme] .chat-page { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; min-height: calc(100svh - 120px); }
html[data-theme="glass"][data-theme][data-theme] .chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-top: 10px; }
html[data-theme="glass"][data-theme][data-theme] .chat-head > div:first-child { flex: 1; min-width: 0; }
html[data-theme="glass"][data-theme][data-theme] .chat-head h1 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; overflow-wrap: anywhere; }
html[data-theme="glass"][data-theme][data-theme] .chat-head .sub { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
html[data-theme="glass"][data-theme][data-theme] .chat-contacts { display: flex; gap: 8px; flex: none; }
html[data-theme="glass"][data-theme][data-theme] .icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--glass-line); background: var(--glass-quiet-bg); color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] .icon-btn svg { width: 20px; height: 20px; }
html[data-theme="glass"][data-theme][data-theme] .chat-safe { margin: 10px 2px 4px; font-size: 13px; }
html[data-theme="glass"][data-theme][data-theme] .chat-list { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 8px 0 12px; }
html[data-theme="glass"][data-theme][data-theme] .chat-day { align-self: center; margin: 10px 0 4px; padding: 3px 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted-light); background: var(--glass-quiet-bg); }
html[data-theme="glass"][data-theme][data-theme] .chat-empty { margin: 28px 12px; text-align: center; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] .bubble { max-width: 82%; padding: 9px 12px 6px; border-radius: 18px; overflow-wrap: anywhere; }
html[data-theme="glass"][data-theme][data-theme] .bubble p { margin: 0; white-space: pre-wrap; line-height: 1.4; }
html[data-theme="glass"][data-theme][data-theme] .bubble.theirs { align-self: flex-start; background: var(--glass-bg); border: 1px solid var(--glass-line);
  color: var(--cream); border-bottom-left-radius: 6px; }
html[data-theme="glass"][data-theme][data-theme] .bubble.mine { align-self: flex-end; background: var(--cream); color: var(--ink); border-bottom-right-radius: 6px; }
html[data-theme="glass"][data-theme][data-theme] .b-time { display: block; margin-top: 2px; text-align: right; font-size: 11px; opacity: .6; }
html[data-theme="glass"][data-theme][data-theme] .b-read { margin-left: 4px; letter-spacing: -2px; }
html[data-theme="glass"][data-theme][data-theme] body[data-chat="1"] .foot { display: none; }
html[data-theme="glass"][data-theme][data-theme] #chat-bottom { position: sticky; bottom: 0; padding: 8px 0 calc(12px + env(safe-area-inset-bottom)); }
html[data-theme="glass"][data-theme][data-theme] .chat-form { padding: 6px; border-radius: 30px; border: 1px solid var(--glass-line);
  background: var(--glass-bg); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--glass-shadow); }
html[data-theme="glass"][data-theme][data-theme] .chat-form textarea { border: 0; background: transparent; color: var(--cream); box-shadow: none; outline: none; min-height: 44px; padding: 11px 12px; }
html[data-theme="glass"][data-theme][data-theme] .chat-form textarea::placeholder { color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] .chat-form .chat-send { width: 44px; height: 44px; }
html[data-theme="glass"][data-theme][data-theme] .chat-form { display: flex; align-items: flex-end; gap: 8px; }
html[data-theme="glass"][data-theme][data-theme] .chat-form textarea { flex: 1; min-height: 48px; max-height: 160px; margin: 0; padding: 12px 16px;
  border-radius: 24px; resize: none; font: inherit; line-height: 1.35; }
html[data-theme="glass"][data-theme][data-theme] .chat-send { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: var(--orange); color: var(--ink); cursor: pointer; }
html[data-theme="glass"][data-theme][data-theme] .chat-send svg { width: 22px; height: 22px; }
html[data-theme="glass"][data-theme][data-theme] .chat-btn .new-badge { margin-left: 6px; }

/* Telegram — тихой ссылкой под «Написать» (Terra 28.10.2026); статус последнего своего сообщения в переписке. */
html[data-theme="glass"][data-theme][data-theme] .tg-link { display: block; margin-top: 4px; padding: 10px 2px; text-align: center;
  color: var(--cream); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme="glass"][data-theme][data-theme] .tg-link small { display: block; margin-top: 2px; font-weight: 400; font-size: 12px;
  text-decoration: none; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] .b-status { align-self: flex-end; margin: -2px 4px 4px; font-size: 12px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] .lead.lead-done { padding-top: 12px; padding-bottom: 10px; }
html[data-theme="glass"][data-theme][data-theme] .lead-done .lead-cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
html[data-theme="glass"][data-theme][data-theme] .lead-done .done-line { margin: 4px 0 2px; color: var(--orange); font-weight: 600; }
html[data-theme="glass"][data-theme][data-theme] .lead-done .done-links { display: flex; gap: 16px; margin: 4px 0 0; }

/* Окно «Уведомления о заявках» (12.11.2026): одна главная кнопка, остальное — под «Другие способы».
   Главная кнопка ВК — заметная, синяя, а не приглушённая, как в окне входа. */
html[data-theme="glass"] body .sheet-card #channels-box .btn.vk { color: #fff; background: #0077ff; border-color: transparent; }
html[data-theme="glass"] body .sheet-card #channels-box .btn.vk:hover { background: #2a8cff; }
#channels-box .btn.wide { margin-top: 20px; }
#channels-box .step { margin-top: 18px; color: var(--cream); font-weight: 600; line-height: 1.35; text-wrap: balance; }
#channels-box .step + .btn.wide { margin-top: 12px; }
/* Что с подключением ВК: одна строка цветом, а не ещё одна жирная. */
#channels-box .vk-state { margin: 16px 0 0; color: var(--orange); font-size: 0.92rem; line-height: 1.35; }
#channels-box .vk-state.wait { color: var(--muted-light); }
#channels-box .vk-state + .step { margin-top: 4px; }
#channels-box .ways-more .vk-state { margin-top: 6px; }
#channels-box .ways-more .vk-state + .note { margin-top: 2px; }
/* Лента за этим окном остаётся узнаваемой: человек не «выпал» из сайта. */
html[data-theme="glass"] .sheet:has(#channels-box) .sheet-backdrop { background: rgba(20, 21, 19, 0.55); -webkit-backdrop-filter: blur(1.5px); backdrop-filter: blur(1.5px); }
#channels-box .ways-more { margin-top: 18px; border-top: 1px solid rgba(245, 242, 233, 0.12); }
#channels-box .ways-more summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; cursor: pointer;
  list-style: none; font-weight: 600; color: var(--cream); }
#channels-box .ways-more summary::-webkit-details-marker { display: none; }
#channels-box .ways-more summary::after { content: ""; width: 8px; height: 8px; margin-right: 6px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: 0.6; transition: transform 200ms; }
#channels-box .ways-more[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
#channels-box .ways-list { display: grid; }
#channels-box .way-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 7px 2px; text-align: left;
  color: var(--cream); text-decoration: none; background: none; }
#channels-box .ways-list { padding-bottom: 6px; }
/* Стрелка справа: строка — кнопка, а не подпись. */
#channels-box .way-row::after { content: ""; flex: none; width: 7px; height: 7px; margin: 0 8px 0 auto; border-top: 2px solid currentColor;
  border-right: 2px solid currentColor; transform: rotate(45deg); opacity: 0.45; }
#channels-box .way-row:hover .way-text b { text-decoration: underline; text-underline-offset: 3px; }
#channels-box .way-row:disabled { opacity: 0.6; }
#channels-box .way-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: rgba(245, 242, 233, 0.08); color: var(--cream); }
#channels-box .way-ico svg, #channels-box .way-ico .ico { width: 19px; height: 19px; color: var(--cream); }
#channels-box .sub, #channels-box .note.center { text-wrap: balance; }
#channels-box .way-text { display: grid; gap: 1px; min-width: 0; }
#channels-box .way-text b { font-weight: 600; }
#channels-box .way-text small { color: var(--muted-light); font-size: 0.82rem; }
#channels-box .ways-more .note { margin: 6px 0 10px; }
.sheet-later { display: block; width: 100%; min-height: 44px; margin-top: 6px; text-align: center; color: var(--muted-light); font-size: 0.95rem; }
.sheet-later:hover { color: var(--cream); }
#channels-box .ways-more + .sheet-later { border-top: 1px solid rgba(245, 242, 233, 0.12); padding-top: 4px; }

/* Плашка в ленте мастера, пока уведомления не подключены: спокойная, в тон ленте, заявки не заслоняет. */
.ch-banner { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: start; margin-top: 14px; padding: 12px 14px;
  border-radius: 18px; background: rgba(245, 242, 233, 0.07); border: 1px solid rgba(245, 242, 233, 0.16); }
.ch-banner > .ico, .ch-banner > svg { width: 22px; height: 22px; margin-top: 1px; color: var(--orange); }
.ch-banner p { margin: 0; color: var(--muted-light); font-size: 0.9rem; line-height: 1.4; }
.ch-banner p b { display: block; color: var(--cream); font-size: 1rem; }
.ch-banner .btn { grid-column: 2; justify-self: start; margin-top: 10px; }

/* Короткое сообщение. В кабинете на телефоне — сверху: внизу оно закрывало кнопку заявки и нижнее меню. */
.toast { width: max-content; font-size: 0.92rem; text-align: center; line-height: 1.3; }
@media (max-width: 719px) {
  body:has(.tabbar) .toast { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
  body:has(.tabbar) .toast.in { animation-name: toast-top; }
}
@keyframes toast-top { from { opacity: 0; transform: translate(-50%, -16px) scale(0.96); } }

/* ══ Кабинет без «нейрослопа» (13.11.2026, вместе с Codex) ══════════════════════════════════════════════
   Правила: 4 размера текста (заголовок страницы 28/32, заголовок группы 19, основной 16, вторичный 13.5);
   отступы 4·8·12·16·24; карточка — только у самостоятельного объекта (заявка, пост), настройки — группой строк
   с разделителями; оранжевый — главное действие и точка «клиент КТО?», синий ВК — только точка источника;
   пояснение говорим один раз над разделом, а не под каждой карточкой. */
html[data-theme="glass"][data-theme][data-theme] body .list { grid-template-columns: minmax(0, 1fr); }
html[data-theme="glass"][data-theme][data-theme] body .page-head h1 { font-size: 28px; line-height: 1.15; letter-spacing: -0.02em; }
@media (min-width: 900px) {
  html[data-theme="glass"][data-theme][data-theme] body .page-head h1 { font-size: 32px; }
}

/* Лента: заголовки разделов обычным регистром, число — тихо рядом */
html[data-theme="glass"][data-theme][data-theme] body .feed-h {
  display: flex; align-items: baseline; gap: 8px; margin: 24px 2px 0;
  font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; color: var(--cream);
}
html[data-theme="glass"][data-theme][data-theme] body .feed-n { font-size: 14px; font-weight: 500; color: var(--muted-light); letter-spacing: 0; }
html[data-theme="glass"][data-theme][data-theme] body .feed-filter + .feed-h { margin-top: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .feed-note {
  margin: -4px 2px 0; max-width: 62ch; font-size: 14px; line-height: 1.45; color: var(--muted-light);
}

/* Карточка ленты */
html[data-theme="glass"][data-theme][data-theme] body .surface.lc {
  display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 16px;
  background: rgba(245, 242, 233, 0.055); border: 1px solid rgba(245, 242, 233, 0.09); border-top-color: rgba(245, 242, 233, 0.13);
  box-shadow: 0 1px 2px rgba(10, 10, 9, 0.18), 0 8px 24px rgba(10, 10, 9, 0.12);
}
html[data-theme="glass"][data-theme][data-theme] body .lc > * { margin: 0; }
html[data-theme="glass"][data-theme][data-theme] body .lc-src {
  display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; line-height: 1.3; color: var(--muted-light);
}
html[data-theme="glass"][data-theme][data-theme] body .lc-src > span:nth-child(2) { min-width: 0; color: #dcd8cc; font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] body .lc-time { margin-left: auto; flex: none; padding-left: 8px; color: var(--muted-light); white-space: nowrap; }
html[data-theme="glass"][data-theme][data-theme] body .src-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; }
html[data-theme="glass"][data-theme][data-theme] body .src-dot.kto { background: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] body .src-dot.vk { background: #6ea0f0; }
html[data-theme="glass"][data-theme][data-theme] body .lc-urgent { color: var(--orange); font-weight: 600; }
html[data-theme="glass"][data-theme][data-theme] body .lc-text {
  font-size: 16px; line-height: 1.45; font-weight: 500; color: var(--cream); overflow-wrap: anywhere;
}
html[data-theme="glass"][data-theme][data-theme] body .lc-text.one { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-theme="glass"][data-theme][data-theme] body .lc-meta { font-size: 14px; line-height: 1.4; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .lc-facts {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 14px; font-size: 14px; line-height: 1.45;
}
html[data-theme="glass"][data-theme][data-theme] body .lc-facts dt { color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .lc-facts dd { margin: 0; color: var(--cream); font-weight: 400; }
html[data-theme="glass"][data-theme][data-theme] body .lc .gallery { margin: 4px 0 0; }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; margin-top: 8px;
  padding: 0 20px; border-radius: 14px; font-size: 15.5px; font-weight: 600; text-decoration: none;
}
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_).second {
  background: transparent; color: var(--cream); border: 1px solid rgba(245, 242, 233, 0.22); box-shadow: none;
  transition: border-color 0.2s var(--out), background-color 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_).second:hover { border-color: rgba(245, 242, 233, 0.4); background: rgba(245, 242, 233, 0.05); }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_).second:active { transform: translateY(1px); }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_) .i-ext { width: 17px; height: 17px; color: var(--muted-light); }
@media (min-width: 640px) {
  html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_) { width: auto; min-width: 240px; align-self: flex-start; }
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form { margin-top: 4px; }
/* Уже откликнулся: короче, без кнопки-полосы */
html[data-theme="glass"][data-theme][data-theme] body .lc-done-line { font-size: 14.5px; font-weight: 600; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .lc-textbtn {
  align-self: flex-start; min-height: 36px; margin: -4px 0 -6px; color: var(--orange); font-size: 14.5px; font-weight: 600;
}
html[data-theme="glass"][data-theme][data-theme] body .lc-textbtn:hover { color: var(--orange-hover); }

/* «Клиент выбрал вас» — строкой-событием, нажимается целиком */
html[data-theme="glass"][data-theme][data-theme] body .event-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; text-decoration: none;
  color: var(--cream); background: rgba(70, 160, 100, 0.14); border: 1px solid rgba(130, 205, 155, 0.26);
  transition: background-color 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body .event-row:hover { background: rgba(70, 160, 100, 0.2); }
html[data-theme="glass"][data-theme][data-theme] body .event-row b { display: block; font-size: 16px; font-weight: 600; line-height: 1.3; }
html[data-theme="glass"][data-theme][data-theme] body .event-row small { display: block; margin-top: 2px; font-size: 13.5px; color: #c9dccd; }
html[data-theme="glass"][data-theme][data-theme] body .ev-mark { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #7fd39a; }
html[data-theme="glass"][data-theme][data-theme] body :is(.event-row, .method-link) .i-chev { width: 20px; height: 20px; margin-left: auto; flex: none; color: var(--muted-light); }

/* Профиль и настройки: группа строк с разделителями вместо отдельной карточки на каждое значение */
html[data-theme="glass"][data-theme][data-theme] body .methods { gap: 0; margin-top: 24px; }
html[data-theme="glass"][data-theme][data-theme] body .methods > .section-title { margin: 0 2px 10px; font-size: 19px; font-weight: 700; line-height: 1.25; }
html[data-theme="glass"][data-theme][data-theme] body .methods > .method {
  min-height: 56px; margin: 0; padding: 12px 16px; border: 0; border-top: 1px solid rgba(245, 242, 233, 0.08); border-radius: 0;
  background: rgba(245, 242, 233, 0.055); box-shadow: none;
  font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--cream); text-align: left;
}
html[data-theme="glass"][data-theme][data-theme] body .methods > :is(.method:first-child, .section-title + .method) {
  border-top: 1px solid transparent; border-top-left-radius: 16px; border-top-right-radius: 16px;
}
html[data-theme="glass"][data-theme][data-theme] body .methods > .method:not(:has(~ .method)) { border-bottom-left-radius: 16px; border-bottom-right-radius: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .methods > .method small {
  display: block; margin-top: 3px; font-size: 13.5px; font-weight: 400; line-height: 1.35; color: var(--muted-light);
}
html[data-theme="glass"][data-theme][data-theme] body .methods > .method > span:first-child { min-width: 0; }
html[data-theme="glass"][data-theme][data-theme] body .methods > .note { margin: 10px 2px 0; font-size: 13.5px; line-height: 1.45; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .methods > .notice { margin-top: 10px; }
html[data-theme="glass"][data-theme][data-theme] body .method-link { width: 100%; cursor: pointer; color: var(--orange); font-weight: 600; }
html[data-theme="glass"][data-theme][data-theme] body .method-link:hover { background: rgba(245, 242, 233, 0.08); }
html[data-theme="glass"][data-theme][data-theme] body .methods .ok-mark {
  display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: 14px; font-weight: 500; color: #a8d9b6; white-space: nowrap;
}
html[data-theme="glass"][data-theme][data-theme] body .methods .ok-mark::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #7fd39a; }
html[data-theme="glass"][data-theme][data-theme] body .methods .method > .btn.small {
  min-height: 36px; padding: 0 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
}
html[data-theme="glass"][data-theme][data-theme] body .who { margin: 2px 2px 0; font-size: 17px; font-weight: 600; line-height: 1.35; color: #dcd8cc; }
html[data-theme="glass"][data-theme][data-theme] body .list:has(> .who) + .methods { margin-top: 20px; }
html[data-theme="glass"][data-theme][data-theme] body .master-sum { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .store-row { border-radius: 16px; background: rgba(245, 242, 233, 0.055); border: 1px solid rgba(245, 242, 233, 0.09); }
html[data-theme="glass"][data-theme][data-theme] body .store-go { background: transparent; color: var(--cream); border: 1px solid rgba(245, 242, 233, 0.22); border-radius: 12px; font-weight: 600; }

/* Круг 2 после Codex (6/10): плотнее на телефоне, ВК заметнее, категория контрастнее, фильтры целиком */
html[data-theme="glass"][data-theme][data-theme] body .surface.lc { gap: 10px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-text { line-height: 22px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-meta { font-size: 14px; line-height: 20px; font-weight: 500; color: #c7c5bf; }
html[data-theme="glass"][data-theme][data-theme] body .lc-facts { line-height: 20px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_) { margin-top: 6px; font-size: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn.second:not(#_) { background: rgba(255, 255, 255, 0.05); border-color: rgba(245, 242, 231, 0.28); }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn.second:not(#_):hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(245, 242, 231, 0.42); }
html[data-theme="glass"][data-theme][data-theme] body .feed-filter { gap: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .feed-filter .chip:not(#_) { min-height: 44px; padding: 0 14px; font-size: 15px; }
html[data-theme="glass"][data-theme][data-theme] body .event-row { padding: 12px 14px 12px 16px; }
html[data-theme="glass"][data-theme][data-theme] body .event-row small { margin-top: 1px; }
html[data-theme="glass"][data-theme][data-theme] body .methods .ok-mark { color: #b4e2c1; }
@media (max-width: 420px) {
  html[data-theme="glass"][data-theme][data-theme] body .feed-filter .chip:not(#_) { padding: 0 12px; }
}

/* Round 3 (Codex 7/10): text hierarchy and a lighter phone tab bar */
html[data-theme="glass"][data-theme][data-theme] body .lc-text { font-weight: 600; }
html[data-theme="glass"][data-theme][data-theme] body .lc-meta { font-weight: 400; }
html[data-theme="glass"][data-theme][data-theme] body .lc-meta.lc-cat { font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] body .methods > .method { border-top-color: rgba(245, 242, 231, 0.07); }
@media (max-width: 899px) {
  html[data-theme="glass"][data-theme][data-theme] body #tabbar {
    left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom)); padding: 4px; border-radius: 20px;
    background: #292c2b; border: 1px solid rgba(245, 242, 231, 0.12); box-shadow: 0 8px 24px rgba(10, 10, 9, 0.35);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  html[data-theme="glass"][data-theme][data-theme] body .tabbar a { min-height: 56px; border-radius: 16px; }
}

/* «Мои отклики» в той же системе (13.11.2026) */
html[data-theme="glass"][data-theme][data-theme] body .src-dot.ok { background: #7fd39a; }
html[data-theme="glass"][data-theme][data-theme] body .src-dot.off { background: rgba(245, 242, 233, 0.32); }
html[data-theme="glass"][data-theme][data-theme] body .lc-mine { font-size: 14.5px; line-height: 20px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .lc-mine b { color: var(--cream); font-weight: 600; }
html[data-theme="glass"][data-theme][data-theme] body .lc-note { font-size: 13.5px; line-height: 19px; color: var(--muted-light); max-width: 62ch; }
html[data-theme="glass"][data-theme][data-theme] body .lc .ico { color: currentColor; }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn:not(#_) svg { width: 19px; height: 19px; flex: none; }
html[data-theme="glass"][data-theme][data-theme] body .lc-textbtn { display: inline-flex; align-items: center; gap: 6px; margin: 0; text-decoration: none; }
html[data-theme="glass"][data-theme][data-theme] body .lc-textbtn .i-ext { width: 16px; height: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-textbtn + .lc-note { margin-top: -8px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-outcome {
  display: flex; flex-direction: column; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid rgba(245, 242, 231, 0.08);
}
html[data-theme="glass"][data-theme][data-theme] body .lc-outcome > * { margin: 0; }
html[data-theme="glass"][data-theme][data-theme] body .lc-sub { font-size: 15px; font-weight: 600; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .lc-outcome .lc-btn:not(#_) { margin-top: 0; }
html[data-theme="glass"][data-theme][data-theme] body .lc .deal-fail summary { font-size: 15px; font-weight: 600; color: var(--muted-light); cursor: pointer; }
/* Offers card, Codex round 3: calm Telegram link, one language in the outcome block, clearer rhythm */
html[data-theme="glass"][data-theme][data-theme] body .lc { gap: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-src + .lc-text { margin-top: 4px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-btn.lc-main:not(#_) { margin-top: 12px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-tg { color: var(--cream); font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] body .lc-tg:hover { color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] body .lc-tg .i-ext { color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .lc-outcome { margin-top: 12px; padding-top: 16px; gap: 0; }
html[data-theme="glass"][data-theme][data-theme] body .lc-outcome .lc-sub { margin-bottom: 12px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-fail { margin-top: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-fail > summary {
  display: flex; align-items: center; min-height: 44px; list-style: none; font-size: 15px; font-weight: 500; color: var(--cream);
}
html[data-theme="glass"][data-theme][data-theme] body .lc-fail > summary::-webkit-details-marker { display: none; }
html[data-theme="glass"][data-theme][data-theme] body .lc-fail > summary .i-chev {
  width: 18px; height: 18px; margin-left: 6px; color: var(--muted-light); transform: rotate(90deg); transition: transform 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body .lc-fail[open] > summary .i-chev { transform: rotate(-90deg); }
html[data-theme="glass"][data-theme][data-theme] body .lc-fail .chips { margin: 4px 0 8px; }
html[data-theme="glass"][data-theme][data-theme] body .lc-outcome > .lc-note { margin-top: 4px; }

/* Форма отклика (13.11.2026): тёмные поля вместо светлых «таблеток», подписи и подсказки по общей шкале */
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form { display: flex; flex-direction: column; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(245, 242, 231, 0.08); }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form > * { margin: 0; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .field-label:not(#_) {
  display: block; margin: 14px 0 6px; font-size: 14.5px; font-weight: 600; line-height: 20px; color: var(--cream);
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .field-label .muted { font-weight: 400; color: var(--muted-light); font-size: 13.5px; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_) {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px;
  background: rgba(10, 10, 9, 0.22); color: var(--cream); border: 1px solid rgba(245, 242, 231, 0.16); box-shadow: none;
  font-size: 16px; line-height: 22px; font-weight: 400;
  transition: border-color 0.2s var(--out), box-shadow 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form textarea:not(#_) { min-height: 96px; resize: vertical; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_)::placeholder { color: rgba(245, 242, 233, 0.42); }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_):hover { border-color: rgba(245, 242, 231, 0.26); }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_):focus {
  outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 131, 67, 0.22);
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .price-kinds:not(#_) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .price-kinds .chip:not(#_) {
  min-height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  background: transparent; color: var(--cream); border: 1px solid rgba(245, 242, 231, 0.18);
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .price-kinds .chip:not(#_):hover { border-color: rgba(245, 242, 231, 0.34); }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form > .note:not(#_) {
  margin-top: 8px; font-size: 13.5px; line-height: 19px; color: var(--muted-light); text-align: left;
}
html[data-theme="glass"][data-theme][data-theme] body .lc .of-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .lc .of-actions .lc-btn:not(#_) { margin-top: 0; }
html[data-theme="glass"][data-theme][data-theme] body .of-close {
  min-height: 44px; padding: 0 4px; font-size: 15px; font-weight: 500; color: var(--muted-light);
}
html[data-theme="glass"][data-theme][data-theme] body .of-close:hover { color: var(--cream); }
@media (max-width: 639px) {
  html[data-theme="glass"][data-theme][data-theme] body .lc .of-actions { flex-direction: column; align-items: stretch; gap: 4px; }
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .err { margin-top: 10px; }
/* Chat: the safety notice stays word for word, but quieter; back link without underline */
html[data-theme="glass"][data-theme][data-theme] body .chat-safe:not(#_) {
  margin: 10px 4px 0; font-size: 12.5px; line-height: 17px; color: rgba(245, 242, 233, 0.58);
}
html[data-theme="glass"][data-theme][data-theme] body .chat-safe .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body a.back:not(#_), html[data-theme="glass"][data-theme][data-theme] body button.back:not(#_) {
  text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted-light);
}
html[data-theme="glass"][data-theme][data-theme] body :is(a, button).back:not(#_):hover { color: var(--cream); }
/* Codex round 4: readable fields, chosen price hint, one geometry, quiet "Свернуть", calm chat notice block */
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_) {
  min-height: 52px; background: #383432; border-color: #625c58; color: #f2efe9;
}
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form textarea:not(#_) { min-height: 104px; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_)::placeholder { color: #b0aaa4; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form :is(.input, textarea):not(#_):focus { border-color: #ff8848; }
html[data-theme="glass"][data-theme][data-theme] body .lc .offer-form .price-kinds .chip:not(#_)[aria-pressed="true"] {
  background: rgba(247, 131, 67, 0.28); border-color: rgba(255, 136, 72, 0.7); color: #fff3ea;
}
html[data-theme="glass"][data-theme][data-theme] body .lc .of-actions .lc-btn:not(#_) { min-height: 52px; border-radius: 14px; }
html[data-theme="glass"][data-theme][data-theme] body .lc .of-actions { flex-direction: column; align-items: flex-start; gap: 0; }
html[data-theme="glass"][data-theme][data-theme] body .of-close { margin-top: 8px; font-size: 14px; }
@media (max-width: 639px) {
  html[data-theme="glass"][data-theme][data-theme] body .lc .of-actions { align-items: stretch; }
  html[data-theme="glass"][data-theme][data-theme] body .of-close { align-self: flex-start; }
}
html[data-theme="glass"][data-theme][data-theme] body .chat-safe:not(#_) {
  display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.035); font-size: 14px; line-height: 20px; color: #c5c2be;
}
html[data-theme="glass"][data-theme][data-theme] body .chat-safe .ico { flex: none; width: 16px; height: 16px; margin: 2px 0 0; color: var(--muted-light); }

/* ══ Кабинет заказчика в той же системе (13.11.2026, Codex) ══ */
html[data-theme="glass"][data-theme][data-theme] body .src-dot.wait { background: #9db4c8; }
/* «Мои заявки»: компактная строка-карточка, статус с точкой */
html[data-theme="glass"][data-theme][data-theme] body a.rq {
  display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 16px; text-decoration: none; color: var(--cream);
  background: rgba(245, 242, 233, 0.055); border: 1px solid rgba(245, 242, 233, 0.09); border-top-color: rgba(245, 242, 233, 0.13);
  transition: background-color 0.2s var(--out), border-color 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body a.rq:hover { background: rgba(245, 242, 233, 0.08); }
html[data-theme="glass"][data-theme][data-theme] body .rq-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
html[data-theme="glass"][data-theme][data-theme] body .rq-main b { font-size: 16px; font-weight: 600; line-height: 22px; }
html[data-theme="glass"][data-theme][data-theme] body .rq-main small { font-size: 14px; line-height: 20px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .rq-status {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 13.5px; font-weight: 500; color: #dcd8cc;
}
html[data-theme="glass"][data-theme][data-theme] body a.rq > .i-chev { width: 20px; height: 20px; flex: none; color: var(--muted-light); }

/* Верх заявки: заголовок страницы, описание, строки параметров без большой карточки */
html[data-theme="glass"][data-theme][data-theme] body .rq-top { margin-top: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .rq-title { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .rq-desc { margin: 8px 0 0; font-size: 16px; line-height: 23px; color: #e2ded3; max-width: 62ch; }
html[data-theme="glass"][data-theme][data-theme] body .rq-rows:not(#_) {
  margin: 20px 0 0; padding: 0 16px; border-radius: 16px; background: rgba(245, 242, 233, 0.055); border: 0;
}
html[data-theme="glass"][data-theme][data-theme] body .rq-rows .row:not(#_) {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 12px 0; margin: 0;
  border: 0; border-top: 1px solid rgba(245, 242, 231, 0.07);
}
html[data-theme="glass"][data-theme][data-theme] body .rq-rows .row:first-child { border-top: 0; }
html[data-theme="glass"][data-theme][data-theme] body .rq-rows dt:not(#_) { font-size: 14px; line-height: 20px; color: var(--muted-light); font-weight: 400; }
html[data-theme="glass"][data-theme][data-theme] body .rq-rows dd:not(#_) { margin: 0; font-size: 16px; line-height: 22px; color: var(--cream); font-weight: 500; }

/* Сравнение откликов: одна группа, две строки на мастера */
html[data-theme="glass"][data-theme][data-theme] body .cmp-group { margin-top: 12px; border-radius: 16px; background: rgba(245, 242, 233, 0.055); overflow: hidden; }
html[data-theme="glass"][data-theme][data-theme] body .cmp2 {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px 12px 16px; text-align: left; color: var(--cream);
  border-top: 1px solid rgba(245, 242, 231, 0.07); transition: background-color 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body .cmp2:first-child { border-top: 0; }
html[data-theme="glass"][data-theme][data-theme] body .cmp2:hover { background: rgba(245, 242, 233, 0.05); }
html[data-theme="glass"][data-theme][data-theme] body .cmp2-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
html[data-theme="glass"][data-theme][data-theme] body .cmp2-l b { font-size: 16px; font-weight: 600; line-height: 22px; }
html[data-theme="glass"][data-theme][data-theme] body .cmp2-l > span { font-size: 15px; line-height: 21px; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .cmp2-l small { font-size: 14px; line-height: 20px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .cmp2 > .i-chev { width: 20px; height: 20px; flex: none; color: var(--muted-light); transform: rotate(90deg); }
html[data-theme="glass"][data-theme][data-theme] body .cmp-group + .feed-note { margin-top: 10px; }
/* «оценка» у цены — уточнение обычным серым текстом, не плашкой */
html[data-theme="glass"][data-theme][data-theme] body .price-kind:not(#_) {
  display: inline; margin: 0; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: inherit; font-weight: 400; line-height: inherit; color: var(--muted-light);
}
html[data-theme="glass"][data-theme][data-theme] body .price-kind:not(#_)::before { content: "· "; }

/* Карточка отклика */
html[data-theme="glass"][data-theme][data-theme] body .of-card { margin-top: 12px; transition: border-color 0.3s var(--out), box-shadow 0.3s var(--out); }
html[data-theme="glass"][data-theme][data-theme] body .of-card.is-focus { border-color: rgba(247, 131, 67, 0.6); box-shadow: 0 0 0 3px rgba(247, 131, 67, 0.16); }
html[data-theme="glass"][data-theme][data-theme] body .of-head { display: flex; flex-direction: column; gap: 2px; }
html[data-theme="glass"][data-theme][data-theme] body .of-head h3 { margin: 0; font-size: 19px; line-height: 25px; font-weight: 700; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .of-head .stars:not(#_) { font-size: 14px; line-height: 20px; color: var(--muted-light); font-weight: 400; }
html[data-theme="glass"][data-theme][data-theme] body .of-facts { display: grid; gap: 8px; margin: 4px 0 0; }
html[data-theme="glass"][data-theme][data-theme] body .of-facts > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: baseline; }
html[data-theme="glass"][data-theme][data-theme] body .of-facts dt { font-size: 14px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .of-facts dd { margin: 0; font-size: 16px; line-height: 22px; font-weight: 500; color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .of-msg {
  padding: 12px 14px; border-radius: 12px; background: rgba(10, 10, 9, 0.18); font-size: 16px; line-height: 23px; color: #ece8de;
}
html[data-theme="glass"][data-theme][data-theme] body .of-card .reviews { margin: 0; }
html[data-theme="glass"][data-theme][data-theme] body .of-report:not(#_) {
  align-self: flex-start; min-height: 36px; margin: 2px 0 -6px; font-size: 13.5px; color: var(--muted-light); text-decoration: none;
}
html[data-theme="glass"][data-theme][data-theme] body .of-report:not(#_):hover { color: var(--cream); }
html[data-theme="glass"][data-theme][data-theme] body .of-card .lc-src { margin-top: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .detail > .section-title:not(#_) { margin: 28px 2px 0; font-size: 19px; line-height: 25px; font-weight: 700; }
html[data-theme="glass"][data-theme][data-theme] body .of-facts dd:not(#_) { font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] body .of-facts dt:not(#_) { font-weight: 400; }
html[data-theme="glass"][data-theme][data-theme] body .of-card .lc-src:first-child { margin-top: 0; }
html[data-theme="glass"][data-theme][data-theme] body .detail > .feed-note { margin: 14px 2px 0; }
html[data-theme="glass"][data-theme][data-theme] body .detail > .feed-note:not(#_) { font-size: 14px; line-height: 1.45; color: var(--muted-light); }
/* Codex, client round 2: arrow to the right (it jumps, not expands), one card system, calmer weights */
html[data-theme="glass"][data-theme][data-theme] body .cmp2 > .i-chev { transform: none; }
html[data-theme="glass"][data-theme][data-theme] body :is(a.rq, .surface.lc) { border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .surface.lc { padding: 16px; }
html[data-theme="glass"][data-theme][data-theme] body .of-msg { background: rgba(10, 10, 9, 0.12); }
html[data-theme="glass"][data-theme][data-theme] body .of-head .stars:not(#_) { color: #c7c5bf; font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] body .of-facts dt:not(#_) { color: #c7c5bf; }
html[data-theme="glass"][data-theme][data-theme] body .of-card { scroll-margin-top: 20px; }
/* «Проверьте заявку»: строки нажимаются целиком (13.11.2026) */
html[data-theme="glass"][data-theme][data-theme] body .flow .surface.card > h2:not(#_) { font-size: 19px; line-height: 25px; }
html[data-theme="glass"][data-theme][data-theme] body .dr-rows { margin: 14px -4px 0; }
html[data-theme="glass"][data-theme][data-theme] body .dr-row { border-top: 1px solid rgba(245, 242, 231, 0.08); }
html[data-theme="glass"][data-theme][data-theme] body .dr-row:first-child { border-top: 0; }
html[data-theme="glass"][data-theme][data-theme] body .dr-btn {
  display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 52px;
  padding: 10px 4px; text-align: left; color: inherit; border-radius: 10px; transition: background-color 0.2s var(--out);
}
html[data-theme="glass"][data-theme][data-theme] body .dr-btn:hover { background: rgba(245, 242, 233, 0.05); }
html[data-theme="glass"][data-theme][data-theme] body .dr-l { font-size: 14px; line-height: 20px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .dr-v { font-size: 16px; line-height: 22px; font-weight: 500; }
html[data-theme="glass"][data-theme][data-theme] body .dr-btn .i-chev { width: 20px; height: 20px; color: var(--muted-light); }
html[data-theme="glass"][data-theme][data-theme] body .dr-done { font-size: 14.5px; font-weight: 600; color: var(--orange); }
html[data-theme="glass"][data-theme][data-theme] body .dr-row .row-editor { padding: 0 4px 12px; }
/* Codex, new request flow: quieter arrow, visible open row, lighter answer chips */
html[data-theme="glass"][data-theme][data-theme] body .dr-btn .i-chev { width: 18px; height: 18px; }
html[data-theme="glass"][data-theme][data-theme] body .dr-row.open { background: rgba(255, 255, 255, 0.05); border-radius: 12px; }
html[data-theme="glass"][data-theme][data-theme] body .flow .question .chips { gap: 8px; }
html[data-theme="glass"][data-theme][data-theme] body .flow .question .chip:not(#_),
html[data-theme="glass"][data-theme][data-theme] body .dr-row .row-editor .chip:not(#_) {
  min-height: 46px; padding: 0 16px; font-size: 16px; font-weight: 500;
}
html[data-theme="glass"][data-theme][data-theme] body .dr-row.open .dr-btn { padding-left: 10px; padding-right: 10px; }
html[data-theme="glass"][data-theme][data-theme] body .dr-row.open .row-editor { padding: 0 10px 12px; }
