:root {
  color-scheme: light;
  --ink: #191715;
  --muted: #6f6760;
  --line: #e7e0d8;
  --paper: #fffdf9;
  --warm: #f7efe6;
  --accent: #ff385c;
  --accent-dark: #d92749;
  --sea: #0f766e;
  --shadow: 0 18px 50px rgba(34, 28, 23, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 24px;
  left: 50%;
  display: grid;
  width: min(1228px, calc(100% - 24px));
  min-height: 68px;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: center;
  gap: 22px;
  padding: 12px 16px 12px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 10px 32px rgba(23, 20, 18, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 24px rgba(23, 20, 18, 0.1);
  object-fit: contain;
  transition: transform 0.24s ease, box-shadow 0.24s ease;
  transform-origin: left center;
}

.site-header .brand-mark:hover {
  transform: scale(2.75);
  box-shadow: 0 24px 44px rgba(23, 20, 18, 0.22);
}

.nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: #3b342f;
  font-size: 15px;
  font-weight: 700;
}

.nav a,
.header-phone,
.footer-contacts a {
  transition: color 0.2s ease;
}

.nav a:hover,
.header-phone:hover,
.footer-contacts a:hover {
  color: var(--accent);
}

.header-phone {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-trigger,
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}

.admin-trigger {
  display: grid;
  color: #3b342f;
  transition:
    transform 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.admin-trigger:hover {
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(23, 20, 18, 0.1);
}

.admin-trigger.is-active {
  color: var(--accent);
  border-color: rgba(255, 56, 92, 0.3);
  background: #fff4f6;
}

.admin-trigger svg {
  width: 20px;
  height: 20px;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  padding: 140px max(24px, calc((100vw - 1180px) / 2)) 28px;
  color: #fff;
  isolation: isolate;
}

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

.hero-media img {
  object-position: 68% 42%;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.24) 54%, rgba(0, 0, 0, 0.18)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.42));
}

.hero-content {
  max-width: 700px;
  padding-top: 12vh;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #fff;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(44px, 7vw, 92px);
  line-height: 0.95;
}

.hero-title {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: 24px;
  line-height: 1.02;
}

.hero-title-top {
  display: block;
  max-width: 620px;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 750;
  line-height: 1.04;
}

.hero-title-subline {
  display: block;
  max-width: 520px;
  font-size: clamp(34px, 4.8vw, 64px);
  font-weight: 750;
  line-height: 1.08;
  color: rgba(255, 255, 255, 0.94);
}

.hero-title-brand {
  display: block;
  font-family: "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  font-size: clamp(42px, 5.8vw, 72px);
  font-style: italic;
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: 0.01em;
  color: #fff6ed;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  opacity: 0.96;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

.hero-copy {
  max-width: 560px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.62;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 850;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  border-color: rgba(25, 23, 21, 0.18);
  background: #fff;
  color: var(--ink);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-strip {
  display: grid;
  width: min(820px, 100%);
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 14vh;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: var(--shadow);
}

.booking-strip div {
  padding: 22px 24px;
  background: rgba(255, 253, 249, 0.94);
  color: var(--ink);
}

.booking-strip span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.booking-strip strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 110px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 58px;
  align-items: center;
}

.about-grid p,
.section-heading p,
.booking-panel p {
  color: var(--muted);
  font-size: 18px;
}

.about-photo {
  min-height: clamp(320px, 42vw, 460px);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.about-photo img {
  object-position: 42% 54%;
}

.rooms-section,
.booking-section {
  width: 100%;
  background: var(--warm);
}

.rooms-section > *,
.booking-section > * {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
}

.section-heading p {
  max-width: 390px;
  margin-bottom: 22px;
}

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

.room-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 71, 57, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(36, 30, 26, 0.08);
}

.room-carousel {
  position: relative;
  height: 260px;
  overflow: hidden;
  background: #e9e2db;
}

.room-carousel-viewport {
  height: 100%;
  overflow: hidden;
}

.room-carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
  touch-action: pan-y;
}

.room-slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.room-slide img {
  height: 260px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 249, 0.92);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

.carousel-arrow-left {
  left: 14px;
}

.carousel-arrow-right {
  right: 14px;
}

.carousel-meta {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
}

.carousel-counter {
  display: inline-flex;
  align-items: center;
  min-width: 62px;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(25, 23, 21, 0.62);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.featured-room {
  border-color: rgba(255, 56, 92, 0.32);
  box-shadow: 0 20px 54px rgba(255, 56, 92, 0.16);
}

.room-body {
  padding: 24px;
}

.room-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.room-topline span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f0eb;
  color: var(--sea);
  font-size: 13px;
  font-weight: 850;
}

.room-body p {
  min-height: 84px;
  color: var(--muted);
}

.room-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.room-footer strong {
  display: inline-flex;
  align-items: baseline;
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: 0;
}

.room-footer a {
  font-weight: 900;
}

.room-footer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: end;
  gap: 12px;
}

.room-action-button {
  min-height: 40px;
  padding: 10px 16px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.room-request-button {
  min-width: 116px;
}

.amenities-section h2 {
  max-width: 560px;
}

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

.amenity-card {
  min-height: 274px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(252, 248, 244, 0.94));
  box-shadow: 0 10px 26px rgba(34, 28, 23, 0.06);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

@media (hover: hover) {
  .amenity-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 56, 92, 0.22);
    box-shadow: 0 20px 36px rgba(34, 28, 23, 0.12);
  }

  .amenity-card:hover .icon {
    transform: scale(1.08);
  }
}

.icon {
  position: relative;
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  transition: transform 0.24s ease;
}

.icon-wifi {
  background: radial-gradient(circle at 35% 30%, #fff5f7, #ffe8ee 68%);
}

.wifi-dot {
  position: absolute;
  left: 50%;
  bottom: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-dark);
  transform: translateX(-50%);
}

.wifi-arc {
  position: absolute;
  left: 50%;
  border: 3px solid var(--accent-dark);
  border-bottom: 0;
  border-radius: 50%;
  transform: translateX(-50%);
  opacity: 0.34;
  animation: wifiPulse 1.8s ease-in-out infinite;
}

.wifi-arc-1 {
  bottom: 24px;
  width: 16px;
  height: 10px;
  animation-delay: 0s;
}

.wifi-arc-2 {
  bottom: 24px;
  width: 30px;
  height: 18px;
  animation-delay: 0.22s;
}

.wifi-arc-3 {
  bottom: 24px;
  width: 44px;
  height: 26px;
  animation-delay: 0.44s;
}

.icon-parking {
  background: radial-gradient(circle at 35% 30%, #5fa8ff, #2563eb 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.parking-badge {
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  animation: parkingBlink 2.4s ease-in-out infinite;
}

.icon-sea {
  background: radial-gradient(circle at 35% 30%, #ebfffe, #d7f4f1 72%);
  overflow: hidden;
}

.sea-line {
  position: absolute;
  left: -8px;
  width: 80px;
  height: 12px;
  background:
    radial-gradient(circle at 6px 10px, transparent 7px, var(--sea) 7px 9px, transparent 9px) 0 0 / 24px 12px repeat-x;
  opacity: 0.92;
  animation: seaRun 2.8s linear infinite;
}

.sea-line-1 {
  top: 18px;
}

.sea-line-2 {
  top: 29px;
  animation-delay: -0.9s;
}

.sea-line-3 {
  top: 40px;
  animation-delay: -1.8s;
}

.icon-grill {
  background: radial-gradient(circle at 35% 30%, #fff3e8, #ffe4c9 72%);
}

.grill-body {
  position: absolute;
  bottom: 16px;
  width: 28px;
  height: 14px;
  border: 3px solid #5c3624;
  border-top-width: 4px;
  border-radius: 0 0 12px 12px;
}

.grill-body::before {
  position: absolute;
  inset: 3px 4px auto;
  height: 3px;
  content: "";
  background: repeating-linear-gradient(
    to right,
    #5c3624 0 3px,
    transparent 3px 7px
  );
}

.grill-leg {
  position: absolute;
  bottom: 8px;
  width: 3px;
  height: 12px;
  background: #5c3624;
  border-radius: 999px;
}

.grill-leg-1 {
  left: 24px;
  transform: rotate(12deg);
}

.grill-leg-2 {
  right: 24px;
  transform: rotate(-12deg);
}

.smoke {
  position: absolute;
  bottom: 34px;
  width: 11px;
  height: 20px;
  border: 3px solid rgba(116, 108, 103, 0.72);
  border-color: rgba(116, 108, 103, 0.72) transparent transparent transparent;
  border-radius: 50%;
  opacity: 0;
  animation: smokeRise 2.2s ease-in-out infinite;
}

.smoke-1 {
  left: 24px;
}

.smoke-2 {
  left: 34px;
  animation-delay: 0.7s;
}

.amenities-grid h3 {
  margin-bottom: 12px;
}

.amenities-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

@keyframes wifiPulse {
  0%,
  100% {
    opacity: 0.28;
  }

  50% {
    opacity: 1;
  }
}

@keyframes parkingBlink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.68;
    transform: scale(0.96);
  }
}

@keyframes seaRun {
  0% {
    transform: translateX(-10px);
  }

  100% {
    transform: translateX(14px);
  }
}

@keyframes smokeRise {
  0% {
    transform: translateY(6px) scale(0.85);
    opacity: 0;
  }

  35% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-14px) scale(1.08);
    opacity: 0;
  }
}

.gallery-section {
  padding-bottom: 110px;
}

.gallery-heading {
  padding-bottom: 30px;
}

.occupancy-section {
  padding: 0 0 110px;
}

.occupancy-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.occupancy-heading {
  padding-bottom: 28px;
}

.occupancy-filters {
  padding: 24px;
  margin-bottom: 22px;
}

.occupancy-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.occupancy-filter-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.occupancy-summary {
  margin: 0;
  color: var(--muted);
}

.occupancy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin-top: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.occupancy-toggle:disabled {
  color: #a2968c;
  cursor: default;
}

.occupancy-toggle-icon {
  display: inline-block;
  transition: transform 0.2s ease;
}

.occupancy-toggle.is-open .occupancy-toggle-icon {
  transform: rotate(180deg);
}

.occupancy-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

.occupancy-layout.is-admin-active {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
}

.occupancy-public {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.occupancy-layout.is-admin-active .occupancy-public {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.occupancy-public.is-collapsed {
  display: none;
}

.occupancy-card,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(34, 28, 23, 0.06);
}

.occupancy-card {
  padding: 24px;
  min-width: 0;
}

.occupancy-card-top {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.occupancy-card-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.occupancy-card h3,
.admin-card h3 {
  margin-bottom: 8px;
}

.occupancy-card h3 {
  margin-top: 0;
  margin-bottom: 0;
}

.occupancy-card p,
.admin-card p,
.field span,
.field input,
.field textarea,
.field select {
  font-size: 15px;
}

.occupancy-card p,
.admin-card p {
  color: var(--muted);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.status-free {
  background: #e7f7ef;
  color: #137a47;
}

.status-busy {
  background: #fff0f3;
  color: var(--accent-dark);
}

.status-hold {
  background: #fff6df;
  color: #926800;
}

.occupancy-type {
  margin-bottom: 6px;
  color: #8a8078;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.occupancy-meta {
  display: grid;
  gap: 8px;
}

.occupancy-meta-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #faf6f1;
}

.occupancy-label {
  color: #8a8078;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.occupancy-value {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.occupancy-note {
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.occupancy-note::before {
  content: "Примечание";
  display: block;
  margin-bottom: 4px;
  color: #8a8078;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.occupancy-card-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.occupancy-card-actions .button {
  min-height: 42px;
  padding: 10px 16px;
}

.occupancy-request-button {
  flex: 1 1 auto;
}

.occupancy-calendar-button {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
}

.occupancy-calendar-button svg {
  width: 18px;
  height: 18px;
}

.occupancy-admin {
  display: grid;
  gap: 18px;
}

.admin-card {
  padding: 24px;
}

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

.admin-card-heading p {
  margin-bottom: 0;
}

.admin-form,
.admin-editor {
  display: grid;
  gap: 16px;
}

.admin-editor {
  gap: 18px;
}

.admin-editor-toolbar {
  margin-bottom: 18px;
}

.admin-editor-hint {
  margin: 0;
  color: var(--muted);
}

.admin-group {
  display: grid;
  gap: 16px;
}

.admin-group-title {
  margin: 8px 0 0;
  font-size: 18px;
}

.admin-group-subtitle {
  margin: 0;
  color: var(--muted);
}

.admin-room-grid {
  display: grid;
  gap: 14px;
}

.admin-room {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffcf8;
}

.admin-room-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-room-head h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.admin-room-head p {
  margin: 0;
}

.admin-room-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

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

.admin-booking-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  padding: 14px;
  margin-top: 14px;
  border: 1px solid #efe5db;
  border-radius: 8px;
  background: #fff;
}

.admin-booking-form .button {
  align-self: end;
  min-height: 46px;
}

.booking-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.booking-item {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.booking-item strong,
.booking-item p {
  display: block;
}

.booking-item strong {
  margin-bottom: 4px;
}

.booking-item p {
  margin: 0;
}

.booking-empty {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--accent);
  border-color: rgba(255, 56, 92, 0.3);
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  color: #6e655e;
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.field select.is-placeholder {
  color: #9a9087;
}

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

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.admin-message {
  min-height: 20px;
  margin: 0;
  color: #7a6f67;
  font-size: 14px;
}

.admin-message.is-error {
  color: var(--accent-dark);
}

.admin-message.is-success {
  color: #137a47;
}

.admin-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.admin-dialog::backdrop {
  background: rgba(0, 0, 0, 0.44);
}

.admin-dialog-card {
  position: relative;
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(23, 20, 18, 0.22);
}

.admin-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.calendar-dialog {
  width: min(960px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.calendar-dialog::backdrop {
  background: rgba(0, 0, 0, 0.52);
}

.calendar-dialog-card {
  position: relative;
  padding: 26px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 54px rgba(23, 20, 18, 0.24);
}

.calendar-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-right: 44px;
  margin-bottom: 18px;
}

.calendar-header h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.calendar-header p {
  margin: 0;
  color: var(--muted);
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

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

.calendar-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  justify-content: flex-start;
  margin-bottom: 18px;
}

.calendar-month-picker {
  width: min(240px, 100%);
}

.calendar-range-panel {
  display: grid;
  gap: 10px;
  min-width: min(320px, 100%);
}

.calendar-range-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.calendar-range-reset {
  width: auto;
  min-height: 42px;
  padding: 10px 16px;
}

.legend-chip {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.legend-free {
  background: #e7f7ef;
}

.legend-busy {
  background: #fff0f3;
}

.calendar-months {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.calendar-month {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
}

.calendar-month h4 {
  margin: 0 0 14px;
}

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

.calendar-weekdays span {
  color: #8a8078;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  display: grid;
  width: 100%;
  min-height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  font-size: 13px;
  background: #f6f0ea;
  color: #8a8078;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.calendar-day.free {
  background: #eef8f2;
  color: #137a47;
}

.calendar-day.busy {
  background: #fff1f4;
  color: var(--accent-dark);
}

.calendar-day.today {
  outline: 2px solid rgba(255, 56, 92, 0.4);
  outline-offset: -2px;
}

.calendar-day.selected {
  background: rgba(255, 56, 92, 0.14);
  color: var(--accent-dark);
}

.calendar-day.range-start,
.calendar-day.range-end {
  background: var(--accent);
  color: #fff;
}

.calendar-day.empty {
  background: transparent;
  cursor: default;
}

.calendar-day:not(.empty):hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(23, 20, 18, 0.08);
}

.is-hidden {
  display: none !important;
}

.gallery-grid {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-auto-rows: 230px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: #eee;
  cursor: zoom-in;
}

.gallery-item img {
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-large {
  grid-column: span 2;
  grid-row: span 2;
}

.booking-section {
  padding: 110px 0;
}

.booking-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  padding: 44px;
  border-radius: 8px;
  background: #fffdf9;
  box-shadow: var(--shadow);
}

.booking-panel h2 {
  margin-bottom: 14px;
}

.booking-panel p {
  max-width: 640px;
  margin-bottom: 0;
}

.contact-actions {
  justify-content: end;
}

.footer {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  grid-template-columns: 1fr auto;
  gap: 36px;
  margin: 0 auto;
  padding: 52px 0;
  color: var(--muted);
}

.footer-brand {
  margin-bottom: 14px;
  color: var(--ink);
}

.footer-brand .brand-mark {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
  transform-origin: center;
}

.footer p {
  margin-bottom: 0;
}

.footer-contacts {
  display: grid;
  gap: 8px;
  text-align: right;
}

.lightbox {
  width: min(980px, calc(100% - 34px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.76);
}

.lightbox-stage {
  overflow: hidden;
  border-radius: 8px;
  touch-action: pan-y;
}

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

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  z-index: 30;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.lightbox-arrow-left {
  left: 22px;
}

.lightbox-arrow-right {
  right: 22px;
}

.lightbox-meta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 30;
  transform: translateX(-50%);
}

.lightbox-counter {
  display: inline-flex;
  min-width: 72px;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(25, 23, 21, 0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: auto 1fr auto auto;
    border-radius: 28px;
  }

  .header-phone {
    display: none;
  }

  .admin-trigger,
  .menu-button {
    display: block;
    justify-self: end;
  }

  .nav {
    position: fixed;
    top: 82px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdf9;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 17px 20px;
    border-bottom: 1px solid var(--line);
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
    padding-top: 118px;
  }

  .hero-media img {
    object-position: 62% 46%;
  }

  .hero-content {
    padding-top: 15vh;
  }

  .booking-strip,
  .about-grid,
  .rooms-grid,
  .amenities-grid,
  .occupancy-public,
  .booking-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .occupancy-filter-grid,
  .admin-room-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-booking-form,
  .calendar-months {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    max-width: 100%;
  }

  .about-photo {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .about-photo img {
    object-position: 38% 52%;
  }

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

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

  .gallery-grid {
    grid-auto-rows: 210px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .room-carousel,
  .room-slide img {
    height: 240px;
  }

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

  .footer-contacts {
    text-align: left;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 14px;
    left: 10px;
    right: 10px;
    width: auto;
    min-height: 62px;
    padding: 8px 12px 8px 14px;
    gap: 10px;
    transform: none;
  }

  .brand span:last-child {
    max-width: min(34vw, 128px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .admin-trigger,
  .menu-button {
    width: 42px;
    height: 42px;
  }

  .site-header .brand-mark:hover {
    transform: none;
  }

  .hero {
    padding-inline: 16px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-title {
    gap: 10px;
    margin-bottom: 20px;
  }

  .hero-title-top {
    font-size: 32px;
    line-height: 1.06;
  }

  .hero-title-subline {
    font-size: 32px;
    line-height: 1.06;
  }

  .hero-title-brand {
    font-size: clamp(38px, 11vw, 56px);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.58;
  }

  h2 {
    font-size: 34px;
  }

  .booking-strip {
    margin-top: 72px;
  }

  .booking-strip div {
    padding: 18px;
  }

  .section,
  .rooms-section > *,
  .booking-section > *,
  .occupancy-shell,
  .gallery-grid,
  .footer {
    width: calc(100% - 28px);
  }

  .section,
  .booking-section {
    padding-block: 78px;
  }

  .amenities-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .occupancy-filters,
  .admin-card,
  .calendar-dialog-card {
    padding: 20px;
  }

  .occupancy-card-top {
    gap: 10px;
    margin-bottom: 12px;
  }

  .occupancy-card-headline {
    align-items: start;
  }

  .occupancy-card-headline.is-stacked {
    flex-direction: column;
    align-items: start;
  }

  .occupancy-filter-grid,
  .admin-room-fields {
    grid-template-columns: 1fr;
  }

  .room-footer,
  .room-footer-actions {
    align-items: start;
    justify-content: start;
  }

  .occupancy-filter-actions,
  .calendar-header {
    flex-direction: column;
    align-items: start;
  }

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

  .calendar-dialog {
    width: calc(100% - 20px);
  }

  .calendar-day {
    min-height: 38px;
  }

  .gallery-large {
    grid-column: span 1;
    grid-row: span 1;
  }

  .booking-panel {
    padding: 26px;
  }

  .button {
    width: 100%;
  }

  .occupancy-card-actions {
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
  }

  .occupancy-card-actions .button,
  .occupancy-request-button {
    width: auto;
    min-width: 0;
  }

  .occupancy-request-button {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 10px 14px;
    font-size: 14px;
    white-space: nowrap;
  }

  .occupancy-calendar-button {
    flex: 0 0 42px;
  }

  .carousel-arrow {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .lightbox-arrow {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .lightbox-arrow-left {
    left: 10px;
  }

  .lightbox-arrow-right {
    right: 10px;
  }
}
