/* «Выкуп Банкротник» (решение пользователя 14.11.2026): светлый спокойный стиль в цветах бренда — чёрный, золото, красный акцент «Б». */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('/assets/fonts/jetbrains-mono-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+20BD, U+2013, U+2014; }
:root {
  --page: #F7F4EE; --surface: #FFFFFF; --surface-2: #FBF9F5; --ink: #17140F; --muted: #6E665B; --faint: #9A9184;
  --line: #E7E0D4; --line-strong: #D6CCBB;
  --gold: #A9822F; --gold-ink: #7E5F1C; --gold-soft: #F4ECDA; --gold-line: #E2CF9F;
  --red: #B3261E; --red-soft: #FBEAE8;
  --amber: #9A5B00; --amber-soft: #FFF1D9; --grey-soft: #EEEBE6;
  --black: #121110;
  --radius: 16px; --shadow: 0 1px 2px rgba(23, 20, 15, .04), 0 12px 32px -18px rgba(23, 20, 15, .22);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif; --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --w: 1200px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.55 var(--font); }
a { color: var(--gold-ink); }
img { display: block; max-width: 100%; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.015em; margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 var(--gutter); }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }

/* Шапка */
.top { position: sticky; top: 0; z-index: 20; background: var(--black); color: #F3EFE7; border-bottom: 1px solid #2A2722; }
.top-inner { max-width: var(--w); margin: 0 auto; padding: 12px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; text-decoration: none; color: inherit; }
.brand-kicker { font-size: .68rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: #D7B46A; }
.brand-name { font-size: 1.35rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #F3EFE7; }
.brand-name b { color: #E0453B; font-weight: 800; }
.top-nav { display: flex; align-items: center; gap: 4px; }
.top-nav a { color: #D9D3C8; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: .92rem; }
.top-nav a:hover, .top-nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .08); }
.top-nav .top-cta { background: #D7B46A; color: var(--black); font-weight: 600; }
.top-nav .top-cta:hover { background: #E5C47E; color: var(--black); }
@media (max-width: 640px) { .top-nav a:not(.top-cta) { display: none; } .top-nav .top-cta { padding: 8px 10px; font-size: .85rem; } .brand-name { font-size: 1.1rem; } }

main { min-height: 60vh; outline: none; }
.loading, .empty { color: var(--muted); padding: 48px 0; text-align: center; }

/* Первый экран */
.hero { padding: clamp(36px, 7vw, 84px) 0 clamp(28px, 5vw, 56px); border-bottom: 1px solid var(--line); background: radial-gradient(900px 320px at 85% 0%, var(--gold-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
.eyebrow { margin: 0 0 14px; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-ink); }
.hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-weight: 800; max-width: 16ch; }
.hero-lead { margin: 18px 0 0; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--muted); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; background: var(--black); color: #fff; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.button:hover { background: #2A2621; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { background: var(--surface); }
.button:disabled { opacity: .6; cursor: wait; }
.fee-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fee-card h2 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.fee-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.fee-table th, .fee-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.fee-table th { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.fee-table td + td, .fee-table th + th { text-align: right; padding-left: 12px; }
.fee-table tr:last-child td { border-bottom: 0; }
.fee-note { margin: 12px 0 0; font-size: .82rem; color: var(--muted); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* Шаги */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); font-weight: 800; }
.section-head p { margin: 8px 0 0; color: var(--muted); max-width: 60ch; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.steps li::before { content: '0' counter(step); display: block; font-family: var(--mono); font-size: .8rem; color: var(--gold); margin-bottom: 10px; }
.steps b { display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Каталог */
.catalog { border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-bottom: 18px; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tab { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: .9rem; cursor: pointer; color: var(--ink); }
.tab:hover { border-color: var(--gold-line); }
.tab[aria-pressed="true"] { background: var(--black); border-color: var(--black); color: #fff; }
.tab small { margin-left: 6px; font-family: var(--mono); color: var(--faint); }
.tab[aria-pressed="true"] small { color: #D7B46A; }
.filter-tools { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.field { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 10px; padding: 9px 12px; min-height: 42px; }
.field:focus { outline: 2px solid var(--gold-line); border-color: var(--gold); }
.search { width: min(260px, 100%); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--black); }
@media (max-width: 720px) { .tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; width: 100%; scrollbar-width: none; } .tab { flex: none; } .filter-tools { margin-left: 0; width: 100%; } .search { flex: 1; width: auto; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; }
.card:hover { border-color: var(--gold-line); box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--grey-soft); overflow: hidden; }
.card-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-photo .badges { position: absolute; left: 10px; top: 10px; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-meta { font-size: .78rem; color: var(--faint); display: flex; gap: 8px; flex-wrap: wrap; }
.card-name { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.card-price { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.card-price .num { font-size: 1.08rem; font-weight: 700; white-space: normal; }
.card-price small { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; }
.card.is-muted .card-photo img { filter: grayscale(.6); opacity: .75; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.badge.reserved { background: var(--amber-soft); color: var(--amber); border-color: #F2D7A6; }
.badge.bought { background: var(--grey-soft); color: var(--muted); border-color: var(--line-strong); }
.badge.encumbered { background: var(--red-soft); color: var(--red); border-color: #F1C9C5; }
.badge.free { background: #EAF5EC; color: #276738; border-color: #CBE5D0; }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* Страница лота */
.crumbs { padding: 20px 0 0; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.lot-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding: 18px 0 56px; }
.lot-layout > * { min-width: 0; }
@media (max-width: 900px) { .lot-layout { grid-template-columns: 1fr; } }
.gallery-main { position: relative; aspect-ratio: 4 / 3; background: var(--grey-soft); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; background: #1A1916; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); cursor: pointer; font-size: 1.2rem; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.gallery-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 9px; border-radius: 8px; background: rgba(18, 17, 16, .7); color: #fff; font-family: var(--mono); font-size: .76rem; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: thin; }
.thumbs button { flex: none; width: 84px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--grey-soft); }
.thumbs button[aria-current="true"] { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lot-title { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); font-weight: 800; margin: 10px 0 6px; }
.lot-sub { color: var(--muted); margin: 0 0 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 14px; }
.panel h2 { font-size: 1.05rem; font-weight: 700; margin-bottom: 12px; }
.price-big { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); font-weight: 700; white-space: normal; }
.price-label { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px; }
.price-hint { margin: 8px 0 0; font-size: .88rem; color: var(--muted); }
.rows { margin: 14px 0 0; border-top: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.row span:first-child { color: var(--muted); }
.row.total { font-weight: 700; border-bottom: 0; }
.row.total span:first-child { color: var(--ink); }
.notice { padding: 12px 14px; border-radius: 12px; font-size: .92rem; margin: 0 0 14px; }
.notice.reserved { background: var(--amber-soft); color: var(--amber); }
.notice.bought { background: var(--grey-soft); color: var(--muted); }
.encumbrance-list { margin: 0; padding: 0; list-style: none; }
.encumbrance-list li { padding: 8px 0 8px 22px; position: relative; }
.encumbrance-list li::before { content: ''; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.description { white-space: pre-line; color: #3A352E; font-size: .95rem; }
.details { width: 100%; border-collapse: collapse; font-size: .92rem; margin-top: 12px; }
.details th, .details td { padding: 8px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.details th { color: var(--muted); font-weight: 500; width: 45%; padding-right: 12px; }
.details caption { text-align: left; font-weight: 700; padding: 14px 0 4px; }

/* Форма заявки */
.request { display: grid; gap: 12px; }
.request label { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.request textarea { min-height: 84px; resize: vertical; }
.request .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .84rem; color: var(--muted); }
.request .consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--black); }
.request .trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red); font-size: .9rem; margin: 0; }
.form-ok { background: #EAF5EC; color: #276738; border-radius: 12px; padding: 14px; margin: 0; }
.request-section { border-top: 1px solid var(--line); scroll-margin-top: 70px; }
.request-section .panel { max-width: 640px; }

/* Обременения */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 820px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 80px; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.info-card p { margin: 8px 0 0; color: #3A352E; font-size: .95rem; }
.info-card .term { display: inline-flex; gap: 8px; align-items: baseline; margin-top: 14px; padding: 8px 12px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-ink); font-size: .9rem; }
.info-card .term b { font-weight: 600; }
.info-card dt { font-weight: 600; margin-top: 12px; font-size: .9rem; }
.info-card dd { margin: 4px 0 0; color: #3A352E; font-size: .93rem; }
.disclaimer { margin-top: 20px; color: var(--muted); font-size: .88rem; max-width: 80ch; }
.page-head { padding: clamp(30px, 5vw, 60px) 0 8px; }
.page-head h1 { font-size: clamp(1.8rem, 1.3rem + 2vw, 2.8rem); font-weight: 800; max-width: 22ch; }
.page-head p { color: var(--muted); max-width: 64ch; margin: 14px 0 0; font-size: 1.05rem; }
.checklist { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.checklist li { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .92rem; }
.checklist b { display: block; margin-bottom: 4px; }

/* Подвал */
.foot { background: var(--black); color: #CFC8BC; margin-top: 24px; }
.foot-inner { max-width: var(--w); margin: 0 auto; padding: 32px var(--gutter); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: .9rem; }
.foot-inner p { margin: 8px 0 0; max-width: 46ch; color: #A39B8E; }
.foot-inner b { color: #F3EFE7; }
.foot nav { display: grid; gap: 6px; }
.foot nav a { color: #E3DCCF; text-decoration: none; }
.foot nav a:hover { color: #D7B46A; }

/* Политика */
.policy { max-width: 75ch; padding: 32px var(--gutter) 56px; margin: 0 auto; }
.policy h1 { font-size: 2rem; margin-bottom: 10px; }
.policy h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.policy p, .policy li { color: #3A352E; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
.gap { height: 18px; }
@media (min-width: 901px) { .lot-layout { grid-template-rows: auto 1fr; row-gap: 18px; } .lot-aside { grid-column: 2; grid-row: 1 / span 2; } .lot-about { grid-column: 1; grid-row: 2; } }
