:root {
    --bg: #fbf7f2;
    --ink: #2b211b;
    --accent: #a4562c;
    --muted: #8a7c72;
    --line: #e3d8cc;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 16px/1.55 -apple-system, "Segoe UI", Roboto, sans-serif;
}

.page { max-width: 1000px; margin: 0 auto; padding: 24px 16px 64px; }

.site-header, .site-footer {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
    max-width: 1000px; margin: 0 auto; padding: 16px;
}
.site-header__logo { font-weight: 700; font-size: 20px; text-decoration: none; color: var(--ink); }
.site-header__nav a { margin-left: 16px; color: var(--ink); }

.button {
    display: inline-block; padding: 10px 18px; border: 1px solid var(--accent); border-radius: 8px;
    color: var(--accent); background: transparent; text-decoration: none; cursor: pointer; font: inherit;
}
.button--primary { background: var(--accent); color: #fff; }
.button--loading { position: relative; padding-right: 40px; cursor: wait; opacity: 0.85; }
.button--loading::after {
    content: ""; position: absolute; right: 14px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
    border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
    animation: button-spin 0.7s linear infinite;
}
@keyframes button-spin { to { transform: rotate(360deg); } }

.halls__grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hall-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.hall-card__photo img { width: 100%; border-radius: 8px; display: block; }
.hall-card__placeholder {
    display: grid; place-items: center; height: 180px; border-radius: 8px;
    background: repeating-linear-gradient(45deg, #f0e7dc, #f0e7dc 12px, #e8ddd0 12px, #e8ddd0 24px);
    color: var(--muted);
}
.hall-card__price { font-weight: 600; }

.services__list { list-style: none; padding: 0; display: grid; gap: 16px; }
.services__price { color: var(--accent); font-weight: 600; }

.booking { display: grid; gap: 24px; }
.booking__steps { list-style: none; padding: 0; display: grid; gap: 24px; }
.booking__step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.booking__honeypot { position: absolute; left: -9999px; }
.field { display: grid; gap: 6px; margin: 12px 0; }
.field--checkbox { grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; }
.field input, .field textarea, .field select {
    padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff;
}

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
.time-slot {
    padding: 10px 0; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; font: inherit;
}
.time-slot--busy { background: #f1ece6; color: var(--muted); cursor: not-allowed; text-decoration: line-through; }
.time-slot--selected { background: var(--accent); color: #fff; border-color: var(--accent); }

.booking__summary { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.booking__total { font-size: 18px; }
.booking__errors { background: #fdecec; border: 1px solid #e0a3a3; border-radius: 8px; padding: 12px; }

.status-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.status-card__status { font-weight: 700; }
.status-card__status--confirmed { color: #2f7a3f; }
.status-card__status--cancelled, .status-card__status--expired { color: #a53131; }
.status-card__details { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.status-card__details dt { color: var(--muted); }
.status-card__details dd { margin: 0; }

@media (max-width: 640px) {
    .status-card__details { grid-template-columns: 1fr; }
}
