:root {
  --bg: #F7F4EE; --surface: #E8E1D7; --fg: #242622; --muted: #62645D;
  --accent: #4A5546; --accent-fg: #F7F4EE; --walnut: #84634A; --line: #D7D0C5;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); font-size: 16px; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); line-height: 1.65; background: var(--bg); color: var(--fg); }
h1, h2, h3 { margin: 0; font-family: var(--font-heading); font-weight: 600; line-height: 1.15; }
h1 { font-size: 2.5rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 14px; }
h3 { font-family: var(--font-body); font-size: 1.0625rem; font-weight: 600; margin-bottom: 6px; }
p { margin: 0 0 14px; }
a { color: var(--accent); text-underline-offset: 3px; }
ul { margin: 0 0 14px; padding-left: 20px; }
li { margin-bottom: 6px; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding: 0 20px; }
.section { padding-block: 56px; }
.surface { background: var(--surface); }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--walnut); margin-bottom: 12px; }
.intro { color: var(--muted); max-width: 62ch; margin-bottom: 28px; }
.crumb { font-size: 0.875rem; color: var(--muted); margin-bottom: 18px; }
.crumb a { color: var(--muted); }
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; padding-block: 12px; }
.brand { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600; text-decoration: none; color: var(--fg); }
.nav { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.nav a { font-size: 0.875rem; color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; font-size: 0.9375rem; font-weight: 500; text-decoration: none; padding: 12px 22px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-fg); }
.btn--outline { background: transparent; color: var(--fg); border-color: var(--fg); }
.btn--sm { font-size: 0.875rem; padding: 9px 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card { background: var(--bg); border: 1px solid var(--line); padding: 22px; }
.card--surface { background: var(--surface); }
.num-big { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 600; line-height: 1; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.price-table-wrap { width: 100%; overflow-x: auto; border-top: 1px solid var(--line); margin-top: 8px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 0.9375rem; }
th { font-size: 0.875rem; font-weight: 600; line-height: 1.35; }
th .tier-sub { display: block; font-size: 0.75rem; font-weight: 400; color: var(--muted); margin-top: 2px; }
th.num, td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
th.col-select { background: var(--accent); color: var(--accent-fg); }
th.col-select .tier-sub { color: var(--accent-fg); opacity: 0.85; }
td.num { font-weight: 500; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font-size: 1.0625rem; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--walnut); font-size: 1.25rem; }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 20px; color: var(--muted); max-width: 68ch; }
.site-footer { border-top: 1px solid var(--line); padding-block: 28px; font-size: 0.875rem; color: var(--muted); }
.site-footer a { color: var(--muted); }
.note { font-size: 0.9375rem; color: var(--muted); }
@media (min-width: 768px) {
  .container { padding: 0 32px; }
  .section { padding-block: 84px; }
  h1 { font-size: 3.25rem; }
  h2 { font-size: 2.5rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
.nav details { position: relative; }
.nav summary { list-style: none; cursor: pointer; font-size: 0.875rem; color: var(--muted); }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: " +"; color: var(--walnut); }
.nav details[open] summary { color: var(--fg); }
.nav .nav-sub { position: absolute; top: 100%; left: -12px; margin-top: 10px; background: var(--bg); border: 1px solid var(--line); padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 190px; z-index: 10; }
.nav .nav-sub a { white-space: nowrap; }

/* Polish: cards, buttons and motion */
.btn { border-radius: 6px; transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.card { border-radius: 8px; transition: box-shadow .2s ease, transform .2s ease; }
a.card { display: block; color: var(--fg); }
a.card:hover { box-shadow: 0 8px 24px rgba(36,38,34,.08); transform: translateY(-2px); }
.card h3 { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247,244,238,.96); backdrop-filter: blur(6px); }
.mobile-cta { display: none; }
@media (max-width: 767px) {
  h1 { font-size: 2.1rem; }
  h2 { font-size: 1.75rem; }
  .section { padding-block: 40px; }
  .container { padding: 0 16px; }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; padding-block: 12px; min-height: 0; }
  .brand { font-size: 1.2rem; }
  .header-inner > .btn { display: none; }
  .nav { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav > a, .nav summary { display: block; padding: 11px 12px; background: var(--surface); border-radius: 6px; text-align: center; color: var(--fg); font-size: 0.9375rem; font-weight: 500; }
  .nav details { grid-column: 1 / -1; }
  .nav details summary { text-align: center; }
  .nav .nav-sub { position: static; border: 0; background: none; padding: 8px 0 0; min-width: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav .nav-sub a { display: block; padding: 11px 12px; background: var(--surface); border-radius: 6px; text-align: center; color: var(--fg); }
  .actions { flex-direction: column; }
  .actions .btn { width: 100%; }
  .grid-3 { gap: 12px; }
  .price-table-wrap { border-top: 0; }
  .mobile-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(36,38,34,.06); }
  .mobile-cta .btn { padding: 13px 12px; }
  body { padding-bottom: 80px; }
  .site-footer { padding-bottom: 28px; }
}

/* Navigation: header holds brand and WhatsApp only; tabs sit in a bottom bar on all screen sizes */
body { padding-bottom: 104px; }
.header-inner { min-height: 64px; }
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 560px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px; background: var(--bg); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(36,38,34,.12); z-index: 60; }
.tabbar a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 4px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 0.8125rem; font-weight: 500; text-align: center; line-height: 1.2; }
.tabbar a[aria-current="page"] { background: var(--accent); color: var(--accent-fg); }
.tabbar a:hover { color: var(--fg); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.footer-grid a { display: block; padding: 3px 0; color: var(--muted); text-decoration: none; }
.footer-grid a:hover { color: var(--fg); }
.footer-h { font-family: var(--font-body); font-weight: 600; color: var(--fg); margin-bottom: 6px; font-size: 0.875rem; }
.copy { margin-top: 24px; font-size: 0.8125rem; }
.mobile-cta { display: none !important; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(4, 1fr); }
  .header-inner > .btn { display: inline-flex; }
}
@media (max-width: 767px) {
  .header-inner { display: flex; justify-content: space-between; align-items: center; }
  .header-inner > .btn { display: inline-flex; }
  .tabbar { bottom: calc(8px + env(safe-area-inset-bottom)); width: calc(100% - 16px); }
}
.price-table-wrap table { min-width: 520px; }
.price-table-wrap td, .price-table-wrap th { padding: 12px 10px; }
@media (max-width: 767px) {
  .price-table-wrap td, .price-table-wrap th { padding: 10px 8px; font-size: 0.875rem; }
  .price-table-wrap td:first-child { min-width: 150px; }
}

/* Estimator */
.est { display: grid; gap: 18px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 22px; }
.est-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; font-size: 0.9375rem; border: 0; padding: 0; margin: 0; }
.field > span, .field legend { font-weight: 600; font-size: 0.875rem; padding: 0; margin-bottom: 4px; }
.est input[type="number"], .est select { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--fg); }
.est input:focus, .est select:focus { outline: 2px solid var(--walnut); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 0.9375rem; }
.check input { width: 20px; height: 20px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 0.9375rem; }
.seg input:checked + span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.seg input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.est-out { background: var(--surface); border-radius: 8px; padding: 18px; }
.est-label { font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.est-total { font-family: var(--font-heading); font-size: 2.25rem; font-weight: 600; line-height: 1.1; }
.est .btn { justify-self: start; }
@media (min-width: 768px) {
  .est-grid { grid-template-columns: 1fr 1fr; }
  .est-grid .field.wide { grid-column: 1 / -1; }
}

/* Tier switch: all tiers on desktop, one tier at a time on mobile */
.sr { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.tier-switch > label { display: none; }
@media (max-width: 767px) {
  .tier-switch { display: block; }
  .tier-switch > label { display: inline-block; padding: 11px 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: 0.9375rem; margin: 0 8px 14px 0; cursor: pointer; }
  #ptA:checked ~ label[for="ptA"], #ptB:checked ~ label[for="ptB"], #ptC:checked ~ label[for="ptC"] { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
  #ptA:checked ~ .pt .c2, #ptA:checked ~ .pt .c3 { display: none; }
  #ptB:checked ~ .pt .c1, #ptB:checked ~ .pt .c3 { display: none; }
  #ptC:checked ~ .pt .c1, #ptC:checked ~ .pt .c2 { display: none; }
  .tier-switch .pt table { min-width: 0; }
}

/* Homepage blocks */
.tile-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.tile { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.tile .num-big { font-size: 2rem; }
.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li { counter-increment: step; position: relative; padding: 0 0 18px 44px; margin: 0; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; font-weight: 600; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--walnut); font-size: 1.25rem; }
.qa details[open] summary::after { content: "−"; }
.qa .answer { padding: 0 0 18px; color: var(--muted); }
@media (max-width: 767px) { .tile-grid { grid-template-columns: 1fr 1fr; } }
/* Story homepage */
.chapter { padding-block: 88px; }
.chapter-num { font-family: var(--font-heading); font-size: 1.125rem; color: var(--walnut); letter-spacing: 0.08em; margin-bottom: 10px; }
.big-line { font-family: var(--font-heading); font-size: 2.25rem; line-height: 1.15; max-width: 22ch; margin-bottom: 18px; }
.lede { font-size: 1.125rem; color: var(--muted); max-width: 52ch; }
.rooms { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 28px; }
.room { display: block; padding: 26px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--fg); transition: transform .25s ease, box-shadow .25s ease; }
.room:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(36,38,34,.10); }
.room h3 { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; margin-bottom: 6px; color: var(--fg); }
.room p { color: var(--muted); }
.room .more { display: inline-block; margin-top: 10px; color: var(--walnut); font-size: 0.9375rem; }
.scene-row { display: grid; gap: 28px; }
.quiet { font-size: 1.0625rem; color: var(--muted); }
.pill-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill-line span { border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-size: 0.9375rem; background: var(--bg); }
.journey { list-style: none; padding: 0; margin: 28px 0 0; border-left: 2px solid var(--line); }
.journey li { position: relative; padding: 0 0 26px 26px; margin: 0; }
.journey li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--walnut); }
.journey h3 { font-size: 1.125rem; margin-bottom: 4px; font-family: var(--font-body); }
.journey p { color: var(--muted); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .rooms { grid-template-columns: repeat(2, 1fr); }
  .scene-row { grid-template-columns: 1fr 1fr; align-items: center; }
  .big-line { font-size: 3.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .room { transition: none; }
}

/* Tabs: top of the page on computers, bottom bar on phones */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .site-header { position: sticky; top: 0; }
  .site-header .header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
  .site-header .tabbar { position: static; transform: none; left: auto; bottom: auto; width: auto; max-width: none; display: flex; flex: 1; justify-content: center; gap: 4px; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .site-header .tabbar a { min-height: 0; padding: 9px 14px; font-size: 0.9375rem; color: var(--muted); }
  .site-header .tabbar a:hover { color: var(--fg); background: var(--surface); }
  .site-header .tabbar a[aria-current="page"] { background: var(--surface); color: var(--fg); font-weight: 600; }
}
@media (max-width: 767px) {
  .site-header { position: static; backdrop-filter: none; background: var(--bg); }
}

.fig{margin:28px 0 0}
.fig img{display:block;width:100%;height:auto;border-radius:10px}
.fig figcaption{margin-top:8px;font-size:.8125rem;color:var(--muted)}
.fig-2{display:grid;gap:14px;grid-template-columns:1fr;margin-top:28px}
.fig-2 .fig{margin:0}
.room img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;margin-bottom:14px}
.hero-img{margin:0}
.hero-img img{display:block;width:100%;height:auto;border-radius:12px}
.hero-img figcaption{margin-top:8px;font-size:.8125rem;color:var(--muted)}
@media (min-width:768px){.fig-2{grid-template-columns:repeat(2,1fr)}}

.gal-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:20px}
.gal-f{font:inherit;font-size:.875rem;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:var(--bg);color:var(--fg);cursor:pointer}
.gal-f.is-on{background:var(--accent);border-color:var(--accent);color:#fff}
.gal-grid{columns:2;column-gap:10px}
.gal-item{display:block;width:100%;padding:0;margin:0 0 10px;border:0;background:none;cursor:zoom-in;break-inside:avoid;border-radius:8px;overflow:hidden}
.gal-item img{display:block;width:100%;height:auto;transition:transform .3s ease}
.gal-item:hover img{transform:scale(1.03)}
.lb{border:0;padding:0;background:rgba(20,22,19,.94);max-width:100vw;max-height:100vh;width:100vw;height:100vh;color:#fff}
.lb::backdrop{background:rgba(20,22,19,.94)}
.lb figure{margin:0;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:56px 12px 16px}
.lb img{max-width:100%;max-height:calc(100vh - 120px);object-fit:contain}
.lb figcaption{margin-top:10px;font-size:.875rem;color:#E8E1D7;text-align:center}
.lb-x{position:absolute;top:10px;right:14px;font-size:2rem;background:none;border:0;color:#fff;cursor:pointer;line-height:1}
.lb-n{position:absolute;top:50%;transform:translateY(-50%);font-size:2.5rem;background:rgba(0,0,0,.35);border:0;color:#fff;width:44px;height:64px;cursor:pointer}
.lb-prev{left:0}.lb-next{right:0}
@media(min-width:768px){.gal-grid{columns:3;column-gap:12px}.gal-item{margin-bottom:12px}}
@media(min-width:1100px){.gal-grid{columns:4}}
@media(prefers-reduced-motion:reduce){.gal-item img{transition:none}}

.fig.reveal{opacity:1;transform:none}
