/* ТутНайду · Вариант B «Помощник» — стили прототипа.
   TutNaydu · Variant B "Assistant" — prototype styles.
   Тёмная тема по умолчанию, светлая — через prefers-color-scheme или переключатель.
   Dark by default, light via prefers-color-scheme or the toggle. */

/* ===== Токены: тёмная тема / Tokens: dark theme ===== */
:root {
  --bg1: #0B1020; --bg2: #151A33;
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(255, 255, 255, .09); --glass-3: rgba(255, 255, 255, .14);
  --solid: #141A34; --solid-2: #1B2142;
  --line: rgba(255, 255, 255, .11); --line-2: rgba(255, 255, 255, .2);
  --text: #EEF0FF; --muted: #B0B6DA; --faint: #8C93BD;
  --accent: #8B7CFF; --accent-2: #A79BFF; --on-accent: #0D0B26; --accent-text: #ADA2FF; --accent-soft: rgba(139, 124, 255, .18);
  --mint: #3DDC97; --on-mint: #04261A; --mint-text: #5BE5A9; --mint-soft: rgba(61, 220, 151, .14);
  --warn: #FFB547; --warn-soft: rgba(255, 181, 71, .14); --danger: #FF8A8A; --danger-soft: rgba(255, 124, 124, .14);
  --price: #FFFFFF; --focus: #C9C1FF;
  --bar: rgba(13, 18, 38, .82);
  --shadow: 0 14px 40px rgba(3, 6, 20, .45); --shadow-sm: 0 6px 18px rgba(3, 6, 20, .3);
  --r: 20px; --r-sm: 14px;
  --blur: saturate(150%) blur(18px);
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --logo: 'Unbounded', 'Manrope', sans-serif;
  color-scheme: dark;
}

/* ===== Токены: светлая тема / Tokens: light theme ===== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg1: #F3F4FC; --bg2: #E7E9F8;
    --glass: rgba(255, 255, 255, .62); --glass-2: rgba(255, 255, 255, .86); --glass-3: #FFFFFF;
    --solid: #FFFFFF; --solid-2: #F6F7FD;
    --line: rgba(22, 27, 64, .1); --line-2: rgba(22, 27, 64, .2);
    --text: #121633; --muted: #4A5075; --faint: #5F6690;
    --accent-text: #5442D9; --accent-soft: rgba(139, 124, 255, .18);
    --mint-text: #0A7A4A; --mint-soft: rgba(61, 220, 151, .2);
    --warn: #8A5300; --warn-soft: rgba(255, 181, 71, .22); --danger: #C02B2B; --danger-soft: rgba(255, 124, 124, .16);
    --price: #121633; --focus: #5442D9;
    --bar: rgba(255, 255, 255, .9);
    --shadow: 0 12px 34px rgba(40, 46, 110, .12); --shadow-sm: 0 4px 14px rgba(40, 46, 110, .08);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg1: #F3F4FC; --bg2: #E7E9F8;
  --glass: rgba(255, 255, 255, .62); --glass-2: rgba(255, 255, 255, .86); --glass-3: #FFFFFF;
  --solid: #FFFFFF; --solid-2: #F6F7FD;
  --line: rgba(22, 27, 64, .1); --line-2: rgba(22, 27, 64, .2);
  --text: #121633; --muted: #4A5075; --faint: #5F6690;
  --accent-text: #5442D9; --accent-soft: rgba(139, 124, 255, .18);
  --mint-text: #0A7A4A; --mint-soft: rgba(61, 220, 151, .2);
  --warn: #8A5300; --warn-soft: rgba(255, 181, 71, .22); --danger: #C02B2B; --danger-soft: rgba(255, 124, 124, .16);
  --price: #121633; --focus: #5442D9;
  --bar: rgba(255, 255, 255, .9);
  --shadow: 0 12px 34px rgba(40, 46, 110, .12); --shadow-sm: 0 4px 14px rgba(40, 46, 110, .08);
  color-scheme: light;
}

/* ===== База / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15.5px; line-height: 1.45; color: var(--text);
  background-color: var(--bg1);
  background-image:
    radial-gradient(900px 520px at 0% -8%, rgba(139, 124, 255, .26), transparent 62%),
    radial-gradient(700px 480px at 105% 0%, rgba(61, 220, 151, .1), transparent 60%),
    linear-gradient(165deg, var(--bg1) 0%, var(--bg2) 100%);
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
img { max-width: 100%; }
a { color: var(--accent-text); }
button, input, textarea, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
svg { flex: none; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ===== Каркас / App shell ===== */
.app { height: 100vh; height: 100dvh; display: flex; flex-direction: column; max-width: 1480px; margin: 0 auto; }
.strip {
  flex: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2px 10px;
  padding: 5px 12px; font-size: 12.5px; text-align: center; color: var(--text);
  background: linear-gradient(90deg, rgba(139, 124, 255, .24), rgba(61, 220, 151, .14)); border-bottom: 1px solid var(--line);
}
.strip a { font-weight: 700; text-decoration: none; padding: 4px 6px; border-radius: 8px; }
.strip a:hover { text-decoration: underline; }

.top { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 16px; min-height: 58px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font: 700 18px/1 var(--logo); letter-spacing: -.01em; margin-right: auto; min-height: 44px; }
.logo-mark { width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--mint)); box-shadow: 0 4px 16px rgba(139, 124, 255, .45); }
.logo-mark svg { width: 20px; height: 20px; }
.city { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--glass); font-weight: 600; font-size: 14px; cursor: pointer; }
.city svg { width: 17px; height: 17px; color: var(--accent-text); }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--glass); display: inline-grid; place-items: center; cursor: pointer; color: var(--text); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--glass-2); }
.icon-btn svg { width: 22px; height: 22px; }
.top .topnav, .top .sell-top { display: none; }

.main { flex: 1; min-height: 0; position: relative; display: flex; }
.view { flex: 1; min-width: 0; min-height: 0; display: none; flex-direction: column; }
.view.on { display: flex; }
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; position: relative; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.pad { padding: 16px 16px 28px; }

/* Нижняя навигация (мобильная) / Bottom tab bar (mobile) */
.tabbar {
  flex: none; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--bar);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; cursor: pointer; border-radius: 12px; }
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--text); }
.tab.on svg { color: var(--accent-text); }
.tab-ic { position: relative; display: inline-grid; }
.tab.plus { justify-content: flex-start; }
.plus-btn { width: 52px; height: 52px; border-radius: 18px; display: grid; place-items: center; margin-top: -22px; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 8px 24px rgba(139, 124, 255, .5); }
.plus-btn svg { width: 28px; height: 28px; stroke-width: 2.4; }
.dot-badge { position: absolute; top: -4px; right: -8px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #1A0505; font: 800 11px/18px var(--font); font-style: normal; text-align: center; }
:root[data-theme="light"] .dot-badge { color: #fff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .dot-badge { color: #fff; } }

/* ===== Кнопки, чипы, метки / Buttons, chips, tags ===== */
.btn {
  min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text);
  font: 700 15px/1.15 var(--font); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, opacity .15s; text-align: center;
}
.btn svg { width: 19px; height: 19px; }
.btn:hover { background: var(--glass-3); border-color: var(--accent); }
.btn:active { transform: scale(.98); }
.btn.primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-color: transparent; box-shadow: 0 6px 20px rgba(139, 124, 255, .35); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.mint { background: var(--mint); color: var(--on-mint); border-color: transparent; }
.btn.danger { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); }
.btn.ghost { background: transparent; }
.btn.demo { border-style: dashed; color: var(--muted); background: transparent; font-weight: 600; }
.btn.demo b { color: var(--accent-text); font-weight: 800; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; transform: none; box-shadow: none; }
.btn.chosen, .btn.chosen:disabled { opacity: 1; background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.btn.chosen::before { content: '✓'; font-weight: 800; color: var(--accent-text); }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.row > .btn { flex: 1 1 auto; }

.chip {
  min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); color: var(--text);
  font: 600 14.5px/1.2 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; transition: transform .15s, background .15s, border-color .15s; text-align: left;
}
.chip:hover { background: var(--glass-3); border-color: var(--accent); }
.chip:active { transform: scale(.97); }
.chip .ce { font-size: 17px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-text); }
.tag svg { width: 14px; height: 14px; }
.tag.ok { background: var(--mint-soft); color: var(--mint-text); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--line); color: var(--text); white-space: nowrap; }
.pill svg { width: 15px; height: 15px; }
.pill.mint { background: var(--mint-soft); border-color: transparent; color: var(--mint-text); }
.ver { display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--mint-text); }
.ver svg { width: 14px; height: 14px; stroke-width: 2.6; }
.stars { font-weight: 700; color: var(--text); white-space: nowrap; }
.stars > span:first-child { color: #FFC24B; }
.ad-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: rgba(8, 10, 24, .78); color: #FFFFFF; letter-spacing: .02em; }
.ad-tag.inline { background: var(--warn-soft); color: var(--warn); }
.price { color: var(--price); font-weight: 800; letter-spacing: -.01em; }
.price.xl { font-size: 30px; }

/* ===== Карточки / Cards ===== */
/* Карточки без собственного blur: размытие только у крупных поверхностей — так легче для слабых телефонов.
   Cards without their own blur: only large surfaces blur — lighter for low-end phones. */
.card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow-sm); position: relative;
}
.card-title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.card-title svg { width: 18px; height: 18px; color: var(--accent-text); }
.card-title .tag { margin-left: auto; }
.ava { width: var(--s, 40px); height: var(--s, 40px); border-radius: 50%; object-fit: cover; flex: none; display: inline-block; background: var(--glass-2); }
.ava-i { display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s, 40px) * .36); color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--mint)); }

/* ===== Помощник: экран старта / Assistant: start screen ===== */
.hero { padding: 22px 16px 28px; max-width: 720px; margin: 0 auto; }
.hello { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--muted); font-size: 15px; }
.hero h1 {
  font-size: clamp(36px, 9vw, 56px); line-height: 1.02; margin: 12px 0 10px; font-weight: 800; letter-spacing: -.035em;
  background: linear-gradient(110deg, var(--text) 35%, var(--accent-text) 75%, var(--mint-text)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 16px; max-width: 520px; margin-bottom: 18px; }
.ask {
  position: relative; background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 26px; padding: 14px 12px 10px 18px;
  box-shadow: 0 0 0 6px var(--accent-soft), var(--shadow); transition: box-shadow .2s; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.ask:focus-within { box-shadow: 0 0 0 3px var(--accent), 0 0 46px rgba(139, 124, 255, .38); }
.ask textarea { display: block; width: 100%; border: 0; background: transparent; font: 700 19px/1.35 var(--font); resize: none; outline: none; min-height: 54px; padding: 0; }
.ask textarea::placeholder { color: var(--muted); font-weight: 600; }
.ask-tools { display: flex; justify-content: flex-end; gap: 8px; align-items: center; margin-top: 6px; }
.ask-tools .hint { margin-right: auto; font-size: 12.5px; color: var(--muted); display: none; }
@media (pointer: fine) { .ask-tools .hint { display: inline; } }
.send { width: 48px; height: 48px; border-radius: 16px; border: 0; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--accent)); display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 6px 18px rgba(139, 124, 255, .4); }
.send svg { width: 22px; height: 22px; }
.mic { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--glass-2); display: grid; place-items: center; position: relative; cursor: pointer; flex: none; color: var(--text); }
.mic svg { width: 22px; height: 22px; position: relative; z-index: 1; }
.mic::before, .mic::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: ring 2.8s ease-out infinite; pointer-events: none; }
.mic::after { animation-delay: 1.4s; }
.mic.listening { background: var(--danger); color: #1A0505; border-color: transparent; }
.mic.listening::before, .mic.listening::after { border-color: var(--danger); animation-duration: 1.1s; }
.mic.sm { width: 44px; height: 44px; }
.mic.sm::before, .mic.sm::after { display: none; }
.mic.sm.listening::before, .mic.sm.listening::after { display: block; }

.hero-chips { margin-top: 20px; }
.hero-chips .chip { background: var(--glass); }
.chips-more { margin-top: 10px; }
.chips-more .chip { min-height: 44px; font-size: 13.5px; color: var(--muted); border-style: dashed; background: transparent; }
.chips-label { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 22px 0 8px; }

.trust { list-style: none; margin: 22px 0 0; padding: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--line); }
.trust li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 4px; }
.trust .ti { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--mint-soft); color: var(--mint-text); }
.trust .ti svg { width: 22px; height: 22px; }
.trust b { font-size: 13.5px; line-height: 1.25; }
.trust small { display: none; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.how { margin-top: 22px; display: grid; gap: 10px; counter-reset: how; }
.how h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.how ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.how li { display: flex; gap: 12px; align-items: flex-start; counter-increment: how; }
.how li::before { content: counter(how); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent-soft); color: var(--accent-text); }
.how li span { padding-top: 3px; color: var(--muted); }
.how li b { color: var(--text); }
.alt-nav { margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.alt-nav a { font-weight: 700; display: inline-block; padding: 6px 2px; }

/* ===== Помощник: разговор / Assistant: conversation ===== */
.chat-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px 8px 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: 15px; }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.chat-head .btn { margin-left: auto; }
.online { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px var(--mint-soft); }
.bot-ava { width: 32px; height: 32px; border-radius: 11px; flex: none; display: grid; place-items: center; color: var(--on-accent); background: linear-gradient(135deg, var(--accent-2), var(--accent) 55%, var(--mint)); box-shadow: 0 4px 14px rgba(139, 124, 255, .35); }
.bot-ava svg { width: 19px; height: 19px; }
.bot-ava.lg { width: 40px; height: 40px; border-radius: 14px; }

.feed { display: flex; flex-direction: column; gap: 14px; padding: 16px 14px 22px; max-width: 760px; margin: 0 auto; }
.msg { display: flex; gap: 9px; align-items: flex-start; max-width: 100%; animation: msgIn .34s cubic-bezier(.2, .8, .3, 1) both; }
.msg-body { min-width: 0; }
.msg.bot .msg-body { flex: 1; display: flex; flex-direction: column; gap: 9px; align-items: flex-start; }
.msg.bot .msg-body > * { max-width: 100%; }
.msg.bot .msg-body > .card, .msg.bot .msg-body > .offers, .msg.bot .msg-body > .pros, .msg.bot .msg-body > [data-results], .msg.bot .msg-body > .why, .msg.bot .msg-body > .filters, .msg.bot .msg-body > .order-slot, .msg.bot .msg-body > .cmp-wrap { width: 100%; max-width: 600px; }
.msg.bot + .msg.bot .bot-ava { visibility: hidden; }
.msg.user { justify-content: flex-end; }
.msg.user .msg-body { max-width: 82%; }
.msg.sys { justify-content: center; }
.bubble { background: var(--glass-2); border: 1px solid var(--line); padding: 11px 14px; border-radius: 6px 18px 18px 18px; line-height: 1.5; width: fit-content; max-width: 560px; }
.bubble b { font-weight: 800; }
.bubble .muted { font-size: 14px; }
.msg.user .bubble { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent); border: 0; border-radius: 18px 18px 6px 18px; font-weight: 600; }
.msg.user .bubble svg { width: 18px; height: 18px; vertical-align: -3px; }
.sent-photo { display: block; width: 160px; height: 160px; object-fit: cover; border-radius: 18px 18px 6px 18px; border: 2px solid var(--accent); }
.msg.user .bubble:has(.sent-photo) { padding: 0; background: none; }
.sys-note { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); padding: 6px 12px; border-radius: 99px; background: var(--glass); border: 1px solid var(--line); }
.sys-note svg { width: 16px; height: 16px; color: var(--mint-text); }
.typing { display: inline-flex; align-items: center; gap: 5px; padding: 14px 16px; background: var(--glass-2); border: 1px solid var(--line); border-radius: 6px 18px 18px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite ease-in-out; }
.typing i:nth-of-type(2) { animation-delay: .15s; }
.typing i:nth-of-type(3) { animation-delay: .3s; }
.typing em { font-style: normal; font-size: 12.5px; color: var(--muted); margin-left: 6px; }

.composer { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bar); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.composer input { flex: 1; min-width: 0; min-height: 46px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass-2); padding: 0 14px; font-weight: 600; font-size: 16px; }
.composer input::placeholder { color: var(--muted); }
.composer input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.composer .send { width: 46px; height: 46px; }
.composer .icon-btn { width: 44px; height: 44px; border-radius: 50%; }
body.is-busy .send { opacity: .6; }

/* «Почему я вижу это» / "Why am I seeing this" */
.why { border-radius: 14px; background: var(--glass); border: 1px dashed var(--line-2); font-size: 14px; }
.why summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; font-weight: 700; color: var(--accent-text); }
.why summary::-webkit-details-marker { display: none; }
.why summary svg { width: 18px; height: 18px; }
.why summary::after { content: '▾'; margin-left: auto; transition: transform .2s; }
.why[open] summary::after { transform: rotate(180deg); }
.why > div { padding: 0 14px 12px; color: var(--muted); line-height: 1.5; }
.why > div b { color: var(--text); }
.why ol, .why ul { margin: 6px 0 0; padding-left: 20px; }

/* Поля заявки / Request fields */
.fields { margin: 12px 0 0; display: grid; gap: 9px; }
.fields > div { display: grid; grid-template-columns: 112px 1fr; gap: 10px; align-items: baseline; }
.fields dt { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.fields dt svg { width: 16px; height: 16px; color: var(--accent-text); }
.fields dd { margin: 0; font-weight: 700; }
.fields dd small { color: var(--muted); font-weight: 500; }
.fields dd .muted { font-weight: 500; font-style: italic; }
.req .tag { transition: background .3s; }
.flash { animation: flash .9s ease; }

/* Шкала цен / Price range scale */
.range { margin: 14px 0 2px; }
.range-bar { position: relative; height: 10px; border-radius: 99px; margin: 24px 0 8px; background: linear-gradient(90deg, var(--mint) 0%, var(--accent) 55%, var(--warn) 100%); }
.range-mid { position: absolute; top: -5px; width: 3px; height: 20px; border-radius: 2px; background: var(--text); transform: translateX(-50%); }
.range-you { position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%; background: var(--text); border: 4px solid var(--solid); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--accent); transition: left .3s ease; }
.range-you em { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 7px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--text); color: var(--bg1); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.range-lbl { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }
.range-lbl span { display: flex; flex-direction: column; }
.range-lbl span:nth-child(2) { align-items: center; text-align: center; }
.range-lbl span:last-child { align-items: flex-end; text-align: right; }
.range-lbl b { color: var(--text); font-size: 13px; }
.range-cap { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.minibar { position: relative; height: 6px; border-radius: 99px; background: var(--glass-3); margin: 8px 0 4px; }
.minibar .mb-range { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--accent), var(--warn)); opacity: .85; }
.minibar .mb-mid { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); transform: translateX(-50%); border-radius: 2px; }
.minibar .mb-you { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--text); border: 2px solid var(--solid); transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--accent); }

/* Отклики мастеров / Pro offers */
.offers, .pros { display: grid; gap: 10px; }
.offer.best, .procard.best { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), var(--shadow-sm); }
.ribbon { position: absolute; top: -10px; left: 14px; font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 99px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent); }
.offer-top { display: flex; gap: 10px; align-items: flex-start; }
.offer-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.offer-who b { font-size: 15.5px; }
.sub { color: var(--muted); font-size: 13px; }
.sub svg { width: 14px; height: 14px; vertical-align: -2px; }
.offer-price { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.offer-price .price { font-size: 19px; white-space: nowrap; }
.offer-price small { font-size: 12px; color: var(--muted); font-weight: 600; max-width: 110px; }
.offer-price small.ok { color: var(--mint-text); }
.meta { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--muted); font-weight: 600; }
.meta li { display: inline-flex; align-items: center; gap: 5px; }
.meta svg { width: 15px; height: 15px; color: var(--accent-text); }
.meta li.ok { color: var(--mint-text); }
.meta li.ok svg { color: var(--mint-text); }
.quote { margin: 10px 0 12px; font-size: 14px; color: var(--text); padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--glass); border-radius: 0 10px 10px 0; }
.offer .row, .procard .row { margin-top: 12px; }
.ad-why { margin-top: 10px; display: flex; gap: 6px; font-size: 12.5px; color: var(--muted); }
.ad-why svg { width: 16px; height: 16px; color: var(--warn); }
.procard .ad-tag.inline { position: absolute; top: 12px; right: 12px; }
.procard.has-ad .offer-price { padding-top: 26px; }

/* Сравнение / Comparison table */
.cmp-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 300px; }
.cmp th, .cmp td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.cmp thead th { font-size: 13px; color: var(--text); font-weight: 800; }
.cmp tbody th { color: var(--muted); font-weight: 700; font-size: 12.5px; white-space: nowrap; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp td.best { color: var(--mint-text); font-weight: 800; }
.cmp td.best::after { content: ' ✓'; }

/* Оплата / Payment breakdown */
.lines { display: grid; gap: 8px; }
.lines > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.lines span { color: var(--muted); font-weight: 600; }
.lines span small { display: block; font-size: 12px; font-weight: 500; }
.lines b { white-space: nowrap; }
.lines .total { border-top: 1px dashed var(--line-2); padding-top: 10px; margin-top: 2px; }
.lines .total span { color: var(--text); font-weight: 800; font-size: 16px; }
.lines .total .price { font-size: 22px; }
.steps3 { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: st; }
.steps3 li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); counter-increment: st; }
.steps3 li::before { content: counter(st); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; background: var(--mint-soft); color: var(--mint-text); }
.steps3 b { color: var(--text); }
.guarantee { display: flex; gap: 8px; align-items: flex-start; margin: 14px 0 12px; padding: 10px 12px; border-radius: 14px; background: var(--mint-soft); font-size: 14px; }
.guarantee svg { width: 20px; height: 20px; color: var(--mint-text); }
.demo-note { margin-top: 8px; font-size: 12px; color: var(--muted); text-align: center; }
.pay .row + .row { margin-top: 8px; }
.pay-item { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.pay-item img { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; }
.pay-item b { display: block; font-size: 14.5px; }
.checks { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.checks li::before { content: ''; flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233DDC97' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* Заказ и таймлайн / Order and timeline */
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; font-size: 13px; }
.order-who { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-who img.thumb { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.order-who b { display: block; }
.order-who .price { margin-left: auto; font-size: 17px; white-space: nowrap; }
.timeline { list-style: none; margin: 14px 0 6px; padding: 0; }
.timeline li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; position: relative; padding-bottom: 14px; }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line-2); border-radius: 2px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::before { display: none; }
.timeline li.done::before { background: var(--mint); }
.timeline .dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; background: var(--solid); }
.timeline .dot svg { width: 15px; height: 15px; stroke-width: 3; }
.timeline li.done .dot { background: var(--mint); border-color: var(--mint); color: var(--on-mint); }
.timeline li.now .dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.8s infinite; }
.timeline li.now .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.timeline b { display: block; font-weight: 800; padding-top: 3px; }
.timeline li:not(.done):not(.now) b { color: var(--muted); font-weight: 600; }
.timeline small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.order-actions { display: grid; gap: 8px; margin-top: 12px; }
.order-actions .row > .btn { flex: 1 1 140px; }
.order-done { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.order-done svg { width: 20px; height: 20px; color: var(--mint-text); }
.rate { display: flex; gap: 4px; }
.star-btn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; font-size: 22px; color: var(--faint); display: grid; place-items: center; }
.star-btn[aria-pressed="true"] { color: #FFC24B; border-color: color-mix(in srgb, #FFC24B 50%, transparent); background: rgba(255, 194, 75, .12); }
.rtags { display: flex; flex-wrap: wrap; gap: 6px; }
.rtags .chip { min-height: 40px; font-size: 13px; padding: 0 12px; }
.rtags .chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.rtags .chip[aria-pressed="true"]::before { content: '✓'; color: var(--accent-text); font-weight: 800; }
.rate-label { font-size: 13px; font-weight: 700; color: var(--muted); }

/* Продажа по фото / Sell by photo */
.picker .row { margin-bottom: 10px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pthumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--glass-2); aspect-ratio: 1; min-height: 44px; }
.pthumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.pthumb:hover img { transform: scale(1.06); }
.pthumb.hint { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.pthumb span { position: absolute; left: 4px; right: 4px; bottom: 4px; font-size: 10.5px; font-weight: 800; padding: 2px 4px; border-radius: 8px; background: var(--accent); color: var(--on-accent); text-align: center; }
.pthumb.chosen { border-color: var(--mint); }
.pthumb:disabled:not(.chosen) { opacity: .4; cursor: default; }
.scan { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: start; }
.scan-img { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 1; }
.scan-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-img::after { content: ''; position: absolute; inset: 0; border: 2px solid var(--accent); border-radius: 14px; box-shadow: inset 0 0 30px rgba(139, 124, 255, .45); }
.scan-line { position: absolute; left: 0; right: 0; height: 36%; top: -36%; background: linear-gradient(180deg, transparent, rgba(139, 124, 255, .55) 85%, var(--accent-2)); animation: scan 1.3s linear infinite; }
.scan.done .scan-line { display: none; }
.scan.done .scan-img::after { border-color: var(--mint); box-shadow: none; }
.scan-title { display: block; margin-bottom: 6px; }
.scan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.scan-list li { display: flex; gap: 6px; align-items: flex-start; animation: fadeUp .3s ease both; }
.scan-list svg { width: 16px; height: 16px; color: var(--mint-text); margin-top: 2px; stroke-width: 2.6; }
.draft-top { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.draft-img { width: 76px; height: 76px; border-radius: 14px; object-fit: cover; }
.draft-top p { margin-top: 6px; }
.fld { display: grid; gap: 5px; margin-bottom: 10px; }
.fld > span { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.fld input, .fld textarea { width: 100%; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2); padding: 10px 12px; font-weight: 600; font-size: 16px; min-height: 44px; }
.fld textarea { resize: vertical; font-weight: 500; line-height: 1.45; font-size: 15px; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fld input:disabled, .fld textarea:disabled { opacity: .75; }
.ai-price { border-radius: 16px; padding: 12px; background: var(--accent-soft); margin-bottom: 12px; }
.ai-price > p:first-child, .ai-say { display: flex; gap: 8px; align-items: flex-start; font-size: 14.5px; }
.ai-price > p:first-child svg, .ai-say svg { width: 18px; height: 18px; color: var(--accent-text); margin-top: 2px; }
.ai-price small { color: var(--muted); }
.eta { font-size: 13px; font-weight: 700; color: var(--mint-text); margin: 6px 0 10px; }
.quick .chip { min-height: 40px; font-size: 13px; padding: 0 12px; background: var(--glass-2); }
.incl { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.incl li { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 99px; background: var(--mint-soft); color: var(--mint-text); }
.incl svg { width: 15px; height: 15px; }
.mini { display: flex; gap: 12px; align-items: center; }
.mini img { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; flex: none; }
.mini > div { flex: 1; min-width: 0; }
.mini b { display: block; font-size: 14.5px; }
.mini .btn { flex: none; }
.cross-box { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 16px; border: 1px dashed var(--accent); background: var(--accent-soft); font-size: 14px; }
.cross-box > div { flex: 1; min-width: 0; }
.cross-box b { display: block; }

/* Карусель товаров / Goods carousel */
.filters { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fchip { flex: none; min-height: 40px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--glass); font: 700 13px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.fchip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.fchip svg { width: 15px; height: 15px; stroke-width: 2.6; color: var(--accent-text); }
.carousel { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.pcard-wrap { flex: 0 0 176px; scroll-snap-align: start; display: flex; }
.pcard, .gcard { width: 100%; text-align: left; padding: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--glass-2); color: inherit; cursor: pointer; display: flex; flex-direction: column; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pcard:hover, .gcard:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: var(--shadow); }
.pimg { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--glass); }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pimg .ad-tag { position: absolute; top: 8px; left: 8px; }
.safe-tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 8px; background: var(--mint); color: var(--on-mint); }
.safe-tag svg { width: 13px; height: 13px; }
.pbody { display: flex; flex-direction: column; gap: 3px; padding: 10px 11px 12px; flex: 1; }
.pbody .price { font-size: 17px; }
.pt { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pm { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--muted); }
.pm svg { width: 13px; height: 13px; }
.pv { font-size: 11.5px; font-weight: 800; margin-top: auto; padding-top: 4px; }
.pv.good, .pv.ok { color: var(--mint-text); }
.pv.low { color: var(--warn); }
.pv.high { color: var(--warn); }
.pv.over { color: var(--warn); }
.res-note { font-size: 12.5px; color: var(--muted); }

/* Бронь / Booking */
.booking .offer-top { margin-bottom: 4px; }

/* ===== Панель деталей / Detail panel ===== */
.detail {
  position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background-color: var(--bg1);
  background-image: linear-gradient(165deg, var(--bg1), var(--bg2));
  transform: translateX(104%); visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .3, 1), visibility .3s;
}
.detail.open { transform: none; visibility: visible; }
.d-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.d-title { font-size: 16px; font-weight: 800; flex: 1; outline: none; }
.d-close { display: none; }
.detail > .d-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
/* Обычный поток блоков: сетка в скролл-контейнере сжимала строки с фото до нуля.
   Plain block flow: a grid inside a scroll container collapsed photo rows to zero. */
.d-body { padding: 14px 16px 24px; display: block; }
.d-body > * + * { margin-top: 14px; }
.d-foot { flex: none; display: grid; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bar); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.d-photo, .d-cover { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--glass); }
.d-photo img, .d-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-photo .ad-tag, .d-cover .ad-tag { position: absolute; top: 12px; left: 12px; }
.cover-ph { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 60%), linear-gradient(135deg, var(--solid-2), var(--solid)); }
.d-name { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.d-price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.specs > div { padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.specs dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.specs dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.d-desc { color: var(--text); line-height: 1.55; }
.seller { display: flex; gap: 12px; align-items: flex-start; }
.seller > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.seller-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.warn-line { display: flex; gap: 6px; align-items: flex-start; color: var(--warn); font-weight: 700; font-size: 13.5px; }
.warn-line svg { width: 18px; height: 18px; }
.pro-head { display: flex; gap: 12px; align-items: center; }
.pro-head > div { display: grid; gap: 4px; }
.pro-head p:last-child { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpis > div { padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); text-align: center; }
.kpis b { display: block; font-size: 17px; font-weight: 800; }
.kpis small { color: var(--muted); font-size: 12px; font-weight: 600; }
.guarantee-box { display: flex; gap: 10px; align-items: flex-start; background: var(--mint-soft); border-color: transparent; }
.guarantee-box > svg { width: 26px; height: 26px; color: var(--mint-text); }
.guarantee-box b { display: block; }
.guarantee-box small { color: var(--text); opacity: .85; font-size: 13px; }
.d-sub { font-size: 15px; font-weight: 800; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.d-sub small { font-weight: 600; color: var(--muted); font-size: 12.5px; }
.fixed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.fixed li { padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.fx-top { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; }
.fx-idx { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.fx-idx .ok { color: var(--mint-text); font-weight: 800; }
.fx-idx .hi { color: var(--warn); font-weight: 800; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.slot { min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass); font-weight: 700; font-size: 14px; cursor: pointer; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.reviews { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.reviews li { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 4px; }
.rv-top { display: flex; justify-content: space-between; gap: 8px; }
.rv-top .st { color: #FFC24B; letter-spacing: 1px; }
.reviews p { font-size: 14px; }
.reviews small { display: inline-flex; align-items: center; gap: 4px; color: var(--mint-text); font-size: 12px; font-weight: 700; }
.reviews small svg { width: 13px; height: 13px; }
.d-body.home > * + * { margin-top: 18px; }
.d-h { font-size: 18px; font-weight: 800; }
.d-body.home > .lead-s { color: var(--muted); font-size: 14px; margin-top: 4px; }
.idx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.idx-list li { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.idx-list small { color: var(--muted); font-size: 12px; }
.empty-hint { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; }
.empty-hint .bot-ava { width: 40px; height: 40px; }

/* ===== Сообщения / Messages ===== */
.m-wrap { flex: 1; min-height: 0; display: flex; }
.m-list { flex: 1; min-width: 0; overflow-y: auto; padding: 12px 10px 20px; }
.m-list h1 { font-size: 22px; font-weight: 800; padding: 4px 6px 4px; }
.m-list .m-note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); padding: 8px 6px 12px; }
.m-list .m-note svg { width: 18px; height: 18px; color: var(--mint-text); }
.m-row { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; text-decoration: none; color: var(--text); min-height: 64px; }
.m-row:hover { background: var(--glass); }
.m-row.on { background: var(--glass-2); border: 1px solid var(--line); }
.m-row > div { flex: 1; min-width: 0; }
.m-row b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .m-prev { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-row .m-sub { display: block; font-size: 12px; color: var(--accent-text); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 12px; color: var(--muted); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--danger); color: #1A0505; font: 800 11.5px/20px var(--font); font-style: normal; text-align: center; }
.m-chat { display: none; flex: 1; min-width: 0; flex-direction: column; }
.has-chat .m-list { display: none; }
.has-chat .m-chat { display: flex; }
.m-head { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.m-head > div { flex: 1; min-width: 0; }
.m-head b { display: block; }
.m-head small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.m-head small.warn { color: var(--warn); }
.m-item { flex: none; display: flex; gap: 10px; align-items: center; margin: 10px 12px 0; padding: 8px; border-radius: 16px; background: var(--glass); border: 1px solid var(--line); }
.m-item img { width: 48px; height: 48px; border-radius: 10px; object-fit: cover; }
.m-item > div { flex: 1; min-width: 0; }
.m-item b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-item .price { font-size: 15px; }
.m-msgs { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.m-msgs > * { flex: none; }
.mm { max-width: 84%; animation: msgIn .3s ease both; }
.mm .mb { padding: 9px 13px; border-radius: 18px; line-height: 1.45; font-size: 15px; }
.mm time { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; padding: 0 6px; }
.mm.them { align-self: flex-start; }
.mm.them .mb { background: var(--glass-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.mm.me { align-self: flex-end; text-align: right; }
.mm.me .mb { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent); border-bottom-right-radius: 6px; text-align: left; font-weight: 600; }
.mm.sys { align-self: center; max-width: 92%; text-align: center; }
.mm.sys .mb { font-size: 13px; color: var(--muted); background: var(--glass); border: 1px solid var(--line); border-radius: 14px; }
.mm.scam .mb { border-color: color-mix(in srgb, var(--danger) 55%, transparent); }
.blocked-link { display: inline-flex; align-items: center; gap: 3px; padding: 0 6px; border-radius: 6px; background: var(--danger-soft); color: var(--danger); text-decoration: line-through; font-weight: 700; }
.blocked-link svg { width: 13px; height: 13px; }
.mm .flagged { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 11.5px; font-weight: 700; color: var(--danger); padding: 0 6px; }
.mm .flagged svg { width: 13px; height: 13px; }
.guard { align-self: stretch; max-width: 600px; border-radius: 20px; padding: 14px; background: linear-gradient(160deg, var(--warn-soft), var(--danger-soft)); border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); animation: msgIn .35s ease both; }
.guard-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.guard-head .gi { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #FFB547; color: #241400; flex: none; }
.guard-head .gi svg { width: 22px; height: 22px; }
.guard-head b { display: block; font-size: 15.5px; }
.guard-head small { font-size: 12px; color: var(--muted); font-weight: 700; }
.guard p { font-size: 14px; }
.guard ul { margin: 8px 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.guard .muted { font-size: 13px; margin-bottom: 12px; }
.guard.tip { padding: 10px 12px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.guard.tip .gi { background: var(--accent); color: var(--on-accent); width: 30px; height: 30px; border-radius: 10px; }
.guard.tip .gi svg { width: 18px; height: 18px; }
.guard.tip p { font-size: 13.5px; }
.m-typing { align-self: flex-start; font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.m-typing .typing { padding: 9px 12px; }
.m-compose { flex: none; display: flex; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--line); background: var(--bar); }
.m-compose input { flex: 1; min-width: 0; min-height: 46px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--glass-2); padding: 0 14px; font-size: 16px; font-weight: 600; }
.m-compose input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.m-hint { flex: none; display: flex; justify-content: center; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); padding: 0 10px 8px; background: var(--bar); }
.m-hint svg { width: 14px; height: 14px; color: var(--mint-text); }
.m-empty { flex: 1; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 30px; }
.m-empty .bot-ava { margin: 0 auto 10px; width: 48px; height: 48px; }

/* ===== Кабинет мастера / Pro cabinet ===== */
.cab { max-width: 1180px; margin: 0 auto; }
.cab-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.cab-head > div { flex: 1; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--mint-text); }
.cab-head h1 { font-size: clamp(22px, 6vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.seg { justify-self: start; }
.order-moved { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line-2); }
.order-moved svg { width: 16px; height: 16px; transform: rotate(90deg); color: var(--accent-text); }
.lbl-short { display: none; }
@media (max-width: 599px) {
  .hide-sm, .lbl-full { display: none; }
  .lbl-short { display: inline; }
  .strip { font-size: 11.5px; padding: 4px 8px; gap: 0 6px; }
}
.cab-brief { display: flex; gap: 12px; align-items: flex-start; background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft)); }
.cab-brief p { font-size: 15.5px; }
.kpis.big { margin: 12px 0; }
.kpis.big b { font-size: 26px; }
.kpis.big > div:last-child b { color: var(--mint-text); }
.cab-grid { display: grid; gap: 12px; }
.cab-grid h2 { font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cab-grid h2 svg { width: 20px; height: 20px; color: var(--accent-text); }
.cab-grid h2 .tag { margin-left: auto; }
.agenda { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.agenda li { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); }
.agenda time { font-weight: 800; font-size: 16px; }
.agenda b { display: block; font-size: 14.5px; }
.agenda small { color: var(--muted); font-size: 12.5px; }
.agenda .fee { text-align: right; font-size: 12px; font-weight: 800; }
.agenda .fee .price { display: block; font-size: 15px; }
.fee.zero { color: var(--mint-text); }
.fee.pct { color: var(--muted); }
.req-item { padding: 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); display: grid; gap: 6px; }
.req-item + .req-item { margin-top: 8px; }
.req-item .q { font-size: 13.5px; color: var(--muted); font-style: italic; }
.req-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.money-big { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.stack { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 10px 0; background: var(--glass-3); }
.stack span { display: block; height: 100%; }
.stack .s-own { background: var(--mint); }
.stack .s-tn { background: var(--accent); }
.legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 8px; align-items: start; }
.legend i { width: 12px; height: 12px; border-radius: 4px; margin-top: 4px; }
.legend small { display: block; color: var(--muted); font-size: 12.5px; }
.legend b { white-space: nowrap; }
.legend .net { border-top: 1px dashed var(--line-2); padding-top: 8px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 14px; padding-top: 8px; }
.bars > div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.bars i { display: block; width: 100%; max-width: 38px; border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); opacity: .55; }
.bars > div.cur i { opacity: 1; }
.bars small { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.progress { height: 14px; border-radius: 99px; background: var(--glass-3); overflow: hidden; margin: 10px 0 6px; }
.progress span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--mint), var(--accent)); }
.prog-lbl { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.prog-lbl b { color: var(--text); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--mint-soft); font-weight: 700; font-size: 14px; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 99px; background: var(--mint); border: 0; cursor: pointer; flex: none; }
.switch::after { content: ''; position: absolute; top: 3px; left: 23px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.switch[aria-checked="false"] { background: var(--glass-3); }
.switch[aria-checked="false"]::after { left: 3px; }
.checks-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.checks-list li { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--glass); }
.checks-list span { color: var(--muted); }
.copy-row { display: flex; gap: 8px; margin-top: 10px; }
.copy-row input { flex: 1; min-width: 0; min-height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--glass-2); padding: 0 12px; font-weight: 700; font-size: 14px; color: var(--accent-text); }
.cab-ask { background: linear-gradient(160deg, var(--glass-2), var(--glass)); }
.cab-ask form { display: flex; gap: 8px; margin-top: 10px; }
.cab-ask input { flex: 1; min-width: 0; min-height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--glass-2); padding: 0 14px; font-weight: 600; font-size: 16px; }
.cab-ask input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.cab-log { display: grid; gap: 10px; margin-top: 12px; }
.cab-log:empty { display: none; }
.cab-log .q { justify-self: end; max-width: 85%; padding: 8px 13px; border-radius: 16px 16px 6px 16px; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: var(--on-accent); font-weight: 600; font-size: 14.5px; }
.cab-log .a { display: flex; gap: 8px; align-items: flex-start; }
.cab-log .a > div { padding: 10px 13px; border-radius: 6px 16px 16px 16px; background: var(--glass-2); border: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.cab-log .a ul { margin: 6px 0; padding-left: 18px; }

/* ===== Профиль / Profile ===== */
.prof { max-width: 880px; margin: 0 auto; display: grid; gap: 14px; }
.prof-head { display: flex; gap: 14px; align-items: center; }
.prof-head h1 { font-size: 24px; font-weight: 800; }
.prof-head > div { display: grid; gap: 4px; }
.prof h2 { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.list-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list-rows a, .list-rows .lr { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-height: 60px; }
.list-rows a:hover { border-color: var(--accent); }
.list-rows img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.list-rows .lr-body { flex: 1; min-width: 0; }
.list-rows b { display: block; font-size: 14.5px; }
.list-rows small { color: var(--muted); font-size: 12.5px; }
.list-rows svg.chev { width: 18px; height: 18px; color: var(--muted); }
.link-card { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--text); background: linear-gradient(135deg, var(--accent-soft), var(--mint-soft)); }
.link-card > div { flex: 1; }
.link-card b { display: block; font-size: 16px; }
.link-card small { color: var(--muted); }
.link-card .lc-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.link-card .lc-ic svg { width: 24px; height: 24px; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.seg button { min-height: 40px; padding: 0 14px; border-radius: 10px; border: 0; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.empty-row { padding: 14px; border-radius: 14px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 14px; display: grid; gap: 10px; }
.empty-row .choices { gap: 6px; }

/* ===== Лента / Feed ===== */
.feed-wrap { max-width: 1100px; margin: 0 auto; display: grid; gap: 12px; }
.feed-search { display: flex; gap: 8px; padding: 6px; border-radius: 18px; background: var(--glass-2); border: 1px solid var(--line-2); }
.feed-search input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; padding: 0 10px; font-weight: 600; font-size: 16px; outline: none; }
.feed-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.feed-search input::placeholder { color: var(--muted); }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats .fchip { min-height: 44px; font-size: 13.5px; }
.feed-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); }
.feed-note svg { width: 17px; height: 17px; color: var(--accent-text); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gcard .sub { font-size: 12px; }
.gcard .pro-line { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }

/* ===== Модальное окно «＋» и тост / "+" sheet and toast ===== */
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.modal-back { position: absolute; inset: 0; background: rgba(5, 8, 20, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fade .2s ease both; }
.modal-card { position: relative; width: 100%; max-width: 520px; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--solid); border: 1px solid var(--line); display: grid; gap: 10px; animation: sheetUp .3s cubic-bezier(.2, .8, .3, 1) both; }
.modal-card h2 { font-size: 20px; font-weight: 800; text-align: center; margin-bottom: 4px; }
.big-opt { display: grid; grid-template-columns: 48px 1fr; gap: 2px 12px; align-items: center; text-align: left; padding: 12px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); cursor: pointer; min-height: 72px; }
.big-opt:hover { border-color: var(--accent); background: var(--glass-2); }
.big-opt .bo-ic { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; background: var(--accent-soft); }
.big-opt b { font-size: 16px; }
.big-opt small { color: var(--muted); font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 90; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: min(92vw, 460px); padding: 12px 16px; border-radius: 16px; background: var(--text); color: var(--bg1); font-weight: 700; font-size: 14px; box-shadow: var(--shadow); transition: opacity .25s, transform .25s; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ===== Анимации / Animations ===== */
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes blink { 0%, 60%, 100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-4px); } }
@keyframes ring { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px var(--accent-soft); } 50% { box-shadow: 0 0 0 8px transparent; } }
@keyframes scan { from { top: -36%; } to { top: 100%; } }
@keyframes flash { 0% { box-shadow: 0 0 0 0 var(--accent); } 40% { box-shadow: 0 0 0 4px var(--accent-soft); } 100% { box-shadow: var(--shadow-sm); } }

/* ===== Планшет и десктоп / Tablet and desktop ===== */
@media (min-width: 600px) {
  .trust small { display: block; }
  .trust li { align-items: flex-start; text-align: left; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pcard-wrap { flex-basis: 190px; }
  .cab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cab-grid .span2 { grid-column: span 2; }
  .modal { align-items: center; }
  .modal-card { border-radius: 26px; }
}

@media (min-width: 1024px) {
  .top { padding: 10px 20px; gap: 12px; }
  .logo { margin-right: 4px; }
  .top .topnav { display: flex; gap: 4px; margin: 0 auto; }
  .topnav a { position: relative; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 12px; border-radius: 14px; color: var(--muted); text-decoration: none; font-weight: 700; font-size: 14.5px; }
  .topnav a svg { width: 19px; height: 19px; display: none; }
  .topnav a:hover { color: var(--text); background: var(--glass); }
  .topnav a.on { color: var(--text); background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--line); }
  .topnav a.on svg { color: var(--accent-text); }
  .topnav .dot-badge { position: static; margin-left: 2px; }
  .top .sell-top { display: inline-flex; }
  .tabbar { display: none; }
  .toast { bottom: 28px; }

  .main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .82fr); gap: 18px; padding: 0 20px 20px; }
  .main.wide { grid-template-columns: minmax(0, 1fr); }
  .main.wide .detail { display: none; }
  .view { grid-column: 1; grid-row: 1; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); overflow: hidden; backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
  .main.wide .view { background: transparent; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .detail { grid-column: 2; grid-row: 1; position: relative; inset: auto; z-index: auto; transform: none; visibility: visible; transition: none; border-radius: 26px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); overflow: hidden; }
  .d-back { display: none; }
  .d-close { display: inline-grid; }
  .d-head { padding: 12px 14px 12px 20px; }
  .d-body { padding: 18px 20px 24px; }
  .d-foot { display: flex; flex-wrap: wrap; padding: 12px 20px; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .d-foot > .btn { flex: 1 1 260px; white-space: nowrap; }
  .composer { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 10px 14px 14px; }
  .chat-head { padding: 10px 14px 10px 18px; }
  .hero { padding: 48px 32px 40px; }
  .feed { padding: 20px 22px 26px; }

  .m-list { flex: 0 0 300px; border-right: 1px solid var(--line); }
  .has-chat .m-list { display: block; }
  .m-chat { display: flex; }
  .m-back { display: none; }
  .m-hint, .m-compose { background: transparent; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pad { padding: 20px 22px 28px; }
  .main.wide .pad { padding: 8px 4px 28px; }
  .cab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cab-grid .span2 { grid-column: span 2; }
  .cab-grid .span3 { grid-column: span 3; }
}
@media (min-width: 1024px) and (max-width: 1180px) {
  .topnav a { padding: 0 9px; font-size: 14px; }
  .sell-top .lbl { display: none; }
}
@media (min-width: 1240px) {
  .topnav a svg { display: inline; }
}

/* Узкие телефоны / Narrow phones */
@media (max-width: 380px) {
  .fields > div { grid-template-columns: 96px 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .scan { grid-template-columns: 92px 1fr; }
  .trust b { font-size: 12.5px; }
  .hero h1 { font-size: 34px; }
}

/* Уважение к «меньше движения» / Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .mic::before, .mic::after, .scan-line { display: none !important; }
}
