:root {
  --ivory: #f7f1e8;
  --linen: #eee2d2;
  --sand: #d9c1a0;
  --walnut: #5d402c;
  --olive: #6d7358;
  --olive-dark: #464b39;
  --graphite: #242522;
  --muted: #746c62;
  --white: #fffaf3;
  --line: rgba(36, 37, 34, 0.14);
  --shadow: 0 24px 70px rgba(36, 37, 34, 0.14);
  --radius: 8px;
  --container: min(1120px, calc(100vw - 36px));
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(247, 241, 232, 0.9), rgba(238, 226, 210, 0.65)),
    var(--ivory);
  color: var(--graphite);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(36, 37, 34, 0.035) 1px, transparent 1px);
  background-size: 100% 9px;
  opacity: 0.42;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(109, 115, 88, 0.55);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: var(--white);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  width: var(--container);
  margin: 14px auto 0;
  padding: 10px;
  border: 1px solid rgba(255, 250, 243, 0.2);
  border-radius: var(--radius);
  background: rgba(36, 37, 34, 0.42);
  color: var(--white);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(36, 37, 34, 0.12);
  background: rgba(255, 250, 243, 0.9);
  color: var(--graphite);
  box-shadow: 0 14px 40px rgba(36, 37, 34, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  gap: 10px;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-nav {
  display: none;
}

.site-nav a,
.header-phone {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  opacity: 0.78;
  transition: opacity 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active,
.header-phone:hover {
  opacity: 1;
  color: var(--sand);
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-scrolled .header-phone:hover {
  color: var(--olive-dark);
}

.header-phone {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 9px 11px;
  border: 1px solid currentColor;
  border-radius: 999px;
  line-height: 1.1;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding: 112px 0 26px;
  isolation: isolate;
  color: var(--white);
}

.hero-media,
.hero-media::after {
  position: absolute;
  inset: 0;
}

.hero-media {
  z-index: -2;
  overflow: hidden;
  background: var(--graphite);
}

.hero-media::after {
  content: "";
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(36, 37, 34, 0.4), rgba(36, 37, 34, 0.16) 42%, rgba(36, 37, 34, 0.72)),
    linear-gradient(90deg, rgba(36, 37, 34, 0.72), rgba(36, 37, 34, 0.16) 58%, rgba(36, 37, 34, 0.42)),
    rgba(93, 64, 44, 0.18);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 900ms ease-out;
}

.hero-content {
  width: var(--container);
  margin: 0 auto;
  padding: 16px 0 28px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: rgba(255, 250, 243, 0.82);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  font-size: 58px;
}

h2 {
  font-size: 40px;
}

h3 {
  font-size: 34px;
}

p {
  margin: 0;
}

.hero-lead {
  max-width: 650px;
  margin-top: 18px;
  color: rgba(255, 250, 243, 0.86);
  font-size: 17px;
  line-height: 1.45;
}

.hero-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 18px;
  margin-top: 22px;
  color: rgba(255, 250, 243, 0.82);
  font-size: 14px;
  font-weight: 700;
}

.hero-details a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero-actions,
.contact-copy .button {
  margin-top: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: var(--olive-dark);
  color: var(--white);
}

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

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

.hero .button-primary:hover {
  background: var(--sand);
}

.button-ghost {
  border-color: rgba(255, 250, 243, 0.44);
  color: var(--white);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 250, 243, 0.1);
}

.hero-strip {
  width: var(--container);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin: 0 auto;
  border: 1px solid rgba(255, 250, 243, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 250, 243, 0.14);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.hero-strip div {
  padding: 16px;
  background: rgba(36, 37, 34, 0.24);
}

.hero-strip span {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.hero-strip small {
  display: block;
  margin-top: 6px;
  color: rgba(255, 250, 243, 0.75);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 74px 0;
}

.about {
  padding-top: 94px;
}

.about-grid {
  display: grid;
  gap: 18px;
}

.about-copy {
  padding-bottom: 12px;
}

.about-copy p,
.section-heading > p,
.atmosphere .section-heading > p {
  color: var(--muted);
  font-size: 16px;
}

.about-copy p {
  max-width: 740px;
  margin-top: 18px;
}

.about-visual,
.about-note,
.room,
.contact-panel {
  border-radius: var(--radius);
}

.about-visual {
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 700ms ease;
}

.about-visual:hover img,
.masonry-gallery img:hover,
.room-gallery img:hover {
  transform: scale(1.035);
}

.about-note {
  padding: 22px;
  background: var(--graphite);
  color: var(--white);
}

.about-note strong {
  display: block;
  margin-bottom: 8px;
  color: var(--sand);
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1;
}

.about-note p {
  color: rgba(255, 250, 243, 0.72);
}

.section-heading {
  display: grid;
  gap: 20px;
  margin-bottom: 28px;
}

.section-heading h2 {
  max-width: 860px;
}

.section-heading > p {
  max-width: 520px;
}

.rooms {
  width: 100%;
  padding: 78px max(18px, calc((100vw - 1120px) / 2));
  background: #e7dccb;
}

.room {
  display: grid;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(36, 37, 34, 0.1);
  background: rgba(255, 250, 243, 0.72);
  box-shadow: 0 16px 48px rgba(36, 37, 34, 0.08);
  overflow: hidden;
}

.room + .room {
  margin-top: 24px;
}

.room-copy {
  align-self: center;
  min-width: 0;
}

.room-copy h3 {
  margin-top: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.room-copy > p {
  margin-top: 14px;
  color: var(--muted);
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.amenities li {
  padding: 7px 10px;
  border: 1px solid rgba(109, 115, 88, 0.22);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.62);
  color: var(--olive-dark);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
}

.room-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(250px, 82%);
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 8px;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--olive) rgba(36, 37, 34, 0.1);
}

.room-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  cursor: zoom-in;
  object-fit: cover;
  scroll-snap-align: start;
  transition: transform 600ms ease, filter 200ms ease;
}

.atmosphere {
  padding-top: 94px;
}

.masonry-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.masonry-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  cursor: zoom-in;
  object-fit: cover;
  box-shadow: 0 12px 34px rgba(36, 37, 34, 0.1);
  transition: transform 650ms ease, box-shadow 220ms ease;
}

.room-gallery img[role="button"]:focus-visible,
.masonry-gallery img[role="button"]:focus-visible {
  outline: 3px solid rgba(109, 115, 88, 0.62);
  outline-offset: 4px;
}

.masonry-gallery img:nth-child(3n + 1) {
  aspect-ratio: 5 / 4;
}

.masonry-gallery img:nth-child(4n) {
  aspect-ratio: 1 / 1;
}

.contacts {
  width: 100%;
  padding: 76px max(18px, calc((100vw - 1120px) / 2));
}

.contact-panel {
  display: grid;
  gap: 16px;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
  box-shadow: var(--shadow);
}

.contact-copy {
  padding: 26px;
}

.contact-copy .section-kicker {
  color: var(--sand);
}

.contact-copy h2 {
  max-width: 760px;
  font-size: 36px;
}

.contact-groups {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.contact-groups h3 {
  margin-bottom: 8px;
  color: var(--sand);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-transform: uppercase;
}

.contact-groups a {
  display: flex;
  min-height: 44px;
  align-items: center;
  width: fit-content;
  color: rgba(255, 250, 243, 0.84);
  font-weight: 700;
  line-height: 1.8;
  text-decoration: underline;
  text-decoration-color: rgba(255, 250, 243, 0.28);
  text-underline-offset: 4px;
}

.contact-groups a:hover {
  color: var(--sand);
}

.map-wrap {
  min-height: 360px;
  background: var(--linen);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  filter: saturate(0.82) contrast(0.98);
}

.site-footer {
  display: grid;
  gap: 18px;
  width: var(--container);
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer strong,
.site-footer a {
  color: var(--graphite);
  font-weight: 800;
}

.site-footer span,
.site-footer a {
  display: flex;
  min-height: 44px;
  align-items: center;
}

.site-footer a:hover {
  color: var(--olive-dark);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 72px 18px 28px;
  background: rgba(20, 20, 18, 0.9);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  display: grid;
  gap: 12px;
  width: min(1120px, 100%);
  margin: 0;
  justify-items: center;
}

.lightbox-figure img {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 820px);
  max-height: min(78svh, 820px);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
}

.lightbox-figure figcaption {
  max-width: 760px;
  color: rgba(255, 250, 243, 0.78);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 250, 243, 0.28);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.1);
  color: var(--white);
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.lightbox-close::before,
.lightbox-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 17px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}

.lightbox-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.lightbox-nav::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  border-radius: 1px;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 250, 243, 0.62);
  background: rgba(255, 250, 243, 0.18);
}

.lightbox-close {
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  transform: translateY(calc(-50% - 1px));
}

.lightbox-prev {
  left: 18px;
}

.lightbox-prev::before {
  transform: translateX(2px) rotate(-135deg);
}

.lightbox-next {
  right: 18px;
}

.lightbox-next::before {
  transform: translateX(-2px) rotate(45deg);
}

.reveal {
  transform: none;
  opacity: 1;
}

.can-reveal .reveal {
  transform: translateY(18px);
  opacity: 0;
  transition: opacity 650ms ease, transform 650ms ease;
}

.can-reveal .reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@media (min-width: 640px) {
  :root {
    --container: min(1120px, calc(100vw - 56px));
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .site-nav {
    display: flex;
    justify-content: center;
    gap: 22px;
  }

  .hero {
    padding-bottom: 34px;
  }

  h1 {
    font-size: 96px;
  }

  h2 {
    font-size: 54px;
  }

  h3 {
    font-size: 42px;
  }

  .hero-lead {
    font-size: 20px;
  }

  .hero-details {
    display: flex;
    flex-wrap: wrap;
  }

  .hero-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr 0.86fr;
    align-items: end;
  }

  .about-copy {
    grid-column: 1 / 3;
  }

  .about-note {
    min-height: 230px;
    display: grid;
    align-content: end;
  }

  .section-heading {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.42fr);
    align-items: end;
  }

  .contact-groups,
  .site-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-copy h2 {
    font-size: 54px;
  }

  .site-footer p {
    grid-column: 1 / 3;
  }
}

@media (min-width: 860px) {
  .site-header {
    padding: 12px 14px;
  }

  .hero {
    min-height: 96vh;
    min-height: 96svh;
    padding-top: 132px;
  }

  h1 {
    font-size: 132px;
  }

  h2 {
    font-size: 70px;
  }

  h3 {
    font-size: 52px;
  }

  .hero-lead {
    font-size: 22px;
  }

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

  .about-grid {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 24px;
  }

  .about-copy {
    grid-column: auto;
    padding-right: 24px;
  }

  .about-visual {
    grid-row: span 2;
  }

  .about-visual img {
    aspect-ratio: 3 / 4;
  }

  .room {
    grid-template-columns: minmax(320px, 0.5fr) minmax(0, 1fr);
    gap: 24px;
    padding: 24px;
  }

  .room:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.5fr);
  }

  .room-copy h3 {
    font-size: 46px;
  }

  .room:nth-of-type(even) .room-copy {
    order: 2;
  }

  .room-gallery {
    grid-auto-flow: initial;
    grid-auto-columns: initial;
    grid-template-columns: repeat(6, 1fr);
    overflow: visible;
    padding-bottom: 0;
  }

  .room-gallery img {
    min-height: 172px;
  }

  .room-gallery img:first-child {
    grid-column: span 3;
    grid-row: span 2;
  }

  .room-gallery img:not(:first-child) {
    grid-column: span 2;
  }

  .masonry-gallery {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-flow: dense;
  }

  .masonry-gallery img:nth-child(1),
  .masonry-gallery img:nth-child(6) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .masonry-gallery img:nth-child(2),
  .masonry-gallery img:nth-child(5) {
    grid-column: span 2;
  }

  .contact-panel {
    grid-template-columns: 0.95fr 1.05fr;
    min-height: 620px;
  }

  .contact-copy {
    display: grid;
    align-content: center;
    padding: 42px;
  }

  .contact-copy h2 {
    font-size: 64px;
  }

  .map-wrap,
  .map-wrap iframe {
    min-height: 620px;
  }
}

@media (min-width: 1120px) {
  h1 {
    font-size: 168px;
  }

  h2 {
    font-size: 86px;
  }

  h3 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 23px;
  }

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

  .room {
    padding: 28px;
  }

  .room-copy h3 {
    font-size: 52px;
  }

  .room-gallery img {
    min-height: 188px;
  }

  .contact-copy h2 {
    font-size: 70px;
  }
}

@media (max-width: 430px) {
  .header-phone {
    max-width: 96px;
    padding-inline: 9px;
    overflow: hidden;
    font-size: 0;
  }

  .header-phone::after {
    content: "Дзвінок";
    font-size: 13px;
  }

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

  .contact-copy {
    padding: 22px;
  }

  .lightbox {
    padding-inline: 12px;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .lightbox-nav:hover {
    transform: translateY(-1px);
  }

  .lightbox-prev {
    left: calc(50% - 58px);
  }

  .lightbox-next {
    right: calc(50% - 58px);
  }

  .lightbox-figure img {
    max-height: 72vh;
    max-height: 72svh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    transform: none;
    opacity: 1;
  }

  .hero-image {
    transform: none !important;
  }
}
