:root {
  --primary: #1e4d40;
  --secondary: #b08968;
  --accent: #e06a4f;
  --background: #f4efe8;
  --surface: #fffdf9;
  --text: #18211e;
  --muted: #6d675f;
  --success: #2f7d4a;
  --warning: #b5791b;
  --danger: #a33b32;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(24, 33, 30, .08);
  --font: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", Tahoma, "Geeza Pro", "Noto Naskh Arabic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; accent-color: #c4b2a2; overflow-x: hidden; }
:focus-visible { outline: 2px solid #c4b2a2; outline-offset: 2px; }
body.public, body.auth, body.install {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
}
body.font-serif h1, body.font-serif h2, body.font-serif .display { font-family: var(--font); }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; position: relative; }
.nav-btn { display: none; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-weight: 700; }
.brand img { width: 42px; height: 42px; object-fit: cover; border-radius: 50%; }
.nav { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: .45rem .7rem; border-radius: 999px; }
.nav a:hover { background: color-mix(in srgb, var(--primary) 8%, white); }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--primary); color: white; text-decoration: none; border: 0;
  border-radius: 999px; padding: .8rem 1.1rem; font: inherit; cursor: pointer;
}
.btn.secondary { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 20%, transparent); }
.btn.accent { background: var(--accent); }
.btn.small { padding: .45rem .75rem; font-size: .92rem; }
.hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: 2rem 0 3rem; }
.display { font-size: clamp(2.6rem, 6vw, 5.4rem); line-height: .95; margin: 0 0 1rem; letter-spacing: -.03em; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 38rem; }
.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.4rem; }
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.2rem; }
.stamp-card { background: var(--primary); color: white; border-radius: 28px; padding: 1.4rem; min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.dots { display: flex; gap: .45rem; }
.dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid white; }
.dot.on { background: var(--secondary); border-color: var(--secondary); }
.section { padding: 3rem 0; }
.section h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 .4rem; }
.kicker { letter-spacing: .14em; text-transform: uppercase; font-size: .75rem; color: var(--secondary); }
.service-list { display: grid; gap: .8rem; }
.service-row, .offer, .person, .quote, .hour {
  display: grid; gap: .4rem; padding: 1rem 0; border-bottom: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  text-decoration: none;
}
.service-row { grid-template-columns: 1fr auto; align-items: center; }
.muted { color: var(--muted); }
.site-footer { padding: 2rem 0 3rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .8rem; }
input, select, textarea {
  font: inherit; padding: .75rem .8rem; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
  background: white; color: var(--text); width: 100%;
}
textarea { min-height: 120px; }
.errors { background: #fde8e4; color: var(--danger); padding: .8rem 1rem; border-radius: 12px; }
.ok { background: #e5f4ea; color: var(--success); padding: .8rem 1rem; border-radius: 12px; }
.auth-shell, .install-shell { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.auth-card, .install-card { width: min(460px, 100%); }
.steps { display: flex; gap: .4rem; margin-bottom: 1rem; }
.steps span { width: 100%; height: 4px; background: #ddd; border-radius: 99px; }
.steps span.on { background: var(--primary); }
.check { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px solid #eee; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.book-flow { max-width: 760px; margin: 1rem auto 3rem; padding: 0 1rem; }
.book-cat { margin: .2rem 0 .6rem; font-family: "Cormorant Garamond", Palatino, Georgia, serif; font-size: 1.8rem; letter-spacing: 0; text-transform: none; color: inherit; }
.book-steps { display: flex; gap: .35rem; list-style: none; padding: 0; margin: .8rem 0 .35rem; }
.book-steps li { flex: 1; height: 3px; background: color-mix(in srgb, var(--text) 12%, transparent); }
.book-steps li.now, .book-steps li.done { background: #b7a394; }
.book-step-name { margin: 0 0 1rem; letter-spacing: .16em; text-transform: uppercase; font-size: .72rem; color: #b7a394; }
.cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.cat-card {
  font-family: "Cormorant Garamond", Palatino, Georgia, serif;
  font-size: 1.35rem; line-height: 1.15; text-align: start;
  min-height: 92px; padding: 1rem .85rem;
  background: var(--surface); color: inherit; cursor: pointer;
  border: 1px solid rgba(20,18,16,.08);
  display: flex; flex-direction: column; justify-content: space-between; gap: .45rem;
}
.cat-card small { font-family: var(--sans, "Avenir Next", sans-serif); font-size: .72rem; letter-spacing: .08em; color: #8d7768; }
.cat-card:hover, .cat-card:active { border-color: #b7a394; }
.text-btn { background: none; border: 0; color: #8d7768; font: inherit; font-size: .85rem; padding: 0; cursor: pointer; }
.book-all { margin-bottom: .7rem; }
.book-choices { display: grid; gap: 0; }
.choice, .time, .day {
  font: inherit; color: inherit; background: transparent; border: 0;
  border-bottom: 1px solid rgba(20,18,16,.1); border-radius: 0; cursor: pointer; text-align: start;
}
.choice { width: 100%; display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; padding: .85rem 0; }
.choice b { font-weight: 500; color: #8d7768; white-space: nowrap; }
.time, .day { background: var(--surface); border: 1px solid rgba(20,18,16,.08); border-radius: 16px; }
.choice:hover, .time:hover, .day:hover { border-color: var(--secondary); }
.day-row { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
.day-row form { margin: 0; }
.day { min-width: 72px; padding: .7rem .4rem; text-align: center; display: grid; }
.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .55rem; }
.time { padding: .8rem; display: grid; }
.time small { color: var(--muted); }
.book-picked, .book-summary { margin-bottom: 1rem; }
.book-back { margin-top: 1rem; }
@media (max-width: 980px) {
  .hero, .grid-3, .grid-2, .gallery { grid-template-columns: 1fr; }
  .site-header { flex-wrap: nowrap; }
  .nav-btn {
    display: inline-flex; margin-inline-start: auto; cursor: pointer;
    background: transparent; color: inherit; border: 1px solid currentColor;
    border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase;
  }
  .nav {
    display: flex; position: absolute; z-index: 30; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; width: auto; flex-wrap: nowrap;
    background: #141210; color: #f6f1eb; padding: 0 1.1rem;
    max-height: 0; opacity: 0; overflow: hidden; visibility: hidden; pointer-events: none;
    -webkit-transform: translateY(-8px); transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,.18);
    -webkit-transition: max-height .45s ease, opacity .35s ease, -webkit-transform .45s ease, transform .45s ease, visibility 0s linear .45s, padding .45s ease;
    transition: max-height .45s ease, opacity .35s ease, -webkit-transform .45s ease, transform .45s ease, visibility 0s linear .45s, padding .45s ease;
  }
  .nav.open {
    max-height: 34rem; opacity: 1; visibility: visible; pointer-events: auto;
    padding: .35rem 1.1rem 1rem;
    -webkit-transform: none; transform: none;
    -webkit-transition: max-height .5s ease, opacity .35s ease, -webkit-transform .45s ease, transform .45s ease, visibility 0s linear 0s, padding .45s ease;
    transition: max-height .5s ease, opacity .35s ease, -webkit-transform .45s ease, transform .45s ease, visibility 0s linear 0s, padding .45s ease;
  }
  .nav a {
    padding: .85rem 0; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,.08);
    opacity: 0; -webkit-transform: translateY(-6px); transform: translateY(-6px);
    -webkit-transition: opacity .35s ease, -webkit-transform .35s ease, transform .35s ease, color .2s ease;
    transition: opacity .35s ease, -webkit-transform .35s ease, transform .35s ease, color .2s ease;
  }
  .nav.open a { opacity: 1; -webkit-transform: none; transform: none; }
  .nav.open a:nth-child(1) { transition-delay: .05s; }
  .nav.open a:nth-child(2) { transition-delay: .08s; }
  .nav.open a:nth-child(3) { transition-delay: .11s; }
  .nav.open a:nth-child(4) { transition-delay: .14s; }
  .nav.open a:nth-child(5) { transition-delay: .17s; }
  .nav.open a:nth-child(6) { transition-delay: .2s; }
  .nav.open a:nth-child(7) { transition-delay: .23s; }
  .nav.open a:nth-child(8) { transition-delay: .26s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav, .nav a { -webkit-transition: none; transition: none; -webkit-transform: none; transform: none; }
}
.name-curtain {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; align-content: center; gap: .35rem;
  background: #141210; color: #f6f1eb; text-align: center; padding: 1.5rem;
  animation: curtainOut .7s ease 2.6s forwards;
}
.name-curtain img { height: 72px; width: auto; }
.name-curtain p { margin: .4rem 0 0; letter-spacing: .22em; text-transform: uppercase; font-size: .75rem; color: #c4b2a2; }
.name-curtain h2, .welcome-name { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2.4rem, 8vw, 4.5rem); line-height: 1.15; }
.name-curtain b, .welcome-name b { display: inline-block; font-weight: 500; animation: nameRise .7s ease both; }
.welcome-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; margin-top: 1rem; }
.welcome-photos img { width: 100%; height: 180px; object-fit: cover; display: block; }
.welcome-block { padding-top: .5rem; }
.welcome-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.welcome-steps article { background: #fff; padding: 1.1rem; }
.welcome-steps strong { display: block; font-family: Georgia, serif; font-size: 1.8rem; color: #b7a394; }
@keyframes nameRise { from { opacity: 0; transform: translateY(.7em); } to { opacity: 1; transform: none; } }
@keyframes curtainOut { to { opacity: 0; visibility: hidden; } }
@media (max-width: 800px) {
  .welcome-photos, .welcome-steps { grid-template-columns: 1fr; }
  .welcome-photos img { height: 220px; }
}
@media (prefers-reduced-motion: reduce) {
  .name-curtain { display: none; }
  .name-curtain b, .welcome-name b { animation: none; }
}
