/* ============================================================
   БАЙКАЛ · АЙВАЗОВСКИЙ
   Палитра построена на этюдах Ивана Константиновича:
   шторм, луна, золото на воде, кремовая пена, тёплая тень.
   ============================================================ */

:root {
  /* Море и небо */
  --abyss:        #04101a;     /* самая глубокая тень */
  --storm:        #0a1722;     /* основа корпуса корабля и тёмных секций */
  --night-sea:    #0e2735;
  --deep-teal:    #163e4e;
  --sea:          #1d5a6b;
  --shallow:      #3a7989;

  /* Закат и свет */
  --ember:        #8a4a2a;
  --burnt:        #a23a2e;     /* красный трубы */
  --amber:        #d8a062;
  --gold:         #d8b46a;
  --sunlight:     #f0c674;
  --moonfoam:     #f4d99a;

  /* Бумага, холст, пена */
  --canvas:       #f4ecd8;
  --parchment:    #efe4c8;
  --foam:         #fbf6e8;
  --ink:          #1a2330;

  /* Утилитарные */
  --grain-opacity: 0.08;
  --surge: 0;                   /* JS пишет туда «энергию» скролла 0..1 */
  --scroll-progress: 0;         /* 0..1 положение корабля по странице */

  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

html, body {
  background: var(--abyss);
  color: var(--canvas);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body { position: relative; }

::selection { background: var(--gold); color: var(--storm); }

/* ============================================================
   АТМОСФЕРНЫЕ СЛОИ
   ============================================================ */

.grain {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 0 0.05 0 0 0 0.9 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

.vignette {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 9998;
  background: radial-gradient(ellipse at center,
              transparent 40%,
              rgba(0,0,0,0.35) 85%,
              rgba(0,0,0,0.65) 100%);
}

#mist {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
  mix-blend-mode: screen;
}

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

h1, h2, h3, .display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--canvas);
}

.display em {
  font-style: italic;
  font-weight: 500;
  color: var(--gold);
}

.kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

p { font-weight: 300; }

a { color: inherit; text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--gold); }

/* ============================================================
   ОБЩЕЕ
   ============================================================ */

.section-head {
  text-align: center;
  margin: 0 auto 4rem;
  max-width: 880px;
  padding: 0 1.5rem;
}
.section-head .kicker { display: inline-block; margin-bottom: 1.25rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4.4rem); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 1rem 1.8rem;
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gold);
  color: var(--storm);
}
.btn-primary:hover {
  background: var(--sunlight);
  color: var(--storm);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -10px rgba(216, 180, 106, 0.6);
}
.btn-ghost {
  background: transparent;
  color: var(--canvas);
  border-color: rgba(244, 236, 216, 0.3);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.btn-full { width: 100%; }

/* ============================================================
   ПАРОХОД, ИДУЩИЙ ПО СТРАНИЦЕ
   ============================================================ */

.voyager {
  position: fixed;
  bottom: 8vh;
  left: calc(-15vw + var(--scroll-progress) * 110vw);
  width: clamp(180px, 22vw, 320px);
  z-index: 5;
  pointer-events: none;
  transform-origin: center bottom;
  animation: shipRock 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,0.4));
  transition: transform 0.3s;
}

.voyager .ship-svg {
  display: block;
  width: 100%;
  height: auto;
}

@keyframes shipRock {
  0%, 100% { transform: rotate(-1.2deg) translateY(0); }
  50%      { transform: rotate(1.2deg) translateY(calc(-4px - var(--surge) * 8px)); }
}

.voyager-wake {
  position: absolute;
  bottom: -16%;
  left: -10%;
  right: -10%;
  width: 120%;
  height: 45%;
  pointer-events: none;
  z-index: -1;
  animation: wakeBob 4s ease-in-out infinite;
}
.voyager-wake .wake-back,
.voyager-wake .wake-front {
  transition: d 0.3s;
}
@keyframes wakeBob {
  0%, 100% { transform: translateY(0) scaleX(1); }
  50%      { transform: translateY(calc(2px + var(--surge) * 6px)) scaleX(calc(1.02 + var(--surge) * 0.04)); }
}

.voyager-smoke {
  position: absolute;
  left: 50.8%;          /* центр трубы в SVG: x≈264 из 520 */
  top: 4%;              /* верх трубы примерно на этой высоте */
  width: 4px; height: 4px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: -1;          /* за корпусом, но дым видно */
}
.voyager-smoke::before,
.voyager-smoke::after,
.voyager-smoke {
  --puff-bg: radial-gradient(circle at 35% 35%,
              rgba(232, 220, 198, 0.9) 0%,
              rgba(180, 170, 150, 0.55) 45%,
              rgba(180, 170, 150, 0) 75%);
}
.voyager-smoke::before,
.voyager-smoke::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  border-radius: 50%;
  background: var(--puff-bg);
  animation: smokePuff 5s ease-out infinite;
}
.voyager-smoke::before {
  width: 38px; height: 38px;
  margin-left: -19px;
}
.voyager-smoke::after {
  width: 48px; height: 48px;
  margin-left: -24px;
  animation-delay: 2.2s;
}
/* Корабль движется вправо, ветер сдувает дым назад-вверх (влево). */
@keyframes smokePuff {
  0%   { transform: translate(0, 0)         scale(0.3); opacity: 0; }
  15%  { opacity: 0.85; }
  100% { transform: translate(-70px, -90px) scale(1.7); opacity: 0; }
}

@media (max-width: 720px) {
  .voyager { display: none; }
}

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

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.4rem 2.5rem;
  z-index: 100;
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  background: linear-gradient(180deg, rgba(4,16,26,0.7), rgba(4,16,26,0));
}
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--canvas);
}
.nav-brand svg { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav-links a { color: rgba(244, 236, 216, 0.85); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 0.65rem 1.2rem;
  color: var(--gold) !important;
  border-radius: 2px;
}
.nav-cta:hover { background: var(--gold); color: var(--storm) !important; }

@media (max-width: 920px) {
  .nav { padding: 1rem 1.25rem; }
  .nav-links { gap: 1.1rem; font-size: 0.7rem; }
  .nav-links a:not(.nav-cta) { display: none; }
}

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

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-sky {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 35%, rgba(240, 198, 116, 0.18), transparent 60%),
    radial-gradient(ellipse 100% 70% at 50% 100%, rgba(8, 22, 30, 0.85), transparent),
    linear-gradient(180deg,
      #1a0f0a 0%,
      #2b1810 18%,
      #5a2e1c 38%,
      #8a4a2a 55%,
      #c8804a 68%,
      #d8a062 76%,
      #4a6470 88%,
      #1d3544 96%,
      #08161e 100%
    );
  z-index: -2;
}

.hero-sun {
  position: absolute;
  top: 32%; left: 72%;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff5d4 0%, #fde2a8 40%, #f4c674 70%, #f4c674 100%);
  z-index: -1;
  box-shadow:
    0 0 60px rgba(255, 245, 212, 0.6),
    0 0 140px rgba(244, 198, 116, 0.4);
  animation: sunPulse 5s ease-in-out infinite;
}
.hero-sun-glow {
  position: absolute;
  top: 22%; left: 50%;
  width: 70vw; height: 60vh;
  transform: translateX(-15%);
  background: radial-gradient(ellipse at center,
              rgba(255, 230, 170, 0.35) 0%,
              rgba(255, 200, 120, 0.15) 25%,
              transparent 55%);
  z-index: -1;
  pointer-events: none;
}
@keyframes sunPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.92; }
}

.gulls {
  position: absolute;
  top: 22%; left: 0; right: 0;
  width: 100%; height: 200px;
  z-index: 1;
  opacity: 0.55;
  animation: gullDrift 18s linear infinite;
}
@keyframes gullDrift {
  from { transform: translateX(-3%); }
  to   { transform: translateX(3%); }
}

.hero-content {
  position: relative;
  z-index: 4;
  text-align: center;
  max-width: 1000px;
  padding: 8rem 1.5rem 0;
  margin-top: -4rem;
}

.hero-content .kicker { display: inline-block; margin-bottom: 2rem; }

.hero h1.display {
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.95;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero h1 .line { display: block; }
.hero h1 .line:nth-child(2) { transform: translateX(0.5em); }
.hero h1 .line:nth-child(3) { transform: translateX(-0.3em); }

.lede {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.4vw, 1.35rem);
  font-style: italic;
  max-width: 580px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
  color: rgba(244, 236, 216, 0.85);
  font-weight: 300;
}

.hero-actions {
  display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 5rem;
}

.hero-meta {
  display: flex; justify-content: center; gap: 4rem; flex-wrap: wrap;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(244, 236, 216, 0.15);
  max-width: 720px;
  margin: 0 auto;
}
.hero-meta > div {
  display: flex; align-items: baseline; gap: 0.9rem;
  text-align: left;
}
.meta-num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}
.meta-cap {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.7);
}

/* Волны */
.waves {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 55vh;
  z-index: 3;
  pointer-events: none;
  filter: saturate(calc(1 + var(--surge) * 0.4))
          brightness(calc(1 + var(--surge) * 0.06));
}
.wave {
  position: absolute;
  left: -50%; right: -50%;
  bottom: 0;
  width: 200%; height: 100%;
  will-change: transform;
}
.wave path {
  transition: d 0.3s;
}
.wave-1 path { fill: #1d5a6b; opacity: 0.6; }
.wave-2 path { fill: #163e4e; opacity: 0.75; }
.wave-3 path { fill: #0e2735; opacity: 0.9; }
.wave-4 path { fill: #04101a; opacity: 1; }

.wave-1 { animation: waveScroll 22s linear infinite; }
.wave-2 { animation: waveScroll 16s linear infinite reverse; }
.wave-3 { animation: waveScroll 11s linear infinite; }
.wave-4 { animation: waveScroll  8s linear infinite reverse; }

@keyframes waveScroll {
  from { transform: translateX(0)       translateY(calc(var(--surge) * -6px)); }
  to   { transform: translateX(-50%)    translateY(calc(var(--surge) * -6px)); }
}

.foam {
  position: absolute;
  bottom: 47vh; left: -50%; right: -50%;
  width: 200%; height: 60px;
  z-index: 4;
  animation: waveScroll 7s linear infinite;
  opacity: calc(0.4 + var(--surge) * 0.5);
}

.scroll-hint {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.7);
  z-index: 10;
  animation: scrollHint 2.5s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

/* ============================================================
   МАНИФЕСТ
   ============================================================ */

.manifesto {
  background: linear-gradient(180deg, #04101a, #08181f 50%, #04101a);
  padding: 14rem 1.5rem;
  position: relative;
}
.painted-frame {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  position: relative;
}
.painted-frame::before,
.painted-frame::after {
  content: "";
  position: absolute;
  width: 60px; height: 60px;
  border: 1px solid var(--gold);
  opacity: 0.5;
}
.painted-frame::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.painted-frame::after  { bottom: 0; right: 0; border-left: 0; border-top: 0; }

.manifest-kicker {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 2.5rem;
}
.manifest-text {
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.25;
  font-weight: 300;
  font-style: normal;
  letter-spacing: -0.005em;
}
.manifest-sign {
  margin-top: 3rem;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  letter-spacing: 0.05em;
}

/* ============================================================
   КОРАБЛЬ
   ============================================================ */

.ship-section {
  background: linear-gradient(180deg, #04101a, #0a1f2c);
  padding: 10rem 2rem;
  position: relative;
  overflow: hidden;
}
.ship-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6rem;
  align-items: center;
}
.ship-text .kicker { display: inline-block; margin-bottom: 1.5rem; }
.ship-text h2 { font-size: clamp(2.5rem, 5vw, 4.6rem); margin-bottom: 2rem; }
.ship-lede {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(244, 236, 216, 0.85);
  margin-bottom: 3rem;
  max-width: 480px;
  line-height: 1.55;
}
.ship-specs {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  border-top: 1px solid rgba(216, 180, 106, 0.3);
  padding-top: 2rem;
}
.ship-specs li {
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ship-specs span {
  display: block;
  font-family: var(--serif);
  font-size: 2.6rem;
  color: var(--gold);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 400;
}

.portrait-frame {
  position: relative;
  padding: 18px;
  background:
    linear-gradient(135deg, #6e5028, #3a2914 40%, #6e5028 80%, #2a1d0e);
  border-radius: 4px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.6),
    inset 0 0 0 2px rgba(216, 180, 106, 0.4),
    inset 0 0 0 14px rgba(0,0,0,0.4);
}
.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 18px;
  box-shadow: inset 0 0 0 1px rgba(216, 180, 106, 0.45);
  z-index: 2;
  pointer-events: none;
}
.portrait-frame svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1px;
}
.portrait-caption {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 236, 216, 0.55);
  font-size: 0.92rem;
  margin-top: 1.5rem;
  letter-spacing: 0.05em;
}

@media (max-width: 920px) {
  .ship-grid { grid-template-columns: 1fr; gap: 4rem; }
}

/* ============================================================
   8 ДНЕЙ
   ============================================================ */

.voyage {
  background:
    radial-gradient(ellipse at top, rgba(216, 180, 106, 0.05), transparent 60%),
    linear-gradient(180deg, #0a1f2c, #04101a);
  padding: 10rem 2rem;
  position: relative;
}

.days {
  list-style: none;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.days::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
              transparent,
              rgba(216, 180, 106, 0.4) 10%,
              rgba(216, 180, 106, 0.4) 90%,
              transparent);
}

.day {
  display: grid;
  grid-template-columns: 220px 1fr 100px;
  gap: 2.5rem;
  align-items: start;
  padding: 3rem 0;
  border-bottom: 1px solid rgba(216, 180, 106, 0.08);
  transition: background 0.4s, transform 0.4s;
  position: relative;
}
.day::after {
  content: "";
  position: absolute;
  left: 105px; top: 50%;
  width: 11px; height: 11px;
  background: var(--storm);
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translate(0, -50%);
  transition: all 0.4s;
}
.day:hover {
  background: linear-gradient(90deg, rgba(216, 180, 106, 0.05), transparent 60%);
  transform: translateX(8px);
}
.day:hover::after {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(216, 180, 106, 0.15);
}

.day-mark {
  text-align: right;
  font-family: var(--serif);
  padding-right: 1rem;
}
.day-mark span {
  display: block;
  font-size: clamp(3.2rem, 5.5vw, 5rem);
  color: var(--gold);
  line-height: 0.9;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.day-mark em {
  display: block;
  margin-top: 0.4rem;
  font-style: italic;
  color: rgba(244, 236, 216, 0.55);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
}

.day-body { padding-left: 1.5rem; }
.day-body h3 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 500;
  margin-bottom: 0.8rem;
  color: var(--canvas);
}
.day-body p {
  font-family: var(--serif);
  font-size: 1.1rem;
  line-height: 1.55;
  font-style: italic;
  color: rgba(244, 236, 216, 0.78);
  max-width: 560px;
  font-weight: 300;
}

.day-tag {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(216, 180, 106, 0.4);
  padding: 0.4rem 0.8rem;
  border-radius: 2px;
  text-align: center;
  align-self: center;
  justify-self: end;
}

@media (max-width: 820px) {
  .days::before, .day::after { display: none; }
  .day { grid-template-columns: 1fr; gap: 1rem; }
  .day-mark { text-align: left; padding-right: 0; }
  .day-body { padding-left: 0; }
  .day-tag { justify-self: start; }
}

/* ============================================================
   КАЮТЫ
   ============================================================ */

.cabins {
  background: linear-gradient(180deg, #04101a, #08181f);
  padding: 10rem 2rem;
}
.cabin-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.cabin {
  background: rgba(244, 236, 216, 0.03);
  border: 1px solid rgba(216, 180, 106, 0.15);
  padding: 1.5rem;
  border-radius: 4px;
  transition: all 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.cabin:hover {
  background: rgba(244, 236, 216, 0.07);
  border-color: rgba(216, 180, 106, 0.5);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}
.cabin-art {
  aspect-ratio: 200/140;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 2px;
}
.cabin-art svg { width: 100%; height: 100%; display: block; }
.cabin h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--canvas);
}
.cabin p {
  font-size: 0.92rem;
  color: rgba(244, 236, 216, 0.7);
  margin-bottom: 1rem;
}
.cabin-price {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(216, 180, 106, 0.2);
}
.cabin-price span {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: rgba(244, 236, 216, 0.5);
  letter-spacing: 0.1em;
}
.cabin-lux {
  background:
    linear-gradient(135deg, rgba(216, 180, 106, 0.12), rgba(216, 180, 106, 0.04));
  border-color: rgba(216, 180, 106, 0.4);
}
.cabin-lux h3 { color: var(--gold); }

@media (max-width: 1080px) { .cabin-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cabin-grid { grid-template-columns: 1fr; } }

/* ============================================================
   ТАРИФЫ
   ============================================================ */

.fares {
  background: linear-gradient(180deg, #08181f, #04101a);
  padding: 10rem 2rem;
}
.fare-grid {
  max-width: 1280px;
  margin: 0 auto 5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.fare {
  position: relative;
  border: 1px solid rgba(216, 180, 106, 0.2);
  padding: 3rem 2rem;
  background:
    radial-gradient(ellipse at top right, rgba(216, 180, 106, 0.06), transparent 60%);
  text-align: center;
  border-radius: 4px;
  transition: all 0.4s;
}
.fare:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  background:
    radial-gradient(ellipse at top right, rgba(216, 180, 106, 0.14), transparent 60%);
}
.fare-featured {
  background:
    radial-gradient(ellipse at top, rgba(216, 180, 106, 0.18), transparent 60%);
  border-color: var(--gold);
  transform: scale(1.03);
}
.fare-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--storm);
  padding: 0.4rem 1rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.fare-date {
  font-family: var(--serif);
  margin-bottom: 1.2rem;
}
.fare-day {
  display: block;
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 400;
}
.fare-mo, .fare-year {
  display: inline-block;
  font-size: 1rem;
  color: rgba(244, 236, 216, 0.7);
  letter-spacing: 0.1em;
  margin: 0 0.3rem;
}
.fare-route {
  color: rgba(244, 236, 216, 0.6);
  font-style: italic;
  font-family: var(--serif);
  margin-bottom: 1.5rem;
}
.fare-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
  border-top: 1px solid rgba(216, 180, 106, 0.15);
  padding-top: 1.5rem;
}
.fare-list li {
  padding: 0.5rem 0;
  font-size: 0.92rem;
  color: rgba(244, 236, 216, 0.75);
  display: flex; justify-content: space-between;
  border-bottom: 1px dashed rgba(216, 180, 106, 0.1);
}
.fare-list strong { color: var(--gold); font-weight: 500; }
.fare-price {
  font-family: var(--serif);
  font-size: 1.8rem;
  color: var(--canvas);
}

.includes {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem 2rem;
  border-top: 1px solid rgba(216, 180, 106, 0.15);
}
.includes h3 {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}
.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.includes-grid > div {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 236, 216, 0.8);
  padding: 1rem;
  border: 1px solid rgba(216, 180, 106, 0.12);
  border-radius: 2px;
}

@media (max-width: 920px) {
  .fare-grid { grid-template-columns: 1fr; }
  .fare-featured { transform: none; }
  .includes-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   ОТЗЫВ
   ============================================================ */

.testimonial {
  background:
    radial-gradient(ellipse at center, rgba(216, 180, 106, 0.08), transparent 50%),
    #04101a;
  padding: 12rem 2rem;
  text-align: center;
}
.testimonial blockquote {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.3;
  font-weight: 300;
  max-width: 1000px;
  margin: 0 auto 2rem;
  color: rgba(244, 236, 216, 0.92);
}
.testimonial figcaption {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  letter-spacing: 0.08em;
}

/* ============================================================
   БРОНЬ
   ============================================================ */

.book {
  background:
    linear-gradient(180deg, #04101a, #0a1722);
  padding: 8rem 2rem;
  position: relative;
}
.book-card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(216, 180, 106, 0.05), rgba(216, 180, 106, 0));
  border: 1px solid rgba(216, 180, 106, 0.3);
  padding: 4rem;
  border-radius: 4px;
  text-align: center;
}
.book-card .kicker { display: inline-block; margin-bottom: 1.2rem; }
.book-card h2 { font-size: clamp(2rem, 4vw, 3.4rem); margin-bottom: 1.5rem; }
.book-lede {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 236, 216, 0.8);
  margin-bottom: 2.5rem;
}
.book-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  text-align: left;
}
.book-form label {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.book-form label span {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.65);
}
.book-form input, .book-form select {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(216, 180, 106, 0.4);
  padding: 0.7rem 0.2rem;
  color: var(--canvas);
  font-family: var(--serif);
  font-size: 1.15rem;
  outline: none;
  transition: border-color 0.3s;
}
.book-form input:focus, .book-form select:focus { border-color: var(--gold); }
.book-form option { background: var(--storm); }
.book-form button {
  grid-column: 1 / -1;
  margin-top: 1rem;
}
.book-thanks {
  grid-column: 1 / -1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.6s;
  margin-top: 1rem;
}

@media (max-width: 640px) {
  .book-card { padding: 2.5rem 1.5rem; }
  .book-form { grid-template-columns: 1fr; }
}

/* ============================================================
   ФУТЕР
   ============================================================ */

.footer {
  background: #02080d;
  padding: 6rem 2rem 3rem;
  border-top: 1px solid rgba(216, 180, 106, 0.15);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto 4rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
}
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 236, 216, 0.55);
  font-size: 0.95rem;
}
.footer-h {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.footer p {
  font-size: 0.9rem;
  color: rgba(244, 236, 216, 0.55);
  line-height: 1.7;
}
.footer-bot {
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: rgba(244, 236, 216, 0.35);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(216, 180, 106, 0.08);
}

@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   REVEAL АНИМАЦИЯ
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.1s cubic-bezier(0.2, 0.7, 0.2, 1),
              transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   ПАРТНЁРЫ
   ============================================================ */
.partners {
  position: relative;
  z-index: 5;
  padding: 3.5rem 2rem 3rem;
  background: linear-gradient(180deg, rgba(14, 39, 53, 0.55), rgba(10, 23, 34, 0.92));
  border-top: 1px solid rgba(216, 180, 106, 0.22);
  border-bottom: 1px solid rgba(216, 180, 106, 0.22);
}
.partners-label {
  text-align: center;
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 0.7rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.62);
  margin-bottom: 2.2rem;
}
.partners-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 1080px) {
  .partners-list { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}
@media (max-width: 520px) {
  .partners-list { grid-template-columns: 1fr; gap: 0.6rem; }
}
.partner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid rgba(216, 180, 106, 0.28);
  background: rgba(8, 22, 30, 0.55);
  transition: border-color 0.4s, background 0.4s, transform 0.4s;
  min-height: 96px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  min-width: 0;
}
@media (max-width: 1080px) {
  .partner {
    padding: 0.9rem 0.9rem;
    gap: 0.75rem;
    min-height: 78px;
  }
  .partner-mark {
    width: 46px !important;
    height: 46px !important;
  }
  .partner-mark svg {
    width: 46px;
    height: 46px;
  }
  .partner-name {
    font-size: 0.88rem !important;
    line-height: 1.16;
  }
  .partner-role {
    font-size: 0.52rem !important;
    letter-spacing: 0.18em !important;
  }
  .partner-arrow {
    font-size: 0.78rem !important;
    top: 8px !important;
    right: 9px !important;
  }
}
@media (max-width: 520px) {
  .partner {
    padding: 1rem 1.1rem;
    min-height: 72px;
  }
  .partner-name {
    font-size: 0.96rem !important;
  }
}
.partner:hover {
  border-color: rgba(216, 180, 106, 0.75);
  background: rgba(14, 39, 53, 0.78);
  transform: translateY(-2px);
  color: inherit;
}
.partner:focus-visible {
  outline: 1px solid var(--gold, #d8b46a);
  outline-offset: 3px;
}
.partner-arrow {
  position: absolute;
  top: 10px;
  right: 12px;
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 0.95rem;
  color: rgba(216, 180, 106, 0.55);
  transition: transform 0.3s, color 0.3s;
  line-height: 1;
}
.partner:hover .partner-arrow {
  color: var(--gold, #d8b46a);
  transform: translate(2px, -2px);
}
.partner-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  color: var(--gold, #d8b46a);
  flex: 0 0 auto;
}
.partner-mark svg { display: block; }
.partner-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.partner-name {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(244, 236, 216, 0.95);
  line-height: 1.18;
}
.partner-role {
  font-family: var(--sans, "Inter", sans-serif);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(216, 180, 106, 0.75);
}
.partners-note {
  margin: 2rem auto 0;
  max-width: 720px;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(244, 236, 216, 0.42);
  line-height: 1.5;
}

/* ============================================================
   КЛИКАБЕЛЬНЫЕ ДНИ + ПОП-АП
   ============================================================ */
.day-click {
  cursor: pointer;
  transition: border-color 0.4s, transform 0.4s, background 0.4s;
}
.day-click:hover {
  border-color: rgba(216, 180, 106, 0.55);
  transform: translateY(-2px);
}
.day-click:focus-visible {
  outline: 1px solid var(--gold, #d8b46a);
  outline-offset: 4px;
}
.day-click .day-tag {
  transition: background 0.3s, color 0.3s;
}
.day-click:hover .day-tag {
  background: var(--gold, #d8b46a);
  color: var(--storm, #0a1722);
}

.day-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2.4rem 1rem;
}
.day-modal.is-open { display: flex; animation: dmFade 0.3s ease; }
@keyframes dmFade { from { opacity: 0; } to { opacity: 1; } }

.day-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 10, 0.86);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.day-modal-panel {
  position: relative;
  max-width: 880px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  background: linear-gradient(180deg, #f4ecd8, #ecdcbb 70%, #e3cea0);
  color: #1a1208;
  padding: 3rem 3rem 2rem;
  box-shadow: 0 60px 120px rgba(0,0,0,0.7);
  animation: dmRise 0.5s cubic-bezier(0.2,0.8,0.2,1);
}
@keyframes dmRise {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@media (max-width: 640px) {
  .day-modal-panel { padding: 2.6rem 1.4rem 1.4rem; }
}

.day-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(110, 58, 30, 0.32);
  background: rgba(244, 236, 216, 0.55);
  color: #6e3a1e;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 2;
}
.day-modal-close:hover {
  background: #6e3a1e;
  color: #f4ecd8;
  border-color: #6e3a1e;
}

.day-modal-eyebrow {
  font-family: "Inter", -apple-system, sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #8a3a20;
  margin-bottom: 0.7rem;
}
.day-modal-title {
  font-family: "Playfair Display", "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  font-weight: 500;
  line-height: 1.1;
  color: #1a1208;
  margin: 0 0 1.4rem;
  letter-spacing: -0.01em;
}

.day-modal-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 1.6rem;
}
.day-modal-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #1a2330;
  border: 1px solid rgba(110, 58, 30, 0.18);
  display: block;
  transition: transform 0.4s;
}
.day-modal-gallery img:hover {
  transform: scale(1.02);
}
/* Если ровно одна картинка — растягиваем на 2 колонки */
.day-modal-gallery img:only-child {
  grid-column: span 2;
  height: 360px;
}
/* Если три картинки — первая широкая, вторая и третья снизу */
.day-modal-gallery:has(img:nth-child(3):last-child) img:first-child {
  grid-column: span 2;
  height: 280px;
}
@media (max-width: 640px) {
  .day-modal-gallery { grid-template-columns: 1fr; }
  .day-modal-gallery img,
  .day-modal-gallery img:only-child {
    height: 220px;
    grid-column: span 1;
  }
  .day-modal-gallery:has(img:nth-child(3):last-child) img:first-child {
    grid-column: span 1;
    height: 220px;
  }
}

.day-modal-text {
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: 1.08rem;
  line-height: 1.78;
  color: #2a1c0c;
}
.day-modal-text p {
  margin-bottom: 1rem;
}
.day-modal-text p:last-child { margin-bottom: 0; }
.day-modal-text em {
  font-style: italic;
  color: #6e3a1e;
  font-weight: 500;
}

.day-modal-credit {
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(110, 58, 30, 0.2);
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 0.78rem;
  color: rgba(74, 44, 20, 0.6);
}

/* ============================================================
   МОБИЛЬНЫЕ ПРАВКИ ДЛЯ ДНЕЙ И МОДАЛИ
   ============================================================ */
.day-click {
  -webkit-tap-highlight-color: rgba(216, 180, 106, 0.18);
  touch-action: manipulation;
}
.day-modal {
  z-index: 10001;
}
.day-modal-panel {
  -webkit-overflow-scrolling: touch;
}
body.scroll-locked { overflow: hidden; }

/* ============================================================
   БУРГЕР + МОБИЛЬНЫЙ ДРОВЕР
   ============================================================ */
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid rgba(216, 180, 106, 0.45);
  cursor: pointer;
  padding: 0;
  position: relative;
  flex: 0 0 auto;
  margin-left: 0.7rem;
  z-index: 10002;
  transition: background 0.25s, border-color 0.25s;
}
.nav-burger:hover { background: rgba(216, 180, 106, 0.1); }
.nav-burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1px;
  background: var(--gold);
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.nav-burger span:nth-child(1) { top: 14px; }
.nav-burger span:nth-child(2) { top: 20px; }
.nav-burger span:nth-child(3) { top: 26px; }
.nav-burger[aria-expanded="true"] {
  background: rgba(216, 180, 106, 0.16);
  border-color: var(--gold);
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: min(360px, 100vw);
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(180deg, rgba(4, 16, 26, 0.98), rgba(2, 8, 14, 0.99));
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  padding: 5.5rem 1.8rem 2rem;
  flex-direction: column;
  gap: 0.2rem;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
  border-left: 1px solid rgba(216, 180, 106, 0.18);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-drawer.is-open { transform: translateX(0); }
.nav-drawer a {
  font-family: var(--sans);
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 216, 0.92);
  text-decoration: none;
  padding: 1rem 0.2rem;
  border-bottom: 1px solid rgba(216, 180, 106, 0.14);
  transition: color 0.2s, padding-left 0.2s;
}
.nav-drawer a:hover, .nav-drawer a:focus-visible {
  color: var(--gold);
  padding-left: 0.6rem;
  outline: none;
}
.nav-drawer-cta {
  margin-top: 1.4rem;
  color: var(--gold) !important;
  border: 1px solid var(--gold) !important;
  border-bottom: 1px solid var(--gold) !important;
  padding: 1rem !important;
  text-align: center;
  border-radius: 2px;
}
.nav-drawer-cta:hover {
  background: var(--gold) !important;
  color: var(--storm) !important;
  padding-left: 1rem !important;
}
.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 10000;
  pointer-events: none;
}
.nav-drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 920px) {
  .nav-burger { display: block; }
  .nav-drawer { display: flex; }
  .nav-drawer-backdrop { display: block; }
  /* CTA остаётся в верхней панели; в дровере есть свой большой */
  .nav-links a.nav-cta { padding: 0.5rem 0.85rem !important; font-size: 0.66rem; }
}
@media (max-width: 480px) {
  /* совсем тесно — скрываем CTA в баре, остаётся только в дровере */
  .nav-links a.nav-cta { display: none; }
}

/* ============================================================
   КЛИКАБЕЛЬНЫЕ КАЮТЫ + РЕАЛЬНЫЕ ФОТО
   ============================================================ */
.cabin-click {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(216, 180, 106, 0.18);
  touch-action: manipulation;
  transition: border-color 0.4s, transform 0.4s, background 0.4s;
}
.cabin-click:hover {
  transform: translateY(-3px);
}
.cabin-click:focus-visible {
  outline: 1px solid var(--gold, #d8b46a);
  outline-offset: 4px;
}
.cabin-art {
  position: relative;
  overflow: hidden;
  background: var(--storm, #0a1722);
  aspect-ratio: 200/140;
  width: 100%;
}
.cabin-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cabin-click:hover .cabin-art img {
  transform: scale(1.05);
}
.cabin-art::after {
  content: 'подробнее ↗';
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(4, 16, 26, 0.7);
  padding: 6px 10px;
  border: 1px solid rgba(216, 180, 106, 0.4);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s, transform 0.3s;
  pointer-events: none;
}
.cabin-click:hover .cabin-art::after,
.cabin-click:focus-visible .cabin-art::after {
  opacity: 1;
  transform: translateY(0);
}
