:root {
  --bg: #f4f8fb;
  --bg-dark: #0a2540;
  --surface: #ffffff;
  --text: #1a2b3c;
  --muted: #5a6d7d;
  --primary: #0d6e8a;
  --primary-dark: #09566d;
  --accent: #e07a5f;
  --gold: #c9a227;
  --border: #d8e5ee;
  --shadow: 0 12px 40px rgba(10, 37, 64, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: clip;
}
body.nav-open { overflow: hidden; }
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; -webkit-tap-highlight-color: rgba(13, 110, 138, 0.15); }
a:hover { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.75rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}
.split-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: center;
}
.map-embed {
  margin-top: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d8e5ee;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.cta-row__lead {
  margin-top: 2rem;
  text-align: center;
}
.cta-row .btn { flex: 1 1 auto; min-width: min(100%, 220px); max-width: 100%; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 9999;
  background: var(--primary); color: #fff; padding: 0.5rem 1rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.85rem 1.4rem; border-radius: 999px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer; transition: 0.2s ease;
  font-family: inherit; font-size: 0.95rem;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: #c9684f; color: #fff; }
.btn--secondary { background: var(--primary); color: #fff; }
.btn--secondary:hover { background: var(--primary-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn--outline { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--sm { padding: 0.55rem 1rem; font-size: 0.875rem; }
.btn--block { width: 100%; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 37, 64, 0.96); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-top: env(safe-area-inset-top, 0);
}
.header__inner {
  display: flex; align-items: center; gap: 1rem;
  min-height: 72px;
}
.logo {
  display: flex; align-items: center; flex-shrink: 0;
  color: #fff;
}
.logo--footer { margin-bottom: 0.75rem; display: inline-flex; }
.logo__img {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  flex-shrink: 0;
}
.logo__img--footer {
  width: 84px;
  height: 84px;
}
.logo:hover .logo__img { opacity: 0.92; }
.nav { display: flex; gap: 1.25rem; margin-left: auto; }
.nav a { color: rgba(255,255,255,0.88); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: #fff; }
.nav__mobile-actions {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.header__actions { display: flex; gap: 0.5rem; align-items: center; }
.header__phones { display: flex; flex-direction: column; gap: 0.35rem; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0.65rem; margin-left: auto;
  min-width: 44px; min-height: 44px; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px; background: #fff;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, #0a2540 0%, #0d6e8a 55%, #1aa0c0 100%);
  padding: 5rem 0 4.5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url('../media/hero/cruise-hero.jpg') center/cover no-repeat;
  opacity: 0.28;
}
.hero__inner { position: relative; display: grid; gap: 2rem; align-items: center; }
.hero__badge {
  display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
  background: rgba(255,255,255,0.14); font-size: 0.85rem; margin-bottom: 1rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 14ch; }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,0.9); max-width: 52ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem;
}
.stat {
  padding: 1rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.12);
}
.stat strong { display: block; font-size: 1.5rem; }
.stat span { font-size: 0.85rem; color: rgba(255,255,255,0.8); }

/* Sections */
.section { padding: 4rem 0; }
.section--alt { background: var(--surface); }
.section__head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section__head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section__head p { color: var(--muted); max-width: 50ch; margin: 0; }

/* Cards grid */
.grid { display: grid; gap: 1.25rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card__img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 1.25rem; }
.card__badge {
  display: inline-block; padding: 0.2rem 0.6rem; border-radius: 999px;
  background: #e8f6fa; color: var(--primary); font-size: 0.75rem; font-weight: 700;
  margin-bottom: 0.5rem;
}
.card__meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.75rem; }
.card__price { font-size: 1.25rem; font-weight: 800; color: var(--primary-dark); }
.card__price small { font-size: 0.8rem; font-weight: 500; color: var(--muted); }

.line-card {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}
.line-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.line-card__link { display: block; color: inherit; text-decoration: none; }
.line-card__link:hover { color: inherit; }
.line-card__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
}
.line-card__body { padding: 1rem 1.15rem 1.15rem; }
.line-card h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.line-card p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Features */
.features { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); overflow: hidden;
}
.feature__img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block;
}
.feature__body { padding: 1.15rem 1.25rem 1.25rem; }
.feature h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.feature p { font-size: 0.92rem; color: var(--muted); margin: 0; }

/* Reviews */
.review-wrap .review { height: 100%; flex: unset; }
.reviews__track {
  display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem; scrollbar-width: thin;
}
.review {
  flex: 0 0 min(100%, 360px); scroll-snap-align: start;
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.25rem;
}
.review__head {
  display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.75rem;
}
.review__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
}
.review__avatar--initials {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #1aa0c0);
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.review__person { min-width: 0; }
.review__stars { color: var(--gold); letter-spacing: 1px; margin-bottom: 0.5rem; }
.review__tag {
  display: inline-block; font-size: 0.75rem; color: var(--primary);
  background: #e8f6fa; padding: 0.15rem 0.5rem; border-radius: 999px; margin-bottom: 0.5rem;
}
.review__author { font-weight: 700; }
.review__date { color: var(--muted); font-size: 0.85rem; }
.reviews__nav { display: flex; gap: 0.5rem; margin-top: 1rem; }
.reviews__nav button {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 1.1rem;
}

/* Forms */
.form {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  box-shadow: var(--shadow);
  color: var(--text);
}
.form h2, .form h3 { color: var(--text); }
.form__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form label:not(.form__check) {
  display: block; font-size: 0.9rem; font-weight: 600;
  margin-bottom: 0.35rem; color: var(--text);
}
.form input, .form select, .form textarea {
  width: 100%; padding: 0.75rem 0.9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); font: inherit; background: #fff;
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 2px solid rgba(13,110,138,0.25); border-color: var(--primary);
}
.form__check { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.85rem; color: var(--muted); }
.form__check input { width: auto; margin-top: 0.2rem; }
.form__hp { position: absolute; left: -9999px; opacity: 0; }

/* Page hero */
.page-hero {
  background: linear-gradient(135deg, #0a2540, #0d6e8a);
  color: #fff; padding: 3rem 0;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.breadcrumbs { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin-bottom: 0.75rem; }
.breadcrumbs a { color: #fff; }

/* Widget placeholder */
.widget-box {
  min-height: 420px; background: var(--surface);
  border: 2px dashed var(--border); border-radius: var(--radius);
  display: grid; place-items: center; text-align: center; padding: 2rem;
}
.widget-box__inner { max-width: 480px; }
.widget-box code {
  display: block; margin-top: 1rem; padding: 0.75rem;
  background: #f0f5f8; border-radius: var(--radius-sm);
  font-size: 0.8rem; word-break: break-all;
}
.widget-frame,
#infoflot-widget,
#tourvisor-widget {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.widget-frame--tourvisor {
  min-height: 420px;
}
.widget-frame iframe,
#infoflot-widget iframe,
#tourvisor-widget iframe {
  max-width: 100%;
}

.widget-shell {
  position: relative;
  min-height: 420px;
}
.widget-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: linear-gradient(160deg, #f4f8fb 0%, #e8f4f8 50%, #f4f8fb 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
.widget-loader--done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.widget-loader__inner {
  max-width: 420px;
}
.widget-loader__spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  border: 3px solid rgba(13, 110, 138, 0.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: widget-spin 0.9s linear infinite;
}
.widget-loader__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 0.65rem;
  color: var(--text);
}
.widget-loader__text {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  min-height: 1.5em;
  transition: opacity 0.25s ease;
}
.widget-loader__hint {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 1rem;
  min-height: 2.6em;
  line-height: 1.45;
}
.widget-loader__hint a {
  color: var(--primary);
  font-weight: 600;
}
.widget-loader__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.widget-loader__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.35;
  animation: widget-dot 1.2s ease-in-out infinite;
}
.widget-loader__dots span:nth-child(2) { animation-delay: 0.15s; }
.widget-loader__dots span:nth-child(3) { animation-delay: 0.3s; }
.widget-shell--error .widget-loader {
  background: #fff8f6;
  border-color: #f0d4cc;
}
@keyframes widget-spin {
  to { transform: rotate(360deg); }
}
@keyframes widget-dot {
  0%, 80%, 100% { opacity: 0.35; transform: scale(1); }
  40% { opacity: 1; transform: scale(1.15); }
}

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: 0.75rem;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 0.75rem 0 0; color: var(--muted); }

/* Legal */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.2rem; margin-top: 2rem; }
.legal__meta { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.25rem; }
.legal__note { margin-top: 2rem; padding: 1rem 1.15rem; background: #f4f7fa; border-radius: var(--radius); font-size: 0.92rem; color: var(--muted); }
.legal__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); }
.legal__actions-hint { font-size: 0.85rem; color: var(--muted); }
.legal-docs { display: grid; gap: 1rem; margin-top: 1.5rem; }
.legal-docs__item { padding: 1.25rem 1.35rem; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.legal-docs__item h2 { margin: 0 0 0.85rem; font-size: 1.1rem; }
.legal-docs__actions { display: flex; flex-wrap: wrap; gap: 0.5rem 0.75rem; }

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -0.25rem;
  padding: 0 0.25rem;
}
.data-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
}
.data-table td {
  padding: 0.5rem 0;
  vertical-align: top;
}
.data-table td:first-child {
  color: var(--muted);
  padding-right: 1rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td { display: block; width: 100%; }
  .data-table tr { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
  .data-table td:first-child {
    white-space: normal;
    padding-bottom: 0.15rem;
    font-size: 0.85rem;
    font-weight: 600;
  }
  .data-table td:last-child { padding-top: 0; }
}

/* Footer */
.footer {
  background: var(--bg-dark); color: rgba(255,255,255,0.85);
  padding: 3rem 0 1.5rem; margin-top: 2rem;
}
.footer a { color: rgba(255,255,255,0.88); }
.footer a:hover { color: #fff; }
.footer__grid {
  display: grid; gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}
.footer__title { color: #fff; font-size: 1rem; margin-bottom: 0.75rem; }
.footer__desc { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer__links li, .footer__contacts li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.footer__social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1rem;
  font-size: 0.85rem; color: rgba(255,255,255,0.6);
}
.footer__note { margin-top: 0.35rem; }

/* FAB */
.fab-group {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0));
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.fab {
  width: 52px; height: 52px; border-radius: 50%; display: block;
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s, box-shadow 0.2s;
}
.fab:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15, 45, 61, 0.22); }
.fab img,
.fab svg,
.fab__icon { width: 100%; height: 100%; display: block; }
.fab img.fab__icon { object-fit: cover; border-radius: 50%; }

/* Cookie */
.cookie-banner {
  position: fixed;
  left: max(1rem, env(safe-area-inset-left, 0));
  right: max(1rem, env(safe-area-inset-right, 0));
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  z-index: 95;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.25rem; box-shadow: var(--shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.cookie-banner p { margin: 0; flex: 1 1 200px; font-size: 0.9rem; }
.cookie-banner[hidden] { display: none; }

/* Thanks */
.thanks {
  text-align: center; padding: 4rem 0; max-width: 560px; margin: 0 auto;
}
.thanks__icon { font-size: 4rem; margin-bottom: 1rem; }

/* Responsive */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: calc(72px + env(safe-area-inset-top, 0)) 0 0 0;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 1rem 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0));
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 99;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    font-size: 1rem;
  }
  .nav__mobile-actions { display: flex; }
  .header__actions { display: none; }
  .hero { padding: 3rem 0 2.5rem; }
  .hero__stats { grid-template-columns: 1fr; }
  .section { padding: 2.5rem 0; }
  .page-hero { padding: 2rem 0; }
  .section__head { align-items: flex-start; }
  .section__head .btn { width: 100%; }
  .fab-group { bottom: max(5.5rem, calc(1rem + env(safe-area-inset-bottom, 0))); }
  .form input,
  .form select,
  .form textarea { font-size: 16px; }
}

@media (max-width: 768px) {
  .container { width: min(100% - 1.5rem, var(--container)); }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: 1fr; }
  .footer { padding: 2.5rem 0 1.25rem; }
  .footer__grid { gap: 1.5rem; }
  .widget-box { min-height: 280px; padding: 1.5rem 1rem; }
  .widget-shell { min-height: 320px; }
  .legal__actions { flex-direction: column; align-items: stretch; }
  .legal__actions .btn { width: 100%; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 1.25rem, var(--container)); }
  .header__inner { min-height: 64px; gap: 0.5rem; }
  .logo__img { width: 48px; height: 48px; }
  .hero h1 { max-width: none; }
  .hero__lead { font-size: 1rem; }
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .cookie-banner .btn { width: 100%; }
  .fab { width: 48px; height: 48px; }
  .reviews__nav button {
    width: 44px;
    height: 44px;
  }
  .btn {
    min-height: 44px;
  }
}

@media (min-width: 901px) {
  .hero__inner { grid-template-columns: 1.2fr 0.8fr; }
}

@media (min-width: 1200px) {
  .hero { padding: 5.5rem 0 5rem; }
  .section { padding: 4.5rem 0; }
}
