/* ============================================
   Континенталь — Landing Page Styles
   ============================================ */

:root {
  --forest: #2D4A3E;
  --forest-light: #3D6B58;
  --forest-dark: #1E3329;
  --wood: #C4A484;
  --wood-warm: #D4B896;
  --gold: #B8956A;
  --gold-light: #D4AF7A;
  --charcoal: #2A2A2A;
  --cream: #FAF7F2;
  --sand: #EDE6DA;
  --sand-dark: #D9CFBF;
  --white: #FFFFFF;
  --text: #3A3A3A;
  --text-light: #6B6B6B;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-script: 'Marck Script', 'Segoe Script', cursive;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(45, 74, 62, 0.08);
  --shadow-lg: 0 20px 60px rgba(45, 74, 62, 0.15);
  --transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 80px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* ---- Preloader ---- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--forest-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader__inner {
  text-align: center;
}

.preloader__logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: pulse 1.5s ease infinite;
}

.preloader__bar {
  width: 120px;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader__bar span {
  display: block;
  height: 100%;
  width: 40%;
  background: var(--gold-light);
  border-radius: 3px;
  animation: loading 1.2s ease infinite;
}

@keyframes loading {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.05); opacity: 0.85; }
}

/* ---- Header ---- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}

.header:not(.scrolled) {
  background: rgba(250, 247, 242, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header:not(.scrolled) .logo__text strong,
.header:not(.scrolled) .logo__text small {
  color: var(--forest);
}

.header:not(.scrolled) .logo__text small {
  color: var(--text-light);
}

.header:not(.scrolled) .nav__link {
  color: var(--text);
}

.header:not(.scrolled) .nav__link:hover {
  color: var(--forest);
}

.header:not(.scrolled) .header__phone {
  color: var(--forest);
  border-color: var(--forest);
}

.header:not(.scrolled) .header__phone:hover {
  background: var(--forest);
  color: var(--white);
}

.header:not(.scrolled) .burger span {
  background: var(--forest);
}

.header.scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--forest);
}

.logo__text small {
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover {
  color: var(--forest);
}

.nav__link:hover::after {
  width: 100%;
}

.header__phone {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--forest);
  white-space: nowrap;
  padding: 10px 20px;
  border: 1.5px solid var(--forest);
  border-radius: 100px;
  transition: all var(--transition);
}

.header__phone:hover {
  background: var(--forest);
  color: var(--white);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition);
  border: 2px solid transparent;
}

.btn--primary {
  background: var(--forest);
  color: var(--white);
  border-color: var(--forest);
}

.btn--primary:hover {
  background: var(--forest-light);
  border-color: var(--forest-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 74, 62, 0.3);
}

.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
}

.btn--light {
  background: var(--white);
  color: var(--forest);
}

.btn--light:hover {
  background: var(--sand);
}

.btn--full {
  width: 100%;
}

/* ---- Section common ---- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-head {
  margin-bottom: 48px;
}

.section-head--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-head p,
.lead {
  color: var(--text-light);
  font-size: 1.05rem;
}

.lead {
  font-size: 1.15rem;
  margin-bottom: 20px;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  transition: transform 10s ease;
  filter: brightness(1.06) saturate(1.1);
}

.hero.loaded .hero__bg img {
  transform: scale(1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 65% at 50% 42%, rgba(255, 252, 247, 0.82) 0%, rgba(255, 252, 247, 0.45) 50%, rgba(255, 252, 247, 0.12) 100%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, rgba(250, 247, 242, 0.08) 60%, rgba(45, 74, 62, 0.08) 100%);
}

.hero__grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__brand {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-h) + 32px) 24px 100px;
  max-width: 820px;
  width: 100%;
}

.hero__logo-wrap {
  position: relative;
  width: 168px;
  height: 168px;
  margin-bottom: 28px;
}

.hero__logo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.85),
    0 0 0 6px rgba(212, 175, 122, 0.45),
    0 16px 48px rgba(45, 74, 62, 0.18);
}

.hero__logo-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px solid rgba(184, 149, 106, 0.5);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__logo-ring--outer {
  width: 210px;
  height: 210px;
  animation: heroRingPulse 4s ease-in-out infinite;
}

.hero__logo-ring--inner {
  width: 188px;
  height: 188px;
  border-style: dashed;
  border-color: rgba(45, 74, 62, 0.15);
  animation: heroRingSpin 28s linear infinite;
}

@keyframes heroRingPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.04); }
}

@keyframes heroRingSpin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.hero__location {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}

.hero__script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(2.8rem, 7.5vw, 5rem);
  line-height: 1.05;
  margin-bottom: 8px;
  color: var(--forest-dark);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero__script-line {
  display: block;
}

.hero__script-line--accent {
  color: var(--forest-light);
  font-size: 1.08em;
  margin-top: -4px;
}

.hero__brand-name {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 14px;
}

.hero__descriptor {
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  color: var(--text-light);
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}

.hero__divider {
  width: min(280px, 60vw);
  margin-bottom: 32px;
}

.hero__divider span {
  display: block;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(184, 149, 106, 0.55) 20%,
    rgba(184, 149, 106, 0.55) 80%,
    transparent
  );
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero .btn--ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--forest);
  border-color: rgba(45, 74, 62, 0.22);
  backdrop-filter: blur(8px);
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--forest);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 32px;
  padding: 20px 32px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(45, 74, 62, 0.1);
  border-radius: 100px;
  box-shadow: 0 8px 32px rgba(45, 74, 62, 0.08);
}

.hero__stats .stat {
  text-align: center;
  min-width: 72px;
}

.hero.loaded .hero__logo-wrap {
  animation: heroLogoIn 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes heroLogoIn {
  from {
    opacity: 0;
    transform: scale(0.88) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--forest);
  line-height: 1;
}

.stat:nth-child(1) .stat__num::after,
.stat:nth-child(2) .stat__num::after {
  content: '+';
  font-size: 1.1rem;
  opacity: 0.6;
}

.stat:nth-child(3) .stat__num::after {
  content: ' м²';
  font-size: 0.85rem;
  opacity: 0.8;
}

.stat:nth-child(4) .stat__num::after {
  content: ' м';
  font-size: 0.85rem;
  opacity: 0.8;
}

.stat__label {
  font-size: 0.68rem;
  color: var(--text-light);
  margin-top: 2px;
  display: block;
  letter-spacing: 0.04em;
}

.hero__scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: rgba(45, 74, 62, 0.45);
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---- Booking ---- */
.booking {
  padding: 100px 0;
  background: var(--white);
  position: relative;
  overflow: visible;
  z-index: 50;
}

.booking::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--forest), var(--gold), var(--forest));
}

.booking__widget-wrap {
  width: min(1200px, 94vw);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  overflow: visible;
  transform: none;
  isolation: auto;
}

.booking__widget {
  position: relative;
  overflow: visible;
  transform: none;
  min-height: 120px;
}

/* RoomSlot: модалки не должны обрезаться родителями */
.booking__widget-wrap iframe,
.booking__widget [class*="modal"],
.booking__widget [class*="Modal"],
.booking__widget [class*="popup"],
.booking__widget [class*="Popup"],
.booking__widget [class*="overlay"],
.booking__widget [class*="Overlay"],
.booking__widget [class*="dialog"],
.booking__widget [class*="Dialog"] {
  z-index: 9990 !important;
}

.booking__note {
  text-align: center;
  margin-top: 24px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* ---- About ---- */
.about {
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about__text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  color: var(--forest);
  margin-bottom: 24px;
  line-height: 1.2;
}

.about__text p {
  margin-bottom: 16px;
  color: var(--text-light);
}

.about__highlights {
  list-style: none;
  margin-top: 32px;
}

.about__highlights li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--sand);
  font-weight: 500;
  color: var(--forest);
}

.about__highlights li svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold);
}

.about__visual {
  position: relative;
}

.about__img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__img-main img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.about__img-accent {
  position: absolute;
  bottom: -32px;
  left: -32px;
  width: 55%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--cream);
}

.about__img-accent img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  top: 24px;
  right: -16px;
  background: var(--forest);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.about__badge span {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
}

.about__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 4px 0;
}

.about__badge small {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* ---- Rooms ---- */
.rooms {
  padding: 100px 0;
  background: var(--sand);
}

.rooms__showcase {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.rooms__gallery {
  position: relative;
}

.rooms__viewport {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  cursor: grab;
  touch-action: pan-y;
}

.rooms__viewport.is-dragging {
  cursor: grabbing;
}

.rooms__slide {
  display: none;
}

.rooms__slide.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.rooms__slide img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  user-select: none;
  pointer-events: none;
}

.rooms__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.rooms__viewport:hover .rooms__nav,
.rooms__nav:focus-visible {
  opacity: 1;
}

.rooms__nav:hover {
  background: var(--white);
  transform: translateY(-50%) scale(1.05);
}

.rooms__nav svg {
  width: 22px;
  height: 22px;
}

.rooms__nav--prev { left: 12px; }
.rooms__nav--next { right: 12px; }

.rooms__expand {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background var(--transition);
}

.rooms__expand:hover {
  background: rgba(0, 0, 0, 0.72);
}

.rooms__expand svg {
  width: 16px;
  height: 16px;
}

.rooms__counter {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.rooms__slide img[data-src]:not([src]),
.gallery-carousel__slide img[data-src]:not([src]) {
  background: var(--color-sand, #e8e0d4);
}

.rooms__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.rooms__thumb {
  flex: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  opacity: 0.5;
  transition: opacity var(--transition), transform var(--transition);
  border: 2px solid transparent;
}

.rooms__thumb.active,
.rooms__thumb:hover {
  opacity: 1;
  border-color: var(--forest);
  transform: scale(1.02);
}

.rooms__thumb img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.rooms__card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}

.rooms__card h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--forest);
  margin-bottom: 28px;
}

.amenity-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.amenity-item {
  text-align: center;
  padding: 16px 8px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  transition: transform var(--transition);
}

.amenity-item:hover {
  transform: translateY(-4px);
}

.amenity-item__icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.amenity-item span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--forest);
}

.rooms__note {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--sand);
}

/* ---- Amenities ---- */
.amenities {
  padding: 100px 0;
}

.amenities__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.amenity-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.amenity-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.amenity-card--large {
  grid-column: span 2;
  grid-row: span 2;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.amenity-card--large .amenity-card__body {
  padding: 32px;
}

.amenity-card__img {
  overflow: hidden;
}

.amenity-card__img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.amenity-card--large .amenity-card__img img {
  height: 100%;
  min-height: 320px;
  flex: 1;
}

.amenity-card:hover .amenity-card__img img {
  transform: scale(1.05);
}

.amenity-card__img--sm img {
  height: 160px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}

.amenity-card__icon-wrap {
  width: 56px;
  height: 56px;
  color: var(--forest);
  margin-bottom: 20px;
}

.amenity-card__icon-wrap svg {
  width: 100%;
  height: 100%;
}

.amenity-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--forest);
  margin-bottom: 12px;
}

.amenity-card p {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ---- Reviews ---- */
.reviews {
  padding: 100px 0;
  background: var(--cream);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}

.review-card__stars {
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-card p {
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.8;
}

.review-card footer {
  font-size: 0.8rem;
  color: var(--text-light);
}

/* ---- Gallery Carousel ---- */
.gallery {
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.gallery-carousel {
  width: min(580px, 90vw);
  margin: 0 auto;
}

.gallery-carousel__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--forest-dark);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 4;
  width: 100%;
  min-height: 480px;
  max-height: 85vh;
}

.gallery-carousel__viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y pinch-zoom;
}

.gallery-carousel__viewport.is-dragging {
  cursor: grabbing;
}

.gallery-carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.gallery-carousel__viewport.is-dragging .gallery-carousel__track {
  transition: none;
}

.gallery-carousel__slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
}

.gallery-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  user-select: none;
  pointer-events: none;
}

.gallery-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px 36px;
  background: linear-gradient(to top, rgba(15, 25, 20, 0.75) 0%, rgba(15, 25, 20, 0.15) 45%, transparent 100%);
  pointer-events: none;
}

.gallery-carousel__caption {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--white);
  margin-bottom: 16px;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

.gallery-carousel.is-ready .gallery-carousel__caption {
  transform: translateY(0);
  opacity: 1;
}

.gallery-carousel__expand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
  pointer-events: all;
  transition: background var(--transition), transform var(--transition);
}

.gallery-carousel__expand svg {
  width: 18px;
  height: 18px;
}

.gallery-carousel__expand:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.04);
}

.gallery-carousel__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition: transform var(--transition), background var(--transition), opacity var(--transition);
}

.gallery-carousel__nav svg {
  width: 22px;
  height: 22px;
}

.gallery-carousel__nav:hover {
  transform: translateY(-50%) scale(1.08);
  background: var(--white);
}

.gallery-carousel__nav--prev {
  left: 20px;
}

.gallery-carousel__nav--next {
  right: 20px;
}

.gallery-carousel__meta {
  position: absolute;
  top: 24px;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
}

.gallery-carousel__progress {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.gallery-carousel__progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold-light), var(--wood-warm));
  border-radius: 3px;
  transition: width 0.1s linear;
}

.gallery-carousel__counter {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  border-radius: 100px;
}

.gallery-carousel__thumbs-bar {
  margin-top: 20px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.gallery-carousel__thumbs {
  display: flex;
  gap: 12px;
  padding: 8px 4px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-carousel__thumbs::-webkit-scrollbar {
  display: none;
}

.gallery-carousel__thumb {
  flex: 0 0 72px;
  width: 72px;
  height: 96px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  opacity: 0.45;
  transition: opacity var(--transition), border-color var(--transition), transform var(--transition);
  cursor: pointer;
}

.gallery-carousel__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel__thumb:hover {
  opacity: 0.75;
}

.gallery-carousel__thumb.active {
  opacity: 1;
  border-color: var(--gold);
  transform: scale(1.05);
}

.gallery-carousel.is-paused .gallery-carousel__progress-bar {
  animation-play-state: paused;
}

/* ---- Location ---- */
.location {
  padding: 100px 0;
  background: var(--sand);
}

.location__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.location__info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.5rem);
  color: var(--forest);
  margin-bottom: 24px;
}

.location__address {
  font-style: normal;
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 32px;
  color: var(--text);
}

.location__nearby {
  list-style: none;
  margin-bottom: 32px;
}

.location__nearby li {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--sand-dark);
  font-size: 0.95rem;
}

.location__nearby em {
  font-style: normal;
  color: var(--gold);
  font-weight: 600;
}

.location__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.location__map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---- Contacts ---- */
.contacts {
  padding: 100px 0;
}

.contacts__card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  background: linear-gradient(135deg, var(--forest) 0%, var(--forest-dark) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.contacts__text {
  padding: 56px;
}

.contacts__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.contacts__text > p {
  opacity: 0.85;
  margin-bottom: 32px;
}

.contacts__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 14px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  transition: background var(--transition);
  width: fit-content;
}

.contact-link svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-link:hover {
  background: rgba(255,255,255,0.15);
}

.contacts__cta {
  padding: 56px;
  background: rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contacts__cta p {
  opacity: 0.8;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

/* ---- Footer ---- */
.footer {
  padding: 40px 0;
  background: var(--forest-dark);
  color: rgba(255,255,255,0.7);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer__brand img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__links a {
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold-light);
}

/* ---- Float contacts ---- */
.float-contacts {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.float-contacts__btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.float-contacts__btn svg {
  width: 24px;
  height: 24px;
}

.float-contacts__btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.float-contacts__btn--wa {
  background: #25D366;
  color: white;
}

.float-contacts__btn--tg {
  background: #0088cc;
  color: white;
}

.float-contacts__btn--phone {
  background: var(--forest);
  color: white;
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 15, 12, 0.96);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  font-size: 2.5rem;
  color: white;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--transition);
}

.lightbox__close:hover {
  opacity: 1;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform var(--transition);
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.06);
}

.lightbox__nav--prev {
  left: 24px;
}

.lightbox__nav--next {
  right: 24px;
}

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-height: calc(100vh - 120px);
}

.lightbox__img {
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: var(--radius-sm);
  transition: opacity 0.25s ease;
}

.lightbox__img.is-changing {
  opacity: 0.4;
}

.lightbox__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(92vw, 1400px);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.lightbox__counter {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .about__grid,
  .rooms__showcase,
  .location__grid,
  .contacts__card {
    grid-template-columns: 1fr;
  }

  .amenities__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenity-card--large {
    grid-column: span 2;
    grid-row: span 1;
  }

  .reviews__grid {
    grid-template-columns: 1fr;
  }

  .about__img-accent {
    left: auto;
    right: -16px;
    width: 45%;
  }

  .about__badge {
    right: 16px;
  }

  .rooms__nav {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform var(--transition), opacity var(--transition);
    pointer-events: none;
  }

  .nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav__link {
    padding: 14px 0;
    border-bottom: 1px solid var(--sand);
    width: 100%;
  }

  .header__phone {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero__stats {
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    gap: 16px 24px;
  }

  .stat {
    min-width: 64px;
  }

  .hero__logo-wrap {
    width: 132px;
    height: 132px;
  }

  .hero__logo-ring--outer {
    width: 168px;
    height: 168px;
  }

  .hero__logo-ring--inner {
    width: 150px;
    height: 150px;
  }

  .hero__brand-name {
    letter-spacing: 0.22em;
  }

  .amenity-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .amenities__grid {
    grid-template-columns: 1fr;
  }

  .amenity-card--large {
    grid-column: span 1;
  }

  .gallery-carousel {
    width: min(420px, 92vw);
  }

  .gallery-carousel__frame {
    min-height: 380px;
    aspect-ratio: 3 / 4;
    max-height: 72vh;
  }

  .gallery-carousel__nav {
    width: 44px;
    height: 44px;
  }

  .gallery-carousel__nav--prev {
    left: 12px;
  }

  .gallery-carousel__nav--next {
    right: 12px;
  }

  .gallery-carousel__overlay {
    padding: 20px;
  }

  .gallery-carousel__thumb {
    flex: 0 0 56px;
    width: 56px;
    height: 74px;
  }

  .lightbox__nav {
    width: 44px;
    height: 44px;
  }

  .lightbox__nav--prev {
    left: 12px;
  }

  .lightbox__nav--next {
    right: 12px;
  }

  .contacts__text,
  .contacts__cta {
    padding: 36px 28px;
  }

  .footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .footer__links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .booking__widget-wrap {
    padding: 0 8px;
  }

  .rooms__card {
    padding: 28px 20px;
  }

  .float-contacts {
    bottom: 16px;
    right: 16px;
  }

  .float-contacts__btn {
    width: 46px;
    height: 46px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero__logo-ring--outer,
  .hero__logo-ring--inner {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
