:root {
  --night: #24103a;
  --mist: #f3f0f7;
  --amber: #FEAE23;
  --purple: #422060;
  --purple-700: #351a4d;
  --purple-50: #f4f0f8;
  --yellow: #FEAE23;
  --yellow-600: #e9990c;
  --black: #000;
  --white: #fff;
  --ink: #1d1626;
  --muted: #5d5468;
  --line: #e4dfea;
  --surface: #faf9fb;
  --photo: #f3f2f4;
  --ok: #1d7a46;
  --warn: #8a5a00;
  --bad: #b3261e;
  --radius: 14px;
  --head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--body); color: var(--ink); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.6vw, 1.6rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--purple); border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* header */
.site-header { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.header-phone { font-weight: 700; text-decoration: none; color: var(--purple); padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; }
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--purple); min-height: 44px; }
.brand-name { font-family: var(--head); font-weight: 800; font-size: 1.15rem; letter-spacing: .02em; }
.brand-name span { color: var(--yellow-600); }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--purple-50); color: var(--purple); }
.cart-count { background: var(--yellow); color: var(--black); border-radius: 999px; min-width: 24px; height: 24px; display: inline-grid; place-items: center; font-size: .85rem; font-weight: 700; padding: 0 6px; }
.preview-banner { background: var(--purple-50); color: var(--purple); font-size: .9rem; border-bottom: 1px solid var(--line); }
.preview-banner .wrap { padding-top: 8px; padding-bottom: 8px; }
main { min-height: 60vh; outline: none; }
.loading { padding: 48px 16px; color: var(--muted); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 12px; border: 2px solid transparent; font-weight: 700; font-family: var(--head); font-size: 1rem; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s; }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-600); }
.btn-dark { background: var(--purple); color: var(--white); }
.btn-dark:hover { background: var(--purple-700); }
.btn-ghost { background: var(--white); color: var(--purple); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--purple); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--purple); text-decoration: underline; cursor: pointer; padding: 10px 4px; min-height: 44px; font-weight: 600; }

/* home — "evening light": dusk purple, one lamp switching on */
.hero { position: relative; overflow: hidden; color: var(--white);
  background: radial-gradient(120% 90% at 78% 30%, #5a2d80 0%, var(--purple) 38%, var(--night) 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; min-height: 540px; padding-top: 48px; padding-bottom: 56px; }
.hero h1 { color: var(--white); font-size: clamp(2.1rem, 5.2vw, 3.9rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 800; max-width: 12ch; margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; line-height: 1.55; color: #e6dcef; max-width: 46ch; margin: 0 0 28px; }
.hero-trust { margin: 26px 0 0; max-width: 46ch; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.18); color: #cdbfdc; font-size: .95rem; line-height: 1.5; }
.hero-trust b { color: var(--white); }
.hero-trust a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.hero-search { display: flex; gap: 8px; background: var(--white); border-radius: 16px; padding: 6px; max-width: 520px; box-shadow: 0 18px 50px -20px rgba(0,0,0,.55); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 14px; min-height: 48px; font-size: 1rem; color: var(--ink); background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search:focus-within { box-shadow: 0 0 0 3px var(--amber), 0 18px 50px -20px rgba(0,0,0,.55); }
.hero-note { color: #cdbfdc; font-size: .95rem; margin: 14px 0 0; }

/* Hero background: an evening interior on the right that fades into the purple and "switches on" */
.hero-photo { position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%); }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%;
  filter: brightness(.3) saturate(.35); transform: scale(1.05); transition: filter 1.8s cubic-bezier(.3,.6,.2,1), transform 3s cubic-bezier(.2,.7,.2,1); }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(36,16,58,.7), rgba(36,16,58,0) 35%); }
.hero-glow { position: absolute; inset: 0; z-index: 1; opacity: 0; mix-blend-mode: screen;
  background: radial-gradient(ellipse 40% 24% at 48% 33%, rgba(255,196,96,.7), rgba(254,174,35,.22) 55%, rgba(254,174,35,0) 100%);
  transition: opacity 1.4s ease-out .15s; }
.hero-photo.on img { filter: brightness(.95) saturate(1.08); transform: scale(1); }
.hero-photo.on .hero-glow { opacity: 1; }
.hero-grid { position: relative; z-index: 1; }

.facts { background: var(--night); color: #e9e0f2; border-top: 1px solid rgba(255,255,255,.08); }
.facts-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }
.fact { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; font-size: .92rem; line-height: 1.35; min-height: 44px; }
.fact b { display: block; color: var(--white); font-weight: 600; font-size: .97rem; }
.fact .ico { width: 26px; height: 26px; flex: none; color: var(--amber); margin-top: 2px; }
a.fact:hover b { color: var(--amber); }

.section { padding: 56px 0 8px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.sec-head a { font-weight: 600; white-space: nowrap; }
.section h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -.025em; font-weight: 800; margin-bottom: 20px; }

.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: 230px; gap: 14px; }
.tile { position: relative; display: block; border-radius: 22px; overflow: hidden; background: var(--mist); color: var(--ink); text-decoration: none; isolation: isolate; }
.tile-lg { grid-row: span 2; }
.tile-ph { position: absolute; inset: 0 0 72px; display: grid; place-items: center; }
.tile-ph img { width: 80%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover .tile-ph img { transform: scale(1.05) translateY(-4px); }
.tile-photo { position: absolute; inset: 0; }
.tile-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.tile-life:hover .tile-photo img { transform: scale(1.04); }
.tile-life .tile-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,16,58,0) 45%, rgba(36,16,58,.82) 100%); }
.tile-life .tile-txt b { color: var(--white); }
.tile-life .tile-txt span { color: #eadff4; }
.tile-txt { position: absolute; left: 18px; right: 18px; bottom: 16px; display: grid; gap: 2px; }
.tile-txt b { font-family: var(--head); font-size: 1.15rem; letter-spacing: -.01em; }
.tile-lg .tile-txt b { font-size: 1.5rem; }
.tile-txt span { color: var(--muted); font-size: .95rem; }
.tile::after { content: ""; position: absolute; inset: auto 0 0; height: 0; background: var(--amber); transition: height .25s; z-index: -1; }
.tile:hover::after { height: 4px; }

.rooms { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.room { display: grid; justify-items: start; gap: 4px; padding: 18px; border-radius: 18px; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); transition: border-color .2s, background .2s; }
.room .ico { width: 30px; height: 30px; color: var(--purple); margin-bottom: 8px; }
.room b { font-family: var(--head); font-size: 1.02rem; }
.room span { color: var(--muted); font-size: .9rem; }
.room:hover { border-color: var(--purple); background: var(--purple-50); }

.how { padding-bottom: 56px; }
.how-list { list-style: none; counter-reset: how; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 0; padding: 0; }
.how-list li { counter-increment: how; color: var(--muted); font-size: .97rem; line-height: 1.5; border-top: 2px solid var(--line); padding-top: 16px; }
.how-list li::before { content: counter(how); display: block; font-family: var(--head); font-weight: 800; font-size: 2rem; color: var(--purple); line-height: 1; margin-bottom: 10px; }
.how-list b { display: block; color: var(--ink); font-size: 1.05rem; margin-bottom: 4px; }

.chips-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--white); font-weight: 600; }
.chip-link:hover { border-color: var(--purple); color: var(--purple); }
.note { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--muted); }

/* catalog */
.catalog-head { padding-top: 20px; padding-bottom: 8px; }
.cat-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cat-tab { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-weight: 600; white-space: nowrap; }
.cat-tab[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: var(--white); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.search { flex: 1 1 260px; position: relative; }
.search input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px 0 42px; background: var(--white); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.select { min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; background: var(--white); }
.filter-toggle { display: none; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; padding-bottom: 40px; }
.filters { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 4px; }
.filters-head { display: none; }
.fgroup { border-bottom: 1px solid var(--line); padding: 14px 0; }
.fgroup legend, .fgroup h3 { font-family: var(--head); font-weight: 700; font-size: 1rem; margin: 0 0 8px; padding: 0; }
fieldset.fgroup { border-left: 0; border-right: 0; border-top: 0; margin: 0; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.opt input { width: 20px; height: 20px; accent-color: var(--purple); flex: none; }
.opt .cnt { margin-left: auto; color: var(--muted); font-size: .9rem; }
.tech-note { color: var(--muted); font-size: .85rem; margin: 2px 0 6px; }
.price-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.price-inputs label { font-size: .9rem; color: var(--muted); display: grid; gap: 4px; }
.price-inputs input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; width: 100%; }
.range { position: relative; height: 44px; }
.range input[type=range] { position: absolute; left: 0; right: 0; top: 10px; width: 100%; margin: 0; pointer-events: none; background: none; -webkit-appearance: none; appearance: none; height: 24px; }
.range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: var(--white); border: 3px solid var(--purple); cursor: pointer; }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 3px solid var(--purple); cursor: pointer; }
.range .track { position: absolute; left: 0; right: 0; top: 20px; height: 4px; background: var(--line); border-radius: 4px; }
.range .fill { position: absolute; top: 20px; height: 4px; background: var(--purple); border-radius: 4px; }
.range-hint { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.result-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.count { font-weight: 700; margin-right: 6px; }
.active-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--purple-50); color: var(--purple); border: 1px solid #d9cde6; font-size: .92rem; font-weight: 600; cursor: pointer; }
.active-chip span[aria-hidden] { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--white); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 28px 20px; }
.card { display: flex; flex-direction: column; background: var(--white); }
.card .ph { display: block; aspect-ratio: 1; background: var(--mist); position: relative; border-radius: 18px; overflow: hidden; }
.card .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8%; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.card:hover .ph img { transform: scale(1.04); }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .9rem; text-align: center; padding: 12px; }
.card-body { padding: 12px 2px 4px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 600; color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.card-title:hover { color: var(--purple); }
.meta { color: var(--muted); font-size: .9rem; }
.price { font-family: var(--head); font-weight: 800; font-size: 1.3rem; color: var(--ink); letter-spacing: -.01em; }
.price-na { font-weight: 600; color: var(--muted); }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff3dc; color: #6b4300; vertical-align: middle; }
.avail { font-size: .88rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.avail.in_stock { color: var(--ok); }
.avail.on_order, .avail.unknown { color: var(--warn); }
.avail.out_of_stock { color: var(--bad); }
.card .btn { margin-top: auto; min-height: 44px; }
.card .price-row { margin-bottom: 10px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty .chips-row { justify-content: center; margin-top: 14px; }

/* product */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 16px; padding-bottom: 4px; }
.crumbs a { color: var(--muted); }
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; padding: 12px 0 40px; }
.gallery-main { background: var(--photo); border-radius: var(--radius); aspect-ratio: 1; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid var(--line); border-radius: 10px; background: var(--photo); cursor: pointer; overflow: hidden; }
.thumbs button[aria-pressed="true"] { border-color: var(--purple); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.p-info h1 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.sku { color: var(--muted); font-size: .95rem; }
.variant-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.variant-pick button { min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); background: var(--white); cursor: pointer; font-weight: 600; }
.variant-pick button[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-50); color: var(--purple); }
.buy { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; display: grid; gap: 12px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; }
.qty button { width: 44px; height: 44px; border: 0; background: none; font-size: 1.3rem; cursor: pointer; color: var(--purple); }
.qty input { width: 52px; height: 44px; border: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buy-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.buy-row .btn { flex: 1 1 200px; }
.specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.specs th, .specs td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 600; color: var(--muted); width: 48%; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }
details.desc { border-top: 1px solid var(--line); padding: 12px 0; }
details.desc summary { cursor: pointer; font-family: var(--head); font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.small { font-size: .9rem; color: var(--muted); }

/* cart & checkout */
.page { padding-top: 20px; padding-bottom: 48px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.line { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.line .ph { width: 88px; height: 88px; background: var(--photo); border-radius: 10px; overflow: hidden; }
.line .noimg { font-size: .72rem; padding: 4px; }
.line .ph img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.line-total { font-family: var(--head); font-weight: 800; white-space: nowrap; text-align: right; }
.line-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: sticky; top: 84px; display: grid; gap: 12px; background: var(--surface); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--head); font-weight: 800; font-size: 1.3rem; }
.alert { border-radius: 12px; padding: 12px 14px; border: 1px solid; }
.alert-warn { background: #fff7e6; border-color: #f3d08a; color: #5c3d00; }
.alert-bad { background: #fdecea; border-color: #f2b8b5; color: #7a1712; }
.alert-ok { background: #e8f5ee; border-color: #a9d9bd; color: #134d2c; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 600; }
.field input, .field textarea, .field select { min-height: 48px; border: 1px solid #cfc6da; border-radius: 12px; padding: 10px 14px; width: 100%; background: var(--white); }
.field textarea { min-height: 96px; resize: vertical; }
.field .err { color: var(--bad); font-size: .92rem; font-weight: 600; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: .9rem; color: var(--muted); }
.manager-note { font-size: .95rem; color: var(--ink); background: var(--purple-50); border-radius: 10px; padding: 10px 12px; margin: 0; }
.success { text-align: center; max-width: 640px; margin: 0 auto; }
.success .num { font-family: var(--head); font-size: 1.6rem; font-weight: 800; color: var(--purple); }

/* footer & toast */
.site-footer { background: var(--purple); color: #e9e2f1; padding: 24px 0; font-size: .95rem; margin-top: 24px; }
.site-footer a { color: var(--white); }
.footer-row { display: grid; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast a { color: var(--yellow); font-weight: 700; }

/* responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-top: 32px; }
  .hero-photo { width: 100%; bottom: auto; height: 360px; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000 55%, transparent 100%); }
  .hero-grid { padding-top: 250px; }
  .facts-row { grid-template-columns: repeat(2, 1fr); }
  .rooms { grid-template-columns: repeat(4, 1fr); }
  .how-list { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .header-phone { display: none; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filter-toggle { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 50; background: var(--white); max-height: none; padding: 0 16px 96px; overflow: auto; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  .filters.open { transform: none; visibility: visible; }
  .filters-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--white); padding: 12px 0; border-bottom: 1px solid var(--line); z-index: 1; }
  .filters-foot { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: var(--white); border-top: 1px solid var(--line); display: flex; gap: 10px; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .product > div:first-child { max-width: 560px; width: 100%; margin: 0 auto; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (min-width: 1025px) { .filters-foot { display: none; } }
@media (max-width: 640px) {
  .hero h1 { max-width: none; }
  .hero-sub { font-size: 1.05rem; }
  .lamp-tag b { font-size: 1rem; }
  .hero-grid { padding-bottom: 36px; }
  .facts-row { grid-template-columns: 1fr; gap: 12px; }
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .how-list { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 196px; gap: 10px; }
  .tile-lg { grid-column: span 2; grid-row: span 1; }
  .tile-ph { inset: 6px 0 66px; }
  .tile-ph img { height: 100%; }
  .tile-txt { left: 12px; right: 12px; bottom: 10px; }
  .tile-txt b, .tile-lg .tile-txt b { font-size: 1rem; }
  .tile-txt span { font-size: .85rem; }
  .section { padding-top: 40px; }
  .hide-sm { display: none !important; }
  .main-nav a { padding: 0 10px; }
  .brand-name { font-size: 1rem; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; }
  .price { font-size: 1.05rem; }
  .card .btn { padding: 0 10px; font-size: .92rem; }
  .line { grid-template-columns: 64px minmax(0, 1fr); }
  .line .ph { width: 64px; height: 64px; }
  .line-total { grid-column: 2; text-align: left; }
  .toolbar .select { flex: 1 1 140px; }
}
@media (max-width: 380px) {
  .main-nav .cart-link span:not(.cart-count) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } .hero-photo img { filter: none; transform: none; } .hero-glow { opacity: 1; } }

/* utilities (CSP forbids inline style attributes) */
.m0 { margin: 0 !important; } .mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt10 { margin-top: 10px; } .mt20 { margin-top: 20px; } .mt32 { margin-top: 32px; } .mb14 { margin: 0 0 14px; } .pt0 { padding-top: 0 !important; }
.h-sm { font-size: 1.05rem; } .h-variant { margin: 16px 0 4px; } .lead { font-size: 1.05rem; } .ink { color: var(--ink); } .bad { color: var(--bad); }
.undo { color: var(--yellow); min-height: 0; padding: 0; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.terms { padding-left: 20px; margin: 12px 0; } .terms li { margin-bottom: 6px; }
.contact-phone { font-family: var(--head); font-size: 1.25rem; font-weight: 700; }
/* product page emphasis */
.gallery-main { background: var(--mist); border-radius: 22px; }
.gallery-main img { padding: 6%; }
.thumbs button { background: var(--mist); border-radius: 12px; }
.buy { border: 0; background: var(--mist); border-radius: 20px; padding: 20px; }
.buy .price { font-size: 2.1rem; letter-spacing: -.02em; }
.p-info h1 { letter-spacing: -.025em; }
.more-row { display: flex; justify-content: center; margin: 28px 0 8px; }

/* Швидкий вибір */
.sec-sub { color: var(--muted); margin: -6px 0 18px; max-width: 62ch; }
.quick-strip { border: 2px solid var(--amber); border-radius: 22px; padding: 20px; margin: 4px 0 28px; }
.quick-strip h2 { margin: 0 0 8px; font-size: 1.3rem; }
.all-head { font-size: 1.2rem; margin: 0 0 14px; }

/* Форма точкових */
.shape-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.shape-btn { display: grid; justify-items: center; gap: 4px; padding: 14px 8px; min-height: 44px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font: inherit; cursor: pointer; transition: border-color .2s, background .2s; }
.shape-btn b { font-family: var(--head); font-size: .95rem; }
.shape-btn > span:last-child { color: var(--muted); font-size: .85rem; }
.shape-btn:hover { border-color: var(--purple); }
.shape-btn[aria-pressed="true"] { border-color: var(--purple); background: var(--purple-50); }
.shape-ico { display: block; width: 34px; height: 34px; margin-bottom: 4px; position: relative; }
.shape-round { border: 3px solid var(--purple); border-radius: 50%; }
.shape-square { border: 3px solid var(--purple); border-radius: 6px; }
.shape-double { width: 46px; }
.shape-double::before, .shape-double::after { content: ""; position: absolute; top: 6px; width: 20px; height: 20px; border: 3px solid var(--purple); border-radius: 50%; }
.shape-double::before { left: 0; } .shape-double::after { right: 0; }
.shape-tube { width: 24px; border: 3px solid var(--purple); border-radius: 4px 4px 10px 10px; }
.shape-tube::after { content: ""; position: absolute; left: 3px; right: 3px; bottom: 3px; height: 4px; border-radius: 2px; background: var(--amber); }
@media (max-width: 560px) {
  .shape-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-strip { padding: 14px; margin-left: -4px; margin-right: -4px; }
}

/* Візуалізація */
.hero-visual { display: grid; gap: 12px; justify-items: start; max-width: 520px; }
.hero-visual p { color: #e4d9ef; margin: 0; font-size: 1rem; white-space: nowrap; }
.hero-visual b { color: var(--amber); }
.btn-xl { min-height: 58px; padding: 0 28px; font-size: 1.08rem; border-radius: 16px; box-shadow: 0 18px 50px -18px rgba(254,174,35,.65); }
.visual-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.visual-price { display: inline-flex; align-items: baseline; gap: 12px; padding: 14px 20px; border-radius: 16px; background: var(--purple-50); margin: 8px 0 20px; }
.visual-price b { font-family: var(--head); font-size: 1.7rem; color: var(--purple); }
.visual-price span { color: var(--muted); }
.visual-steps { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.visual-steps b { display: block; font-family: var(--head); }
.visual-form { display: grid; gap: 4px; padding: 24px; border-radius: 22px; border: 2px solid var(--amber); background: var(--white); position: sticky; top: 90px; }
.visual-form select { width: 100%; min-height: 48px; }
@media (max-width: 860px) { .visual-grid { grid-template-columns: 1fr; gap: 24px; } .visual-form { position: static; } }

.pick-row { margin-bottom: 28px; }
.pick-row .sec-head { margin-bottom: 12px; }
.pick-row h3 { font-family: var(--head); font-size: 1.15rem; margin: 0; }
.grid-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hit { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--amber); color: var(--night); font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) {
  .grid-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; padding-bottom: 6px; margin-right: -16px; padding-right: 16px; }
  .grid-row .card { flex: 0 0 46%; scroll-snap-align: start; }
}
@media (max-width: 560px) { .grid-row .card { flex-basis: 62%; } }

/* Назад */
.back-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px 0 8px; margin-right: 4px; border-radius: 12px; border: 1.5px solid var(--purple); background: var(--white); color: var(--purple); font-family: var(--head); font-weight: 700; font-size: .95rem; cursor: pointer; flex: 0 0 auto; }
.back-btn:hover { background: var(--purple-50); }
.back-btn[hidden] { display: none; }
.header-row .brand { margin-right: auto; }
@media (max-width: 560px) {
  .back-btn { padding: 0 10px 0 6px; font-size: .88rem; }
  .has-back .brand-name { display: none; }
}
.btn-xl { text-align: center; }
@media (max-width: 560px) { .hero-visual { justify-items: stretch; } .btn-xl { font-size: .98rem; padding: 0 14px; } .hero-visual p { text-align: center; font-size: clamp(.8rem, 4vw, 1rem); } }

/* Наші об'єкти — real projects from the Telegram channel */
.obj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.obj { display: block; position: relative; border-radius: 14px; overflow: hidden; color: #fff; text-decoration: none; aspect-ratio: 3 / 4; background: var(--night); }
.obj img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.obj span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px; font-size: .86rem; line-height: 1.35; color: #eadff3; background: linear-gradient(transparent, rgba(30,14,44,.88)); }
.obj b { display: block; color: #fff; font-size: .98rem; margin-bottom: 2px; }
.obj:hover img, .obj:focus-visible img { transform: scale(1.04); }
@media (max-width: 860px) { .obj-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .obj span { font-size: .74rem; padding: 28px 10px 10px; } .obj b { font-size: .86rem; } }
@media (prefers-reduced-motion: reduce) { .obj img { transition: none; } }
.social-head { margin: 22px 0 10px; color: var(--muted); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: flex; flex-direction: column; min-width: 150px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: .88rem; text-decoration: none; }
.social a b { color: var(--ink); font-size: 1rem; }
.social a:hover, .social a:focus-visible { border-color: var(--purple); }
@media (max-width: 560px) { .social { gap: 8px; } .social a { flex: 1 1 0; min-width: 0; padding: 8px 10px; font-size: .7rem; } .social a span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .social a:last-child { flex-grow: 1.45; } .social a b { font-size: .92rem; } }

.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .admin-page .header-row { flex-wrap: wrap; row-gap: 10px; } .admin-actions { width: 100%; justify-content: stretch; } .admin-actions .btn { flex: 1; min-height: 42px; padding: 0 10px; font-size: .9rem; } }
