:root {
  --bg: #07040f;
  --surface: #0f0a1c;
  --surface-2: #150e27;
  --surface-3: #1c1333;
  --line: rgba(167, 139, 250, 0.14);
  --line-2: rgba(167, 139, 250, 0.28);
  --text: #f3effc;
  --muted: #a99fc2;
  --accent: #8b5cf6;
  --accent-2: #6d28d9;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --glow: rgba(124, 58, 237, 0.32);
  --font: "Inter", system-ui, sans-serif;
  --display: "Outfit", "Inter", system-ui, sans-serif;
  --max: 1120px;
  --gutter: clamp(18px, 4vw, 32px);
  --radius: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid #c4b5fd; outline-offset: 3px; border-radius: 10px; }
html[lang="en"] [data-l="ru"],
html[lang="ru"] [data-l="en"] { display: none !important; }

.atmos { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.atmos i { position: absolute; border-radius: 50%; }
.atmos i:first-child {
  width: 62vw; height: 62vw; left: -20vw; top: -24vw;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.34), transparent 64%);
}
.atmos i:last-child {
  width: 50vw; height: 50vw; right: -16vw; top: 18vh;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.18), transparent 64%);
}

.dock {
  position: sticky; top: 0; z-index: 40;
  padding: 12px var(--gutter) 0;
}
.dock__bar {
  max-width: var(--max);
  margin: 0 auto;
  height: 58px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(15, 10, 28, 0.72);
  backdrop-filter: blur(22px) saturate(1.4);
}
.brand { display: flex; align-items: center; gap: 10px; font: 700 18px/1 var(--display); letter-spacing: -0.02em; }
.brand svg { display: block; }
.nav { margin-left: auto; display: flex; align-items: center; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--accent-soft); }
.lang, .menu {
  height: 42px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--accent-soft);
}
.lang { padding: 0 14px; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; }
.lang:hover, .menu:hover { background: rgba(139, 92, 246, 0.26); }
.menu { display: none; width: 42px; position: relative; }
.menu i { position: absolute; left: 12px; right: 12px; height: 2px; background: #ddd6fe; border-radius: 2px; }
.menu i:first-child { top: 16px; }
.menu i:last-child { top: 24px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 72px 0 36px; }
.eyebrow { color: var(--muted); font-size: 14px; letter-spacing: 0.01em; }
.hero h1 {
  margin-top: 14px;
  font: 800 clamp(64px, 9vw, 112px)/0.88 var(--display);
  letter-spacing: -0.045em;
}
.tag { margin-top: 18px; font: 600 clamp(28px, 4vw, 42px)/1.05 var(--display); letter-spacing: -0.03em; }
.lead { margin-top: 16px; max-width: 520px; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 18px; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; transition: transform 0.25s var(--ease), background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--solid { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; box-shadow: 0 8px 28px var(--glow); }
.btn--solid:hover { background: linear-gradient(135deg, #9d75f8, #7c3aed); }
.btn--glass { border-color: var(--line-2); background: var(--accent-soft); }
.btn--glass:hover { background: rgba(139, 92, 246, 0.24); }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13px; }

.stats { display: flex; gap: 28px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.stats b { display: block; font: 700 22px/1.1 var(--display); letter-spacing: -0.03em; }
.stats span { color: var(--muted); font-size: 13px; }

.ticket {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.16), rgba(139, 92, 246, 0.04));
  padding: 22px;
  box-shadow: 0 30px 80px rgba(60, 20, 140, 0.35);
}
.ticket__top, .ticket__row { display: flex; justify-content: space-between; gap: 12px; }
.ticket__top { color: var(--muted); font-size: 13px; margin-bottom: 22px; }
.ticket__body { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.ticket__stock p { margin-top: 6px; }
.ticket__rate { display: flex; flex-direction: column; gap: 3px; min-width: 118px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.035); }
.ticket__rate-label { color: var(--muted); font-size: 11px; }
.ticket__rate b { font: 600 19px/1.1 var(--display); white-space: nowrap; }
.ticket__rate small { color: var(--muted); font-size: 11px; }
.ticket strong { font: 700 42px/1 var(--display); letter-spacing: -0.04em; }
.ticket__row { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.ticket__row span { color: var(--muted); }
.pill {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px;
  border-radius: 999px; background: rgba(139, 92, 246, 0.22); color: #ddd6fe; font-size: 12px;
}

section { padding: 72px 0; }
.section__head { max-width: 640px; margin-bottom: 28px; }
.section__head h2 { font: 700 clamp(32px, 4vw, 48px)/1.05 var(--display); letter-spacing: -0.035em; }
.section__head p { margin-top: 10px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pack, .step, .faq, .panel, .order-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), rgba(139, 92, 246, 0.02));
  border-radius: var(--radius);
}
.pack {
  text-align: left; padding: 20px; min-height: 210px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s, background 0.2s, transform 0.3s var(--ease);
}
.pack:hover { border-color: var(--line-2); transform: translateY(-2px); }
.pack--unavailable, .pack--unavailable:hover {
  opacity: .48; filter: saturate(.55); cursor: not-allowed; transform: none; box-shadow: none;
  border-color: var(--line);
}
.pack__status { color: var(--muted); font-size: 13px; font-weight: 600; }
.pack.is-on { background: linear-gradient(145deg, #8b5cf6, #5b21b6); color: #fff; border-color: #a78bfa; box-shadow: 0 14px 40px var(--glow); }
.pack.is-on .muted { color: #e9ddff; }
.pack b { font: 700 28px/1 var(--display); letter-spacing: -0.04em; }
.pack .price { margin-top: auto; font: 600 20px/1 var(--display); }
.muted { color: var(--muted); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 22px; min-height: 180px; }
.step em { font-style: normal; color: var(--muted); font: 700 13px/1 var(--display); letter-spacing: 0.12em; }
.step h3 { margin: 18px 0 8px; font: 600 22px/1.15 var(--display); letter-spacing: -0.03em; }
.step p { color: var(--muted); font-size: 14px; }

.order { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: start; }
.panel { padding: 28px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.field span { font-size: 13px; color: var(--muted); }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 16px;
  background: #05030c; padding: 14px 16px; outline: none;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: #a78bfa; box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.22); }
.amount__row { display: grid; grid-template-columns: 1fr 120px; gap: 14px; align-items: center; }
.amount__row input[type="range"] { padding: 0; border: 0; background: none; height: 28px; accent-color: #a78bfa; cursor: pointer; }
.amount__row input[name="amount"] { text-align: right; font-weight: 600; }
.amount__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__foot { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 18px; }
.quote b { font: 700 28px/1 var(--display); letter-spacing: -0.04em; }
.quote span, .fine { color: var(--muted); font-size: 13px; }
.fine { margin-top: 12px; }
.error { min-height: 1.2em; margin-top: 10px; color: #f0c8c8; font-size: 14px; }
.success { display: none; }
.success.is-on { display: block; }
.form.is-done { display: none; }

.faq { padding: 6px 22px; margin-top: 10px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); padding-bottom: 16px; }

.site-foot { padding: 28px 0 48px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }

.drawer { position: fixed; inset: 0; z-index: 60; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; transition: opacity 0.3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw);
  background: #0f0a1c; border-left: 1px solid var(--line); padding: 18px;
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer a, .drawer button.linkish { padding: 14px 8px; text-align: left; font-size: 18px; border-radius: 12px; }
.drawer a:hover { background: var(--accent-soft); }

.orders { display: flex; flex-direction: column; gap: 12px; }
.order-card { padding: 18px 20px; display: grid; grid-template-columns: 1.3fr 0.8fr auto; gap: 12px; align-items: center; }
.order-card h3 { font: 650 20px/1.2 var(--display); }
.order-card p { color: var(--muted); font-size: 14px; }
.status { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.login { max-width: 420px; margin: 12vh auto; }

@media (max-width: 980px) {
  .hero, .order, .grid, .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .menu { display: inline-block; }
}
@media (max-width: 720px) {
  .hero, .order, .grid, .steps, .order-card, .row2, .form__foot, .site-foot { grid-template-columns: 1fr; display: grid; }
  .hero { padding-top: 42px; }
  .hero h1 { font-size: 72px; }
  .form__foot, .site-foot { display: flex; flex-direction: column; align-items: stretch; }
  .stats { flex-direction: column; gap: 14px; }
}

.notice { margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 20px; background: rgba(139, 92, 246, 0.12); }
.notice b { font: 600 15px/1.2 var(--display); }
.notice p { margin-top: 6px; color: var(--text); font-size: 15px; }
#wait { font-variant-numeric: tabular-nums; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.my-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.my-card { grid-template-columns: 1.2fr 0.8fr auto; }
.badge { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: rgba(139, 92, 246, 0.2); color: #ddd6fe; font-size: 13px; font-weight: 600; }
.badge--done { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.badge--bad { background: transparent; border: 1px solid var(--line-2); }

input[readonly] { opacity: 0.75; cursor: default; }
.auth { max-width: 460px; margin: 4vh auto; }
.tabs { display: flex; gap: 6px; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, 0.25); }
.tab { flex: 1; height: 40px; border-radius: 999px; color: var(--muted); font-weight: 600; transition: background 0.2s, color 0.2s; }
.tab.is-on { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; }
.sub { margin: 4px 0 14px; font: 600 22px/1.2 var(--display); letter-spacing: -0.03em; }
.gate .lead { font-size: 16px; }
[hidden] { display: none !important; }
.tglink { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 20px; background: var(--accent-soft); }
.tglink b { font: 600 16px/1.2 var(--display); }
.tglink p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; }
.tglink p.fine { margin: 10px 0 0; }
.tglink a { color: #c4b5fd; text-decoration: underline; }
.my-card .reason { margin-top: 6px; color: var(--text); }

/* --- аукцион --- */
.notice--warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.08); margin: 0 0 22px; }
.notice--warn b { color: #fcd34d; }
.notice--warn p + p { margin-top: 4px; }
.tabs--wide { margin-bottom: 22px; overflow-x: auto; }
.tabs--wide .tab { min-width: max-content; padding: 0 16px; position: relative; }
.dot { display: inline-block; width: 9px; height: 9px; margin-left: 8px; border-radius: 50%; background: #f472b6; box-shadow: 0 0 10px #f472b6; vertical-align: middle; }
.dot[hidden] { display: none; }
.small { font-size: 13px; }
.pad { padding: 14px; }
.gate-login { padding: 22px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--accent-soft); }

.lots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lot { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(139, 92, 246, 0.07), rgba(139, 92, 246, 0.02)); overflow: hidden; transition: border-color 0.2s, transform 0.3s var(--ease); }
.lot:hover { border-color: var(--line-2); transform: translateY(-2px); }
.lot__img { display: grid; place-items: center; aspect-ratio: 4 / 3; background: #05030c; overflow: hidden; }
.lot__img img { width: 100%; height: 100%; object-fit: cover; }
.lot__img--empty { font-size: 54px; color: rgba(167, 139, 250, 0.5); }
.lot__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; align-items: flex-start; flex: 1; }
.lot__body h3 { font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.lot__price { font: 700 22px/1 var(--display); letter-spacing: -0.03em; color: #c4b5fd; }
.lot__body .btn, .lot__body .badge { margin-top: auto; }

.lotform { max-width: 560px; }
.preview { margin-top: 10px; max-height: 220px; width: auto; border-radius: 16px; border: 1px solid var(--line-2); }

.chat { display: grid; grid-template-columns: 300px 1fr; gap: 14px; min-height: 520px; }
.chat__list { display: flex; flex-direction: column; gap: 8px; align-content: start; }
.thread { position: relative; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 20px; background: rgba(139, 92, 246, 0.05); }
.thread:hover { border-color: var(--line-2); }
.thread.is-on { border-color: #a78bfa; background: var(--accent-soft); }
.thread b { font-weight: 600; }
.thread span { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thread .dot { position: absolute; top: 16px; right: 14px; margin: 0; }
.chat__box { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(139, 92, 246, 0.04); min-width: 0; }
.chat__box > div[id="chat-open"] { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.chat__box > div[hidden] { display: none; }
.chat__empty { margin: auto; padding: 24px; color: var(--muted); text-align: center; }
.chat__head { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__msgs { flex: 1; min-height: 280px; max-height: 460px; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); overflow-wrap: anywhere; }
.msg.mine { align-self: flex-end; background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.msg.them { align-self: flex-start; }
.msg img { display: block; max-width: 100%; max-height: 260px; border-radius: 12px; margin-bottom: 6px; }
.msg p { white-space: pre-wrap; }
.msg time { display: block; margin-top: 4px; font-size: 11px; opacity: 0.65; }
.chat__warn { margin: 0 20px; padding: 8px 12px; border-radius: 12px; background: rgba(251, 191, 36, 0.1); color: #fcd34d; font-size: 13px; }
.chat__pending { margin: 8px 20px 0; font-size: 13px; color: var(--muted); }
.chat__pending button { color: #c4b5fd; text-decoration: underline; }
.chat__form { display: flex; gap: 8px; align-items: flex-end; padding: 12px 20px 18px; }
.chat__form textarea { flex: 1; min-height: 40px; max-height: 120px; border: 1px solid var(--line-2); border-radius: 16px; background: #05030c; padding: 10px 14px; resize: none; outline: none; }
.chat__form textarea:focus { border-color: #a78bfa; }
.chat__form .attach { cursor: pointer; }
.chat__box .error { margin: 6px 20px 0; min-height: 0; }

/* --- отзывы --- */
.review-box { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); }
.review-box .stars { display: inline-flex; gap: 2px; }
.star { font-size: 28px; line-height: 1; color: rgba(167, 139, 250, 0.35); transition: color 0.15s, transform 0.15s; }
.star.on, .star:hover { color: #fbbf24; }
.star:hover { transform: scale(1.12); }
.stars--ro { color: #fbbf24; font-size: 18px; letter-spacing: 2px; }
.rv-form textarea { width: 100%; min-height: 80px; margin-top: 10px; border: 1px solid var(--line-2); border-radius: 16px; background: #05030c; padding: 12px 14px; outline: none; resize: vertical; }
.rv-form textarea:focus { border-color: #a78bfa; }
.rv-form .actions { margin-top: 10px; }
.review-text { margin-top: 6px; color: var(--text); }

@media (max-width: 980px) { .lots { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .lots { grid-template-columns: 1fr; }
  .chat { grid-template-columns: 1fr; }
  .chat__list { flex-direction: row; overflow-x: auto; }
  .thread { min-width: 220px; }
  .msg { max-width: 92%; }
}


button.lot__img { position: relative; width: 100%; border: 0; padding: 0; cursor: pointer; }
.lot__img img { transition: transform 0.4s var(--ease), filter 0.2s; }
.lot__img:hover img { transform: scale(1.04); filter: brightness(0.7); }
.lot__ph { font-size: 54px; color: rgba(167, 139, 250, 0.5); }
.lot__hint { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 8px); padding: 8px 14px; border-radius: 999px; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; transition: opacity 0.2s, transform 0.3s var(--ease); pointer-events: none; }
.lot__img:hover .lot__hint, .lot__img:focus-visible .lot__hint { opacity: 1; transform: translate(-50%, 0); }
@media (hover: none) { .lot__hint { opacity: 1; transform: translate(-50%, 0); } }


/* =====================================================================
   Поправки вёрстки, анимации и адаптация (поверх основных стилей)
   ===================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; }
body.drawer-open { overflow: hidden; }
::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }
.link { color: #c4b5fd; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: #ddd6fe; }

/* баг исходника: .hero и .site-foot обнуляли боковые отступы, и текст прижимался к краю экрана */
.hero { padding: 72px var(--gutter) 36px; }
.site-foot { padding: 28px var(--gutter) max(48px, calc(env(safe-area-inset-bottom) + 28px)); }
.site-foot a { color: var(--muted); transition: color 0.2s; }
.site-foot a:hover { color: var(--text); }

/* вырезы телефонов (чёлка, жесты) */
.dock { padding-top: max(12px, env(safe-area-inset-top)); padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.drawer__panel { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
@media (min-width: 1500px) { :root { --max: 1240px; } }

/* ---------- ползунок ---------- */
.amount__row input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; height: 32px; touch-action: pan-y; }
.amount__row input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #8b5cf6 var(--p, 10%), rgba(167, 139, 250, 0.22) var(--p, 10%)); }
.amount__row input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; border: 4px solid #8b5cf6; box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.22), 0 4px 14px rgba(0, 0, 0, 0.5); transition: box-shadow 0.2s, transform 0.2s; }
.amount__row input[type="range"]:hover::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(139, 92, 246, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5); }
.amount__row input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.amount__row input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(167, 139, 250, 0.22); }
.amount__row input[type="range"]::-moz-range-progress { height: 6px; border-radius: 99px; background: #8b5cf6; }
.amount__row input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid #8b5cf6; box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.22); }

/* ---------- FAQ ---------- */
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: color 0.2s; }
.faq summary::after { content: "+"; flex: none; font: 400 26px/1 var(--display); color: var(--muted); transition: transform 0.35s var(--ease), color 0.2s; }
.faq[open] summary::after { transform: rotate(45deg); color: #c4b5fd; }
.faq summary:hover { color: #ddd6fe; }
.faq[open] > p, .faq[open] > form { animation: fadeUp 0.45s var(--ease) backwards; }
.faq { transition: border-color 0.25s, background 0.25s; }
.faq:hover { border-color: var(--line-2); }

/* ---------- анимации ---------- */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes driftA { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(7vw, 5vh, 0) scale(1.1); } }
@keyframes driftB { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-6vw, -6vh, 0) scale(1.12); } }
@keyframes pop { 0% { transform: scale(0.55); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shine { from { transform: translateX(-130%) skewX(-20deg); } to { transform: translateX(330%) skewX(-20deg); } }
@keyframes bump { 40% { transform: scale(1.08); color: #ddd6fe; } }
@keyframes pulseRing { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); } 100% { box-shadow: 0 0 0 14px rgba(139, 92, 246, 0); } }

body { animation: fadeIn 0.5s ease backwards; }
.atmos i:first-child { animation: driftA 24s ease-in-out infinite; will-change: transform; }
.atmos i:last-child { animation: driftB 30s ease-in-out infinite; will-change: transform; }

.dock__bar { transition: background 0.3s, box-shadow 0.3s, height 0.3s var(--ease), border-color 0.3s; }
.dock.is-scrolled .dock__bar { background: rgba(15, 10, 28, 0.9); box-shadow: 0 12px 40px rgba(60, 20, 140, 0.3); border-color: var(--line-2); height: 52px; }

.hero__copy > * { animation: rise 0.85s var(--ease) backwards; }
.hero__copy > :nth-child(1) { animation-delay: 0.05s; }
.hero__copy > :nth-child(2) { animation-delay: 0.14s; }
.hero__copy > :nth-child(3) { animation-delay: 0.22s; }
.hero__copy > :nth-child(4) { animation-delay: 0.3s; }
.hero__copy > :nth-child(5) { animation-delay: 0.38s; }
.hero__copy > :nth-child(6) { animation-delay: 0.46s; }
.ticket { animation: rise 0.95s var(--ease) 0.25s backwards, float 7s ease-in-out 1.3s infinite; transition: transform 0.3s var(--ease); will-change: transform; }
.ticket strong { background: linear-gradient(135deg, #fff, #c4b5fd); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pill { animation: pulseRing 2.4s ease-out infinite; }

/* появление при прокрутке (классы ставит js/ui.js) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.75s var(--ease), transform 0.75s var(--ease) !important; }
.reveal.in { opacity: 1; transform: none; }

/* кнопки и карточки */
.btn { transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, border-color 0.2s; }
.btn--solid { position: relative; overflow: hidden; isolation: isolate; }
.btn--solid::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 38%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent); transform: translateX(-130%) skewX(-20deg); pointer-events: none; z-index: -1; }
.btn--glass:hover { border-color: #a78bfa; }
.pack { position: relative; }
.pack:hover { box-shadow: 0 18px 44px rgba(124, 58, 237, 0.22); }
.pack.is-on { animation: pop 0.4s var(--ease); }
.step { transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.35s; }
.step:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 18px 44px rgba(124, 58, 237, 0.16); }
.order-card { transition: border-color 0.25s, transform 0.3s var(--ease); }
.order-card:hover { border-color: var(--line-2); }
.lot__body .btn { transition: transform 0.25s var(--ease), background 0.2s; }
.bump { display: inline-block; animation: bump 0.3s var(--ease); }
.tab { transition: background 0.25s, color 0.2s; }
.tab:not(.is-on):hover { color: var(--text); background: var(--accent-soft); }
.pane:not([hidden]) { animation: fadeUp 0.4s var(--ease) backwards; }
.thread, .star { transition: border-color 0.2s, background 0.2s, color 0.15s, transform 0.2s var(--ease); }
.star.on { animation: pop 0.3s var(--ease); }
.msg { animation: fadeUp 0.3s var(--ease) backwards; }
.auth, .login { animation: rise 0.7s var(--ease) backwards; }

/* успех заказа */
.success.is-on::before { content: "✓"; display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #fff; font: 700 30px/1 var(--display); box-shadow: 0 12px 34px var(--glow); animation: pop 0.55s var(--ease); }
.success.is-on > * { animation: fadeUp 0.5s var(--ease) 0.15s backwards; }

/* шторка меню */
.drawer__scrim { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.drawer.is-open .drawer__panel > * { animation: fadeUp 0.45s var(--ease) backwards; }
.drawer.is-open .drawer__panel > :nth-child(1) { animation-delay: 0.08s; }
.drawer.is-open .drawer__panel > :nth-child(2) { animation-delay: 0.13s; }
.drawer.is-open .drawer__panel > :nth-child(3) { animation-delay: 0.18s; }
.drawer.is-open .drawer__panel > :nth-child(4) { animation-delay: 0.23s; }
.drawer.is-open .drawer__panel > :nth-child(5) { animation-delay: 0.28s; }
.drawer.is-open .drawer__panel > :nth-child(6) { animation-delay: 0.33s; }
.drawer.is-open .drawer__panel > :nth-child(7) { animation-delay: 0.38s; }
.drawer a, .drawer button.linkish { transition: background 0.2s, color 0.2s; }
.menu i { transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.menu[aria-expanded="true"] i:first-child { top: 20px; transform: rotate(45deg); }
.menu[aria-expanded="true"] i:last-child { top: 20px; transform: rotate(-45deg); }

/* блеск на кнопках только там, где есть наведение мыши */
@media (hover: hover) {
  .btn--solid:hover { box-shadow: 0 12px 34px var(--glow); transform: translateY(-1px); }
  .btn--solid:hover::after { animation: shine 0.9s ease; }
}

/* ---------- планшет ---------- */
@media (max-width: 980px) {
  .order { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 52px; }
  .ticket { max-width: 460px; }
  .site-foot { flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
  .lots { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- телефон ---------- */
@media (max-width: 720px) {
  section { padding: 48px 0; }
  .section__head { margin-bottom: 20px; }
  .hero { padding-top: 34px; gap: 28px; }
  .hero h1 { font-size: clamp(56px, 19vw, 76px); }
  .lead { font-size: 16px; }
  .actions .btn { flex: 1 1 auto; }
  .stats { flex-direction: row; flex-wrap: wrap; gap: 18px 26px; }
  .ticket { max-width: none; padding: 18px; }
  .ticket strong { font-size: 36px; }

  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pack { min-height: 136px; padding: 16px; border-radius: 22px; }
  .pack b { font-size: 24px; }
  .pack .price { font-size: 17px; }
  .steps { gap: 10px; }
  .step { min-height: 0; padding: 18px; }
  .step h3 { margin-top: 12px; }
  .panel { padding: 20px; border-radius: 24px; }
  .row2 { grid-template-columns: 1fr; gap: 0; }
  .amount__row { grid-template-columns: 1fr 96px; gap: 10px; }
  .form__foot { align-items: stretch; }
  .form__foot .btn { width: 100%; min-height: 52px; }
  .quote b { font-size: 30px; }

  .order-card, .my-card { grid-template-columns: 1fr; gap: 8px; padding: 16px 18px; }
  .my-card .badge, .order-card .badge { justify-self: start; }
  .order-card .actions, .order-card > div:last-child { justify-content: flex-start; }

  .tabs--wide { gap: 2px; padding: 4px; scrollbar-width: none; }
  .tabs--wide::-webkit-scrollbar { display: none; }
  .tabs--wide .tab { flex: 1 1 auto; min-width: 0; padding: 0 8px; height: 38px; font-size: 13px; white-space: nowrap; }
  .tabs--wide .dot { margin-left: 5px; }
  .lots { grid-template-columns: 1fr; }
  .notice { padding: 14px 16px; }
  .chat { min-height: 0; }
  .chat__msgs { min-height: 240px; max-height: 52dvh; padding: 14px; }
  .chat__form { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
  .chat__head { padding: 14px; }
  .chat__warn, .chat__pending, .chat__box .error { margin-left: 14px; margin-right: 14px; }
  .site-foot { flex-direction: row; align-items: center; justify-content: space-between; }
  .auth { margin: 1vh auto; }
  .lotform { max-width: none; }
}

/* ---------- сенсорные экраны: крупнее цели нажатия ---------- */
@media (pointer: coarse) {
  .btn--sm { min-height: 44px; padding: 0 16px; }
  .lang, .menu { height: 44px; }
  .menu { width: 44px; }
  .nav a { padding: 10px 14px; }
  .faq summary { padding: 18px 0; }
  .star { padding: 2px 3px; }
}

/* ---------- маленькие телефоны ---------- */
@media (max-width: 360px) {
  .grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 52px; }
}

/* ---------- пользователям, которым анимации мешают ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* лоты: компактнее на телефоне, подсказка на картинке без дубля кнопки */
@media (max-width: 720px) { .lot__img { aspect-ratio: 16 / 10; } }
@media (hover: none) {
  .lot__hint { left: auto; right: 12px; bottom: 12px; transform: none; padding: 7px 10px; font-size: 0; }
  .lot__hint::before { content: "💬"; font-size: 16px; line-height: 1; }
}

/* ---------- закрытая панель модерации ---------- */
.moderation-page { position: relative; z-index: 1; padding-top: 28px; padding-bottom: 72px; }
.moderation-head { max-width: 900px; margin: 0 auto 28px; padding-top: 34px; }
.moderation-head h1 { font: 700 clamp(34px, 7vw, 58px)/1 var(--display); letter-spacing: -.04em; }
.moderation-panel { max-width: 900px; margin: 18px auto; }
.moderation-panel h2 { margin: 0 0 18px; }
.moderation-panel h3 { margin: 26px 0 12px; }
.moderation-lookup { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.moderation-toolbar { max-width: 900px; margin: 0 auto 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.moderation-accounts, .moderation-event { display: grid; gap: 7px; }
.moderation-account, .moderation-event { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.moderation-account + .moderation-account, .moderation-event + .moderation-event { margin-top: 9px; }
.moderation-account span, .moderation-event span { color: var(--muted); font-size: 13px; }
.moderation-deleted { color: #fca5a5 !important; }
.moderation-count { color: var(--muted); font: 500 14px/1 var(--display); }
.moderation-list-meta { margin: 14px 0 10px; }
.moderation-registry { display: grid; gap: 9px; }
.moderation-registry-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.025); }
.moderation-registry-item__info { display: grid; gap: 5px; min-width: 0; }
.moderation-registry-item__info b { overflow-wrap: anywhere; }
.moderation-registry-item__info span { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.moderation-more { display: block; margin: 16px auto 0; }

/* ---------- экран блокировки аккаунта ---------- */
.account-locked { overflow: hidden; }
.account-lock { position: fixed; inset: 0; z-index: 20000; display: grid; place-items: center; overflow-y: auto; padding: 22px; background: rgba(5, 3, 12, .91); backdrop-filter: blur(18px); }
.account-lock[hidden] { display: none; }
.account-lock__card { width: min(100%, 520px); padding: clamp(24px, 6vw, 38px); border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: linear-gradient(145deg, rgba(33,21,55,.98), rgba(13,9,23,.98)); box-shadow: 0 24px 90px rgba(0,0,0,.5); text-align: center; }
.account-lock__card h2 { margin: 0 0 12px; font: 700 clamp(25px, 6vw, 34px)/1.08 var(--display); }
.account-lock__card p { color: var(--muted); line-height: 1.55; }
.account-lock__actions { display: grid; gap: 10px; margin-top: 22px; }
.account-lock__reason { padding: 13px 15px; border: 1px solid var(--line); border-radius: 14px; text-align: left; }
.account-lock__reason b { display: block; margin-bottom: 5px; color: var(--text); }
.account-lock__reason span { color: var(--muted); font-size: 13px; }

@media (max-width: 720px) {
  .moderation-lookup { grid-template-columns: 1fr; }
  .moderation-toolbar { align-items: flex-start; }
  .moderation-registry-item { grid-template-columns: 1fr; }
}

