:root {
  --paper: #fbfaf6; --paper-2: #f3f0e7; --line: #e3ddcf;
  --ink: #1d231f; --muted: #6e6a60;
  --green: #104030; --green-2: #185840; --green-soft: #e4ece6;
  --gold: #a8844a; --gold-2: #c9a867; --red: #a8402f;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.wrap { width: min(1220px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: .005em; }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251,250,246,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; flex-shrink: 0; }
.brand span { display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--serif); font-size: 24px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.brand small { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 99px; color: var(--muted); font-weight: 500; font-size: 14px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.on { color: var(--green); background: var(--green-soft); }
.nav-acc { border: 1px solid var(--line); color: var(--ink) !important; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--line); margin-right: 7px; vertical-align: 1px; }
.nav-live.is-live .dot { animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
/* идут торги: «Зал торгов» мягко пульсирует. Цвет - фирменное золото, а не красный:
   красный «сильно стрёмно горит, раздражает» (Алексей 20.09.2026) */
.nav-live.is-live { color: #fff !important; background: var(--gold); font-weight: 700; animation: live-glow 1.8s ease-in-out infinite; }
.nav-live.is-live:hover { background: #94733d; }
.nav-live.is-live .dot { background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); }
@keyframes live-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(168,132,74,.5); } 50% { box-shadow: 0 0 0 7px rgba(168,132,74,0); } }
@media (prefers-reduced-motion: reduce) { .nav-live.is-live, .nav-live.is-live .dot { animation: none; } }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; border-radius: 99px;
  padding: 13px 22px; font-weight: 600; background: var(--green); color: #fff; transition: transform .15s, background .15s; }
.btn:hover { background: var(--green-2); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--green); border: 1px solid var(--green); }
.btn.ghost:hover { background: var(--green-soft); }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #95743d; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 99px; width: 38px; height: 38px; cursor: pointer; display: grid; place-items: center; color: var(--muted); }
.icon-btn.on { color: var(--red); border-color: #e7c7bf; }

/* главная */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 48px 0 36px; }
.eyebrow { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 14px 0 16px; color: var(--green); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 28px; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hero-meta b { font-size: 17px; font-weight: 600; }
.countdown { display: flex; gap: 10px; margin: 6px 0 26px; }
.countdown div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; text-align: center; min-width: 70px; }
.countdown b { font-family: var(--serif); font-size: 34px; line-height: 1; display: block; color: var(--green); }
.countdown small { font-size: 11px; color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 460px; }
.collage a { border-radius: var(--r); overflow: hidden; background: var(--paper-2); position: relative; }
.collage a:first-child { grid-row: span 2; }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.collage a:hover img { transform: scale(1.04); }
.collage span { position: absolute; left: 10px; bottom: 10px; background: rgba(16,64,48,.85); color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 99px; }

.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 10px 0 44px; }
.howto div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.howto b { font-family: var(--serif); font-size: 30px; color: var(--gold); display: block; line-height: 1; }
.howto h3 { font-size: 21px; margin: 8px 0 6px; }
.howto p { margin: 0; color: var(--muted); font-size: 14px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 8px 0 18px; position: sticky; top: 68px; background: var(--paper); padding: 10px 0; z-index: 5; }
.toolbar h2 { font-size: 34px; margin-right: auto; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; cursor: pointer; font-size: 14px; }
.chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.search, .select { border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 8px 14px; min-width: 0; }
.search { width: 220px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px -18px rgba(16,64,48,.35); transform: translateY(-2px); }
.card .ph { aspect-ratio: 1 / 1; background: var(--paper-2); display: grid; place-items: center; padding: 14px; position: relative; }
.card .ph img { max-height: 100%; object-fit: contain; }
.card .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .num { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card h3 { font-size: 20px; font-weight: 600; }
.card .price { margin-top: auto; display: flex; justify-content: space-between; align-items: end; padding-top: 8px; }
.card .price small { display: block; font-size: 11px; color: var(--muted); }
.card .price b { font-size: 17px; }
.badge { position: absolute; top: 10px; left: 10px; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--green); color: #fff; }
.badge.sold { background: var(--gold); }
.badge.unsold { background: #8b8577; }
.badge.open { background: #d2432e; }

/* лот */
.back { display: inline-flex; gap: 6px; color: var(--muted); margin: 22px 0 10px; }
.lot { display: grid; grid-template-columns: 1.15fr 1fr; gap: 44px; padding-bottom: 40px; }
.gallery .main { background: var(--paper-2); border-radius: var(--r); aspect-ratio: 1 / 1; display: grid; place-items: center; padding: 24px; cursor: zoom-in; }
.gallery .main img { max-height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { border: 2px solid transparent; border-radius: 10px; padding: 0; background: var(--paper-2); width: 76px; height: 76px; cursor: pointer; overflow: hidden; }
.thumbs button.on { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lot-side h1 { font-size: clamp(30px, 3.4vw, 44px); color: var(--green); margin: 8px 0 14px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin: 18px 0; }
.panel h3 { font-size: 22px; margin-bottom: 10px; }
.kv { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border: 0; }
.kv b { font-weight: 600; }
.big-price { font-family: var(--serif); font-size: 44px; line-height: 1; color: var(--green); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row select { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: #fff; }
.note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ok { background: var(--green-soft); color: var(--green); border-radius: 12px; padding: 12px 14px; font-weight: 500; }
.desc { font-size: 16px; line-height: 1.7; }
.desc p { margin: 0 0 12px; }
.pager { display: flex; justify-content: space-between; margin-top: 8px; }
.stats { display: flex; gap: 16px; color: var(--muted); font-size: 14px; }

/* зал торгов */
.live { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; padding: 28px 0 40px; }
.stage { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; position: relative; overflow: hidden; }
.stage .ph { background: var(--paper-2); border-radius: 14px; aspect-ratio: 4 / 3; display: grid; place-items: center; padding: 18px; }
.stage .ph img { max-height: 100%; object-fit: contain; }
.stage h2 { font-size: 30px; margin: 14px 4px 4px; color: var(--green); }
.onair { position: absolute; top: 28px; left: 28px; background: #d2432e; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .12em; padding: 5px 11px; border-radius: 99px; }
.console { display: flex; flex-direction: column; gap: 14px; }
.pricebox { background: var(--green); color: #fff; border-radius: 20px; padding: 24px; position: relative; overflow: hidden; }
.pricebox small { opacity: .75; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.pricebox .p { font-family: var(--serif); font-size: clamp(52px, 6vw, 76px); line-height: 1; margin: 8px 0 10px; transition: transform .25s; }
.pricebox .p.bump { animation: bump .45s; }
@keyframes bump { 30% { transform: scale(1.08); color: var(--gold-2); } }
.leader { font-size: 15px; opacity: .9; }
.leader.me { color: #b9f0c9; font-weight: 700; opacity: 1; }
.leader.lost { color: #ffc7bb; font-weight: 700; opacity: 1; }
.bidbtn { width: 100%; font-size: 20px; padding: 20px; border-radius: 18px; background: var(--gold); }
.bidbtn:hover { background: #95743d; }
.warn { text-align: center; font-family: var(--serif); font-size: 34px; color: var(--red); font-weight: 700; animation: shake .5s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.stamp { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stamp span { border: 5px solid var(--gold); color: var(--gold); font-family: var(--serif); font-size: 64px; font-weight: 700; padding: 6px 26px;
  transform: rotate(-12deg); background: rgba(251,250,246,.85); border-radius: 10px; animation: stamp .5s cubic-bezier(.2,1.4,.4,1); }
.stamp.unsold span { border-color: #8b8577; color: #8b8577; font-size: 48px; }
@keyframes stamp { from { transform: rotate(-12deg) scale(2.2); opacity: 0; } }
.feed { list-style: none; margin: 0; padding: 0; max-height: 230px; overflow: auto; }
.feed li { display: flex; justify-content: space-between; padding: 8px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed li:first-child { font-weight: 700; }
.feed li.mine { color: var(--green); }
.strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 14px; }
.strip a { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 12px; }
.strip img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.strip span { display: block; padding: 5px 7px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.waiting { text-align: center; padding: 60px 0; }
.waiting h1 { font-size: 46px; color: var(--green); margin: 10px 0; }
.waiting .countdown { justify-content: center; }

/* кабинет */
.acc { display: grid; grid-template-columns: 340px 1fr; gap: 28px; padding: 30px 0 44px; }
.paddle { background: var(--green); color: #fff; border-radius: 20px; padding: 24px; text-align: center; }
.paddle b { font-family: var(--serif); font-size: 84px; line-height: 1; display: block; color: var(--gold-2); }
.form { display: flex; flex-direction: column; gap: 10px; }
.form input { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.item h4 { margin: 0; font-weight: 600; font-size: 15px; }
.tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.empty { color: var(--muted); padding: 24px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 12px; }

.page { max-width: 820px; padding: 30px 0 50px; }
.page h1 { font-size: 46px; color: var(--green); margin-bottom: 18px; }
.page h3 { font-size: 26px; margin: 26px 0 8px; color: var(--green); }
table.steps { border-collapse: collapse; margin: 16px 0; background: #fff; }
table.steps td, table.steps th { border: 1px solid var(--line); padding: 7px 14px; text-align: left; }

.foot { border-top: 1px solid var(--line); margin-top: 20px; padding: 28px 0; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 220px 1fr 1fr; gap: 24px; align-items: center; }
.foot-logo { width: 200px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px;
  border-radius: 12px; opacity: 0; transition: .25s; z-index: 50; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.lightbox { position: fixed; inset: 0; background: rgba(12,20,16,.92); display: grid; place-items: center; z-index: 60; cursor: zoom-out; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 94vh; max-width: 94vw; object-fit: contain; }
/* крестик: без него фото закрывали кнопкой «назад» браузера (замечание Алексея 18.09.2026) */
.lb-close { position: fixed; top: 14px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-size: 34px; line-height: 44px; cursor: pointer; z-index: 61; }
.lb-close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 900px) {
  .hero, .lot, .live, .acc { grid-template-columns: 1fr; gap: 24px; }
  .collage { height: 320px; }
  .howto { grid-template-columns: 1fr 1fr; }
  .nav a { padding: 7px 8px; font-size: 13px; }
  .nav a[data-nav="rules"], .brand small { display: none; }
  .strip { grid-template-columns: repeat(3, 1fr); }
  .foot-in { grid-template-columns: 1fr; }
  .search { width: 100%; }
}
@media (max-width: 560px) {
  /* телефон: логотип первой строкой, меню второй строкой с прокруткой вбок - ничего не сжимается (20.09.2026) */
  .top-in { flex-wrap: wrap; height: auto; padding: 8px 0 6px; row-gap: 4px; }
  .brand img { height: 34px; }
  .brand small { display: block; font-size: 9px; }
  .nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; margin: 0 -4px; padding: 2px 4px 4px; }
  .nav::-webkit-scrollbar { display: none; }
  /* затухание у правого края строки меню - подсказка, что она прокручивается (маска на .nav прятала «Войти») */
  .top-in::after { content: ""; position: absolute; right: 0; bottom: 6px; width: 40px; height: 40px; background: linear-gradient(90deg, rgba(251,250,246,0), #fbfaf6); pointer-events: none; }
  .nav a { white-space: nowrap; flex-shrink: 0; }
  /* «Войти» не прячем в конец прокрутки: ставим в первую строку, справа от логотипа */
  .top-in { position: relative; }
  .nav-acc { position: absolute; top: 10px; right: 0; background: var(--paper, #fbfaf6); }
  .nav { padding-right: 8px; }
  .nav a[data-nav="results"], .nav a[data-nav="rules"] { display: inline-block; }
  .howto { grid-template-columns: 1fr; }
  .toolbar { position: static; }
}

/* ваш лот скоро */
.soon { display: flex; gap: 12px; align-items: center; background: #fff6e2; border: 1px solid var(--gold-2); border-radius: 14px; padding: 10px 12px; animation: shake .5s; }
.soon img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; }
.soon span { display: flex; flex-direction: column; font-size: 13px; color: var(--muted); }
.soon b { font-family: var(--serif); font-size: 22px; color: var(--green); line-height: 1.1; }

.card.is-open { border-color: #d2432e; box-shadow: 0 0 0 2px rgba(210,67,46,.25); }
.badge.open { animation: pulse 1.6s infinite; }

/* вход и регистрация */
.auth { max-width: 460px; margin: 0 auto; padding: 34px 0 50px; }
.auth h1 { font-size: 40px; color: var(--green); margin: 14px 0 6px; }
.auth-tabs { justify-content: center; }

.thumbs button.int { border-color: var(--green); }

/* приём лотов */
.submit { display: grid; grid-template-columns: 1fr 470px; gap: 40px; padding: 34px 0 50px; align-items: start; }
.submit h1 { font-size: clamp(34px, 4vw, 50px); color: var(--green); margin: 12px 0 14px; }
.submit .howto { grid-template-columns: 1fr 1fr; }
.submit .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.submit select, .submit textarea { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; font: inherit; width: 100%; }
.submit .file { border: 1px dashed var(--gold); border-radius: 12px; padding: 16px; text-align: center; cursor: pointer; color: var(--green); background: #fffdf7; }
.submit .file input { display: none; }
.submit-ok { max-width: 620px; padding: 40px 0 60px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
@media (max-width: 900px) { .submit { grid-template-columns: 1fr; } .submit .howto, .submit .two { grid-template-columns: 1fr; } }

.submit .checks { display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); border-radius: 12px; padding: 12px 14px; }
.submit .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }

/* примерка и работы автора */
.modal { position: fixed; inset: 0; background: rgba(16,20,18,.72); display: grid; place-items: center; z-index: 70; padding: 16px; }
.modal-in { background: var(--paper); border-radius: 18px; padding: 22px; position: relative; max-width: min(900px, 96vw); max-height: 94vh; overflow: auto; }
.modal-in h3 { font-size: 26px; color: var(--green); margin-bottom: 12px; }
.modal-x { position: absolute; right: 12px; top: 10px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.frame-c, .wall-c { width: 100%; height: auto; border-radius: 12px; background: var(--paper-2); touch-action: none; }
.frame-row { margin: 12px 0 4px; flex-wrap: wrap; }
.wall-steps { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--muted); }
.author-more { margin: 24px 0 8px; border-top: 1px solid var(--line); padding-top: 16px; }
.author-row { display: flex; gap: 10px; overflow: auto; padding-top: 10px; }
.author-row a { flex: 0 0 96px; }
.author-row img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.author-row span { display: block; font-size: 12px; color: var(--muted); padding-top: 4px; }
.author-row b { display: block; color: var(--ink); font-size: 13px; }
.reserve { margin-top: 10px; font-size: 14px; padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.14); }
.reserve.met { background: rgba(185,240,201,.25); color: #b9f0c9; font-weight: 600; }
.reserve.one_step { background: rgba(255,214,150,.2); color: #ffd89a; font-weight: 600; }

/* прямой эфир */
.stream { border-radius: 16px; overflow: hidden; background: #0d120f; margin-bottom: 12px; }
.stream iframe { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.stream-note { font-size: 13px; color: var(--muted); padding: 8px 12px; background: #fff; }

/* чат зала и статус участника */
.feed.chat { max-height: 200px; }
.feed.chat li { display: block; padding: 6px 2px; }
.feed.chat li.house { color: var(--green); font-weight: 600; }
.feed.chat li.mine b { color: var(--gold); }
.panel.status-new { border-color: var(--gold-2); background: #fffdf6; }
.panel.status-blocked { border-color: #e7c7bf; background: #fff7f5; }
.panel.status-verified { border-color: #cfe6d6; }
/* галочка согласия на обработку ПДн: отдельная, пустая по умолчанию (152-ФЗ, ред. 156-ФЗ) */
.check.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; line-height: 1.4; }
.check.consent input { margin-top: 3px; flex: none; }
