@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap&subset=cyrillic');

:root {
  --background: #f3f1ea;
  --foreground: #1c2a22;
  --card: #faf8f2;
  --primary: #2f5d45;
  --primary-foreground: #f4f7f2;
  --secondary: #dfe8df;
  --muted: #e7ebe3;
  --muted-foreground: #5a6b60;
  --accent: #a67c35;
  --destructive: #b33a2b;
  --border: #cfd8cf;
  --moss: #3f6f52;
  --pine: #1a3328;
  --fog: #e8ece4;
  --amber-glow: #d4a85a;
  --radius: 0.5rem;
  --font-sans: "EB Garamond", "Times New Roman", serif;
  --font-display: "Cormorant Garamond", "EB Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html { font-size: 18.5px; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--foreground);
  background: var(--background);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.font-display { font-family: var(--font-display), Georgia, serif; font-weight: 400; }
.text-pine { color: var(--pine); }
.text-moss { color: var(--moss); }
.text-muted { color: var(--muted-foreground); }
.text-amber { color: var(--amber-glow); }
.text-white { color: #fff; }
.text-destructive { color: var(--destructive); }

.container { width: min(1152px, 100%); margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 768px) { .container { padding: 0 2rem; } }

.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1152px; margin: 0 auto; padding: 1.25rem;
}
@media (min-width: 768px) { .site-header .inner { padding: 1.25rem 2rem; } }
.brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}
@media (min-width: 768px) { .brand { font-size: 1.875rem; } }
.nav { display: flex; gap: 1.15rem; align-items: center; font-size: 1.15rem; color: rgba(255,255,255,.9); }
.nav a:hover { color: #fff; }
.nav .cta {
  background: rgba(255,255,255,.15); padding: .375rem .75rem; border-radius: .375rem;
  backdrop-filter: blur(6px);
}
.nav .hide-sm { display: none; }
@media (min-width: 640px) { .nav .hide-sm { display: inline; } }

.hero {
  position: relative; min-height: 100svh; overflow: hidden;
}
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 75% 62%;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(26,51,40,.55), rgba(26,51,40,.35), rgba(26,51,40,.8));
}
.hero-fade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6.5rem;
  background: var(--background);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 10;
  max-width: 1152px; margin: 0 auto;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem 1.25rem 4rem;
}
@media (min-width: 768px) {
  .hero-content { padding: 7rem 2rem 6rem; }
}
.eyebrow {
  margin: 0 0 .35rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem; letter-spacing: .28em; text-transform: uppercase;
  color: #3a3a3a;
  text-shadow: 0 1px 8px rgba(255,255,255,.35);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
@media (min-width: 768px) { .hero h1 { font-size: 6rem; } }
.hero-lead {
  margin: 0 0 .85rem; max-width: 36rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
}
@media (min-width: 768px) { .hero-lead { font-size: .9rem; } }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-actions .btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .9rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-actions .btn-accent {
  background: #b8904a;
  color: #14241c;
  text-shadow: none;
  box-shadow: none;
}
.hero-actions .btn-accent:hover {
  filter: none;
  background: #c49a52;
  color: #14241c;
}
.hero-actions .btn-ghost {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.22);
  color: rgba(255,255,255,.62);
  font-weight: 500;
  font-size: .875rem;
  letter-spacing: .22em;
}
.hero-actions .btn-ghost:hover {
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.85);
  border-color: rgba(255,255,255,.35);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: .375rem; cursor: pointer;
  font: inherit; font-weight: 500; font-size: .95rem;
  padding: .75rem 1.25rem; transition: .15s ease;
}
.btn-accent { background: var(--accent); color: #0f1a14; }
.btn-accent:hover { filter: brightness(1.08); }
.btn-ghost {
  background: rgba(255,255,255,.1); color: #fff;
  border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.2); }
.btn-primary { background: var(--primary); color: var(--primary-foreground); width: 100%; }
.btn-primary:hover { background: var(--moss); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-sm { padding: .35rem .7rem; font-size: .8rem; }
.btn-outline {
  background: #fff; border: 1px solid var(--border); color: var(--foreground);
}
.btn-secondary { background: var(--secondary); color: var(--pine); }

.section { padding: 5rem 0; }
@media (min-width: 768px) { .section { padding: 7rem 0; } }
.section h2 {
  margin: 0; font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.25rem; color: var(--pine);
  letter-spacing: 0.02em;
}
@media (min-width: 768px) { .section h2 { font-size: 3rem; } }
.section-lead { margin: .75rem 0 0; max-width: 36rem; color: var(--muted-foreground); }
.grid-2 {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.media {
  position: relative; aspect-ratio: 4/3; overflow: hidden; border-radius: 1.5rem;
}
.media img { width: 100%; height: 100%; object-fit: cover; }

/* —— Coverflow gallery —— */
.gallery-section { padding-top: 4rem; padding-bottom: 4.5rem; overflow: hidden; }
.gallery-intro {
  margin-bottom: 2.25rem;
  text-align: center;
  max-width: none;
}
.gallery-intro h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.25rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--pine);
}
@media (min-width: 768px) {
  .gallery-intro h2 { font-size: 3rem; }
}
.coverflow {
  position: relative;
  --cf-card-w: min(58vw, 260px);
  --cf-card-h: calc(var(--cf-card-w) * 1.25);
  width: 100%;
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.25rem;
  user-select: none;
  touch-action: pan-y;
}
@media (min-width: 768px) {
  .coverflow {
    --cf-card-w: min(32vw, 320px);
    padding: 0 2rem;
  }
}
.coverflow-viewport {
  position: relative;
  height: calc(var(--cf-card-h) + 2.5rem);
  overflow: visible;
  perspective: 1200px;
}
.coverflow-track {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: none;
}
.coverflow-track.is-dragging .coverflow-item {
  transition-duration: .08s;
}
.coverflow-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--cf-card-w);
  height: var(--cf-card-h);
  margin: 0;
  transform-origin: center center;
  transition: transform .55s cubic-bezier(.22, .8, .28, 1), opacity .45s ease;
  will-change: transform, opacity;
}
.coverflow-card {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(26, 51, 40, .18);
  transition: box-shadow .35s ease, filter .35s ease;
}
.coverflow-item.is-active .coverflow-card {
  box-shadow: 0 22px 48px rgba(26, 51, 40, .28);
  cursor: zoom-in;
}
.coverflow-item:not(.is-active) .coverflow-card {
  filter: saturate(.88) brightness(.92);
}
.coverflow-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
.coverflow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-60%);
  z-index: 40;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(207, 216, 207, .9);
  background: rgba(250, 248, 242, .92);
  color: var(--pine);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.coverflow-nav:hover { background: #fff; }
.coverflow-prev { left: .35rem; }
.coverflow-next { right: .35rem; }
@media (min-width: 768px) {
  .coverflow-prev { left: .75rem; }
  .coverflow-next { right: .75rem; }
}
.coverflow-dots {
  display: flex;
  justify-content: center;
  gap: .45rem;
  margin-top: 1.25rem;
}
.coverflow-dot {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(47, 93, 69, .28);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.coverflow-dot.is-active {
  background: var(--primary);
  transform: scale(1.25);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 20, 16, .88);
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.lightbox[hidden] { display: none !important; }
body.lightbox-open { overflow: hidden; }
.lightbox-img {
  max-width: min(92vw, 960px);
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: .75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,.45);
}
.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
}
.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}
.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
}
.lightbox-prev { left: .75rem; }
.lightbox-next { right: .75rem; }
.lightbox-close:hover,
.lightbox-nav:hover { background: rgba(255,255,255,.22); }
.amenity-list {
  list-style: none; margin: 3rem 0 0; padding: 0;
  display: grid; gap: 2.5rem;
}
@media (min-width: 640px) { .amenity-list { grid-template-columns: 1fr 1fr; } }
.amenity-list li { border-left: 2px solid rgba(63,111,82,.5); padding-left: 1.25rem; }
.amenity-list h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.amenity-list p { margin: .5rem 0 0; color: var(--muted-foreground); }

.booking-grid {
  display: grid; gap: 2rem;
}
@media (min-width: 1024px) { .booking-grid { grid-template-columns: 1.1fr .9fr; } }
.panel {
  background: rgba(250,248,242,.85); border: 1px solid rgba(207,216,207,.7);
  border-radius: 1rem; padding: 1.25rem; box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
@media (min-width: 768px) { .panel { padding: 1.5rem; } }
.cal-nav {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem;
}
.cal-nav h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: .35rem; text-align: center;
}
.cal-dow { font-size: .75rem; color: var(--muted-foreground); padding: .25rem 0; }
.cal-day {
  aspect-ratio: 1; border: 0; border-radius: .5rem; background: transparent;
  font: inherit; cursor: pointer; color: var(--foreground);
}
.cal-day:hover:not(:disabled) { background: var(--secondary); }
.cal-day:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.cal-day.in-range { background: var(--secondary); }
.cal-day.range-edge { background: var(--primary); color: #fff; }
.cal-day.outside { visibility: hidden; }

.form-grid { display: grid; gap: .75rem; }
label { display: grid; gap: .35rem; font-size: .875rem; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=password], textarea, select {
  width: 100%; border: 1px solid var(--border); border-radius: .5rem;
  padding: .55rem .7rem; font: inherit; background: #fff;
}
.chan-row {
  display: flex; gap: .75rem; align-items: flex-start;
  background: rgba(223,232,223,.6); border-radius: .75rem; padding: .75rem;
}
.quote-box {
  background: rgba(232,236,228,.8); border-radius: .75rem; padding: .85rem 1rem;
  font-size: .875rem; display: grid; gap: .35rem;
}
.quote-box .row { display: flex; justify-content: space-between; }
.quote-box .total { border-top: 1px solid rgba(207,216,207,.6); padding-top: .5rem; font-weight: 600; }

.site-footer {
  background: var(--pine); color: #fff; margin-top: auto;
}
.site-footer .inner {
  max-width: 1152px; margin: 0 auto; padding: 3.5rem 1.25rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}
@media (min-width: 768px) {
  .site-footer .inner {
    flex-direction: row; justify-content: space-between; align-items: flex-end; padding: 3.5rem 2rem;
  }
}
.site-footer .brand { font-size: 2.25rem; text-shadow: none; }
.site-footer p { margin: .5rem 0 0; color: rgba(255,255,255,.75); max-width: 24rem; }
.footer-contacts { font-size: .875rem; color: rgba(255,255,255,.8); display: grid; gap: .25rem; }
.footer-contacts a { color: rgba(212,168,90,.95); }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes soft-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: .9; }
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-8px); }
}
.animate-fade-up { animation: fade-up .9s ease-out both; }
.animate-fade-up-delay { animation: fade-up 1s ease-out .2s both; }
.animate-fade-up-delay-2 { animation: fade-up 1s ease-out .4s both; }
.animate-soft-pulse { animation: soft-pulse 4s ease-in-out infinite; }
.animate-drift { animation: drift 5s ease-in-out infinite alternate; }

.page { max-width: 40rem; margin: 0 auto; padding: 3rem 1.25rem; }
.admin-page { max-width: 72rem; margin: 0 auto; padding: 2rem 1rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.tab {
  border: 1px solid var(--border); background: #fff; border-radius: .5rem;
  padding: .4rem .8rem; cursor: pointer; font: inherit;
}
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: .75rem; overflow: hidden; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid var(--border); font-size: .875rem; vertical-align: top; }
.badge {
  display: inline-block; padding: .15rem .5rem; border-radius: 999px;
  background: var(--secondary); font-size: .75rem;
}
.badge.ok { background: var(--primary); color: #fff; }
.stack { display: grid; gap: 1rem; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: .75rem; padding: 1.25rem; }
.msg { color: var(--moss); font-size: .875rem; }
.timer {
  border: 1px solid rgba(212,168,90,.4); background: rgba(201,166,107,.15);
  border-radius: .75rem; padding: 1rem;
}
.timer .time { font-family: var(--font-display); font-size: 2.25rem; color: var(--pine); font-variant-numeric: tabular-nums; }
.warn {
  border: 1px solid rgba(179,58,43,.3); background: rgba(179,58,43,.05);
  border-radius: .75rem; padding: 1rem; font-size: .875rem;
}
.okbox {
  border: 1px solid rgba(63,111,82,.4); background: rgba(223,232,223,.6);
  border-radius: .75rem; padding: 1rem; font-size: .875rem;
}