/* ==========================================================================
   АртМаркет — основная таблица стилей
   Палитра: чернила / бумага / сигнальный оранжевый. Полутон, крупная типографика.
   ========================================================================== */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded.woff") format("woff"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff") format("woff"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Oswald"; src: url("../fonts/oswald.woff") format("woff"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff") format("woff"); font-weight: 100 800; font-display: swap; }

:root {
	--ink: #0e0d0c;
	--ink-2: #1b1a18;
	--ink-3: #2a2825;
	--paper: #ede7dd;
	--paper-2: #e2dbcf;
	--white: #faf8f4;
	--accent: #ff4516;
	--accent-2: #e23a0f;
	--muted: #8a847b;
	--line: rgba(14, 13, 12, .14);
	--line-light: rgba(237, 231, 221, .16);
	--f-wide: "Unbounded", "Arial Black", sans-serif;
	--f-body: "Manrope", "Helvetica Neue", Arial, sans-serif;
	--f-cond: "Oswald", "Arial Narrow", sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, monospace;
	--pad: clamp(16px, 4vw, 56px);
	--radius: 6px;
	--dots: radial-gradient(circle, rgba(14,13,12,.55) 1px, transparent 1.4px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--ink); color: var(--ink);
	font: 400 16px/1.55 var(--f-body);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
.amt-skip { position: absolute; left: -9999px; }
.amt-skip:focus { left: 8px; top: 8px; z-index: 999; background: var(--accent); padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Кнопки ---------- */
.am-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border: 1.5px solid var(--ink); border-radius: 999px;
	background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
	font: 600 13px/1 var(--f-wide); letter-spacing: .02em; text-transform: uppercase;
	transition: background .2s, color .2s, transform .15s, border-color .2s;
	white-space: nowrap;
}
.am-btn:hover { background: var(--ink); color: var(--paper); }
.am-btn:active { transform: translateY(1px); }
.am-btn--accent { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.am-btn--accent:hover { background: var(--ink); border-color: var(--ink); color: var(--accent); }
.am-btn--ghost { border-color: var(--line); }
.am-btn--ghost-light { border-color: rgba(237,231,221,.5); color: var(--paper); }
.am-btn--ghost-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.am-btn--big { padding: 18px 28px; font-size: 14px; }
.am-btn--sm { padding: 9px 14px; font-size: 11px; }
.am-btn[disabled] { opacity: .5; pointer-events: none; }
.am-link-btn { background: none; border: 0; padding: 0; color: var(--accent-2); text-decoration: underline; cursor: pointer; font-size: 13px; }

/* ---------- Шапка ---------- */
.amt-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--paper); border-bottom: 1px solid var(--line-light); }
.admin-bar .amt-header { top: 32px; }
.amt-header__in { display: flex; align-items: center; gap: 28px; padding: 12px var(--pad); max-width: 1680px; margin: 0 auto; }
.amt-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.amt-logo__mark {
	display: inline-flex; align-items: flex-end; font: 900 34px/0.8 var(--f-wide); color: var(--accent); letter-spacing: -.04em;
}
.amt-logo__mark i { font-style: normal; color: var(--accent); }
.amt-logo__mark--big { font-size: 96px; }
.amt-logo__txt { display: flex; flex-direction: column; gap: 3px; }
.amt-logo__txt b { font: 700 13px/1 var(--f-wide); letter-spacing: .08em; }
.amt-logo__txt small { font: 500 8.5px/1.25 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.amt-menu { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.amt-menu a { text-decoration: none; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--paper); opacity: .78; padding: 6px 0; border-bottom: 1px solid transparent; }
.amt-menu a:hover, .amt-menu .current-menu-item a { opacity: 1; border-color: var(--accent); }

.amt-search { position: relative; display: flex; align-items: center; flex: 1; max-width: 380px; margin-left: auto; }
.amt-search input {
	width: 100%; padding: 10px 40px 10px 16px; border-radius: 999px; border: 1px solid var(--line-light);
	background: var(--ink-2); color: var(--paper); font-size: 13px; outline: none; transition: border-color .2s;
}
.amt-search input:focus { border-color: var(--accent); }
.amt-search input::placeholder { color: var(--muted); }
.amt-search button { position: absolute; right: 6px; width: 30px; height: 30px; border: 0; background: none; cursor: pointer; }
.amt-search svg { width: 18px; height: 18px; fill: none; stroke: var(--paper); stroke-width: 2; }

.am-suggest {
	position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: 340px; z-index: 60;
	background: var(--white); color: var(--ink); border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); overflow: hidden;
}
.am-suggest__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 12px 4px; }
.am-suggest__tags a { font: 500 12px/1 var(--f-mono); padding: 6px 9px; background: var(--paper); border-radius: 99px; text-decoration: none; }
.am-suggest__lot { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; text-decoration: none; border-bottom: 1px solid var(--line); }
.am-suggest__lot:hover { background: var(--paper); }
.am-suggest__lot img, .am-suggest__lot > span:first-child { width: 44px; height: 44px; object-fit: cover; border-radius: 4px; background: var(--paper-2); }
.am-suggest__lot b { display: block; font-size: 14px; }
.am-suggest__lot small { color: var(--muted); font-size: 12px; }
.am-suggest__lot em { font: 600 12px var(--f-mono); font-style: normal; }
.am-suggest__all, .am-suggest__none { display: block; padding: 12px; font: 600 12px var(--f-mono); text-transform: uppercase; color: var(--accent-2); text-decoration: none; }
.am-suggest__none { color: var(--muted); }

.amt-user { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.amt-user__link { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.amt-user__link span { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; line-height: 1.2; }
.amt-user__link small { font: 500 10px var(--f-mono); color: var(--accent); text-transform: uppercase; letter-spacing: .06em; }
.amt-burger { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; gap: 7px; }
.amt-burger span { display: block; height: 2px; background: var(--paper); transition: transform .25s; }
.amt-menu-open .amt-burger span:first-child { transform: translateY(4.5px) rotate(45deg); }
.amt-menu-open .amt-burger span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

.am-avatar {
	--s: 40px; width: var(--s); height: var(--s); border-radius: 50%; flex-shrink: 0;
	display: inline-flex; align-items: center; justify-content: center;
	font: 700 calc(var(--s) * .36)/1 var(--f-wide); color: var(--paper); border: 1.5px solid rgba(237,231,221,.25);
}

/* ---------- Полутон поверх изображений ---------- */
.amt-ht { position: relative; isolation: isolate; background: var(--ink); }
.amt-ht::before {
	content: ""; position: absolute; inset: 0; z-index: -2;
	background: var(--img) center / cover no-repeat;
	filter: grayscale(1) contrast(1.25);
	opacity: .9;
}
.amt-ht::after {
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: radial-gradient(circle, rgba(14,13,12,.9) 1.1px, transparent 1.6px);
	background-size: 5px 5px;
	mix-blend-mode: multiply; opacity: .55;
}

/* ---------- Корнер-мета (как в референсе) ---------- */
.amt-corner {
	position: absolute; left: var(--pad); right: var(--pad); bottom: 22px;
	display: flex; justify-content: flex-end; gap: clamp(20px, 6vw, 110px); align-items: flex-end;
	font: 700 10px/1.1 var(--f-wide); letter-spacing: .04em; color: var(--paper); text-transform: uppercase;
}
.amt-corner span:first-child { display: flex; flex-direction: column; }
.amt-corner i { font-style: normal; font-family: var(--f-mono); font-weight: 500; text-transform: lowercase; }
.amt-corner b { font-weight: 900; color: var(--accent); }
.amt-corner__mark { color: var(--accent); font-size: 12px; }

/* ---------- Первый экран ---------- */
.amt-hero {
	min-height: min(92vh, 900px); padding: 120px var(--pad) 110px; color: var(--paper);
	display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; overflow: hidden;
}
.amt-hero::before { opacity: 1; filter: grayscale(1) contrast(1.2) brightness(.62); }
.amt-hero__meta { position: absolute; top: 28px; left: var(--pad); display: flex; gap: 14px; align-items: flex-start; text-align: left; }
.amt-hero__meta small { font: 500 9px/1.45 var(--f-mono); letter-spacing: .1em; color: var(--paper); opacity: .8; }
.amt-hero__word {
	margin: 0; font: 800 clamp(64px, 14vw, 230px)/.86 var(--f-body); letter-spacing: -.06em; color: var(--paper);
	text-shadow: 0 0 60px rgba(0,0,0,.35);
}
.amt-hero__sub { margin: 34px 0 34px; font: 500 clamp(12px, 1.3vw, 15px)/1.4 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.amt-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.amt-hero__ring { position: absolute; right: clamp(16px, 7vw, 120px); top: 18%; width: clamp(110px, 12vw, 170px); aspect-ratio: 1; text-decoration: none; }
.amt-hero__ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 900 34px var(--f-wide); color: var(--accent); }
.amt-ring { width: 100%; height: 100%; animation: amt-spin 18s linear infinite; overflow: visible; }
.amt-ring text { font: 700 14px var(--f-wide); fill: var(--paper); }
@keyframes amt-spin { to { transform: rotate(360deg); } }

/* ---------- Оранжевая полоса ---------- */
.amt-band { position: relative; height: clamp(220px, 34vw, 480px); background: var(--accent) var(--img) center / cover; display: grid; place-items: center; overflow: hidden; }
.amt-band__word {
	font: 800 clamp(40px, 10.5vw, 180px)/1 var(--f-wide); letter-spacing: -.03em; color: transparent; white-space: nowrap;
	-webkit-text-stroke: clamp(1.5px, .25vw, 4px) var(--paper);
	text-shadow: 0 0 0 transparent; mix-blend-mode: normal;
}

/* ---------- Секции ---------- */
.amt-section { padding: clamp(56px, 8vw, 120px) var(--pad); position: relative; }
.amt-section--paper { background: var(--paper); }
.amt-section--white { background: var(--white); }
.amt-section--ink { background: var(--ink); color: var(--paper); }
.amt-section > * { max-width: 1560px; margin-left: auto; margin-right: auto; }
.amt-section__head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: clamp(28px, 4vw, 52px); flex-wrap: wrap; }
.amt-more { font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; border-bottom: 1.5px solid var(--accent); padding-bottom: 3px; }
.amt-sub { font: 700 14px var(--f-wide); text-transform: uppercase; letter-spacing: .04em; margin: 56px auto 18px; }

/* ---------- Клавиши ---------- */
.am-keycaps { display: flex; flex-wrap: wrap; gap: clamp(4px, .6vw, 10px); }
.am-keycaps span {
	width: clamp(38px, 5.2vw, 76px); aspect-ratio: 1; display: grid; place-items: center;
	border-radius: 9px; color: var(--paper);
	font: 500 clamp(15px, 2vw, 28px)/1 var(--f-mono);
	background: linear-gradient(160deg, #3a3835 0%, #121110 55%, #050505 100%);
	box-shadow: inset 0 2px 1px rgba(255,255,255,.18), inset 0 -5px 0 rgba(0,0,0,.7), 0 6px 0 #000, 0 10px 18px rgba(0,0,0,.35);
	transition: transform .12s, box-shadow .12s;
}
.am-keycaps span:hover { transform: translateY(4px); box-shadow: inset 0 2px 1px rgba(255,255,255,.18), inset 0 -2px 0 rgba(0,0,0,.7), 0 2px 0 #000, 0 4px 8px rgba(0,0,0,.35); }
.am-keycaps i { width: clamp(12px, 2vw, 30px); }
.am-keycaps--sm span { width: clamp(30px, 3.4vw, 50px); font-size: clamp(13px, 1.4vw, 19px); border-radius: 7px; }
.am-keycaps--dark span { background: linear-gradient(160deg, #f4efe7 0%, #d9d1c4 70%, #bdb4a6 100%); color: var(--ink); box-shadow: inset 0 2px 1px #fff, inset 0 -5px 0 rgba(0,0,0,.15), 0 6px 0 #8f877b, 0 10px 18px rgba(0,0,0,.5); }

/* ---------- Карточки лотов ---------- */
.am-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2vw, 28px); }
.am-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .am-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .am-grid--3 { grid-template-columns: 1fr; } }
.am-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.am-card { background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s; }
.am-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(14,13,12,.5); }
.am-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-2); }
.am-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .4s; }
.am-card__media::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: var(--dots); background-size: 4px 4px; mix-blend-mode: multiply; opacity: .35; transition: opacity .4s;
}
.am-card:hover .am-card__img { transform: scale(1.04); }
.am-card:hover .am-card__media::after { opacity: 0; }
.am-card__num { position: absolute; left: 12px; top: 12px; z-index: 2; font: 600 10px var(--f-mono); letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 5px 8px; border-radius: 3px; }
.am-card__badge { position: absolute; right: 12px; top: 12px; z-index: 2; font: 600 11px var(--f-mono); background: var(--paper); color: var(--ink); padding: 5px 8px; border-radius: 3px; }
.am-card__badge.is-hot { background: var(--accent); }
.am-card__badge--ended { background: var(--ink); color: var(--accent); }
.am-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.am-card__cat { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.am-card__title { margin: 0; font: 500 clamp(22px, 2vw, 28px)/1.02 var(--f-cond); text-transform: uppercase; letter-spacing: .005em; }
.am-card__title a { text-decoration: none; }
.am-card__title a:hover { color: var(--accent-2); }
.am-card__artist { font-size: 14px; color: #4b4741; }
.am-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.am-card__price small { display: block; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.am-card__price strong { font: 700 17px/1.2 var(--f-wide); }

/* ---------- Реакции ---------- */
.am-react { display: flex; gap: 8px; align-items: center; }
.am-react__btn {
	display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
	border: 1.5px solid var(--line); background: transparent; cursor: pointer; font: 600 13px var(--f-mono);
	transition: background .2s, border-color .2s, color .2s;
}
.am-react--compact .am-react__btn { height: 32px; padding: 0 10px; }
.am-react__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s; }
.am-react__btn:hover { border-color: var(--ink); }
.am-react__btn.is-on { background: var(--ink); color: var(--accent); border-color: var(--ink); }
.am-react__btn.is-on svg { fill: var(--accent); stroke: var(--accent); }
.am-react__btn.is-busy { opacity: .5; }
.am-react__btn.pop svg { animation: amt-pop .35s; }
@keyframes amt-pop { 40% { transform: scale(1.45); } }

/* ---------- Статистика ---------- */
.amt-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(48px, 6vw, 90px) !important; border-top: 2px solid var(--ink); }
.amt-stats div { padding: 22px 18px 0 0; }
.amt-stats b { display: block; font: 800 clamp(36px, 5vw, 76px)/1 var(--f-wide); letter-spacing: -.04em; }
.amt-stats span { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #5a554e; }

/* ---------- ТОРГИ × 3 ---------- */
.amt-repeat { position: relative; background: var(--ink); overflow: hidden; padding: 10px 0; }
.amt-repeat__row {
	font: 900 clamp(70px, 19vw, 330px)/.8 var(--f-wide); letter-spacing: -.055em; white-space: nowrap; color: var(--paper);
	text-align: center; margin: 0 -10vw; user-select: none; word-spacing: .12em;
}
.amt-repeat__row:nth-child(2) { transform: translateX(-9vw); }
.amt-repeat__row:first-child { margin-top: -.18em; }
.amt-repeat__row:last-of-type { margin-bottom: -.2em; }
.amt-repeat__frag { position: absolute; width: clamp(130px, 22vw, 360px); aspect-ratio: 1; object-fit: cover; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.amt-repeat__frag--a { left: 40%; top: -2%; clip-path: polygon(0 8%, 100% 0, 92% 100%, 6% 88%); }
.amt-repeat__frag--b { left: 37%; bottom: -4%; clip-path: polygon(6% 0, 96% 10%, 100% 92%, 0 100%); }

/* ---------- Редакционная секция «скоро завершатся» ---------- */
.amt-ending { overflow: hidden; padding-top: clamp(110px, 12vw, 170px); }
.amt-ring-banner { position: absolute !important; left: -5vw; right: -5vw; top: 26px; max-width: none !important; transform: rotate(-2.2deg); background: var(--white); border-block: 3px solid var(--accent); overflow: hidden; }
.amt-ring-banner__track { display: flex; width: max-content; animation: amt-marquee 32s linear infinite; }
.amt-ring-banner span { font: 500 clamp(18px, 2vw, 26px)/1 var(--f-cond); letter-spacing: .06em; padding: 12px 0; white-space: nowrap; }
@keyframes amt-marquee { to { transform: translateX(-50%); } }
.amt-ending__title { font: 400 clamp(64px, 11vw, 190px)/.86 var(--f-cond); text-transform: uppercase; margin: 0 0 clamp(36px, 5vw, 80px); letter-spacing: -.01em; }
.amt-ed { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; padding: clamp(28px, 4vw, 56px) 0; border-top: 1px solid var(--line); }
.amt-ed--rev .amt-ed__img { order: -1; }
.amt-ed__n { font: 500 13px var(--f-mono); color: var(--muted); vertical-align: top; }
.amt-ed__h { margin: 4px 0 8px; font: 400 clamp(48px, 7vw, 120px)/.86 var(--f-cond); text-transform: uppercase; }
.amt-ed__h a { text-decoration: none; }
.amt-ed__h a:hover { color: var(--accent); }
.amt-ed__by { font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 18px; }
.amt-ed__desc { max-width: 42ch; font-size: 15px; color: #3e3a35; }
.amt-ed__bid { display: flex; gap: 28px; align-items: center; margin-top: 26px; flex-wrap: wrap; }
.amt-ed__bid small { display: block; font: 500 10px var(--f-mono); text-transform: uppercase; color: var(--muted); letter-spacing: .08em; }
.amt-ed__bid b { font: 700 20px var(--f-wide); }
.amt-ed__img { display: block; aspect-ratio: 4/5; max-height: 560px; justify-self: center; overflow: hidden; border-radius: 4px; position: relative; }
.amt-ed__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.amt-ed__img:hover img { transform: scale(1.05); }
.amt-ed__img::before { content: ""; position: absolute; inset: 14px; border: 2px solid var(--accent); border-radius: 50% 50% 4px 4px / 30% 30% 4px 4px; z-index: 2; pointer-events: none; }

/* ---------- Как это работает ---------- */
.amt-how__list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-light); }
.amt-how__list li { padding: 28px 24px 36px 0; border-right: 1px solid var(--line-light); padding-left: 24px; }
.amt-how__list li:first-child { padding-left: 0; }
.amt-how__list li:last-child { border-right: 0; }
.amt-how__list b { font: 500 12px var(--f-mono); color: var(--accent); }
.amt-how__list h3 { font: 800 clamp(22px, 2.3vw, 34px)/1 var(--f-body); letter-spacing: -.04em; margin: 50px 0 12px; }
.amt-how__list p { margin: 0; color: #b7b0a5; font-size: 15px; }

/* ---------- Направления ---------- */
.amt-cats { display: grid; column-gap: 40px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); border-top: 2px solid var(--ink); }
.amt-cat { display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 12px; padding: 22px 6px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .2s, padding .2s; }
.amt-cat:hover { background: var(--accent); padding-left: 16px; }
.amt-cat__n { font: 500 12px var(--f-mono); }
.amt-cat__name { font: 500 clamp(26px, 3vw, 40px)/1 var(--f-cond); text-transform: uppercase; }
.amt-cat__count { font: 700 14px var(--f-wide); }

/* ---------- Теги ---------- */
.amt-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.amt-tags a { font: 500 13px var(--f-mono); padding: 8px 13px; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; transition: background .2s, color .2s; }
.amt-tags a:hover { background: var(--ink); color: var(--accent); }
.amt-tags sup { font-size: 9px; margin-left: 3px; color: var(--muted); }
.amt-tags--sm a { font-size: 12px; padding: 6px 10px; border-width: 1px; }

/* ---------- Шапка страниц ---------- */
.amt-pagehead { color: var(--paper); padding: clamp(60px, 9vw, 130px) var(--pad) clamp(80px, 9vw, 120px); min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; gap: 18px; overflow: hidden; }
.amt-pagehead--short { min-height: 280px; }
.amt-pagehead::before { opacity: .55; }
.amt-pagehead__title { margin: 0; font: 800 clamp(48px, 9vw, 150px)/.88 var(--f-body); letter-spacing: -.055em; word-break: break-word; }
.amt-pagehead__count { margin: 0; font: 500 12px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--accent); }

/* ---------- Фильтры ---------- */
.amt-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px !important; padding: 14px; background: var(--white); border-radius: 10px; }
.amt-filters > * { flex: 1 1 140px; }
.amt-filters input[type=search] { flex: 3 1 240px; }
.amt-filters input, .amt-filters select { padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--white); font-size: 14px; outline: none; }
.amt-filters input:focus, .amt-filters select:focus { border-color: var(--ink); }
.amt-filters button { flex: 0 0 auto; }
.amt-nothing { text-align: center; padding: 40px 0; }
.amt-nothing__big { font: 900 clamp(120px, 20vw, 260px)/.9 var(--f-wide); color: var(--accent); }
.amt-pager { display: flex; gap: 6px; justify-content: center; margin-top: 48px !important; }
.amt-pager a, .amt-pager span { min-width: 42px; height: 42px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 999px; text-decoration: none; font: 600 13px var(--f-mono); padding: 0 12px; }
.amt-pager .current { background: var(--ink); color: var(--accent); }

/* ---------- Страница лота ---------- */
.amt-lot { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); gap: clamp(24px, 4vw, 72px); padding: clamp(28px, 4vw, 60px) var(--pad); background: var(--paper); }
.amt-lot__frame { position: relative; background: var(--ink); border-radius: 4px; overflow: hidden; }
.amt-lot__img { width: 100%; max-height: 86vh; object-fit: contain; margin: 0 auto; }
.amt-lot__num { position: absolute; left: 16px; top: 16px; font: 600 11px var(--f-mono); letter-spacing: .1em; background: var(--accent); color: var(--ink); padding: 6px 10px; border-radius: 3px; }
.amt-lot__under { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.amt-lot__views { font: 500 12px var(--f-mono); color: var(--muted); }
.amt-lot__side { position: sticky; top: 90px; align-self: start; display: flex; flex-direction: column; gap: 18px; }
.amt-lot__crumbs { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.amt-lot__crumbs a { text-decoration: none; }
.amt-lot__crumbs a:hover { color: var(--accent-2); }
.amt-lot__title { margin: 0; font: 400 clamp(54px, 6.5vw, 108px)/.86 var(--f-cond); text-transform: uppercase; }
.amt-lot__artist { margin: -6px 0 0; font: 700 16px var(--f-wide); }
.amt-lot__facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0; margin: 0; border-top: 1px solid var(--line); }
.amt-lot__facts div { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); }
.amt-lot__facts dt { font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.amt-lot__facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14px; }

.am-bidbox { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.am-bidbox small { display: block; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.am-bidbox__row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.am-bidbox__price { font: 800 clamp(30px, 3vw, 44px)/1.05 var(--f-wide); letter-spacing: -.03em; color: var(--accent); }
.am-bidbox__price.flash { animation: amt-flash .9s; }
@keyframes amt-flash { 0% { color: var(--paper); transform: scale(1.06); } 100% { color: var(--accent); transform: none; } }
.am-bidbox__timer { text-align: right; }
.am-bidbox__timer div { font: 600 22px var(--f-mono); }
.am-bidbox__timer .is-hot { color: var(--accent); animation: amt-blink 1s steps(2) infinite; }
@keyframes amt-blink { 50% { opacity: .55; } }
.am-bidbox__meta { font: 500 12px var(--f-mono); color: #b7b0a5; border-bottom: 1px solid var(--line-light); padding-bottom: 14px; }
.am-bidbox__form { display: flex; gap: 8px; }
.am-bidbox__form input { flex: 1; min-width: 0; padding: 14px 16px; border-radius: 999px; border: 1.5px solid var(--line-light); background: var(--ink-2); color: var(--paper); font: 700 17px var(--f-wide); outline: none; }
.am-bidbox__form input:focus { border-color: var(--accent); }
.am-bidbox__quick { display: flex; gap: 6px; }
.am-bidbox__quick button { flex: 1; padding: 8px; border: 1px dashed var(--line-light); background: none; color: var(--paper); border-radius: 6px; cursor: pointer; font: 500 12px var(--f-mono); }
.am-bidbox__quick button:hover { border-color: var(--accent); color: var(--accent); }
.am-bidbox__msg { font: 600 13px var(--f-mono); padding: 10px 12px; border-radius: 6px; background: rgba(255,69,22,.12); color: var(--accent); }
.am-bidbox__msg.is-warn { background: var(--accent); color: var(--ink); }
.am-bidbox__closed { padding: 14px; text-align: center; border: 1px dashed var(--line-light); border-radius: 8px; font: 600 14px var(--f-mono); }
.am-bidbox__history { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; font-size: 13px; }
.am-bidbox__history li { display: grid; grid-template-columns: 1fr auto 74px; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line-light); color: #b7b0a5; }
.am-bidbox__history li.is-top { color: var(--paper); }
.am-bidbox__history li.is-top b { color: var(--accent); }
.am-bidbox__history li.is-me span::after { content: " · вы"; color: var(--accent); }
.am-bidbox__history time { font: 400 11px var(--f-mono); text-align: right; }
.am-bidbox__history b { font-family: var(--f-mono); }
.am-bidbox__none { display: block !important; text-align: center; }

.amt-lot__story, .amt-comments { background: var(--white); padding: clamp(48px, 6vw, 96px) var(--pad); display: grid; grid-template-columns: minmax(200px, .45fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); }
.amt-comments { background: var(--paper); }
.amt-lot__storyhead h2, .amt-comments__head h2 { margin: 6px 0 0; font: 400 clamp(40px, 4.4vw, 80px)/.88 var(--f-cond); text-transform: uppercase; }
.amt-comments__head sup { font: 600 14px var(--f-mono); color: var(--accent); vertical-align: top; }
.amt-lot__content { font-size: 18px; line-height: 1.65; max-width: 62ch; columns: 1; }
.amt-lot__content p:first-child::first-letter { font: 500 4.6em/.78 var(--f-cond); float: left; margin: 6px 10px 0 0; color: var(--accent); }

/* ---------- Комментарии ---------- */
.amt-comments { align-items: start; }
.amt-comments__body { min-width: 0; }
.am-comments { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.am-comments .children { list-style: none; padding-left: clamp(16px, 4vw, 56px); margin: 14px 0 0; display: flex; flex-direction: column; gap: 14px; }
.am-comment { background: var(--white); border-radius: 10px; padding: 18px 20px; }
.am-comment__head { display: flex; gap: 12px; align-items: center; }
.am-comment__head b { font-size: 15px; margin-right: 8px; }
.am-comment__head time { display: block; font: 400 11px var(--f-mono); color: var(--muted); }
.am-comment__text { margin: 10px 0 6px 52px; }
.am-comment__text p { margin: 0 0 .6em; }
.am-comment__actions { margin-left: 52px; font: 600 11px var(--f-mono); text-transform: uppercase; display: flex; gap: 14px; }
.am-comment__actions a { color: var(--accent-2); text-decoration: none; }
.am-role { display: inline-block; font: 600 10px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .06em; padding: 4px 7px; border-radius: 3px; background: var(--ink); color: var(--paper); }
.am-role--sm { font-size: 9px; padding: 3px 6px; }
.am-role--administrator, .am-role--администратор { background: var(--accent); color: var(--ink); }
.comment-respond { margin-top: 26px; background: var(--white); padding: 22px; border-radius: 10px; }
.comment-reply-title { margin: 0 0 12px; font: 700 15px var(--f-wide); text-transform: uppercase; }
.comment-reply-title small a { font: 500 11px var(--f-mono); color: var(--accent-2); margin-left: 10px; }
.amt-comments__as { display: flex; align-items: center; gap: 10px; font-size: 14px; margin: 0 0 12px; }
.comment-form textarea { width: 100%; padding: 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper); outline: none; resize: vertical; }
.comment-form textarea:focus { border-color: var(--ink); }
.form-submit { margin: 12px 0 0; }
.amt-comments__login { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 24px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 20px; }
.amt-comments__login p { flex: 1 1 100%; margin: 0 0 4px; }
.amt-comments__login .am-btn:not(.am-btn--accent) { border-color: var(--line-light); color: var(--paper); }

/* ---------- Формы / кабинет (страницы-приложения) ---------- */
.amt-content { max-width: 1240px; margin: 0 auto; }
.amt-prose { max-width: 760px; font-size: 18px; }
.amt-prose h2 { font: 400 clamp(36px, 4vw, 60px)/.95 var(--f-cond); text-transform: uppercase; margin: 1.4em 0 .3em; }
.amt-prose h2::before { content: ""; display: block; width: 46px; height: 6px; background: var(--accent); margin-bottom: 14px; }

.am-notice { padding: 12px 16px; border-radius: 8px; margin-bottom: 14px; font-weight: 600; font-size: 14px; background: #d9f0d8; border-left: 4px solid #2e8a3a; }
.am-notice--error { background: #ffe1d8; border-color: var(--accent-2); }
.am-notice--warn { background: #fff0c9; border-color: #d29b00; }

.am-form { display: flex; flex-direction: column; gap: 16px; background: var(--white); padding: clamp(20px, 3vw, 36px); border-radius: 12px; }
.am-form label { display: flex; flex-direction: column; gap: 6px; font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .06em; color: #4b4741; }
.am-form input:not([type=checkbox]):not([type=file]), .am-form select, .am-form textarea {
	padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
	font: 500 15px var(--f-body); text-transform: none; letter-spacing: 0; color: var(--ink); outline: none; transition: border-color .2s, background .2s;
}
.am-form input:focus, .am-form select:focus, .am-form textarea:focus { border-color: var(--ink); background: var(--white); }
.am-form input:disabled { opacity: .6; }
.am-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.am-check { flex-direction: row !important; align-items: center; gap: 10px !important; font: 500 14px var(--f-body) !important; text-transform: none !important; letter-spacing: 0 !important; }
.am-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.am-form__links { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.am-form__links a { color: var(--accent-2); }
.am-form .am-btn { align-self: flex-start; }
.am-hint { margin: 0; padding: 12px 14px; background: var(--paper); border-radius: 8px; font-size: 14px; border-left: 4px solid var(--accent); }

.am-auth { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1100px; margin: 0 auto; }
.am-auth__side p { font-size: 18px; max-width: 34ch; margin-top: 28px; }

.am-submit__grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; }
.am-submit__grid > div { display: flex; flex-direction: column; gap: 14px; }
.am-drop { position: relative; aspect-ratio: 4/5; border: 2px dashed var(--ink) !important; border-radius: 10px; display: grid !important; place-items: center; text-align: center; cursor: pointer; background: var(--paper) repeating-linear-gradient(45deg, transparent 0 12px, rgba(14,13,12,.04) 12px 24px); overflow: hidden; }
.am-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.am-drop__txt { font: 600 14px var(--f-wide) !important; text-transform: none; }
.am-drop__txt b { display: block; font-size: 48px; color: var(--accent); }
.am-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.am-drop.has-img .am-drop__txt { opacity: 0; }

.am-cabinet__head { display: flex; gap: 24px; align-items: center; padding-bottom: 28px; border-bottom: 2px solid var(--ink); flex-wrap: wrap; }
.am-cabinet__role { font: 500 12px var(--f-mono); color: var(--muted); display: flex; gap: 10px; align-items: center; }
.am-cabinet__name { margin: 6px 0 14px; font: 800 clamp(32px, 4.5vw, 64px)/.95 var(--f-body); letter-spacing: -.05em; }
.am-cabinet__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.am-tabs { display: flex; gap: 4px; margin: 24px 0; overflow-x: auto; }
.am-tabs a { padding: 10px 16px; border-radius: 999px; text-decoration: none; font: 600 12px var(--f-mono); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.am-tabs a:hover { background: var(--paper-2); }
.am-tabs a.is-active { background: var(--ink); color: var(--accent); }
.am-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.am-stats div { background: var(--white); border-radius: 10px; padding: 20px; }
.am-stats strong { display: block; font: 800 44px/1 var(--f-wide); letter-spacing: -.04em; }
.am-stats span { font: 500 11px var(--f-mono); text-transform: uppercase; color: var(--muted); }
.am-rights { background: var(--ink); color: var(--paper); border-radius: 10px; padding: 24px; margin-top: 12px; }
.am-rights h3 { margin: 0 0 12px; font: 700 14px var(--f-wide); text-transform: uppercase; }
.am-rights ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.am-rights li { font-size: 14px; display: flex; gap: 10px; align-items: center; }
.am-rights li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 12px; flex-shrink: 0; }
.am-rights li.no { opacity: .4; }
.am-rights li.no::before { content: "—"; background: var(--ink-3); color: var(--paper); }
.am-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 10px; overflow: hidden; font-size: 14px; }
.am-table th { text-align: left; font: 500 10px var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 14px; background: var(--paper-2); }
.am-table td { padding: 12px 14px; border-top: 1px solid var(--line); }
.am-table td a { font-weight: 700; }
.am-table form { margin: 0; }
.am-status { font: 600 10px var(--f-mono); text-transform: uppercase; padding: 4px 8px; border-radius: 3px; background: var(--paper-2); white-space: nowrap; }
.am-status--publish { background: #d9f0d8; color: #1f6b2a; }
.am-status--pending { background: #fff0c9; color: #7a5a00; }
.am-status--draft { background: #ffe1d8; color: var(--accent-2); }
.am-empty { padding: 30px; text-align: center; background: var(--white); border-radius: 10px; color: #5a554e; }
.am-empty a { color: var(--accent-2); font-weight: 700; }

.am-forbidden { text-align: center; padding: 40px 0; }
.am-forbidden__code { font: 900 clamp(110px, 18vw, 220px)/.9 var(--f-wide); color: var(--accent); letter-spacing: -.05em; }
.am-forbidden h2 { font: 400 48px var(--f-cond); text-transform: uppercase; margin: 10px 0; }

.am-mod__h { font: 400 clamp(36px, 4vw, 56px)/1 var(--f-cond); text-transform: uppercase; margin: 0 0 20px; }
.am-mod__h sup { font: 700 16px var(--f-mono); color: var(--accent); }
.am-mod__item { display: grid; grid-template-columns: 200px 1fr; gap: 24px; background: var(--white); border-radius: 10px; padding: 18px; margin-bottom: 14px; }
.am-mod__img img { border-radius: 6px; aspect-ratio: 4/5; object-fit: cover; }
.am-mod__info h3 { margin: 0 0 6px; font: 500 34px/1 var(--f-cond); text-transform: uppercase; }
.am-mod__meta { margin: 2px 0; font: 500 12px var(--f-mono); color: var(--muted); }
.am-mod__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.am-mod__reject { display: flex; gap: 8px; }
.am-mod__reject input { padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); }
.am-mod__comments { list-style: none; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 8px; }
.am-mod__comments li { background: var(--white); padding: 12px 16px; border-radius: 8px; font-size: 14px; }
.am-mod__comments a { color: var(--accent-2); }

/* ---------- Toast ---------- */
.am-toast { position: fixed; left: 50%; bottom: 28px; z-index: 999; transform: translate(-50%, 30px); opacity: 0; transition: .3s; background: var(--ink); color: var(--paper); padding: 14px 20px; border-radius: 999px; font: 600 14px var(--f-body); box-shadow: 0 10px 40px rgba(0,0,0,.35); border: 1.5px solid var(--accent); max-width: 90vw; }
.am-toast.is-in { transform: translate(-50%, 0); opacity: 1; }
.am-toast--error { background: var(--accent); color: var(--ink); border-color: var(--ink); }
.am-toast--warn { background: #ffd23f; color: var(--ink); border-color: var(--ink); }

/* ---------- 404 ---------- */
.amt-404 { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; color: var(--paper); text-align: center; padding: 60px var(--pad); }
.amt-404::before { filter: none; opacity: 1; }
.amt-404__code { font: 900 clamp(140px, 30vw, 420px)/.8 var(--f-wide); letter-spacing: -.06em; color: var(--paper); mix-blend-mode: difference; }
.amt-404 p { font: 600 18px var(--f-mono); background: var(--ink); padding: 8px 14px; }
.amt-search--big { max-width: 520px; width: 100%; flex: none; margin: 0; }

/* ---------- Подвал ---------- */
.amt-footer { background: var(--ink); color: var(--paper); }
.amt-footer__hypno {
	position: relative; height: clamp(220px, 30vw, 420px); overflow: hidden;
	background: repeating-radial-gradient(circle at 50% 120%, var(--ink) 0 26px, var(--white) 26px 52px);
}
.amt-sticker {
	position: absolute; left: 50%; top: 50%; transform: translate(-50%, -40%) rotate(-8deg);
	width: clamp(150px, 18vw, 230px); aspect-ratio: 1; display: grid; place-items: center; text-align: center;
	background: var(--accent);
	clip-path: polygon(50% 0%, 61% 12%, 77% 5%, 80% 21%, 96% 24%, 89% 39%, 100% 50%, 89% 61%, 96% 76%, 80% 79%, 77% 95%, 61% 88%, 50% 100%, 39% 88%, 23% 95%, 20% 79%, 4% 76%, 11% 61%, 0% 50%, 11% 39%, 4% 24%, 20% 21%, 23% 5%, 39% 12%);
	animation: amt-wobble 4s ease-in-out infinite;
}
.amt-sticker span { width: 60%; font: 500 clamp(17px, 2vw, 24px)/1 var(--f-cond); text-transform: uppercase; color: var(--white); }
@keyframes amt-wobble { 50% { transform: translate(-50%, -40%) rotate(4deg) scale(1.05); } }
.amt-footer__in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding: 60px var(--pad) 40px; max-width: 1560px; margin: 0 auto; }
.amt-footer__brand p { max-width: 42ch; color: #b7b0a5; }
.amt-footer h4 { font: 500 11px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 14px; }
.amt-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.amt-footer ul a { text-decoration: none; font-size: 15px; }
.amt-footer ul a:hover { color: var(--accent); }
.amt-footer__bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 18px var(--pad) 26px; border-top: 1px solid var(--line-light); font: 700 10px var(--f-wide); text-transform: uppercase; letter-spacing: .05em; max-width: 1560px; margin: 0 auto; }
.amt-footer__bottom b { color: var(--accent); font-weight: 900; }

/* ---------- Анимация появления ---------- */
.amt-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.amt-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.amt-reveal { opacity: 1; transform: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1180px) {
	.amt-nav { display: none; }
	.amt-burger { display: flex; }
	.amt-menu-open .amt-nav { display: block; position: fixed; inset: 64px 0 auto; background: var(--ink); padding: 20px var(--pad) 30px; border-bottom: 1px solid var(--line-light); }
	.amt-menu-open .amt-menu { flex-direction: column; gap: 14px; }
	.amt-menu-open .amt-menu a { font-size: 16px; }
	.amt-lot { grid-template-columns: 1fr; }
	.amt-lot__side { position: static; }
	.amt-how__list { grid-template-columns: 1fr 1fr; }
	.amt-how__list li:nth-child(3) { padding-left: 0; }
}
@media (max-width: 860px) {
	.amt-header__in { gap: 12px; flex-wrap: wrap; }
	.amt-search--header { order: 5; max-width: none; flex-basis: 100%; }
	.amt-user__link span, .amt-logo__txt small { display: none; }
	.amt-ed, .amt-lot__story, .amt-comments, .am-auth, .am-submit__grid, .amt-footer__in { grid-template-columns: 1fr; }
	.amt-ed--rev .amt-ed__img { order: 0; }
	.amt-stats, .am-stats { grid-template-columns: 1fr 1fr; }
	.am-form__row { grid-template-columns: 1fr; }
	.am-mod__item { grid-template-columns: 1fr; }
	.amt-hero__ring { top: auto; bottom: 70px; right: 16px; width: 96px; }
	.amt-hero__meta small { display: none; }
	.amt-corner { font-size: 8px; gap: 16px; }
	.am-table { display: block; overflow-x: auto; }
	.amt-repeat__frag--a, .amt-repeat__frag--b { left: 30%; }
}
@media (max-width: 520px) {
	.amt-user .am-btn--ghost-light { display: none; }
	.amt-how__list { grid-template-columns: 1fr; }
	.amt-how__list li { padding-left: 0; border-right: 0; border-bottom: 1px solid var(--line-light); }
	.amt-how__list h3 { margin-top: 16px; }
	.am-bidbox__form { flex-direction: column; }
}

/* ---------- Доработки ---------- */
.amt-hero__sub { margin-top: clamp(30px, 4vw, 60px); background: var(--ink); padding: 6px 12px; }
.amt-hero__meta small { opacity: 1; font-weight: 600; background: rgba(14,13,12,.75); padding: 4px 6px; }
.amt-pagehead__count { align-self: flex-start; background: var(--ink); padding: 6px 10px; }
.amt-catalog { padding-top: clamp(32px, 4vw, 56px); }
@media (min-width: 1101px) {
	.amt-filters { display: grid; grid-template-columns: 2fr 1.3fr 1fr .8fr .8fr 1.2fr auto; }
}
@media (max-width: 860px) {
	.amt-user { margin-left: auto; }
	.amt-burger { order: 3; }
}
@media (max-width: 520px) {
	.am-keycaps { gap: 3px; }
	.am-keycaps span { width: 27px; font-size: 13px; border-radius: 5px; box-shadow: inset 0 1px 1px rgba(255,255,255,.18), inset 0 -3px 0 rgba(0,0,0,.7), 0 3px 0 #000; }
	.am-keycaps i { width: 8px; }
}
@media (max-width: 860px) { .amt-header__in { column-gap: 10px; } }
@media (max-width: 420px) { .amt-logo__txt { display: none; } }
