:root {
  --bg: #f6f3ee;
  --bg-alt: #efe8de;
  --surface: #fffcf8;
  --ink: #2c2a26;
  --muted: #6b655c;
  --line: #e4ddd3;
  --accent: #5e7468;
  --accent-dark: #4a5d53;
  --danger: #8f3d3d;
  --ok: #3d6b52;
  --shadow: 0 12px 40px rgba(44, 42, 38, 0.08);
  --radius: 16px;
  --font: "Source Sans 3", system-ui, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
h1, h2, .logo { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin: 0 0 1rem; }
h2 { font-size: 1.4rem; margin: 0 0 0.75rem; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(720px, calc(100% - 2rem)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; color: var(--accent); margin: 0 0 .5rem; }
.center { text-align: center; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(246, 243, 238, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { text-decoration: none; color: var(--ink); font-size: 1.25rem; }
.site-nav { display: none; flex-direction: column; gap: .75rem; position: absolute; right: 1rem; top: 72px; background: var(--surface); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.site-nav.is-open, .site-nav:focus-within { display: flex; }
.site-nav a { text-decoration: none; color: var(--ink); }
.nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 999px; padding: .8rem 1.3rem; font: inherit; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-sm { padding: .45rem .9rem; font-size: .95rem; }
.btn-danger { background: var(--danger); color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.hero, .page-hero { padding: 3rem 0 2rem; }
.hero-grid, .split { display: grid; gap: 2rem; align-items: center; }
.hero-media, .portrait { border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); background: var(--bg-alt); min-height: 240px; }
.hero-media img, .portrait img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.section { padding: 3rem 0; }
.section-alt { background: var(--bg-alt); }
.card { background: var(--surface); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.cards-3, .cards-2, .price-cards { display: grid; gap: 1.25rem; }
.price-list { list-style: none; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.price { font-family: var(--serif); font-size: 2rem; margin: .5rem 0; }
.prose p, .prose ul { margin: 0 0 1rem; }
.text-link { display: inline-block; margin-top: 1rem; }

.site-footer { background: #2f322e; color: #efe8de; padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer a { color: #efe8de; }
.footer-grid { display: grid; gap: 2rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2rem; padding-top: 1rem; font-size: .9rem; }

.field { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .35rem; }
label { font-weight: 500; }
input, select, textarea { font: inherit; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.grid-2 { display: grid; gap: 1rem; }
.stack { display: grid; gap: 1rem; }
.actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.form-error { color: var(--danger); }

.steps { display: flex; gap: .5rem; padding: 0; list-style: none; overflow-x: auto; margin-bottom: 1.5rem; }
.steps li { font-size: .85rem; color: var(--muted); padding: .3rem .6rem; border-radius: 999px; white-space: nowrap; }
.steps li.is-active { background: var(--accent); color: #fff; }
.calendar { background: var(--surface); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow); }
.calendar-head { display: flex; justify-content: space-between; align-items: center; }
.calendar-head button { border: 0; background: var(--bg-alt); width: 2.2rem; height: 2.2rem; border-radius: 50%; cursor: pointer; }
.calendar-weekdays, .calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; text-align: center; }
.calendar-weekdays { font-size: .75rem; color: var(--muted); margin: 1rem 0 .4rem; }
.calendar-grid button { border: 0; background: transparent; padding: .7rem 0; border-radius: 10px; cursor: pointer; font: inherit; }
.calendar-grid button[disabled] { opacity: .35; cursor: not-allowed; }
.calendar-grid button.is-available { background: #e7eee9; }
.calendar-grid button.is-selected { background: var(--accent); color: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .5rem; margin: 1rem 0; }
.slots button { border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: .7rem; cursor: pointer; }
.slots button.is-selected { background: var(--accent); color: #fff; border-color: var(--accent); }
.summary p { margin: .3rem 0; }
.alert { padding: .8rem 1rem; border-radius: 12px; margin: 1rem 0; }
.alert-error { background: #f8eaea; color: var(--danger); }
.alert-success { background: #e7f1ea; color: var(--ok); }
.cookie-banner { position: fixed; bottom: 1rem; left: 1rem; right: 1rem; background: var(--surface); padding: 1rem; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; z-index: 30; }
.auth-body { min-height: 100vh; display: grid; place-items: center; }
.auth-card { width: min(420px, calc(100% - 2rem)); background: var(--surface); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); }
.install-card { width: min(640px, calc(100% - 2rem)); background: var(--surface); padding: 2rem; border-radius: 20px; box-shadow: var(--shadow); margin: 2rem 0; }
.install-steps { margin: 0 0 1.5rem; }
.req-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.req-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.req-list li.ok strong { color: var(--ok); }
.req-list li.fail strong { color: var(--danger); }
.auth-title { margin-top: 0; }

@media (min-width: 800px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-direction: row; align-items: center; position: static; background: none; box-shadow: none; padding: 0; }
  .hero-grid, .split, .cards-3, .footer-grid, .price-cards, .cards-2, .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .cards-3, .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
