:root {
  --ink: #111110;
  --soft-ink: #383735;
  --muted: #76736d;
  --paper: #faf9f6;
  --white: #ffffff;
  --line: #d8d5cd;
  --line-dark: #bdb8ad;
  --gold: #8b6b43;
  --green: #244f41;
  --error: #a3372b;
  --shadow: none;
  --shadow-lg: 0 16px 44px -26px rgba(17, 17, 16, 0.4);
  --radius: 5px;
  --radius-lg: 7px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: min(1160px, calc(100vw - 32px));
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.address-link {
  display: inline-flex;
  width: fit-content;
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.address-link:hover,
.address-link:focus-visible {
  color: var(--gold);
}

img,
svg {
  display: block;
}

button {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 140px 1fr;
  align-items: center;
  min-height: 68px;
  padding: 10px clamp(16px, 4vw, 44px);
  background: rgba(250, 249, 246, 0.96);
  border-bottom: 1px solid rgba(139, 107, 67, 0.22);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 76px;
}

.brand img {
  width: 76px;
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 30px);
  color: var(--soft-ink);
  font-size: 0.95rem;
}

.main-nav a {
  flex: 0 0 auto;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  border-color: currentColor;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 180ms var(--ease), border-color 180ms var(--ease),
    color 180ms var(--ease), box-shadow 220ms var(--ease), transform 180ms var(--ease);
}

.button:active {
  transform: translateY(1px);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #000;
  border-color: #000;
}

.hero .button.primary:hover,
.hero .button.primary:focus-visible {
  background: #f1ece3;
  border-color: #f1ece3;
}

.button.secondary:hover,
.button.secondary:focus-visible {
  background: rgba(255, 255, 255, 0.18);
}

.button.outline:hover,
.button.outline:focus-visible,
.button.secondary.dark:hover,
.button.secondary.dark:focus-visible {
  background: #f5f0e6;
  border-color: var(--line-dark);
}

.button.primary {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.hero .button.primary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--white);
}

.button.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.button.secondary.dark {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.outline {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.button svg {
  width: 18px;
  height: 18px;
}

.hero {
  position: relative;
  min-height: clamp(430px, 56svh, 560px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: #080808;
  isolation: isolate;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/franka-hero.jpg");
  background-position: 64% center;
  background-size: cover;
  filter: contrast(1.04) brightness(0.74);
}

.hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.68) 44%, rgba(0, 0, 0, 0.24) 76%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.66), transparent 52%);
  content: "";
}

.hero-inner {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 70px) 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 620px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 5.4vw, 5.15rem);
  font-weight: 500;
  line-height: 1.12;
  text-wrap: balance;
}

.hero p {
  max-width: 470px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: var(--container);
  margin: 18px auto 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.intro p {
  max-width: 780px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 1rem;
}

.intro a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: var(--container);
  margin: 18px auto 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.facts > * {
  min-height: 86px;
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}

.facts > *:last-child {
  border-right: 0;
}

.facts a {
  display: block;
  transition: background 160ms ease, color 160ms ease;
}

.facts .address-link {
  width: auto;
  text-decoration: none;
}

.facts a:hover,
.facts a:focus-visible {
  color: var(--ink);
  background: #f5f0e6;
}

.facts span,
.summary dt,
.team-card span,
.block-head span,
.barber-filter span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
}

.facts strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: clamp(50px, 6vw, 76px) 0;
  scroll-margin-top: 100px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  gap: 10px 24px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head .eyebrow {
  grid-column: 1 / -1;
}

.section-head h2 {
  max-width: 760px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.4vw, 3rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-head p:not(.eyebrow) {
  grid-column: 2;
  max-width: 360px;
  margin: 0;
  color: var(--muted);
}

.booking-head {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-bottom: 20px;
}

.booking-head p:not(.eyebrow) {
  grid-column: 1;
  max-width: 620px;
  margin-top: 2px;
}

.quick-book {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.quick-book-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.booking-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}

.booking-panel,
.summary,
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.booking-panel {
  padding: 0;
  min-width: 0;
  overflow: hidden;
}

.booking-body {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
  min-width: 0;
}

.booking-left,
.booking-right {
  min-width: 0;
  padding: 18px;
}

.booking-left {
  background: #fbfaf7;
  border-right: 1px solid var(--line);
}

.block-head,
.barber-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.booking-left .block-head {
  display: grid;
  justify-content: stretch;
}

.barber-filter,
.block-head.compact {
  margin-top: 22px;
}

.block-head h3,
.barber-filter h3 {
  margin: 0;
  font-size: 1rem;
}

.service-tabs,
.barber-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.tab,
.barber-chip {
  min-height: 34px;
  padding: 0 14px;
  color: var(--soft-ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}

@media (hover: hover) {
  .tab:not(.active):hover,
  .barber-chip:not(.active):hover {
    border-color: var(--line-dark);
    background: #f3eee4;
  }
}

.tab:active,
.barber-chip:active,
.service-row:active,
.day:active,
.slot:active {
  background: #ece5d7;
}

.tab.active,
.barber-chip.active {
  color: var(--ink);
  background: #f0ebe1;
  border-color: var(--gold);
}

.service-list {
  display: grid;
  gap: 0;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.service-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  align-items: center;
  min-height: 62px;
  padding: 11px 14px;
  color: var(--ink);
  text-align: left;
  background: var(--white);
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

@media (hover: hover) {
  .service-row:not(.active):hover,
  .day:not(.active):hover,
  .slot:not(.active):hover {
    background: #f3eee4;
  }
}

.service-row:last-child {
  border-bottom: 0;
}

.service-row.active,
.day.active,
.slot.active {
  border-color: var(--ink);
  outline: 0;
  box-shadow: inset 0 0 0 1px var(--ink);
  background: #f5f0e6;
}

.service-row span,
.slot-time {
  min-width: 0;
  font-weight: 600;
}

.service-row span {
  grid-column: 1;
}

.service-row strong {
  grid-column: 2;
  justify-self: end;
}

.service-row em {
  grid-column: 1 / -1;
}

.service-row strong,
.service-row em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
  white-space: nowrap;
}

.day-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(70px, 1fr));
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  min-width: 0;
}

.day {
  min-height: 68px;
  padding: 10px;
  text-align: left;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease);
}

.day span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.day strong {
  display: block;
  margin-top: 4px;
  font-size: 1.16rem;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  min-width: 0;
}

.slot {
  min-height: 78px;
  padding: 12px;
  text-align: left;
  background: #fbfaf8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 150ms var(--ease), box-shadow 150ms var(--ease), border-color 150ms var(--ease);
}

.slot span,
.slot strong {
  display: block;
}

.slot-time {
  color: var(--ink);
  font-size: 1.05rem;
}

.slot span:not(.slot-time) {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.88rem;
}

.slot strong {
  margin-top: 5px;
  color: var(--ink);
  font-weight: 600;
}

.empty {
  grid-column: 1 / -1;
  padding: 18px;
  color: var(--muted);
  background: #fbfaf8;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.slot-skeleton {
  min-height: 76px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f1ece2 26%, #faf7f1 50%, #f1ece2 74%);
  background-size: 220% 100%;
  animation: slot-shimmer 1.15s ease-in-out infinite;
}

@keyframes slot-shimmer {
  from { background-position: 220% 0; }
  to { background-position: -220% 0; }
}

.summary {
  position: sticky;
  top: 88px;
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

.summary h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.08;
}

.summary dl {
  margin: 18px 0;
}

.summary dl div {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.summary dd {
  margin: 0;
  font-weight: 600;
}

.summary .button + .button {
  margin-top: 10px;
}

.confirmation {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.team-card {
  min-height: 170px;
  padding: 18px;
}

.avatar {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 18px;
  color: var(--white) !important;
  background: var(--soft-ink);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.22rem !important;
  text-transform: none !important;
}

.team-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
}

.team-card p {
  margin: 3px 0 22px;
  color: var(--muted);
}

.team-card div {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.team-card strong {
  display: block;
  margin-top: 6px;
}

.prices {
  padding-top: 0;
}

.price-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.price-group {
  min-width: 0;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.price-group h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.26rem;
  font-weight: 500;
}

.price-group h4 {
  margin: 16px 0 7px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.94rem;
}

.price-row span {
  min-width: 0;
}

.price-row strong {
  white-space: nowrap;
}

.text-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 940px;
}

.text-columns p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 1.06rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 200ms var(--ease);
}

.blog-card:hover {
  border-color: var(--line-dark);
}

.blog-card {
  min-height: 220px;
  padding: 24px;
}

.blog-card span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}

.blog-card h3 {
  margin: 18px 0 8px;
  font-size: 1.35rem;
  font-weight: 600;
}

.blog-card p {
  margin: 0;
  color: var(--soft-ink);
}

.blog-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}

.contact {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  width: var(--container);
  margin: 0 auto 28px;
  padding: clamp(22px, 4vw, 34px);
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.contact h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
}

.contact p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-actions {
  margin-top: 0;
  justify-content: flex-end;
}

.contact-actions img {
  width: 18px;
  height: 18px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  align-items: start;
  width: var(--container);
  margin: 0 auto 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--soft-ink);
}

.site-footer strong,
.site-footer span,
.site-footer a {
  display: block;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer a {
  margin-bottom: 4px;
  font-weight: 600;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (max-width: 1020px) {
  .booking-grid,
  .contact {
    grid-template-columns: 1fr;
  }

  .summary {
    position: static;
  }

  .slot-list,
  .team-grid,
  .price-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    min-height: 68px;
    padding: 8px 12px;
  }

  .brand,
  .brand img {
    width: 58px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 13px;
    overflow-x: auto;
    font-size: 0.82rem;
    min-width: 0;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a[href="#top"],
  .main-nav a[href="#blog"] {
    display: none;
  }

  .hero {
    min-height: 470px;
  }

  .hero-image {
    background-position: 56% center;
    filter: contrast(1.06) brightness(0.4);
  }

  .hero::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.54) 44%, rgba(0, 0, 0, 0.74) 76%, rgba(0, 0, 0, 0.94) 100%);
  }

  .hero-inner {
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.65);
  }

  .hero h1 {
    font-size: clamp(2.55rem, 11vw, 3.45rem);
    line-height: 1.12;
  }

  .hero-actions {
    width: min(238px, 100%);
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .facts {
    grid-template-columns: 1fr;
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

.facts > * {
    min-height: 74px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .facts > *:last-child {
    border-bottom: 0;
  }

  .intro,
  .text-columns,
  .blog-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .section {
    width: min(100vw - 20px, 680px);
    padding: 34px 0;
    scroll-margin-top: 92px;
  }

  .section-head {
    grid-template-columns: 1fr;
  }

  .section-head p:not(.eyebrow) {
    grid-column: 1;
    max-width: none;
  }

  .section-head h2 {
    font-size: clamp(1.7rem, 9vw, 2.55rem);
  }

  .booking-body {
    grid-template-columns: 1fr;
  }

  .booking-left,
  .booking-right {
    padding: 14px;
  }

  .booking-left {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary {
    padding: 16px;
  }

  .block-head,
  .barber-filter {
    display: grid;
    justify-content: stretch;
  }

  .service-row {
    gap: 4px;
    min-height: 56px;
  }

  .service-row strong,
  .service-row em {
    white-space: normal;
  }

  .day-list {
    grid-auto-flow: column;
    grid-auto-columns: 58px;
    grid-template-columns: none;
    gap: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }

  .day {
    min-height: 62px;
    padding: 8px;
    scroll-snap-align: start;
  }

  .team-grid,
  .price-groups {
    grid-template-columns: 1fr;
  }

  .team-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 2px 12px;
    min-height: 0;
    padding: 16px;
  }

  .team-card .avatar {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .team-card p {
    margin: 2px 0 0;
  }

  .team-card div {
    grid-column: 1 / -1;
    margin-top: 10px;
    padding-top: 10px;
  }

  .slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .slot {
    min-height: 64px;
    padding: 10px;
  }

  .slot-time {
    font-size: 1.06rem;
  }

  .slot span:not(.slot-time),
  .slot strong {
    font-size: 0.82rem;
  }

  .summary dl div {
    grid-template-columns: 72px 1fr;
  }

  .contact {
    width: min(100vw - 20px, 680px);
    margin-bottom: 20px;
  }

  .summary .button,
  .contact-actions .button,
  .quick-book .button,
  .intro a {
    width: 100%;
  }
}

/* Booking modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, 0.55);
  opacity: 0;
  transition: opacity 220ms var(--ease);
}

.modal.is-open .modal-overlay {
  opacity: 1;
  backdrop-filter: blur(4px);
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100svh - 32px);
  overflow-y: auto;
  padding: clamp(22px, 4vw, 30px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 240ms var(--ease), transform 240ms var(--ease);
}

.modal.is-open .modal-card {
  opacity: 1;
  transform: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}

.modal-close:hover {
  color: var(--ink);
  background: #f0ebe1;
}

.modal-close svg {
  width: 20px;
  height: 20px;
}

.modal-card h3 {
  margin: 0 0 2px;
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 500;
}

.modal-summary {
  display: grid;
  gap: 1px;
  margin: 16px 0 18px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.modal-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  background: #fbfaf7;
}

.modal-summary span {
  color: var(--muted);
  font-size: 0.82rem;
}

.modal-summary strong {
  font-weight: 600;
  text-align: right;
}

#bookingForm {
  display: grid;
  gap: 14px;
}

#bookingForm label {
  display: grid;
  gap: 6px;
  color: var(--soft-ink);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#bookingForm .optional {
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

#bookingForm input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  color: var(--ink);
  font: inherit;
  background: var(--white);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

#bookingForm input::placeholder {
  color: #a7a399;
}

#bookingForm input:focus,
.phone-code:focus {
  outline: 0;
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  gap: 8px;
}

.phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  white-space: nowrap;
  background: #fbfaf7;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 150ms var(--ease), background-color 150ms var(--ease);
}

.phone-prefix svg {
  width: 15px;
  height: 15px;
  color: var(--muted);
}

@media (hover: hover) {
  .phone-prefix:hover {
    border-color: var(--ink);
  }
}

.phone-code {
  width: 100%;
  max-width: 152px;
  min-height: 46px;
  padding: 0 32px 0 11px;
  color: var(--ink);
  font: inherit;
  text-overflow: ellipsis;
  background: var(--white) url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='12'%20height='12'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%2376736d'%20stroke-width='2'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Cpath%20d='M6%209l6%206%206-6'/%3E%3C/svg%3E") no-repeat right 11px center;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}

.form-error {
  min-height: 0;
  margin: 0;
  color: var(--error);
  font-size: 0.86rem;
  font-weight: 500;
}

.form-error:not(:empty) {
  margin-top: 2px;
}

.form-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
  text-align: center;
}

.button.ghost {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
}

.button.ghost:hover {
  color: var(--ink);
  background: #f0ebe1;
}

.modal-step[data-step="success"] {
  text-align: center;
}

.modal-step[data-step="success"] p {
  margin: 0 0 16px;
  color: var(--soft-ink);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
}

.success-icon svg {
  width: 28px;
  height: 28px;
}

.calendar-label {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.calendar-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-step .button + .button {
  margin-top: 10px;
}

.modal-step[data-step="success"] .button.ghost {
  margin-top: 14px;
}

/* Mobile booking bar (sticky one-tap confirm) */
.mobile-book-bar {
  display: none;
}

.mbb-info {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mbb-info strong {
  font-size: 0.98rem;
}

.mbb-info span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

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

  .modal-overlay,
  .modal-card,
  .mobile-book-bar {
    transition: none;
  }

  .slot-skeleton {
    animation: none;
  }
}

@media (max-width: 760px) {
  .mobile-book-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(250, 249, 246, 0.97);
    border-top: 1px solid var(--line-dark);
    box-shadow: 0 -10px 30px -18px rgba(17, 17, 16, 0.55);
    backdrop-filter: blur(12px);
    transform: translateY(135%);
    transition: transform 280ms var(--ease);
  }

  body.show-book-bar .mobile-book-bar {
    transform: none;
  }

  .mobile-book-bar .button {
    flex: 0 0 auto;
    padding: 0 20px;
  }

  .mobile-book-bar .button[disabled] {
    opacity: 0.45;
    pointer-events: none;
  }

  .summary {
    margin-bottom: 70px;
  }
}
