:root {
  --ink: #18322b;
  --muted: #697a74;
  --green: #176b52;
  --green-soft: #e5f2ed;
  --cream: #f6f3ec;
  --paper: #fff;
  --line: #dfe5e1;
  --red: #b94c4c;
  --shadow: 0 16px 38px rgba(28, 62, 52, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #f7f8f5; font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
.site-header { position: sticky; top: 0; z-index: 10; height: 76px; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(18px, 4vw, 56px); }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 13px; background: var(--green); color: white; display: grid; place-items: center; font: 700 23px Georgia, serif; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); }
nav { display: flex; align-items: center; gap: 16px; }
nav a { color: var(--ink); text-decoration: none; font-weight: 700; }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 70px; }
.hero { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: end; margin-bottom: 32px; }
.eyebrow { color: var(--green); font-weight: 900; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; margin: 0 0 10px; }
h1 { font: 700 clamp(36px, 6vw, 62px)/.98 Georgia, serif; letter-spacing: -.8px; margin: 0 0 18px; max-width: 820px; }
h2 { font: 700 24px/1.1 Georgia, serif; margin: 0 0 6px; }
.lead { color: var(--muted); font-size: 18px; max-width: 760px; margin: 0; }
.hero-card, .side-panel, .booking-card, .admin { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.hero-card { padding: 22px; }
.hero-card strong, .hero-card span { display: block; }
.hero-card span { color: var(--muted); margin-top: 8px; }
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.booking-card { padding: clamp(20px, 3vw, 34px); }
.section-title { display: flex; gap: 13px; align-items: flex-start; margin: 26px 0 16px; }
.section-title:first-child { margin-top: 0; }
.section-title > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: white; font-weight: 900; flex: 0 0 auto; }
.section-title p { margin: 0; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; }
label > span, .consent span { font-size: 12px; font-weight: 800; color: #4d6059; }
input, select, textarea { width: 100%; border: 1px solid #ccd6d1; border-radius: 10px; padding: 11px 12px; color: var(--ink); background: white; outline: none; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23,107,82,.12); }
.slot-select-wrap select { min-height: 48px; font-weight: 700; background: linear-gradient(180deg, #fff, #f8fbf9); }
.slot-select-wrap small { color: var(--muted); font-size: 12px; }
.span-2 { grid-column: span 2; }
.hidden { display: none !important; }
.consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; background: var(--cream); padding: 14px; border-radius: 12px; margin-top: 22px; }
.consent input { width: auto; margin-top: 2px; }
.consent a { color: var(--green); }
.form-actions, .button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.primary, .secondary, .ghost, .danger { border-radius: 10px; padding: 11px 16px; font-weight: 800; border: 1px solid transparent; }
.primary { color: white; background: var(--green); }
.secondary, .ghost { background: white; color: var(--ink); border-color: #cbd6d1; }
.danger { background: #fbe7e5; color: #9a3c3c; border-color: #efc5c1; }
.side-panel { padding: 24px; position: sticky; top: 96px; }
.side-panel ul { margin: 12px 0 22px; padding-left: 19px; color: #465a53; }
.notice { background: var(--green-soft); border-radius: 12px; padding: 14px; }
.notice p { margin: 6px 0 0; color: var(--muted); }
.admin { margin-top: 36px; padding: 24px; }
.admin-header { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 18px; }
.admin-header p { margin: 0; color: var(--muted); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--cream); border-radius: 12px; padding: 14px; }
.stat strong { display: block; font: 700 28px Georgia, serif; }
.stat span { color: var(--muted); font-size: 12px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 960px; border-collapse: collapse; background: white; }
th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #f8faf8; }
th, td { padding: 13px 14px; border-bottom: 1px solid #edf0ee; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
dialog { width: min(520px, calc(100% - 28px)); border: 0; border-radius: 18px; padding: 0; box-shadow: 0 30px 90px rgba(15,38,31,.3); }
dialog::backdrop { background: rgba(23,44,37,.42); }
dialog form { padding: 26px; }
#toast { position: fixed; right: 22px; bottom: 22px; background: var(--ink); color: white; padding: 12px 16px; border-radius: 10px; opacity: 0; transform: translateY(12px); transition: .2s; pointer-events: none; z-index: 100; }
#toast.show { opacity: 1; transform: translateY(0); }
.simple-page { width: min(760px, calc(100% - 32px)); min-height: 100vh; padding: 72px 0; }
.simple-page h1 { font-size: clamp(36px, 6vw, 56px); }
.simple-page h2 { margin-top: 28px; }
.inline-button { display: inline-block; text-decoration: none; }
.warning { background: #fff1d9; margin: 28px 0; }
.login-card { width: min(520px, 100%); margin: 8vh auto; padding: clamp(24px, 5vw, 42px); background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.login-card h1 { font-size: clamp(38px, 6vw, 54px); }
.login-card form { display: grid; gap: 16px; margin-top: 26px; }
.form-message { min-height: 1.5em; color: var(--red); font-weight: 700; }
.admin-stats { grid-template-columns: repeat(3, 1fr); }
.admin small { color: var(--muted); }
.admin td a { color: var(--green); }
.mail-card { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 0 0 18px; }
.mail-card h3 { margin: 0 0 4px; font: 700 20px/1.1 Georgia, serif; }
.mail-card p { margin: 0; color: var(--muted); }
.mail-ok { color: var(--green) !important; font-weight: 700; }
.mail-warning { color: var(--red) !important; font-weight: 700; }

@media (max-width: 900px) {
  .hero, .layout { grid-template-columns: 1fr; }
  .side-panel { position: static; }
  .slot-grid, .admin-stats { grid-template-columns: 1fr 1fr; }
  .site-header { height: auto; padding-block: 12px; align-items: flex-start; }
  nav { flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 620px) {
  .site-header { display: block; }
  nav { margin-top: 12px; justify-content: flex-start; }
  .form-grid, .slot-grid, .admin-stats { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
}
