:root {
  --navy: #003279;
  --navy-dark: #00245a;
  --green: #009138;
  --green-light: #4cd383;
  --text: #1a2233;
  --muted: #667085;
  --line: #d9dee7;
  --bg-soft: #f4f6f9;
  --red: #c4262e;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.wrap--narrow { width: min(880px, 100% - 40px); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 28px; border: 0; border-radius: 6px;
  background: var(--navy); color: #fff; font-weight: 600; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background-color .15s;
}
.btn:hover { background: var(--navy-dark); }
.btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.btn--sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #e9edf4; }
.btn:disabled { opacity: .6; cursor: default; }

/* header */
.header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.header__in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo img { height: 60px; width: auto; }

/* hero */
.hero { position: relative; background: #0d1c38; color: #fff; }
.hero picture img { width: 100%; height: 560px; object-fit: cover; object-position: 70% 55%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 22, 58, .85) 0%, rgba(0, 22, 58, .55) 45%, rgba(0, 22, 58, 0) 75%); }
.hero__in { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__pre { margin: 0 0 12px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.hero h1 { margin: 0; max-width: 700px; font-size: clamp(34px, 4.4vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.hero h1 .hl { color: var(--green-light); white-space: nowrap; }
.hero__sub { margin: 18px 0 30px; max-width: 460px; font-size: 18px; color: rgba(255, 255, 255, .85); }

/* info strip */
.info { border-bottom: 1px solid var(--line); }
.info__in { display: grid; grid-template-columns: 1fr 1fr 1.4fr; }
.info__in > div { padding: 24px 24px 24px 0; }
.info__in > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.info span { display: block; font-size: 13px; color: var(--muted); }
.info strong { font-size: 17px; font-weight: 600; color: var(--navy); }

/* booking */
.book { padding: 72px 0 88px; }
.book h2 { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--navy); text-align: center; }
.lead { margin: 8px 0 36px; text-align: center; color: var(--muted); }

.days { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.day { padding: 14px 8px; border: 0; background: #fff; cursor: pointer; font-weight: 600; font-size: 15px; color: var(--text); transition: background-color .15s; }
.day + .day { border-left: 1px solid var(--line); }
.day:hover { background: var(--bg-soft); }
.day[aria-checked="true"] { background: var(--navy); color: #fff; }
.day small { display: block; font-size: 13px; font-weight: 500; opacity: .7; }

#slots { margin-top: 24px; }
#takenErr { margin-top: 16px; font-size: 14px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.slot {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 44px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; cursor: pointer;
  font-size: 14px; font-weight: 500; line-height: 1.25; white-space: nowrap; font-variant-numeric: tabular-nums;
  transition: border-color .15s, background-color .15s;
}
.slot small { font-size: 11px; font-weight: 500; color: var(--muted); }
.slot:hover { border-color: var(--navy); }
.slot[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.slot:disabled { color: #b0b7c3; background: var(--bg-soft); border-color: var(--bg-soft); cursor: default; }
.day:focus-visible, .slot:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; position: relative; }
.slots-label { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.slots-label:first-child { margin-top: 0; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; padding-top: 36px; border-top: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .phone {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 6px; background: #fff;
  font-size: 16px; transition: border-color .15s;
}
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field select {
  -webkit-appearance: none; appearance: none; padding-right: 40px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.6'/%3E%3C/svg%3E") right 14px center / 12px no-repeat;
}
.field input:focus, .field select:focus, .field textarea:focus, .phone:focus-within { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(0, 50, 121, .1); }
.phone { display: flex; padding: 0; overflow: hidden; }
.phone span { display: flex; align-items: center; padding: 0 12px; background: var(--bg-soft); border-right: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.field .phone input { height: 46px; border: 0; border-radius: 0; box-shadow: none; }

.invalid input, .invalid select, .invalid .phone { border-color: var(--red); }
.err { margin: 4px 0 0; font-size: 13px; color: var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 32px; }
.summary { margin: 0; font-size: 15px; color: var(--muted); }
.summary strong { color: var(--text); font-weight: 600; }
.summary small { display: block; font-size: 13px; }

.done { text-align: center; padding: 24px 0; outline: none; }
.done p { color: var(--muted); max-width: 520px; margin: 12px auto 0; }
.link { padding: 0; border: 0; background: none; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sep { margin: 0 8px; }

/* footer */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); }
.footer__in { display: flex; justify-content: space-between; gap: 12px; padding: 24px 0; }
.footer p { margin: 0; font-size: 14px; color: var(--muted); }

/* mobile */
@media (max-width: 700px) {
  html { scroll-padding-top: 68px; }
  .header__in { height: 64px; }
  .logo img { height: 48px; }

  .hero picture img { height: 300px; object-position: 72% 50%; }
  .hero::after { display: none; }
  .hero__in { position: static; padding: 28px 0 36px; }
  .hero h1 { font-size: min(30px, 8.6vw); }
  .hero__sub { font-size: 16px; margin: 12px 0 24px; }
  .hero .btn { width: 100%; }

  .info__in { grid-template-columns: 1fr; }
  .info__in > div, .info__in > div + div { padding: 14px 0; border-left: 0; }
  .info__in > div + div { border-top: 1px solid var(--line); }
  .info strong { font-size: 16px; }

  .book { padding: 48px 0 64px; }
  .book h2 { font-size: 26px; }
  .lead { margin-bottom: 28px; }
  .day { font-size: 14px; padding: 12px 4px; }
  .slots { grid-template-columns: repeat(2, 1fr); }
  .slot { font-size: 13.5px; padding: 0 4px; }
  .fields { grid-template-columns: 1fr; gap: 18px; margin-top: 36px; padding-top: 28px; }
  .submit { flex-direction: column; align-items: stretch; text-align: center; }
  .submit .btn { width: 100%; }
  .footer__in { flex-direction: column; text-align: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
