/* BAZA PHUKET. 19.11 Даниил: оформление по макету (тёмно-синий, оранжевый акцент, мягкие скругления, значки в строках,
   на ПК — фото слева, сведения справа); порядок строк — как в карточке бота. Только тёмная тема. */
:root {
  --bg: #0d1724; --bg2: #101d2c; --card: #152334; --card2: #1a2a3d; --line: #26384d; --ink: #f2f5f9; --muted: #93a3b6;
  --acc: #ff8a1f; --acc2: #f26b0f; --acc-soft: rgba(255, 138, 31, .12);
  --gold: var(--acc); --gold-hi: #ffb347;
  --r: 14px; --r2: 10px; --pad: 16px; --kb: 0px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased;
             background: radial-gradient(120% 80% at 70% 0%, #14263b 0%, var(--bg) 60%) fixed, var(--bg); }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
a { color: var(--acc); text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--muted); }
.doubt { font-style: italic; }

/* логотип: оранжевый квадрат + BAZA PHUKET */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: .02em; color: var(--ink);
        white-space: nowrap; }
.logo i { width: 26px; height: 26px; border-radius: 4px; background: linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%); flex: none; }
.logo-slot.big .logo { font-size: 30px; gap: 14px; }
.logo-slot.big .logo i { width: 42px; height: 42px; border-radius: 6px; }

#app { position: fixed; inset: 0; bottom: var(--kb); display: flex; flex-direction: column; max-width: 640px; margin: 0 auto; }

/* Шапка */
#top { display: flex; align-items: center; justify-content: space-between; gap: 8px;
       padding: calc(env(safe-area-inset-top) + 8px) var(--pad) 8px; min-height: 54px;
       background: rgba(13, 23, 36, .86); border-bottom: 1px solid var(--line);
       -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#top .logo-slot { opacity: 1; }
body.has-cards #top .logo-slot { opacity: 1; }

.ghost { color: var(--muted); font-size: 13px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; }

/* Лента */
#feed { flex: 1; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; -webkit-overflow-scrolling: touch; }
#list { margin-top: auto; display: flex; flex-direction: column; gap: 12px; padding: 12px; }
#empty { margin: auto 0; text-align: center; color: var(--muted); padding: 24px var(--pad); }
#empty p { margin: 18px 0 0; font-size: 15px; }
#empty p span { font-size: 13px; }
body.has-cards #empty { display: none; }

/* фото */
.ph, .hero { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--card2); overflow: hidden; }
.ph img, .hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.ph img.ok, .hero img.ok { opacity: 1; }
.tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
       background: var(--acc); color: #1a0d00; padding: 3px 8px; border-radius: 6px; margin-bottom: 6px; }

/* Мини-карточка в ленте */
.mini { position: relative; display: block; width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
        overflow: hidden; will-change: transform; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.mini .ph { aspect-ratio: 2 / 1; }
.mini .del { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; display: grid; place-items: center; z-index: 2;
             color: #fff; background: rgba(8, 14, 22, .55); border-radius: 50%; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.mini .del svg { width: 15px; height: 15px; }
.mini.nophoto .del { color: var(--muted); background: none; }
.mini.nophoto .ttl { padding-right: 40px; }
.mini.skel .ln { color: transparent; }
.mini .hl { padding: 12px 14px 14px; }

/* 19.11 Даниил: на главной — одна кнопка; поиск по названию и параметры — в выдвижной панели */
#dock { padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); }
#open { display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 18px; background: var(--card);
        border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.3); }
#open span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#open svg:last-child { color: var(--acc); }
#fbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; font-size: 14px; }
#fbar span { flex: 1; font-weight: 700; }
#list.res { margin-top: 0; }
#list .none { text-align: center; color: var(--muted); padding: 40px 16px; margin: 0; }
#list.res .del { display: none; }

#shade { position: fixed; inset: 0; z-index: 14; background: rgba(4, 8, 14, .55); opacity: 0; transition: opacity .25s; }
#shade.on { opacity: 1; }
#sheet, .sheet { position: fixed; left: 0; right: 0; bottom: var(--kb); z-index: 15; max-width: 640px; margin: 0 auto;
         max-height: calc(92dvh - var(--kb)); display: flex; flex-direction: column; background: var(--card);
         border: 1px solid var(--line); border-bottom: 0; border-radius: 20px 20px 0 0; box-shadow: 0 -20px 50px rgba(0,0,0,.45);
         transform: translateY(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden; }
#sheet.open, .sheet.open { transform: none; visibility: visible; }
.grip { display: grid; place-items: center; height: 26px; flex: none; }
.grip i { width: 42px; height: 5px; border-radius: 3px; background: var(--line); }
#bar { padding: 0 14px 10px; flex: none; }
.field { display: flex; align-items: center; gap: 10px; padding: 0 4px 0 16px; height: 50px; background: var(--bg2);
         border: 1px solid var(--line); border-radius: 999px; }
.field:focus-within { border-color: var(--acc); }
.field svg { color: var(--muted); flex: none; }
#q { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 17px var(--font); height: 100%;
     -webkit-appearance: none; appearance: none; }
#q::placeholder { color: var(--muted); }
#q::-webkit-search-cancel-button { display: none; }
.icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--muted); flex: none; }
#sugg { list-style: none; margin: 8px 0 0; padding: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r);
        max-height: 40dvh; overflow-y: auto; }
#sugg li { padding: 9px 16px; min-height: 52px; display: flex; flex-direction: column; justify-content: center;
           border-bottom: 1px solid var(--line); cursor: pointer; }
#sugg li:last-child { border-bottom: 0; }
#sugg li[aria-selected="true"], #sugg li:active { background: var(--card2); }
#sugg li b { font-size: 16px; font-weight: 700; }
#sugg li span { font-size: 12px; color: var(--muted); }
#sugg li.none { color: var(--muted); cursor: default; }
#filters { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 2px 14px 8px; }
.fg { padding: 14px 0 10px; border-bottom: 1px solid rgba(38, 56, 77, .6); }
.fg:last-child { border-bottom: 0; }
.fg h4 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; font-size: 13px;
         font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fg h4 .val { font-size: 15px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--muted); }
.fg h4 .val.on { color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 14.5px;
        color: #c9d4df; display: inline-flex; align-items: center; gap: 6px; transition: background .15s, border-color .15s, color .15s; }
.chip small { color: var(--muted); font-size: 12px; }
.chip[aria-pressed="true"] { background: var(--acc-soft); border-color: rgba(255, 138, 31, .7); color: #ffd2a8; }
.chip[aria-pressed="true"] small { color: var(--acc); }
/* сегменты (тип, порядок) — одна полоса */
.chips.seg { flex-wrap: nowrap; gap: 0; border: 1px solid var(--line); border-radius: 12px; padding: 3px; background: var(--bg2); }
.chips.seg .chip { flex: 1; justify-content: center; border: 0; border-radius: 9px; min-height: 36px; padding: 0 8px; }
.chips.seg .chip[aria-pressed="true"] { background: var(--card2); color: var(--acc); box-shadow: inset 0 0 0 1px rgba(255, 138, 31, .55); }
/* ползунки */
.rng { position: relative; height: 30px; margin: 0 11px; }
.trk { position: absolute; left: 0; right: 0; top: 13px; height: 4px; border-radius: 2px; background: var(--line); }
.trk i { position: absolute; top: 0; bottom: 0; left: 0; right: 0; border-radius: 2px; background: linear-gradient(90deg, var(--acc2), var(--acc)); }
.rng input { position: absolute; left: -11px; width: calc(100% + 22px); top: 0; height: 30px; margin: 0; background: none;
             -webkit-appearance: none; appearance: none; pointer-events: none; }
.rng input::-webkit-slider-runnable-track { height: 30px; background: none; }
.rng input::-moz-range-track { height: 30px; background: none; }
.rng input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; margin-top: 3px; border-radius: 50%;
             background: #fff; border: 3px solid var(--acc); box-shadow: 0 2px 8px rgba(0, 0, 0, .45); cursor: grab; }
.rng input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--acc);
             box-shadow: 0 2px 8px rgba(0, 0, 0, .45); cursor: grab; }
.rng input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px var(--acc-soft); }
.rng:not(.on) .trk i { background: #4b5f76; }
.rng:not(.on) input::-webkit-slider-thumb { border-color: #7f93a8; }
.rng:not(.on) input::-moz-range-thumb { border-color: #7f93a8; }
.ends { display: flex; justify-content: space-between; margin-top: 4px; font-size: 12px; color: var(--muted); }
/* переключатель */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 15.5px; cursor: pointer; }
.sw input { position: absolute; opacity: 0; pointer-events: none; }
.sw i { flex: none; position: relative; width: 50px; height: 30px; border-radius: 15px; background: var(--line); transition: background .2s; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff;
               box-shadow: 0 2px 6px rgba(0,0,0,.4); transition: transform .2s; }
.sw input:checked + i { background: var(--acc); }
.sw input:checked + i::after { transform: translateX(20px); }
#fdev { width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2);
        color: var(--ink); font: 15px var(--font); }
.sfoot { flex: none; display: flex; gap: 10px; padding: 10px 14px calc(env(safe-area-inset-bottom) + 12px); border-top: 1px solid var(--line); }
.sfoot .btn { flex: 1; min-height: 50px; }
.sfoot #sreset { flex: 0 0 auto; padding: 0 18px; }
.btn-o { border: 1px solid var(--line); color: var(--ink); background: var(--bg2); }
body.kb-open .sfoot { display: none; }

/* 19.11 Даниил: меню сценариев (справа сверху) и блоки ответов в ленте */
#top .tr { display: flex; align-items: center; gap: 6px; }
#mbtn { color: var(--ink); }
#mbtn svg { width: 24px; height: 24px; }
#mbody { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 14px calc(env(safe-area-inset-bottom) + 16px); }
.mh { padding: 2px 4px 12px; }
.ml { display: flex; flex-direction: column; gap: 8px; }
.mi { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.mi:active { background: var(--card2); }
.mi .ic { font-size: 20px; width: 26px; }
.mi > span:not(.ic) { flex: 1; min-width: 0; text-align: left; }
.mi b { display: block; font-size: 16.5px; }
.mi small { display: block; color: var(--muted); font-size: 13px; }
.mi > svg { color: var(--muted); flex: none; }
.mt { display: flex; align-items: center; gap: 4px; margin: 0 0 4px -10px; }
.mt b { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.mhint { margin: 0 0 6px; color: #c9d4df; font-size: 14.5px; line-height: 1.45; }
.mform { display: flex; flex-direction: column; }
.mform .btn { margin-top: 14px; }
.mform input:not([type]), .mform input[inputmode], .mform .acq, .mform select, .mform textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2);
  color: var(--ink); font: 15.5px var(--font); outline: 0; -webkit-appearance: none; appearance: none; }
.mform textarea { resize: vertical; line-height: 1.4; }
.mform input:focus, .mform select:focus, .mform textarea:focus { border-color: var(--acc); }
.mform input::placeholder, .mform textarea::placeholder { color: var(--muted); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.fg .two:first-of-type { margin-top: 0; }
.fg .sw + .two { margin-top: 12px; }
.chips.seg { overflow-x: auto; scrollbar-width: none; }
.ac { position: relative; margin-bottom: 8px; }
.acl { list-style: none; margin: 4px 0 0; padding: 0; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.acl li { padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; }
.acl li:first-child { border-top: 0; }
.acl li:active { background: var(--card2); }
.acl li b { font-size: 15px; }
.acl li span { font-size: 12px; color: var(--muted); }
.acl li.none { color: var(--muted); cursor: default; }
.acq[data-s] { border-color: rgba(255, 138, 31, .6); }
.addp { color: var(--acc); font-weight: 600; min-height: 36px; }

.blk { display: flex; flex-direction: column; gap: 10px; padding: 12px; background: rgba(21, 35, 52, .55); border: 1px solid var(--line);
       border-radius: calc(var(--r) + 4px); }
.bh { display: flex; align-items: flex-start; gap: 10px; }
.bh .ic { font-size: 20px; width: 26px; margin-top: 2px; }
.bh > span:not(.ic) { flex: 1; min-width: 0; }
.bh b { display: block; font-size: 17px; }
.bh small { display: block; color: var(--muted); font-size: 13.5px; }
.bh .bx { width: 36px; height: 36px; margin: -6px -6px 0 0; }
.bh .bx svg { width: 16px; height: 16px; }
.bm, .bw { margin: 0; font-size: 14px; color: #c9d4df; }
.bw { color: var(--muted); }
.blk.wait .bw::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border-radius: 50%;
                       border: 2px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bc { display: flex; flex-direction: column; gap: 12px; }
.blk .del { display: none; }
.bmore { min-height: 48px; font-size: 15.5px; }
.why { display: flex; gap: 10px; align-items: baseline; margin: -4px 14px 14px; padding: 10px 12px; border-radius: var(--r2);
       background: var(--acc-soft); font-size: 14.5px; line-height: 1.4; color: #e9eef4; }
.cmp { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.cmp table { border-collapse: collapse; min-width: 100%; font-size: 14px; }
.cmp th, .cmp td { padding: 8px 10px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.cmp thead th { border-top: 0; font-size: 13.5px; font-weight: 800; color: var(--ink); min-width: 120px; }
.cmp td:first-child { color: var(--muted); white-space: nowrap; position: sticky; left: 0; background: var(--card); }
.favb { align-self: flex-start; min-height: 42px; padding: 0 16px; font-size: 15px; gap: 8px; }
.favb.on { border-color: rgba(255, 138, 31, .7); color: #ffd2a8; background: var(--acc-soft); }
.favb.on .ic::before { content: "★"; }
.favb.on .ic { font-size: 0; }
.favb.on .ic::before { font-size: 17px; color: var(--acc); }

/* Строки карточки (как в боте): значок в своей колонке */
.hl { font-size: 16px; line-height: 1.4; }
.ttl { margin: 0 0 6px; font-size: 19px; font-weight: 800; letter-spacing: .005em; line-height: 1.15; text-transform: uppercase; }
.ln { display: flex; gap: 10px; align-items: baseline; padding: 2px 0; }
.ic { flex: none; width: 22px; text-align: center; font-size: 16px; line-height: 1; transform: translateY(1px); }
.ln.pr b { font-weight: 800; }
.ln a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* Полная карточка */
#page { position: fixed; inset: 0; z-index: 10; overflow-y: auto; overscroll-behavior: contain;
        background: radial-gradient(120% 70% at 70% 0%, #14263b 0%, var(--bg) 60%) fixed, var(--bg); }
#page .wrap { max-width: 1240px; margin: 0 auto; min-height: 100%; padding: 0 0 calc(env(safe-area-inset-bottom) + 28px); }
.pbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; min-height: 56px;
        padding: env(safe-area-inset-top) var(--pad) 0 6px; background: rgba(13, 23, 36, .88); border-bottom: 1px solid var(--line);
        -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.back { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ink); }
.back svg { width: 22px; height: 22px; stroke-width: 2.2; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 14px var(--pad) 4px; font-size: 13.5px; color: var(--muted); }
.crumbs > * + *::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs button { color: var(--muted); }
.crumbs b { color: var(--ink); font-weight: 600; }
.pg { display: grid; gap: 16px; padding: 10px var(--pad) 0; }
.media { min-width: 0; }
.hero { aspect-ratio: 4 / 3; border-radius: var(--r); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); }
.hero .cnt { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; align-items: center; gap: 6px;
             background: rgba(8, 14, 22, .6); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 10px; border-radius: var(--r2);
             -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero .cnt svg { width: 16px; height: 16px; }
.info { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
#page .ttl { font-size: 26px; margin-bottom: 10px; }
#page .hl { font-size: 17px; }

/* панели: цены, ссылки, о проекте */
.q { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r);
     padding: 12px 16px 14px; font-size: 16px; line-height: 1.4; }
.q.pr { border-left: 3px solid var(--acc); }
.qh { display: flex; align-items: center; gap: 10px; width: 100%; font-size: 18px; margin-bottom: 6px; }
.qh b { font-weight: 800; }
.qh .dl { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; text-decoration: underline;
          text-underline-offset: 3px; }
.qh .dl svg { width: 19px; height: 19px; }
.q .ln { padding: 3px 0; }
.sq { flex: none; width: 22px; display: grid; place-items: center; }
.sq::before { content: ""; width: 11px; height: 11px; border-radius: 2px; background: #c9d2dd; }
.q i { font-style: italic; }
.q .due b { font-weight: 800; }
.lk { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--card); border: 1px solid var(--line);
      border-radius: var(--r); padding: 12px 16px; font-size: 16px; }
.lk a { display: inline-flex; align-items: center; gap: 6px; text-decoration: underline; text-underline-offset: 3px; }
.lk a svg { width: 18px; height: 18px; color: var(--muted); }
.lk .dot { color: var(--muted); }
.ab .qh { margin-bottom: 4px; text-transform: uppercase; letter-spacing: .02em; }
.ab .qh .chev { margin-left: auto; color: var(--muted); transition: transform .2s; }
.ab .qh.open .chev { transform: rotate(180deg); }
.about p { margin: 0 0 10px; white-space: pre-line; line-height: 1.5; font-size: 15.5px; color: #dfe6ee; }
.about p:last-child { margin-bottom: 0; }
.about.cut p:nth-of-type(n+2) { display: none; }
.about.cut p:first-child { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* кнопки и контакты */
.acts { display: flex; flex-direction: column; gap: 10px; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; border-radius: var(--r2);
       font-size: 17px; font-weight: 700; text-align: center; }
.btn svg { width: 22px; height: 22px; }
.btn-a { background: linear-gradient(180deg, var(--acc) 0%, var(--acc2) 100%); color: #fff; box-shadow: 0 8px 22px rgba(242, 107, 15, .28); }
.btn-a:active { filter: brightness(.95); }
.cl { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; }
.cr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.cr:first-child { border-top: 0; }
.cn { min-width: 0; }
.cn b { display: block; font-size: 15.5px; font-weight: 700; }
.cn span { font-size: 13.5px; color: var(--muted); }
.ca { display: flex; gap: 8px; flex: none; }
.ca a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 74px; height: 54px;
        border: 1px solid var(--line); border-radius: var(--r2); background: var(--card2); color: var(--ink); font-size: 11.5px; font-weight: 600; }
.ca a svg { color: var(--acc); }

/* галерея */
.gal { padding: 26px var(--pad) 0; }
.gh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.gh h3 { margin: 0; font-size: 22px; font-weight: 800; }
.gh a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.gh a svg { width: 18px; height: 18px; }
.gs { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
      scrollbar-width: none; padding-bottom: 4px; }
.gs::-webkit-scrollbar { display: none; }
.th { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; background: var(--card2); scroll-snap-align: start; }
.th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.th img.ok { opacity: 1; }

/* 19.11 Даниил (макет для телефона): без крошек, фото шире, название крупно одной-двумя строками */
@media (max-width: 899px) { .crumbs { display: none; } .pg { padding-top: 12px; } .hero { aspect-ratio: 16 / 9; } #page .ttl { font-size: 24px; letter-spacing: 0; } }
@media (min-width: 900px) {
  .pg { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 14px; }
  .hero { aspect-ratio: 1 / 1; }
  #page .ttl { font-size: 34px; }
  .gs { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; }
  .gal .th:nth-child(n+7) { display: none; }
}

/* Просмотр фото */
#viewer { position: fixed; inset: 0; z-index: 20; background: #000; display: flex; overflow-x: auto;
          scroll-snap-type: x mandatory; scrollbar-width: none; }
#viewer::-webkit-scrollbar { display: none; }
#viewer figure { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: grid; place-items: center; }
#viewer img { max-width: 100%; max-height: 100%; object-fit: contain; }
#viewer .close, #viewer .vc { position: fixed; top: env(safe-area-inset-top); color: #fff; z-index: 2; }
#viewer .close { right: 8px; top: calc(env(safe-area-inset-top) + 8px); width: 44px; height: 44px; display: grid; place-items: center;
                 background: rgba(0,0,0,.5); border-radius: 50%; }
#viewer .vc { left: 16px; line-height: 60px; font-size: 13px; opacity: .8; }

#toast { position: fixed; left: 12px; right: 12px; bottom: calc(var(--kb) + 76px + env(safe-area-inset-bottom)); z-index: 30;
         max-width: 616px; margin: 0 auto; background: var(--card2); border: 1px solid var(--line); border-radius: var(--r2);
         color: var(--ink); padding: 12px 16px; font-size: 14px; display: flex; justify-content: space-between; align-items: center;
         box-shadow: 0 10px 30px rgba(0,0,0,.4); }
#toast button { color: var(--acc); font-weight: 700; }

/* Раскрытие: карточка растёт в страницу (View Transitions), иначе — мягкое появление */
::view-transition-group(hero) { animation-duration: .3s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
#page.fade { animation: pin .2s ease-out; }
@keyframes pin { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 19.11 Даниил: лента — лидеры, подборки с плиткой параметров; плашка «Новинка» на фото; ссылка для клиента */
#list { margin-top: 0; }
.lead, .blk { display: flex; flex-direction: column; gap: 12px; }
.blk { padding: 0; background: none; border: 0; }
.lead + .blk, .lead + .mini, .blk + .blk, .mini + .blk, .blk + .mini { margin-top: 10px; }
.tile2 { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; background: var(--card2); border: 1px solid var(--line);
         border-radius: var(--r); box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.tile2 .tl { display: flex; align-items: flex-start; gap: 10px; }
.tile2 .tl .ic { font-size: 20px; width: 26px; margin-top: 1px; }
.tile2 .tl > span:not(.ic) { flex: 1; min-width: 0; }
.tile2 b { display: block; font-size: 16.5px; }
.tile2 small { display: block; color: #c9d4df; font-size: 13.5px; line-height: 1.35; margin-top: 2px; }
.tile2 small.cnt2 { color: var(--muted); font-size: 12.5px; }
.tile2.saved small.cnt2 { color: var(--acc); }
.tile2.err small.cnt2 { color: #ffb37a; }
.tile2 .bx { width: 34px; height: 34px; margin: -6px -8px 0 0; }
.tile2 .bx svg { width: 15px; height: 15px; }
.ta { display: flex; gap: 8px; }
.tb { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 10px;
      border: 1px solid var(--line); background: var(--bg2); color: var(--ink); font-size: 14.5px; font-weight: 650; }
.tb svg { width: 17px; height: 17px; color: var(--acc); }
.tsave { flex: 1; background: linear-gradient(180deg, var(--acc) 0%, var(--acc2) 100%); border: 0; color: #fff; }
.tcopy, .tshare { flex: 1; }
.blk.wait .cnt2::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; vertical-align: -2px; border-radius: 50%;
                         border: 2px solid var(--line); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.blk .mini .del, .mini .del { display: grid; }
.blk .mini { touch-action: pan-y; }
.why { position: relative; padding-right: 34px; }
.why .wx { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.why .wx svg { width: 14px; height: 14px; }
.tag.ontop { position: absolute; left: 12px; top: 12px; z-index: 2; margin: 0; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.hero .tag.ontop { left: 14px; top: 14px; font-size: 12px; padding: 4px 9px; }
#list > .none { text-align: center; color: var(--muted); padding: 40px 16px; margin: 0; }
/* история подборок */
.hi { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r); }
.hl2 { flex: 1; min-width: 0; color: var(--ink); }
.hl2 b { display: block; font-size: 15.5px; }
.hl2 small { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ha { display: flex; gap: 6px; flex: none; }
.ha .tb { width: 38px; padding: 0; }
.hdel svg { color: var(--muted) !important; }
/* клиент по ссылке */
body.client #mbtn, body.client .favb, body.client .contacts { display: none !important; }

/* 19.11 Даниил: «почему» в подборке редактируется */
.why .wt { flex: 1; min-width: 0; outline: 0; border-radius: 6px; cursor: text; }
.why .wt[contenteditable]:focus { box-shadow: 0 0 0 2px rgba(255, 138, 31, .45); background: rgba(0,0,0,.12); }
.why .wt[contenteditable]:empty::before { content: attr(data-ph); color: var(--muted); }
.why:has(.wt[contenteditable]:empty) { background: transparent; border: 1px dashed var(--line); }
.why .wt[contenteditable]::after { content: "  ✎"; color: var(--muted); font-size: 12px; }
.why .wt[contenteditable]:focus::after { content: none; }

/* 19.11 Даниил: строка поиска по названию внизу главной */
#app > #bar { position: relative; flex: none; padding: 8px 12px calc(env(safe-area-inset-bottom) + 8px); background: var(--bg); border-top: 1px solid var(--line); }
#app > #bar .field { background: var(--card); }
#app > #bar #sugg { position: absolute; left: 12px; right: 12px; bottom: 100%; margin: 0 0 6px; box-shadow: 0 -12px 30px rgba(0,0,0,.35); }
body.client #app > #bar { display: none; }

/* 19.11 Даниил: вход через Telegram */
.me { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--acc-soft); border: 1px solid rgba(255,138,31,.45); border-radius: var(--r); }
.me .ic { font-size: 20px; width: 26px; }
.me > span:not(.ic) { flex: 1; min-width: 0; }
.me b { display: block; font-size: 16px; }
.me small { display: block; color: var(--muted); font-size: 12.5px; }
.mi.login { border-color: rgba(255,138,31,.55); }
.show-c.need { background: var(--bg2); color: var(--acc); border: 1px solid rgba(255,138,31,.55); box-shadow: none; font-size: 15px; }

.com { display: flex; gap: 10px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.com b { color: var(--acc); }

/* 19.11 Даниил: меню плитками разного размера */
.mg { display: flex; flex-direction: column; gap: 10px; }
.mg h5 { margin: 8px 2px -2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt2 { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border-radius: var(--r);
       background: var(--bg2); border: 1px solid var(--line); text-align: left; overflow: hidden; transition: transform .12s; }
.mt2:active { transform: scale(.98); }
.mt2 b { font-size: 16px; }
.mt2 small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.mi2 { font-size: 24px; line-height: 1; margin-bottom: 4px; }
.mt2.hero { padding: 18px 18px 16px; min-height: 150px; border: 0; color: #fff;
            background: radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 45%),
                        linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%);
            box-shadow: 0 12px 30px rgba(242,107,15,.30); }
.mt2.hero .mi2 { font-size: 34px; }
.mt2.hero b { font-size: 22px; }
.mt2.hero small { color: rgba(255,255,255,.88); font-size: 14px; max-width: 80%; }
.mt2.hero .go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14.5px; }
.mt2.hero .go svg { width: 18px; height: 18px; }
.mt2.hero::after { content: "🎯"; position: absolute; right: -12px; bottom: -18px; font-size: 96px; opacity: .16; transform: rotate(-12deg); }
.mt2.tall { min-height: 128px; background: linear-gradient(180deg, var(--card2), var(--bg2)); }
.mt2.tall .mi2 { font-size: 28px; }
.mt2.sm { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 0; padding: 12px 14px; }
.mt2.sm .mi2 { font-size: 20px; margin: 0; }
.mt2.sm small { flex-basis: 100%; }
.bd2 { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--acc); color: #1a0d00;
       font: 800 12px/22px var(--font); text-align: center; font-style: normal; }
.mlog { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r); text-align: left; margin-top: 6px;
        background: linear-gradient(135deg, rgba(42,171,238,.18), rgba(42,171,238,.06)); border: 1px solid rgba(42,171,238,.45); }
.mlog .tgic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #2aabee; font-size: 19px; }
.mlog > span:nth-child(2) { flex: 1; min-width: 0; }
.mlog b { display: block; font-size: 16px; }
.mlog small { display: block; color: #b9c8d6; font-size: 12.5px; line-height: 1.3; }
.mlog > svg { color: #7cc8f2; flex: none; }
.me { margin-top: 6px; }
.mfb { align-self: center; margin-top: 4px; padding: 10px 6px; color: var(--muted); font-size: 14px; }
.mfb small { font-size: 12.5px; }

.mt2.sm { flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 4px; min-height: 112px; padding: 14px; }
.mt2.sm .mi2 { font-size: 22px; margin-bottom: 4px; }
.mt2.sm small { flex-basis: auto; }
.bd2 { position: absolute; top: 12px; right: 12px; margin: 0; }

/* 19.11 Даниил: компьютер — формы открыто слева, лента карточек сеткой во весь экран */
@media (min-width: 1000px) {
  #app { max-width: 1680px; display: grid; grid-template-columns: 400px minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr);
         grid-template-areas: "top top" "side bar" "side feed"; column-gap: 24px; padding: 0 24px; }
  #top { grid-area: top; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  #side { grid-area: side; overflow-y: auto; overscroll-behavior: contain; padding: 18px 2px 28px; display: flex; flex-direction: column; gap: 14px;
          scrollbar-width: thin; }
  #app > #bar { grid-area: bar; padding: 18px 0 6px; border-top: 0; background: none; }
  #app > #bar #sugg { left: 0; right: 0; top: 100%; bottom: auto; margin: 6px 0 0; z-index: 5; }
  #feed { grid-area: feed; }
  #list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; padding: 12px 0 32px; align-items: start; }
  #list > .lead, #list > .blk, #list > .none { grid-column: 1 / -1; }
  .lead .bc, .blk .bc { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: start; }
  .lead + .blk, .lead + .mini, .blk + .blk, .mini + .blk, .blk + .mini { margin-top: 0; }
  .tile2 { flex-direction: row; align-items: center; justify-content: space-between; }
  .tile2 .tl { flex: 1; }
  .tile2 .ta { flex: none; }
  .tile2 .ta .tb { min-width: 150px; }
  .mini { transition: transform .15s, box-shadow .15s; }
  .mini:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,.35); }
  .blk .bmore { justify-self: start; max-width: 320px; }
  #mbtn { display: grid; }
  .sdx { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px 16px; }
  .sdx.sd-pick { border-color: rgba(255,138,31,.45); box-shadow: 0 12px 30px rgba(242,107,15,.12); }
  .sdh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 4px; }
  .sdh .ic { font-size: 22px; width: 28px; }
  .sdh b { display: block; font-size: 17px; }
  .sdh small { display: block; color: var(--muted); font-size: 13px; }
  .sdx .fg { padding: 10px 0 6px; }
  .sdx .mform .btn { margin-top: 10px; min-height: 46px; }
  #toast { left: auto; right: 24px; bottom: 24px; max-width: 420px; }
}

/* 19.11: шапка шторки — избранное справа; «Мои подборки» широкой строкой над «Подборкой» */
.mh { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mfav { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--bg2); border: 1px solid rgba(255,138,31,.5); font-size: 14.5px; font-weight: 650; color: var(--ink); }
.mfav .bd2 { position: static; margin-left: 2px; }
.mt2.wide { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 2px 12px; padding: 12px 14px; }
.mt2.wide .mi2 { font-size: 22px; margin: 0; }
.mt2.wide small { flex-basis: 100%; padding-left: 34px; }
.mt2.wide .bd2 { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); }

/* 19.11 Даниил: карта */
#top .tr { display: flex; align-items: center; gap: 2px; }
#mapbtn { color: var(--ink); }
#mapbtn svg { width: 23px; height: 23px; }
#mapv { position: fixed; inset: 0; z-index: 9; background: var(--bg); display: flex; flex-direction: column; }
.mbar { display: flex; align-items: center; gap: 6px; min-height: 54px; padding: env(safe-area-inset-top) 14px 0 4px; border-bottom: 1px solid var(--line);
        background: rgba(13,23,36,.92); position: relative; z-index: 2; }
.mbar .mclose { color: var(--ink); }
.mcnt { margin-left: auto; color: var(--muted); font-size: 13.5px; }
#map { flex: 1; min-height: 0; background: #0b1420; }
.leaflet-container { font: 13px var(--font); background: #0b1420; }
.leaflet-control-zoom a { background: var(--card) !important; color: var(--ink) !important; border-color: var(--line) !important; }
.leaflet-control-attribution { background: rgba(13,23,36,.7) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.mfilt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px calc(env(safe-area-inset-bottom) + 10px);
         background: rgba(13,23,36,.95); border-top: 1px solid var(--line); font-size: 13.5px; color: #c9d4df; position: relative; z-index: 2; }
.mfilt .sw { gap: 10px; font-size: 14.5px; color: var(--ink); margin-right: auto; }
.mfilt .sw i { width: 44px; height: 26px; }
.mfilt .sw i::after { width: 20px; height: 20px; }
.mfilt .sw input:checked + i::after { transform: translateX(18px); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #0d1724; box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.lg .dc { background: #ff8a1f; } .lg .dv { background: #38bdf8; } .lg .dd { background: #34d399; }
.mprev { position: absolute; left: 12px; right: 12px; bottom: calc(env(safe-area-inset-bottom) + 64px); z-index: 1000; max-width: 420px; margin: 0 auto;
         display: flex; gap: 12px; padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
         box-shadow: 0 16px 40px rgba(0,0,0,.5); }
.mpimg { flex: none; width: 108px; height: 108px; border-radius: 10px; overflow: hidden; position: relative; background: var(--card2); }
.mpimg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .25s; }
.mpimg img.ok { opacity: 1; }
.mpb { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; padding-right: 26px; }
.mpb b { font-size: 15.5px; line-height: 1.2; }
.mpb small { color: var(--muted); font-size: 12.5px; line-height: 1.3; }
.mpa { align-self: flex-start; font-size: 11px; font-weight: 700; color: #c9d4df; background: var(--card2); padding: 1px 7px; border-radius: 6px; }
.mpp { font-size: 14px; margin-top: 2px; }
.mpp b { font-size: 15px; }
.mpx { position: absolute; top: -6px; right: -6px; width: 32px; height: 32px; }
.mpx svg { width: 15px; height: 15px; }
.mpgo { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; color: var(--acc); font-weight: 700; font-size: 14.5px; padding-top: 4px; }
.mpgo svg { width: 17px; height: 17px; }
body.client #mapbtn { display: none; }
#map svg { width: auto; height: auto; max-width: none; stroke-linecap: butt; }
.lg .da { background: #7d8a99; }
.mfilt { justify-content: center; }

/* 19.11 Даниил: фильтры карты */
.mfilt { flex-direction: column; align-items: stretch; gap: 8px; }
.mch { display: flex; gap: 6px; }
.mc { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; padding: 0 6px; border-radius: 999px;
      border: 1px solid var(--line); background: var(--bg2); color: var(--muted); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s; }
.mc i { width: 10px; height: 10px; border-radius: 50%; opacity: .45; }
.mc[aria-pressed="true"] { color: var(--ink); background: var(--card2); border-color: rgba(255,255,255,.18); }
.mc[aria-pressed="true"] i { opacity: 1; box-shadow: 0 0 0 2px rgba(255,255,255,.12); }
.mc .dc { background: #ff8a1f; } .mc .dv { background: #38bdf8; } .mc .dd { background: #34d399; } .mc .da { background: #7d8a99; }
#mmax { height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg2); color: var(--ink); font: 14px var(--font); }
.mprev { bottom: calc(env(safe-area-inset-bottom) + 112px); }

/* 19.11 Даниил: кнопка бота в шапке */
#tgbtn { color: #2aabee; }
#tgbtn svg { width: 23px; height: 23px; }
body.client #tgbtn { display: none; }

/* 19.11 Даниил: кнопка скачивания прайса */
.dlbox { display: flex; flex-direction: column; gap: 8px; }
.dlp, .dlb { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); color: var(--ink); text-decoration: none; }
.dlp { background: linear-gradient(135deg, var(--acc) 0%, var(--acc2) 100%); color: #fff; box-shadow: 0 10px 26px rgba(242,107,15,.28); }
.dlp > svg:first-child, .dlb > svg:first-child { width: 30px; height: 30px; flex: none; }
.dlp > svg:last-child { width: 22px; height: 22px; margin-left: auto; flex: none; }
.dlp span, .dlb span { min-width: 0; }
.dlp b, .dlb b { display: block; font-size: 16.5px; }
.dlp small { display: block; font-size: 13px; color: rgba(255,255,255,.85); }
.dlb { background: var(--bg2); border: 1px solid var(--line); }
.dlb > svg:first-child { color: var(--acc); }
.dlb small { display: block; font-size: 13px; color: var(--muted); }
.dlp:active, .dlb:active { transform: scale(.99); }
.dlh { margin: 4px 2px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dlb > svg:first-child { width: 26px; height: 26px; }

/* 19.11 Даниил: «О проекте» разделами */
.about2 { display: flex; flex-direction: column; gap: 16px; margin-top: 6px; position: relative; }
.about2.cut .as:nth-child(n+3) { display: none; }
.about2.cut::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; pointer-events: none;
                     background: linear-gradient(180deg, rgba(26,42,61,0), var(--card)); }
.as h4 { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-size: 16.5px; font-weight: 800; line-height: 1.25; color: var(--ink); }
.as .ai { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--bg2); font-size: 16px; }
.as p { margin: 0 0 8px; padding-left: 40px; font-size: 15.5px; line-height: 1.55; color: #dbe3ec; }
.as p:last-child { margin-bottom: 0; }
.as p b { color: var(--ink); }
.as ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 40px; display: flex; flex-direction: column; gap: 7px; }
.as li { position: relative; padding-left: 18px; font-size: 15px; line-height: 1.45; color: #dbe3ec; }
.as li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 2px; border-radius: 1px; background: #ff9b57; }
.as li.pl::before { background: #34d399; height: 8px; width: 8px; border-radius: 50%; top: .45em; }
.as.cons { padding: 12px 14px; margin: 0 -4px; border-radius: 12px; background: rgba(255,138,31,.07); border: 1px solid rgba(255,138,31,.22); }
.as.cons p, .as.cons ul { padding-left: 0; }
.as.verdict { padding: 12px 14px; margin: 0 -4px; border-radius: 12px; background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.28); }
.as.verdict p { padding-left: 0; color: var(--ink); }
.more2 { align-self: flex-start; margin-top: 10px; color: var(--acc); font-weight: 700; font-size: 14.5px; min-height: 36px; }
.ab .qh { cursor: default; }
@media (max-width: 420px) { .as p, .as ul { padding-left: 0; } }

/* 19.11 Даниил: название и застройщик — на полупрозрачной плашке внизу фото */
.phc { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 2; padding: 9px 12px 10px; border-radius: 12px;
       background: rgba(8, 14, 22, .58); border: 1px solid rgba(255,255,255,.08);
       -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2); color: #fff; text-align: left; }
.phc .ttl { margin: 0; color: #fff; font-size: 18px; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
.phd { margin-top: 3px; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .phc { left: 12px; right: auto; max-width: calc(100% - 90px); bottom: 12px; padding: 11px 14px 12px; }
#page .hero .phc .ttl { font-size: 22px; margin: 0; }
.hero .phc .phd { font-size: 14px; }
.mini .ph + .del + .hl, .mini .hl { padding-top: 12px; }
@media (min-width: 900px) { #page .hero .phc .ttl { font-size: 28px; } }

/* 19.11 Даниил: звезда избранного — квадратная полупрозрачная, слева сверху на фото */
.favs { position: absolute; left: 10px; top: 10px; z-index: 3; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px;
        background: rgba(8, 14, 22, .45); border: 1px solid rgba(255,255,255,.14); color: #fff;
        -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .15s, color .15s, transform .12s; }
.favs svg { width: 20px; height: 20px; stroke-width: 1.8; }
.favs:active { transform: scale(.92); }
.favs.on { color: #ffb020; background: rgba(8, 14, 22, .6); border-color: rgba(255,176,32,.45); }
.favs.on svg { fill: currentColor; }
.ph .tag.ontop, .hero .tag.ontop { left: 56px; top: 17px; }
.media { position: relative; }
.media .favs { left: 14px; top: 14px; width: 44px; height: 44px; }
.media .favs svg { width: 23px; height: 23px; }
.hero .tag.ontop { left: 68px; top: 24px; }
body.client .favs { display: none; }
body.client .ph .tag.ontop, body.client .hero .tag.ontop { left: 12px; }

/* 19.11 Даниил: страница проекта — сроки ячейками, карта под фото, таблица цен */
.mlink { display: flex; justify-content: flex-end; margin-top: 8px; }
.mlink a { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-size: 14.5px; font-weight: 650; padding: 4px 2px; }
.mlink a .ic { width: auto; font-size: 15px; }
.mlink a svg { width: 16px; height: 16px; }
.duec { display: grid; grid-template-columns: 28px repeat(3, 1fr); align-items: center; gap: 0; padding: 10px 12px; border-radius: var(--r);
        background: var(--card); border: 1px solid var(--line); }
.duec.c1 { grid-template-columns: 28px 1fr; } .duec.c2 { grid-template-columns: 28px 1fr 1fr; }
.duec .ic { font-size: 18px; }
.duec > div { display: flex; flex-direction: column; padding: 0 10px; border-left: 1px solid var(--line); }
.duec > div:nth-child(2) { border-left: 0; padding-left: 4px; }
.duec small { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.duec b { font-size: 17px; font-weight: 700; color: var(--ink); }
.duec b b { font-weight: 800; }
.pq .qh { margin-bottom: 8px; }
.ptab { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.ptab th { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: right; padding: 0 0 6px 10px; }
.ptab th:first-child { text-align: left; padding-left: 0; }
.ptab td { padding: 9px 0 9px 10px; border-top: 1px solid rgba(255,255,255,.07); text-align: right; color: #dbe3ec; white-space: nowrap; }
.ptab td.tb1 { text-align: left; padding-left: 0; font-weight: 700; color: var(--ink); }
.ptab td.ar { color: var(--muted); font-size: 14.5px; }
.ptab td.us b { color: var(--ink); font-weight: 800; }
.ptab i { color: var(--muted); }
.pq .plan { margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.07); font-size: 16px; }
.pq .plan b { font-weight: 700; }
@media (max-width: 380px) { .ptab { font-size: 15.5px; } .duec b { font-size: 15.5px; } }
#top .logo, .pbar .logo, .mbar .logo, .mh .logo { cursor: pointer; }

/* 19.11 Даниил: плашка — по ширине текста; кнопки карты и меню на всех экранах; сроки, юниты, продано — одной панелью */
.phc { right: auto; max-width: calc(100% - 20px); }
.hero .phc { max-width: calc(100% - 90px); }
.pbtn { margin-left: auto; display: flex; gap: 2px; }
.pbtn .icon, .mbar .mmenu { color: var(--ink); }
.pbtn svg, .mbar .mmenu svg { width: 23px; height: 23px; }
.mbar .mcnt { margin-left: auto; margin-right: 4px; }
.duec { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 10px 0; padding: 12px 6px; }
.duec > div { padding: 0 10px; border-left: 1px solid var(--line); }
.duec > div:first-child { border-left: 0; }
.duec > div:nth-child(2) { border-left: 1px solid var(--line); padding-left: 10px; }
.duec > div:first-child { padding-left: 10px; }

/* 19.11 Даниил: район и до моря — под фото справа, ниже ссылка на карту */
.mlink { flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.mloc { display: flex; align-items: baseline; gap: 6px; font-size: 15.5px; color: var(--ink); }
.mloc .ic { width: auto; font-size: 14px; }
.mlink a { padding: 2px; font-size: 14px; }

/* 19.11 Даниил: район · море · карта — одной строкой, слева */
.mlink { flex-direction: row; flex-wrap: wrap; align-items: baseline; justify-content: flex-start; gap: 4px 12px; text-align: left; margin-top: 10px; }
.mloc { font-size: 15px; }
.mlink a { padding: 0; }
.mlink { display: block; line-height: 1.5; }
.mloc { display: inline; }
.mloc .ic { display: inline; margin-right: 4px; }
.msep { color: var(--muted); }
.mlink a { display: inline-flex; vertical-align: baseline; white-space: nowrap; }
.mlink { font-size: 14px; } .mloc { font-size: 14px; } .mlink a { font-size: 14px; }
/* 19.11 Даниил: строка района крупнее */
.mlink, .mloc, .mlink a { font-size: 16.5px; }
.mloc .ic { font-size: 16px; }
.mlink a svg { width: 17px; height: 17px; }

/* 19.11 Даниил: плашка чище и светлее (без размытия), название мельче; район крупнее; число фото — наверху справа */
.phc { background: rgba(40, 58, 80, .74); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.phc .ttl { font-size: 16px; text-shadow: none; }
.phd { font-size: 12.5px; color: rgba(255,255,255,.82); }
#page .hero .phc .ttl { font-size: 19px; }
.hero .phc .phd { font-size: 13.5px; }
@media (min-width: 900px) { #page .hero .phc .ttl { font-size: 24px; } }
.mlink, .mloc, .mlink a { font-size: 18px; }
.mloc .ic { font-size: 17px; }
.hero .cnt { top: 12px; bottom: auto; right: 12px; background: rgba(40, 58, 80, .74); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid rgba(255,255,255,.16); }
.hero .phc { max-width: calc(100% - 24px); }

/* 19.11 Даниил: ручное пополнение подборки */
.badd { display: flex; gap: 8px; }
.badd .tb { flex: 1; color: var(--ink); }
.bpan { padding: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.bpan .chips { gap: 8px; }
.bpan .chip { border-color: rgba(255,138,31,.4); }
.baq { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); color: var(--ink); font: 15.5px var(--font); outline: 0; }
.baq:focus { border-color: var(--acc); }
.selb { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; padding: 11px 16px; border-radius: var(--r);
        border: 1px dashed rgba(255,138,31,.6); background: rgba(255,138,31,.06); color: var(--acc); font-size: 16px; font-weight: 700; text-align: left; }
.selb small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.selb.on { border-style: solid; border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.08); color: #34d399; }

/* 19.11: затемнение под меню не перехватывает нажатия, когда меню закрыто (иначе сайт «зависал») */
#shade:not(.on) { pointer-events: none; }
#page:empty { display: none; }

/* 19.11 Даниил: главная — плитки */
.home { padding: 4px 2px 12px; }
.hh { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 2px 12px; }
.hh b { font-size: 20px; font-weight: 800; }
.home .mg { gap: 12px; }
.home .mt2.hero { min-height: 170px; }
@media (min-width: 1000px) {
  #list > .home { grid-column: 1 / -1; max-width: 760px; }
  .home .g2 { grid-template-columns: 1fr 1fr; }
}

/* 19.11 Даниил: шапка главной */
.hh { align-items: flex-start; margin: 6px 2px 16px; }
.hht h1 { margin: 0; font-size: 25px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.hht p { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: #c9d4df; }
.hhn { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc); font-size: 13px; font-weight: 700; }
.hh .mfav { flex: none; margin-top: 2px; }
@media (max-width: 400px) { .hh { flex-direction: column; } .hh .mfav { align-self: flex-start; } }

/* 19.11 Даниил: меню — личное и сервис */
a.mt2 { color: var(--ink); text-decoration: none; }
.mt2.wide.mbot .mi2 { font-size: 22px; }
.home .mt2.tall { min-height: 120px; }
#msheet .me, #msheet .mlog { margin-top: 0; }

/* 19.11 Даниил: шапка главной — три тезиса */
.hpost { display: flex; flex-direction: column; gap: 12px; }
.hpost span { display: block; font-size: 26px; font-weight: 800; line-height: 1.12; letter-spacing: -.01em; }
.hpost span:nth-child(2), .hpost span:nth-child(3) { font-size: 21px; color: var(--acc); }
.hpost span:nth-child(3) { color: #ffd2a8; }
@media (min-width: 1000px) { .hpost { flex-direction: row; flex-wrap: wrap; gap: 14px 36px; } .hpost span { font-size: 30px; } .hpost span:nth-child(n+2) { font-size: 24px; } }


/* 19.11 Даниил: заголовок + плитка с числом проектов; «База для РИЕЛТОРОВ» оранжевым */
.hh { display: block; }
.hrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hcnt { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 86px; padding: 10px 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); text-align: center; }
.hcnt b { font-size: 26px; font-weight: 800; line-height: 1; color: var(--ink); }
.hcnt small { margin-top: 4px; font-size: 11.5px; line-height: 1.2; color: var(--muted); }
.hsub { margin: 10px 0 0; font-size: 21px; font-weight: 800; letter-spacing: .01em; color: var(--acc); }
@media (min-width: 1000px) { .hsub { font-size: 26px; } .hcnt b { font-size: 32px; } }
.hht .hsub { margin: 10px 0 0; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--acc); }
@media (min-width: 1000px) { .hht .hsub { font-size: 26px; } }

/* 19.11 Даниил: «База для риелторов» — размером как заголовок; плитка с числом крупнее, по центру обеих строк */
.hrow { align-items: center; }
.hl2 { min-width: 0; }
.hht .hsub { margin: 6px 0 0; font-size: 26px; line-height: 1.12; letter-spacing: -.01em; }
.hcnt { min-width: 104px; min-height: 104px; padding: 12px; border-radius: 16px; }
.hcnt b { font-size: 36px; }
.hcnt small { font-size: 12.5px; }
@media (max-width: 360px) { .hpost span, .hht .hsub { font-size: 22px; } .hcnt { min-width: 88px; min-height: 88px; } .hcnt b { font-size: 30px; } }
@media (min-width: 1000px) { .hht .hsub { font-size: 30px; } .hcnt { min-width: 130px; min-height: 130px; } .hcnt b { font-size: 44px; } }

/* 19.11 Даниил: третья строка в рыжей плитке */
.mt2.hero .h3l { display: block; margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; color: #fff; }

/* 19.11 Даниил: поиск — наверху по кнопке; снизу строки нет */
#top { order: 0; }
#app > #bar { order: 1; border-top: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; }
#feed { order: 2; }
#sbtn { color: var(--ink); }
#sbtn svg { width: 22px; height: 22px; }
@media (max-width: 999px) {
  #app > #bar { display: none; }
  body.srch #app > #bar { display: block; }
  body.srch #sbtn { color: var(--acc); }
  #app > #bar #sugg { position: absolute; left: 12px; right: 12px; top: 100%; bottom: auto; margin: 6px 0 0; z-index: 6; box-shadow: 0 14px 30px rgba(0,0,0,.45); }
}
.hsearch { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; margin: 0 0 12px; padding: 0 16px; border-radius: 999px;
           background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15.5px; text-align: left; }
.hsearch svg { color: var(--acc); flex: none; }
@media (min-width: 1000px) { .hsearch { display: none; } }
#toast { bottom: calc(var(--kb) + 18px + env(safe-area-inset-bottom)); }
.mg > *, .home > * { flex-shrink: 0; }
.mt2.hero { aspect-ratio: auto; }   /* 19.11: не брать пропорцию фото страницы (.hero) */

/* 19.11 Даниил: рыжая плитка — ясная иерархия: метка, результат, условия, довод, кнопка */
.mt2.hero.hx { gap: 0; padding: 18px 18px 18px; min-height: 0; }
.mt2.hero.hx::after { opacity: .12; font-size: 110px; right: -18px; bottom: -24px; }
.hx .hk { font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.hx b { margin-top: 8px; font-size: 23px; line-height: 1.15; font-weight: 800; color: #fff; }
.hx small { margin-top: 8px; font-size: 14.5px; line-height: 1.35; color: rgba(255,255,255,.9); max-width: 90%; }
.hx .hproof { margin-top: 12px; align-self: flex-start; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.16);
  font-size: 13px; font-weight: 700; color: #fff; }
.hx .hgo { margin-top: 16px; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px;
  background: #fff; color: var(--acc2); font-size: 15.5px; font-weight: 800; box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.hx .hgo svg { width: 18px; height: 18px; }
/* строка поиска на главной — заметнее */
.hsearch { height: 56px; border: 1.5px solid rgba(255,138,31,.65); background: linear-gradient(180deg, var(--card2), var(--card));
  color: var(--ink); font-size: 16.5px; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.28), 0 0 0 4px rgba(255,138,31,.08); }
.hsearch svg { width: 22px; height: 22px; padding: 0; }
/* 19.11 Даниил: страница проекта на компьютере — ровно и плотно */
.pthumbs { display: none; }
@media (min-width: 1000px) {
  #page .wrap { max-width: 1200px; }
  .pg { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); grid-template-areas: "media info" "about info"; gap: 22px 28px; align-items: start; }
  .media { grid-area: media; }
  .info { grid-area: info; position: sticky; top: 76px; gap: 12px; }
  .pabout { grid-area: about; }
  .hero { aspect-ratio: 16 / 10; max-height: 460px; }
  .pthumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
  .pthumbs .th { aspect-ratio: 4 / 3; border-radius: 12px; }
  .pthumbs .more-n { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,14,22,.55); color: #fff; font-size: 20px; font-weight: 800; }
  .mlink { margin-top: 12px; }
  .selb { padding: 9px 14px; }
  .duec { padding: 10px 6px; }
  .ptab { font-size: 16px; }
  .ptab td { padding: 7px 0 7px 10px; }
  .dlbox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .dlbox .dlh { grid-column: 1 / -1; }
  .dlbox .dlp { grid-column: 1 / -1; }
  .dlp, .dlb { padding: 10px 14px; }
  .dlb b { font-size: 15px; }
  .dlb small { font-size: 12px; }
  .acts .btn { min-height: 48px; }
  .gal .gs { grid-template-columns: repeat(4, 1fr); }
  .gal .th:nth-child(n+5) { display: none; }
  .gal { padding-top: 34px; }
}
@media (min-width: 1000px) { #page .gal { display: none; } }   /* на компьютере фото — миниатюрами под главным */
