/* =========================================================
   Гермес — салон плитки, шпалер і сантехніки
   Палітра з логотипа: егейський синій + білий мармур + теракота амфори
   ========================================================= */
:root {
  --blue: #0077cf;
  --blue-600: #0062ab;
  --navy: #0b2f57;
  --ink: #10243b;
  --muted: #5a6b7e;
  --sky: #e8f3fc;
  --sky-2: #d4e8f8;
  --paper: #f7fafd;
  --white: #fff;
  --line: #d9e4ee;
  --terra: #c65a2e;
  --terra-soft: #fbe9e0;
  --ok: #1f8a5b;
  --radius: 14px;
  --radius-l: 22px;
  --shadow: 0 18px 40px -18px rgba(11, 47, 87, .28);
  --f-display: 'Tenor Sans', 'Rubik', serif;
  --f-ui: 'Rubik', system-ui, sans-serif;
  --sec: 48px;
  --gutter: 24px;
  --hdr: 104px;
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 12.5H11.5V1.5H3.5V9H8V5M14 12.5H25.5V1.5H17.5V9H22V5' fill='none' stroke='%230077cf' stroke-width='1.8'/%3E%3C/svg%3E");
  --meander-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 12.5H11.5V1.5H3.5V9H8V5M14 12.5H25.5V1.5H17.5V9H22V5' fill='none' stroke='%23ffffff' stroke-width='1.8'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--f-ui); font-size: 16px; line-height: 1.55; color: var(--ink);
  background: var(--paper); overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.wrap { width: min(1240px, 100% - var(--gutter) * 2); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.hide-s { }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); font-weight: 600; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 28px; height: 14px; background: var(--meander) left/28px 14px; }
.h2 { font-family: var(--f-display); font-size: clamp(30px, 4vw, 52px); line-height: 1.06; letter-spacing: -.01em; color: var(--navy); }
.h2 em, .hero__title em { font-style: normal; color: var(--blue); }
.sec__head { margin-bottom: 36px; max-width: 760px; }
.sec__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-weight: 500; white-space: nowrap; }
.link-arrow .ic { transition: transform .25s; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--blue); --fg: #fff;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font-weight: 500; letter-spacing: .01em; overflow: hidden; isolation: isolate;
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn::after { /* блик, що пробігає, як по глазурі */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s;
}
.btn:hover::after { transform: translateX(120%); }
.btn--blue { box-shadow: 0 12px 26px -12px rgba(0,119,207,.7); }
.btn--blue:hover { background: var(--blue-600); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.btn--white { --bg: #fff; --fg: var(--navy); }
.btn--terra { --bg: var(--terra); }
.btn--wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.round {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); transition: .25s;
}
.round:hover { background: var(--blue); color: #fff; box-shadow: none; }

/* ---------- прелоадер ---------- */
.pre { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.pre__half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--blue); }
.pre__half--top { top: 0; }
.pre__half--bot { bottom: 0; }
.pre__half--top::after, .pre__half--bot::before {
  content: ""; position: absolute; left: 0; right: 0; height: 14px; background: var(--meander-w) 0 0/28px 14px;
}
.pre__half--top::after { bottom: 10px; }
.pre__half--bot::before { top: 10px; transform: scaleY(-1); }
.pre__mark { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; }
.pre__word { width: min(320px, 70vw); }
.pre__word path { stroke-dasharray: 160; stroke-dashoffset: 160; }
.pre__count { font-family: var(--f-display); color: #fff; font-size: 14px; letter-spacing: .3em; }
.pre.is-done { display: none; }
.no-js .pre { display: none; }

/* ---------- курсор-тесера ---------- */
.cur { position: fixed; left: 0; top: 0; z-index: 300; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cur__dot {
  position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; background: var(--blue);
  transform: rotate(45deg); border-radius: 2px; transition: width .3s, height .3s, margin .3s, background .3s, border-radius .3s;
}
.cur__label {
  position: absolute; transform: translate(-50%, -50%); font-size: 12px; font-weight: 600; color: #fff;
  white-space: nowrap; opacity: 0; transition: opacity .2s; letter-spacing: .04em;
}
.cur.is-link .cur__dot { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(0,119,207,.18); border: 1.5px solid var(--blue); }
.cur.is-card .cur__dot { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: var(--blue); border-radius: 10px; }
.cur.is-card .cur__label { opacity: 1; }
.cur.is-drag .cur__dot { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(255,255,255,.2); border: 1.5px dashed #fff; }
.tess { position: fixed; z-index: 299; width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--blue); pointer-events: none; transform: rotate(45deg); border-radius: 1px; }
@media (pointer: fine) { .has-cur .cur { display: block; } .has-cur, .has-cur a, .has-cur button { cursor: none; } }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.hdr__top { background: var(--navy); color: #cfe2f4; font-size: 13px; }
.hdr__topin { display: flex; gap: 26px; align-items: center; min-height: 34px; }
.hdr__topin span { display: inline-flex; align-items: center; gap: 7px; }
.hdr__rate { margin-left: auto; color: #fff; }
.hdr__rate .ic { color: #f5b301; }
.hdr__in { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.hdr { background: rgba(255,255,255,.82); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); }
.hdr.is-scrolled { box-shadow: 0 10px 30px -18px rgba(11,47,87,.35); }
.hdr::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 7px; background: var(--meander) 0 50%/16px 8px; opacity: .55; pointer-events: none; }
.hdr__logo img { width: 150px; height: auto; }
.hdr__nav { display: flex; gap: 4px; }
.hdr__nav a { padding: 8px 12px; border-radius: 999px; font-weight: 500; font-size: 15px; transition: .2s; }
.hdr__nav a:hover, .hdr__nav a.is-active { background: var(--sky); color: var(--blue); }
.hdr__sale { color: var(--terra); }
.hdr__search {
  flex: 1; display: flex; align-items: center; gap: 8px; min-width: 150px; max-width: 280px; margin-left: auto;
  background: var(--sky); border-radius: 999px; padding: 0 14px; height: 42px; color: var(--muted);
}
.hdr__search input { border: 0; background: none; outline: 0; width: 100%; color: var(--ink); font-size: 14px; }
.hdr__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; color: var(--navy); }
.hdr__cart {
  position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; flex: none;
}
.hdr__cart .ic { width: 22px; height: 22px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px;
  background: var(--terra); color: #fff; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff;
}
.cart-count.is-empty { display: none; }
.cart-count.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.45); } }
.hdr__burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--sky); position: relative; flex: none; }
.hdr__burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--navy); transition: .3s; }
.hdr__burger span:first-child { top: 18px; } .hdr__burger span:last-child { top: 26px; }
.hdr__burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.hdr__burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------- мобільне меню: рулон шпалер ---------- */
.mnav { position: fixed; inset: 0; z-index: 45; pointer-events: none; visibility: hidden; }
.mnav.is-open { pointer-events: auto; visibility: visible; }
.mnav__sheet {
  position: absolute; inset: 0; padding: calc(var(--hdr) + 20px) 24px 28px; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--blue) var(--meander-w) 0 calc(var(--hdr) + 4px)/28px 14px repeat-x; color: #fff;
  clip-path: inset(0 0 100% 0);
}
.mnav__links { display: grid; }
.mnav__links a { display: flex; align-items: baseline; gap: 14px; font-family: var(--f-display); font-size: 34px; line-height: 1.25; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.mnav__links i { font-style: normal; font-family: var(--f-ui); font-size: 13px; opacity: .7; width: 22px; }
.mnav__foot { display: grid; gap: 6px; font-size: 18px; }
.mnav__foot span { opacity: .75; font-size: 14px; }
.mnav__roll { /* сам рулон, що котиться вниз */
  position: absolute; left: 0; right: 0; top: 0; height: 26px; border-radius: 13px; transform: translateY(-30px);
  background: linear-gradient(180deg, #4aa6ea 0%, #0d6fb8 45%, #08518a 100%); box-shadow: 0 10px 18px -6px rgba(0,0,0,.35);
}

/* ---------- HERO ---------- */
.hero { position: relative; padding: 40px 0 64px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(0,119,207,.16), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(198,90,46,.08), transparent 60%),
    var(--paper);
}
.hero__grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 40px; align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.meander-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--blue) var(--meander-w) center/16px 8px; }
.hero__title { font-family: var(--f-display); font-size: clamp(36px, 4.5vw, 64px); line-height: 1.02; letter-spacing: -.015em; margin: 22px 0 22px; color: var(--navy); }
.hero__title em { display: inline-block; }
.hero__lead { max-width: 540px; font-size: 17px; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.hero__facts { display: flex; gap: 34px; margin: 0; padding-top: 24px; border-top: 1px solid var(--line); }
.hero__facts dt { font-family: var(--f-display); font-size: 38px; color: var(--blue); line-height: 1; }
.hero__facts dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.hero__stage {
  position: relative; aspect-ratio: 1 / 1.02; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 35%, #ffffff 0%, var(--sky) 55%, var(--sky-2) 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.7);
}
.hero__stage::before { content: ""; position: absolute; left: 0; right: 0; top: 18px; height: 14px; background: var(--meander) 0 0/28px 14px; opacity: .45; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.hero__tabs {
  position: absolute; top: 46px; left: 50%; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.8), 0 8px 20px -12px rgba(11,47,87,.35); white-space: nowrap;
}
.hero__tabs button { padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--navy); transition: .25s; }
.hero__tabs button[aria-selected="true"] { background: var(--blue); color: #fff; }
.hero__picker {
  position: absolute; left: 16px; right: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; padding: 10px;
  background: rgba(255,255,255,.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 10px 26px -14px rgba(11,47,87,.35);
}
.hero__swatches { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.hero__swatches::-webkit-scrollbar { display: none; }
.sw { flex: none; width: 46px; height: 46px; border-radius: 10px; background: center/cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.sw:hover { transform: translateY(-2px); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.hero__info { text-align: left; display: grid; padding: 4px 8px 4px 12px; border-left: 1px solid var(--line); min-width: 150px; max-width: 200px; }
.hero__pname { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero__pprice { font-size: 13px; color: var(--blue); }
.hero__add {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 12px;
  background: var(--blue); color: #fff; font-weight: 500; font-size: 14px; transition: background .2s;
}
.hero__add:hover { background: var(--blue-600); }
.hero__add.is-added { background: var(--ok); }
.hero__flat { position: absolute; left: 50%; top: 52%; width: 62%; aspect-ratio: 1; object-fit: cover; border-radius: 18px; transform: translate(-50%, -50%) rotate(-4deg); box-shadow: var(--shadow); }
.no-3d .room__stage { background: var(--sky) url(../img/i/bath-tub.jpg) center/cover; }
.no-3d .room__badge { display: none; }
.hero__hint { position: absolute; right: 22px; top: 100px; font-size: 12px; color: var(--muted); writing-mode: vertical-rl; letter-spacing: .1em; }

/* ---------- бренди ---------- */
.brands { background: var(--navy); color: #fff; overflow: hidden; padding: 18px 0; }
.brands__track { display: flex; align-items: center; gap: 32px; width: max-content; animation: marquee 38s linear infinite; }
.brands__track span { font-family: var(--f-display); font-size: 26px; letter-spacing: .02em; white-space: nowrap; opacity: .92; }
.brands__track i { width: 28px; height: 14px; background: var(--meander-w) 0 0/28px 14px; opacity: .5; }
.brands:hover .brands__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- зали: горизонтальний акордеон ---------- */
.halls__row { display: flex; gap: 12px; height: 460px; }
.hall {
  position: relative; flex: 1; min-width: 0; border-radius: var(--radius-l); overflow: hidden; color: #fff;
  transition: flex .6s cubic-bezier(.2,.8,.2,1); background: var(--navy);
}
.hall img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.hall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,47,87,.05) 30%, rgba(11,47,87,.85)); }
.hall.is-open { flex: 3.2; }
.hall.is-open img { transform: scale(1.04); }
.hall__body { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 20px; }
.hall__n { font-size: 13px; opacity: .8; letter-spacing: .1em; }
.hall__t { font-family: var(--f-display); font-size: 28px; line-height: 1.1; margin: 6px 0; white-space: nowrap; }
.hall__more { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s; }
.hall.is-open .hall__more { max-height: 120px; opacity: 1; }
.hall__more p { font-size: 14px; opacity: .9; max-width: 340px; }
.hall__go { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; }
.hall:not(.is-open) .hall__t { writing-mode: vertical-rl; transform: rotate(180deg); position: absolute; bottom: 0; left: 0; }
.hall:not(.is-open) .hall__n { position: absolute; bottom: 0; left: 46px; white-space: nowrap; display: none; }

/* ---------- 3D-кімната ---------- */
.room { background: linear-gradient(180deg, var(--paper), var(--sky)); }
.room__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 36px; align-items: stretch; }
.room__stage { position: relative; min-height: 540px; border-radius: var(--radius-l); overflow: hidden; background: #dfe9f2; box-shadow: var(--shadow); }
.room__canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; }
.room__badge { position: absolute; left: 16px; top: 16px; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 13px; background: rgba(255,255,255,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.room__panel { display: flex; flex-direction: column; gap: 16px; }
.room__panel .h2 { font-size: clamp(28px, 3.2vw, 42px); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); align-self: start; }
.seg button { padding: 9px 22px; border-radius: 999px; font-weight: 500; transition: .25s; }
.seg button[aria-selected="true"] { background: var(--navy); color: #fff; }
.room__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 236px; overflow-y: auto; padding: 4px; scrollbar-width: thin; }
.mat { display: grid; gap: 6px; text-align: left; font-size: 12px; line-height: 1.25; color: var(--muted); }
.mat span:first-child { aspect-ratio: 1; border-radius: 10px; background: #fff center/cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: box-shadow .2s, transform .2s; }
.mat:hover span:first-child { transform: translateY(-2px); }
.mat[aria-pressed="true"] span:first-child { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.mat[aria-pressed="true"] { color: var(--navy); font-weight: 500; }
.room__sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.room__sum div { background: #fff; border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 2px; box-shadow: inset 0 0 0 1px var(--line); }
.room__sum span { font-size: 12px; color: var(--muted); }
.room__sum b { font-weight: 500; font-size: 14px; color: var(--navy); }

/* ---------- картки товарів (спільні) ---------- */
.card {
  --mx: 50%; --my: 50%;
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-l); overflow: hidden;
  box-shadow: 0 1px 0 rgba(11,47,87,.04), inset 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s;
}
.card::before { /* «Spotlight» з 21st.dev: світло за курсором + підсвічений край */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(0,119,207,.12), transparent 60%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; opacity: 0; transition: opacity .3s; padding: 1.5px;
  background: radial-gradient(220px circle at var(--mx) var(--my), var(--blue), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__img { position: relative; aspect-ratio: 1 / .86; background: var(--sky); overflow: hidden; display: block; width: 100%; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card[data-cat="sant"] .card__img, .card[data-cat="decor"] .card__img { background: #fff; }
.card[data-cat="sant"] .card__img img, .card[data-cat="decor"] .card__img img { object-fit: contain; padding: 14px; }
.card:hover .card__img img { transform: scale(1.05); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 3; flex-wrap: wrap; }
.badge { padding: 4px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #fff; color: var(--navy); }
.badge--sale { background: var(--terra); color: #fff; }
.badge--in { background: #fff; color: var(--ok); }
.badge--order { background: rgba(255,255,255,.92); color: var(--muted); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; flex: 1; }
.card__meta { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.card__name { font-weight: 500; font-size: 15px; line-height: 1.3; color: var(--navy); }
.card__fmt { font-size: 13px; color: var(--muted); }
.card__foot { display: flex; align-items: end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { display: grid; line-height: 1.15; }
.price b { font-size: 19px; font-weight: 600; color: var(--navy); }
.price b small { font-size: 12px; font-weight: 400; color: var(--muted); }
.price s { font-size: 13px; color: var(--muted); }
.card .price.is-sale b { color: var(--terra); }
.card .price b { white-space: nowrap; font-size: 18px; }
.add {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); flex: none; transition: .25s;
}
.add:hover { background: var(--blue); color: #fff; }
.add.is-added { background: var(--ok); color: #fff; }

/* ---------- акції: стрічка ---------- */
.deals__nav { display: flex; gap: 8px; }
.deals__track {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), (100vw - 1240px) / 2);
  padding: 6px max(var(--gutter), (100vw - 1240px) / 2) 20px; scrollbar-width: none; cursor: grab;
}
.deals__track::-webkit-scrollbar { display: none; }
.deals__track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.deals__track .card { flex: 0 0 280px; scroll-snap-align: start; }

/* ---------- редакційний текст ---------- */
.story { background: #fff; }
.story__text { font-family: var(--f-display); font-size: clamp(26px, 3.6vw, 48px); line-height: 1.22; color: var(--navy); max-width: 1120px; }
.story__text em { font-style: normal; color: var(--blue); }
.pill-img { display: inline-block; width: 2.4em; height: .95em; border-radius: 999px; vertical-align: -.08em; background: var(--img) center/cover; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.pill-num { display: inline-block; padding: 0 .35em; border-radius: 999px; background: var(--terra-soft); color: var(--terra); font-size: .7em; vertical-align: .12em; line-height: 1.5; }
.story__gifts { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border-top: 1px solid var(--line); }
.story__gifts article { padding: 24px 22px 6px 0; border-right: 1px solid var(--line); }
.story__gifts article + article { padding-left: 22px; }
.story__gifts article:last-child { border-right: 0; }
.story__gifts b { font-family: var(--f-display); font-size: 15px; color: var(--blue); letter-spacing: .1em; }
.story__gifts h3 { font-size: 18px; font-weight: 600; margin: 8px 0 6px; color: var(--navy); }
.story__gifts p { font-size: 14px; color: var(--muted); }

/* ---------- маршрут-меандр ---------- */
.route { background: var(--navy); color: #fff; }
.route .h2 { color: #fff; }
.route .h2 em { color: #6fbaf2; }
.route .eyebrow { color: #6fbaf2; }
.route__map { position: relative; }
.route__line { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 200px; color: #6fbaf2; }
.route__line path { stroke-dasharray: 2200; stroke-dashoffset: 2200; }
.route__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative; }
.route__steps li { padding-top: 110px; }
.route__steps li:nth-child(even) { padding-top: 10px; }
.route__steps span {
  position: relative; isolation: isolate; display: grid; place-items: center; width: 44px; height: 44px; font-weight: 600; margin-bottom: 18px;
}
.route__steps span::before { /* тесера-ромб */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 10px; transform: rotate(45deg);
  background: var(--blue); box-shadow: 0 0 0 6px var(--navy);
}
.route__steps h3 { font-family: var(--f-display); font-size: 24px; margin-bottom: 6px; }
.route__steps p { font-size: 15px; color: #b9d2ea; max-width: 270px; }

/* ---------- довіра ---------- */
.trust__grid { display: grid; grid-template-columns: 300px 1fr 330px; gap: 20px; align-items: stretch; }
.trust__score { background: var(--blue) var(--meander-w) 0 14px/28px 14px repeat-x; color: #fff; border-radius: var(--radius-l); padding: 48px 26px 26px; display: flex; flex-direction: column; gap: 12px; }
.trust__big { font-family: var(--f-display); font-size: 96px; line-height: .9; }
.trust__stars { display: flex; gap: 3px; color: #ffd24a; }
.trust__stars .ic { width: 22px; height: 22px; }
.trust__score p { opacity: .9; font-size: 15px; margin-bottom: auto; }
.trust__score .btn { align-self: start; }
.trust__photos { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; min-height: 380px; }
.tph { margin: 0; border-radius: var(--radius-l); overflow: hidden; }
.tph img { width: 100%; height: 100%; object-fit: cover; }
.tph--a { grid-row: span 2; }
.trust__pro { background: #fff; border-radius: var(--radius-l); padding: 26px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.trust__pro h3 { font-family: var(--f-display); font-size: 28px; color: var(--navy); line-height: 1.1; }
.ticks { list-style: none; margin: 0 0 auto; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: start; font-size: 15px; }
.ticks .ic { color: var(--blue); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { background: #fff; }
.faq__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
.faq__img { margin-top: 28px; border-radius: var(--radius-l); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left; padding: 22px 0; font-size: 18px; font-weight: 500; color: var(--navy); }
.acc__x { position: relative; width: 34px; height: 34px; border-radius: 9px; background: var(--sky); flex: none; transition: transform .4s, background .3s; }
.acc__x::before, .acc__x::after { content: ""; position: absolute; left: 10px; right: 10px; top: 16px; height: 2px; background: var(--blue); transition: transform .4s; }
.acc__x::after { transform: rotate(90deg); }
.acc__item.is-open .acc__x { transform: rotate(45deg); background: var(--blue); }
.acc__item.is-open .acc__x::before, .acc__item.is-open .acc__x::after { background: #fff; }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.2,.8,.2,1); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding: 0 50px 22px 0; color: var(--muted); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- контакти ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 20px; }
.contacts__card { background: #fff; border-radius: var(--radius-l); padding: 34px; box-shadow: inset 0 0 0 1px var(--line); }
.contacts__list { list-style: none; padding: 0; margin: 26px 0; display: grid; gap: 18px; }
.contacts__list li { display: flex; gap: 14px; }
.contacts__list .ic { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--sky); color: var(--blue); }
.contacts__list div { display: grid; }
.contacts__list span, .contacts__list div > a:not(:first-child) { color: var(--muted); font-size: 14px; }
.contacts__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.contacts__map { border-radius: var(--radius-l); overflow: hidden; min-height: 420px; background: var(--sky); }
.contacts__map iframe { width: 100%; height: 100%; border: 0; min-height: 420px; filter: saturate(.85) hue-rotate(-8deg); }

/* ---------- підвал ---------- */
.ftr { background: var(--navy); color: #c3d6ea; padding-bottom: 24px; }
.ftr__meander { height: 22px; background: var(--meander-w) 0 4px/28px 14px repeat-x, var(--blue); }
.ftr__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; padding: 48px 0 32px; }
.ftr__grid > * { display: grid; gap: 8px; align-content: start; font-size: 15px; }
.ftr h3 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.ftr a:hover { color: #fff; }
.ftr__logo { width: 170px; filter: brightness(0) invert(1); margin-bottom: 8px; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); flex-wrap: wrap; }

/* ---------- модалка / швидкий перегляд ---------- */
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__bg { position: absolute; inset: 0; background: rgba(11,47,87,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal__box { position: relative; width: min(960px, 100%); max-height: calc(100dvh - 40px); overflow: auto; background: #fff; border-radius: 24px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.45); }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 42px; height: 42px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; color: var(--navy); }
.qv { display: grid; grid-template-columns: 1fr 1fr; }
.qv__img { background: var(--sky); min-height: 420px; position: relative; }
.qv__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.qv[data-cat="sant"] .qv__img, .qv[data-cat="decor"] .qv__img { background: #fff; }
.qv[data-cat="sant"] .qv__img img, .qv[data-cat="decor"] .qv__img img { object-fit: contain; padding: 24px; }
.qv__body { padding: 34px 30px 28px; display: flex; flex-direction: column; gap: 14px; }
.qv__title { font-family: var(--f-display); font-size: 30px; line-height: 1.1; color: var(--navy); padding-right: 40px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; font-size: 14px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; color: var(--navy); }
.qv .price b { font-size: 28px; }
.calc { background: var(--sky); border-radius: var(--radius); padding: 14px; display: grid; gap: 10px; }
.calc label { font-size: 13px; color: var(--muted); }
.calc__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.calc__row input { width: 110px; height: 44px; border: 0; border-radius: 10px; padding: 0 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.calc__out { font-size: 14px; color: var(--navy); }
.qty { display: inline-flex; align-items: center; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); height: 44px; }
.qty button { width: 40px; height: 44px; display: grid; place-items: center; color: var(--blue); }
.qty input { width: 58px; text-align: center; border: 0; background: none; height: 44px; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.qv__buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qv__buy .btn { flex: 1; min-width: 180px; white-space: nowrap; padding: 0 18px; }
.qv__src { font-size: 12px; color: var(--muted); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 150; transform: translate(-50%, 140%); display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: #fff; padding: 10px 12px 10px 10px; border-radius: 16px; box-shadow: var(--shadow); transition: transform .45s cubic-bezier(.2,.9,.3,1.2), visibility .45s;
  visibility: hidden;
  max-width: calc(100% - 32px);
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; }
.toast img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #fff; }
.toast a { color: #8cc8f5; font-weight: 600; white-space: nowrap; }
.fly { position: fixed; z-index: 160; width: 60px; height: 60px; border-radius: 12px; background: center/cover; pointer-events: none; box-shadow: var(--shadow); }

/* =========================================================
   КАТАЛОГ
   ========================================================= */
.page-head { padding: 34px 0 22px; background: linear-gradient(180deg, var(--sky), var(--paper)); }
.crumbs { font-size: 13px; color: var(--muted); display: flex; gap: 8px; margin-bottom: 10px; }
.crumbs a { color: var(--blue); }
.page-head h1 { font-family: var(--f-display); font-size: clamp(34px, 4.6vw, 56px); color: var(--navy); line-height: 1.05; }
.cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 20px 0 4px; }
.cats::-webkit-scrollbar { display: none; }
.cats button { flex: none; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 500; transition: .2s; }
.cats button b { font-size: 12px; font-weight: 500; color: var(--muted); }
.cats button[aria-pressed="true"] { background: var(--navy); color: #fff; box-shadow: none; }
.cats button[aria-pressed="true"] b { color: #9cc4e8; }
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding: 24px 0 calc(var(--sec) * 2); align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); max-height: calc(100vh - var(--hdr) - 32px); overflow-y: auto; background: #fff; border-radius: var(--radius-l); padding: 6px 18px 18px; box-shadow: inset 0 0 0 1px var(--line); scrollbar-width: thin; }
.filters__head { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup > h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.chk { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; cursor: pointer; }
.chk input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #b8c8d8; display: grid; place-items: center; margin: 0; flex: none; transition: .2s; }
.chk input:checked { background: var(--blue); box-shadow: none; }
.chk input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.chk em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color { width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); position: relative; }
.color[aria-pressed="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.range { display: grid; gap: 12px; }
.range__vals { display: flex; gap: 8px; }
.range__vals input { width: 100%; height: 40px; border-radius: 10px; border: 0; box-shadow: inset 0 0 0 1px var(--line); padding: 0 10px; font-size: 14px; }
.dual { position: relative; height: 28px; }
.dual__track { position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 2px; background: var(--line); }
.dual__fill { position: absolute; top: 12px; height: 4px; background: var(--blue); border-radius: 2px; }
.dual input { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; -webkit-appearance: none; background: none; pointer-events: none; }
.dual input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 6px; transform: rotate(45deg); background: #fff; border: 3px solid var(--blue); cursor: pointer; }
.dual input::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 5px; background: #fff; border: 3px solid var(--blue); cursor: pointer; }
.switch { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 12px; background: #c9d6e3; position: relative; margin: 0; transition: .25s; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .25s; }
.switch input:checked { background: var(--blue); }
.switch input:checked::after { left: 21px; }
.filters__reset { margin-top: 10px; color: var(--blue); font-weight: 500; font-size: 14px; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar__count { font-size: 14px; color: var(--muted); margin-right: auto; }
.toolbar__count b { color: var(--navy); }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; height: 44px; padding: 0 38px 0 14px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 14px; top: 17px; width: 7px; height: 7px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); pointer-events: none; }
.tsearch { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); min-width: 220px; color: var(--muted); }
.tsearch input { border: 0; outline: 0; width: 100%; font-size: 14px; color: var(--ink); background: none; }
.fbtn { display: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 13px; }
.chip .ic { width: 14px; height: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.empty { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); }
.empty h3 { font-family: var(--f-display); font-size: 28px; color: var(--navy); margin-bottom: 8px; }
.empty .btn { margin-top: 16px; }
.more { display: flex; justify-content: center; margin-top: 26px; }

/* =========================================================
   КОШИК
   ========================================================= */
.cart { padding: 10px 0 calc(var(--sec) * 2); }
.cart__grid { display: grid; grid-template-columns: 1fr 380px; gap: 26px; align-items: start; }
.ctable { background: #fff; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ctable__head, .crow { display: grid; grid-template-columns: 76px 1fr 100px 140px 110px 120px 44px; gap: 14px; align-items: center; padding: 14px 18px; }
.ctable__head { background: var(--sky); font-size: 13px; color: var(--muted); font-weight: 500; }
.crow { border-top: 1px solid var(--line); }
.crow__img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--sky); }
.crow[data-cat="sant"] .crow__img, .crow[data-cat="decor"] .crow__img { object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 4px; }
.crow__name { font-weight: 500; color: var(--navy); line-height: 1.3; }
.crow__name small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.crow__code { font-size: 14px; color: var(--muted); }
.crow__unit, .crow__sum { font-size: 15px; text-align: right; white-space: nowrap; }
.crow__sum { font-weight: 600; color: var(--navy); }
.crow__del { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: .2s; }
.crow__del:hover { background: var(--terra-soft); color: var(--terra); }
.crow .qty { height: 40px; } .crow .qty button { height: 40px; width: 34px; } .crow .qty input { width: 48px; height: 40px; }
.crow__u { font-size: 12px; color: var(--muted); margin-left: 6px; }
.order { position: sticky; top: calc(var(--hdr) + 16px); background: #fff; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); padding: 24px; display: grid; gap: 14px; }
.order h2 { font-family: var(--f-display); font-size: 28px; color: var(--navy); }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; border: 0; border-radius: 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; font-size: 15px; transition: box-shadow .2s; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.field textarea { min-height: 84px; resize: vertical; }
.field.is-err input { box-shadow: inset 0 0 0 2px var(--terra); }
.field__err { font-size: 12px; color: var(--terra); display: none; }
.field.is-err .field__err { display: block; }
.radios { display: grid; gap: 8px; }
.radio { display: flex; gap: 10px; align-items: start; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: 14px; transition: .2s; }
.field .radio input { width: 18px; height: 18px; padding: 0; margin: 2px 0 0; box-shadow: none; background: none; flex: none; accent-color: var(--blue); }
.radio small { display: block; color: var(--muted); font-size: 12px; }
.radio:has(input:checked) { box-shadow: inset 0 0 0 2px var(--blue); background: var(--sky); }
.totals { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.totals div { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); }
.totals .totals__sum { font-size: 22px; color: var(--navy); font-weight: 600; }
.cart__actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.cart-empty { text-align: center; padding: 70px 20px; background: #fff; border-radius: var(--radius-l); box-shadow: inset 0 0 0 1px var(--line); }
.cart-empty h2 { font-family: var(--f-display); font-size: 34px; color: var(--navy); margin: 16px 0 8px; }
.cart-empty .meander-box { width: 120px; height: 120px; margin: 0 auto; border-radius: 24px; background: var(--sky) var(--meander) 0 50%/28px 14px repeat-x; display: grid; place-items: center; color: var(--blue); }
.cart-empty .meander-box .ic { width: 44px; height: 44px; background: #fff; border-radius: 50%; padding: 8px; }

/* модалка замовлення */
.done { padding: 34px 30px 28px; width: min(620px, 100%); }
.done__seal { width: 70px; height: 70px; border-radius: 18px; transform: rotate(45deg); background: var(--blue); display: grid; place-items: center; margin: 4px auto 22px; box-shadow: 0 0 0 8px var(--sky); }
.done__seal .ic { transform: rotate(-45deg); color: #fff; width: 32px; height: 32px; }
.done h2 { font-family: var(--f-display); font-size: 32px; color: var(--navy); text-align: center; line-height: 1.1; }
.done > p { text-align: center; color: var(--muted); margin: 10px auto 18px; max-width: 460px; }
.done__text { width: 100%; min-height: 200px; border: 0; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); padding: 14px; font-family: ui-monospace, Consolas, monospace; font-size: 13px; line-height: 1.5; resize: vertical; }
.done__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.done__btns .btn--blue { grid-column: 1 / -1; }
.btn--viber { --bg: #7360f2; }
.btn--tg { --bg: #229ed9; }
.done__fine { font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; }

/* ---------- анімації появи ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; will-change: transform; }

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1180px) {
  .hdr__nav a { padding: 8px 9px; font-size: 14px; }
  .hdr__search { display: none; }
  .trust__grid { grid-template-columns: 1fr 1fr; }
  .trust__photos { grid-column: 1 / -1; grid-row: 2; min-height: 320px; }
}
@media (max-width: 1024px) {
  :root { --sec: 44px; --hdr: 104px; }
  .hdr__nav, .hdr__phone span { display: none; }
  .hdr__phone { width: 46px; height: 46px; border-radius: 50%; background: var(--sky); justify-content: center; margin-left: auto; color: var(--blue); }
  .hdr__burger { display: block; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { aspect-ratio: auto; height: min(620px, 92vw); }
  .room__grid { grid-template-columns: 1fr; }
  .room__stage { min-height: 0; height: min(520px, 80vw); }
  .halls__row { height: 400px; }
  .story__gifts { grid-template-columns: 1fr 1fr; }
  .story__gifts article:nth-child(2) { border-right: 0; }
  .story__gifts article:nth-child(3) { padding-left: 0; }
  .story__gifts article:nth-child(n+3) { border-top: 1px solid var(--line); }
  .faq__grid { grid-template-columns: 1fr; gap: 20px; }
  .faq__img { display: none; }
  .contacts__grid { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .shop { grid-template-columns: 1fr; }
  .filters {
    position: fixed; inset: auto 0 0 0; top: auto; z-index: 110; max-height: 86dvh; border-radius: 24px 24px 0 0; padding: 0 20px 20px;
    transform: translateY(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 60px -20px rgba(0,0,0,.4);
  }
  .filters.is-open { transform: none; }
  .filters__head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #fff; padding: 16px 0 10px; z-index: 2; }
  .filters__head h2 { font-family: var(--f-display); font-size: 24px; color: var(--navy); }
  .filters__apply { position: sticky; bottom: 0; padding-top: 10px; background: #fff; }
  .fbtn { display: inline-flex; }
  .shade { position: fixed; inset: 0; background: rgba(11,47,87,.4); z-index: 105; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .shade.is-on { opacity: 1; pointer-events: auto; }
  .cart__grid { grid-template-columns: 1fr; }
  .order { position: static; }
}
@media (min-width: 1025px) { .filters__apply, .shade { display: none; } }
@media (max-width: 860px) {
  .ctable__head { display: none; }
  .crow { grid-template-columns: 76px 1fr auto; grid-template-areas: "img name del" "img code code" "qty qty sum"; gap: 6px 14px; }
  .crow__img { grid-area: img; } .crow__name { grid-area: name; } .crow__del { grid-area: del; }
  .crow__code { grid-area: code; font-size: 13px; } .crow__unit { display: none; }
  .crow .qtyw { grid-area: qty; } .crow__sum { grid-area: sum; }
  .crow__code::before { content: "Код: "; }
}
@media (max-width: 720px) {
  :root { --sec: 36px; --gutter: 16px; --hdr: 96px; }
  .hdr__topin { gap: 14px; font-size: 12px; min-height: 30px; }
  .hdr__topin > span:first-child { display: none; }
  .hdr__rate { margin-left: 0; }
  .hide-s { display: none !important; }
  .hdr__in { min-height: 64px; gap: 10px; }
  .hdr__logo img { width: 124px; }
  .hero { padding: 24px 0 44px; }
  .hero__title { margin: 16px 0; }
  .hero__lead { font-size: 16px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__facts { gap: 18px; justify-content: space-between; }
  .hero__facts dt { font-size: 30px; }
  .hero__stage { height: 132vw; max-height: 560px; border-radius: 22px; }
  .hero__tabs { top: 40px; }
  .hero__tabs button { padding: 8px 11px; font-size: 13px; }
  .hero__picker { flex-wrap: wrap; }
  .hero__swatches { flex: 1 1 100%; }
  .hero__info { flex: 1; min-width: 0; max-width: none; border-left: 0; padding-left: 4px; }
  .hero__add { height: 42px; }
  .hero__hint { display: none; }
  .sec__head--row { flex-direction: column; align-items: start; }
  .halls__row { flex-direction: column; height: auto; }
  .hall { flex: none; height: 76px; transition: height .55s cubic-bezier(.2,.8,.2,1); }
  .hall.is-open { flex: none; height: 300px; }
  .hall:not(.is-open) .hall__t { writing-mode: horizontal-tb; transform: none; position: static; font-size: 22px; }
  .hall__body { bottom: 16px; left: 16px; right: 16px; }
  .room__list { grid-template-columns: repeat(4, 1fr); max-height: 220px; }
  .story__gifts { grid-template-columns: 1fr; }
  .story__gifts article, .story__gifts article + article { padding: 18px 0 4px; border-right: 0; border-top: 1px solid var(--line); }
  .story__gifts article:first-child { border-top: 0; }
  .route__line { display: none; }
  .route__steps { grid-template-columns: 1fr; gap: 0; border-left: 2px solid #3d6f9f; margin-left: 21px; }
  .route__steps li, .route__steps li:nth-child(even) { padding: 0 0 28px 34px; position: relative; }
  .route__steps span { position: absolute; left: -23px; top: 0; width: 40px; height: 40px; }
  .route__steps h3 { padding-top: 4px; }
  .trust__grid { grid-template-columns: 1fr; }
  .trust__photos { grid-row: auto; min-height: 260px; }
  .trust__big { font-size: 80px; }
  .acc__q { font-size: 16px; padding: 18px 0; }
  .acc__a p { padding-right: 0; }
  .contacts__card { padding: 24px 20px; }
  .contacts__map, .contacts__map iframe { min-height: 320px; }
  .ftr__grid { grid-template-columns: 1fr; gap: 22px; }
  .deals__track .card { flex-basis: 236px; }
  .qv { grid-template-columns: 1fr; }
  .qv__img { min-height: 260px; }
  .qv__body { padding: 22px 18px; }
  .qv__title { font-size: 25px; }
  .modal { padding: 10px; align-items: end; }
  .modal__box { max-height: calc(100dvh - 20px); border-radius: 22px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__body { padding: 10px 12px 12px; }
  .card__name { font-size: 14px; }
  .price b { font-size: 16px; }
  .add { width: 40px; height: 40px; }
  .toolbar .select { flex: 1; } .toolbar .select select { width: 100%; }
  .tsearch { min-width: 0; flex: 1 1 100%; order: -1; }
  .toolbar__count { flex: 1 1 100%; order: 3; }
  .done { padding: 26px 18px 20px; }
  .done__btns { grid-template-columns: 1fr; }
  .btn { min-height: 48px; padding: 0 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .route__line path { stroke-dashoffset: 0; }
}
.toast span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 720px) { .toast { width: calc(100% - 32px); bottom: 16px; } }

/* ---------- 3D-примірка з каталогу ---------- */
.card__btns { display: flex; gap: 6px; margin-left: auto; }
.card__foot { flex-wrap: wrap; row-gap: 8px; }
.try {
  height: 44px; padding: 0 10px; border-radius: 12px; display: inline-flex; align-items: center; gap: 5px;
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--navy); font-size: 13px; font-weight: 600; transition: .2s;
}
.try:hover { box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); }
.qv .btn--wide { margin-top: -4px; }
.modal__box.try3d { width: min(1240px, 100%); padding: 18px; }
.try3d .room { background: none; }
.try3d .room__grid { grid-template-columns: 1.5fr 1fr; gap: 22px; }
.try3d .room__stage { min-height: 0; height: min(72vh, 640px); }
.try3d .room__panel { padding: 8px 4px 4px 0; }
.try3d .room__panel .h2 { font-size: clamp(24px, 2.4vw, 32px); padding-right: 44px; }
.try3d .room__list { max-height: 300px; }
.room-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 18px 7px 7px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 500; font-size: 14px;
  box-shadow: 0 16px 34px -14px rgba(11,47,87,.6); transition: transform .25s;
}
.room-fab[hidden] { display: none; }
.room-fab:hover { transform: translateY(-3px); }
.room-fab i { width: 38px; height: 38px; border-radius: 50%; background: var(--sky) center/cover; border: 2px solid #fff; }
.room-fab i + i { margin-left: -20px; }
@media (max-width: 1024px) {
  .try3d .room__grid { grid-template-columns: 1fr; gap: 14px; }
  .try3d .room__stage { height: 48vh; }
  .try3d .room__panel .h2 { display: none; }
  .try3d .room__panel .eyebrow { margin-bottom: 0; padding-right: 44px; }
}
@media (max-width: 720px) {
  .try { width: 40px; height: 40px; padding: 0; justify-content: center; }
  .try span { display: none; }
  .modal__box.try3d { padding: 10px; }
  .try3d .room__stage { height: 42vh; border-radius: 16px; }
  .try3d .room__list { max-height: 150px; grid-template-columns: repeat(4, 1fr); }
  .room-fab { right: 12px; bottom: 12px; padding-right: 14px; font-size: 13px; }
  .page-catalog .toast { bottom: 80px; }
  .card .add, .card .try { width: 36px; height: 36px; border-radius: 10px; }
  .card__btns { gap: 4px; }
  .card .price b, .card .price s { white-space: nowrap; }
  .card .price b { font-size: 15px; }
  .card .price b small { display: none; }
}

/* ---------- вітальний екран каталогу: як приміряти в 3D ---------- */
.how3d { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 12px; background: var(--sky); color: var(--blue); font-weight: 500; font-size: 14px; transition: .2s; }
.how3d:hover { background: var(--blue); color: #fff; }
.intro {
  position: fixed; inset: 0; z-index: 130; overflow-y: auto; color: #fff; display: grid; place-items: center; padding: 56px 20px;
  background:
    var(--meander-w) 0 14px/28px 14px repeat-x,
    var(--meander-w) 0 calc(100% - 14px)/28px 14px repeat-x,
    radial-gradient(700px 420px at 80% 10%, rgba(0,119,207,.55), transparent 65%),
    radial-gradient(600px 400px at 10% 95%, rgba(0,119,207,.35), transparent 65%),
    var(--navy);
}
.intro[hidden] { display: none; }
.intro__in { width: min(1120px, 100%); text-align: center; }
.intro__kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.1); font-size: 14px; color: #cfe5f8; }
.intro__title { font-family: var(--f-display); font-size: clamp(34px, 4.6vw, 62px); line-height: 1.04; margin: 18px auto 14px; max-width: 900px; }
.intro__title em { font-style: normal; color: #6fbaf2; }
.intro__lead { max-width: 620px; margin: 0 auto; color: #b9d2ea; font-size: 17px; }
.intro__steps { list-style: none; margin: 40px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.intro__step {
  position: relative; text-align: left; padding: 18px 20px 22px; border-radius: 22px;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
}
.intro__step h3 { font-family: var(--f-display); font-size: 24px; margin: 10px 0 6px; }
.intro__step p { font-size: 14px; color: #b9d2ea; }
.intro__n { position: absolute; top: 14px; left: 14px; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; font-size: 15px; isolation: isolate; }
.intro__n::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--blue); border-radius: 8px; transform: rotate(45deg); box-shadow: 0 0 0 4px var(--navy); }
.intro__pic { height: 170px; border-radius: 16px; background: rgba(255,255,255,.06); position: relative; overflow: hidden; display: grid; place-items: center; }

/* крок 1 — три матеріали віялом */
.intro__pic--mats span {
  position: absolute; width: 104px; height: 124px; border-radius: 14px; background: #fff var(--img) center/cover; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6);
  display: flex; align-items: end; justify-content: center; padding-bottom: 8px; --x: 92px;
}
.intro__pic--mats span:nth-child(1) { transform: translateX(calc(var(--x) * -1)) rotate(-12deg); animation: fanL 4s ease-in-out infinite; }
.intro__pic--mats span:nth-child(2) { transform: translateY(-6px); z-index: 1; }
.intro__pic--mats span:nth-child(3) { transform: translateX(var(--x)) rotate(12deg); animation: fanR 4s ease-in-out infinite; }
.intro__pic--mats i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--navy); background: rgba(255,255,255,.92); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
@keyframes fanL { 50% { transform: translateX(calc(var(--x) * -1.15)) rotate(-17deg); } }
@keyframes fanR { 50% { transform: translateX(calc(var(--x) * 1.15)) rotate(17deg); } }

/* крок 2 — картка, по кнопці «3D» клацає курсор-тесера */
.intro__card { width: 170px; background: #fff; border-radius: 14px; padding: 8px; display: grid; gap: 6px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.6); }
.intro__cimg { height: 70px; border-radius: 9px; background: var(--img) center/cover; }
.intro__line { height: 7px; width: 80%; border-radius: 4px; background: var(--sky-2); }
.intro__line--s { width: 50%; }
.intro__cbtns { display: flex; justify-content: flex-end; gap: 5px; }
.intro__try, .intro__cart { height: 28px; border-radius: 8px; display: inline-flex; align-items: center; gap: 3px; padding: 0 8px; font-size: 11px; font-weight: 700; }
.intro__try { color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); animation: tryPress 3.2s infinite; }
.intro__cart { background: var(--sky); color: var(--blue); }
.intro__tap {
  position: absolute; left: 0; top: 0; width: 14px; height: 14px; background: #fff; border-radius: 2px; box-shadow: 0 0 0 3px var(--blue);
  --tx: 26px; --ty: 44px; animation: tapMove 3.2s infinite;
}
@keyframes tapMove {
  0% { transform: translate(calc(50% - 90px), -60px) rotate(45deg); opacity: 0; }
  15% { opacity: 1; }
  45% { transform: translate(var(--tx), var(--ty)) rotate(45deg); }
  52% { transform: translate(var(--tx), var(--ty)) rotate(45deg) scale(.65); }
  60% { transform: translate(var(--tx), var(--ty)) rotate(45deg); }
  90% { opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) rotate(45deg); opacity: 0; }
}
.intro__pic--btn .intro__tap { left: 50%; top: 50%; }
@keyframes tryPress {
  0%, 46% { background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
  52%, 85% { background: var(--blue); color: #fff; box-shadow: 0 0 0 6px rgba(111,186,242,.35); }
}

/* крок 3 — міні-кімната, що повільно обертається */
.intro__pic--room { perspective: 520px; }
.mini-room {
  position: relative; width: 150px; height: 110px; transform-style: preserve-3d; transform-origin: 50% 50% -75px;
  transform: scale(var(--k, 1)) rotateX(-14deg) rotateY(28deg); animation: roomSway 6s ease-in-out infinite;
}
.mini-room span { position: absolute; left: 0; top: 0; background: var(--img) center/60px repeat; box-shadow: inset 0 0 30px rgba(0,0,0,.25); }
.mini-room__back { width: 150px; height: 110px; transform: translateZ(-150px); }
.mini-room__left { width: 150px; height: 110px; transform-origin: left center; transform: rotateY(90deg); }
.mini-room__floor { width: 150px; height: 150px; top: 110px !important; transform-origin: top center; transform: rotateX(-90deg); background-size: 50px !important; }
@keyframes roomSway { 50% { transform: scale(var(--k, 1)) rotateX(-14deg) rotateY(48deg); } }

/* кнопка зі стрілкою */
.intro__go {
  display: inline-flex; align-items: center; gap: 16px; padding: 8px 8px 8px 30px; border-radius: 999px; background: #fff; color: var(--navy);
  font-size: 18px; font-weight: 600; box-shadow: 0 20px 40px -16px rgba(0,0,0,.6); transition: transform .25s;
}
.intro__go:hover { transform: translateY(-2px); }
.intro__arrow { width: 54px; height: 54px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.intro__arrow .ic { width: 24px; height: 24px; animation: nudgeR 1.4s ease-in-out infinite; }
@keyframes nudgeR { 50% { transform: translateX(6px); } }

@media (max-width: 860px) {
  .intro { place-items: start center; padding: 40px 16px 110px; }
  .intro__lead { font-size: 15px; }
  .intro__steps { grid-template-columns: 1fr; gap: 10px; margin: 24px 0 0; }
  .intro__step { display: grid; grid-template-columns: 112px 1fr; column-gap: 14px; align-items: center; padding: 10px; }
  .intro__step .intro__pic { grid-row: span 2; height: 112px; }
  .intro__step h3 { font-size: 19px; margin: 0; align-self: end; }
  .intro__step p { align-self: start; font-size: 13px; }
  .intro__n { width: 26px; height: 26px; font-size: 12px; top: 6px; left: 6px; }
  .intro__pic--mats span { width: 52px; height: 66px; --x: 30px; }
  .intro__pic--mats i { display: none; }
  .intro__card { width: 96px; padding: 5px; gap: 4px; }
  .intro__cimg { height: 38px; }
  .intro__line { height: 5px; }
  .intro__try, .intro__cart { height: 20px; padding: 0 5px; font-size: 9px; }
  .intro__try .ic, .intro__cart .ic { width: 10px; height: 10px; }
  .intro__tap { width: 10px; height: 10px; --tx: 12px; --ty: 22px; }
  .mini-room { --k: .6; }
  .intro__go { position: fixed; left: 16px; right: 16px; bottom: 16px; justify-content: space-between; font-size: 16px; padding-left: 22px; }
  .intro__arrow { width: 46px; height: 46px; }
}
@media (max-width: 720px) { .how3d { width: 44px; padding: 0; justify-content: center; font-size: 0; } .how3d .ic { font-size: 16px; } }

/* ---------- зони 3D-кімнати: скляна панель унизу сцени ---------- */
.room__ui { display: flex; flex-direction: column; gap: 14px; }
.room__hint { font-size: 14px; color: var(--muted); }
.room__hint b { color: var(--blue); }
.room__tray {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; display: flex; gap: 8px; padding: 8px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255,255,255,.62); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.85), 0 14px 30px -16px rgba(11,47,87,.45);
}
.room__tray::-webkit-scrollbar { display: none; }
.zone {
  position: relative; flex: 1 0 150px; display: flex; align-items: center; gap: 9px; padding: 6px 10px 6px 6px; border-radius: 13px; text-align: left;
  background: rgba(255,255,255,.7); box-shadow: inset 0 0 0 1px rgba(11,47,87,.08); transition: box-shadow .3s, background .3s, transform .3s;
}
.zone:hover { transform: translateY(-2px); }
.zone__img { flex: none; width: 40px; height: 40px; border-radius: 9px; background: var(--sky) center/cover; display: grid; place-items: center; color: var(--blue); font-size: 20px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.zone__txt { display: grid; min-width: 0; line-height: 1.2; }
.zone__txt small { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.zone__txt b { font-size: 13px; font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zone:not(.is-set) .zone__txt b { color: var(--muted); font-weight: 400; }
.zone__x { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 14px; line-height: 22px; text-align: center; cursor: pointer; }
/* обрані матеріали світяться знизу, активна зона — найяскравіше */
.zone.is-set::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: -3px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #6fbaf2, var(--blue), #6fbaf2, transparent); box-shadow: 0 0 12px 2px rgba(0,119,207,.45);
}
.zone.is-active { background: #fff; box-shadow: 0 0 0 2px var(--blue), 0 10px 22px -10px rgba(0,119,207,.7); }
.zone.is-active::after { animation: zoneGlow 1.8s ease-in-out infinite; }
@keyframes zoneGlow { 50% { box-shadow: 0 0 20px 5px rgba(0,119,207,.6); } }
.room__calc { display: grid; gap: 6px; background: #fff; border-radius: var(--radius); padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.room__calc > div { display: grid; grid-template-columns: 1fr auto; gap: 0 10px; font-size: 13px; }
.room__calc span { color: var(--muted); grid-column: 1 / -1; font-size: 11px; letter-spacing: .03em; }
.room__calc b { font-weight: 500; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room__calc em { font-style: normal; color: var(--navy); white-space: nowrap; }
.room__calc .room__total { padding-top: 8px; border-top: 1px dashed var(--line); align-items: baseline; }
.room__calc .room__total span { grid-column: auto; font-size: 13px; }
.room__calc .room__total b { font-size: 18px; font-weight: 600; }
.room .room__list { max-height: 220px; }
.room__badge { z-index: 2; }

/* ---------- меню «Куди приміряти?» ---------- */
.zpick {
  position: fixed; z-index: 140; width: 236px; padding: 10px; border-radius: 16px; background: #fff; display: grid; gap: 4px;
  box-shadow: 0 24px 50px -18px rgba(11,47,87,.5), inset 0 0 0 1px var(--line);
}
.zpick p { font-size: 12px; color: var(--muted); padding: 2px 6px 6px; line-height: 1.35; }
.zpick p b { color: var(--navy); font-weight: 500; }
.zpick button { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--navy); text-align: left; transition: background .2s; }
.zpick button:hover, .zpick button:focus-visible { background: var(--sky); }
.zpick button.is-on { color: var(--blue); }
.zpick button.is-on::after { content: "✓"; margin-left: auto; }
.zi { width: 26px; height: 26px; flex: none; border-radius: 7px; background: var(--sky); position: relative; overflow: hidden; }
.zi::before { content: ""; position: absolute; background: var(--blue); border-radius: 2px; }
.zi--floor::before { left: 3px; right: 3px; bottom: 3px; height: 7px; }
.zi--walls::before { left: 3px; top: 3px; bottom: 3px; width: 7px; box-shadow: 11px 0 0 var(--blue); }
.zi--accent::before { left: 8px; right: 8px; top: 3px; bottom: 3px; }
.zi--panel::before { left: 3px; right: 3px; bottom: 3px; height: 10px; opacity: .8; }

/* ---------- картки, що вже в 3D-кімнаті ---------- */
.card.in-room { box-shadow: 0 0 0 2px var(--blue), 0 16px 34px -18px rgba(0,119,207,.65); }
.card__room {
  position: absolute; left: 10px; bottom: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px;
  background: rgba(0,119,207,.92); color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 0 16px rgba(0,119,207,.55);
}
.card__room[hidden] { display: none; }
.try.is-on { background: var(--blue); color: #fff; box-shadow: 0 0 14px rgba(0,119,207,.5); }

@media (max-width: 1024px) {
  .room__tray { left: 8px; right: 8px; bottom: 8px; }
}
@media (max-width: 720px) {
  .zone { flex-basis: 128px; padding: 5px 8px 5px 5px; }
  .zone__img { width: 32px; height: 32px; }
  .zone__txt b { font-size: 12px; }
  .room .room__list { max-height: 170px; }
  .try3d .room__stage { height: 46vh; }
}
