/* ============================================================
   Дикий Мед — садиба в Закарпатті
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --ink:          #1b201c;
  --ink-soft:     #2a312b;
  --forest:       #2f4034;
  --forest-deep:  #1f2c23;
  --honey:        #c79a4b;
  --honey-light:  #e0bd7d;
  --honey-deep:   #a87c33;
  --cream:        #f6f2e9;
  --cream-dim:    #ece5d7;
  --paper:        #fffdf9;
  --muted:        #7d7a70;
  --line:         rgba(27, 32, 28, .14);
  --line-light:   rgba(255, 255, 255, .18);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body:    "Manrope", "Segoe UI", system-ui, sans-serif;

  --wrap:  1280px;
  --gut:   clamp(20px, 5vw, 64px);
  --bar-h: 92px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -.01em;
  margin: 0;
}

::selection { background: var(--honey); color: #fff; }

/* ---------- 3. Layout helpers ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding-block: clamp(72px, 10vw, 140px); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }

.section--dark {
  background: var(--forest-deep);
  color: var(--cream);
}
.section--dark .lede { color: rgba(246, 242, 233, .72); }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--honey-deep);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}
.section--dark .eyebrow { color: var(--honey-light); }

.h-display { font-size: clamp(38px, 6vw, 76px); }
.h-section { font-size: clamp(32px, 4.6vw, 58px); }
.h-card    { font-size: clamp(22px, 2.4vw, 30px); }

.lede {
  max-width: 62ch;
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--muted);
  margin: 24px 0 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(40px, 5vw, 68px);
}

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--honey);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 38px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { background: var(--honey-deep); transform: translateY(-2px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: var(--cream);
  border: 1px solid var(--line-light);
}
.btn--ghost-light:hover { background: var(--cream); color: var(--ink); }

.btn--block { width: 100%; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: gap .3s var(--ease), color .3s var(--ease);
}
.link-arrow:hover { gap: 20px; color: var(--honey-deep); }
.section--dark .link-arrow:hover { color: var(--honey-light); }

/* ---------- 5. Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px var(--gut);
  color: var(--cream);
  transition: background .4s var(--ease), padding .4s var(--ease), color .4s var(--ease);
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 16, .62), transparent);
  opacity: 1;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.header.is-stuck {
  background: var(--forest-deep);
  padding-block: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
.header.is-stuck::before { opacity: 0; }

.header__side {
  display: flex;
  align-items: center;
  gap: 26px;
  flex: 1 1 0;
  position: relative;
  z-index: 1;
}
.header__side--right { justify-content: flex-end; }

.header__logo {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: .04em;
  text-align: center;
  line-height: 1;
}
.header__logo small {
  display: block;
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: .4em;
  text-transform: uppercase;
  opacity: .7;
  margin-top: 6px;
}

.header__link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .88;
  transition: opacity .3s var(--ease);
}
.header__link:hover { opacity: 1; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 26px;
  height: 26px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform .35s var(--ease), opacity .25s var(--ease), width .35s var(--ease);
}
.burger span:nth-child(1) { width: 26px; }
.burger span:nth-child(2) { width: 18px; }
.burger span:nth-child(3) { width: 22px; }
.burger:hover span { width: 26px; }

.burger-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.burger-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

/* ---------- 6. Fullscreen nav ---------- */
.nav {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  background: var(--forest-deep);
  color: var(--cream);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
  overflow-y: auto;
}
.nav.is-open { clip-path: inset(0 0 0 0); }

.nav__close {
  position: absolute;
  top: 26px;
  right: var(--gut);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.nav__close i {
  position: relative;
  width: 22px;
  height: 22px;
}
.nav__close i::before,
.nav__close i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
}
.nav__close i::before { transform: rotate(45deg); }
.nav__close i::after  { transform: rotate(-45deg); }

.nav__main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--gut) 60px;
}
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list li { overflow: hidden; }
.nav__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 58px);
  font-weight: 300;
  line-height: 1.24;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity .5s var(--ease), transform .6s var(--ease), color .3s var(--ease);
}
.nav.is-open .nav__list a { opacity: 1; transform: none; }
.nav__list a:hover { color: var(--honey-light); }
.nav__list li:nth-child(1) a { transition-delay: .10s; }
.nav__list li:nth-child(2) a { transition-delay: .16s; }
.nav__list li:nth-child(3) a { transition-delay: .22s; }
.nav__list li:nth-child(4) a { transition-delay: .28s; }
.nav__list li:nth-child(5) a { transition-delay: .34s; }
.nav__list li:nth-child(6) a { transition-delay: .40s; }
.nav__list li:nth-child(7) a { transition-delay: .46s; }
.nav__list li:nth-child(8) a { transition-delay: .52s; }

.nav__aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 28px;
  padding: 120px var(--gut) 60px;
  background: var(--forest);
}
.nav__aside::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--nav-img, none) center/cover no-repeat;
  opacity: .3;
  pointer-events: none;
}
.nav__aside > * { position: relative; z-index: 1; }

.nav__contact {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(246, 242, 233, .78);
}
.nav__contact strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--honey-light);
  margin-bottom: 6px;
}
.nav__contact a:hover { color: var(--honey-light); }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100svh;
  padding: 140px var(--gut) calc(var(--bar-h) + 80px);
  text-align: center;
  color: var(--cream);
  background: var(--forest-deep);
  overflow: hidden;
}
.hero > .hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 16, .5) 0%, rgba(15, 20, 16, .28) 45%, rgba(15, 20, 16, .78) 100%);
}
.hero__inner { position: relative; z-index: 1; max-width: 960px; }
.hero__title {
  font-size: clamp(44px, 8vw, 112px);
  line-height: 1;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .3);
}
.hero__sub {
  margin: 28px auto 0;
  max-width: 54ch;
  font-size: clamp(14px, 1.3vw, 17px);
  color: rgba(246, 242, 233, .85);
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: calc(var(--bar-h) + 26px);
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .7);
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 42px;
  background: linear-gradient(180deg, rgba(246, 242, 233, .7), transparent);
  animation: scrollHint 2s var(--ease) infinite;
}
@keyframes scrollHint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* compact page hero */
.pagehero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 62svh;
  padding: 180px var(--gut) 120px;
  text-align: center;
  color: var(--cream);
  background: var(--forest-deep);
  overflow: hidden;
}
.pagehero > .pagehero__media { position: absolute; inset: 0; }
.pagehero__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 16, .6), rgba(15, 20, 16, .45));
}
.pagehero__inner { position: relative; z-index: 1; max-width: 820px; }
.pagehero .lede { color: rgba(246, 242, 233, .8); margin-inline: auto; }

/* ---------- 8. Image placeholder ---------- */
.ph {
  position: relative;
  background:
    linear-gradient(135deg, rgba(199, 154, 75, .16), rgba(47, 64, 52, .3)),
    var(--forest);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: start;
  padding: 14px 16px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .32);
  pointer-events: none;
}
.ph.has-img::after { display: none; }
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph > img.is-broken { opacity: 0; }

/* ---------- 9. Split section ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}
.split--rev .split__media { order: 2; }
.split__media {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
}
.split__body { max-width: 56ch; }
.split__body .btn,
.split__body .link-arrow { margin-top: 36px; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 28px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.section--dark .stats { border-color: var(--line-light); }
.stats b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 300;
  color: var(--honey-deep);
  line-height: 1;
}
.section--dark .stats b { color: var(--honey-light); }
.stats span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.section--dark .stats span { color: rgba(246, 242, 233, .6); }

/* ---------- 10. Room cards ---------- */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

.room {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.room:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(27, 32, 28, .13); }

.room__media {
  position: relative;
  aspect-ratio: 3 / 2;
}
.room__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 253, 249, .92);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--honey-deep);
}
.room__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}
.room__desc {
  margin: 12px 0 22px;
  font-size: 14.5px;
  color: var(--muted);
}
.room__specs {
  list-style: none;
  margin: 0 0 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
  font-size: 13.5px;
}
.room__specs li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.room__specs span { color: var(--muted); }
.room__specs b { font-weight: 600; text-align: right; }

.room__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.room__price small {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.room__price b {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 400;
}
.room__price b span { font-size: 15px; font-family: var(--font-body); }

/* ---------- 11. Numbered activities ---------- */
.activities {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.act-list { list-style: none; margin: 0; padding: 0; }
.act-list li { border-top: 1px solid var(--line-light); }
.act-list li:last-child { border-bottom: 1px solid var(--line-light); }
.act-list button {
  display: flex;
  align-items: baseline;
  gap: 24px;
  width: 100%;
  padding: 26px 0;
  text-align: left;
  transition: padding-left .4s var(--ease), color .3s var(--ease);
}
.act-list button:hover,
.act-list li.is-active button { padding-left: 16px; color: var(--honey-light); }
.act-list i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--honey-light);
  opacity: .7;
}
.act-list strong {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.8vw, 38px);
  font-weight: 300;
}
.act-media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 4px;
}
.act-media .ph {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s var(--ease);
}
.act-media .ph.is-active { opacity: 1; }

/* ---------- 12. Feature tiles ---------- */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 36px;
  color: var(--cream);
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 16, .12) 30%, rgba(15, 20, 16, .82));
  transition: background .5s var(--ease);
}
.tile:hover::after { background: linear-gradient(180deg, rgba(15, 20, 16, .3) 10%, rgba(15, 20, 16, .9)); }
.tile > * { position: relative; z-index: 1; }
.tile p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: rgba(246, 242, 233, .8);
  max-width: 38ch;
}
.tile .link-arrow { margin-top: 26px; align-self: flex-start; }

/* two big event cards */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 520px;
  padding: 44px;
  color: var(--cream);
  border-radius: 4px;
  overflow: hidden;
}
.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 20, 16, .1) 35%, rgba(15, 20, 16, .85));
}
.event-card > * { position: relative; z-index: 1; }

/* ---------- 13. Sticky booking bar ---------- */
.bookbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: flex;
  align-items: stretch;
  gap: 0;
  background: rgba(31, 44, 35, .93);
  backdrop-filter: blur(14px);
  color: var(--cream);
  border-top: 1px solid rgba(246, 242, 233, .1);
  transform: translateY(0);
  transition: transform .45s var(--ease);
}
.bookbar.is-hidden { transform: translateY(110%); }

.bookbar__field {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  padding: 18px clamp(16px, 2.4vw, 34px);
  text-align: left;
  border-right: 1px solid rgba(246, 242, 233, .12);
  transition: background .3s var(--ease);
}
.bookbar__field:hover { background: rgba(246, 242, 233, .05); }
.bookbar__field small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(246, 242, 233, .55);
  margin-bottom: 5px;
}
.bookbar__field b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bookbar__cta {
  display: flex;
  align-items: center;
  padding-inline: clamp(16px, 2.4vw, 34px);
}
.bookbar__cta .btn { padding-block: 15px; }

/* ---------- 14. Calendar popover ---------- */
.pop {
  position: absolute;
  bottom: calc(100% + 14px);
  left: clamp(8px, 2vw, 24px);
  z-index: 70;
  width: max-content;
  max-width: min(92vw, 680px);
  padding: 24px;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 30px 80px rgba(15, 20, 16, .32);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
}
.pop.is-open { opacity: 1; visibility: visible; transform: none; }

.cal {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}
.cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cal__title {
  font-family: var(--font-display);
  font-size: 20px;
  text-transform: capitalize;
}
.cal__nav {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.cal__nav:hover { background: var(--ink); color: var(--paper); }
.cal__nav:disabled { opacity: .3; cursor: not-allowed; background: none; color: inherit; }

.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal__dow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding-bottom: 8px;
}
.cal__day {
  position: relative;
  aspect-ratio: 1;
  min-width: 38px;
  display: grid;
  place-items: center;
  font-size: 14px;
  border-radius: 4px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.cal__day:disabled { color: rgba(125, 122, 112, .4); cursor: not-allowed; }
.cal__day:not(:disabled):hover { background: var(--cream-dim); }
.cal__day.is-in-range { background: rgba(199, 154, 75, .16); border-radius: 0; }
.cal__day.is-edge { background: var(--honey); color: #fff; }
.cal__day.is-start { border-radius: 4px 0 0 4px; }
.cal__day.is-end   { border-radius: 0 4px 4px 0; }
.cal__day.is-edge.is-solo { border-radius: 4px; }
.cal__empty { aspect-ratio: 1; }

.pop__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* guest stepper */
.guests { display: grid; gap: 6px; min-width: 300px; }
.guest-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.guest-row:last-of-type { border-bottom: 0; }
.guest-row strong { display: block; font-size: 15px; font-weight: 600; }
.guest-row small { display: block; font-size: 12px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 14px; }
.stepper button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.stepper button:not(:disabled):hover { background: var(--ink); color: var(--paper); }
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 22px; text-align: center; font-weight: 600; }

/* ---------- 15. Booking page ---------- */
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  align-items: start;
  gap: clamp(32px, 4vw, 60px);
}

.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0 0 clamp(32px, 4vw, 52px);
  padding: 0;
  counter-reset: s;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.steps li::before {
  counter-increment: s;
  content: counter(s);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cream-dim);
  font-size: 12px;
  color: var(--ink);
}
.steps li.is-active {
  background: var(--forest-deep);
  border-color: var(--forest-deep);
  color: var(--cream);
}
.steps li.is-active::before { background: var(--honey); color: #fff; }
.steps li.is-done { border-color: var(--honey); color: var(--honey-deep); }
.steps li.is-done::before { content: "✓"; background: var(--honey); color: #fff; }

.step-panel { display: none; }
.step-panel.is-active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* search form */
.search-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2px;
  padding: 2px;
  background: var(--cream-dim);
  border-radius: 6px;
  /* Навмисно без overflow:hidden — інакше воно обрізає календар/гостей,
     що випадають нижче полів, і клік по днях перестає працювати. */
}
.search-card__field:first-child { border-radius: 4px 0 0 4px; }
.search-card__field:last-child { border-radius: 0 4px 4px 0; }
.search-card__field {
  position: relative;
  padding: 20px 24px;
  background: var(--paper);
  text-align: left;
}
.search-card__field small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.search-card__field b { font-size: 17px; font-weight: 500; }
.search-card .pop { bottom: auto; top: calc(100% + 12px); }

/* availability list */
.avail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.avail-head p { margin: 0; font-size: 14px; color: var(--muted); }

.offer {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 16px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.offer:hover { border-color: rgba(199, 154, 75, .55); box-shadow: 0 14px 40px rgba(27, 32, 28, .08); }
.offer.is-picked { border-color: var(--honey); background: rgba(199, 154, 75, .06); }
.offer__media { aspect-ratio: 4 / 3; border-radius: 4px; }
.offer__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 10px 0 0;
  padding: 0;
  font-size: 13px;
  color: var(--muted);
}
.offer__price { text-align: right; }
.offer__price b {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.1;
}
.offer__price small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.offer__soldout {
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* summary aside */
.summary {
  position: sticky;
  top: 110px;
  padding: 32px;
  background: var(--forest-deep);
  color: var(--cream);
  border-radius: 6px;
}
.summary h3 { font-size: 26px; margin-bottom: 24px; }
.summary dl {
  display: grid;
  gap: 14px;
  margin: 0 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line-light);
  font-size: 14px;
}
.summary dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}
.summary dt { color: rgba(246, 242, 233, .6); }
.summary dd { margin: 0; text-align: right; font-weight: 500; }
.summary__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.summary__total span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 242, 233, .6); }
.summary__total b { font-family: var(--font-display); font-size: 34px; font-weight: 400; color: var(--honey-light); }
.summary__note { font-size: 12.5px; line-height: 1.7; color: rgba(246, 242, 233, .55); margin: 18px 0 0; }

/* form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 15px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--honey);
  box-shadow: 0 0 0 3px rgba(199, 154, 75, .18);
}
.field input:invalid:not(:placeholder-shown) { border-color: #c0553f; }

.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}
.check input { margin-top: 3px; accent-color: var(--honey); width: 17px; height: 17px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

/* success */
.done {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 18px;
  padding: clamp(48px, 7vw, 90px) 32px;
  background: var(--cream);
  border-radius: 6px;
}
.done__mark {
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--honey);
  color: #fff;
  font-size: 34px;
}
.done__code {
  font-family: var(--font-display);
  font-size: 28px;
  letter-spacing: .1em;
  padding: 12px 28px;
  border: 1px dashed var(--honey);
  border-radius: 4px;
}

/* ---------- 16. Newsletter ---------- */
.news-cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(40px, 5vw, 72px);
  background: var(--forest);
  color: var(--cream);
  border-radius: 6px;
}
.subscribe { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.subscribe input {
  flex: 1 1 240px;
  padding: 16px 20px;
  background: transparent;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: var(--cream);
}
.subscribe input::placeholder { color: rgba(246, 242, 233, .45); }
.subscribe input:focus { outline: 0; border-color: var(--honey-light); }

/* ---------- 17. Footer ---------- */
.footer {
  padding: clamp(60px, 7vw, 96px) 0 calc(var(--bar-h) + 32px);
  background: var(--ink);
  color: rgba(246, 242, 233, .72);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-light);
}
.footer h4 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--honey-light);
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--honey-light); }
.footer__brand {
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--cream);
  margin-bottom: 14px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 12.5px;
  color: rgba(246, 242, 233, .5);
}

/* ---------- 18. Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 19. Responsive ---------- */
@media (max-width: 1080px) {
  .book-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .offer { grid-template-columns: 180px minmax(0, 1fr); }
  .offer__price { grid-column: 2; text-align: left; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --bar-h: 78px; }
  .nav { grid-template-columns: 1fr; }
  .nav__aside { display: none; }
  .split,
  .activities,
  .news-cta { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
  .cal { grid-template-columns: 1fr; gap: 24px; }
  .header__side--left .header__link { display: none; }
}

@media (max-width: 720px) {
  .header { gap: 10px; }
  .header__logo small { display: none; }
  .header__logo { font-size: 19px; }
  .burger-label { display: none; }
  .header__side { gap: 12px; }
  .header__side--right .header__link:first-child { display: none; }
  .header__link { font-size: 10px; letter-spacing: .1em; white-space: nowrap; }
  .bookbar { flex-wrap: wrap; }
  .bookbar__field {
    flex: 1 1 50%;
    padding: 12px 16px;
    border-top: 1px solid rgba(246, 242, 233, .12);
  }
  .bookbar__field:nth-child(2) { border-right: 0; }
  .bookbar__field b { font-size: 13.5px; }
  .bookbar__cta { flex: 1 1 100%; padding: 12px 16px; }
  .bookbar__cta .btn { width: 100%; }
  :root { --bar-h: 220px; }
  .pop { left: 8px; right: 8px; width: auto; }
  .offer { grid-template-columns: 1fr; }
  .offer__price { grid-column: 1; }
  .footer__grid { grid-template-columns: 1fr; }
  .tile { min-height: 340px; }
}
