/* ===== Variables ===== */
:root {
  --sea-deep: #0a3d62;
  --sea-mid: #1e6f9f;
  --sea-light: #48cae4;
  --sand: #f4e4bc;
  --sand-light: #faf6ee;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.22);
  --text: #1a2a3a;
  --text-muted: #5a6a7a;
  --whatsapp: #25d366;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(10, 61, 98, 0.15);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--sand-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(10, 61, 98, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo span { color: var(--sea-light); }

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav a:hover { color: var(--sea-light); }

@media (max-width: 600px) {
  .nav { gap: 0.8rem; font-size: 0.85rem; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  padding: 6rem 1rem 4rem;
}

.hero__slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(160deg, rgba(10, 61, 98, 0.72) 0%, rgba(30, 111, 159, 0.5) 45%, rgba(10, 61, 98, 0.65) 100%);
  pointer-events: none;
}

.hero__wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 80px;
  z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120'%3E%3Cpath d='M0,60 C300,120 600,0 900,60 C1050,90 1150,30 1200,60 L1200,120 L0,120 Z' fill='%23faf6ee'/%3E%3C/svg%3E") repeat-x;
  background-size: 600px 80px;
  animation: wave 12s linear infinite;
  opacity: 0.9;
}

@keyframes wave {
  from { transform: translateX(0); }
  to { transform: translateX(-600px); }
}

.hero__content { max-width: 680px; position: relative; z-index: 3; }

.hero__tag {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero__address {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

.hero__sea {
  font-size: 1.15rem;
  color: var(--sea-light);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn--primary {
  background: var(--white);
  color: var(--sea-deep);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
  width: 100%;
  justify-content: center;
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: var(--sea-deep);
}

.section__subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

/* ===== About house ===== */
.about-text {
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1rem;
}

.about-text p:last-child {
  margin-bottom: 0;
}

#about .section__subtitle {
  margin-inline: auto;
  text-align: center;
  max-width: 560px;
}

#about .section__title {
  text-align: center;
}

/* ===== Shared spaces carousel ===== */
.shared-carousel {
  max-width: 640px;
  margin-inline: auto;
}

.shared-carousel__viewport {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  touch-action: pan-y;
}

.shared-carousel__track {
  display: flex;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.shared-card {
  flex: 0 0 100%;
  background: var(--white);
}

.shared-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--sea-mid), var(--sea-light));
  overflow: hidden;
}

.shared-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-card__image--placeholder::after {
  content: "📷 Фото скоро";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
}

.shared-card__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 1.5rem;
  background: rgba(10, 61, 98, 0.8);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shared-card__body {
  padding: 1.4rem 1.5rem 1.6rem;
}

.shared-card__body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sea-deep);
  margin-bottom: 0.45rem;
}

.shared-card__body p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.shared-carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 1.2rem;
}

.shared-carousel__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(10, 61, 98, 0.2);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.shared-carousel__dot:hover {
  background: rgba(10, 61, 98, 0.4);
}

.shared-carousel__dot.active {
  background: var(--sea-mid);
  transform: scale(1.15);
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===== Room cards ===== */
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(10, 61, 98, 0.2);
}

.room-card__image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--sea-mid), var(--sea-light));
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.room-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s ease;
}

.room-card__counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(10, 61, 98, 0.75);
  color: var(--white);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.room-card__thumbs {
  display: flex;
  gap: 6px;
  padding: 8px 10px;
  overflow-x: auto;
  background: #f0f4f8;
  scrollbar-width: thin;
}

.room-card__thumb {
  flex: 0 0 56px;
  height: 42px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.room-card__thumb:hover,
.room-card__thumb.active {
  opacity: 1;
  border-color: var(--sea-mid);
}

.room-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card__zoom {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: var(--sea-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s, background 0.2s;
}

.room-card__zoom:hover {
  transform: scale(1.08);
  background: var(--white);
}

.room-card__main {
  cursor: zoom-in;
}

.room-card__image--placeholder .room-card__main {
  cursor: default;
}

.room-card__image--placeholder .room-card__zoom {
  display: none;
}

/* ===== Lightbox ===== */
body.lightbox-open {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 20, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__content {
  max-width: min(960px, 96vw);
  max-height: 90vh;
  text-align: center;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(90vh - 80px);
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.lightbox__caption {
  color: var(--white);
  font-weight: 600;
  margin-top: 0.8rem;
  font-size: 1rem;
}

.lightbox__counter {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox__close {
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
}

.lightbox__prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 600px) {
  .lightbox__prev { left: 0.5rem; }
  .lightbox__next { right: 0.5rem; }
  .lightbox__close { top: 0.5rem; right: 0.5rem; }
}

.room-card__image--placeholder img { display: none; }

.room-card__image--placeholder::after {
  content: "📷 Фото скоро";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
}

.room-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(10, 61, 98, 0.85);
  color: var(--white);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.room-card__body { padding: 1.25rem; }

.room-card__capacity {
  font-size: 0.85rem;
  color: var(--sea-mid);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.room-card__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.room-card__booking {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(10, 61, 98, 0.1);
}

.room-card__booking-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--sea-deep);
  margin-bottom: 0.45rem;
}

.room-card__phone {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sea-mid);
  text-decoration: none;
  line-height: 1.55;
}

.room-card__phone:hover {
  color: var(--sea-deep);
  text-decoration: underline;
}

/* ===== Location ===== */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 700px) {
  .location-grid { grid-template-columns: 1fr; }
}

.location-info {
  background: linear-gradient(135deg, var(--sea-deep), var(--sea-mid));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
}

.location-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.location-info p { opacity: 0.9; margin-bottom: 0.5rem; }

.location-info .btn { margin-top: 1.2rem; }

.location-map {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8eef3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.directions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.direction-card {
  background: var(--sand-light);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  border: 1px solid rgba(10, 61, 98, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.direction-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(10, 61, 98, 0.1);
}

.direction-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.direction-card__icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.direction-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--sea-deep);
  line-height: 1.3;
}

.direction-card__text {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.transfer-note {
  margin-top: 1.5rem;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, var(--sea-deep), var(--sea-mid));
  color: var(--white);
  border-radius: var(--radius);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.transfer-note p {
  flex: 1 1 280px;
  font-size: 0.98rem;
  line-height: 1.6;
  opacity: 0.95;
  margin: 0;
}

.transfer-note .btn {
  flex-shrink: 0;
  background: var(--white);
  color: var(--sea-deep);
}

/* ===== Attractions ===== */
.attractions-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.attraction {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(10, 61, 98, 0.08);
  transition: transform 0.2s;
}

.attraction:hover { transform: translateX(4px); }

.attraction__icon { font-size: 1.5rem; flex-shrink: 0; }

.attraction strong {
  display: block;
  font-size: 0.95rem;
  color: var(--sea-deep);
}

.attraction span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== QR ===== */
.qr-block {
  text-align: center;
  padding: 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 360px;
  margin-inline: auto;
}

.qr-block img {
  margin: 1rem auto;
  border-radius: 8px;
}

.qr-block p {
  font-size: 0.85rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ===== Footer ===== */
.footer {
  background: var(--sea-deep);
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.footer a { color: var(--sea-light); }

.footer__contacts,
.contacts {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.footer__contacts {
  align-items: center;
}

.contacts {
  margin-bottom: 1.25rem;
}

.contact-link {
  color: var(--sea);
  font-weight: 500;
  text-decoration: none;
}

.contact-link:hover {
  text-decoration: underline;
}

.contact-link--whatsapp {
  color: var(--whatsapp);
}

.footer .contact-link {
  color: var(--sea-light);
}

.footer .contact-link--whatsapp {
  color: #7ddea0;
}

.location-info h3:not(:first-child) {
  margin-top: 1.25rem;
}
