/* ЛОТСТОК — стекло на ночном изумруде.
   Цвета: ночь #06120e, изумруд #0d4d3a, мята #5fe0b5, золото #f0c35a, текст #e8f3ee, приглушённый #9bb7ab.
   Шрифты: Tektur (заголовки, количества, цены — как маркировка на ящиках), Inter (текст). */
@font-face { font-family: "Tektur"; src: url("../fonts/tektur-500.woff") format("woff"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-500.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-600.woff") format("woff"); font-weight: 600 700; font-display: swap; }

:root {
  --night: #06120e;
  --night-2: #0a1c16;
  --emerald: #0d4d3a;
  --mint: #5fe0b5;
  --gold: #f0c35a;
  --gold-deep: #d49b2c;
  --ink: #e8f3ee;
  --muted: #9bb7ab;
  --line: rgba(220, 255, 238, .14);
  --glass: linear-gradient(140deg, rgba(232, 255, 245, .10), rgba(232, 255, 245, .035) 60%);
  --glass-strong: linear-gradient(140deg, rgba(232, 255, 245, .15), rgba(232, 255, 245, .06) 60%);
  --r-panel: 28px;
  --r-card: 22px;
  --r-small: 12px;
  --display: "Tektur", "Inter", system-ui, sans-serif;
  --text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--night);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: rgba(240, 195, 90, .5); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.2vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.sr, .trap { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ym-pixel { position: absolute; left: -9999px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--gold); color: #1b1405; border-radius: 10px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

/* фон: три размытых пятна, через них работает стекло */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(1200px 700px at 80% -10%, #0e3a2d 0%, transparent 60%), var(--night); }
.aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora i:nth-child(1) { width: 620px; height: 620px; left: -160px; top: 120px; background: #0f6e52; }
.aurora i:nth-child(2) { width: 520px; height: 520px; right: -120px; top: 40px; background: #187c78; opacity: .38; }
.aurora i:nth-child(3) { width: 460px; height: 460px; left: 45%; top: 62%; background: #b07d1f; opacity: .22; }

.glass {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--r-card);
  -webkit-backdrop-filter: blur(20px) saturate(150%); backdrop-filter: blur(20px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 24px 60px -24px rgba(0, 0, 0, .6);
}

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px;
  border-radius: 999px; border: 1px solid transparent; font: 600 16px/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--wide { width: 100%; }
.btn--gold { color: #1d1505; background: linear-gradient(180deg, #f6d27a, var(--gold) 45%, var(--gold-deep));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 26px -10px rgba(240, 195, 90, .6); }
.btn--gold:hover { color: #1d1505; transform: translateY(-1px); }
.btn--glass { color: var(--ink); background: rgba(232, 255, 245, .07); border-color: var(--line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.btn--glass:hover { color: var(--ink); border-color: rgba(240, 195, 90, .55); }

/* шапка */
.top { position: sticky; top: 0; z-index: 20; padding: 14px 0; }
.top__bar { width: min(100% - 24px, 1220px); margin-inline: auto; display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 18px; border-radius: 999px; background: rgba(8, 26, 20, .55); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 20px/1 var(--display); letter-spacing: .06em; }
.brand img { flex: none; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 9px 13px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); background: rgba(232, 255, 245, .06); }
.nav a[aria-current="page"] { color: var(--ink); background: rgba(232, 255, 245, .1); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-content: center; gap: 4px; cursor: pointer; background: rgba(232, 255, 245, .08); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.menu__panel { position: absolute; right: 0; top: 54px; width: min(86vw, 320px); padding: 12px; display: grid; gap: 2px; background: rgba(8, 26, 20, .9); border-radius: 20px; }
.menu__panel a { padding: 12px 14px; border-radius: 12px; text-decoration: none; }
.menu__panel a:hover { background: rgba(232, 255, 245, .07); }
.menu__panel .btn { margin-top: 8px; }

/* главная: заголовок и «паллета» разделов */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 56px 0 72px; }
.hero__kicker { color: var(--mint); font-weight: 600; margin-bottom: 14px; }
.hero__title { font-size: clamp(42px, 6.4vw, 84px); line-height: .98; margin-bottom: 22px; }
.hero__lead { max-width: 34em; color: #c9ddd4; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.pallet { position: relative; display: grid; justify-items: center; gap: 10px; padding: 24px 8px 0; }
.pallet__photo { position: absolute; inset: 0 0 34px; width: 100%; height: calc(100% - 34px); object-fit: cover; border-radius: var(--r-panel); opacity: .45; }
.box { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name count" "short unit";
  column-gap: 16px; align-items: end; padding: 18px 22px; text-decoration: none; border-radius: 16px; background: var(--glass-strong);
  transition: transform .2s ease, border-color .2s ease; }
.box::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 18px; transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(240, 195, 90, .16), rgba(240, 195, 90, .05)); border-inline: 1px solid rgba(240, 195, 90, .18); pointer-events: none; }
.box > * { position: relative; }
.box:hover { transform: translateY(-3px); border-color: rgba(240, 195, 90, .6); color: var(--ink); }
.box--1 { width: 62%; }
.box--2 { width: 80%; }
.box--3 { width: 100%; padding-block: 26px; }
.box__name { grid-area: name; font: 500 clamp(18px, 2vw, 24px)/1.1 var(--display); }
.box__count { grid-area: count; font: 500 clamp(40px, 5vw, 64px)/.9 var(--display); color: var(--gold); text-align: right; }
.box__unit { grid-area: unit; color: var(--muted); font-size: 14px; text-align: right; }
.box__short { grid-area: short; color: var(--mint); font-size: 14px; }
.pallet__base { width: 104%; height: 26px; margin-top: 2px; display: flex; justify-content: space-between; padding: 0 6%;
  border-radius: 6px; background: linear-gradient(180deg, #8a6a3a, #5d4423); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7); }
.pallet__base i { width: 16%; height: 100%; background: rgba(0, 0, 0, .35); }
@media (prefers-reduced-motion: no-preference) {
  .box { animation: stack .7s cubic-bezier(.2, .8, .2, 1) both; }
  .box--1 { animation-delay: .32s; } .box--2 { animation-delay: .18s; } .box--3 { animation-delay: .04s; }
  @keyframes stack { from { opacity: 0; transform: translateY(-40px); } }
}

/* блоки разделов */
.block { padding: 36px 0; }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.block__head p { margin: 0; max-width: 46em; }
.block__head h2 { margin-bottom: 6px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty { padding: 26px 28px; margin: 0; }
.empty p:last-child { margin-bottom: 0; }

/* карточка лота */
.lot { display: flex; flex-direction: column; overflow: hidden; }
.lot__pic { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: rgba(0, 0, 0, .25); color: rgba(240, 195, 90, .55); }
.lot__pic img { width: 100%; height: 100%; object-fit: cover; }
.crate { width: 38%; }
.chip { position: absolute; left: 12px; top: 12px; padding: 5px 10px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: var(--ink); background: rgba(6, 18, 14, .62); border: 1px solid var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.chip--sold { color: #1d1505; background: var(--gold); border-color: transparent; }
.chip--big { font-size: 16px; padding: 8px 14px; }
.lot__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 20px; flex: 1; }
.lot__title { font: 600 18px/1.3 var(--text); letter-spacing: 0; margin: 0; }
.lot__title a { text-decoration: none; }
.lot__title a::after { content: ""; position: absolute; inset: 0; }
.lot { position: relative; }
.lot__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin: 0; }
.qty { font: 500 18px/1.1 var(--display); color: var(--mint); }
.lot__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lot__foot .btn { position: relative; z-index: 1; }
.price { font: 500 22px/1.1 var(--display); color: var(--gold); }

/* скупка на главной */
.buyout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; padding: 40px; border-radius: var(--r-panel);
  background: linear-gradient(140deg, rgba(240, 195, 90, .14), rgba(232, 255, 245, .04) 55%); }
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: rgba(6, 18, 14, .35); border: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  font: 500 22px/1 var(--display); color: #1d1505; background: var(--gold); }
.steps span { color: var(--muted); font-size: 15px; }
.steps--page { margin: 28px 0 32px; }

/* контакты */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 40px; border-radius: var(--r-panel); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 18px 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 500; text-align: right; }
.facts--big dd { text-align: left; font-size: 19px; }

/* формы заявок */
.lead { display: grid; gap: 14px; }
.lead__title { font-size: 24px; margin: 0; }
.lead__note { margin: -4px 0 4px; font-size: 15px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field em { font-style: normal; opacity: .75; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(4, 14, 10, .45);
  color: var(--ink); font: 400 16px/1.4 var(--text); }
.field input::placeholder, .field textarea::placeholder { color: rgba(155, 183, 171, .65); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(240, 195, 90, .2); }
.field--file input { padding: 10px; }
.lead__status { margin: 0; min-height: 1.2em; font-weight: 500; }
.lead__status.is-ok { color: var(--mint); }
.lead__status.is-err { color: #ffb3a1; }
.lead__legal { margin: 0; font-size: 13px; }
.lead.is-sent .field, .lead.is-sent button, .lead.is-sent .lead__legal { display: none; }

/* внутренние страницы */
.page { padding: 20px 0 64px; }
.narrow { width: min(100% - 40px, 680px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.crumbs a { text-decoration: none; }
.lead-text { font-size: 18px; max-width: 42em; }
.search { display: flex; gap: 8px; padding: 6px; margin: 24px 0 18px; border-radius: 999px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); padding: 0 16px; font: 400 16px var(--text); }
.search input:focus { outline: none; }
.search:focus-within { border-color: rgba(240, 195, 90, .6); }
.pager { display: flex; gap: 6px; margin-top: 28px; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; }
.pager a[aria-current="page"] { background: var(--gold); color: #1d1505; border-color: transparent; }
.others { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.panel { padding: 30px; border-radius: var(--r-panel); }
.panel h1 { font-size: clamp(30px, 4vw, 44px); }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.h-small { font-size: 22px; margin-top: 8px; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(232, 255, 245, .05); font-size: 15px; }

/* страница лота */
.lotpage { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr); gap: 28px; align-items: start; }
.gallery__main { position: relative; overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; color: rgba(240, 195, 90, .5); border-radius: var(--r-panel); }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: rgba(0, 0, 0, .3); }
.gallery__main .crate { width: 30%; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.thumb { flex: none; width: 96px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-on, .thumb:hover { border-color: var(--gold); opacity: 1; }
.videos { margin-top: 24px; display: grid; gap: 12px; }
.videos video { width: 100%; border-radius: var(--r-card); padding: 0; }
.buy { position: sticky; top: 96px; padding: 28px; border-radius: var(--r-panel); background: var(--glass-strong); }
.buy__title { font: 600 clamp(24px, 2.4vw, 30px)/1.2 var(--text); letter-spacing: -.01em; }
.buy__price { font: 500 clamp(30px, 3.4vw, 40px)/1 var(--display); color: var(--gold); margin: 4px 0 6px; }
.buy .facts { margin-bottom: 20px; column-gap: 0; }
.buy .facts dt, .buy .facts dd { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.buy .facts dd.qty { font-size: 20px; }
.files { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.file { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; text-decoration: none; }
.file__ext { min-width: 48px; padding: 6px 8px; border-radius: 8px; text-align: center; font: 500 13px/1 var(--display); color: #1d1505; background: var(--mint); }
.file__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.kupit summary { list-style: none; }
.kupit summary::-webkit-details-marker { display: none; }
.kupit[open] summary { display: none; }
.kupit .lead { margin-top: 4px; }
.buy__note { margin: 14px 0 0; font-size: 14px; }
.desc { margin-top: 28px; padding: 32px; border-radius: var(--r-panel); }

/* блог */
.post { overflow: hidden; display: flex; flex-direction: column; }
.post img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; }
.post__body { padding: 20px 22px 22px; }
.post__body h3, .post__title { font: 600 19px/1.3 var(--text); letter-spacing: 0; margin: 6px 0 8px; }
.post__body a { text-decoration: none; }
.post time { font-size: 14px; }
.article { padding: clamp(24px, 4vw, 48px); border-radius: var(--r-panel); max-width: 860px; }
.article__cover { border-radius: var(--r-card); margin: 18px 0 26px; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 26px; margin-top: 1.4em; }
.prose h3 { margin-top: 1.2em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--gold); }

/* подвал */
.foot { margin-top: 40px; padding: 48px 0 28px; border-top: 1px solid var(--line); background: rgba(4, 12, 9, .5); }
.foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot__grid nav, .foot__grid > div:last-child { display: grid; align-content: start; gap: 8px; }
.foot__grid a { text-decoration: none; color: var(--muted); }
.foot__grid a:hover { color: var(--gold); }
.foot__grid .brand { color: var(--ink); margin-bottom: 14px; }
.foot__h { font: 600 15px/1 var(--text); letter-spacing: 0; margin-bottom: 8px; }
.foot__note { margin-top: 32px; font-size: 13px; }

/* узкие экраны */
@media (max-width: 1060px) {
  .nav { display: none; }
  .menu { display: block; }
  .top__call { margin-left: auto; }
}
@media (max-width: 920px) {
  .hero, .buyout, .contact, .split, .lotpage { grid-template-columns: minmax(0, 1fr); }
  .hero { padding-top: 24px; gap: 36px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy { position: static; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .top { padding: 10px 0; }
  .top__call { display: none; }
  .menu { margin-left: auto; }
  .grid, .grid--2 { grid-template-columns: 1fr; }
  .block__head { flex-direction: column; align-items: flex-start; }
  .buyout, .contact, .panel, .desc, .buy { padding: 22px; }
  .box--1 { width: 74%; } .box--2 { width: 88%; }
  .facts dd { text-align: left; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 10px; }
  .buy .facts dt { border: 0; padding: 0; }
  .search { border-radius: 20px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(14, 40, 31, .92); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
.field input[type=file]::file-selector-button { margin-right: 12px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(232, 255, 245, .1); color: var(--ink); font: 600 14px var(--text); cursor: pointer; }
.demo-note { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 30; padding: 8px 16px; border-radius: 999px;
  font-size: 13px; color: #1d1505; background: var(--gold); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .6); }
