/* ==========================================================================
   Тема доски объявлений. Стилистика шаблона «Simple» (5bar.ru):
   Roboto, тёмно-синяя верхняя полоса, белая шапка, боковой каталог,
   карточки с тонкой рамкой и мягкой тенью при наведении, нижняя панель.
   ========================================================================== */

:root {
    --navy: #232b46;
    --navy-2: #2e3858;
    --accent: #4e7df1;
    --accent-hover: #3b6ae6;
    --accent-soft: #edf2fe;
    --orange: #ee8208;
    --orange-hover: #db7505;
    --red: #ff2e49;
    --green: #2fb36b;
    --text: #222;
    --text-2: #444;
    --muted: #767b8b;
    --muted-2: #999fb3;
    --border: #e3e3e3;
    --border-2: #ededed;
    --bg: #fff;
    --bg-soft: #f8f8f8;
    --bg-soft-2: #f3f3f3;
    --radius: 6px;
    --radius-lg: 10px;
    --shadow: 4px 4px 20px rgba(0, 0, 0, .1);
    --shadow-sm: 0 2px 15px rgba(32, 31, 36, .1);
    --container: 1260px;
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 14px/1.45 Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
    padding-bottom: 58px; /* нижняя панель */
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .6em; line-height: 1.2; font-weight: 500; color: var(--text); }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

.icon { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.icon-sm { width: 16px; height: 16px; }
.icon-xs { width: 13px; height: 13px; }

/* ------------------------------------------------------------- Кнопки */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 40px; padding: 0 18px; border-radius: var(--radius); border: 1px solid transparent;
    background: var(--bg-soft-2); color: var(--text); font-weight: 500; font-size: 14px;
    cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
    text-decoration: none;
}
.btn:hover { background: #e9e9e9; color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-hover); color: #fff; }
.btn-outline { background: #fff; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: #fff; }
.btn-white { background: #fff; color: var(--text); }
.btn-white:hover { background: #fff; color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg-soft-2); }
.btn-danger { color: #d23b3b; }
.btn-danger:hover { color: #d23b3b; background: #fdeeee; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; gap: 6px; }
.btn-block { display: flex; width: 100%; }

.round-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); background: #fff;
    color: var(--text); cursor: pointer; transition: border-color .15s, color .15s;
}
.round-btn:hover { border-color: var(--accent); color: var(--accent); }
.round-btn-sm { width: 34px; height: 34px; }
.bubble {
    position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--accent); color: #fff; font-size: 11px; line-height: 18px; text-align: center; font-weight: 500;
}
.bubble-red { background: var(--red); }

/* ------------------------------------------------------------- Формы */

input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
    width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius);
    background: #fff; outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; padding: 10px 12px; resize: vertical; min-height: 90px; }
select { padding-right: 32px; appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23767b8b' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(78, 125, 241, .15); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; flex: none; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field > span:first-child { font-size: 13px; color: var(--muted); font-weight: 500; }
.field.error input, .field.error select, .field.error textarea { border-color: #e5484d; }
.error-text { color: #e5484d; font-size: 12.5px; }
.field small { font-size: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }

.alert { padding: 12px 16px; border-radius: var(--radius); margin: 16px 0; background: var(--accent-soft); color: #234; border: 1px solid #d6e2fd; }
.alert-success { background: #eaf8f0; border-color: #c9ecd7; color: #1d5c39; }
.alert-error { background: #fdeeee; border-color: #f6d2d2; color: #8e2424; }
.alert-info { background: var(--accent-soft); }

/* ------------------------------------------------------------- Верхняя полоса */

.topline { background: var(--navy); color: #fff; font-size: 13px; }
.topline .container { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 16px; }
.topline a, .topline button { color: #fff; opacity: .92; display: inline-flex; align-items: center; gap: 6px; }
.topline a:hover, .topline button:hover { opacity: 1; color: #fff; }
.topline-nav { display: flex; gap: 24px; overflow: hidden; white-space: nowrap; }
.topline-nav a.active { opacity: 1; font-weight: 500; }
.topline-right { display: flex; align-items: center; gap: 22px; white-space: nowrap; }
.topline-city { background: none; border: 0; padding: 0; cursor: pointer; font-size: 13px; }
.topline .muted-link { opacity: .6; }

/* ------------------------------------------------------------- Шапка */

.header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--border-2); transition: box-shadow .2s; }
.header.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, .08); }
.header-row { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 500; color: var(--navy); letter-spacing: -.02em; white-space: nowrap; }
.logo:hover { color: var(--navy); }
.logo-mark { width: 38px; height: 38px; }
.logo-light, .logo-light:hover { color: #fff; }
.burger { display: none; background: none; border: 0; padding: 6px; color: var(--accent); cursor: pointer; }
.burger .icon { width: 28px; height: 28px; }

.catalog-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; margin-left: 18px;
    border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--text);
}
.catalog-btn .icon:first-child { color: var(--accent); }
.catalog-btn:hover, .catalog-btn[aria-expanded="true"] { border-color: var(--accent); }

.search { flex: 1; position: relative; display: flex; max-width: 560px; margin: 0 auto 0 8px; }
.search input[type=search] { height: 42px; background: var(--bg-soft-2); border-color: var(--bg-soft-2); padding-right: 46px; }
.search input[type=search]:focus { background: #fff; }
.search button[type=submit] { position: absolute; right: 0; top: 0; width: 46px; height: 42px; border: 0; background: none; color: var(--muted-2); cursor: pointer; }
.search button[type=submit]:hover { color: var(--accent); }
.search-suggest {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border-radius: var(--radius);
    box-shadow: var(--shadow); border: 1px solid var(--border); z-index: 60; overflow: hidden;
}
.search-suggest a { display: flex; align-items: center; gap: 12px; padding: 9px 14px; color: var(--text); }
.search-suggest a:hover, .search-suggest a.active { background: var(--bg-soft); }
.search-suggest img, .search-suggest .ph { width: 44px; height: 44px; border-radius: 4px; object-fit: cover; background: var(--bg-soft-2); flex: none; }
.search-suggest .s-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-suggest .s-price { font-weight: 500; white-space: nowrap; }
.search-suggest .s-cat { color: var(--accent); font-weight: 500; }
.search-suggest .s-group { padding: 8px 14px 4px; font-size: 11px; text-transform: uppercase; color: var(--muted-2); letter-spacing: .04em; }

.header-icons { display: flex; gap: 10px; }
.add-btn { height: 44px; }

/* Выпадающий каталог */
.catalog-menu { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--border-2); box-shadow: 0 20px 30px rgba(0, 0, 0, .08); display: none; max-height: calc(100vh - 140px); overflow: auto; }
.catalog-menu.open { display: block; animation: drop .18s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.catalog-menu-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px 28px; padding: 26px 0 30px; }
.catalog-col-title { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; color: var(--text); margin-bottom: 8px; }
.catalog-col ul { list-style: none; margin: 0; padding: 0 0 0 42px; }
.catalog-col li { padding: 3px 0; }
.catalog-col li a { color: var(--text-2); }
.catalog-col li a:hover { color: var(--accent); }

/* Иконки категорий */
.cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); flex: none; }
.cat-ico .icon { width: 26px; height: 26px; }
.cat-ico-sm { width: 32px; height: 32px; }
.cat-ico-sm .icon { width: 17px; height: 17px; }

/* ------------------------------------------------------------- Основа */

.main { min-height: 50vh; padding-bottom: 40px; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 14px; font-size: 13px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs a::after { content: "/"; margin-left: 6px; color: var(--border); }
.breadcrumbs .sep { display: none; }
.section { margin-top: 40px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-size: 24px; }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; }
.count { color: var(--muted); font-size: 14px; }

.empty-state { text-align: center; padding: 56px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty-state > .icon { width: 44px; height: 44px; color: var(--muted-2); margin-bottom: 10px; }
.empty-state h3 { color: var(--text); margin-bottom: 6px; }
.empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.chip { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border); color: var(--text); background: #fff; white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------------------------------------- Главная */

.home-top { display: grid; grid-template-columns: 252px 1fr; gap: 20px; margin-top: 20px; }

.side-catalog { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; align-self: start; position: relative; z-index: 5; }
.side-catalog-head { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 18px; background: var(--navy); color: #fff; border-radius: var(--radius) var(--radius) 0 0; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.side-item { position: relative; }
.side-item > a { display: flex; align-items: center; gap: 12px; padding: 8px 14px; color: var(--text); border-top: 1px solid var(--border-2); }
.side-item:first-child > a { border-top: 0; }
.side-item > a:hover { color: var(--accent); background: var(--bg-soft); }
.side-name { flex: 1; }
.side-arrow { color: var(--muted-2); }
.side-flyout {
    display: none; position: absolute; left: 100%; top: -1px; width: 280px; background: #fff; border: 1px solid var(--border);
    border-radius: 0 var(--radius) var(--radius) 0; box-shadow: var(--shadow); padding: 10px 0; z-index: 10;
}
.side-item:hover .side-flyout { display: block; }
.side-flyout a { display: flex; justify-content: space-between; padding: 7px 20px; color: var(--text); }
.side-flyout a:hover { color: var(--accent); background: var(--bg-soft); }
.side-flyout a span { color: var(--muted-2); font-size: 12px; }
.side-flyout .side-flyout-title { font-weight: 500; font-size: 15px; }

.home-banners { display: grid; grid-template-columns: 1fr 270px; gap: 20px; min-width: 0; }
.hero {
    position: relative; overflow: hidden; border-radius: var(--radius); background: linear-gradient(120deg, #e9f0fe 0%, #dfe8fd 60%, #cfdcfb 100%);
    display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding: 38px 40px; min-height: 330px;
}
.hero-kicker { display: inline-block; padding: 4px 10px; border-radius: 12px; background: #fff; color: var(--accent); font-size: 12px; font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: 32px; font-weight: 500; letter-spacing: -.01em; margin-bottom: 12px; }
.hero p { color: var(--text-2); font-size: 15px; max-width: 470px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-art { position: relative; height: 240px; }
.hero-tile { position: absolute; display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); color: var(--accent); animation: float 6s ease-in-out infinite; }
.hero-tile .icon { width: 46px; height: 46px; }
.hero-tile.t1 { left: 8%; top: 4%; }
.hero-tile.t2 { right: 8%; top: 18%; color: var(--orange); animation-delay: -1.5s; }
.hero-tile.t3 { left: 2%; bottom: 0; color: var(--green); animation-delay: -3s; }
.hero-tile.t4 { right: 30%; bottom: 4%; width: 84px; height: 84px; color: var(--red); animation-delay: -4.5s; }
.hero-tile.t4 .icon { width: 36px; height: 36px; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero-tile { animation: none; } }

.promo-col { display: grid; gap: 20px; }
.promo { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 22px 24px; border-radius: var(--radius); color: #fff; transition: transform .2s, box-shadow .2s; }
.promo:hover { color: #fff; transform: translateY(-2px); box-shadow: var(--shadow); }
.promo-orange { background: linear-gradient(135deg, #ef8a1a, #e66d00); }
.promo-blue { background: linear-gradient(135deg, #5c88f5, #3c63d9); }
.promo-title { font-size: 15px; opacity: .92; }
.promo-big { font-size: 26px; font-weight: 700; line-height: 1.15; }
.promo-sub { font-size: 13px; opacity: .85; }

.benefits { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 24px; }
.benefit { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 26px 20px; position: relative; }
.benefit + .benefit::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; border-left: 1px solid var(--border); }
.benefit b { font-size: 16px; font-weight: 500; }
.benefit > span:last-child { color: var(--muted); font-size: 13px; }
.benefit-ico { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; margin-bottom: 6px; }
.benefit-ico .icon { width: 26px; height: 26px; }
.benefit-ico.red { background: #ec4b3c; }
.benefit-ico.orange { background: #f6a65a; }
.benefit-ico.green { background: #4fbf6a; }

.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 14px; }
.cat-tile { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); background: #fff; transition: box-shadow .2s, border-color .2s; }
.cat-tile:hover { color: var(--accent); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile .cat-ico { width: 46px; height: 46px; }
.cat-tile .cat-ico .icon { width: 23px; height: 23px; }
.cat-tile-name { flex: 1; font-weight: 500; line-height: 1.25; }
.cat-tile-count { font-size: 12px; color: var(--muted-2); }

/* ------------------------------------------------------------- Карточки объявлений */

.lots-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.lots-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lots-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lots-grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.lots-grid-listing { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.lot-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .2s, border-color .2s, transform .2s; }
.lot-card:hover { box-shadow: var(--shadow); border-color: transparent; }
.lot-card.is-vip { border-color: #f6c58f; background: #fffaf3; }
.lot-card.is-closed { opacity: .55; }
.lot-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-soft-2); overflow: hidden; }
.lot-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.lot-card:hover .lot-card-img img { transform: scale(1.04); }
.no-photo { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px; width: 100%; height: 100%; color: #cfd2da; }
.no-photo .icon { width: 42px; height: 42px; }
.no-photo.big { aspect-ratio: 4 / 3; color: var(--muted-2); }
.vip-badge { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .04em; }
.fav-btn { position: absolute; right: 8px; top: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--muted); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s, transform .15s; z-index: 2; }
.fav-btn .icon { width: 18px; height: 18px; }
.fav-btn:hover { color: var(--red); transform: scale(1.08); }
.fav-btn.active, .fav-wide.active { color: var(--red); }
.fav-btn.active .icon, .fav-wide.active .icon { fill: currentColor; }
.lot-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.lot-card-title { color: var(--text); font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.lot-card-title:hover { color: var(--accent); }
.lot-card-price { font-size: 18px; font-weight: 700; }
.price-free { font-size: 14px; font-weight: 500; color: var(--text-2); }
.lot-card-meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 12px; color: var(--muted-2); }
.lot-card-sm .lot-card-price { font-size: 15px; }
.lot-card-sm .lot-card-meta { display: none; }

/* Список (переключатель вида) */
.lots-grid.as-list { grid-template-columns: 1fr; gap: 12px; }
.as-list .lot-card { flex-direction: row; }
.as-list .lot-card-img { width: 240px; flex: none; aspect-ratio: 4 / 3; }
.as-list .lot-card-body { padding: 14px 18px; }
.as-list .lot-card-title { font-size: 17px; -webkit-line-clamp: 1; min-height: 0; }
.as-list .lot-card-price { font-size: 20px; }
.as-list .fav-btn { left: 200px; right: auto; }

/* ------------------------------------------------------------- Каталог */

.listing-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.listing-head h1 { margin: 0; }
.h1-city { color: var(--muted); font-weight: 400; }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.listing-layout { display: grid; grid-template-columns: 252px 1fr; gap: 20px; align-items: start; }
.listing-main { min-width: 0; }
.listing-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.filter-btn { display: none; }
.sort-tabs { display: inline-flex; background: var(--bg-soft-2); border-radius: var(--radius); padding: 3px; }
.sort-tabs button { border: 0; background: none; height: 32px; padding: 0 14px; border-radius: 4px; cursor: pointer; color: var(--text-2); }
.sort-tabs button.active { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0, 0, 0, .1); font-weight: 500; }
.view-switch { margin-left: auto; display: inline-flex; gap: 4px; }
.view-switch button { width: 36px; height: 36px; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.view-switch button.active { color: var(--accent); border-color: var(--accent); }
#products-list { transition: opacity .2s; }
#products-list.loading { opacity: .45; pointer-events: none; }

.filter-panel { position: sticky; top: calc(var(--header-h) + 14px); display: grid; gap: 14px; max-height: calc(100vh - var(--header-h) - 28px); overflow: auto; scrollbar-width: thin; }
.filter-panel-head { display: none; }
.filter-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 4px 16px 14px; background: #fff; }
.filter-group { padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.filter-group:last-of-type { border-bottom: 0; }
.filter-title { display: flex; width: 100%; align-items: center; justify-content: space-between; border: 0; background: none; padding: 0; font-weight: 500; font-size: 14px; color: var(--text); cursor: pointer; margin-bottom: 10px; text-align: left; }
div.filter-title { cursor: default; }
.filter-group.collapsed .filter-title { margin-bottom: 0; }
.filter-group.collapsed .filter-body { display: none; }
.filter-group.collapsed .filter-title .icon { transform: rotate(-90deg); }
.filter-hint { display: inline-flex; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; align-items: center; justify-content: center; }
.filter-body.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filter-body.range input { height: 38px; }
.filter-body.scroll { max-height: 236px; overflow: auto; scrollbar-width: thin; }
.filter-option { display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer; }
.filter-option-name { flex: 1; }
.filter-option .cnt { color: var(--muted-2); font-size: 12px; }
.filter-option.disabled { opacity: .45; cursor: default; }
.filter-body.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color-opt input { position: absolute; opacity: 0; }
.color-opt span { display: block; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); cursor: pointer; }
.color-opt input:checked + span { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
.filter-foot { display: grid; gap: 8px; padding-top: 14px; }
.filter-cats { display: grid; }
.filter-cats a { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: var(--text); }
.filter-cats a:hover { color: var(--accent); }
.filter-city { padding-top: 14px; }
.city-pick { display: flex; align-items: center; gap: 8px; width: 100%; height: 40px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; cursor: pointer; }
.city-pick:hover { border-color: var(--accent); }

.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 28px; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--text); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .dots { border: 0; }
.seo-text { margin-top: 32px; color: var(--text-2); }

/* ------------------------------------------------------------- Объявление */

.lot-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.lot-title { font-size: 28px; margin-bottom: 8px; word-break: break-word; }
.lot-sub { display: flex; flex-wrap: wrap; gap: 6px 18px; color: var(--muted); margin-bottom: 18px; }
.lot-sub span { display: inline-flex; align-items: center; gap: 6px; }

.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft-2); border-radius: var(--radius); overflow: hidden; }
.gallery-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; transition: opacity .3s; cursor: zoom-in; }
.gallery-main img.active { opacity: 1; z-index: 1; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm); cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .2s; }
.gallery-main:hover .gallery-arrow { opacity: 1; }
.gallery-arrow.prev { left: 14px; }
.gallery-arrow.next { right: 14px; }
.gallery-counter { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 2px 10px; border-radius: 12px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs button { flex: none; width: 88px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; cursor: pointer; background: var(--bg-soft-2); opacity: .7; }
.gallery-thumbs button.active { border-color: var(--accent); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10, 12, 20, .92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lightbox button { position: absolute; top: 16px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }

.lot-section { margin-top: 32px; }
.lot-section h2 { font-size: 20px; }
.params { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; margin: 0; }
.params div { display: flex; gap: 8px; align-items: baseline; }
.params dt { color: var(--muted); flex: none; }
.params dt::after { content: ":"; }
.params dd { margin: 0; }
.lot-text { font-size: 15px; line-height: 1.6; word-break: break-word; }
.lot-text p { margin: 0 0 .8em; }
.lot-address { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.lot-stats { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px; }
.lot-stats span { display: inline-flex; align-items: center; gap: 5px; }
.lot-price-mobile, .lot-actions-mobile { display: none; }
.lot-actions-mobile { grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }

.lot-side { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; }
.lot-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: #fff; }
.lot-buy { display: grid; gap: 10px; box-shadow: var(--shadow-sm); border-color: transparent; }
.lot-price { font-size: 30px; font-weight: 700; margin-bottom: 6px; }
.write-form { display: grid; gap: 8px; }
.quick-replies { display: flex; flex-wrap: wrap; gap: 6px; }
.quick-replies button { border: 1px solid var(--border); background: #fff; border-radius: 14px; padding: 4px 10px; font-size: 12.5px; cursor: pointer; }
.quick-replies button:hover { border-color: var(--accent); color: var(--accent); }
.seller { display: flex; align-items: center; gap: 12px; color: var(--text); }
.seller b { display: block; font-weight: 500; font-size: 16px; }
.seller small { color: var(--muted); }
.seller-link { display: flex; align-items: center; gap: 4px; margin-top: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, #6f95f6, #3c63d9); color: #fff; font-size: 22px; font-weight: 500; flex: none; }
.avatar-lg { width: 96px; height: 96px; font-size: 40px; }
.safety b, .tips b { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-bottom: 8px; }
.safety b .icon { color: var(--green); }
.safety ul, .tips ul { margin: 0; padding-left: 18px; color: var(--text-2); font-size: 13px; display: grid; gap: 6px; }

/* ------------------------------------------------------------- Форма подачи */

.form-page { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.form-page-side { position: sticky; top: calc(var(--header-h) + 16px); }
.form-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px 8px; margin-bottom: 18px; background: #fff; }
.form-card h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 16px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 14px; }
.fields-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.fields-grid .field-wide { grid-column: 1 / -1; }
.fields-grid:empty { display: none; }
.field-price { max-width: 260px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { display: inline-flex; height: 34px; align-items: center; padding: 0 14px; border-radius: 17px; border: 1px solid var(--border); cursor: pointer; }
.check-chip input:checked + span { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.check-chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(78, 125, 241, .25); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin-bottom: 16px; }
.photo-item, .photo-add { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item.deleted img { opacity: .3; }
.photo-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: flex; align-items: center; justify-content: center; cursor: pointer; color: #d23b3b; }
.photo-del input { position: absolute; opacity: 0; }
.photo-main { position: absolute; left: 6px; bottom: 6px; padding: 1px 8px; border-radius: 4px; background: var(--accent); color: #fff; font-size: 11px; }
.photo-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--border); color: var(--accent); cursor: pointer; font-size: 13px; transition: border-color .15s, background .15s; }
.photo-add:hover { border-color: var(--accent); background: var(--accent-soft); }
.photo-add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-new { outline: 2px solid var(--green); outline-offset: -2px; }
.form-submit { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-submit .muted { max-width: 460px; }

/* ------------------------------------------------------------- Кабинет */

.cabinet { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.cabinet-nav { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 16px); }
.cabinet-user { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--border-2); min-width: 0; }
.cabinet-user b { display: block; font-weight: 500; }
.cabinet-user small { color: var(--muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.cabinet-nav nav { display: grid; }
.cabinet-nav nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--radius); color: var(--text); }
.cabinet-nav nav a:hover { background: var(--bg-soft); color: var(--accent); }
.cabinet-nav nav a.active { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.pill { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; }
.pill-muted { background: var(--bg-soft-2); color: var(--muted); }
.cabinet-main h1 { margin-bottom: 18px; }

.status-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.status-tabs a { padding: 10px 14px; color: var(--text-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.status-tabs a span { color: var(--muted-2); margin-left: 4px; }
.status-tabs a.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 500; }
.my-lots { display: grid; gap: 14px; }
.my-ad { display: grid; grid-template-columns: 180px minmax(0, 1fr) auto; gap: 18px; border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; align-items: start; }
.my-lot-img { aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--bg-soft-2); }
.my-lot-img img { width: 100%; height: 100%; object-fit: cover; }
.my-lot-title { font-size: 16px; font-weight: 500; color: var(--text); }
.my-lot-price { font-size: 18px; font-weight: 700; margin: 4px 0 8px; }
.my-lot-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.my-lot-meta span { display: inline-flex; align-items: center; gap: 4px; }
.my-lot-reason { margin-top: 10px; padding: 8px 12px; border-radius: var(--radius); background: #fdeeee; color: #8e2424; font-size: 13px; }
.my-lot-note { margin-top: 10px; color: var(--muted); font-size: 13px; }
.my-lot-actions { display: grid; gap: 6px; justify-items: stretch; min-width: 170px; }
.my-lot-actions form { display: contents; }

/* Сообщения */
.chat { display: grid; grid-template-columns: 320px minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); height: min(680px, calc(100vh - 220px)); min-height: 440px; overflow: hidden; }
.chat-list { border-right: 1px solid var(--border); overflow-y: auto; }
.chat-item { display: flex; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border-2); color: var(--text); align-items: center; }
.chat-item:hover { background: var(--bg-soft); color: var(--text); }
.chat-item.active { background: var(--accent-soft); }
.chat-item.unread .chat-item-last { color: var(--text); font-weight: 500; }
.chat-thumb { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; background: var(--bg-soft-2); flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted-2); }
.chat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.chat-item-top { display: flex; justify-content: space-between; gap: 8px; }
.chat-item-top b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-top small { color: var(--muted-2); white-space: nowrap; }
.chat-item-ad, .chat-item-last { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-item-ad { color: var(--accent); }
.chat-item-last { color: var(--muted); }
.chat-empty, .chat-placeholder { padding: 40px 24px; text-align: center; color: var(--muted); }
.chat-empty .icon, .chat-placeholder .icon { width: 40px; height: 40px; color: var(--muted-2); }
.chat-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; }
.chat-window { display: flex; flex-direction: column; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.chat-head-info { display: grid; min-width: 0; }
.chat-head-info b { font-weight: 500; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-info small { color: var(--muted); }
.chat-back { display: none; color: var(--text); }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 74%; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg-bubble { padding: 9px 14px; border-radius: 14px 14px 14px 4px; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); word-break: break-word; }
.msg.mine .msg-bubble { background: var(--accent); color: #fff; border-radius: 14px 14px 4px 14px; }
.msg time { font-size: 11px; color: var(--muted-2); margin-top: 3px; }
.msg.fresh { animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } }
.chat-form { display: flex; gap: 10px; padding: 12px; border-top: 1px solid var(--border); align-items: flex-end; }
.chat-form textarea { min-height: 42px; height: 42px; max-height: 140px; resize: none; }
.chat-form .btn { height: 42px; width: 48px; padding: 0; flex: none; }

/* Продавец */
.seller-page { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.seller-card { text-align: center; display: grid; justify-items: center; gap: 6px; position: sticky; top: calc(var(--header-h) + 16px); }
.seller-card h1 { font-size: 22px; margin: 10px 0 0; }
.seller-about { color: var(--text-2); margin: 8px 0 0; }
.seller-stats { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin-top: 12px; border-top: 1px solid var(--border-2); padding-top: 12px; }
.seller-stats b { display: block; font-size: 22px; font-weight: 500; }
.seller-stats span { color: var(--muted); font-size: 12.5px; }

/* ------------------------------------------------------------- Страницы, вход */

.auth { max-width: 420px; margin: 40px auto; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.auth h1 { margin: 0; font-size: 26px; }
.auth .field { margin: 0; }
.rich { max-width: 860px; font-size: 15px; line-height: 1.65; }
.rich h1 { margin-top: 8px; }
.rich h2 { margin-top: 1.4em; }
.rich ul, .rich ol { padding-left: 22px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.contact-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: grid; gap: 12px; }
.contact-card div { display: flex; align-items: center; gap: 10px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { color: var(--text); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; gap: 6px; padding-bottom: 14px; }
.post-card:hover { box-shadow: var(--shadow); color: var(--text); }
.post-card .cover { aspect-ratio: 16 / 10; background: var(--bg-soft-2); }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card > :not(.cover) { padding: 0 14px; }
.post-card .date, .article .date { color: var(--muted); font-size: 13px; }
.article { max-width: 820px; }
.article .cover { border-radius: var(--radius); margin: 16px 0; }
.product-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.review { padding: 14px 0; border-bottom: 1px solid var(--border-2); }
.review-form { display: grid; gap: 4px; max-width: 560px; }

/* ------------------------------------------------------------- Подвал */

.footer { background: var(--navy); color: rgba(255, 255, 255, .72); margin-top: 56px; padding: 44px 0 20px; font-size: 13.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; font-weight: 500; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { color: rgba(255, 255, 255, .72); }
.footer a:hover { color: #fff; }
.footer .btn-accent { color: #fff; }
.footer-about p { margin: 14px 0 18px; max-width: 320px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 34px; padding-top: 18px; }

/* ------------------------------------------------------------- Нижняя панель */

.bottom-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -2px 15px rgba(32, 31, 36, .06); }
.bottom-bar-row { display: flex; height: 58px; align-items: stretch; }
.bottom-item { display: flex; align-items: center; gap: 8px; padding: 0 22px; color: var(--text); border-right: 1px solid var(--border-2); font-size: 13px; }
.bottom-item:hover { color: var(--accent); }
.bottom-menu { border: 0; border-right: 1px solid var(--border-2); background: none; color: var(--accent); cursor: pointer; display: none; }
.bottom-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--bg-soft-2); color: var(--muted); font-size: 11px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; }
.bottom-count.hot { background: var(--red); color: #fff; }
.bottom-add { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 0 0 0 22px; border-left: 1px solid var(--border-2); color: var(--text); font-weight: 500; }
.bottom-add-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--orange); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ------------------------------------------------------------- Меню, модалки, уведомления */

.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 40, .5); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); background: #fff; z-index: 100; transform: translateX(-100%); transition: transform .25s ease; display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 16px; }
.drawer-nav { overflow-y: auto; padding: 8px 0; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 9px 16px; color: var(--text); }
.drawer-nav hr { margin: 8px 16px; }

.modal { position: fixed; inset: 0; z-index: 120; background: rgba(20, 24, 40, .55); display: flex; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; }
.modal-box { position: relative; width: min(560px, 100%); background: #fff; border-radius: var(--radius-lg); padding: 26px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); animation: drop .2s ease; }
.modal-close { position: absolute; top: 14px; right: 14px; border: 0; background: none; cursor: pointer; color: var(--muted); }
.city-search { margin-bottom: 14px; }
.city-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; max-height: 50vh; overflow: auto; }
.city-list a { padding: 6px 8px; border-radius: 4px; color: var(--text); }
.city-list a:hover { background: var(--bg-soft); color: var(--accent); }
.city-list a.active { color: var(--accent); font-weight: 500; }

.toast { position: fixed; left: 50%; bottom: 80px; transform: translate(-50%, 20px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--radius); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #9db8ff; }

.admin-bar { position: fixed; right: 16px; bottom: 74px; z-index: 70; display: flex; gap: 10px; background: var(--navy); padding: 8px 14px; border-radius: var(--radius); font-size: 13px; box-shadow: var(--shadow); }
.admin-bar a { color: #fff; }

.empty-state-404 { font-size: clamp(72px, 12vw, 140px); font-weight: 700; color: var(--accent); line-height: 1; }

/* ------------------------------------------------------------- Адаптив */

@media (max-width: 1240px) {
    .lots-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .lots-grid-listing { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .lots-grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .home-banners { grid-template-columns: 1fr; }
    .promo-col { grid-template-columns: 1fr 1fr; }
    .catalog-btn span { display: none; }
}

@media (max-width: 1024px) {
    :root { --header-h: 64px; }
    .topline-nav { display: none; }
    .topline .container { justify-content: flex-end; }
    .burger { display: inline-flex; }
    .catalog-btn, .header-icons .round-btn:last-child { display: none; }
    .add-btn span { display: none; }
    .add-btn { width: 44px; padding: 0; }
    .logo { font-size: 22px; }
    .home-top { grid-template-columns: 1fr; }
    .side-catalog { display: none; }
    .listing-layout, .lot-layout, .form-page, .cabinet, .seller-page, .contact-grid { grid-template-columns: 1fr; }
    .filter-panel { position: fixed; top: 0; bottom: 0; left: 0; width: min(360px, 90vw); max-height: none; z-index: 100; background: #fff; padding: 0 16px 16px; transform: translateX(-105%); transition: transform .25s; align-content: start; gap: 12px; }
    .filter-panel.open { transform: none; box-shadow: var(--shadow); }
    .filter-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 4px; position: sticky; top: 0; background: #fff; z-index: 1; font-size: 16px; }
    .filter-btn { display: inline-flex; }
    .lot-side, .form-page-side, .cabinet-nav, .seller-card { position: static; }
    .cabinet-nav { order: 2; }
    .lots-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .bottom-menu { display: flex; }
}

@media (max-width: 760px) {
    h1 { font-size: 23px; }
    .topline { display: none; }
    .header-row { gap: 10px; }
    .logo span { display: none; }
    .search { margin: 0; }
    .header-icons { display: none; }
    .hero { grid-template-columns: 1fr; padding: 26px 20px; min-height: 0; }
    .hero h1 { font-size: 24px; }
    .hero-art { display: none; }
    .promo-col { grid-template-columns: 1fr; }
    .benefits { margin-top: 16px; }
    .benefit { padding: 14px 6px; gap: 2px; }
    .benefit b { font-size: 12.5px; }
    .benefit > span:last-child { display: none; }
    .benefit-ico { width: 40px; height: 40px; }
    .benefit-ico .icon { width: 19px; height: 19px; }
    .lot-actions-mobile { display: grid; }
    .lots-grid, .lots-grid-4, .lots-grid-3, .lots-grid-6, .lots-grid-listing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .lot-card-price { font-size: 16px; }
    .as-list .lot-card-img { width: 130px; }
    .as-list .fav-btn { left: 90px; }
    .as-list .lot-card-title { font-size: 14px; -webkit-line-clamp: 2; }
    .view-switch { display: none; }
    .listing-toolbar { flex-wrap: wrap; }
    .sort-tabs { margin-left: auto; }
    .cat-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-tile { padding: 10px; }
    .lot-title { font-size: 22px; }
    .lot-price-mobile { display: block; font-size: 26px; font-weight: 700; margin-top: 16px; }
    .lot-price { display: none; }
    .params { grid-template-columns: 1fr; }
    .fields-grid, .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 18px 16px 4px; }
    .my-ad { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }
    .my-lot-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); min-width: 0; }
    .chat { grid-template-columns: 1fr; height: calc(100vh - 180px); }
    .chat.has-dialog .chat-list { display: none; }
    .chat:not(.has-dialog) .chat-window { display: none; }
    .chat-back { display: inline-flex; }
    .city-list { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .posts { grid-template-columns: 1fr; }
    .bottom-item { flex-direction: column; justify-content: center; gap: 2px; padding: 0 8px; flex: 1; font-size: 10.5px; border-right: 0; position: relative; }
    .bottom-item .bottom-count { position: absolute; top: 6px; left: 50%; margin-left: 6px; height: 16px; min-width: 16px; font-size: 10px; padding: 0 4px; }
    .bottom-item .bottom-count:not(.hot) { display: none; }
    .bottom-add { padding: 0 6px; margin: 0; border: 0; flex: 1; flex-direction: column; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 400; }
    .bottom-add-ico { width: 28px; height: 28px; }
    .bottom-menu { flex: 1; justify-content: center; }
    .bottom-bar .container { padding: 0; }
}
