:root {
  --ink: #12151a;
  --ink-soft: #2a3038;
  --paper: #f3f1ec;
  --muted: #6b7280;
  --line: rgba(18, 21, 26, 0.12);
  --amber: #e39b2d;
  --amber-deep: #c47d12;
  --ok: #2f6b4f;
  --danger: #a33b2d;
  --radius: 2px;
  --max: 72rem;
  --font-display: "Archivo Black", "Arial Black", sans-serif;
  --font-body: "Figtree", "Segoe UI", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 1.05rem;
}

main { flex: 1; }

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.05;
  margin: 0;
}

p { margin: 0; }

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 0.75rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(0.85rem, 3vw, 2rem);
  color: #fff;
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 2.4vw, 1.3rem);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  max-width: min(58vw, 16rem);
}

.nav {
  display: flex;
  gap: 0.35rem 1rem;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  opacity: 0.92;
}

.nav a:hover,
.nav a[aria-current="page"] {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #efae45; }

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-compact {
  min-height: 2.35rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  transform: scale(1.04);
  animation: hero-zoom 12s ease-out forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 12, 16, 0.4) 0%, rgba(10, 12, 16, 0.2) 35%, rgba(10, 12, 16, 0.86) 100%),
    linear-gradient(90deg, rgba(10, 12, 16, 0.58) 0%, rgba(10, 12, 16, 0.18) 55%, transparent 100%);
}

.hero-copy {
  width: min(100% - 1.7rem, var(--max));
  margin: 0 auto;
  padding: 0 0 clamp(2.5rem, 8vw, 5.5rem);
  animation: rise 700ms ease both;
}

.hero-copy .brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 9vw, 5.4rem);
  line-height: 0.95;
  max-width: 11ch;
  margin-bottom: 0.85rem;
  text-wrap: balance;
}

.hero-copy p {
  max-width: 34rem;
  font-size: clamp(1.02rem, 2.2vw, 1.25rem);
  margin-bottom: 1.4rem;
  opacity: 0.95;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-hero {
  background: var(--ink);
  color: #fff;
  padding: 6.5rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% auto;
  width: min(28rem, 70vw);
  height: min(28rem, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 155, 45, 0.28), transparent 70%);
  pointer-events: none;
}

.page-hero .wrap { position: relative; }

.page-hero h1 {
  font-size: clamp(2.2rem, 7vw, 4rem);
  margin-bottom: 0.6rem;
}

.page-hero p {
  max-width: 36rem;
  opacity: 0.9;
}

.wrap {
  width: min(100% - 1.7rem, var(--max));
  margin: 0 auto;
}

.section { padding: clamp(2.6rem, 7vw, 5.5rem) 0; }

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 4.5vw, 2.8rem);
  margin-bottom: 0.6rem;
}

.section-head p { color: var(--ink-soft); }

.section-muted {
  background: linear-gradient(180deg, #ebe7df 0%, #e4e0d7 100%);
}

.split {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
    gap: 2rem;
  }
  .split.reverse > :first-child { order: 2; }
}

.stat-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  letter-spacing: 0.02em;
}

.stat span {
  color: var(--muted);
  font-size: 0.92rem;
}

.steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

.step {
  padding-top: 0.25rem;
  border-top: 3px solid var(--amber);
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--amber-deep);
  margin-bottom: 0.5rem;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.step p { color: var(--ink-soft); }

.panel {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(1rem, 2.5vw, 1.25rem);
}

.form { display: grid; gap: 1rem; }

.form-row {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
}

.form-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.form-status {
  min-height: 1.4rem;
  font-weight: 600;
}

.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }

.calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.calendar-toolbar h3 { font-size: 1.15rem; }

.calendar-nav { display: flex; gap: 0.4rem; }

.icon-btn {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
}

.icon-btn:hover { background: #f7f5f0; }

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.25rem;
}

.calendar-dow {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.35rem 0;
}

.day {
  aspect-ratio: 1;
  border: 1px solid transparent;
  background: #f7f5f0;
  color: var(--ink);
  font: inherit;
  font-size: clamp(0.78rem, 2.8vw, 0.95rem);
  font-weight: 600;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background-color 140ms ease, border-color 140ms ease;
  padding: 0;
}

.day:hover:not(:disabled) { border-color: var(--amber); }

.day.muted {
  opacity: 0.35;
  cursor: default;
}

.day.blocked {
  background: repeating-linear-gradient(
    -45deg,
    #d8d3cb,
    #d8d3cb 4px,
    #cfc9bf 4px,
    #cfc9bf 8px
  );
  color: #666;
  cursor: not-allowed;
}

.day.in-range,
.day.selected {
  background: var(--amber);
  color: var(--ink);
}

.day.today { box-shadow: inset 0 0 0 2px var(--ink); }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-top: 0.9rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.legend i {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-right: 0.3rem;
  vertical-align: -0.08rem;
  border-radius: 1px;
}

.legend .free {
  background: #f7f5f0;
  border: 1px solid var(--line);
}

.legend .busy {
  background: repeating-linear-gradient(
    -45deg,
    #d8d3cb,
    #d8d3cb 3px,
    #cfc9bf 3px,
    #cfc9bf 6px
  );
}

.legend .pick { background: var(--amber); }

.place-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
}

.place-list li {
  margin: 0;
  padding: 0.35rem 0.7rem;
  background: rgba(18, 21, 26, 0.06);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 600;
}

.place-list-compact li {
  font-size: 0.85rem;
  padding: 0.28rem 0.55rem;
  font-weight: 600;
}

.contact-bits {
  display: grid;
  gap: 1rem;
}

.contact-bits a {
  font-weight: 700;
  text-decoration: none;
}

.contact-bits a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.muted { color: var(--muted); }

.table-wrap { overflow-x: auto; }

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  text-align: left;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.86);
  padding: 2.25rem 0;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: end;
}

.site-footer strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: #fff;
  margin-bottom: 0.35rem;
}

.site-footer a { color: #fff; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.65rem;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
  }

  .nav .btn {
    min-height: 2.5rem;
    padding: 0.45rem 0.8rem;
    font-size: 0.88rem;
  }

  .admin-table thead { display: none; }

  .admin-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--line);
    background: #fff;
  }

  .admin-table td {
    display: grid;
    grid-template-columns: 6.5rem 1fr;
    gap: 0.5rem;
    border-bottom: 1px solid var(--line);
  }

  .admin-table td:last-child { border-bottom: 0; }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-copy,
  .hero-media img { animation: none; }
  .btn:hover { transform: none; }
}
