:root {
  color-scheme: light;
  --ink: #1b2926;
  --green: #214e42;
  --forest: #173c32;
  --paper: #faf8f3;
  --white: #fffefa;
  --text-soft: #54645f;
  --line: #d3d8cd;
  --gold: #c0a26a;
  --display: "Gloock", "PT Serif", Georgia, "Times New Roman", serif;
  --body: "Inter", "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1.05rem, 4vw, 4.5rem);
}
* { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
img, picture { display: block; max-width: 100%; }
a { color: var(--green); text-underline-offset: .23em; text-decoration-thickness: .075em; }
a:hover { color: #376d57; }
:focus-visible { outline: 3px solid #ae761e; outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - var(--gutter) * 2, 80rem); margin-inline: auto; }
h1, h2, h3, .wordmark, .price { font-family: var(--display); font-weight: 400; }
h1, h2, h3, p { margin-block: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 3.35rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
.top {
  min-height: 4.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem 1.6rem;
  color: var(--ink);
  background: var(--paper);
}
.top:not(.wrap) { padding-inline: var(--gutter); }
.top > .wrap, .top nav, .row, .facts, .tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1.1rem;
}
.top > .wrap { justify-content: space-between; }
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: var(--green);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: .13em;
  line-height: 1.2;
  text-decoration: none;
}
.top nav { gap: .45rem clamp(.8rem, 2.3vw, 2rem); }
.top nav a, .foot nav a { display: inline-block; color: var(--ink); text-decoration: none; }
.top nav a { padding-block: .65rem; font-size: .94rem; }
.top nav a:hover, .foot nav a:hover { text-decoration: underline; }
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  min-height: clamp(24rem, 50vw, 38rem);
  overflow: hidden;
  color: white;
  background: #2c4441;
}
.hero picture, .hero > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  width: 100%;
}
.hero picture img, .hero > img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 52%; }
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgb(8 24 25 / 70%), rgb(8 24 25 / 30%) 54%, transparent 85%),
              linear-gradient(0deg, rgb(12 27 30 / 72%), transparent 62%);
}
.hero-copy { position: relative; align-self: end; padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy:not(.wrap) { max-width: 80rem; padding-inline: var(--gutter); }
.hero-copy h1 { max-width: 17ch; font-size: clamp(3.2rem, 6.7vw, 6.7rem); line-height: 1.025; }
.hero-copy p { margin: .95rem 0 0; max-width: 52ch; color: #fff9ee; font-size: clamp(1rem, 1.6vw, 1.3rem); }
.hero-copy small, .hero-copy .pill { color: #fff9eb; }
.hero .btn { margin-top: 1.1rem; }
.search {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(1rem, 2vw, 1.65rem);
  color: var(--ink);
  box-shadow: 0 10px 24px -22px #172a26;
}
.search > *, .cards > *, .stack > *, .row > *, .panel > * { min-width: 0; }
.search button { min-height: 3rem; padding-inline: clamp(1.2rem, 2.1vw, 2rem); }
label { display: grid; gap: .36rem; min-width: 0; font-size: .875rem; font-weight: 600; line-height: 1.4; }
label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) {
  display: flex; align-items: center; gap: .6rem; font-weight: 400;
}
input, textarea, select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: .65rem .78rem;
  border: 1px solid #aeb9af;
  border-radius: .32rem;
  background-color: white;
  color: var(--ink);
  font: 400 1rem/1.35 var(--body);
}
select {
  appearance: none;
  padding-right: 2rem;
  background-image: linear-gradient(45deg, transparent 50%, #496059 50%), linear-gradient(135deg, #496059 50%, transparent 50%);
  background-size: 5px 5px, 5px 5px;
  background-position: right 15px center, right 10px center;
  background-repeat: no-repeat;
}
input[type="checkbox"], input[type="radio"] { width: 1.15rem; min-width: 1.15rem; min-height: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--green); }
input[type="file"] { line-height: 1.6; }
textarea { min-height: 6rem; resize: vertical; }
button, .btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 2.85rem;
  margin: 0;
  padding: .65rem 1.1rem;
  border: 1px solid var(--green);
  border-radius: .32rem;
  background: var(--green);
  color: white;
  font: 600 .95rem/1.35 var(--body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .btn:hover { color: white; background: var(--forest); }
.secondary, .btn.secondary, button.secondary {
  color: var(--green);
  background: transparent;
  border-color: #9cafa2;
}
.secondary:hover, .btn.secondary:hover, button.secondary:hover { color: var(--forest); background: #ebefe7; }
button:disabled { background: #e2e6df; color: #5b6661; border-color: #c6cdc3; cursor: default; }
.section-head { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: end; gap: 1rem; margin: clamp(2rem, 4vw, 4rem) 0 1.25rem; }
.section-head p, .muted { color: var(--text-soft); }
.tools { margin-bottom: 1.2rem; }
.tools label { flex: 1 1 9rem; max-width: 16rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: clamp(.85rem, 2vw, 1.55rem); align-items: stretch; }
.card {
  overflow: hidden;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: .45rem;
  background: var(--white);
}
.card > img, .card > picture img, .card > a > img { display: block; width: 100%; aspect-ratio: 1.72; object-fit: cover; }
.card .room-art { aspect-ratio: 1.72; }
.room-art {
  display: grid;
  place-items: center;
  width: 100%;
  overflow: hidden;
  color: #f8eaca;
  background:
    repeating-radial-gradient(ellipse at 115% 136%, transparent 0 3.5rem, rgb(225 217 172 / 18%) 3.54rem 3.6rem, transparent 3.63rem 4.5rem),
    linear-gradient(115deg, #284b43, #52675c 75%, #788373);
  font: italic 400 clamp(2rem,4vw,4.4rem)/1 var(--display);
  letter-spacing: -.055em;
}
.room-art:empty::after { content: "А"; opacity: .8; }
.card:nth-child(3n+2) .room-art { background-color: #454457; background-blend-mode: soft-light; }
.card:nth-child(3n) .room-art { background-color: #71634b; background-blend-mode: soft-light; }
.card-body { display: grid; align-content: start; gap: .65rem; padding: clamp(1rem, 2vw, 1.65rem); flex: 1; }
.card-body .btn, .card-body button { justify-self: start; }
.price { color: var(--green); font-size: clamp(1.35rem, 2vw, 1.8rem); line-height: 1.22; }
.facts { color: var(--text-soft); font-size: .94rem; gap: .3rem .85rem; }
.pill { display: inline-block; width: fit-content; padding: .18rem .62rem; border: 1px solid currentColor; border-radius: 1rem; font: 500 .85rem/1.45 var(--body); }
.cards.list { grid-template-columns: 1fr; }
.cards.list .card { display: grid; grid-template-columns: minmax(11rem, 28%) 1fr; }
.cards.list .card > img, .cards.list .card > picture img, .cards.list .room-art { height: 100%; min-height: 10rem; }
.panel { padding: clamp(1rem, 2.3vw, 2rem); border: 1px solid var(--line); border-radius: .45rem; background: var(--white); }
.stack { display: grid; gap: 1rem; align-content: start; }
.row { justify-content: flex-start; }
.row > label { flex: 1 1 8rem; }
.gallery { display: flex; gap: .65rem; overflow-x: auto; max-width: 100%; scroll-snap-type: x proximity; }
.gallery img { flex: 0 0 auto; max-width: 100%; height: clamp(10rem, 24vw, 20rem); object-fit: cover; scroll-snap-align: start; border-radius: .3rem; }
.notice { padding: .85rem 1rem; background: #edf2e8; border-inline-start: .22rem solid var(--green); color: var(--ink); }
details { border-bottom: 1px solid var(--line); padding-block: .65rem; }
summary { cursor: pointer; min-height: 2.65rem; align-content: center; font-weight: 600; }
details[open] > summary { margin-bottom: .6rem; }
.mobile-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .7rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .7rem 2rem; padding-block: 2rem; margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid var(--line); color: var(--text-soft); font-size: .93rem; }
.foot:not(.wrap) { padding-inline: var(--gutter); }
.foot nav { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; }
.admin { overflow-wrap: anywhere; }
.admin h1, .admin h2 { margin-block: 1rem; }
.admin fieldset { margin: 0; min-width: 0; padding: 1rem; border: 1px solid var(--line); }
dialog {
  width: min(42rem, calc(100% - 2*var(--gutter)));
  max-width: 100%;
  max-height: 90vh; max-height: 90dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: clamp(1.15rem, 3.5vw, 2.6rem);
  box-shadow: 0 1.25rem 5rem #10251b54;
}
dialog::backdrop { background: rgb(12 24 22 / 65%); }
dialog h2, dialog h3 { padding-right: 2.4rem; margin-block: .5rem 1rem; }
dialog .close {
  float: right;
  position: relative;
  z-index: 2;
  padding: .25rem .55rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border-color: var(--line);
  color: var(--green);
  background: var(--white);
}
@media (min-width: 100rem) { .hero { min-height: 42rem; } }
@media (max-width: 64rem) {
  .search { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .search button { grid-column: span 2; }
}
@media (max-width: 48rem) {
  .top { min-height: 4rem; padding-block: .6rem; }
  .top nav { gap: .1rem .75rem; }
  .top nav a { padding-block: .45rem; }
  .hero { min-height: 26rem; }
  .hero-copy { padding-block: 3rem; }
  .hero picture img, .hero > img { object-position: 57% center; }
  .search { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .search button { grid-column: 1 / -1; }
  .cards.list .card { grid-template-columns: minmax(6rem, 28%) 1fr; }
  .cards.list .room-art { aspect-ratio: auto; }
  .mobile-total {
    position: sticky;
    bottom: 0;
    z-index: 3;
    padding: .65rem .8rem max(.7rem, env(safe-area-inset-bottom));
    background: var(--white);
    border-top: 1px solid var(--line);
  }
  dialog { width: calc(100% - 1rem); max-height: 94dvh; }
}
@media (max-width: 28rem) {
  .top { gap: .2rem .8rem; }
  .hero-copy h1 { font-size: clamp(2.55rem, 11vw, 3.2rem); }
  .search { padding: .75rem; gap: .65rem; }
  .search input, .search select { padding-inline-start: .5rem; }
  .cards.list .card-body { padding: .8rem; }
  .tools { gap: .5rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
input[type="hidden"] { display: none; }
.hero + .wrap > .search { margin-top: -1.8rem; border-radius: .45rem; }
.hero-copy { padding-bottom: clamp(4.3rem, 8vw, 7rem); }
.cards:not(.list) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr)); }
#rooms { scroll-margin-top: 1.3rem; }
#count { color: var(--text-soft); }
#status:not(:empty), #alternatives:not(:empty) { padding-block: .8rem; }
#stay { margin-top: clamp(2.4rem, 5vw, 4.8rem); }
#stay > .facts { margin-block: 1.1rem; }
#stay > h3 { margin-top: 1.4rem; }
#stay > details p + p { margin-top: .5rem; }
#reserve, #submit-book { margin-top: 1.2rem; }
#reserve fieldset { display: grid; gap: .55rem; min-width: 0; margin: 0; padding: 1rem; border: 1px solid var(--line); }
#reserve legend { padding-inline: .3rem; }
#summary, #description, #roomfacts { margin-block: .55rem; }
#timer:not(:empty) { margin-top: 1rem; }
.notice:empty, .error:empty, .gallery:empty { display: none; }
.error:not(:empty), .admin [role="alert"] { color: #842c25; padding: .65rem .85rem; background: #faeae4; margin-top: .75rem; }
.admin { padding-block: 2rem 4rem; }
.admin > form, .admin > details { max-width: 54rem; }
.admin > details + details { margin-top: .65rem; }
.admin [role="status"] { color: var(--forest); }
@media (max-width: 28rem) {
  .top nav { gap: .35rem .65rem; }
  .top nav button { padding-inline: .65rem; }
  .mobile-total > button { flex: 1 1 12rem; }
}
.hero, .room-slider { touch-action: pan-y pinch-zoom; }
.room-slider { position: relative; min-width: 0; overflow: hidden; background: var(--paper); }
.room-slider img { width: 100%; aspect-ratio: 1.72; object-fit: cover; }
.cards.list .room-slider img { height: 100%; }
#gallery { clear: both; }
#gallery .room-slider { border-radius: .32rem; }
#gallery img { max-height: 48vh; object-fit: contain; }
@media (max-width: 48rem) {
  .cards.list .card:has(.room-slider) { grid-template-columns: 1fr; }
}

.room-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--ink);
  overflow-wrap: anywhere;
}
#description { white-space: pre-line; overflow-wrap: anywhere; }
.error button, .error a, #status a { display: block; margin-top: .5rem; }

.wordmark { font-weight: 700; max-width: 100%; overflow-wrap: anywhere; }
.wordmark.brand-regular { font-weight: 400; }
#brand-settings output { display: block; }
