/* =============================================
   SEA STAR — ЖК «Морська Симфонія»
   Основні стилі. Тема — суцільне темне море.
   ============================================= */

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

:root {
  --navy:       #0a1628;
  --abyss:      #050d1a;
  --deep-blue:  #0d2244;
  --ocean:      #1a3a6b;
  --sea:        #1e6ea8;
  --teal:       #1aa7b0;
  --sky:        #5db8d8;
  --foam:       #a8dae8;
  --white:      #ffffff;
  --gold:       #c8a96e;

  /* Текст на темному */
  --ink:        #eef4f9;
  --ink-dim:    rgba(238, 244, 249, 0.74);
  --ink-faint:  rgba(238, 244, 249, 0.5);

  /* Скляні поверхні поверх моря */
  --glass:       rgba(255, 255, 255, 0.055);
  --glass-hover: rgba(255, 255, 255, 0.1);
  --glass-line:  rgba(255, 255, 255, 0.13);
  --panel:       rgba(7, 17, 31, 0.55);
  --panel-solid: rgba(7, 17, 31, 0.78);

  --radius:     16px;
  --radius-lg:  24px;
  --radius-sm:  8px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow:     0 10px 34px rgba(0, 0, 0, 0.35);
  --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.5);
  --focus:      0 0 0 3px rgba(93, 184, 216, 0.7);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--abyss);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
ul, ol { list-style: none; }

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  z-index: 2000;
  background: var(--foam);
  color: var(--navy);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* =============================================
   ЖИВЕ МОРЕ — фон під усією сторінкою
   Чотири шари: глибина, дві хвилі різної швидкості,
   відблиски на воді і затемнення для читабельності.
   ============================================= */

.sea-backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 70% at 50% -15%, #1a4a7a 0%, rgba(26, 74, 122, 0) 62%),
    radial-gradient(ellipse 90% 60% at 85% 110%, #10395f 0%, rgba(16, 57, 95, 0) 60%),
    linear-gradient(180deg, #0e2c4e 0%, #0a1c33 42%, #060f1d 78%, #040a14 100%);
}

.sea-layer {
  position: absolute;
  inset: -25% -35%;
  background-image: url('hero_waves.webp');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

/* Верхня хвиля — крупніша, повільніша */
.sea-a {
  opacity: 0.42;
  filter: saturate(1.3) brightness(0.7);
  animation: swellA 26s ease-in-out infinite alternate;
}

/* Нижня — дзеркальна, дрібніша, рухається назустріч */
.sea-b {
  opacity: 0.22;
  transform: scaleX(-1);
  filter: saturate(0.8) brightness(0.5) blur(1px);
  mix-blend-mode: overlay;
  animation: swellB 19s ease-in-out infinite alternate;
}

@keyframes swellA {
  0%   { transform: scale(1.08) translate3d(-1.5%, 0, 0); }
  50%  { transform: scale(1.14) translate3d(1.5%, -1.8%, 0); }
  100% { transform: scale(1.06) translate3d(2.5%, 1.6%, 0); }
}

@keyframes swellB {
  0%   { transform: scaleX(-1) scale(1.2) translate3d(2%, 1%, 0); }
  100% { transform: scaleX(-1) scale(1.3) translate3d(-3%, -2%, 0); }
}

/* Відблиски світла на воді */
.sea-caustics {
  position: absolute;
  inset: -20%;
  mix-blend-mode: screen;
  opacity: 0.62;
  background:
    radial-gradient(circle 32vw at 18% 22%, rgba(93, 184, 216, 0.3) 0%, transparent 62%),
    radial-gradient(circle 26vw at 78% 38%, rgba(26, 167, 176, 0.26) 0%, transparent 60%),
    radial-gradient(circle 38vw at 55% 82%, rgba(30, 110, 168, 0.28) 0%, transparent 65%),
    radial-gradient(circle 20vw at 92% 76%, rgba(168, 218, 232, 0.16) 0%, transparent 58%);
  animation: drift 24s ease-in-out infinite alternate;
  will-change: transform, opacity;
}

@keyframes drift {
  0%   { transform: translate3d(-2%, 1%, 0) scale(1);    opacity: 0.42; }
  50%  { transform: translate3d(2%, -2%, 0) scale(1.08); opacity: 0.6; }
  100% { transform: translate3d(3%, 2%, 0) scale(1.03);  opacity: 0.46; }
}

/* Затемнення знизу — щоб текст читався на будь-якій хвилі */
.sea-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 10, 20, 0.15) 0%, rgba(4, 10, 20, 0) 22%),
    radial-gradient(ellipse 130% 90% at 50% 50%, rgba(4, 10, 20, 0) 25%, rgba(4, 10, 20, 0.55) 100%);
}

/* ============ ТИПОГРАФІКА ============ */

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1rem;
  color: var(--ink-dim);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-align: center;
}

.section-label--center,
.section-title--center { text-align: center; }
.section-label--light  { color: var(--foam); }
.section-title--light  { color: var(--white); }
.section-sub--light    { color: var(--ink-dim); }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Однакова напівпрозора підкладка під текстові секції */
.veil {
  position: relative;
  background: var(--panel);
}

/* ============ КНОПКИ ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  white-space: nowrap;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--sea) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 4px 22px rgba(26, 167, 176, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(26, 167, 176, 0.5);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn-quiet {
  background: rgba(255, 255, 255, 0.06);
  color: var(--foam);
  border: 1.5px solid rgba(168, 218, 232, 0.3);
}
.btn-quiet:hover {
  background: rgba(168, 218, 232, 0.14);
  border-color: var(--foam);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--foam);
  border: 2px solid rgba(168, 218, 232, 0.55);
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
}
.btn-outline:hover {
  background: var(--foam);
  color: var(--navy);
  border-color: var(--foam);
  transform: translateY(-2px);
}

.btn-outline-sm {
  background: transparent;
  color: var(--foam);
  border: 1.5px solid rgba(168, 218, 232, 0.5);
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-block;
  text-align: center;
}
.btn-outline-sm:hover {
  background: rgba(168, 218, 232, 0.15);
  border-color: var(--foam);
}

.btn-large { padding: 1rem 2.4rem; font-size: 1rem; }

/* ============ НАВІГАЦІЯ ============ */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(5, 13, 26, 0.85);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  color: var(--white);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.logo-wave {
  color: var(--teal);
  font-size: 1.8rem;
  line-height: 1;
  animation: wave 3s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.nav-links {
  display: flex;
  gap: 1.9rem;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.88rem;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1.5px;
  background: var(--teal);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-left: auto;
}
.nav-links + .nav-right { margin-left: 1.5rem; }

.lang-switch {
  display: flex;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50px;
  overflow: hidden;
  flex-shrink: 0;
}

.lang-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.7rem;
  cursor: pointer;
  transition: var(--transition);
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { background: var(--teal); color: var(--white); }

.nav-cta {
  background: linear-gradient(135deg, var(--sea) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 167, 176, 0.5);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.burger.is-open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(5, 13, 26, 0.96);
  backdrop-filter: blur(20px);
  padding: 1.25rem 1.5rem 1.75rem;
  gap: 0.25rem;
  border-top: 1px solid var(--glass-line);
}
.mobile-menu.open { display: flex; }

.mobile-menu a {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-cta {
  background: linear-gradient(135deg, var(--sea) 0%, var(--teal) 100%);
  color: var(--white) !important;
  padding: 0.85rem 1.5rem !important;
  border-radius: 50px;
  text-align: center;
  border-bottom: none !important;
  margin-top: 1rem;
  font-weight: 500;
}

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; }

/* Постер лежит фоном ВСЕГДА. Видео поверх него изначально прозрачное и
   проявляется только когда реально пошло — см. initHeroVideo в main.js.

   Так сделано из-за режима энергосбережения на iPhone: он запрещает
   автозапуск, и Safari рисует поверх кадра кнопку play. Если ждать отказа
   и прятать видео задним числом, кнопка всё равно успевает показаться.
   Поэтому логика обратная — не «спрятать при неудаче», а «показать при
   успехе». Окна, в котором кнопка может мелькнуть, просто нет. */
.hero-bg {
  background: url('hero-poster.webp') center / cover no-repeat;
}

.hero-vid {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  /* Тап по фоновому видео не должен вызывать нативные контролы iOS */
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s ease;
}

.hero.video-on .hero-vid { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5,13,26,0.78) 0%, rgba(5,13,26,0) 28%),
    linear-gradient(115deg, rgba(5,13,26,0.85) 0%, rgba(5,13,26,0.45) 55%, rgba(5,13,26,0.35) 100%),
    linear-gradient(0deg, rgba(4,10,20,0.9) 0%, rgba(4,10,20,0) 30%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.94);
  margin-bottom: 1.75rem;
  animation: fadeInUp 0.8s ease both;
}

.badge-star { color: var(--gold); font-size: 0.9rem; }

.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.08;
  color: var(--white);
  letter-spacing: -1px;
  margin-bottom: 1.25rem;
  animation: fadeInUp 0.8s 0.15s ease both;
  text-shadow: 0 4px 40px rgba(4, 10, 20, 0.5);
}

.hero-sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s 0.3s ease both;
  text-shadow: 0 1px 14px rgba(4, 10, 20, 0.6);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.45s ease both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.25rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  z-index: 2;
  animation: fadeIn 1.5s 1s ease both;
  transition: color var(--transition);
}
.hero-scroll-hint:hover { color: var(--white); }

.scroll-line {
  display: block;
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%      { opacity: 0.3; transform: scaleY(0.6); }
}

/* ============ СТАТИСТИКА ============ */

.stats-bar {
  padding: 2.5rem 1.5rem;
  background: rgba(4, 10, 20, 0.55);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-line);
  border-bottom: 1px solid var(--glass-line);
}

.stats-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 2.25rem;
  text-align: center;
}

.stat-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.stat-divider {
  display: block;
  width: 1px; height: 40px;
  background: rgba(255, 255, 255, 0.16);
}

/* ============ ПРО НАС ============ */

.about {
  padding: 7rem 0;
  position: relative;
  background: linear-gradient(180deg, rgba(6, 15, 28, 0.5) 0%, rgba(6, 15, 28, 0.34) 100%);
}

.about .container { position: relative; z-index: 1; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
}

.about-desc {
  color: var(--ink-dim);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 0.97rem;
}
.about-desc strong { color: var(--white); font-weight: 600; }

.about-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--ink);
  font-weight: 500;
}

.feature-chip svg {
  width: 15px; height: 15px;
  color: var(--sky);
  flex-shrink: 0;
}

.about-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  height: 480px;
}

.about-gallery button {
  border: none;
  padding: 0;
  background: none;
  cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  box-shadow: var(--shadow);
}

.gallery-main { grid-row: 1 / 3; }

.about-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-gallery button:hover img { transform: scale(1.05); }

.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.75rem;
  min-height: 0;
}

/* ============ АПАРТАМЕНТИ ============ */

.apartments {
  padding: 7rem 0;
  position: relative;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.45) 0%, rgba(4, 10, 20, 0.68) 50%, rgba(4, 10, 20, 0.45) 100%);
}

.apartments .container { position: relative; z-index: 1; }

.apt-tabs {
  display: flex;
  gap: 0.35rem;
  margin: 2rem auto 2.5rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  border-radius: 50px;
  padding: 0.4rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.apt-tabs::-webkit-scrollbar { display: none; }

.apt-tab {
  background: none;
  border: none;
  padding: 0.65rem 1.35rem;
  border-radius: 50px;
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  scroll-snap-align: center;
}

.apt-tab:hover:not(.active) {
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

.apt-tab.active {
  background: linear-gradient(135deg, var(--sea) 0%, var(--teal) 100%);
  color: var(--white);
  box-shadow: 0 3px 14px rgba(26, 167, 176, 0.5);
}

.apt-panel { display: none; }
.apt-panel.active { display: block; animation: fadeIn 0.45s ease; }

.apt-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: stretch;
  background: var(--panel-solid);
  backdrop-filter: blur(18px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* На десктопі слайдер тягнеться на всю висоту картки (її задає колонка
   з описом), тому aspect-ratio тут навмисно не використовується —
   разом із align-items: stretch він ламав ширину колонки. */
.apt-slider {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  background: var(--abyss);
  cursor: zoom-in;
}
.apt-slider:focus-visible { box-shadow: inset var(--focus); }

.slide {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
}
.slide.active { display: block; animation: fadeIn 0.45s ease; }

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

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(5, 13, 26, 0.45);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: var(--white);
  border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-btn:hover { background: rgba(5, 13, 26, 0.72); transform: translateY(-50%) scale(1.06); }
.slider-btn.prev { left: 1rem; }
.slider-btn.next { right: 1rem; }

.slider-counter {
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 10;
  background: rgba(5, 13, 26, 0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
}

.slider-expand {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 10;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(5, 13, 26, 0.55);
  backdrop-filter: blur(8px);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slider-expand svg { width: 15px; height: 15px; }
.slider-expand:hover { background: rgba(5, 13, 26, 0.8); }

.slider-dots {
  position: absolute;
  bottom: 1rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.45rem;
  z-index: 10;
}

.dot {
  width: 8px; height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: var(--transition);
}
.dot:hover { background: rgba(255, 255, 255, 0.8); }
.dot.active { background: var(--white); transform: scale(1.35); }

/* Картка тепер темна — текст світлий */
.apt-info {
  padding: 2.75rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--ink);
}

.apt-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.apt-type {
  font-size: 0.74rem;
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.apt-tagline {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink-dim);
  margin-bottom: 1.5rem;
}

.apt-specs {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.75rem;
}

.spec {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--ink);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.spec:last-child { border-bottom: none; }

.spec-icon {
  font-size: 1.05rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.apt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.apt-btn { width: 100%; }
.apt-actions .btn-quiet { width: 100%; }

/* ============ ГОСПОДИНЯ ============ */

.host {
  padding: 6rem 0;
  background: linear-gradient(180deg, rgba(6, 15, 28, 0.4) 0%, rgba(6, 15, 28, 0.54) 100%);
}

.host-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3rem;
  align-items: start;
  max-width: 980px;
}

.host-mark {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), var(--teal));
  color: var(--white);
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 12px 36px rgba(26, 167, 176, 0.35);
}

.host-text .section-title { margin-bottom: 1rem; }

.host-desc {
  color: var(--ink-dim);
  line-height: 1.8;
  font-size: 0.97rem;
  margin-bottom: 1.75rem;
}

.host-quote {
  border-left: 3px solid var(--teal);
  padding: 0.25rem 0 0.25rem 1.5rem;
}

.host-quote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--white);
  margin-bottom: 0.6rem;
}

.host-quote cite {
  font-size: 0.78rem;
  font-style: normal;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
}

/* ============ ЛОКАЦІЯ ============ */

.view-feature {
  overflow: hidden;
  background: rgba(4, 10, 20, 0.6);
}

.view-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 600px;
}

.view-img-col { position: relative; overflow: hidden; }

.view-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.view-img-col:hover .view-img { transform: scale(1.04); }

.view-text-col {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
}

.view-desc {
  font-size: 0.97rem;
  color: var(--ink-dim);
  line-height: 1.8;
}

.view-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.view-bullet {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.bullet-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--teal);
  line-height: 1;
  flex-shrink: 0;
  min-width: 36px;
}

.bullet-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.2rem;
}
.bullet-text strong { font-size: 0.95rem; color: var(--white); font-weight: 600; }
.bullet-text span   { font-size: 0.84rem; color: var(--ink-faint); line-height: 1.5; }

/* ============ ЗРУЧНОСТІ ============ */

.amenities {
  position: relative;
  padding: 7rem 0;
  overflow: hidden;
}

.amenities-bg { position: absolute; inset: 0; }

.amenities-bg-img { width: 100%; height: 100%; object-fit: cover; }

.amenities-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,13,26,0.93) 0%, rgba(10,34,68,0.88) 100%);
}

.amenities .container { position: relative; z-index: 2; }

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.amenity-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: var(--transition);
}
.amenity-card:hover {
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-4px);
}

.amenity-icon { font-size: 1.75rem; display: block; margin-bottom: 0.85rem; }

.amenity-card h3 {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.45rem;
}

.amenity-card p {
  font-size: 0.81rem;
  color: var(--ink-dim);
  line-height: 1.6;
}

/* ============ СТРІЧКА ФОТО ============ */

.photo-strip {
  overflow: hidden;
  height: 220px;
  background: rgba(4, 10, 20, 0.5);
}

.strip-track {
  display: flex;
  height: 100%;
  gap: 0.5rem;
  animation: stripScroll 60s linear infinite;
  width: max-content;
}

.strip-track img {
  height: 100%;
  width: auto;
  flex-shrink: 0;
  object-fit: cover;
  filter: brightness(0.75) saturate(1.05);
  transition: filter 0.3s ease;
}
.strip-track:hover { animation-play-state: paused; }
.strip-track img:hover { filter: brightness(1) saturate(1.15); }

@keyframes stripScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============ ВІДГУКИ ============ */

.reviews {
  padding: 7rem 0;
  background: linear-gradient(180deg, rgba(4, 10, 20, 0.4) 0%, rgba(4, 10, 20, 0.56) 45%, rgba(4, 10, 20, 0.4) 100%);
}

.rating-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(26, 58, 107, 0.75) 0%, rgba(30, 110, 168, 0.55) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  padding: 1.75rem 2.5rem;
  margin: 0 auto 1rem;
  max-width: 460px;
  color: var(--white);
  box-shadow: var(--shadow);
}

.rating-big {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5rem;
  font-weight: 300;
  line-height: 1;
  color: var(--foam);
}

.rating-meta { display: flex; flex-direction: column; }
.rating-label { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.2rem; }
.rating-count { font-size: 0.8rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 0.35rem; }
.rating-stars { color: var(--gold); font-size: 0.9rem; letter-spacing: 0.1em; }

.reviews-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-faint);
  margin-bottom: 2.75rem;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.review-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--glass-line);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.review-card:hover {
  transform: translateY(-4px);
  background: var(--glass-hover);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: var(--shadow);
}

.review-score {
  align-self: flex-start;
  background: linear-gradient(135deg, var(--sea), var(--teal));
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.91rem;
  color: var(--ink);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.25rem;
  flex: 1;
}

.review-author { display: flex; align-items: center; gap: 0.7rem; }

.author-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--sea), var(--teal));
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.author-name { display: block; font-weight: 600; font-size: 0.87rem; color: var(--white); }
.author-flag { font-size: 0.75rem; }
.author-date { display: block; font-size: 0.75rem; color: var(--ink-faint); }

.reviews-more { text-align: center; margin-top: 2.5rem; }

/* ============ CTA ============ */

.cta-banner {
  position: relative;
  padding: 7.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.cta-bg { position: absolute; inset: 0; }
.cta-img { width: 100%; height: 100%; object-fit: cover; }

.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(5,13,26,0.86) 0%, rgba(10,34,68,0.78) 100%);
}

.cta-content { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; }

.cta-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 1rem;
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

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

/* ============ КОНТАКТИ ============ */

.contacts {
  padding: 7rem 0;
  background: linear-gradient(180deg, rgba(6, 15, 28, 0.4) 0%, rgba(4, 10, 20, 0.6) 100%);
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: start;
}

.contacts-desc {
  font-size: 0.97rem;
  color: var(--ink-dim);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.contact-items { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-item { display: flex; align-items: flex-start; gap: 1rem; }

.contact-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--sea), var(--teal));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 18px; height: 18px; color: var(--white); }

.contact-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sky);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-value { display: block; font-size: 0.92rem; color: var(--ink); line-height: 1.7; }
.contact-value a { color: var(--foam); text-decoration: underline; text-underline-offset: 3px; }
.contact-value a:hover { color: var(--white); }

/* Карту приводимо до темної гами, щоб білий прямокутник
   не вибивався з решти сторінки */
.contacts-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow);
}

.contacts-map iframe {
  border: 0;
  display: block;
  /* OpenStreetMap світлий — інвертуємо у темну гаму під решту сторінки */
  filter: invert(0.91) hue-rotate(185deg) saturate(0.7) brightness(1.02) contrast(0.9);
}

.map-actions {
  display: flex;
  justify-content: center;
  padding: 0.9rem;
  background: var(--panel-solid);
  border-top: 1px solid var(--glass-line);
}

/* ============ ПІДВАЛ ============ */

.footer {
  background: rgba(3, 8, 16, 0.82);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-line);
  color: var(--ink-dim);
  padding: 4rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-brand { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-logo-row { display: flex; align-items: center; gap: 0.5rem; }

.footer-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.75rem;
  color: var(--white);
}

.footer-sub     { font-size: 0.78rem; color: rgba(238, 244, 249, 0.38); }

.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a { font-size: 0.85rem; color: var(--ink-faint); transition: color var(--transition); }
.footer-links a:hover { color: var(--foam); }

.footer-booking { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.footer-booking p {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  margin-bottom: 0.15rem;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: rgba(238, 244, 249, 0.35);
}

/* ============ ЛАЙТБОКС ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(3, 8, 16, 0.95);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  animation: fadeIn 0.25s ease;
}
.lightbox[hidden] { display: none; }

.lb-img {
  max-width: min(1200px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

.lb-close {
  position: absolute;
  top: 1.25rem; right: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.lb-close:hover { background: rgba(255, 255, 255, 0.2); }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: var(--transition);
}
.lb-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lb-prev { left: 1.5rem; }
.lb-next { right: 1.5rem; }

.lb-counter {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

/* ============ АНІМАЦІЇ ============ */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s cubic-bezier(0.2, 0, 0.1, 1), transform 0.8s cubic-bezier(0.2, 0, 0.1, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ АДАПТИВ ============ */

@media (max-width: 1024px) {
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-gallery { height: 380px; }
  .contacts-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .view-text-col { padding: 4rem 3rem; }
  .apt-grid { grid-template-columns: 1.15fr 1fr; }
  .apt-info { padding: 2rem 1.75rem; }
}

@media (max-width: 900px) {
  .view-feature-inner { grid-template-columns: 1fr; }
  .view-img-col { height: 320px; }
  .view-text-col { padding: 3.5rem 1.5rem; }
  .apt-grid { grid-template-columns: 1fr; }

  /* Пропорция 4:3 через padding, а не aspect-ratio: он появился только
     в iOS 15, а вместе с align-items: stretch умеет схлопывать высоту в ноль —
     тогда фото апартаментов просто не видно. padding-top работает везде. */
  .apt-slider {
    align-self: start;
    min-height: 0;
    height: 0;
    padding-top: 75%;
  }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .burger { display: flex; }
  .nav-container { gap: 1rem; }

  .hero-content { padding-top: 6rem; }

  .stat-item { padding: 0.5rem 1.15rem; }
  .stat-divider { display: none; }
  .stat-num { font-size: 2.1rem; }

  .about { padding: 5rem 0; }
  .apartments, .amenities, .reviews, .contacts { padding: 5rem 0; }
  .host { padding: 4rem 0; }

  .host-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .host-mark { width: 72px; height: 72px; font-size: 2rem; }

  .apt-tabs { width: 100%; justify-content: flex-start; border-radius: 50px; }
  .apt-info { padding: 1.75rem 1.5rem; }

  /* backdrop-filter на карточке во весь экран — известная причина
     пустых прямоугольников в мобильном Safari. Ставим плотный фон. */
  .apt-grid {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(7, 17, 31, 0.94);
  }

  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }

  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-banner { padding: 5rem 1.5rem; }

  .photo-strip { height: 150px; }

  .lb-nav { width: 42px; height: 42px; font-size: 1.4rem; }
  .lb-prev { left: 0.5rem; }
  .lb-next { right: 0.5rem; }
  .lightbox { padding: 4.5rem 0.75rem 3.5rem; }

  /* На мобільних менше важких шарів — щоб не садити батарею */
  .sea-b { display: none; }
  .sea-caustics { opacity: 0.35; animation-duration: 34s; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .amenities-grid { grid-template-columns: 1fr; }
  .about-gallery { height: 320px; }
  .rating-hero { flex-direction: column; text-align: center; padding: 1.5rem; }
  .rating-meta { align-items: center; }
  .feature-chip { font-size: 0.78rem; }
}

/* ============ ДОСТУПНІСТЬ ============ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-vid { display: none; }
  .hero-bg { background: url('hero-poster.webp') center / cover; }
}
