:root {
  --bg: #f5f1ea;
  --surface: #fffdf9;
  --surface-2: #eee6db;
  --text: #171412;
  --muted: #6e675f;
  --line: rgba(23, 20, 18, .12);
  --accent: #9c7048;
  --accent-2: #d8bd98;
  --dark: #171412;
  --ok: #2f7553;
  --danger: #a4423d;
  --shadow: 0 24px 70px rgba(29, 22, 16, .15);
  --radius: 24px;
  --radius-sm: 16px;
  --header-h: 74px;
  --safe-top: max(env(safe-area-inset-top), 0px);
  --safe-right: max(env(safe-area-inset-right), 0px);
  --safe-bottom: max(env(safe-area-inset-bottom), 0px);
  --safe-left: max(env(safe-area-inset-left), 0px);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #12110f;
  --surface: #1b1916;
  --surface-2: #26221d;
  --text: #f7f2ea;
  --muted: #b9afa3;
  --line: rgba(255,255,255,.12);
  --accent: #d2a778;
  --accent-2: #6d5037;
  --dark: #090806;
  --shadow: 0 24px 70px rgba(0,0,0,.38);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  padding-left: var(--safe-left);
  padding-right: var(--safe-right);
}
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 3px; }
::selection { background: var(--accent-2); color: var(--text); }

.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.section { padding: clamp(68px, 8vw, 112px) 0; }
.section-tight { padding: 48px 0; }
.eyebrow { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.display { margin: 0; max-width: 900px; font-size: clamp(42px, 7vw, 88px); line-height: .94; letter-spacing: -.055em; font-weight: 750; }
.section-title { margin: 0; font-size: clamp(34px, 5vw, 62px); line-height: 1; letter-spacing: -.045em; }
.section-lead { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: clamp(17px, 2vw, 21px); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-header {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  right: 0;
  min-height: calc(var(--header-h) + var(--safe-top));
  padding-top: var(--safe-top);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border-bottom: 1px solid transparent;
  /* Solid surface avoids a permanent GPU blur layer while scrolling. */
  transition: border-color .25s ease, background .25s ease;
}
.site-header.scrolled { border-color: var(--line); }
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand-mark { width: 42px; height: 42px; border-radius: 50%; background: var(--dark); position: relative; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; left: -8px; width: 58px; height: 14px; border: 5px solid var(--accent-2); border-left-color: transparent; border-right-color: transparent; border-bottom-color: transparent; border-radius: 50%; transform: rotate(-8deg); }
.brand-mark::before { top: 11px; }
.brand-mark::after { top: 22px; border-top-color: var(--accent); transform: rotate(7deg); }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { font-size: 18px; letter-spacing: .08em; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .09em; text-transform: uppercase; }
.desktop-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.desktop-nav a { color: var(--muted); font-size: 14px; font-weight: 700; transition: color .2s ease; }
.desktop-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 9px; }
.icon-button { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: color-mix(in srgb, var(--surface) 80%, transparent); cursor: pointer; transition: transform .2s ease, background .2s ease; }
.icon-button:hover { transform: translateY(-2px); background: var(--surface); }
.menu-button { display: none; }

.btn { min-height: 50px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--dark); color: #fff; box-shadow: 0 12px 28px rgba(23,20,18,.18); }
[data-theme="dark"] .btn-primary { background: #f7f2ea; color: #171412; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn-light { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost { border-color: var(--line); background: transparent; }
.btn-block { width: 100%; }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 14px; }

.hero { min-height: min(920px, 100svh); padding: calc(var(--header-h) + var(--safe-top) + 36px) 0 32px; position: relative; display: grid; align-items: end; isolation: isolate; background: var(--dark); color: white; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -3; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center 38%; scale: 1.015; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(13,10,7,.82) 0%, rgba(13,10,7,.54) 44%, rgba(13,10,7,.09) 78%), linear-gradient(0deg, rgba(13,10,7,.8) 0%, transparent 52%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 200px; z-index: -1; background: linear-gradient(transparent, var(--bg)); opacity: .18; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .55fr); gap: clamp(24px, 7vw, 90px); align-items: end; padding-bottom: clamp(20px, 5vw, 70px); }
.hero-copy { max-width: 780px; }
.hero .eyebrow { color: #e3c29a; }
.hero .display { text-wrap: balance; }
.hero-lead { max-width: 630px; margin: 25px 0 0; color: rgba(255,255,255,.8); font-size: clamp(18px,2.4vw,24px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .btn-light { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.24); color: white;  }
.hero-card { padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(18,14,10,.38);  }
.hero-card-number { font-size: clamp(52px, 7vw, 78px); line-height: .9; letter-spacing: -.06em; }
.hero-card p { margin: 14px 0 0; color: rgba(255,255,255,.72); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 78%, transparent); color: var(--muted); font-size: 12px; font-weight: 800; }
.hero .pill { border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); }

.trust-strip { position: relative; z-index: 3; margin-top: -1px; background: var(--bg); }
.trust-grid { padding: 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: center; gap: 12px; min-width: 0; }
.trust-icon { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--surface-2); }
.trust-item strong { display: block; font-size: 14px; }
.trust-item span { display: block; color: var(--muted); font-size: 12px; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-btn { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 800; cursor: pointer; }
.filter-btn.active { background: var(--dark); color: white; border-color: var(--dark); }
[data-theme="dark"] .filter-btn.active { background: #f7f2ea; color: #171412; }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.product-card { position: relative; min-height: 610px; border-radius: clamp(22px, 3vw, 34px); overflow: hidden; background: var(--surface-2); box-shadow: 0 1px 0 var(--line); isolation: isolate; }
.product-card[hidden] { display: none; }
.product-media { position: absolute; inset: 0; z-index: -2; }
.product-media picture, .product-media img { width: 100%; height: 100%; }
.product-media img { object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.product-card:hover .product-media img { transform: scale(1.035); }
.product-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(9,7,5,.85), rgba(9,7,5,.03) 60%); pointer-events: none; }
.product-favorite { position: absolute; z-index: 2; top: 18px; right: 18px; width: 46px; height: 46px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(20,16,12,.22); color: white;  cursor: pointer; }
.product-favorite.active { background: white; color: var(--danger); }
.product-content { position: absolute; inset: auto 0 0; padding: 26px; color: white; }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: rgba(255,255,255,.65); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.product-title { margin: 10px 0 0; font-size: clamp(32px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.product-description { max-width: 430px; margin: 12px 0 0; color: rgba(255,255,255,.78); }
.product-footer { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.product-price { font-weight: 800; }
.product-open { min-width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); cursor: pointer; }

.designer-section { overflow: hidden; }
.designer-shell { padding: clamp(22px,4vw,50px); border-radius: clamp(28px,4vw,48px); background: var(--dark); color: white; position: relative; overflow: hidden; }
.designer-shell::before { content:""; position:absolute; width:550px; height:550px; right:-180px; top:-260px; border-radius:50%; background:radial-gradient(circle,color-mix(in srgb,var(--accent) 52%,transparent),transparent 68%); pointer-events:none; }
.designer-header { position:relative; display:grid; grid-template-columns:minmax(0,1fr) minmax(260px,.55fr); gap:40px; align-items:end; }
.designer-header .eyebrow { color:#e8c59d; }
.designer-title { margin:0; font-size:clamp(38px,6vw,72px); line-height:.98; letter-spacing:-.05em; }
.designer-header > p { margin:0; color:rgba(255,255,255,.72); font-size:18px; }
.designer-request { position:relative; margin-top:36px; display:grid; grid-template-columns:minmax(0,.9fr) minmax(320px,.75fr); gap:18px; align-items:start; }
.request-form-card, .selected-design-card { border:1px solid rgba(255,255,255,.14); border-radius:26px; background:rgba(255,255,255,.07); }
.request-form-card { padding:22px; }
.request-step { display:grid; grid-template-columns:34px 1fr; gap:12px; padding:18px 0; border-bottom:1px solid rgba(255,255,255,.12); }
.request-step:first-of-type { padding-top:0; }
.request-step strong { display:block; }
.request-step p { margin:5px 0 0; color:rgba(255,255,255,.6); font-size:13px; }
.step-num { width:34px; height:34px; display:grid; place-items:center; border-radius:50%; background:rgba(255,255,255,.1); font-weight:900; }
.design-select { width:100%; min-height:48px; margin-top:12px; padding:0 14px; border-radius:14px; border:1px solid rgba(255,255,255,.18); background:#26211c; color:white; }
.request-fields { min-width:0; }
.dark-form-grid { margin-top:14px; }
.dark-form-grid .field label, .dark-form-grid .field-label { color:rgba(255,255,255,.88); font-size:13px; font-weight:800; }
.dark-form-grid .field input, .dark-form-grid .field textarea, .dark-form-grid .field select { border-color:rgba(255,255,255,.18); background:#26211c; color:white; }
.dark-form-grid .field input::placeholder, .dark-form-grid .field textarea::placeholder { color:rgba(255,255,255,.38); }
.contact-choice { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.contact-choice label { cursor:pointer; }
.contact-choice input { position:absolute; opacity:0; pointer-events:none; }
.contact-choice span { min-height:50px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.18); border-radius:14px; background:#26211c; color:rgba(255,255,255,.72); font-weight:900; }
.contact-choice input:checked + span { background:var(--accent); border-color:var(--accent); color:white; }
.file-drop { margin-top:12px; min-height:120px; padding:16px; display:grid; place-items:center; border:1px dashed rgba(255,255,255,.32); border-radius:16px; background:rgba(255,255,255,.04); text-align:center; cursor:pointer; }
.file-drop.dragging { background:rgba(255,255,255,.12); }
.file-drop input { display:none; }
.file-drop span { color:rgba(255,255,255,.68); font-size:13px; }
.file-name { margin-top:8px; color:white !important; font-size:12px; overflow-wrap:anywhere; }
.request-consent { color:rgba(255,255,255,.62); }
.request-consent a { color:white; }
.selected-design-card { overflow:hidden; }
.selected-design-media { position:relative; aspect-ratio:4/5; min-height:420px; }
.selected-design-media picture, .selected-design-media img { width:100%; height:100%; }
.selected-design-media img { object-fit:cover; }
.selected-design-media::after { content:""; position:absolute; inset:0; background:linear-gradient(0deg,rgba(12,9,7,.65),transparent 48%); pointer-events:none; }
.selected-badge { position:absolute; z-index:2; left:18px; top:18px; padding:9px 13px; border-radius:999px; background:rgba(18,14,11,.72); font-size:12px; font-weight:900; }
.selected-design-copy { padding:22px; }
.selected-design-copy h3 { margin:6px 0 10px; font-size:clamp(34px,4vw,54px); line-height:1; letter-spacing:-.045em; }
.selected-design-copy > p:not(.eyebrow) { color:rgba(255,255,255,.68); }
.room-photo-preview { margin:0 22px 22px; padding:14px; border:1px solid rgba(255,255,255,.14); border-radius:18px; background:rgba(255,255,255,.05); }
.room-photo-preview strong { display:block; margin-bottom:10px; font-size:13px; }
.room-photo-preview img { width:100%; max-height:220px; object-fit:cover; border-radius:12px; }
.product-card-actions { display:flex; align-items:center; gap:8px; }
.product-design { min-height:42px; padding:0 15px; border:1px solid rgba(255,255,255,.3); border-radius:999px; background:rgba(255,255,255,.14); color:white; font-weight:800; cursor:pointer; }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 38px; }
.how-card { min-height: 260px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; justify-content: space-between; }
.how-number { font-size: 13px; color: var(--accent); font-weight: 900; letter-spacing: .14em; }
.how-card h3 { margin: 28px 0 0; font-size: 26px; line-height: 1.05; }
.how-card p { margin: 12px 0 0; color: var(--muted); }

.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: stretch; }
.feature-image { min-height: 560px; border-radius: 34px; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-panel { padding: clamp(28px,5vw,60px); border-radius: 34px; background: var(--surface-2); display: flex; flex-direction: column; justify-content: space-between; }
.feature-list { display: grid; gap: 12px; margin-top: 34px; }
.feature-row { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.feature-row:last-child { border-bottom: 0; }
.check { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--accent); }
.feature-row strong { display: block; }
.feature-row span { color: var(--muted); font-size: 14px; }

.faq { display: grid; gap: 10px; margin-top: 34px; }
.faq-item { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.faq-button { width: 100%; min-height: 66px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: transparent; border: 0; text-align: left; font-weight: 800; cursor: pointer; }
.faq-icon { transition: transform .22s ease; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; color: var(--muted); transition: max-height .28s ease; }
.faq-answer-inner { padding: 0 20px 20px; }

.cta-panel { padding: clamp(30px,6vw,74px); border-radius: clamp(28px,4vw,48px); background: var(--accent-2); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cta-panel h2 { margin: 0; max-width: 780px; font-size: clamp(38px,6vw,72px); line-height: .96; letter-spacing: -.05em; }
.cta-panel p { max-width: 620px; margin: 18px 0 0; color: color-mix(in srgb, var(--text) 70%, transparent); }
.cta-actions { display: flex; flex-direction: column; gap: 10px; min-width: 220px; }

.site-footer { padding: 52px 0 calc(34px + var(--safe-bottom)); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 32px; }
.footer-brand p { max-width: 420px; color: var(--muted); }
.footer-column strong { display: block; margin-bottom: 12px; }
.footer-column a { display: block; margin: 9px 0; color: var(--muted); font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.mobile-nav { display: none; }
.mobile-menu { position: fixed; z-index: 90; inset: 0; padding: calc(24px + var(--safe-top)) 22px calc(24px + var(--safe-bottom)); background: var(--bg); transform: translateX(100%); transition: transform .28s ease; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; }
.mobile-menu-links { display: grid; gap: 8px; margin-top: 42px; }
.mobile-menu-links a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 28px; font-weight: 750; letter-spacing: -.03em; }

.modal { position: fixed; z-index: 100; inset: 0; display: none; align-items: center; justify-content: center; padding: max(16px, var(--safe-top)) max(16px, var(--safe-right)) max(16px, var(--safe-bottom)) max(16px, var(--safe-left)); }
.modal.open { display: flex; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,7,6,.72);  }
.modal-panel { position: relative; z-index: 1; width: min(980px,100%); max-height: min(900px, calc(100svh - 30px)); overflow: auto; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
.modal-close { position: sticky; z-index: 5; top: 14px; float: right; margin: 14px 14px -58px 0; background: color-mix(in srgb, var(--surface) 86%, transparent);  }
.product-modal-grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 620px; }
.product-modal-media { min-height: 620px; background: var(--surface-2); }
.product-modal-media picture, .product-modal-media img { width: 100%; height: 100%; }
.product-modal-media img { object-fit: cover; }
.product-modal-content { padding: clamp(28px,4vw,50px); align-self: center; }
.product-modal-content h2 { margin: 8px 0 0; font-size: clamp(38px,5vw,62px); line-height: 1; letter-spacing: -.05em; }
.product-modal-content p { color: var(--muted); }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.product-modal-actions { display: grid; gap: 10px; margin-top: 26px; }

.form-modal-panel { width: min(680px,100%); padding: clamp(24px,5vw,48px); }
.form-modal-panel h2 { margin: 0; font-size: clamp(34px,5vw,52px); line-height: 1; letter-spacing: -.045em; }
.form-modal-panel > p { margin: 14px 0 24px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); }
.field textarea { min-height: 110px; resize: vertical; }
.consent { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0; color: var(--muted); font-size: 12px; }
.consent input { margin-top: 3px; }
.consent a { text-decoration: underline; }
.form-status { min-height: 24px; margin-top: 12px; font-size: 13px; }
.form-status.success { color: var(--ok); }
.form-status.error { color: var(--danger); }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.install-banner { position: fixed; z-index: 70; left: 50%; bottom: calc(18px + var(--safe-bottom)); width: min(600px, calc(100% - 28px)); padding: 14px; display: none; align-items: center; gap: 14px; transform: translateX(-50%); border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow);  }
.install-banner.show { display: flex; }
.install-banner img { width: 48px; height: 48px; border-radius: 12px; }
.install-copy { flex: 1; min-width: 0; }
.install-copy strong { display: block; }
.install-copy span { color: var(--muted); font-size: 12px; }
.toast { position: fixed; z-index: 120; left: 50%; bottom: calc(24px + var(--safe-bottom)); max-width: calc(100% - 28px); padding: 13px 18px; border-radius: 999px; background: var(--dark); color: white; box-shadow: var(--shadow); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; text-align: center; font-size: 13px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.offline-bar { position: fixed; z-index: 110; top: calc(var(--safe-top) + 8px); left: 50%; transform: translateX(-50%); display: none; padding: 9px 14px; border-radius: 999px; background: #8d3e39; color: white; font-size: 12px; font-weight: 800; box-shadow: var(--shadow); }
.offline-bar.show { display: block; }

.legal-page { padding: calc(var(--header-h) + var(--safe-top) + 50px) 0 80px; }
.legal-content { max-width: 850px; }
.legal-content h1 { font-size: clamp(40px,6vw,72px); line-height: 1; letter-spacing: -.05em; }
.legal-content h2 { margin-top: 38px; }
.legal-content p, .legal-content li { color: var(--muted); }

@media (max-width: 980px) {
  .desktop-nav { display: none; }
  .header-actions .header-cta { display: none; }
  .menu-button { display: inline-grid; }
  .hero-inner, .designer-header, .split, .cta-panel { grid-template-columns: 1fr; }
  .hero-card { max-width: 420px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .designer-request { grid-template-columns: 1fr; }
  .selected-design-card { display:grid; grid-template-columns:minmax(260px,.8fr) 1fr; }
  .selected-design-media { min-height:420px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 210px; }
  .feature-image { min-height: 430px; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .product-modal-grid { grid-template-columns: 1fr; }
  .product-modal-media { min-height: 430px; max-height: 55svh; }
}

@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { width: min(100% - 24px, 1180px); }
  .brand-copy small { display: none; }
  .brand-mark { width: 38px; height: 38px; }
  .header-actions .theme-toggle { display: none; }
  .hero { min-height: 820px; padding-bottom: 20px; }
  .hero::before { background: linear-gradient(0deg, rgba(13,10,7,.88) 0%, rgba(13,10,7,.34) 76%), linear-gradient(90deg, rgba(13,10,7,.4), transparent); }
  .hero-inner { gap: 24px; }
  .hero .display { font-size: clamp(44px, 13vw, 66px); }
  .hero-lead { font-size: 18px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-card { padding: 18px; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .trust-item { align-items: flex-start; }
  .trust-item span { display: none; }
  .section-head { align-items: start; flex-direction: column; }
  .filters { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
  .filter-btn { flex: 0 0 auto; }
  .catalog-grid { grid-template-columns: 1fr; gap: 14px; }
  .product-card { min-height: 540px; }
  .product-content { padding: 20px; }
  .designer-shell { border-radius:28px; margin-inline:-4px; }
  .request-form-card { padding:16px; }
  .selected-design-card { display:block; }
  .selected-design-media { min-height:360px; }
  .product-design { padding:0 12px; font-size:12px; }
  .feature-image { min-height: 390px; }
  .feature-panel { padding: 26px; }
  .cta-actions { display: grid; grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .modal { align-items: flex-end; padding: 0; }
  .modal-panel { border-radius: 24px 24px 0 0; max-height: calc(100svh - var(--safe-top) - 8px); padding-bottom: var(--safe-bottom); }
  .product-modal-media { min-height: 360px; }
  .mobile-nav { position: fixed; z-index: 55; left: 10px; right: 10px; bottom: calc(8px + var(--safe-bottom)); height: 62px; padding: 5px; display: grid; grid-template-columns: repeat(4,1fr); border: 1px solid var(--line); border-radius: 20px; background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 12px 35px rgba(20,16,12,.16);  }
  .mobile-nav a, .mobile-nav button { display: grid; place-items: center; gap: 2px; border: 0; border-radius: 15px; background: transparent; color: var(--muted); font-size: 10px; font-weight: 800; cursor: pointer; }
  .mobile-nav svg { width: 21px; height: 21px; }
  .mobile-nav .primary { background: var(--dark); color: white; }
  .site-footer { padding-bottom: calc(110px + var(--safe-bottom)); }
  .install-banner { bottom: calc(82px + var(--safe-bottom)); }
  .toast { bottom: calc(86px + var(--safe-bottom)); }
}

@media (max-width: 420px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item span { display: block; }
  .product-card { min-height: 500px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}


/* Performance: do not render long sections before they approach the viewport. */
@supports (content-visibility: auto) {
  main > section:not(.hero):not(.trust-strip) {
    content-visibility: auto;
    contain-intrinsic-size: auto 900px;
  }
  .product-card {
    content-visibility: auto;
    contain-intrinsic-size: 720px 610px;
  }
}

.product-card,
.how-card,
.faq-item,
.feature-panel {
  contain: layout paint style;
}

.product-media img,
.hero-media img,
.product-modal-media img {
  image-rendering: auto;
}

@media (max-width: 760px) {
  .site-header,
  .mobile-nav,
  .install-banner {
    background: var(--surface);
  }
  .product-card,
  .modal-panel,
  .mobile-nav,
  .install-banner {
    box-shadow: 0 8px 24px rgba(20,16,12,.10);
  }
}

/* БУМ 1.2.2 — заметный результат отправки */
.form-status {
  min-height: 0;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  display: none;
}
.form-status:not(:empty) { display: block; }
.form-status.sending {
  color: #2d2613;
  background: #fff3c4;
  border-color: #e1c85e;
}
.form-status.success {
  color: #0f5e36;
  background: #dff7e9;
  border-color: #77c99e;
}
.form-status.error {
  color: #8b1f28;
  background: #ffe2e5;
  border-color: #e68e98;
}
.send-result-modal { z-index: 180; }
.send-result-panel {
  width: min(520px, 100%);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
  overflow: visible;
}
.send-result-icon {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
}
.send-result-panel.success { border: 2px solid #42a977; }
.send-result-panel.success .send-result-icon { background: #22945d; }
.send-result-panel.error { border: 2px solid #d65762; }
.send-result-panel.error .send-result-icon { background: #c93443; }
.send-result-panel h2 {
  margin: 0;
  font-size: clamp(30px, 6vw, 46px);
  line-height: 1.02;
  letter-spacing: -.04em;
}
.send-result-panel p {
  margin: 16px 0 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}
@media (max-width: 700px) {
  .send-result-modal { align-items: center; padding: 18px; }
  .send-result-modal .modal-panel { border-radius: 24px; padding-bottom: clamp(28px, 6vw, 48px); }
}
