/* ---------- Примірочна: 3D-кімната ---------- */
.room { position: relative; overflow: hidden; overscroll-behavior: contain; touch-action: pan-y; background: #e9e6e0; perspective: 1100px; perspective-origin: 50% 44%; user-select: none; --depth: 900px; }
.room__scene { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.room__wall, .room__floor, .room__ceil { position: absolute; transform-style: preserve-3d; backface-visibility: hidden; }
.room__wall { top: -15%; height: 130%; overflow: hidden; }
.room__wall--back { left: -10%; width: 120%; transform: translateZ(calc(var(--depth) * -1)); }
.room__wall--left { left: -10%; width: var(--depth); transform-origin: left center; transform: rotateY(90deg); }
.room__wall--right { left: 110%; width: var(--depth); transform-origin: left center; transform: translateZ(calc(var(--depth) * -1)) rotateY(-90deg); }
.room__paper { position: absolute; inset: 0; background-repeat: repeat; background-position: 0 0; background-size: 200px auto; }
.room__paper--next { opacity: 0; transition: opacity .65s ease; }
.room__paper--next.is-in { opacity: 1; }
.room__shade, .room__glowwall, .room__wallshadow { position: absolute; inset: 0; pointer-events: none; }
.room__wall--back .room__shade { background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, rgba(0,0,0,.16)), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 16%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22)), radial-gradient(ellipse at 50% 80%, rgba(0,0,0,.14), rgba(0,0,0,0) 45%); }
.room__wall--left .room__shade { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.32) 55%, rgba(0,0,0,.48)), linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22)); }
.room__wall--right .room__shade { background: linear-gradient(90deg, rgba(0,0,0,.26), rgba(0,0,0,.02) 35%, rgba(0,0,0,.1) 70%, rgba(0,0,0,.34)), linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22)); }
.room__wallshadow { background: radial-gradient(ellipse at 50% 92%, rgba(0,0,0,.28), rgba(0,0,0,0) 34%); }
.room__glowwall { opacity: 0; transition: opacity .8s; }
.room__wall--back .room__glowwall { background: radial-gradient(ellipse at 12% 48%, rgba(255,214,150,.55), rgba(255,200,120,0) 36%), radial-gradient(ellipse at 50% -10%, rgba(255,236,200,.45), rgba(255,236,200,0) 40%); }
.room__wall--left .room__glowwall { background: radial-gradient(ellipse at 96% 46%, rgba(255,214,150,.5), rgba(255,200,120,0) 42%); }
.room__cornice { position: absolute; left: 0; right: 0; top: 0; height: 2.2%; background: linear-gradient(180deg, #fbfaf7, #e8e5df 60%, #cfcbc3); box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.room__skirt { position: absolute; left: 0; right: 0; bottom: 0; height: 2.6%; background: linear-gradient(180deg, #f6f4ef, #e4e1da 50%, #cdc9c1); box-shadow: 0 -2px 5px rgba(0,0,0,.14); }
.room__art { position: absolute; border: 7px solid #2a2622; box-shadow: 0 14px 28px rgba(0,0,0,.32), inset 0 0 0 7px #f7f4ee; background-origin: content-box; background-clip: content-box; padding: 7px; background-color: #f7f4ee; }
.room__art--big { left: 53%; top: 22%; width: 15.5%; aspect-ratio: 3 / 4; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 400'><rect width='300' height='400' fill='%23f3ede2'/><path d='M62 332V214a88 88 0 0 1 176 0v118z' fill='%23c8825e'/><path d='M62 332V214a88 88 0 0 1 176 0v118z' fill='url(%23g)' opacity='.25'/><circle cx='150' cy='146' r='44' fill='%23ecc89c'/><circle cx='150' cy='146' r='44' fill='none' stroke='%23f7e3c4' stroke-width='3'/><rect x='36' y='262' width='64' height='70' fill='%237b8a6c'/><rect x='206' y='282' width='58' height='50' fill='%23d7b790'/><path d='M40 332h222' stroke='%232b2622' stroke-width='3'/><path d='M150 48c16 22 16 50 0 72-16-22-16-50 0-72z' fill='%232b2622'/><path d='M150 120v26' stroke='%232b2622' stroke-width='2'/></svg>"); background-size: cover; background-position: center; }
.room__art--big::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.22), rgba(255,255,255,0) 40%, rgba(0,0,0,.06)); }
.room__art--small { left: 71.5%; top: 31%; width: 8.5%; aspect-ratio: 1; border-radius: 50%; border: 5px solid #b8923f; padding: 0; box-shadow: 0 10px 22px rgba(0,0,0,.3), inset 0 0 0 2px #8f6f2c; background: radial-gradient(circle at 36% 30%, #ffffff, #d9e2e8 48%, #a9b6bf 100%); }
.room__art--small::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(120deg, rgba(255,255,255,.75) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 60%, rgba(255,255,255,.35) 100%); }
.room__art--small::after { content: ""; position: absolute; left: 56%; top: 18%; width: 22%; height: 46%; border-radius: 3px; background: linear-gradient(180deg, rgba(255,255,255,.9), rgba(220,232,240,.7)); box-shadow: 0 0 0 2px rgba(255,255,255,.5); transform: skewY(-8deg); }
.room--evening .room__art--small { background: radial-gradient(circle at 36% 30%, #8c8f93, #4a5058 50%, #2a2f36 100%); }
.room--evening .room__art--small::after { background: linear-gradient(180deg, #2d3d5c, #1a2438); }
.room__ceil { position: absolute; transform-style: preserve-3d; backface-visibility: hidden; }
.room__wall { top: -15%; height: 130%; overflow: hidden; }
.room__wall--back { left: -10%; width: 120%; transform: translateZ(calc(var(--depth) * -1)); }
.room__wall--left { left: -10%; width: var(--depth); transform-origin: left center; transform: rotateY(90deg); }
.room__wall--right { left: 110%; width: var(--depth); transform-origin: left center; transform: translateZ(calc(var(--depth) * -1)) rotateY(-90deg); }
.room__paper { position: absolute; inset: 0; background-repeat: repeat; background-position: 0 0; background-size: 200px auto; }
.room__paper--next { opacity: 0; transition: opacity .65s ease; }
.room__paper--next.is-in { opacity: 1; }
.room__shade, .room__glowwall, .room__wallshadow { position: absolute; inset: 0; pointer-events: none; }
.room__wall--back .room__shade { background: linear-gradient(90deg, rgba(0,0,0,.34), rgba(0,0,0,0) 12%, rgba(0,0,0,0) 88%, rgba(0,0,0,.16)), linear-gradient(180deg, rgba(0,0,0,.18), rgba(0,0,0,0) 16%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22)), radial-gradient(ellipse at 50% 80%, rgba(0,0,0,.14), rgba(0,0,0,0) 45%); }
.room__wall--left .room__shade { background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.32) 55%, rgba(0,0,0,.48)), linear-gradient(180deg, rgba(0,0,0,.16), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22)); }
.room__wall--right .room__shade { background: linear-gradient(90deg, rgba(0,0,0,.26), rgba(0,0,0,.02) 35%, rgba(0,0,0,.1) 70%, rgba(0,0,0,.34)), linear-gradient(180deg, rgba(0,0,0,.14), rgba(0,0,0,0) 18%, rgba(0,0,0,0) 80%, rgba(0,0,0,.22)); }
.room__wallshadow { background: radial-gradient(ellipse at 50% 92%, rgba(0,0,0,.28), rgba(0,0,0,0) 34%); }
.room__glowwall { opacity: 0; transition: opacity .8s; }
.room__wall--back .room__glowwall { background: radial-gradient(ellipse at 12% 48%, rgba(255,214,150,.55), rgba(255,200,120,0) 36%), radial-gradient(ellipse at 50% -10%, rgba(255,236,200,.45), rgba(255,236,200,0) 40%); }
.room__wall--left .room__glowwall { background: radial-gradient(ellipse at 96% 46%, rgba(255,214,150,.5), rgba(255,200,120,0) 42%); }
.room__cornice { position: absolute; left: 0; right: 0; top: 0; height: 2.2%; background: linear-gradient(180deg, #fbfaf7, #e8e5df 60%, #cfcbc3); box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.room__skirt { position: absolute; left: 0; right: 0; bottom: 0; height: 2.6%; background: linear-gradient(180deg, #f6f4ef, #e4e1da 50%, #cdc9c1); box-shadow: 0 -2px 5px rgba(0,0,0,.14); }
.room__ceil { left: -10%; width: 120%; top: -15%; height: var(--depth); transform-origin: top center; transform: translateZ(calc(var(--depth) * -1)) rotateX(90deg); background: linear-gradient(180deg, #e6e3dd, #f7f5f1 60%, #f3f1ec); }
.room__ceil::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 60%, rgba(0,0,0,0) 40%, rgba(0,0,0,.08) 100%); }
.room__ceilglow { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; background: radial-gradient(ellipse at 50% 55%, rgba(255,226,170,.6), rgba(255,226,170,0) 42%); }
.room__floor { left: -10%; width: 120%; top: 115%; height: var(--depth); transform-origin: top center; transform: translateZ(calc(var(--depth) * -1)) rotateX(90deg);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.14) 0 2px, transparent 2px 11.9%), repeating-linear-gradient(0deg, rgba(0,0,0,.05) 0 1px, transparent 1px 25%), linear-gradient(90deg, #c8b89f, #d6c7ad 30%, #c4b398 55%, #d9cab0 80%, #bfae93); }
.room__floor::before { content: ""; position: absolute; inset: 0; opacity: .5; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.004 .09' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .22 0 0 0 0 .12 0 0 0 .35 0'/></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>"); }
.room__floor::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), rgba(0,0,0,0) 22%, rgba(0,0,0,0) 60%, rgba(0,0,0,.12)), linear-gradient(90deg, rgba(0,0,0,.22), rgba(0,0,0,0) 15%, rgba(0,0,0,0) 85%, rgba(0,0,0,.14)); }
.room__sun { position: absolute; left: 58%; top: 10%; width: 46%; height: 56%; transform: skewX(-18deg); background: linear-gradient(90deg, rgba(255,250,230,0), rgba(255,250,230,.42) 25%, rgba(255,250,230,.42) 75%, rgba(255,250,230,0)); filter: blur(8px); transition: opacity .8s; }
.room__rug { position: absolute; left: 20%; right: 20%; top: 14%; bottom: 26%; background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 24px, rgba(0,0,0,.05) 24px 26px), repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 6px, rgba(0,0,0,0) 6px 12px), radial-gradient(ellipse at 50% 50%, #ece6da, #d8d0c1); box-shadow: inset 0 0 0 10px #cfc6b4, inset 0 0 0 14px #e8e1d3, 0 2px 6px rgba(0,0,0,.12); }
.room__rug::before, .room__rug::after { content: ""; position: absolute; left: 0; right: 0; height: 10px; background: repeating-linear-gradient(90deg, #d8d0c1 0 3px, transparent 3px 6px); }
.room__rug::before { top: -10px; } .room__rug::after { bottom: -10px; }
.room__floorglow { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; background: radial-gradient(ellipse at 14% 30%, rgba(255,214,150,.5), rgba(255,214,150,0) 30%), radial-gradient(ellipse at 50% 25%, rgba(255,230,190,.35), rgba(255,230,190,0) 35%); }
.room__rod { position: absolute; left: 11%; top: 11%; width: 58%; height: 1.4%; background: linear-gradient(180deg, #4a443f, #1c1917); border-radius: 4px; box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.room__rod::before, .room__rod::after { content: ""; position: absolute; top: -60%; width: 2.5%; height: 220%; background: #2b2724; border-radius: 50%; }
.room__rod::before { left: -1.2%; } .room__rod::after { right: -1.2%; }
.room__window { position: absolute; left: 20%; top: 16%; width: 40%; height: 48%; background: linear-gradient(180deg, #cfdfee 0%, #e9f1f7 55%, #d7e2d6 100%); box-shadow: 0 0 0 10px #f7f5f1, 0 0 0 13px rgba(0,0,0,.12), inset 0 0 50px rgba(255,255,255,.7), 0 0 90px 30px rgba(255,255,255,.28); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 9px; padding: 0; }
.room__window i { display: block; background: linear-gradient(160deg, rgba(255,255,255,.95), rgba(205,222,236,.8) 50%, rgba(188,206,190,.85)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.75); }
.room__window i:nth-child(1) { background: linear-gradient(160deg, rgba(255,255,255,1), rgba(205,222,236,.85) 70%); }
.room__sill { position: absolute; left: 18%; top: 64.5%; width: 44%; height: 2.4%; background: linear-gradient(180deg, #fbfaf7, #d9d5cd); box-shadow: 0 4px 8px rgba(0,0,0,.22); }
.room__curtain { position: absolute; top: 12%; width: 9%; height: 82%; background: repeating-linear-gradient(90deg, #efe9de 0 12%, #cdc4b4 12% 26%, #f4efe6 26% 40%, #d6cdbd 40% 55%, #ebe5da 55% 70%, #c7bdab 70% 86%, #f0ebe1 86% 100%); box-shadow: 0 10px 20px rgba(0,0,0,.2); }
.room__curtain--l { left: 11%; } .room__curtain--r { left: 60%; }
.room__curtain::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 85%, rgba(0,0,0,.14)); }
.room__light { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 82% 42%, rgba(255,250,235,.38), rgba(255,255,255,0) 38%), linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,0) 20%, rgba(0,0,0,0) 80%, rgba(0,0,0,.26)), radial-gradient(ellipse at 50% 50%, rgba(0,0,0,0) 55%, rgba(0,0,0,.26) 100%); transition: background .8s; }
.room__grain { position: absolute; inset: 0; pointer-events: none; opacity: .08; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.room__furniture { position: absolute; inset: 0; pointer-events: none; }
.room__furniture svg { position: absolute; overflow: visible; }
.room__sofa { left: 27%; bottom: 4.5%; width: 37%; filter: drop-shadow(-14px 10px 18px rgba(0,0,0,.2)); }
.room__plant { right: 12%; bottom: 6%; width: 13%; filter: drop-shadow(-10px 8px 14px rgba(0,0,0,.25)); }
.room__lamp { left: 12.5%; bottom: 8%; width: 8.5%; filter: drop-shadow(10px 8px 12px rgba(0,0,0,.22)); }
.room__table { left: 64.5%; bottom: 7%; width: 10%; filter: drop-shadow(-8px 8px 12px rgba(0,0,0,.22)); }
.room__pendant { left: 45.5%; top: -1%; width: 9%; filter: drop-shadow(0 10px 14px rgba(0,0,0,.22)); }
.room__lampglow, .room__pendantglow { transition: opacity .8s; }
.room--evening { background: #221d19; }
.room--evening .room__light { background: radial-gradient(ellipse at 16% 46%, rgba(255,214,150,.42), rgba(255,200,120,0) 36%), radial-gradient(ellipse at 50% 20%, rgba(255,226,170,.3), rgba(255,226,170,0) 40%), linear-gradient(180deg, rgba(16,12,8,.6), rgba(16,12,8,.42) 60%, rgba(0,0,0,.66)); }
.room--evening .room__window { background: linear-gradient(180deg, #16213a, #2b3a56 70%, #1d2a40); box-shadow: 0 0 0 10px #d6d2ca, 0 0 0 13px rgba(0,0,0,.3), 0 0 50px 10px rgba(50,70,120,.25); }
.room--evening .room__window i { background: linear-gradient(160deg, rgba(70,90,130,.5), rgba(20,30,55,.95)); box-shadow: inset 0 0 0 3px rgba(255,255,255,.25); }
.room--evening .room__window i:nth-child(2)::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff6d8; box-shadow: 0 0 10px #fff2c6; margin: 18% 0 0 55%; }
.room--evening .room__sun { opacity: 0; }
.room--evening .room__glowwall, .room--evening .room__floorglow, .room--evening .room__ceilglow, .room--evening .room__lampglow, .room--evening .room__pendantglow { opacity: 1; }
.room--evening .room__lamp path:first-of-type { fill: #ffe9b8; }
.room--evening .room__bulb { opacity: .95; fill: #fff1c8; filter: drop-shadow(0 0 16px #ffe3a0); }
.room--evening .room__curtain { filter: brightness(.6); }

/* кімната на головній */
.hero-room { position: relative; height: calc(100vh - 112px); min-height: 560px; max-height: 860px; background: #e9e6e0; }
.hero-room .room { position: absolute; inset: 0; }
.hero-room__ui { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 var(--gutter) 26px; display: grid; grid-template-columns: minmax(280px, 420px) 1fr auto; gap: 24px; align-items: end; z-index: 3; }
.hero-room__ui::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 240px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.45)); z-index: -1; pointer-events: none; }
.hero-room__info { color: #fff; }
.hero-room__info .label { color: rgba(255,255,255,.75); display: block; margin-bottom: 8px; }
.hero-room__name { font-size: 22px; font-weight: 400; line-height: 1.2; margin-bottom: 4px; }
.hero-room__meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); margin-bottom: 12px; }
.hero-room__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-room__price { font-size: 18px; font-weight: 500; }
.hero-room__row .btn { height: 42px; padding: 0 20px; }
.hero-room__row .btn--light { color: #fff; border-color: #fff; }
.hero-room__row .btn--light:hover { background: #fff; color: var(--ink); }
.hero-room__pick { min-width: 0; }
.hero-room__pick .label { color: rgba(255,255,255,.8); display: block; margin-bottom: 10px; }
.swatches { display: flex; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; padding: 4px 4px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.swatches::-webkit-scrollbar { display: none; }
.swatch { flex: none; width: 64px; height: 64px; background-size: cover; background-position: center; border: 0; outline: 2px solid transparent; outline-offset: 2px; box-shadow: 0 2px 10px rgba(0,0,0,.25); transition: transform .2s, outline-color .2s; scroll-snap-align: center; cursor: pointer; }
.swatch:hover { transform: translateY(-4px); }
.swatch.is-active { outline-color: #fff; transform: translateY(-4px); }
.hero-room__ctrl { display: flex; gap: 8px; }
.round-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.7); color: #fff; display: grid; place-items: center; background: rgba(0,0,0,.2); backdrop-filter: blur(6px); transition: background .2s; }
.round-btn:hover { background: #fff; color: var(--ink); }
.round-btn svg { width: 18px; height: 18px; }
.round-btn.is-on { background: #fff; color: var(--ink); }
.hero-room__title { position: absolute; left: var(--gutter); top: 44px; z-index: 3; color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); max-width: 560px; }
.hero-room__title h1 { font-size: 40px; font-weight: 400; line-height: 1.1; margin: 10px 0 0; }
.hero-room__title .label { color: rgba(255,255,255,.8); }
.hero-room__hint { position: absolute; right: var(--gutter); top: 48px; z-index: 3; color: #fff; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; display: flex; align-items: center; gap: 10px; opacity: .85; }
.hero-room__hint i { width: 36px; height: 1px; background: #fff; display: block; }

/* модалка примірочної */
.tryon { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.tryon.is-open { display: flex; }
.tryon__box { width: min(1360px, 100%); height: min(820px, 100%); background: #fff; display: grid; grid-template-columns: 1fr 340px; overflow: hidden; animation: tryIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes tryIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.tryon .room { position: relative; height: 100%; }
.tryon__side { display: flex; flex-direction: column; padding: 28px 28px 20px; min-height: 0; border-left: 1px solid var(--line); }
.tryon__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.tryon__head .label { color: var(--ink); }
.tryon__close { font-size: 22px; line-height: 1; width: 32px; height: 32px; }
.tryon__name { font-size: 16px; line-height: 1.35; margin-bottom: 6px; }
.tryon__price { font-size: 18px; font-weight: 500; margin-bottom: 16px; }
.tryon__actions { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.tryon__actions .btn { height: 42px; padding: 0 18px; flex: 1; }
.tryon__tools { display: flex; gap: 8px; margin-bottom: 14px; }
.tryon__tools .round-btn { border-color: var(--ink); color: var(--ink); background: #fff; }
.tryon__tools .round-btn.is-on, .tryon__tools .round-btn:hover { background: var(--ink); color: #fff; }
.tryon__list { overscroll-behavior: contain; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; overflow: auto; padding: 4px; min-height: 0; flex: 1; }
.tryon__list .swatch { width: auto; height: auto; aspect-ratio: 1; box-shadow: none; border: 1px solid var(--line); }
.tryon__list .swatch.is-active { outline-color: var(--ink); }
.tryon__hintkeys { font-size: 11px; color: var(--muted); margin-top: 12px; }
body.no-scroll { overflow: hidden; }

/* кнопка "на стіну" у картках */
.card__try { position: absolute; left: 10px; bottom: 10px; z-index: 2; height: 32px; padding: 0 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .2s; }
.card__try svg { width: 14px; height: 14px; }
.card:hover .card__try { opacity: 1; transform: none; }
.card__try:hover { background: var(--ink); color: #fff; }

/* ---------- анімації ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.js .grid > .card { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.grid.is-in > .card { opacity: 1; transform: none; }
.grid.is-in > .card:nth-child(2) { transition-delay: .07s; } .grid.is-in > .card:nth-child(3) { transition-delay: .14s; } .grid.is-in > .card:nth-child(4) { transition-delay: .21s; }
.grid.is-in > .card:nth-child(5) { transition-delay: .1s; } .grid.is-in > .card:nth-child(6) { transition-delay: .17s; } .grid.is-in > .card:nth-child(7) { transition-delay: .24s; } .grid.is-in > .card:nth-child(8) { transition-delay: .31s; }
.card__img img.card__main { transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.card:hover .card__img img.card__main { transform: scale(1.06); }
.tile img, .duo img { will-change: transform; }
.marquee { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; gap: 64px; padding-right: 64px; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track a { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #555; }
.marquee__track a:hover { color: var(--ink); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero-room__title > * { animation: riseIn .9s cubic-bezier(.2,.7,.2,1) both; }
.hero-room__title h1 { animation-delay: .15s; }
.hero-room__ui > * { animation: riseIn .9s cubic-bezier(.2,.7,.2,1) both; animation-delay: .35s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal, .grid > .card { opacity: 1; transform: none; transition: none; } .marquee__track { animation: none; } }

@media (max-width: 1100px) {
  .hero-room__ui { grid-template-columns: 1fr auto; padding-top: 20px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.55) 30%, rgba(0,0,0,.7)); }
  .hero-room__ui::before { display: none; }
  .hero-room__pick { grid-column: 1 / -1; }
  .tryon__box { grid-template-columns: 1fr 280px; }
}
@media (max-width: 900px) {
  .hero-room { height: auto; min-height: 0; max-height: none; display: flex; flex-direction: column; }
  .hero-room__title { order: -1; }
  .hero-room .room { position: relative; height: 62vw; min-height: 300px; }
  .hero-room__title { position: static; color: var(--ink); text-shadow: none; padding: 24px var(--gutter) 18px; }
  .hero-room__title .label { color: var(--muted); }
  .hero-room__title h1 { font-size: 26px; }
  .hero-room__hint { display: none; }
  .hero-room__ui { position: static; grid-template-columns: 1fr; padding: 16px var(--gutter) 28px; gap: 16px; background: var(--soft); }
  .hero-room__ui::before { display: none; }
  .hero-room__info { color: var(--ink); } .hero-room__info .label, .hero-room__meta, .hero-room__pick .label { color: var(--muted); }
  .hero-room__row .btn--light { color: var(--ink); border-color: var(--ink); }
  .swatch.is-active { outline-color: var(--ink); }
  .round-btn { border-color: var(--ink); color: var(--ink); background: #fff; } .round-btn.is-on { background: var(--ink); color: #fff; }
  .hero-room__ctrl { order: 3; }
  .room__sofa { width: 50%; left: 20%; } .room__plant { width: 13%; } .room__lamp { width: 9%; }
  .tryon { padding: 0; }
  .tryon__box { grid-template-columns: 1fr; grid-template-rows: 1fr auto; height: 100%; }
  .tryon .room { height: 100%; min-height: 240px; }
  .tryon__side { padding: 16px var(--gutter) 20px; border-left: 0; border-top: 1px solid var(--line); max-height: 48vh; }
  .tryon__list { grid-template-columns: repeat(6, 1fr); }
  .card__try { opacity: 1; transform: none; height: 28px; padding: 0 10px; }
}
