/* Торгана — дизайн-система (направление C: «Поиск в центре») */

/* Шрифт Onest (SIL Open Font License 1.1, см. fonts/OFL.txt) — хранится на нашем сервере. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/onest-cyrillic-ext.woff2) format('woff2'); unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/onest-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 400 800; font-display: swap; src: url(/assets/fonts/onest-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --bg: #FFFFFF;
  --surface: #F3F3F1;
  --surface-2: #EBEBE8;
  --line: #E7E7E4;
  --text: #101010;
  --text-2: #444444;
  --muted: #666666;
  --faint: #9A9A96;
  --accent: #1F5E4A;
  --accent-soft: #E6EFEB;
  --danger: #B42318;
  --danger-soft: #FDECEA;
  --warn-soft: #FFF6E5;
  --shadow: 0 12px 40px rgba(16, 16, 16, 0.08);
  --shadow-lg: 0 20px 60px rgba(16, 16, 16, 0.14);
  --r-card: 28px;
  --r-md: 20px;
  --r-sm: 14px;
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1280px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 999px; font-size: 15px; font-weight: 600; white-space: nowrap; transition: background .15s, transform .05s; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--text); color: #fff; }
.btn-dark:hover { background: #2a2a2a; color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #184C3C; color: #fff; }
.btn-soft { background: var(--surface); color: var(--text); }
.btn-soft:hover { background: var(--surface-2); color: var(--text); }
.btn-line { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn-line:hover { background: var(--surface); color: var(--text); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-lg { height: 58px; padding: 0 30px; font-size: 16px; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--text); flex: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn.white { background: #fff; }
.icon-btn.on { color: var(--accent); }
.icon-btn.on svg { fill: var(--accent); stroke: var(--accent); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; color: var(--text-2); white-space: nowrap; }
.chip:hover { border-color: #cfcfca; color: var(--text); }
.chip.active { background: var(--text); border-color: var(--text); color: #fff; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.tag.accent { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.tag.danger { background: var(--danger-soft); color: var(--danger); }
.tag.dark { background: var(--text); color: #fff; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-in { display: flex; align-items: center; gap: 16px; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.logo:hover { color: var(--text); }
.logo-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); display: flex; align-items: center; justify-content: center; flex: none; }
.logo-text { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.header-search { flex: 1 1 auto; max-width: 560px; }
.header-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-link { position: relative; height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #2C7A61 0%, #1F5E4A 55%, #17493A 100%); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; flex: none; overflow: hidden; letter-spacing: -0.02em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; }
.avatar.sm { width: 36px; height: 36px; font-size: 14px; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; }
.avatar.xl { width: 104px; height: 104px; font-size: 40px; }
.ava-link { display: inline-flex; border-radius: 50%; }
.ava-link:hover .avatar { box-shadow: 0 0 0 3px var(--accent-soft); }
.conv-img { position: relative; }
.conv-ava { position: absolute; right: -3px; bottom: -3px; box-shadow: 0 0 0 2px #fff; }
.avatar.soft { background: var(--surface); color: var(--text); }

/* ---------- поиск ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 6px 0 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.search:focus-within { border-color: #cfcfca; box-shadow: var(--shadow); }
.search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: 15px; }
.search .btn { height: 40px; }
.search-xl { height: auto; min-height: 76px; padding: 8px; box-shadow: var(--shadow); gap: 8px; }
.search-xl input { font-size: 18px; padding: 0 12px; }
.search-xl .btn { height: 58px; padding: 0 28px; font-size: 16px; }
.city-btn { height: 58px; display: inline-flex; align-items: center; gap: 8px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.city-btn:hover { background: var(--surface-2); }

/* ---------- главная ---------- */
.hero { max-width: 980px; margin: 0 auto; padding: 72px 32px 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill-note { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 600; color: #333; }
.hero h1 { margin: 28px 0 0; font-size: 76px; line-height: 1.02; font-weight: 700; letter-spacing: -0.045em; }
.hero h1 span { color: var(--faint); }
.hero p { margin: 22px 0 0; max-width: 560px; font-size: 18px; color: #555; }
.hero .search-xl { margin-top: 44px; width: 100%; }
.hint-chips { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 8px; }
.cat { width: 112px; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 0; text-align: center; font-size: 14px; font-weight: 500; }
.cat-ic { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); display: flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; color: var(--text); }
.cat:hover .cat-ic { background: var(--accent-soft); color: var(--accent); transform: translateY(-2px); }

.section { padding-top: 80px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.section-head a { font-size: 15px; font-weight: 600; }

.promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; padding: 56px 64px; border-radius: 40px; background: var(--surface); }
.promo h2 { margin: 0; font-size: 44px; line-height: 1.05; font-weight: 700; letter-spacing: -0.04em; }
.promo h2 span { color: var(--accent); }
.promo p { margin: 18px 0 0; max-width: 520px; font-size: 17px; color: #555; }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust h3 { margin: 0; font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.trust p { margin: 8px 0 0; font-size: 15px; color: #555; }

/* ---------- карточки ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 20px; }
.card { position: relative; }
.card-link { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.card-link:hover { color: var(--text); }
.card-img { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-card); background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A8A8A4; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card-link:hover .card-img img { transform: scale(1.03); }
.price-pill { position: absolute; left: 14px; bottom: 14px; height: 36px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 15px; font-weight: 700; color: var(--text); max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.card-title { font-size: 16px; font-weight: 500; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { font-size: 14px; color: var(--muted); }
.card-meta .ok { color: var(--accent); font-weight: 600; }
.fav-btn { position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.06); }
.fav-btn.on svg { fill: var(--accent); stroke: var(--accent); }
.sold-badge { position: absolute; top: 14px; left: 14px; }

.empty { padding: 64px 24px; text-align: center; border-radius: var(--r-card); background: var(--surface); }
.empty h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.empty p { margin: 10px auto 22px; max-width: 420px; color: #555; }
.more { display: flex; justify-content: center; margin-top: 44px; }

/* ---------- поиск: страница ---------- */
.search-page { display: flex; gap: 40px; align-items: flex-start; padding-top: 24px; }
.filters { flex: 0 0 280px; position: sticky; top: 96px; display: flex; flex-direction: column; gap: 22px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-card); }
.filters h3 { margin: 0; font-size: 18px; font-weight: 700; }
.results { flex: 1; min-width: 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.results-head h1 { margin: 0; font-size: 30px; font-weight: 700; letter-spacing: -0.03em; }
.understood { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ---------- формы ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-size: 14px; font-weight: 600; }
.field .help { font-size: 13px; color: var(--muted); }
.input, .select, .textarea { width: 100%; height: 52px; padding: 0 18px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--text); box-shadow: 0 0 0 4px rgba(16,16,16,.05); }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23101010' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 42px; }
.textarea { height: auto; min-height: 150px; padding: 14px 18px; line-height: 1.55; resize: vertical; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; min-width: 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); gap: 2px; flex-wrap: wrap; }
.seg button { height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: var(--r-sm); background: var(--surface); cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 46px; height: 28px; border-radius: 999px; background: #CFCFCA; position: relative; flex: none; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { padding: 12px 16px; border-radius: var(--r-sm); background: var(--danger-soft); color: var(--danger); font-size: 14px; font-weight: 500; }

/* ---------- авторизация ---------- */
.auth { max-width: 460px; margin: 56px auto 96px; padding: 40px; border: 1px solid var(--line); border-radius: 36px; box-shadow: var(--shadow); }
.auth h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.035em; }
.auth .sub { margin: 8px 0 28px; color: var(--muted); }
.auth form { display: flex; flex-direction: column; gap: 16px; }
.auth .alt { margin-top: 22px; text-align: center; font-size: 15px; color: var(--muted); }
.auth .alt a { color: var(--text); font-weight: 600; }

/* ---------- карточка объявления ---------- */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); padding: 16px 0 20px; }
.crumbs a { color: #555; }
.item { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.item-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 48px; }
.item-side { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.gallery-main { position: relative; aspect-ratio: 4 / 3; border-radius: 32px; background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A8A8A4; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: var(--surface); }
.gallery-count { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); height: 32px; display: inline-flex; align-items: center; padding: 0 14px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: #333; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.gallery-nav.prev { left: 16px; }
.gallery-nav.next { right: 16px; }
.thumbs { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.thumb { aspect-ratio: 1 / 1; border-radius: 18px; border: 2px solid transparent; background: var(--surface); padding: 0; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.on { border-color: var(--text); }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.spec { padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); }
.spec .k { font-size: 13px; color: var(--muted); }
.spec .v { margin-top: 4px; font-size: 16px; font-weight: 600; }
.h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.desc { margin: 0; max-width: 720px; font-size: 17px; line-height: 1.7; color: #333; white-space: pre-line; overflow-wrap: anywhere; }
.panel { padding: 28px; border-radius: 32px; border: 1px solid var(--line); background: #fff; }
.panel-shadow { box-shadow: var(--shadow); }
.item-title { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -0.03em; font-weight: 700; overflow-wrap: anywhere; }
.item-price { font-size: 44px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.item-price.small { font-size: 28px; }
.note { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-2); }
.note strong { color: var(--text); }
.note svg { flex: none; }
.banner { padding: 18px 22px; border-radius: 24px; font-size: 15px; }
.banner.warn { background: var(--warn-soft); }
.banner.danger { background: var(--danger-soft); color: #7A1A12; }
.banner.soft { background: var(--surface); color: var(--text-2); }
.banner strong { color: inherit; }

/* ---------- размещение ---------- */
.editor { max-width: 860px; margin: 0 auto; padding: 24px 0 96px; }
.editor h1 { margin: 0 0 8px; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.editor .lead { margin: 0 0 32px; color: var(--muted); font-size: 17px; }
.editor form { display: flex; flex-direction: column; gap: 28px; }
.editor-card { padding: 28px; border-radius: 32px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; }
.editor-card h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
.photo { position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo .rm { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; }
.photo .cover { position: absolute; left: 6px; bottom: 6px; }
.photo .make-cover { position: absolute; left: 6px; bottom: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 999px; background: rgba(255,255,255,.95); font-size: 12px; font-weight: 600; }
.photo.loading::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='9' fill='none' stroke='%23101010' stroke-width='2' stroke-dasharray='40 20'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 12 12' to='360 12 12' dur='0.9s' repeatCount='indefinite'/%3E%3C/circle%3E%3C/svg%3E") center no-repeat; }
.drop { aspect-ratio: 1 / 1; border-radius: var(--r-md); border: 1.5px dashed #CFCFCA; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); padding: 8px; text-align: center; }
.drop:hover, .drop.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.ai-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-radius: 24px; background: var(--accent-soft); flex-wrap: wrap; }
.ai-box p { margin: 0; font-size: 15px; color: #1d3b31; }
.price-hint { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); }
.cat-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.cat-pick button { height: 48px; padding: 0 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; text-align: left; }
.cat-pick button.on { border-color: var(--text); background: var(--text); color: #fff; }

/* ---------- сообщения ---------- */
.inbox { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 32px; overflow: hidden; height: calc(100vh - 140px); min-height: 520px; margin: 16px 0 48px; }
.inbox-list { flex: 0 0 360px; border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-list h1 { margin: 0; padding: 22px 22px 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.conv { display: flex; gap: 12px; padding: 14px 22px; align-items: center; color: var(--text); }
.conv:hover { background: var(--surface); color: var(--text); }
.conv.on { background: var(--surface); }
.conv-img { width: 56px; height: 56px; border-radius: 16px; background: var(--surface-2); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; color: #A8A8A4; }
.conv-img img { width: 100%; height: 100%; object-fit: cover; }
.conv-body { flex: 1; min-width: 0; }
.conv-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.conv-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv-last { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.chat-head .conv-img { width: 48px; height: 48px; border-radius: 14px; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 8px; background: #FCFCFB; }
.msg { max-width: 72%; padding: 10px 14px; border-radius: 20px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 6px; }
.msg.out { align-self: flex-end; background: var(--text); color: #fff; border-bottom-right-radius: 6px; }
.msg .t { display: block; margin-top: 4px; font-size: 11px; opacity: .6; text-align: right; }
.chat-day { align-self: center; font-size: 12px; color: var(--muted); padding: 8px 0; }
.chat-form { display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat-form textarea { flex: 1; min-height: 48px; max-height: 160px; padding: 12px 18px; border-radius: 24px; border: 1px solid var(--line); outline: none; resize: none; font-size: 15px; line-height: 1.45; }
.chat-form textarea:focus { border-color: var(--text); }
.chat-warn { margin: 12px 20px 0; }
.chat-empty { flex: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; color: var(--muted); }

/* ---------- профиль ---------- */
.pf { padding-top: 24px; }
.pf-hero { padding: 28px; border-radius: 32px; border: 1px solid var(--line); background: radial-gradient(120% 140% at 0% 0%, #F1F6F3 0%, #fff 55%); }
.pf-top { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.pf-ava { position: relative; flex: none; }
.pf-ava .avatar { box-shadow: 0 0 0 4px #fff, 0 10px 30px rgba(31, 94, 74, .18); }
.pf-cam { position: absolute; right: -2px; bottom: -2px; width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .15s; }
.pf-cam:hover { transform: scale(1.06); background: var(--accent); }
.pf-id { flex: 1 1 260px; min-width: 0; }
.pf-id h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.pf-meta { margin-top: 6px; color: var(--muted); font-size: 15px; }
.pf-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pf-badge { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pf-badge.ok { background: var(--accent-soft); color: var(--accent); }
.pf-badge.warn { background: var(--warn-soft); color: #8A5A00; }
.pf-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.pf-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-stat b { font-size: 26px; font-weight: 800; letter-spacing: -0.035em; line-height: 1.1; }
.pf-stat span { font-size: 13px; color: var(--muted); }
.pf-progress { margin-top: 20px; padding: 16px 18px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); }
.pf-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; font-size: 14px; }
.pf-bar { height: 6px; margin: 12px 0 14px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.pf-bar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.pf-todo { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-todo .chip { height: 36px; padding: 0 14px; cursor: pointer; }
.pf-tabs { display: flex; gap: 4px; margin: 28px 0 20px; padding: 4px; border-radius: 999px; background: var(--surface); width: max-content; max-width: 100%; }
.pf-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.pf-tabs a span { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.pf-tabs a.on { background: #fff; color: var(--text); box-shadow: 0 2px 10px rgba(16,16,16,.08); }
.pf-tabs a.on span { background: var(--text); color: #fff; }
.pf-status { display: flex; gap: 8px; margin: 0 0 18px; overflow-x: auto; scrollbar-width: none; }
.pf-status::-webkit-scrollbar { display: none; }
.pf-status .chip { flex: none; }
.pf-status .chip .cnt { font-size: 12px; font-weight: 700; opacity: .7; }
.pf-status .chip.zero:not(.active) { color: #A2A29E; }
.ml-list { display: flex; flex-direction: column; gap: 12px; }
.ml-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 18px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 26px; background: #fff; transition: box-shadow .15s, border-color .15s; }
.ml-card:hover { border-color: #DCDCD8; box-shadow: var(--shadow); }
.ml-img { width: 108px; height: 108px; border-radius: 20px; background: var(--surface); overflow: hidden; display: flex; align-items: center; justify-content: center; color: #A8A8A4; }
.ml-img img { width: 100%; height: 100%; object-fit: cover; }
.ml-info { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ml-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); }
.ml-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ml-tag.ok { color: var(--accent); }
.ml-tag.wait { color: #B07400; }
.ml-tag.bad { color: var(--danger); }
.ml-tag.dark { color: var(--text); }
.ml-title { font-size: 17px; font-weight: 600; line-height: 1.3; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ml-price { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.ml-meta { display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ml-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ml-side { display: flex; align-items: center; gap: 8px; align-self: start; }
.ml-note { grid-column: 1 / -1; padding: 10px 14px; border-radius: var(--r-sm); font-size: 14px; }
.ml-note.warn { background: var(--warn-soft); }
.ml-note.bad { background: var(--danger-soft); }
.pf-empty { padding: 48px 24px; border-radius: 32px; background: var(--surface); text-align: center; }
.pf-empty.sm { padding: 40px 24px; }
.pf-empty h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.pf-empty p { margin: 10px auto 22px; max-width: 440px; color: #555; }
.pf-empty.sm p { margin-bottom: 0; }
.pf-empty-ic { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 28px; background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(31, 94, 74, .12); transform: rotate(-6deg); }
.pf-tips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 32px; text-align: left; }
.pf-tip { display: flex; gap: 12px; padding: 16px; border-radius: var(--r-md); background: #fff; }
.pf-tip > span { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.pf-tip b { font-size: 15px; }
.pf-tip p { margin: 4px 0 0; font-size: 13px; color: var(--muted); max-width: none; }
.set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.set-group { display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.set-group h2 { margin: 0 0 2px; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; }
.set-ava { display: flex; gap: 18px; align-items: center; }
.set-ava p { margin: 0 0 12px; font-size: 14px; }
.set-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.set-row > div { min-width: 0; }
.set-k { display: block; font-size: 13px; color: var(--muted); }
.set-v { display: block; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.set-v.muted { font-weight: 400; font-size: 14px; }
.set-logout { margin-top: 6px; color: var(--danger); }
.switch small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; margin-top: 2px; }
.sheet-title { font-size: 17px; font-weight: 700; padding: 0 4px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet-list { display: flex; flex-direction: column; border-radius: var(--r-md); background: var(--surface); overflow: hidden; }
.sheet-item { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 54px; padding: 0 18px; border: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 500; color: var(--text); text-align: left; cursor: pointer; }
.sheet-item + .sheet-item { border-top: 1px solid var(--line); }
.sheet-item:hover { background: var(--surface-2); color: var(--text); }
.sheet-item.danger { color: var(--danger); }
.sheet-cancel { width: 100%; margin-top: 10px; }
@media (max-width: 900px) {
  .set { grid-template-columns: 1fr; }
  .pf-tips { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .pf { padding-top: 12px; }
  .pf-hero { padding: 22px 18px; border-radius: 28px; }
  .pf-top { gap: 16px; }
  .pf-ava .avatar.xl { width: 84px; height: 84px; font-size: 32px; }
  .pf-cam { width: 34px; height: 34px; }
  .pf-id { flex-basis: 0; flex-grow: 1; }
  .pf-id h1 { font-size: 26px; }
  .pf-meta { font-size: 14px; }
  .pf-actions { flex: 1 1 100%; }
  .pf-actions .btn:first-child { flex: 1; }
  .pf-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 18px; padding-top: 18px; }
  .pf-stat b { font-size: 20px; }
  .pf-stat span { font-size: 11px; }
  .pf-tabs { width: 100%; }
  .pf-tabs a { flex: 1; justify-content: center; padding: 0 12px; }
  .pf-status { margin: 0 -20px 16px; padding: 0 20px; }
  .ml-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 12px; padding: 10px; border-radius: 22px; }
  .ml-img { width: 84px; height: 84px; border-radius: 16px; }
  .ml-title { font-size: 15px; }
  .ml-price { font-size: 16px; }
  .ml-meta { font-size: 12px; gap: 2px 10px; }
  .ml-meta span:last-child { flex-basis: 100%; }
  .ml-more { width: 38px; height: 38px; }
  .hide-xs { display: none; }
  .set-group { padding: 20px 18px; border-radius: 24px; }
  .set-ava { align-items: flex-start; }
  .modal-back.sheet-back { align-items: flex-end; padding: 0; }
  .modal.sheet { max-width: none; max-height: 85vh; border-radius: 28px 28px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); animation: sheet-up .22s ease-out; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
.profile-head { display: flex; align-items: center; gap: 20px; padding: 24px 0 28px; flex-wrap: wrap; }
.profile-head h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -0.035em; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.my-row { display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 24px; flex-wrap: wrap; }
.my-row + .my-row { margin-top: 12px; }
.my-img { width: 96px; height: 96px; border-radius: 18px; background: var(--surface); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; color: #A8A8A4; }
.my-img img { width: 100%; height: 100%; object-fit: cover; }
.my-info { flex: 1 1 240px; min-width: 0; }
.my-info .t { font-size: 17px; font-weight: 600; }
.my-info .p { font-size: 16px; font-weight: 700; margin-top: 2px; }
.my-info .m { font-size: 13px; color: var(--muted); margin-top: 4px; }
.my-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.settings { max-width: 520px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- админка ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat { padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); }
.stat .n { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.stat .k { font-size: 13px; color: var(--muted); }
.reasons { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- страницы ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 32px 0 96px; }
.page h1 { margin: 0 0 24px; font-size: 40px; font-weight: 700; letter-spacing: -0.04em; }
.page h2 { margin: 32px 0 10px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.page p, .page li { font-size: 17px; line-height: 1.65; color: #333; }
.page ul, .page ol { padding-left: 22px; }
.page li + li { margin-top: 6px; }
.page a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.page .muted { font-size: 14px; }
.rules-list li { margin-bottom: 10px; }
.req { display: grid; grid-template-columns: minmax(140px, 260px) 1fr; gap: 10px 20px; padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); font-size: 16px; }
.req span { color: var(--muted); }
.req b { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 600px) { .req { grid-template-columns: 1fr; gap: 2px; } .req b { margin-bottom: 10px; } }

/* ---------- подвал ---------- */
.footer { margin-top: 96px; border-top: 1px solid var(--line); }
.footer-in { display: flex; flex-wrap: wrap; gap: 40px; padding: 48px 0 24px; }
.footer-col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col.brand { flex: 2 1 260px; }
.footer-col b { font-size: 14px; }
.footer-col a { color: #555; }
.footer-bottom { padding: 20px 0 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- модальные окна и уведомления ---------- */
.modal-back { position: fixed; inset: 0; z-index: 60; background: rgba(16,16,16,.4); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow-y: auto; padding: 28px; border-radius: 32px; background: #fff; box-shadow: var(--shadow-lg); animation: rise .2s; }
.modal h2 { margin: 0 0 16px; font-size: 24px; font-weight: 700; letter-spacing: -0.03em; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.city-list { display: flex; flex-direction: column; max-height: 360px; overflow-y: auto; margin-top: 12px; }
.city-list button { height: 46px; border: 0; background: transparent; text-align: left; padding: 0 14px; border-radius: 12px; font-size: 15px; }
.city-list button:hover, .city-list button.on { background: var(--surface); }
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { padding: 14px 20px; border-radius: 999px; background: var(--text); color: #fff; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: rise .2s; max-width: calc(100vw - 32px); }
.toast.err { background: var(--danger); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, #F8F8F6 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r-card); }
@keyframes shimmer { to { background-position: -200% 0; } }
.loader { display: flex; justify-content: center; padding: 80px 0; }
.loader::after { content: ''; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--surface-2); border-top-color: var(--text); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- мобильное меню ---------- */
.bottom-nav { display: none; }

/* ---------- поддержка в сообщениях ---------- */
.support-ava { border-radius: 50%; background: linear-gradient(160deg, #256B55, #1A5140); color: #fff; box-shadow: 0 6px 18px rgba(31, 94, 74, .25); }
.verified { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 4px; border-radius: 50%; background: var(--accent); color: #fff; vertical-align: -2px; }
.conv.support { margin: 0 12px 8px; padding: 14px 12px; border-radius: 20px; background: linear-gradient(180deg, var(--accent-soft), #F2F7F4); }
.conv.support:hover, .conv.support.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(31, 94, 74, .18); }
.support-name { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv.support .pin { color: var(--accent); flex: none; }
.chat-head .support-ava { border-radius: 50%; }
.support-hello { max-width: 86%; display: flex; flex-direction: column; gap: 8px; white-space: normal; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chat-quick .chip { height: 34px; padding: 0 12px; font-size: 13px; }

/* ---------- модерация: проверка объявления ---------- */
mark { background: #FFE6A3; color: var(--text); border-radius: 4px; padding: 0 2px; }
.warn-t { color: #9A5B00; font-weight: 600; }
.danger-t { color: var(--danger); font-weight: 600; }
.mod-page { padding-top: 20px; padding-bottom: 64px; }
.mod-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.mod-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.mod-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.mod-title { margin: 0; font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; overflow-wrap: anywhere; }
.mod-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mod-photo { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.mod-photo img { width: 100%; height: 100%; object-fit: contain; }
.mod-photo span { position: absolute; left: 10px; top: 10px; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: rgba(16,16,16,.72); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mod-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.mod-actions { display: flex; flex-direction: column; gap: 12px; }
.mod-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mod-btns .btn { flex: 1 1 auto; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.report { padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.report:first-of-type { border-top: 0; padding-top: 0; }
.report p { margin: 0; }
.report.done { opacity: .55; }
.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 14px; }
.timeline li { display: flex; gap: 12px; }
.tl-dot { flex: none; width: 10px; height: 10px; margin-top: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-changes { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); }
@media (max-width: 1024px) { .mod-grid { grid-template-columns: 1fr; } .mod-side { position: static; } }

/* ---------- галочка (согласие при регистрации) ---------- */
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--accent); cursor: pointer; }

/* ---------- модерация → почта ---------- */
.mail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.mail-grid .panel { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .mail-grid { grid-template-columns: 1fr; } }
.avatar-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.5; }
.avatar-steps a { text-decoration: underline; overflow-wrap: anywhere; }

@media (max-width: 1024px) {
  .header-nav .nav-text { display: none; }
  .filters { flex-basis: 240px; }
}

@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .header-in { height: 64px; gap: 10px; }
  .header-search, .header-nav .hide-m { display: none; }
  .hero { padding: 36px 20px 0; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16px; }
  .search-xl { flex-wrap: wrap; border-radius: 28px; padding: 8px; }
  .search-xl .city-btn { order: 2; height: 46px; flex: 1; max-width: none; justify-content: center; }
  .search-xl input { order: 1; flex: 1 1 100%; height: 50px; }
  .search-xl .btn { order: 3; height: 46px; flex: 1; }
  .cats { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 0 -20px; padding: 0 20px; scrollbar-width: none; }
  .cats::-webkit-scrollbar { display: none; }
  .cat { width: 76px; flex: none; font-size: 12px; }
  .cat-ic { width: 60px; height: 60px; }
  .section { padding-top: 48px; }
  .section-head h2 { font-size: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .card-img { border-radius: 22px; }
  .price-pill { left: 10px; bottom: 10px; height: 30px; padding: 0 11px; font-size: 13px; }
  .card-title { font-size: 14px; }
  .card-meta { font-size: 12px; }
  .fav-btn { top: 6px; right: 6px; width: 36px; height: 36px; }
  .promo { padding: 32px 24px; border-radius: 28px; }
  .promo h2 { font-size: 30px; }
  .search-page { flex-direction: column; gap: 20px; }
  .filters { position: static; flex-basis: auto; width: 100%; }
  .filters.collapsed .filters-body { display: none; }
  .item-side { position: static; }
  .gallery-main { border-radius: 24px; }
  .thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .item-price { font-size: 36px; }
  .inbox { height: calc(100vh - 170px); border-radius: 24px; margin-bottom: 100px; }
  .inbox-list { flex: 1 1 auto; border-right: 0; }
  .inbox.has-chat .inbox-list { display: none; }
  .inbox:not(.has-chat) .chat { display: none; }
  .msg { max-width: 85%; }
  .editor h1 { font-size: 30px; }
  .editor-card { padding: 20px; border-radius: 24px; }
  .row.stack-m { flex-direction: column; }
  .auth { margin: 24px auto 120px; padding: 28px 22px; border-radius: 28px; box-shadow: none; }
  .footer { margin-top: 64px; margin-bottom: 96px; }
  .page h1 { font-size: 30px; }
  .bottom-nav { display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; height: 66px; padding: 0 10px; align-items: center; justify-content: space-between; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 12px 36px rgba(16,16,16,.12); }
  .bottom-nav a { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; color: var(--muted); border-radius: 50%; }
  .bottom-nav a.on { color: var(--accent); }
  .bottom-nav a.on::after { content: ''; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
  .bottom-nav a.plus { background: var(--text); color: #fff; }
  .bottom-nav .badge { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; font-size: 11px; }
  .toasts { bottom: 96px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 38px; }
  .logo-text { font-size: 20px; }
}
.pf .section-head { margin-top: 36px; }
