:root {
  color-scheme: light;
  --ink: #261b2a;
  --muted: #6f6074;
  --line: #e4d7e7;
  --paper: #ffffff;
  --soft: #fbf7fb;
  --forest: #69456d;
  --forest-dark: #4b2d50;
  --clay: #b66551;
  --blue: #6d7f58;
  --danger: #9f1239;
  --danger-soft: #f8dde8;
  --shadow: 0 18px 45px rgba(75, 45, 80, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 76px;
  padding: 14px clamp(18px, 5vw, 68px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(228, 215, 231, 0.88);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.brand img {
  width: 50px;
  height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf0;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  border-radius: 999px;
  color: #4f4054;
  font-size: 0.95rem;
  font-weight: 650;
  padding: 10px 13px;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a.active {
  background: #f1e4f2;
  color: var(--forest-dark);
}

.admin-nav {
  display: flex;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.language-switcher,
.admin-language-switcher {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 3px;
}

.language-switcher span,
.admin-language-switcher span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 7px;
}

.language-switcher button,
.admin-language-switcher button {
  min-width: 36px;
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 850;
}

.language-switcher button.active,
.admin-language-switcher button.active {
  background: var(--forest);
  color: #ffffff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: min(680px, 72svh);
  overflow: hidden;
  isolation: isolate;
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, rgba(38, 27, 42, 0.76), rgba(56, 37, 61, 0.42) 55%, rgba(56, 37, 61, 0.18));
}

.hero-media,
.page-hero img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  padding: clamp(54px, 9vw, 104px) clamp(18px, 5vw, 68px);
  color: #ffffff;
}

.eyebrow {
  margin: 0 0 16px;
  color: #f4dff4;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.45rem, 6vw, 5.35rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lead {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 1.8vw, 1.28rem);
  line-height: 1.65;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--forest);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.button.light {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.button:hover {
  filter: brightness(0.96);
}

.section {
  padding: clamp(48px, 7vw, 82px) clamp(18px, 5vw, 68px);
}

.section.soft {
  background: var(--soft);
}

.section.tint {
  background: #f5eef7;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.55fr);
  gap: 28px;
  align-items: end;
  width: min(1160px, 100%);
  margin: 0 auto 30px;
}

.section-heading h2,
.page-title h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading p,
.page-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.feature-grid,
.gallery-grid,
.manual-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.feature-card,
.gallery-card,
.manual-card,
.rule-card,
.contact-panel,
.calendar-shell,
.notice-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.feature-card,
.manual-card,
.rule-card {
  padding: 22px;
}

.feature-card h3,
.manual-card h3,
.rule-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.feature-card p,
.manual-card p,
.rule-card p,
.manual-card li,
.rule-card li {
  color: var(--muted);
  line-height: 1.6;
}

.feature-card p,
.manual-card p,
.rule-card p {
  margin: 0;
}

.feature-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #f1e4f2;
  color: var(--forest-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0 10px;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(240px, 0.42fr);
  gap: 28px;
  align-items: center;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.cta-band h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

.cta-band p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.page-hero {
  position: relative;
  min-height: 330px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 74px clamp(18px, 5vw, 68px) 52px;
}

.page-title {
  width: min(880px, 100%);
  color: #ffffff;
}

.page-title p {
  max-width: 660px;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.88);
}

.gallery-toolbar,
.calendar-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: min(1160px, 100%);
  margin: 0 auto 22px;
}

.filter-group,
.month-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.chip,
.icon-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-weight: 750;
}

.chip {
  min-height: 38px;
  padding: 0 13px;
}

.chip.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #ffffff;
}

.icon-button {
  width: 42px;
  height: 42px;
  font-size: 1.2rem;
}

.gallery-card {
  overflow: hidden;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  font-weight: 800;
}

.gallery-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(12, 18, 26, 0.86);
}

.lightbox.open {
  display: flex;
}

.lightbox figure {
  max-width: min(1100px, 100%);
  margin: 0;
}

.lightbox img {
  max-height: 78svh;
  border-radius: 8px;
  object-fit: contain;
}

.lightbox figcaption {
  margin-top: 12px;
  color: #ffffff;
  font-weight: 800;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  cursor: pointer;
  font-size: 1.4rem;
}

.calendar-shell {
  width: min(1160px, 100%);
  margin: 0 auto;
  overflow: hidden;
}

.calendar-status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.calendar-month-label {
  min-width: 180px;
  text-align: center;
  font-weight: 850;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.weekday,
.calendar-day {
  min-height: 92px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.weekday {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf7fb;
  color: #5a4b5f;
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  padding: 10px;
  background: #ffffff;
}

.calendar-day.outside {
  background: #fbf7fb;
  color: #9b8ba0;
}

.calendar-day.booked {
  background: var(--danger-soft);
  color: var(--danger);
}

.calendar-day.today::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  content: "";
  background: var(--blue);
}

.day-number {
  font-weight: 850;
}

.day-status {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-top: 16px;
  border-radius: 999px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 850;
}

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.legend-item {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.legend-swatch {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #ffffff;
}

.legend-swatch.booked {
  border-color: #fecaca;
  background: var(--danger-soft);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.5fr);
  gap: 24px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.contact-panel {
  padding: clamp(22px, 3vw, 34px);
}

.contact-panel h2 {
  margin: 0 0 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.checkbox-field {
  color: #4f4054;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  min-height: 46px;
  padding: 11px 12px;
}

.form-field textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  grid-column: 1 / -1;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.hidden-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 24px;
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

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

.form-status.success {
  color: var(--forest-dark);
}

.booking-picker {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffafc;
  padding: 14px;
}

.booking-picker-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.booking-picker-head strong {
  text-align: center;
}

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

.booking-weekday {
  min-height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.booking-day {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.booking-day:hover:not(:disabled) {
  border-color: var(--forest);
  background: #f7eff8;
}

.booking-day.outside {
  color: #a796ac;
  background: #fbf7fb;
}

.booking-day.booked {
  border-color: #f1b9cc;
  background: var(--danger-soft);
  color: var(--danger);
  cursor: not-allowed;
}

.booking-day.past {
  color: #b6abb8;
  background: #f8f4f8;
  cursor: not-allowed;
}

.booking-day.in-range {
  border-color: #c9add0;
  background: #efe3f1;
}

.booking-day.selected {
  border-color: var(--forest-dark);
  background: var(--forest);
  color: #ffffff;
}

.booking-legend {
  margin-top: 12px;
}

.contact-aside {
  display: grid;
  align-content: start;
  gap: 16px;
}

.notice-panel {
  padding: 22px;
}

.notice-panel h3 {
  margin: 0 0 10px;
}

.notice-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.manual-card ul,
.rule-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 28px clamp(18px, 5vw, 68px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-body {
  background: var(--soft);
}

.admin-main {
  padding: clamp(28px, 5vw, 54px) clamp(18px, 5vw, 68px);
}

.admin-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  width: min(1160px, 100%);
  margin: 0 auto 24px;
}

.admin-heading .eyebrow {
  color: var(--forest-dark);
}

.admin-heading h1 {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.admin-heading p:last-child {
  color: var(--muted);
  font-weight: 800;
}

.admin-heading-tools {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 0.85fr);
  gap: 18px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(20px, 3vw, 28px);
}

.admin-panel h2 {
  margin: 0 0 18px;
}

.admin-help {
  margin: -8px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.admin-panel-wide {
  grid-column: 1 / -1;
}

.admin-fieldset {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.admin-fieldset.full {
  grid-column: 1 / -1;
}

.admin-fieldset legend {
  color: var(--forest-dark);
  font-weight: 850;
  padding: 0 8px;
}

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

.document-admin-grid form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.document-admin-grid h3,
.document-admin-grid p {
  margin: 0;
}

.document-admin-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.document-panel-wrap {
  display: block;
}

.document-panel {
  width: min(720px, 100%);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: clamp(22px, 4vw, 36px);
  text-align: center;
}

.document-panel h2 {
  margin: 0 0 10px;
}

.document-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.6;
}

.category-create-form,
.category-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.category-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.category-row {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.category-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
}

.admin-preview {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.admin-gallery-section {
  padding-top: 36px;
}

.admin-section-heading {
  margin-bottom: 18px;
}

.admin-gallery-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1160px, 100%);
  margin: 0 auto;
}

.admin-gallery-item {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.admin-gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.admin-gallery-item figcaption {
  display: grid;
  gap: 3px;
  padding: 12px;
}

.admin-gallery-item span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.admin-login {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--soft);
}

.admin-login-panel {
  display: grid;
  gap: 16px;
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 28px;
  text-align: center;
}

.admin-login-panel img {
  width: 94px;
  height: 94px;
  margin: 0 auto;
  object-fit: contain;
}

.admin-login-panel h1,
.admin-login-panel p {
  margin: 0;
}

.admin-login-panel p {
  color: var(--muted);
  line-height: 1.6;
}

.token-panel {
  width: min(680px, 100%);
  text-align: left;
}

.token-panel img {
  justify-self: center;
}

.token-panel h1 {
  text-align: center;
}

.token-panel code {
  display: block;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbf7fb;
  color: var(--forest-dark);
  padding: 12px;
}

.token-panel textarea {
  min-height: 132px;
}

.footer-links {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 800;
}

.footer-links a {
  color: var(--forest-dark);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-header {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
  }

  .language-switcher span {
    display: none;
  }

  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 18px 24px;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  body.menu-open .nav {
    display: flex;
  }

  .admin-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .nav a {
    border-radius: 8px;
    padding: 13px 14px;
  }

  .section-heading,
  .cta-band,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .gallery-grid,
  .manual-grid,
  .rules-grid,
  .admin-gallery-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-heading-tools {
    justify-items: start;
  }

  .document-admin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    min-height: 68px;
  }

  .brand span {
    max-width: 180px;
  }

  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding-top: 70px;
  }

  .feature-grid,
  .gallery-grid,
  .manual-grid,
  .rules-grid,
  .admin-gallery-list,
  .form-grid,
  .admin-fieldset {
    grid-template-columns: 1fr;
  }

  .category-create-form,
  .category-row {
    grid-template-columns: 1fr;
  }

  .weekday {
    font-size: 0.72rem;
  }

  .weekday,
  .calendar-day {
    min-height: 64px;
  }

  .calendar-day {
    padding: 7px;
  }

  .day-status {
    display: none;
  }

  .legend {
    width: 100%;
  }
}
