:root {
  color-scheme: light;
  --ink: #123c37;
  --ink-soft: #315e57;
  --mint: #d9efe7;
  --mint-strong: #b8e3d4;
  --paper: #f7f8f4;
  --white: #ffffff;
  --line: #dce7e1;
  --muted: #71817b;
  --orange: #ed7f4f;
  --orange-light: #fff0e9;
  --shadow: 0 22px 60px rgb(18 60 55 / 10%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--paper); color: var(--ink); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar { width: min(1180px, calc(100% - 36px)); margin: 0 auto; padding: 24px 0; display: flex; align-items: center; justify-content: space-between; }
.brand { color: var(--ink); display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-size: 1.05rem; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; color: var(--white); background: var(--orange); font-size: 1.3rem; line-height: 1; }
.brand-year { color: var(--orange); }
.topbar-note { color: var(--muted); font-size: .74rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

.shell { width: min(960px, calc(100% - 36px)); margin: 0 auto; padding: 48px 0 70px; }
.hero { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 26px 4px 54px; }
.kicker, .section-number { margin: 0 0 12px; color: var(--orange); font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 620px; margin-bottom: 17px; font-size: clamp(2.75rem, 7vw, 5.8rem); line-height: .94; letter-spacing: -.08em; }
.hero-text { max-width: 510px; margin-bottom: 0; color: var(--ink-soft); font-size: 1.08rem; line-height: 1.65; }
.hero-sticker { width: 126px; min-width: 126px; height: 126px; display: flex; flex-direction: column; justify-content: center; align-items: center; transform: rotate(8deg); border-radius: 50%; color: var(--ink); background: var(--mint-strong); }
.hero-sticker strong { font-size: 2rem; letter-spacing: -.08em; line-height: 1; }
.sticker-line { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sticker-dot { margin-top: 7px; color: var(--orange); font-size: .62rem; }

.steps { display: flex; align-items: center; gap: 0; margin: 0 0 20px; padding: 0 4px; }
.step { display: flex; align-items: center; gap: 9px; color: #9aa9a3; font-size: .84rem; font-weight: 750; }
.step:not(:last-child)::after { width: 48px; height: 1px; margin: 0 14px; background: var(--line); content: ""; }
.step span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #cbd8d2; border-radius: 50%; font-size: .74rem; }
.step.is-active, .step.is-done { color: var(--ink); }
.step.is-active span { border-color: var(--orange); color: var(--white); background: var(--orange); }
.step.is-done span { border-color: var(--mint); color: var(--ink); background: var(--mint); }

.panel { margin-bottom: 18px; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 25px; background: var(--white); box-shadow: var(--shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: start; gap: 18px; margin-bottom: 27px; }
h2 { margin-bottom: 0; font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.05em; line-height: 1.1; }
.heading-icon { width: 40px; height: 40px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 12px; color: var(--ink); background: var(--mint); font-size: 1.25rem; font-weight: 700; }
label { display: block; margin-bottom: 9px; font-size: .84rem; font-weight: 800; }
.email-row { display: flex; gap: 10px; }
input { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid #cbdad3; border-radius: 13px; color: var(--ink); background: #fbfcfa; outline: none; }
input:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgb(237 127 79 / 16%); }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 19px; border: 0; border-radius: 13px; font-weight: 820; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { flex: 0 0 auto; color: var(--white); background: var(--orange); }
.button-primary:hover { background: #d86638; }
.button-dark { color: var(--white); background: var(--ink); }
.button-dark:hover { background: #215b53; }
.button-outline { color: var(--ink); background: transparent; border: 1px solid #bfcfc7; }
.button-outline:hover { border-color: var(--orange); background: var(--orange-light); }
.field-note { margin: 11px 0 0; color: var(--muted); font-size: .82rem; line-height: 1.5; }
.form-error { margin: 14px 0 0; color: #b33e2c; font-size: .85rem; font-weight: 700; line-height: 1.5; }

.admin-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: var(--ink); color: var(--white); }
.admin-panel .section-number { color: var(--mint-strong); }
.admin-panel h2 { margin-bottom: 9px; }
.admin-panel p:not(.section-number) { margin-bottom: 0; color: #c6ddd5; font-size: .9rem; }
.admin-panel .button { white-space: nowrap; background: var(--orange); }

.location-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.location-card { min-height: 170px; padding: 20px; border: 1px solid var(--line); border-radius: 17px; color: var(--ink); background: #fbfcfa; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.location-card:hover, .location-card:focus-visible { border-color: var(--orange); background: #fffaf6; transform: translateY(-2px); outline: none; }
.location-card .city { display: block; margin-bottom: 5px; font-size: 1.08rem; font-weight: 850; letter-spacing: -.04em; }
.location-card .address { display: block; margin-bottom: 18px; color: var(--muted); font-size: .83rem; }
.location-dates { display: flex; flex-wrap: wrap; gap: 6px; }
.location-date { padding: 5px 7px; border-radius: 7px; color: var(--ink-soft); background: var(--mint); font-size: .73rem; font-weight: 750; }

.slots-heading { margin-bottom: 18px; }
.text-button { padding: 5px 0; border: 0; color: var(--orange); background: transparent; font-size: .8rem; font-weight: 800; }
.selected-location { margin-bottom: 18px; color: var(--ink-soft); font-size: .9rem; font-weight: 750; }
.days { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; padding-bottom: 2px; }
.day-button { min-width: 126px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--white); text-align: left; }
.day-button span, .day-button strong { display: block; }
.day-button span { margin-bottom: 4px; color: var(--muted); font-size: .72rem; }
.day-button strong { font-size: .9rem; }
.day-button.is-active { border-color: var(--ink); color: var(--white); background: var(--ink); }
.day-button.is-active span { color: var(--mint-strong); }
.legend { display: flex; gap: 16px; margin: 0 0 14px; color: var(--muted); font-size: .75rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; display: inline-block; border-radius: 50%; background: var(--mint-strong); }
.legend-dot.occupied { background: #e4e8e5; }
.time-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
.time-slot { min-height: 43px; padding: 0 5px; border: 1px solid var(--mint-strong); border-radius: 9px; color: var(--ink); background: #f5fbf8; font-size: .79rem; font-weight: 780; }
.time-slot:hover, .time-slot:focus-visible { border-color: var(--orange); background: var(--orange-light); outline: none; }
.time-slot.occupied { border-color: #e8ece9; color: #a4b1aa; background: #f5f6f5; text-decoration: line-through; cursor: not-allowed; }
.time-slot.is-mine { border-color: var(--orange); color: #ae4d2c; background: var(--orange-light); }

.success-panel { position: relative; overflow: hidden; border-color: var(--mint-strong); background: #f0faf6; }
.success-panel::after { position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: var(--mint-strong); content: ""; opacity: .45; }
.success-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; color: var(--white); background: var(--ink); font-size: 1.5rem; font-weight: 800; }
.success-panel h2 { position: relative; z-index: 1; margin-bottom: 10px; }
.success-lead { position: relative; z-index: 1; margin-bottom: 22px; color: var(--ink-soft); }
.reservation-summary { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 620px; margin-bottom: 23px; }
.summary-item { padding: 13px; border-radius: 12px; background: rgb(255 255 255 / 75%); }
.summary-item span, .summary-item strong { display: block; }
.summary-item span { margin-bottom: 4px; color: var(--muted); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.summary-item strong { font-size: .9rem; }
.success-panel .button { position: relative; z-index: 1; }
.footer-note { margin: 26px 4px 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.toast { position: fixed; right: 18px; bottom: 18px; max-width: min(360px, calc(100% - 36px)); padding: 14px 17px; border-radius: 13px; color: var(--white); background: var(--ink); box-shadow: var(--shadow); font-size: .84rem; font-weight: 700; }

@media (max-width: 700px) {
  .topbar { padding-top: 17px; }
  .topbar-note { display: none; }
  .shell { padding-top: 27px; }
  .hero { align-items: start; padding-bottom: 36px; }
  .hero-sticker { width: 84px; min-width: 84px; height: 84px; }
  .hero-sticker strong { font-size: 1.35rem; }
  .sticker-line { font-size: .56rem; }
  .sticker-dot { margin-top: 3px; }
  .location-grid { grid-template-columns: 1fr; }
  .location-card { min-height: 0; }
  .time-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reservation-summary { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .topbar, .shell { width: min(100% - 24px, 960px); }
  .hero { gap: 8px; padding-right: 3px; }
  h1 { font-size: clamp(2.55rem, 15vw, 4rem); }
  .hero-text { font-size: .96rem; }
  .hero-sticker { margin-top: 4px; }
  .steps { padding: 0; }
  .step { font-size: .73rem; }
  .step:not(:last-child)::after { width: 20px; margin: 0 7px; }
  .panel { padding: 23px 18px; border-radius: 19px; }
  .email-row { display: block; }
  .email-row .button { width: 100%; margin-top: 9px; }
  .admin-panel { align-items: start; flex-direction: column; }
  .admin-panel .button { width: 100%; }
  .slots-heading { gap: 5px; }
  .text-button { white-space: nowrap; }
  .time-grid { gap: 5px; }
  .time-slot { min-height: 42px; font-size: .74rem; }
}
