/* MERARY Premium — «Вся коллекция». Прототип 2026-11-09.
 * Опирается на premium-b2.css (утверждённые токены, шапка, кнопки, подвал, тост) и ничего в нём не переопределяет.
 * Концепция «Галерея»: ровная анфилада арочных витрин. Каждая композиция подсвечена собственным цветом (glow),
 * свет — единственный акцент; всё остальное тихое: тонкая консоль фильтров, ровный ритм, текст слева от края арки.
 * Отличие от «Аркады»: нет бархатной стены, карниза и большой ниши — здесь важнее сравнивать десятки позиций. */

.vc { --head-h: 72px; --console-h: 0px; }
.vc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vc-main { padding-top: var(--head-h); }
.vc .v2-head__nav a[aria-current="page"] { color: var(--champ); text-decoration: underline; text-underline-offset: 8px; text-decoration-color: var(--rose); }

/* ---------- Intro ---------- */
.vc-intro { position: relative; max-width: var(--max); margin: 0 auto; padding: var(--s6) var(--gut) var(--s4); isolation: isolate; }
.vc-intro__beam { position: absolute; z-index: -1; left: 50%; top: calc(var(--head-h) * -1); width: min(900px, 90vw); height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 236, 226, .10), transparent 70%), radial-gradient(40% 50% at 50% 30%, rgba(107, 42, 76, .35), transparent 75%); }
.vc-crumbs { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--mist); margin-bottom: var(--s3); }
.vc-crumbs a { text-decoration: none; color: var(--mist); }
.vc-crumbs a:hover { color: var(--champ); }
.vc-crumbs [aria-current] { color: var(--champ); }
.vc-intro h1 { font-size: clamp(46px, 6.4vw, 92px); line-height: .98; letter-spacing: -.01em; }
.vc-intro__lead { margin: var(--s3) 0 0; max-width: 34em; font-size: 16px; line-height: 1.6; color: var(--mist); }

/* ---------- Console (sticky) ---------- */
.vc-console { position: sticky; top: var(--head-h); z-index: 30; border-block: 1px solid var(--line); background: rgba(23, 10, 16, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.vc-console__bar { max-width: var(--max); margin: 0 auto; padding: 14px var(--gut) 10px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; }
.vc-search { position: relative; flex: 1 1 240px; max-width: 340px; display: block; }
.vc-search svg { position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--mist); stroke-width: 1.6; pointer-events: none; }
.vc-search input { width: 100%; height: 44px; padding: 0 16px 0 44px; border: 0; border-radius: 999px; background: rgba(244, 233, 227, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--champ); font: 400 14px/1 var(--ui); }
.vc-search input::placeholder { color: var(--mist-2); }
.vc-search input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--rose); background: rgba(244, 233, 227, .09); }
.vc-search input::-webkit-search-cancel-button { filter: invert(.8); cursor: pointer; }

.vc-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 22px; flex: 1 1 auto; }
.vc-filters__head, .vc-filters__foot { display: none; }
/* legend не участвует во flex-gap fieldset'а — отступ задаём явно, чтобы подписи всех полей стояли на одной линии */
.vc-field { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 0; }
.vc-field legend, .vc-legend { display: block; padding: 0; margin: 0 0 6px; font-size: 12px; line-height: 18px; color: var(--mist-2); }
.vc-field--sort { margin-left: auto; }

.vc-seg { display: inline-flex; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.vc-seg button { appearance: none; border: 0; background: none; cursor: pointer; border-radius: 999px; padding: 9px 14px; font: 500 13px/1 var(--ui); color: var(--mist); white-space: nowrap; transition: background var(--t1) ease, color var(--t1) ease; }
.vc-seg button small { font-size: 11px; margin-left: 5px; opacity: .7; font-variant-numeric: tabular-nums; }
.vc-seg button:hover:not(:disabled) { color: var(--champ); }
.vc-seg button[aria-pressed="true"] { background: var(--champ); color: var(--night); }
.vc-seg button:disabled { opacity: .35; cursor: default; }

.vc-range { width: 230px; padding: 0 9px; }
.vc-field--price legend output { margin-left: 6px; color: var(--champ); font-variant-numeric: tabular-nums; }
.vc-range__track { position: relative; height: 40px; }
.vc-range__track::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 2px; border-radius: 1px; background: var(--line-2); }
.vc-range__track i { position: absolute; top: 19px; height: 2px; background: var(--rose); border-radius: 1px; }
.vc-range input { position: absolute; inset: 0 -9px; width: calc(100% + 18px); margin: 0; background: none; pointer-events: none; appearance: none; -webkit-appearance: none; height: 40px; }
.vc-range input::-webkit-slider-runnable-track { background: none; height: 40px; }
.vc-range input::-moz-range-track { background: none; }
.vc-range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 18px; height: 18px; margin-top: 11px; border-radius: 50%; background: var(--champ); border: 0; box-shadow: 0 0 0 4px rgba(23, 10, 16, .9), 0 2px 8px rgba(0, 0, 0, .5); cursor: grab; }
.vc-range input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--champ); border: 0; box-shadow: 0 0 0 4px rgba(23, 10, 16, .9); cursor: grab; }
.vc-range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(23, 10, 16, .9), 0 0 0 6px var(--rose); }
.vc-range input:focus-visible { outline: none; }

/* ---------- единый выпадающий компонент: «Повод» (несколько) и «Порядок» (один) ---------- */
.vc-pop { position: relative; }
.vc-pop__btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 150px; height: 40px; padding: 0 14px 0 18px; border: 0; border-radius: 999px; background: none; box-shadow: inset 0 0 0 1px var(--line); color: var(--champ); font: 500 13px/1 var(--ui); cursor: pointer; white-space: nowrap; transition: box-shadow var(--t1) ease, background var(--t1) ease; }
.vc-pop__btn svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .75; transition: transform var(--t1) ease; }
.vc-pop__btn[aria-expanded="true"] svg { transform: rotate(180deg); opacity: 1; }
.vc-pop__btn:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.vc-pop__btn[aria-expanded="true"] { background: rgba(244, 233, 227, .06); box-shadow: inset 0 0 0 1px var(--line-2); }
.vc-pop__list { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; min-width: max(100%, 232px); max-height: min(22rem, calc(100dvh - 190px)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
  padding: 8px; border-radius: 16px; background: var(--velvet); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -16px rgba(0, 0, 0, .8); display: none; }
.vc-pop.is-open .vc-pop__list { display: block; animation: vc-pop-in var(--t1) var(--ease); }
.vc-pop--right .vc-pop__list { left: auto; right: 0; }
@keyframes vc-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vc-pop.is-open .vc-pop__list { animation: none; } .vc-pop__btn, .vc-pop__btn svg { transition: none; } }

.vc-opt { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--champ); cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.vc-opt:hover { background: rgba(244, 233, 227, .06); }
.vc-opt[aria-selected="true"] { background: rgba(233, 163, 186, .1); font-weight: 600; }
.vc-opt:focus-visible { box-shadow: inset 0 0 0 1.5px var(--rose); background: rgba(244, 233, 227, .08); }
.vc-opt__mark { position: relative; width: 18px; height: 18px; flex: none; box-shadow: inset 0 0 0 1.5px var(--line-2); }
[data-mode="multi"] .vc-opt__mark { border-radius: 5px; }
[data-mode="single"] .vc-opt__mark { border-radius: 50%; }
.vc-opt[aria-selected="true"] .vc-opt__mark { background: var(--champ); box-shadow: none; }
[data-mode="multi"] .vc-opt[aria-selected="true"] .vc-opt__mark::after { content: ''; position: absolute; left: 4px; top: 4.5px; width: 10px; height: 5px; border: solid var(--night); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
[data-mode="single"] .vc-opt[aria-selected="true"] .vc-opt__mark::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--night); }
.vc-opt small { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--mist-2); font-variant-numeric: tabular-nums; }
.vc-opt.is-zero { opacity: .4; }

.vc-sheet-open { display: none; }
.vc-icon { width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(244, 233, 227, .06); display: grid; place-items: center; cursor: pointer; }
.vc-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.vc-console__status { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; min-height: 30px; }
.vc-count { margin: 0; font-size: 13px; color: var(--champ); font-variant-numeric: tabular-nums; }
.vc-count small { color: var(--mist-2); font-size: 13px; }
.vc-chips { display: contents; list-style: none; }
.vc-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 12px; border-radius: 999px; background: rgba(244, 233, 227, .08); font-size: 12.5px; }
.vc-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: var(--mist); cursor: pointer; display: grid; place-items: center; font-size: 14px; line-height: 1; }
.vc-chip button:hover { background: rgba(244, 233, 227, .14); color: var(--champ); }
.vc-reset { border: 0; background: none; padding: 4px 0; color: var(--rose); font: 500 13px/1 var(--ui); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(233, 163, 186, .4); }
.vc-reset:hover { text-decoration-color: currentColor; }

/* ---------- Grid of arched windows ---------- */
.vc-results { max-width: var(--max); margin: 0 auto; padding: var(--s6) var(--gut) var(--s5); }
.vc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
.vc-grid[aria-busy="true"] .vc-card:not(.is-skel) { opacity: .4; }

.vc-card { --glow: #6b2a4c; position: relative; min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 520px; }
.vc-card.is-new { animation: vc-in var(--t3) var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms); }
@keyframes vc-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.vc-card__stage { position: relative; }
.vc-card__win { position: relative; display: block; width: 100%; padding: 12px; border: 0; background: none; cursor: pointer; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; isolation: isolate; border-radius: 999px 999px 14px 14px; }
/* молдинг: тонкая шампань-рамка вокруг арки */
.vc-card__win::before { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(244, 233, 227, .14); transition: box-shadow var(--t2) var(--ease); }
/* свет композиции — единственный цвет страницы помимо вина */
.vc-card__win::after { content: ''; position: absolute; z-index: -1; inset: 8% -6% 18%; border-radius: 50%; background: radial-gradient(closest-side, var(--glow), transparent); opacity: .5; filter: blur(30px); transition: opacity var(--t3) var(--ease); }
.vc-card__arch { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 6px 6px;
  background: radial-gradient(80% 70% at 50% 62%, color-mix(in srgb, var(--glow) 55%, #1d0d15), #1d0d15 100%);
  box-shadow: inset 0 0 0 1px var(--line), 0 50px 70px -44px rgba(0, 0, 0, .95); }
.vc-card__arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity var(--t2) ease; }
.vc-card__arch img[data-loading] { opacity: 0; }
.vc-card.is-cut .vc-card__arch img { object-fit: contain; padding: 14% 6% 6%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .55)); }
/* быстрый просмотр — отдельное действие: всегда видимая стеклянная «пилюля» (без hover), на телефоне — круглая иконка 44 px */
.vc-card__quick { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(23, 10, 16, .66); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(244, 233, 227, .34), 0 6px 18px rgba(0, 0, 0, .35); color: var(--champ); font: 600 12.5px/1 var(--ui); white-space: nowrap; cursor: pointer; transition: background var(--t1) ease, box-shadow var(--t1) ease, color var(--t1) ease; }
.vc-card__quick svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.vc-card__quick:hover { background: rgba(244, 233, 227, .2); box-shadow: inset 0 0 0 1px rgba(244, 233, 227, .6), 0 6px 18px rgba(0, 0, 0, .35); color: #fff; }
.vc-card__quick:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; }
.vc-card__win:hover::before, .vc-card__win:focus-visible::before { box-shadow: inset 0 0 0 1px rgba(244, 233, 227, .42); }
.vc-card__win:hover::after, .vc-card__win:focus-visible::after { opacity: .95; }
.vc-card__win:hover .vc-card__arch img { transform: scale(1.035); }
.vc-card__win:focus-visible { outline-offset: 4px; }

.vc-card__label { padding: var(--s3) 12px 0; }
.vc-card__name { font-size: 22px; font-style: italic; line-height: 1.18; }
.vc-card__name a { text-decoration: none; }
.vc-card__name a:hover { color: var(--rose); }
.vc-card__comp { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--mist); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.vc-card__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: var(--s2); }
.vc-price { font-family: var(--display); font-size: 21px; line-height: 1; font-variant-numeric: lining-nums; white-space: nowrap; }
.vc-price small { font-family: var(--ui); font-size: 12px; color: var(--mist); margin-right: 4px; }
.vc-add { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(244, 233, 227, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--champ); font: 600 12.5px/1 var(--ui); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background var(--t1) ease, box-shadow var(--t1) ease, color var(--t1) ease; }
.vc-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; flex: none; }
.vc-add:hover { background: linear-gradient(135deg, var(--rose-hi), var(--rose-deep)); box-shadow: none; color: #fff; }
.vc-add.is-added { background: #3f7a55; box-shadow: none; color: #fff; }

/* skeleton while the catalog loads */
.vc-card.is-skel .vc-card__arch { background: linear-gradient(110deg, #22101a 30%, #2e1523 50%, #22101a 70%) 0 0 / 200% 100%; animation: vc-skel 1.6s linear infinite; }
.vc-card.is-skel .vc-card__win { cursor: default; }
.vc-card.is-skel .vc-card__win::after { opacity: .15; }
.vc-skel-line { display: block; height: 14px; border-radius: 7px; background: rgba(244, 233, 227, .07); margin-top: 10px; }
@keyframes vc-skel { to { background-position: -200% 0; } }

/* ---------- Load more ---------- */
.vc-more { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: var(--s7); }
.vc-more__text { margin: 0; font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.vc-more__bar { width: 180px; height: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.vc-more__bar i { display: block; height: 100%; background: var(--champ); transition: width var(--t2) var(--ease); }

/* ---------- Empty / error ---------- */
.vc-empty, .vc-error { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--s5) 0 var(--s4); }
.vc-empty__arch { width: 150px; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; box-shadow: inset 0 0 0 1px var(--line-2); background: radial-gradient(60% 50% at 50% 70%, rgba(107, 42, 76, .45), transparent 75%); margin-bottom: var(--s4); }
.vc-empty h2, .vc-error h2 { font-size: 34px; line-height: 1.15; }
.vc-empty p, .vc-error p { margin: var(--s2) 0 0; max-width: 32em; color: var(--mist); }
.vc-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: var(--s4); }
.vc-error .v2-btn { margin-top: var(--s3); }

/* ---------- Atelier looks (not products) ---------- */
.vc-atelier { max-width: var(--max); margin: 0 auto; padding: var(--s7) var(--gut); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: var(--s6); align-items: center; }
.vc-atelier h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; }
.vc-atelier__copy p { margin: var(--s2) 0 var(--s4); max-width: 30em; color: var(--mist); }
.vc-atelier__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.vc-atelier__nav { display: none; }
.vc-look { text-align: center; }
.vc-look__arch { display: block; aspect-ratio: 4 / 5; border-radius: 999px 999px 6px 6px; overflow: hidden; background: radial-gradient(70% 60% at 50% 66%, color-mix(in srgb, var(--glow) 60%, #1d0d15), #1d0d15); box-shadow: inset 0 0 0 1px var(--line); outline: 1px dashed rgba(244, 233, 227, .22); outline-offset: 8px; }
.vc-look__arch img { width: 100%; height: 100%; object-fit: contain; padding: 14% 6% 6%; filter: drop-shadow(0 12px 12px rgba(0, 0, 0, .5)); }
.vc-look h3 { margin-top: var(--s3); font-size: 18px; font-style: italic; line-height: 1.2; }
.vc-look p { margin: 4px 0 0; font-size: 12.5px; color: var(--mist); }

/* ---------- Return to the show ---------- */
.vc-return { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) var(--s7); display: flex; justify-content: center; }
.vc-return__link { display: inline-flex; align-items: center; gap: var(--s3); padding: 14px 28px 14px 14px; border-radius: 999px; text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow var(--t1) ease, background var(--t1) ease; }
.vc-return__link:hover { background: rgba(244, 233, 227, .05); box-shadow: inset 0 0 0 1px var(--line-2); }
.vc-return__arch { width: 40px; aspect-ratio: 4 / 5; border-radius: 999px 999px 4px 4px; background: url("media/hero-start.webp") center / cover; box-shadow: inset 0 0 0 1px var(--line-2); }
.vc-return__link b { display: block; font-family: var(--display); font-weight: 400; font-style: italic; font-size: 21px; }
.vc-return__link small { display: block; font-size: 12.5px; color: var(--mist); }

/* ---------- Close-up view ---------- */
.vc-view { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--champ); overflow: hidden; }
.vc-view::backdrop { background: rgba(14, 6, 10, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.vc-view[open] .vc-view__room { animation: vc-open var(--t2) var(--ease) both; }
@keyframes vc-open { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.vc-view__room { position: relative; height: 100%; max-width: 1180px; margin: 0 auto; padding: var(--s5) var(--gut); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s6); align-items: center; }
.vc-view__piece { --glow: #6b2a4c; position: relative; margin: 0; justify-self: center; height: min(78vh, 760px); aspect-ratio: 4 / 5; max-width: 100%; border-radius: 999px 999px 8px 8px; overflow: hidden;
  background: radial-gradient(80% 70% at 50% 62%, color-mix(in srgb, var(--glow) 60%, #1d0d15), #1d0d15); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 160px -30px var(--glow), 0 60px 90px -40px rgba(0, 0, 0, .9); }
.vc-view__piece img { width: 100%; height: 100%; object-fit: cover; }
.vc-view__piece.is-cut img { object-fit: contain; padding: 12% 6% 6%; }
.vc-view__kind { margin: 0; font-size: 13px; color: var(--mist); }
.vc-view__name { margin-top: 10px; font-size: clamp(34px, 3.6vw, 52px); font-style: italic; line-height: 1.08; }
.vc-view__comp { margin: var(--s3) 0 0; max-width: 30em; font-size: 15px; line-height: 1.6; color: var(--champ); }
.vc-view__sku { margin: 10px 0 0; font-size: 12.5px; color: var(--mist-2); }
.vc-view__price { margin: var(--s4) 0 0; font-family: var(--display); font-size: 34px; line-height: 1; }
.vc-view__price small { font-family: var(--ui); font-size: 14px; color: var(--mist); margin-right: 6px; }
.vc-view__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s4); }
.vc-view__nav { display: flex; align-items: center; gap: 16px; margin-top: var(--s6); font-size: 13px; color: var(--mist); font-variant-numeric: tabular-nums; }
.vc-view__close { position: absolute; top: 20px; right: var(--gut); width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(23, 10, 16, .6); color: var(--champ); display: grid; place-items: center; cursor: pointer; }
.vc-view__close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.vc-view__close:hover { background: rgba(244, 233, 227, .12); }

.mpx-toast { z-index: 80; }

/* ---------- ≤1180: three windows per row ---------- */
@media (max-width: 1180px) {
  .vc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--s3); }
  .vc-field--sort { margin-left: 0; }
  .vc-atelier { grid-template-columns: 1fr; gap: var(--s5); }
}

/* ---------- ≤960: header has no section links ---------- */
@media (max-width: 960px) {
  .vc-search { max-width: none; flex-basis: 100%; }
  /* столбцом через flex: в grid-строке высота арки по aspect-ratio считалась раньше ширины, и фото наезжало на название */
  .vc-view__room { display: flex; flex-direction: column; align-items: center; overflow-y: auto; gap: var(--s4); padding-top: 76px; }
  .vc-view__piece { flex: none; }
  .vc-view__piece { height: min(58vh, 640px); }
  .vc-view__info { max-width: 560px; margin: 0 auto; width: 100%; padding-bottom: var(--s5); }
  .vc-view__nav { margin-top: var(--s4); }
}

/* ---------- ≤760: two windows per row, filters live in a bottom sheet ---------- */
@media (max-width: 760px) {
  .vc-intro { padding: var(--s5) var(--gut) var(--s3); }
  .vc-intro__lead { font-size: 15px; }
  /* backdrop-filter у консоли сделал бы её контейнером для position:fixed — шторка встала бы не у нижнего края */
  .vc-console { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(23, 10, 16, .97); }
  .vc.vc-sheet-on .vc-console { z-index: 75; }
  .vc-console__bar { flex-wrap: nowrap; gap: 10px; padding: 10px var(--gut) 8px; align-items: center; }
  .vc-search { flex: 1 1 auto; }
  .vc-search input { height: 42px; font-size: 16px; }
  .vc-sheet-open { display: inline-flex; flex: none; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(244, 233, 227, .08); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--champ); font: 600 13px/1 var(--ui); cursor: pointer; }
  .vc-sheet-open svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .vc-sheet-open b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--rose-hi); color: #fff; font-size: 11.5px; display: inline-grid; place-items: center; }

  .vc-filters { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 86dvh; overflow-y: auto; overscroll-behavior: contain;
    flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: var(--s4); padding: 0 var(--gut) calc(var(--s3) + env(safe-area-inset-bottom));
    background: var(--velvet); border-radius: 24px 24px 0 0; box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 var(--line);
    transform: translateY(105%); visibility: hidden; transition: transform var(--t2) var(--ease), visibility 0s linear var(--t2); }
  .vc.vc-sheet-on .vc-filters { transform: none; visibility: visible; transition: transform var(--t2) var(--ease), visibility 0s; }
  .vc-filters__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1; margin: 0 calc(var(--gut) * -1); padding: 16px var(--gut) 12px; background: var(--velvet); }
  .vc-filters__head p { margin: 0; font-family: var(--display); font-size: 24px; }
  .vc-filters__foot { display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; position: sticky; bottom: 0; margin: 0 calc(var(--gut) * -1); padding: 12px var(--gut) 0; background: var(--velvet); }
  .vc-filters__foot .v2-btn { min-height: 48px; padding: 0 16px; }
  .vc-field legend, .vc-legend { font-size: 13px; margin-bottom: 4px; }
  .vc-field--sort { margin-left: 0; }
  .vc-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .vc-seg::-webkit-scrollbar { display: none; }
  .vc-range { width: 100%; padding: 0 13px; }
  .vc-field--price legend output { font-size: 15px; }
  .vc-range__track { height: 44px; }
  .vc-range input { height: 44px; inset: 0 -13px; width: calc(100% + 26px); }
  .vc-range input::-webkit-slider-runnable-track { height: 44px; }
  .vc-range input::-webkit-slider-thumb { width: 26px; height: 26px; margin-top: 9px; }
  .vc-range__track::before, .vc-range__track i { top: 21px; }
  /* повод в шторке — сразу списком */
  .vc-pop__btn { display: none; }
  .vc-pop__list { position: static; display: block; min-width: 0; padding: 0; background: none; box-shadow: none; }
  .vc-opt { padding: 11px 8px; font-size: 15px; }
  .vc-pop__list { max-height: none; overflow: visible; animation: none !important; }
  .vc-sheet-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(14, 6, 10, .6); }

  .vc-console__status { padding-bottom: 10px; min-height: 0; }
  .vc-results { padding-top: var(--s4); }
  .vc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) 14px; }
  .vc-card { contain-intrinsic-size: auto 360px; }
  .vc-card__win { padding: 7px; }
  .vc-card__quick { left: auto; right: 15px; bottom: 15px; transform: none; width: 44px; height: 44px; padding: 0; justify-content: center; }
  .vc-card__quick span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vc-card__quick svg { width: 20px; height: 20px; }
  .vc-card__win::after { filter: blur(20px); }
  .vc-card__label { padding: 14px 4px 0; }
  .vc-card__name { font-size: 17px; }
  .vc-card__comp { font-size: 12px; }
  .vc-card__buy { margin-top: 10px; gap: 8px; }
  .vc-price { font-size: 17px; }
  .vc-price small { font-size: 11px; }
  .vc-add { width: 40px; height: 40px; padding: 0; justify-content: center; flex: none; }
  .vc-add span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vc-add svg { width: 18px; height: 18px; }
  .vc-more { margin-top: var(--s6); }
  /* Atelier на телефоне: не три крошечные арки в ряд, а лента крупных арок со «сдвигом» (следующая выглядывает) и привязкой прокрутки.
     Заголовок и текст — в поле, лента — от края до края, действие к флористу — под лентой. Десктоп и планшет не затронуты. */
  .vc-atelier { display: flex; flex-direction: column; padding: var(--s5) 0; gap: 0; align-items: stretch; }
  .vc-atelier__copy { display: contents; }
  .vc-atelier h2 { order: 1; margin: 0 var(--gut); font-size: 28px; }
  .vc-atelier__copy p { order: 2; margin: var(--s2) var(--gut) 0; font-size: 14.5px; }
  .vc-atelier__list { order: 3; display: flex; gap: 18px; margin-top: var(--s2); padding: 14px var(--gut) 4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gut); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .vc-atelier__list::-webkit-scrollbar { display: none; }
  .vc-atelier__list:focus-visible { outline: 2px solid var(--rose); outline-offset: -2px; border-radius: 8px; }
  .vc-look { flex: 0 0 min(72vw, 300px); scroll-snap-align: start; }
  .vc-look__arch { outline-offset: 6px; }
  .vc-look h3 { font-size: 21px; margin-top: var(--s2); }
  .vc-look p { font-size: 12.5px; margin-top: 6px; }
  .vc-atelier__nav { order: 4; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 4px; }
  .vc-atelier__arrow { width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(244, 233, 227, .06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--champ); display: grid; place-items: center; cursor: pointer; transition: opacity var(--t1) ease; }
  .vc-atelier__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .vc-atelier__arrow:disabled { opacity: .3; cursor: default; }
  .vc-atelier__dots { display: inline-flex; align-items: center; gap: 8px; }
  .vc-atelier__dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--line-2); transition: width var(--t1) ease, background var(--t1) ease; }
  .vc-atelier__dots i.is-on { width: 22px; background: var(--champ); }
  .vc-atelier__copy .v2-btn { order: 5; margin: var(--s3) var(--gut) 0; justify-content: center; }
  .vc-view__room { padding: 68px var(--gut) var(--s3); }
  .vc-view__piece { height: auto; width: min(calc(100vw - 2 * var(--gut)), 38dvh); }
  .vc-view__name { font-size: 32px; }
  .vc-view__price { font-size: 28px; margin-top: var(--s3); }
  .vc-view__actions .v2-btn { flex: 1 1 auto; }
  .vc-view__close { top: 12px; width: 44px; height: 44px; }
  .vc-return__link { padding: 12px 20px 12px 12px; }
}
@media (max-width: 640px) { .vc { --head-h: 58px; } }
@media (max-width: 380px) {
  .vc-sheet-open { padding: 0 12px; }
  .vc-grid { gap: var(--s4) 10px; }
  .vc-card__name { font-size: 16px; }
  .vc-price { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .vc-card.is-new, .vc-view[open] .vc-view__room { animation: none; }
  .vc-card.is-skel .vc-card__arch { animation: none; }
  .vc-card__win:hover .vc-card__arch img { transform: none; }
  .vc-filters { transition: none !important; }
}
