/* ПРОАГЕНТ — стили. Цвета и шрифт по макету и логотипу */
:root {
  --red: #E30613; --red-d: #C00410; --red-soft: #FDECEC;
  --gold: #C8901E; --gold-grad: linear-gradient(135deg, #F4CB5E 0%, #D9A32C 45%, #A8730F 100%);
  --ink: #1D1D1F; --ink2: #3A3A3D; --muted: #75757A; --line: #E9E9EC; --bg: #F5F5F7; --card: #FFFFFF;
  --green: #1E9B57; --green-soft: #E7F6EE; --amber: #B7791F; --amber-soft: #FFF4DE;
  --r-s: 8px; --r-m: 12px; --r-l: 18px;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 6px 18px rgba(20, 20, 30, .05);
  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 500 14px/1.5 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
h1 { font-size: 26px; } h2 { font-size: 19px; } h3 { font-size: 16px; }
p { margin: 0 0 .8em; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.muted { color: var(--muted); } .small { font-size: 12px; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* Кнопки и поля */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--r-s);
  border: 1px solid transparent; font: 600 14px var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; background: none; color: var(--ink); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-d); }
.btn-outline { border-color: var(--red); color: var(--red); background: #fff; } .btn-outline:hover { background: var(--red-soft); }
.btn-ghost { border-color: var(--line); background: #fff; } .btn-ghost:hover { border-color: #cfcfd4; }
.btn-gold { background: var(--gold-grad); color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.15); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.link { color: var(--red); background: none; border: 0; padding: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
label.f { display: block; margin-bottom: 14px; }
label.f > span, .f-label { display: block; font-size: 12px; font-weight: 600; color: var(--ink2); margin-bottom: 6px; }
.req::after { content: " *"; color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=month], input[type=time], input[type=date], input[type=search], select, textarea {
  width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-s); font: 500 14px var(--font); color: var(--ink); background: #fff; }
textarea { height: auto; min-height: 110px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.check input, input[type=checkbox].check { width: 16px; height: 16px; accent-color: var(--red); margin: 0; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { position: relative; flex: 1 1 auto; min-width: 44px; height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff;
  font: 600 13px var(--font); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.range2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.err { color: var(--red); font-size: 13px; font-weight: 600; min-height: 1em; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--red); color: #fff; }
.badge-gold { background: var(--gold-grad); color: #fff; }
.badge-gray { background: var(--bg); color: var(--muted); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.count { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.card { background: var(--card); border-radius: var(--r-m); box-shadow: var(--shadow); }
.pad { padding: 20px; }

#toasts { position: fixed; right: 20px; bottom: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-s); font-weight: 600; max-width: 360px; box-shadow: var(--shadow); transition: opacity .4s, transform .4s; }
.toast.err { background: var(--red); } .toast.out { opacity: 0; transform: translateY(8px); }
.modal-back { position: fixed; inset: 0; background: rgba(20, 20, 25, .45); z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow: auto; }
.modal { position: relative; background: #fff; border-radius: var(--r-l); padding: 28px; width: 100%; max-width: 460px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 760px; }
.modal-x { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; font-size: 26px; color: var(--muted); cursor: pointer; border-radius: 50%; }
.modal-x:hover { background: var(--bg); }

/* ================= Лендинг ================= */
.l-head { background: #fff; border-bottom: 2px solid transparent; border-image: var(--gold-grad) 1; }
.l-head .in { max-width: 1440px; margin: 0 auto; height: 76px; padding: 0 40px; display: flex; align-items: center; gap: 40px; }
.l-head nav { display: flex; gap: 36px; flex: 1; }
.l-head nav a { text-decoration: none; font-weight: 600; font-size: 15px; }
.l-head nav a:hover { color: var(--red); }
.l-hero { position: relative; overflow: hidden; background: #fbf8f2; border-bottom: 2px solid transparent; border-image: var(--gold-grad) 1; }
.l-hero .in { position: relative; max-width: 1440px; margin: 0 auto; padding: 44px 40px 56px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; min-height: 500px; align-items: start; z-index: 1; }
.l-hero .city { position: absolute; top: 0; bottom: 0; left: 36%; right: 0; background: url(/img/hero-city.jpg) center/cover no-repeat; }
.l-hero .city::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fbf8f2 0%, rgba(251,248,242,.6) 22%, rgba(251,248,242,0) 48%); }
.l-title { font-size: 64px; font-weight: 800; line-height: 1.02; letter-spacing: -.02em; margin: 0; }
.l-title .brand { display: flex; align-items: center; gap: 14px; }
.l-title .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--red); flex: none; }
.l-title .pro { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.l-title .agent { color: var(--red); }
.l-title .rest { display: block; font-size: 44px; font-weight: 800; margin-top: 10px; color: var(--ink); }
.l-lead { font-size: 18px; line-height: 1.6; max-width: 520px; margin: 22px 0 34px; color: var(--ink2); }
.l-feats { display: flex; flex-wrap: wrap; max-width: 680px; row-gap: 14px; }
.l-feats div { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-left: 1px solid rgba(0,0,0,.1); font-weight: 700; font-size: 13px; line-height: 1.3; }
.l-feats div:first-child { padding-left: 0; border: 0; }
.l-feats svg { width: 32px; height: 32px; color: var(--gold); flex: none; }
.auth-card { background: #fff; border-radius: var(--r-l); box-shadow: 0 20px 50px rgba(30, 20, 0, .14); overflow: hidden; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.auth-tabs button { height: 54px; border: 0; background: none; font: 700 15px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; }
.auth-tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.auth-body { padding: 24px; }
.l-about { max-width: 1440px; margin: 0 auto; padding: 44px 40px; display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; }
.l-about h2 { font-size: 30px; font-weight: 800; }
.l-about .feat { display: grid; grid-template-columns: 56px 1fr; gap: 16px; margin-bottom: 30px; }
.l-about .ico { width: 56px; height: 56px; border-radius: 50%; background: #f3eee4; display: flex; align-items: center; justify-content: center; color: var(--gold); }
.l-about .ico svg { width: 28px; height: 28px; }
.l-about h3 { font-size: 16px; margin-bottom: 6px; }
.l-about .feat p { color: var(--ink2); font-size: 14px; }
.l-section-label { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; color: var(--ink2); margin-bottom: 12px; }
.l-section-label::before { content: ""; width: 44px; height: 2px; background: var(--gold-grad); }
.l-tariffs { max-width: 1440px; margin: 0 auto; padding: 10px 40px 50px; }
.tariff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tariff { background: #fff; border: 1px solid var(--line); border-radius: var(--r-m); padding: 18px; }
.tariff b { font-size: 22px; display: block; margin: 6px 0 2px; }
.l-foot { background: #fff; border-top: 1px solid var(--line); }
.l-foot .in { max-width: 1440px; margin: 0 auto; padding: 22px 40px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.l-foot .contact { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; }
.l-foot .contact svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.l-copy { max-width: 1440px; margin: 0 auto; padding: 14px 40px 24px; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ================= Регистрация ================= */
.reg-wrap { max-width: 640px; margin: 0 auto; padding: 30px 16px 60px; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0 22px; }
.steps div { font-size: 12px; font-weight: 600; color: var(--muted); padding-top: 10px; border-top: 3px solid var(--line); }
.steps div.done { border-color: var(--gold); color: var(--ink2); }
.steps div.cur { border-color: var(--red); color: var(--ink); }
.photo-pick { display: flex; align-items: center; gap: 16px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #f3eee4 center/cover; flex: none; display: inline-flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 800; font-size: 20px; overflow: hidden; }
.avatar.sm { width: 40px; height: 40px; font-size: 14px; }
.avatar.xs { width: 34px; height: 34px; font-size: 12px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.choice button { text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; cursor: pointer; font: inherit; }
.choice button.on { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.choice b { display: block; margin-bottom: 4px; }
.confirm { display: flex; min-height: 100vh; align-items: center; justify-content: center; padding: 16px; }
.confirm-card { background: #fff; border-radius: var(--r-l); padding: 36px; max-width: 460px; box-shadow: var(--shadow); text-align: center; }
.confirm-card img { margin: 0 auto 20px; }

/* ================= Приложение ================= */
.a-head { background: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line); }
.a-head .top { height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 24px; }
.a-head .tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.a-head .tabs a { height: 68px; display: flex; align-items: center; padding: 0 14px; text-decoration: none; font-weight: 600; color: var(--ink2); border-bottom: 2px solid transparent; white-space: nowrap; gap: 6px; }
.a-head .tabs a:hover { color: var(--ink); }
.a-head .tabs a.on { color: var(--gold); border-bottom-color: var(--gold); }
.bell { position: relative; width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; cursor: pointer; color: var(--gold); display: flex; align-items: center; justify-content: center; }
.bell svg { width: 24px; height: 24px; }
.bell .count { position: absolute; top: 2px; right: 0; }
.userbtn { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font: inherit; text-align: left; padding: 4px 8px; border-radius: var(--r-s); }
.userbtn:hover { background: var(--bg); }
.userbtn b { display: block; font-size: 14px; } .userbtn .txt > span { font-size: 12px; color: var(--muted); }
.toolbar { height: 44px; padding: 0 24px; display: flex; align-items: center; gap: 6px; border-top: 1px solid var(--line); overflow-x: auto; }
.toolbar button { height: 30px; padding: 0 12px; border: 1px solid var(--line); background: #fff; border-radius: 15px; font: 600 12px var(--font); cursor: pointer; color: var(--ink2); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.toolbar button.on { border-color: var(--ink); color: var(--ink); }
.toolbar .sp { flex: 1; }
.layout { display: grid; grid-template-columns: 290px minmax(0, 1fr) 300px; gap: 20px; padding: 20px 24px 40px; max-width: 1680px; margin: 0 auto; align-items: start; }
.layout.no-left { grid-template-columns: minmax(0, 1fr) 300px; }
.layout.no-right { grid-template-columns: 290px minmax(0, 1fr); }
.layout.no-left.no-right { grid-template-columns: minmax(0, 1fr); }
.layout.no-left aside.left, .layout.no-right aside.right { display: none; }
aside.left, aside.right { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow: auto; scrollbar-width: thin; }
.side { padding: 18px; }
.side-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.side-h h2 { font-size: 17px; margin: 0; }
.ftabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-bottom: 14px; }
.ftabs button { min-height: 30px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; font: 600 11px/1.2 var(--font); cursor: pointer; color: var(--ink2); padding: 4px; }
.ftabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.fgroup { border-top: 1px solid var(--line); padding: 12px 0 4px; margin-top: 10px; }
.fgroup > .f-label { margin-bottom: 8px; font-size: 13px; color: var(--ink); }
.multi { display: flex; flex-wrap: wrap; gap: 6px; }
.multi label { position: relative; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 15px; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; cursor: pointer; color: var(--ink2); }
.multi input { position: absolute; opacity: 0; pointer-events: none; }
.multi label:has(input:checked) { background: var(--red); border-color: var(--red); color: #fff; }
.multi label:has(input:focus-visible) { outline: 2px solid var(--red); outline-offset: 2px; }
.dist-box { max-height: 150px; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-s); padding: 8px; display: grid; gap: 6px; }

.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.crumbs a { text-decoration: none; }
.c-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.c-head h1 { margin: 0; }
.cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.cats button { height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #fff; font: 600 13px var(--font); cursor: pointer; box-shadow: var(--shadow); display: inline-flex; gap: 8px; align-items: center; color: var(--ink2); }
.cats button span { color: var(--muted); }
.cats button.on { background: var(--red); color: #fff; } .cats button.on span { color: #fff; opacity: .85; }
.subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.subtabs button { height: 38px; padding: 0 12px; border: 0; background: none; font: 600 13px var(--font); color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.subtabs button.on { color: var(--ink); border-bottom-color: var(--red); }

/* Карточка объекта в листинге */
.ocard { display: grid; grid-template-columns: 240px minmax(0, 1fr) 270px; background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow); margin-bottom: 14px; overflow: hidden; }
.ocard.top { box-shadow: 0 0 0 2px #EBC56A, var(--shadow); }
.ocard .ph { position: relative; height: 170px; margin: 10px; border-radius: var(--r-s); overflow: hidden; background: #eee; }
.ocard .ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); cursor: pointer; font-size: 16px; opacity: 0; transition: opacity .15s; }
.ocard:hover .ph .nav, .ph .nav:focus-visible { opacity: 1; }
.ph .nav.l { left: 8px; } .ph .nav.r { right: 8px; }
.ph .dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 4px; justify-content: center; }
.ph .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.55); } .ph .dots i.on { background: #fff; }
.ph .tag { position: absolute; top: 8px; left: 8px; }
.ph .tag .badge { height: 24px; border-radius: 6px; font-size: 12px; }
.fav { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); cursor: pointer; color: var(--ink2); display: flex; align-items: center; justify-content: center; }
.fav svg { width: 18px; height: 18px; } .fav.on { color: var(--red); } .fav.on svg { fill: var(--red); }
.ocard .body { padding: 14px 18px 14px 8px; min-width: 0; }
.ocard .cat { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 4px; padding: 2px 8px; margin-bottom: 6px; }
.ocard h3 { font-size: 16px; margin: 0 0 6px; } .ocard h3 a { text-decoration: none; } .ocard h3 a:hover { color: var(--red); }
.addr { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink2); margin-bottom: 8px; }
.addr svg { width: 14px; height: 14px; color: var(--red); flex: none; }
.specs { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.specs span { display: inline-flex; gap: 6px; align-items: center; } .specs svg { width: 15px; height: 15px; color: var(--muted); }
.desc { font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.ocard .side2 { border-left: 1px solid var(--line); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.price { font-size: 19px; font-weight: 800; } .pm2 { font-size: 12px; color: var(--muted); }
.seller { display: flex; gap: 10px; align-items: center; margin-top: auto; font-size: 12.5px; }
.seller b { display: block; font-size: 13px; } .seller span { color: var(--muted); }
.ocard .acts { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.mine-bar { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 10px 16px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: #fcfcfd; font-size: 12px; }
.mine-bar .sp { flex: 1; }

.rcard { background: #fff; border-radius: var(--r-m); box-shadow: var(--shadow); margin-bottom: 12px; padding: 16px 18px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; overflow: hidden; }
.rcard h3 { margin: 0 0 4px; font-size: 16px; } .rcard h3 a { text-decoration: none; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0; }
.chip { font-size: 12px; font-weight: 600; background: var(--bg); padding: 3px 9px; border-radius: 12px; color: var(--ink2); display: inline-flex; gap: 4px; align-items: center; }
.empty { background: #fff; border-radius: var(--r-m); padding: 40px 24px; text-align: center; box-shadow: var(--shadow); }
.empty h3 { margin-bottom: 6px; }
.pager { display: flex; gap: 6px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.pager button { min-width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-s); font: 600 13px var(--font); cursor: pointer; }
.pager button.on { background: var(--red); border-color: var(--red); color: #fff; }

/* Правая колонка: кабинет */
.me-card { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; margin-bottom: 14px; }
.me-card .avatar { width: 56px; height: 56px; }
.me-card b { display: block; } .me-card span { font-size: 12px; color: var(--muted); }
.paid { border-radius: var(--r-s); padding: 10px 12px; background: var(--bg); font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.paid.warn { background: var(--red); color: #fff; }
.paid.warn a { color: #fff; }
.bal { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.bal small { display: block; color: var(--muted); font-size: 12px; } .bal b { font-size: 17px; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: var(--r-s); text-decoration: none; font: 600 13.5px var(--font); border: 0; background: none; cursor: pointer; color: var(--ink); text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg); }
.menu a.on { background: var(--red-soft); box-shadow: inset 3px 0 0 var(--red); }
.menu svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.menu .count { margin-left: auto; }
.stat { display: flex; justify-content: space-between; font-size: 13px; padding: 7px 0; color: var(--ink2); } .stat b { color: var(--ink); }
.promo-banner { margin-top: 14px; border-radius: var(--r-m); padding: 16px; background: linear-gradient(120deg, #fff6e2 0%, #fff 60%); position: relative; overflow: hidden; border: 1px solid #f1e2bd; }
.promo-banner::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; background: var(--red); transform: rotate(45deg); }
.promo-banner::before { content: ""; position: absolute; right: -10px; bottom: -48px; width: 110px; height: 110px; background: var(--gold-grad); transform: rotate(45deg); z-index: 1; }
.promo-banner > * { position: relative; z-index: 2; max-width: 75%; }

/* Страница объекта */
.obj { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.gallery .main { position: relative; aspect-ratio: 16/10; background: #eee; border-radius: var(--r-m); overflow: hidden; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.thumbs button { width: 92px; height: 64px; border: 2px solid transparent; border-radius: var(--r-s); overflow: hidden; padding: 0; cursor: pointer; flex: none; background: #eee; }
.thumbs button.on { border-color: var(--red); } .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.props { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.props div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.props span { color: var(--muted); } .props b { text-align: right; font-weight: 600; }
.contact-card { position: sticky; top: 140px; }
.contact-card .price { font-size: 28px; }
.msgr { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* Формы */
.form-sec { padding: 22px; margin-bottom: 16px; }
.form-sec h2 { font-size: 17px; margin-bottom: 16px; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.photos .p { position: relative; aspect-ratio: 4/3; border-radius: var(--r-s); overflow: hidden; background: #eee; display: block; }
.photos .p img { width: 100%; height: 100%; object-fit: cover; }
.photos .p .x { position: absolute; top: 4px; right: 4px; }
.photos .p .mv { position: absolute; bottom: 4px; left: 4px; display: flex; gap: 4px; }
.photos .p .x button, .photos .p .mv button { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; font-weight: 700; }
.photos .p .first { position: absolute; top: 4px; left: 4px; }
.photos .add { aspect-ratio: 4/3; border: 2px dashed #d6d6db; border-radius: var(--r-s); display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); font-weight: 600; font-size: 13px; text-align: center; padding: 8px; }
.photos .add:hover { border-color: var(--red); color: var(--red); }
.sticky-actions { position: sticky; bottom: 0; background: rgba(245,245,247,.95); backdrop-filter: blur(6px); padding: 14px 0; display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; z-index: 5; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.notif { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.notif i { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; } .notif.new i { background: var(--red); }
.foot-mini { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 16px 24px 30px; font-size: 12px; color: var(--muted); max-width: 1680px; margin: 0 auto; }

/* Админка */
.adm { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: 100vh; }
.adm nav { background: #fff; border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: 0; height: 100vh; overflow: auto; }
.adm nav a { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; font-size: 13.5px; }
.adm nav a.on { background: var(--red-soft); color: var(--red); }
.adm nav a:hover { background: var(--bg); }
.adm main { padding: 26px 30px 60px; max-width: 1240px; min-width: 0; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.set-row small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.switch { position: relative; width: 42px; height: 24px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; background: #d5d5da; border-radius: 12px; cursor: pointer; transition: background .15s; }
.switch span::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--red); } .switch input:checked + span::before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.kpis div { background: #fff; border-radius: var(--r-m); padding: 16px; box-shadow: var(--shadow); } .kpis b { display: block; font-size: 24px; }

/* ===== Система: вид по макету ===== */
.appbody { background: #F6F6F8; }
.a-head .top { height: 72px; padding: 0 28px; gap: 28px; }
.a-head .tabs { gap: 6px; overflow: visible; }
.a-head .tabs > a, .a-head .dd > a { position: relative; height: 72px; display: flex; align-items: center; gap: 6px; padding: 0 16px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); border: 0; }
.a-head .tabs .on { color: var(--gold); }
.a-head .tabs .on::after { content: ""; position: absolute; left: 6px; right: 6px; bottom: 10px; height: 8px; border-bottom: 2px solid var(--gold); border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.cv { width: 14px; height: 14px; flex: none; }
.dd { position: relative; }
.dd-menu { display: none; position: absolute; top: 62px; left: 4px; min-width: 230px; background: #fff; border-radius: var(--r-m); box-shadow: 0 12px 34px rgba(0,0,0,.12); padding: 6px; z-index: 60; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { display: block; }
.dd-menu a { display: block; padding: 10px 12px; border-radius: var(--r-s); text-decoration: none; font-weight: 600; font-size: 14px; }
.dd-menu a:hover { background: var(--bg); color: var(--red); }
.userbtn .cv { color: var(--muted); }
.userbtn .txt b { font-size: 14px; }
.a-head .cta { height: 44px; padding: 0 24px; }
.appbody .layout { grid-template-columns: 272px minmax(0, 1fr) 290px; gap: 22px; padding: 18px 28px 40px; }
.appbody .layout.no-left { grid-template-columns: minmax(0, 1fr) 290px; }
.appbody .layout.no-right { grid-template-columns: 272px minmax(0, 1fr); }
.appbody .layout.no-left.no-right { grid-template-columns: minmax(0, 1fr); }
.appbody aside.left, .appbody aside.right { top: 90px; max-height: calc(100vh - 104px); }
.appbody .card { box-shadow: 0 1px 2px rgba(20,20,30,.04), 0 4px 14px rgba(20,20,30,.05); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Фильтр */
.filt { padding: 18px 16px; }
.filt .side-h h2 { display: flex; align-items: center; gap: 10px; color: var(--red); font-size: 17px; font-weight: 800; }
.f-ico { width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.f-ico svg { width: 15px; height: 15px; }
.reset { border: 0; background: none; color: var(--red); font: 600 12px var(--font); cursor: pointer; }
.fmode { display: block; margin-bottom: 8px; }
.fmode select { height: 36px; font-size: 13px; font-weight: 600; }
details.fsec { border-top: 1px solid var(--line); padding: 12px 0 10px; }
details.fsec > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 13.5px; margin-bottom: 10px; }
details.fsec > summary::-webkit-details-marker { display: none; }
details.fsec > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--ink2); border-bottom: 2px solid var(--ink2); transform: rotate(-135deg); margin-right: 4px; transition: transform .15s; }
details.fsec:not([open]) > summary { margin-bottom: 0; }
details.fsec:not([open]) > summary::after { transform: rotate(45deg); margin-top: -4px; }
.seg.deal label { height: 36px; border-radius: var(--r-s); }
.types { display: grid; gap: 8px; }
.types .check { font-size: 13.5px; }
.types .check span { flex: 1; }
.types .check em { font-style: normal; font-size: 12px; color: var(--muted); }
.rng .range2 input { height: 36px; font-size: 13px; }
.slider { position: relative; height: 22px; margin: 6px 4px 0; }
.slider .track { position: absolute; left: 0; right: 0; top: 9px; height: 3px; border-radius: 2px; background: #E7E7EB; }
.slider .track i { position: absolute; top: 0; bottom: 0; background: var(--red); border-radius: 2px; }
.slider input[type=range] { position: absolute; left: -4px; right: -4px; width: calc(100% + 8px); top: 0; height: 22px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--red); cursor: pointer; }
.slider input[type=range]::-moz-range-thumb { pointer-events: auto; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #fff; box-shadow: 0 0 0 1px var(--red); cursor: pointer; }
.slider input[type=range]::-moz-range-track { background: none; }
.slider input[type=range]:focus-visible { outline: none; }
.slider input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--red-soft), 0 0 0 1px var(--red); }
.rng-l { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink2); margin-top: 2px; }
.multi.rooms { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr; gap: 6px; }
.multi.rooms label { justify-content: center; border-radius: var(--r-s); height: 34px; padding: 0 4px; }
.dsearch { position: relative; }
.dsearch svg { position: absolute; right: 12px; top: 11px; width: 18px; height: 18px; color: var(--gold); pointer-events: none; }
.dsearch input { padding-right: 38px; font-size: 13px; }
.dlist { position: absolute; left: 0; right: 0; top: 44px; background: #fff; border-radius: var(--r-s); box-shadow: 0 10px 30px rgba(0,0,0,.14); max-height: 220px; overflow: auto; z-index: 20; padding: 4px; }
.dlist button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; font: 500 13px var(--font); cursor: pointer; }
.dlist button:hover { background: var(--bg); }
#dChips { margin-top: 8px; }
#dChips .chip button { border: 0; background: none; cursor: pointer; font-size: 14px; color: var(--muted); padding: 0 0 0 2px; }
.fsec select { height: 38px; font-size: 13px; }
.xbox { display: grid; gap: 12px; }
.xbox .f-label { font-size: 12px; margin-bottom: 6px; }
.xbox .seg label { height: 30px; font-size: 12px; }
.show-btn { height: 46px; font-weight: 700; margin-top: 12px; }

/* Центр */
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 12px; margin-bottom: 8px; }
.crumbs span { color: #b4b4ba; }
.c-head h1 { font-size: 28px; font-weight: 800; letter-spacing: -.01em; }
.found { font-size: 13px; color: var(--ink2); margin-top: 6px; }
.c-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qsearch { position: relative; }
.qsearch svg { position: absolute; left: 12px; top: 11px; width: 18px; height: 18px; color: var(--muted); }
.qsearch input { width: 250px; padding-left: 38px; font-size: 13px; }
.tool-btn svg { width: 18px; height: 18px; color: var(--red); }
.vtoggle { display: flex; gap: 6px; }
.vtoggle button { width: 40px; height: 40px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; color: var(--red); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.vtoggle button svg { width: 18px; height: 18px; }
.vtoggle button.on { background: var(--red); border-color: var(--red); color: #fff; }
.cats button { height: 38px; padding: 0 16px; border-radius: 19px; box-shadow: none; border: 1px solid var(--line); }
.cats button.on { border-color: var(--red); }
.announce { background: var(--amber-soft); color: #7a4f0b; border-radius: var(--r-m); padding: 12px 16px; font-weight: 600; margin-bottom: 14px; white-space: pre-line; }

/* Карточка */
.ocard { grid-template-columns: 236px minmax(0, 1fr) 300px; }
.ocard .ph { height: 152px; }
.ph .tag { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; background: rgba(29,29,31,.7); color: #fff; }
.ph .tag.top { background: var(--red); }
.ph .tag svg { width: 13px; height: 13px; }
.ocard .side2 { gap: 8px; padding: 14px 16px; border-left: 0; position: relative; }
.ocard .side2::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 1px solid var(--line); }
.p-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.p-tools { display: flex; align-items: center; gap: 2px; position: relative; }
.ok-badge { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px 0 6px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.ok-badge svg { width: 14px; height: 14px; }
.kebab { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; }
.kebab:hover { background: var(--bg); } .kebab svg { width: 18px; height: 18px; }
.pop { position: absolute; right: 0; top: 30px; background: #fff; border-radius: var(--r-s); box-shadow: 0 10px 30px rgba(0,0,0,.16); padding: 4px; z-index: 30; min-width: 210px; }
.pop a, .pop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 6px; font: 600 13px var(--font); text-decoration: none; cursor: pointer; color: var(--ink); }
.pop a:hover, .pop button:hover { background: var(--bg); }
.ocard .acts { justify-content: flex-end; gap: 8px; }
.fav2 { width: 34px; height: 32px; border-radius: var(--r-s); border: 1px solid #EBC56A; background: #fff; color: var(--gold); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.fav2 svg { width: 17px; height: 17px; } .fav2.on { color: var(--red); border-color: var(--red); } .fav2.on svg { fill: var(--red); }
#items.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
#items.grid .ocard { grid-template-columns: 1fr; margin: 0; }
#items.grid .ocard .ph { height: 180px; }
#items.grid .ocard .body { padding: 2px 14px 8px; }
#items.grid .ocard .desc { display: none; }
#items.grid .ocard .side2::before { left: 14px; right: 14px; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--line); }
.pager button { min-width: 38px; height: 38px; border-radius: var(--r-s); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager span { align-self: center; color: var(--muted); padding: 0 4px; }

/* Правая колонка */
.cab-head { display: grid; grid-template-columns: 64px 1fr; gap: 14px; margin-bottom: 14px; }
.avatar.cab { width: 64px; height: 64px; border-radius: 50%; }
.avatar.cab.ic { background: #F6EBD3; color: var(--gold); }
.avatar.cab.ic svg { width: 34px; height: 34px; }
.cab-head h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.cab-head b { display: block; font-size: 14px; }
.cab-head span { display: block; font-size: 12px; color: var(--muted); }
.pro-badge { display: inline-flex !important; align-items: center; gap: 4px; margin-top: 6px; padding: 2px 8px 2px 4px; border-radius: 10px; background: #FBF1DA; color: #A06D0E !important; font-size: 11px !important; font-weight: 700; }
.pro-badge svg { width: 14px; height: 14px; }
.bal b { font-size: 18px; font-weight: 800; }
.score { display: grid; grid-template-columns: 1fr 18px; grid-template-rows: auto auto; gap: 8px 6px; align-items: center; text-decoration: none; font-size: 13px; font-weight: 600; padding-top: 12px; border-top: 1px solid var(--line); }
.score .bar { grid-column: 1; height: 4px; border-radius: 2px; background: #EEE; overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--red); border-radius: 2px; }
.score svg { grid-row: 1 / 3; grid-column: 2; width: 18px; height: 18px; color: var(--ink2); }
.side .menu a, .side .menu button { padding: 11px 10px; }
.side .menu a span:not(.count), .side .menu button span { flex: 1; }
.stat-h { display: flex; gap: 8px; align-items: center; font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.stat-h svg { width: 20px; height: 20px; }
.promo-banner img { margin-bottom: 8px; }
.promo-banner p { font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.contact-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 13px; font-weight: 600; margin-top: 10px; }
.contact-row svg { width: 18px; height: 18px; color: var(--ink2); margin-top: 1px; }
.contact-row a { text-decoration: none; }
.contact-row small { display: block; color: var(--muted); font-weight: 500; font-size: 11.5px; }

/* Каталоги и страницы */
.dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.dcard { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 16px; text-decoration: none; align-items: start; }
.dcard .avatar { width: 56px; height: 56px; }
.avatar.ag { background: var(--red-soft); color: var(--red); }
.dcard b { display: block; font-size: 15px; margin-bottom: 2px; }
.dcard span { display: block; font-size: 12.5px; color: var(--muted); }
.dcard .ok-badge { display: inline-flex; margin-top: 6px; }
.dstats { display: flex; gap: 14px; margin-top: 8px; }
.dstats span { display: inline; font-size: 12px; } .dstats b { display: inline; font-size: 13px; color: var(--ink); }
.agent-head { display: grid; grid-template-columns: 80px 1fr; gap: 18px; align-items: center; }
.agent-head .avatar { width: 80px; height: 80px; font-size: 28px; }
.textpage { max-width: 820px; line-height: 1.65; }
.textpage h1 { font-size: 28px; font-weight: 800; }
.textpage h2 { font-size: 19px; margin-top: 1.3em; }
.textpage ul { padding-left: 1.2em; }
.foot-mini i { font-style: normal; color: #ccc; margin: 0 10px; }
.foot-mini a { text-decoration: none; }

/* Адаптив */
@media (max-width: 1280px) {
  .layout, .layout.no-left { grid-template-columns: 270px minmax(0, 1fr); }
  .layout.no-left { grid-template-columns: minmax(0, 1fr); }
  .layout aside.right { display: none; }
  .layout.show-right aside.right { display: block; position: fixed; right: 0; top: 0; bottom: 0; width: 320px; max-width: 90vw; max-height: none; z-index: 120; background: var(--bg); padding: 12px; box-shadow: -10px 0 30px rgba(0,0,0,.15); }
  .ocard { grid-template-columns: 220px minmax(0, 1fr); } .ocard .side2 { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; align-items: center; }
  .ocard .side2 .seller { margin-top: 0; margin-left: auto; }
}
@media (max-width: 960px) {
  .l-hero .in { grid-template-columns: 1fr; } .l-hero .city { left: 0; opacity: .25; }
  .l-title { font-size: 44px; } .l-title .rest { font-size: 30px; }
  .l-about { grid-template-columns: 1fr; } .l-head nav { display: none; }
  .layout, .layout.no-right, .layout.no-left { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .layout aside.left { display: none; }
  .layout.show-left aside.left { display: block; position: fixed; left: 0; top: 0; bottom: 0; width: 320px; max-width: 90vw; max-height: none; z-index: 120; background: var(--bg); padding: 12px; box-shadow: 10px 0 30px rgba(0,0,0,.15); }
  .obj { grid-template-columns: 1fr; } .props { grid-template-columns: 1fr; }
  .a-head .tabs { display: none; } .a-head .top { justify-content: space-between; } .userbtn .txt { display: none; }
  .adm { grid-template-columns: 1fr; } .adm nav { position: static; height: auto; display: flex; flex-wrap: wrap; gap: 4px; }
}
@media (max-width: 640px) {
  .ocard { grid-template-columns: 1fr; } .ocard .ph { height: 200px; } .ocard .body { padding: 4px 16px 12px; }
  .grid2, .choice { grid-template-columns: 1fr; }
  .rcard { grid-template-columns: 1fr; }
  .l-head .in, .l-hero .in, .l-about, .l-foot .in, .l-copy, .l-tariffs { padding-left: 18px; padding-right: 18px; }
  .l-head .in { gap: 12px; } .l-head .in img { height: 34px; }
  .a-head .top { padding: 0 12px; gap: 10px; } .a-head .top .btn-red { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media (max-width: 1280px) {
  .appbody .layout, .appbody .layout.no-right { grid-template-columns: 260px minmax(0, 1fr); }
  .appbody .layout.no-left { grid-template-columns: minmax(0, 1fr); }
  .ocard { grid-template-columns: 220px minmax(0, 1fr); }
  .ocard .side2 { flex-direction: column; align-items: stretch; }
  .ocard .side2::before { left: 16px; right: 16px; top: 0; bottom: auto; border-left: 0; border-top: 1px solid var(--line); }
  .a-head .tabs > a, .a-head .dd > a { padding: 0 10px; }
}
@media (max-width: 960px) {
  .appbody .layout, .appbody .layout.no-right, .appbody .layout.no-left { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .a-head .top { padding: 0 14px; }
  .qsearch input { width: 100%; } .qsearch { flex: 1 1 200px; }
  .tool-btn span { display: none; }
}
@media (min-width: 961px) { .ocard .side2 .seller { margin-top: auto; } }
@media (max-width: 640px) {
  .ocard { grid-template-columns: 1fr; }
  .c-head h1 { font-size: 22px; }
  .a-head .top .cta { display: none; }
}

.upd-bar { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 400; display: flex; align-items: center; gap: 16px; background: #1D1D1F; color: #fff; padding: 12px 14px 12px 18px; border-radius: 12px; box-shadow: 0 14px 40px rgba(0,0,0,.25); font-size: 13.5px; font-weight: 600; max-width: calc(100vw - 24px); }
.upd-bar button { flex: none; height: 36px; padding: 0 16px; border: 0; border-radius: 8px; background: #E30613; color: #fff; font: 700 13px var(--font); cursor: pointer; }
@media (max-width: 640px) { .upd-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; } }
