/* Локальная копия tbankrot.ru — стили (адаптация фирменной вёрстки). */
:root {
  --blue: #2a75bb;
  --blue-dark: #1f5e99;
  --green: #3aa93a;
  --red: #d94848;
  --yellow: #e0a12c;
  --gray: #8a94a0;
  --text: #24313d;
  --bg: #f4f6f9;
  --line: #e3e8ee;
  --radius: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--text); background: var(--bg);
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────────── */
.header { background: #fff; border-bottom: 1px solid var(--line); }
.header_row { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo img { display: block; }
.head_menu { display: flex; flex-wrap: wrap; gap: 2px 14px; flex: 1; }
.head_link { color: var(--text); font-size: 14px; padding: 6px 2px; white-space: nowrap; }
.head_link:hover { color: var(--blue); text-decoration: none; }
.head_link.active { color: var(--blue); border-bottom: 2px solid var(--blue); }
.header_actions { display: flex; align-items: center; gap: 12px; }
.reg_link { font-size: 14px; }
.login_button {
  border: 1px solid var(--blue); background: #fff; color: var(--blue);
  border-radius: var(--radius); padding: 7px 16px; font-size: 14px; cursor: pointer;
}
.login_button:hover { background: var(--blue); color: #fff; }

/* ── Поиск ──────────────────────────────────────────── */
.search_block { background: #fff; border-top: 1px solid var(--line); padding: 14px 0 16px; }
.search_row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.search_row2 { margin-top: 10px; }
.search_input_wrap { flex: 1 1 320px; }
.search_input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 14px; font-size: 15px;
}
.search_input:focus, .search_select:focus, .search_price:focus { outline: 2px solid #bcd7ef; border-color: var(--blue); }
.search_selects { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.search_select {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 9px 10px; font-size: 14px; background: #fff; max-width: 240px;
}
.search_price { width: 120px; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; }
.price_sep { color: var(--gray); }
.photo_check { font-size: 14px; display: inline-flex; gap: 6px; align-items: center; color: var(--gray); }
.search_button {
  background: var(--blue); border: none; color: #fff; border-radius: var(--radius);
  padding: 10px 22px; font-size: 15px; cursor: pointer;
}
.search_button:hover { background: var(--blue-dark); }

/* ── Контент ────────────────────────────────────────── */
.content { padding: 18px 16px 40px; }
.breadcrumbs { font-size: 13px; color: var(--gray); margin-bottom: 12px; }

.hero { text-align: center; padding: 26px 0 8px; }
.hero h1 { font-size: 28px; margin: 0 0 8px; }
.hero_sub { color: var(--gray); margin: 0 0 16px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 20px 0; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; color: var(--text); }
.tile:hover { text-decoration: none; border-color: var(--blue); }
.tile_n { font-size: 26px; font-weight: 700; color: var(--blue); }
.tile_t { color: var(--gray); font-size: 13px; }

.cats, .fresh, .runs_info { margin: 26px 0; }
.cats h2, .fresh h2, .runs_info h2 { font-size: 20px; margin: 0 0 12px; }
.cats_list { display: flex; flex-wrap: wrap; gap: 8px; }
.category_button {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  padding: 7px 14px; font-size: 14px; color: var(--text);
}
.category_button b { color: var(--blue); }
.category_button:hover { text-decoration: none; border-color: var(--blue); }

.result_head {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px 16px; margin-bottom: 12px; flex-wrap: wrap; gap: 8px;
}
.found b { color: var(--blue); }
.per_page { color: var(--gray); font-size: 14px; }
.per_page a { color: var(--gray); margin: 0 2px; }
.per_page a.active { color: var(--blue); font-weight: 700; }

/* ── Карточка лота ──────────────────────────────────── */
.lots_list { display: flex; flex-direction: column; gap: 12px; }
.lot {
  display: flex; gap: 16px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; align-items: stretch;
}
.lot:hover { border-color: #c4d6e8; box-shadow: 0 2px 10px rgba(30, 70, 120, .06); }
.lot_column { display: flex; flex-direction: column; }
.lot_photo_col { flex: 0 0 220px; }
.lot_photo {
  position: relative; display: block; width: 220px; height: 165px;
  border-radius: 6px; overflow: hidden; background: #edf1f5;
}
.lot_photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lot_photo.no-photo { display: flex; align-items: center; justify-content: center; }
.no_photo_label { color: var(--gray); font-size: 13px; }
.photo_cap {
  position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .6);
  color: #fff; font-size: 12px; border-radius: 10px; padding: 2px 8px;
}
.lot_body { flex: 1 1 auto; min-width: 0; gap: 4px; }
.lot_num { font-weight: 700; }
.lot_main_info { flex-direction: row; gap: 10px; align-items: center; }
.cat_icon { width: 18px; height: 18px; }
.lot_created { font-size: 12px; color: var(--gray); }
.lot_title { font-size: 16px; font-weight: 600; margin: 2px 0; }
.lot_title a { color: var(--text); }
.lot_title a:hover { color: var(--blue); }
.lot_description {
  color: #55606c; font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.lot_address_line { font-size: 13px; color: #55606c; margin-top: auto; padding-top: 6px; }
.address_label { color: var(--gray); }
.lot_prices { flex: 0 0 210px; align-items: flex-end; gap: 4px; }
.status_icon { font-size: 12px; font-weight: 600; border-radius: 4px; padding: 2px 8px; }
.status_icon.green { color: var(--green); background: #e8f6e8; }
.status_icon.red { color: var(--red); background: #fbecec; }
.status_icon.yellow { color: var(--yellow); background: #fdf4e0; }
.status_icon.gray { color: var(--gray); background: #eef1f4; }
.status_icon.big { font-size: 14px; align-self: flex-start; }
.current_price { font-size: 21px; font-weight: 700; margin-top: 8px; }
.old_price { color: var(--gray); text-decoration: line-through; font-size: 13px; }
.discount { color: var(--red); font-weight: 700; font-size: 13px; }
.lot_actions { margin-top: auto; padding-top: 10px; }
.button { display: inline-block; border-radius: var(--radius); padding: 9px 18px; font-size: 14px; cursor: pointer; border: 1px solid var(--blue); }
.button.fill { background: var(--blue); color: #fff; }
.button.fill:hover { background: var(--blue-dark); text-decoration: none; }
.button.stroke { background: #fff; color: var(--blue); }
.button.stroke:hover { background: #eef5fc; text-decoration: none; }

/* ── Пагинация ──────────────────────────────────────── */
.pagination { list-style: none; display: flex; gap: 6px; padding: 18px 0; margin: 0; flex-wrap: wrap; }
.pg_num, .pg_dots { padding: 6px 12px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; }
.pg_num:hover { border-color: var(--blue); text-decoration: none; }
.pg_num.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pg_dots { border: none; background: none; }

.lots_not_found_block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }
.lots_not_found_block p { color: var(--gray); }

/* ── Карточка лота (детали) ─────────────────────────── */
.lot_detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.detail_left { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; min-width: 0; }
.detail_gallery .gallery_main { display: block; border-radius: 6px; overflow: hidden; background: #edf1f5; }
.gallery_main img { width: 100%; max-height: 460px; object-fit: contain; display: block; }
.gallery_main.no-photo-detail { height: 260px; display: flex; align-items: center; justify-content: center; color: var(--gray); }
.gallery_thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gallery_thumbs img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.detail_desc { margin-top: 18px; }
.detail_desc h1 { font-size: 21px; margin: 0 0 10px; }
.gray { color: var(--gray); }
.detail_docs h3 { margin: 20px 0 8px; }
.detail_docs ul { margin: 0; padding-left: 20px; }
.detail_right { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; align-self: start; }
.detail_price { font-size: 26px; font-weight: 700; margin: 10px 0 2px; }
.detail_props { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 14px; }
.detail_props td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail_props td:first-child { color: var(--gray); width: 45%; }
.detail_btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.detail_source { margin-top: 12px; font-size: 13px; }
.similar { margin-top: 28px; }
.similar h2 { font-size: 20px; }

.static_page { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; text-align: center; }

/* ── Footer ─────────────────────────────────────────── */
.footer { background: #22303e; color: #cfd8e2; margin-top: 40px; }
.footer_row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; padding: 28px 16px; }
.footer_note { font-size: 13px; color: #90a0b0; }
.footer_links { display: flex; flex-direction: column; gap: 6px; }
.footer_links a { color: #cfd8e2; font-size: 14px; }
.footer_links a:hover { color: #fff; }
.footer_bottom { border-top: 1px solid #33475a; padding: 14px 16px; font-size: 12.5px; color: #7e8fa0; }

/* ── Адаптив ────────────────────────────────────────── */
@media (max-width: 900px) {
  .lot { flex-wrap: wrap; }
  .lot_photo_col, .lot_photo { flex-basis: 160px; width: 160px; height: 120px; }
  .lot_prices { flex-basis: 100%; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
  .lot_detail { grid-template-columns: 1fr; }
  .footer_row { grid-template-columns: 1fr; }
  .hide-mobile { display: none; }
}
