@font-face {
  font-family: "Corporate A Cond";
  src: url("../fonts/CorporateACondPro-Light.woff2") format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Kalissa";
  src: url("../fonts/KalissaRegular_0.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Oranienbaum";
  src: url("../fonts/Oranienbaum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* window height locked in px by JS (changes only on rotation), so in-app browser bars hiding on scroll don't resize blocks */
  --vh: 1vh;
  --ink: #333333;
  --muted: #999999;
  --line: #e5e0da;
  --btn: #2c2c2c;
  --sans: "Corporate A Cond", "Roboto Condensed", Arial, sans-serif;
  --serif: "Oranienbaum", Georgia, serif;
  --script: "Kalissa", cursive;
  --w: 1200px;
  --pad: 80px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
}
button, input, select { font: inherit; color: inherit; }

.container { max-width: var(--w); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
html.js .preloader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: #fff;
  transition: opacity 0.6s ease, visibility 0.6s;
}
html.js .preloader.is-hidden { opacity: 0; visibility: hidden; }
/* shown once per visit: coming back to the home page skips it */
html.pl-seen .preloader { display: none; }
html.is-loading { overflow: hidden; }
html.js .preloader { background: #9aa3a6; overflow: hidden; }
/* softly blurred photo behind, darkened a little so the white route reads on any part of it */
/* blur and darkening are baked into the tiny image — no CSS filters, cheap on phones */
.preloader__photo { position: absolute; inset: 0; background: url("../img/preloader-blur.jpg") center / cover no-repeat; }
.preloader__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2vh;
  width: min(1000px, 90vw);
}
.preloader__route--tall { display: none; }
.preloader__route { width: 100%; height: auto; max-height: 62vh; overflow: visible; }
.preloader__line {
  fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round;
  /* the route draws itself: plain CSS dash animation, starts with the page */
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: route-draw 1.2s 0.15s cubic-bezier(0.45, 0, 0.25, 1) forwards;
}
.preloader__end { opacity: 0; animation: route-end 0.25s 1.25s forwards; }
@keyframes route-draw { to { stroke-dashoffset: 0; } }
@keyframes route-end { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .preloader__line { animation: none; stroke-dashoffset: 0; }
  .preloader__end { animation: none; opacity: 1; }
}
.preloader__city { font-family: var(--script); font-size: 76px; fill: #fff; }
/* phone: the route is ~4x smaller on screen, so the line and labels are drawn bolder */
@media (max-width: 700px) {
  .preloader__content { width: auto; height: 82vh; }
  .preloader__route--wide { display: none; }
  .preloader__route--tall { display: block; width: auto; height: 100%; max-height: none; }
  .preloader__line { stroke-width: 12; }
  .preloader__city { font-size: 110px; }
  .preloader__photo { background-image: url("../img/preloader-blur-mobile.jpg?v=2"); }
}

/* ---------- First screen reveal (only with JS, so the page never stays blank) ---------- */
html.js .first-screen { opacity: 0; }
html.js .first-screen .hero__inner { transform: translateY(14px); }
html.js .first-screen.is-ready { opacity: 1; transition: opacity 0.6s ease; }
html.js .first-screen.is-ready .hero__inner { transform: none; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
@media (prefers-reduced-motion: reduce) {
  html.js .first-screen,
  html.js .first-screen .hero__inner { opacity: 1; transform: none; transition: none; }
}

/* ---------- Hero ---------- */
/* hero stretches so the booking bar sits on the bottom edge of the window */
.first-screen {
  display: flex;
  flex-direction: column;
  min-height: calc(var(--vh) * 100); /* the header floats over the photo here */
}
.first-screen > .container { width: 100%; }
.hero {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1440px;
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  /* balanced crop: the castle spire stays below the header, the ship stays above the booking bar */
  background: #fff url("../img/hero-grin.jpg") 0 55% / cover no-repeat;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* soft wash across the left half */
.hero::before {
  inset: -34px auto -34px -32px;
  width: 82%;
  background: linear-gradient(99deg, #fff 3%, rgba(255, 255, 255, 0) 95%);
  filter: blur(50px);
}
/* solid white under the text, fading out by the middle */
.hero::after {
  width: 55.5%;
  background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  padding-top: calc(120px + var(--header-h));
}
.hero__title {
  max-width: 640px;
  margin: 0;
  font-weight: 300;
  font-size: 52px;
  line-height: 1.15;
}
.hero__title-script {
  display: block;
  white-space: nowrap;
  font-family: var(--script);
  font-weight: 400;
  font-size: 58px;
  line-height: 1.15;
}
.hero__text {
  max-width: 470px;
  margin: 32px 0 0;
  font-size: 22px;
  line-height: 1.25;
}
.hero__text + .hero__text { margin-top: 16px; }

/* ---------- Booking bar ---------- */
.booking-bar {
  position: relative;
  z-index: 2;
  margin-top: -60px;
  background: #fff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}
.booking-bar__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}
.booking-bar__title { margin: 0; font-weight: 300; font-size: 26px; line-height: 1.2; }
.booking-bar__note { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.booking-bar__fields {
  display: grid;
  grid-template-columns: 200px 220px 280px 166px 1fr;
  min-height: 87px;
}
.bfield {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 14px 20px;
  border-right: 1px solid var(--line);
}
.bfield__label { font-size: 15px; text-transform: uppercase; color: var(--muted); }
.bfield__control {
  width: 100%;
  padding: 0 22px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 22px;
  line-height: 1.2;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}
.bfield__control::-webkit-date-and-time-value { text-align: left; margin: 0; }
.bfield__control[type="date"] { min-height: 1.2em; display: block; }
.bfield__control::-webkit-calendar-picker-indicator { opacity: 0; cursor: pointer; }
.bfield__icon {
  position: absolute;
  right: 20px;
  bottom: 31px;
  width: 12px;
  height: 12px;
  pointer-events: none;
  color: var(--ink);
}
.bfield:focus-within { box-shadow: inset 0 -2px 0 var(--ink); }
.booking-bar__submit {
  border: 0;
  background: var(--btn);
  color: #fff;
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.booking-bar__submit:hover { background: #000; }

/* ---------- Routes ---------- */
.routes { padding: 80px 0 160px; }
.routes__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
/* «Откуда: Ялта ▾» — one pier at a time on the home page */
.city-pick { position: relative; display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); cursor: pointer; }
.city-pick__label { font-size: 18px; color: var(--muted); }
.city-pick__select { appearance: none; -webkit-appearance: none; min-width: 180px; padding: 0 28px 0 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 26px; cursor: pointer; }
.city-pick__select:focus-visible { outline: none; }
.city-pick:focus-within { box-shadow: 0 1px 0 var(--ink); }
.city-pick__icon { position: absolute; right: 2px; bottom: 18px; width: 14px; height: 14px; pointer-events: none; }
.section-title { margin: 0; font-weight: 300; font-size: 52px; line-height: 1.2; }
.tabs { display: flex; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: none;
  padding: 12px 18px;
  white-space: nowrap;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1.2;
  cursor: pointer;
}
.tabs__tab:hover { color: var(--ink); }
.tabs__tab[aria-selected="true"] { color: var(--ink); border-bottom: 2px solid var(--ink); }
.tabs__tab:first-child { padding-left: 0; }
.routes__empty,
.catalog__empty { grid-column: 1 / -1; max-width: 640px; margin: 0; padding: 40px 0; font-size: 22px; line-height: 1.4; color: var(--muted); }
.routes__empty a,
.catalog__empty a { color: var(--ink); text-underline-offset: 3px; white-space: nowrap; }
.booking-bar__submit:disabled { background: #bdb8b2; cursor: not-allowed; }
.bfield__control:disabled { color: var(--muted); opacity: 1; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: flex; flex-direction: column; }
.card__photo { aspect-ratio: 333 / 380; overflow: hidden; background: #edebe5; }
.card__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.card:hover .card__photo img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; flex: 1; padding-top: 24px; }
.card__meta { margin: 0 0 12px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.card__title { margin: 0 0 12px; font-weight: 300; font-size: 32px; line-height: 38px; }
.card__desc { flex: 1; margin: 0 0 12px; font-size: 20px; line-height: 23px; }
.card__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.card__duration { font-size: 20px; color: var(--muted); }
.card__price { font-size: 26px; }
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 58px;
  padding: 0 24px;
  background: var(--btn);
  color: #fff;
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: #000; }

.more-link {
  display: block;
  width: fit-content;
  margin: 40px auto 0;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.more-link:hover { border-color: var(--ink); }

/* ---------- Excursions catalog page ---------- */

.catalog { padding: 64px 0 160px; }
.catalog__title { margin: 0 0 12px; font-weight: 300; font-size: 52px; line-height: 1.2; }
.catalog__title-script { margin-left: 0.25em; font-family: var(--script); font-weight: 400; font-size: 58px; }
.catalog__lead { max-width: 560px; margin: 0 0 40px; font-size: 22px; line-height: 1.25; }
.filters { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
/* pier chips: several can be on at once */
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.filter-group .tabs__tab { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 18px; color: var(--ink); transition: border-color 0.2s, background 0.2s; }
.filter-group .tabs__tab:hover { border-color: var(--ink); }
.filter-group .tabs__tab[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.catalog__count { margin: 0 0 24px; font-size: 18px; color: var(--muted); }
.catalog__empty { padding: 48px 0; font-size: 22px; color: var(--muted); }

/* ---------- Charter: private events ---------- */
/* full-bleed photo, white fade on the left under the text and form (Figma 91:481) */
.charter {
  --cl: max(0px, (100% - var(--w)) / 2);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(var(--vh) * 100 - var(--header-h));
  padding: 80px 0;
  overflow: hidden;
}
/* desktop: the photo sits behind the whole block (it lives inside the text column for the stacked phone layout) */
.charter__photo { position: absolute; inset: 0; z-index: -1; background: #efe7dc; }
.charter__photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 75% 50%; }
.charter__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fff 0, #fff calc(var(--cl) + 280px), rgba(255, 255, 255, 0.55) calc(var(--cl) + 640px), rgba(255, 255, 255, 0) calc(var(--cl) + 900px));
  pointer-events: none;
}
.charter__inner { width: 100%; }
.charter__body { max-width: 560px; }
.charter .section-title { font-size: 44px; line-height: 1.42; }
.charter-form__grid { background: #fff; }
.charter-done { background: #fff; }
.charter__kicker { margin: 0 0 12px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.charter__script { font-family: var(--script); font-size: 0.95em; white-space: nowrap; }
.charter__lead { max-width: 560px; margin: 20px 0 28px; font-size: 22px; line-height: 1.35; }
.charter__facts { display: flex; flex-wrap: wrap; gap: 8px 32px; margin: 0 0 40px; padding: 0; list-style: none; font-size: 18px; color: var(--muted); }
.charter__facts b { font-weight: 300; font-size: 22px; color: var(--ink); }

.charter-form__grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.charter-form .bfield { border-bottom: 1px solid var(--line); }
.charter-form__wide { grid-column: 1 / -1; }
.charter-form .bfield__control { padding-right: 24px; }
.charter-form .bfield__control::placeholder { color: #c2bdb6; }
.charter-form__message { min-height: 3.6em; padding-top: 4px; resize: vertical; cursor: text; font-family: inherit; }
.charter-form .bfield.is-invalid { box-shadow: inset 0 -2px 0 #b4532a; }
.charter-form .bfield.is-invalid .bfield__label { color: #b4532a; }
.charter-form__submit { width: 372px; max-width: 100%; min-height: 60px; margin-top: 24px; border: 0; cursor: pointer; }
.charter-form__submit:disabled { opacity: 0.6; cursor: progress; }
.charter-form__note { margin: 14px 0 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.charter-form__note a { color: inherit; text-underline-offset: 3px; }
.charter-form__error { margin: 10px 0 0; font-size: 16px; color: #b4532a; }
.charter-done { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); outline: none; }
.charter-done__title { margin: 0 0 8px; font-size: 32px; }
.charter-done p:last-child { margin: 0; font-size: 20px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { padding: 120px 0 80px; }
.faq__list { margin-top: 40px; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 26px 0;
  font-size: 30px;
  line-height: 1.2;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover .faq__icon { background: var(--ink); color: #fff; }
.faq__icon {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
/* plus that turns into a cross when open */
.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a {
  max-width: 760px;
  margin: -6px 0 0;
  padding-bottom: 28px;
  font-size: 22px;
  line-height: 1.35;
  color: #555;
}
.faq__item[open] .faq__a { animation: faq-in 0.35s ease; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Footer with looping video ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  min-height: max(760px, calc(var(--vh) * 100));
  background: #fff;
}
.site-footer__video {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 72%;
  object-fit: cover;
  object-position: 50% 100%;
}
/* the page white melts into the hazy sky of the video */
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(72% - 4px);
  height: calc(28% + 4px);
  background: #fff;
}
.site-footer::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(28% - 4px);
  height: 26%;
  background: linear-gradient(180deg, #fff 0%, #fff 3%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.site-footer__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-top: 120px;
}
.site-footer__logo { display: inline-block; }
.site-footer__logo img { display: block; width: auto; height: 120px; }
.site-footer__tagline { margin: 12px 0 24px; font-size: 22px; line-height: 1.2; }
.site-footer__tagline span { display: block; white-space: nowrap; }
.site-footer__copy { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__head { margin: 0 0 6px; font-weight: 300; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.site-footer__col a { font-size: 19px; color: var(--ink); text-decoration: none; }
.site-footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer__phone { font-size: 22px !important; }
.site-footer__col a[href^="mailto"] { white-space: nowrap; }
.messengers { display: flex; gap: 10px; margin-top: 8px; }
.messengers__item {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s, color 0.2s;
}
.messengers__item svg { width: 20px; height: 20px; }
.messengers__item--text { font-size: 13px !important; letter-spacing: 0.5px; }
.site-footer .messengers__item:hover { background: var(--ink); color: #fff; text-decoration: none; }

/* one tour: wide card */
.cards--single { grid-template-columns: 1fr; }
.card--wide .card__photo { aspect-ratio: 1040 / 380; }
.card--wide .card__desc { flex: none; max-width: 640px; }
.card--wide .card__row { flex-direction: column; align-items: flex-start; gap: 0; }
.card--wide .btn { align-self: flex-start; width: 240px; }

/* ---------- Fleet (scroll-driven drone orbit) ---------- */
.fleet { position: relative; height: calc(var(--vh) * 340); }
.fleet__sticky {
  position: sticky;
  top: var(--header-h);
  height: calc(var(--vh) * 100 - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}
/* the stage fills the whole window while the block is pinned */
.fleet__stage {
  position: relative;
  width: 100%;
  height: 100%;
}
/* soft white edges so the frames melt into the page */
.fleet__stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0) 14%);
}
.fleet__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.fleet__canvas.is-active { opacity: 1; }
/* white wash on the left so the text stays readable, as in the layout */
.fleet__fade {
  position: absolute;
  left: 0;
  bottom: 0;
  width: max(56%, calc((100% - var(--w)) / 2 + 674px));
  height: 97%;
  background: linear-gradient(90deg, #fff 30%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
.ship {
  position: absolute;
  z-index: 2;
  top: clamp(60px, 14vh, 160px);
  left: max(var(--pad), calc((100% - var(--w)) / 2 + var(--pad)));
  z-index: 2;
  width: 372px;
  opacity: 0;
  visibility: hidden;
}
.ship.is-active { opacity: 1; visibility: visible; }
.ship__kicker { margin: 0 0 4px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ship__title { margin: 0 0 8px; font-weight: 300; font-size: 44px; line-height: 62px; }
.ship__desc { margin: 0 0 16px; font-size: 20px; line-height: 24px; }
.ship__specs { margin: 0 0 20px; }
.ship__specs div { display: grid; grid-template-columns: 148px 1fr; align-items: baseline; padding: 14px 0; }
.ship__specs div + div { border-top: 1px solid var(--line); }
.ship__specs dt { font-size: 18px; color: var(--muted); }
.ship__specs dd { margin: 0; font-size: 20px; white-space: nowrap; }
.ship__btn { min-height: 60px; background: #333; }


/* ---------- Our fleet: cards + popup ---------- */
.ships { padding: 140px 0 40px; }
.ships__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 40px; }
.ships__script { font-family: var(--script); font-size: 1.05em; }
.ships__lead { max-width: 440px; margin: 0; font-size: 20px; line-height: 1.35; color: var(--muted); }
.ships__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ship-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: border-color 0.2s; }
.ship-card--wide { grid-column: span 2; }
/* same photo height in every card, so the rows line up; the wide card just gets a wider frame */
.ship-card__photo { display: flex; align-items: center; justify-content: center; height: 240px; overflow: hidden; background: #f1ece5; }
.ship-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.ship-card__photo span { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: #b3aba1; }
.ship-card__body { display: flex; flex: 1; flex-direction: column; padding: 24px 28px 24px; }
.ship-card:hover { border-color: var(--ink); }
.ship-card__type { margin: 0 0 10px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ship-card__name { margin: 0 0 20px; font-weight: 300; font-size: 34px; line-height: 1.15; }
.ship-card__facts { margin: 0 0 20px; }
.ship-card__facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.ship-card__facts dt { font-size: 16px; color: var(--muted); }
.ship-card__facts dd { margin: 0; font-size: 19px; }
/* the button covers the whole card, so a tap anywhere opens the popup */
.ship-card__more { align-self: flex-start; margin-top: auto; padding: 0 0 4px; border: 0; border-bottom: 1px solid var(--ink); background: none; font: inherit; font-size: 18px; color: var(--ink); cursor: pointer; }
.ship-card__more::after { content: ""; position: absolute; inset: 0; }
.ship-card__more:focus-visible { outline: none; }
.ship-card:has(.ship-card__more:focus-visible) { outline: 2px solid var(--ink); outline-offset: 3px; }

.ship-modal { width: min(720px, calc(100% - 32px)); max-height: calc(100% - 48px); padding: 48px 48px 40px; border: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-weight: 300; }
.ship-modal::backdrop { background: rgba(20, 20, 20, 0.45); }
html:has(.ship-modal[open]) { overflow: hidden; }
.ship-modal__close { position: absolute; z-index: 1; top: 14px; right: 14px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); cursor: pointer; }
/* photo runs edge to edge across the top of the popup */
.ship-modal__photo { display: flex; align-items: center; justify-content: center; height: 320px; margin: -48px -48px 32px; overflow: hidden; background: #f1ece5; }
.ship-modal__photo img { width: 100%; height: 100%; object-fit: cover; }
.ship-modal__photo span { font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: #b3aba1; }
.ship-modal__close svg { width: 24px; height: 24px; }
.ship-modal__type { margin: 0 0 10px; font-size: 14px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ship-modal__name { margin: 0 0 16px; font-weight: 300; font-size: 44px; line-height: 1.15; }
.ship-modal__about { margin: 0 0 28px; font-size: 20px; line-height: 1.4; }
.ship-modal__specs { margin: 0 0 32px; border-bottom: 1px solid var(--line); }
.ship-modal__specs div { display: grid; grid-template-columns: 170px 1fr; gap: 16px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); }
.ship-modal__specs dt { font-size: 17px; color: var(--muted); }
.ship-modal__specs dd { margin: 0; font-size: 19px; }
.ship-modal__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.ship-modal__actions .btn { min-height: 52px; padding: 0 24px; }
.btn--ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Tablet ---------- */
@media (max-width: 1100px) {
  .ships__grid { grid-template-columns: repeat(2, 1fr); }
  .ships__head { flex-direction: column; align-items: flex-start; gap: 16px; }
  :root { --pad: 40px; }
  .booking-bar__fields { grid-template-columns: repeat(2, 1fr); }
  .bfield { border-bottom: 1px solid var(--line); }
  .bfield:nth-child(2n) { border-right: 0; }
  .booking-bar__submit { grid-column: 1 / -1; min-height: 64px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  /* stacked: heading on white, then a full-width photo with crisp edges, then text and form */
  .charter { display: block; min-height: 0; margin-top: 96px; padding: 0 0 40px; overflow: visible; }
  .charter__photo { position: relative; inset: auto; z-index: auto; aspect-ratio: 16 / 10; margin: 32px calc(-1 * var(--pad)) 0; }
  .charter__photo::after { display: none; }
  .charter__photo img { object-position: 80% 50%; }
  .charter__body { max-width: none; }
  .charter__lead { margin-top: 28px; }
  .charter-form,
  .charter-done { max-width: 640px; }
  .site-footer__inner { grid-template-columns: repeat(2, 1fr); padding-top: 80px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .site-footer { min-height: 1000px; }
  .site-footer::before { bottom: 50%; height: 50%; }
  .site-footer::after { top: 50%; height: 20%; }
  .site-footer__video { height: 50%; }
}

/* ---------- Mobile ---------- */
@media (max-width: 700px) {
  .ships { padding: 72px 0 24px; }
  .ships__grid { grid-template-columns: 1fr; gap: 12px; }
  .ship-card--wide { grid-column: auto; }
  .ship-card__photo { height: 200px; }
  .ship-card__body { padding: 20px; }
  .ship-card__name { font-size: 30px; }
  .ships__lead { font-size: 18px; }
  .ship-modal { width: 100%; max-width: none; max-height: 100%; height: 100%; margin: 0; padding: 0 20px 32px; }
  .ship-modal__photo { height: 240px; margin: 0 -20px 24px; }
  .ship-modal__name { font-size: 36px; }
  .ship-modal__about { font-size: 18px; }
  .ship-modal__specs div { grid-template-columns: 1fr; gap: 2px; }
  .ship-modal__actions .btn { width: 100%; }
  :root { --pad: 16px; }
  .first-screen { min-height: 0; }
  .hero { background-image: url("../img/hero-grin-mobile.jpg"); }
  .hero {
    flex: none;
    min-height: 600px;
    background-position: 70% 100%;
    background-size: auto 420px;
  }
  .hero::before { display: none; }
  .hero::after {
    width: 100%;
    background: linear-gradient(180deg, #fff 40%, rgba(255, 255, 255, 0) 70%);
  }
  .hero__inner { padding-top: calc(40px + var(--header-h)); padding-bottom: 330px; }
  .hero__title { font-size: 38px; }
  /* scales with the screen so «по Крыму и Кавказу» always stays on one line */
  .hero__title-script { font-size: min(44px, 10.2vw); white-space: nowrap; }
  .hero__text { margin-top: 20px; font-size: 19px; }
  .booking-bar { margin-top: -40px; }
  .booking-bar__head { height: auto; padding: 16px; flex-direction: column; align-items: flex-start; gap: 4px; }
  .booking-bar__title { font-size: 24px; }
  .booking-bar__fields { grid-template-columns: 1fr; }
  .bfield { border-right: 0; padding: 12px 16px; }
  .bfield__icon { right: 16px; bottom: 23px; }
  .routes { padding: 56px 0 80px; }
  .routes__head { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
  .city-pick { align-self: stretch; }
  .city-pick__select { flex: 1; font-size: 22px; }
  .section-title { font-size: 40px; }
  /* the pier strip runs edge to edge and scrolls sideways */
  .tabs { margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); }
  .tabs__tab { padding: 12px 14px; font-size: 20px; }
  .cards { grid-template-columns: 1fr; gap: 40px; }
  .card__photo,
  .card--wide .card__photo { aspect-ratio: 4 / 3; }
  .card--wide .btn { width: 100%; }
  /* on mobile the wide card looks like a regular one: duration left, price right */
  .card--wide .card__row { flex-direction: row; align-items: center; }

  /* phone: text and the orbit strip form one group centred on the screen,
     so the free height is split above and below instead of one big gap */
  .fleet__fade { display: none; }
  .fleet__stage {
    display: grid;
    grid-template-rows: 1fr auto auto 1fr;
    row-gap: 8px;
  }
  .fleet__stage::after { display: none; }
  .ship,
  .fleet__canvas { grid-column: 1; }
  .ship { position: relative; grid-row: 2; inset: auto; min-width: 0; padding: 0 var(--pad); width: auto; }
  .ship__specs { margin-bottom: 16px; }
  .ship__btn { min-height: 52px; }
  .fleet__canvas {
    position: relative;
    grid-row: 3;
    inset: auto;
    /* exactly the height of a 16:9 frame zoomed to 140% of the screen width */
    height: calc(100vw * 1.4 * 0.5625);
  }
  .ship__title { font-size: 36px; line-height: 1.3; }
  .ship__desc { font-size: 18px; }
  .ship__desc br { display: none; }
  .ship__specs div { grid-template-columns: 110px 1fr; padding: 10px 0; }
  .ship__specs dd { white-space: normal; }
  .catalog { padding: 40px 0 80px; }
  .catalog__title { font-size: 38px; }
  .catalog__title-script { font-size: 44px; }
  .catalog__lead { font-size: 19px; }
  .filters { flex-direction: column; gap: 0; }
  .filter-group .tabs__tab { padding: 7px 14px; font-size: 17px; }
  .charter { padding: 0 0 24px; }
  .charter__photo { aspect-ratio: 4 / 5; margin-top: 24px; }
  .charter .section-title { font-size: 36px; line-height: 1.3; }
  .charter__lead { font-size: 19px; }
  .charter-form__grid { grid-template-columns: 1fr; }
  .charter-form .bfield { border-right: 1px solid var(--line); }
  .faq { padding: 64px 0 40px; }
  .faq__q { padding: 20px 0; font-size: 22px; }
  .faq__icon { width: 36px; height: 36px; }
  .faq__a { font-size: 18px; }
  .site-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px 16px; padding-top: 56px; }
  .site-footer { min-height: 1150px; }
  .site-footer::before { bottom: 38%; height: 62%; }
  .site-footer::after { top: 62%; height: 14%; }
  .site-footer__video { height: 38%; }
}
