/*
 * Shine Travel
 * Тема: светлая и яркая, по отзыву заказчицы: море (насыщенный голубой) и солнце (оранжевый из логотипа).
 * Шрифт: один спокойный Manrope для заголовков и текста, цифры ровные, без «прыгающих» 3 и 9.
 * Скругления: кнопки и чипы = pill, карточки = 22px, поля = 14px.
 * Слои z-index: глобус 0, контент 1, readout 2, шапка 50, мобильное меню 49.
 */

:root {
  --bg: #ffffff;
  --bg-2: #f1f8fe;            /* светлое небо для чередования разделов */
  --surface: #ffffff;
  --surface-2: #e8f3fd;
  --line: #e1ebf4;
  --line-strong: #c7d7e6;
  --text: #13233a;
  --muted: #56677b;

  --sea: #0a84e0;             /* море: главный цвет бренда */
  --sea-deep: #0a6bd6;        /* надпись логотипа */
  --sea-soft: rgba(10, 132, 224, 0.1);
  --sun: #ff9f1c;             /* солнце логотипа: кнопки и акценты */
  --sun-hi: #ffb13f;
  --sun-ink: #2b1700;
  --sun-soft: rgba(255, 159, 28, 0.14);
  --accent: var(--sun);
  --accent-hi: var(--sun-hi);
  --accent-ink: var(--sun-ink);
  --accent-soft: var(--sun-soft);
  --danger: #d93a3f;
  --ok: #12985a;

  --shadow: 0 12px 34px rgba(13, 64, 120, 0.09);
  --shadow-lg: 0 24px 60px rgba(13, 64, 120, 0.16);

  --r-card: 22px;
  --r-field: 14px;
  --r-pill: 999px;

  --font-display: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 60;
  background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: var(--r-pill);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--r-pill); border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn i { font-size: 19px; }
.btn:active { transform: scale(0.98) translateY(1px); }
.btn-accent { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 22px rgba(255, 140, 0, 0.32); }
.btn-accent:hover { background: var(--sun-hi); box-shadow: 0 10px 28px rgba(255, 140, 0, 0.42); }
.btn-ghost { border-color: var(--line-strong); background: var(--bg); color: var(--text); }
.btn-ghost:hover { border-color: var(--sea); color: var(--sea); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-icon { width: 52px; padding: 0; border-color: var(--line-strong); background: var(--bg); }
.btn-icon:hover { border-color: var(--sea); color: var(--sea); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; inset: env(safe-area-inset-top, 0px) 0 auto 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .35s var(--ease);
}
.site-header.is-solid { box-shadow: 0 6px 24px rgba(13, 64, 120, 0.08); }
.header-row { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { display: block; height: 52px; width: auto; }
.logo-footer .logo-img { height: 70px; }
@media (max-width: 560px) { .site-header .logo-img { height: 42px; } }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--text); transition: color .2s; white-space: nowrap; }
.nav a:hover { color: var(--sea); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-phone { font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header-phone:hover { color: var(--sea); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong); background: var(--bg); cursor: pointer; font-size: 22px;
  align-items: center; justify-content: center;
}
.mobile-menu {
  position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 auto 0; z-index: 49;
  background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 12px var(--gutter) 24px;
}
.mobile-menu nav { display: grid; }
.mobile-menu nav a { padding: 14px 0; font-size: 18px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu-phone { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: none; color: var(--sea); }

@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .header-phone { display: none; }
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 560px) {
  .header-actions .btn span { display: none; }
  .header-actions .btn { width: 44px; padding: 0; }
}

/* ---------- Глобус (hero): море и небо ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  min-height: max(100dvh, 720px);
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(60% 70% at 72% 48%, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(155deg, #0a6bd6 0%, #0a8fe6 45%, #1ab8e0 78%, #3fd2d4 100%);
  border-radius: 0 0 40px 40px;
}
.hero-sky { display: none; }
.globe-stage { position: absolute; inset: 0; z-index: 0; cursor: grab; }
.globe-stage:active { cursor: grabbing; }
.globe-stage canvas { display: block; outline: none; }
.globe-loading {
  position: absolute; top: 50%; left: 69%; width: min(44vw, 600px); aspect-ratio: 1;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08) 70%);
  transition: opacity .8s var(--ease);
}
.globe-loading span {
  position: absolute; inset: 0; border-radius: 50%;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%);
  background-size: 250% 100%;
  animation: shimmer 1.8s linear infinite;
}
@keyframes shimmer { to { background-position: -150% 0; } }
.globe-ready .globe-loading { opacity: 0; pointer-events: none; }

.hero-grid {
  position: relative; z-index: 1;
  min-height: inherit;
  display: grid; grid-template-columns: minmax(0, 540px) 1fr;
  align-items: center;
  padding-top: calc(var(--header-h) + 24px); padding-bottom: 72px;
  pointer-events: none;
}
.hero-panel { position: relative; pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.hero-panel > .view { grid-area: 1 / 1; transition: opacity .6s var(--ease), transform .7s var(--ease), visibility 0s linear .7s; }
.hero-panel[data-view="intro"] .view-dest,
.hero-panel[data-view="dest"] .view-intro,
.hero-panel[data-view="swap"] .view { opacity: 0; transform: translateY(18px); visibility: hidden; pointer-events: none; }
.hero-panel[data-view="intro"] .view-intro,
.hero-panel[data-view="dest"] .view-dest { transition-delay: .15s, .15s, 0s; visibility: visible; }

.hero-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.6rem, 5.4vw, 5rem);
  line-height: 1.05; letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}
.hero-title em {
  font-style: normal;
  text-decoration: underline; text-decoration-color: var(--sun);
  text-decoration-thickness: .1em; text-underline-offset: .16em; text-decoration-skip-ink: none;
}
.hero-sub { font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(255, 255, 255, 0.92); max-width: 40ch; margin: 0 0 30px; }

.dest-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; max-width: 560px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 5px;
  border-radius: var(--r-pill); border: 0;
  background: #fff; color: var(--text);
  box-shadow: 0 6px 16px rgba(6, 60, 120, 0.18);
  font-size: 14px; font-weight: 700; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.chip:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(6, 60, 120, 0.24); }
.chip:active { transform: scale(0.97); }
.chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chip[aria-pressed="true"] { background: var(--sun); color: var(--sun-ink); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.7); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--sea); border-color: #fff; }

/* Карточка направления */
.view-dest {
  background: #fff; color: var(--text);
  border-radius: var(--r-card);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(4, 40, 90, 0.35);
}
.back-btn {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 38px; padding: 0 14px; border-radius: var(--r-pill);
  border: 0; background: rgba(255, 255, 255, 0.94); color: var(--text);
  font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}
.back-btn:hover { color: var(--sea); }
.dest-card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-2); }
.dest-card-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.6s var(--ease); }
.hero-panel[data-view="dest"] .dest-card-media img { transform: scale(1); }
.dest-card-body { padding: 22px 26px 26px; }
.dest-card-places { margin: 0 0 4px; color: var(--sea); font-size: 14px; font-weight: 700; }
.dest-card-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 3vw, 2.5rem); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 10px; }
.dest-card-text { color: var(--muted); margin: 0 0 18px; }
.dest-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 22px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.dest-facts dt { font-size: 12.5px; color: var(--muted); }
.dest-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; line-height: 1.35; }
.dest-card-ctas { display: flex; gap: 10px; }
.dest-card-ctas .btn-accent { flex: 1; }

.readout {
  position: absolute; right: var(--gutter); bottom: 30px; z-index: 2;
  display: flex; gap: 18px;
  font-size: 12.5px; font-weight: 600; color: #fff;
  font-variant-numeric: tabular-nums;
  padding: 8px 14px; border-radius: var(--r-pill); background: rgba(6, 70, 140, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  pointer-events: none;
}

/* Метки на глобусе */
.gm {
  position: relative; transform: translate(-50%, -50%);
  pointer-events: auto; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  background: none; border: 0; padding: 6px;
  color: var(--text); font: 700 13px var(--font-body);
  transition: opacity .4s var(--ease);
}
.gm-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--sun); border: 2px solid #fff; box-shadow: 0 0 0 4px rgba(255, 159, 28, 0.35); flex-shrink: 0; }
.gm-label {
  position: absolute; left: 26px; top: 50%; transform: translateY(-50%);
  padding: 4px 10px; border-radius: var(--r-pill);
  background: #fff; white-space: nowrap; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  opacity: 0; transition: opacity .25s;
}
.gm:hover .gm-label, .gm:focus-visible .gm-label, .gm.is-active .gm-label { opacity: 1; }
.gm.is-active .gm-dot { background: #fff; border-color: var(--sun); box-shadow: 0 0 0 6px rgba(255, 159, 28, 0.6); }
.gm-origin { pointer-events: none; }
.gm-origin .gm-dot { background: #fff; border-color: var(--sea); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35); width: 10px; height: 10px; }
.gm-origin .gm-label { opacity: .95; background: rgba(255, 255, 255, 0.85); font-weight: 600; }
.gm.is-hidden { opacity: 0; pointer-events: none; }

@media (max-width: 899px) {
  .hero { min-height: auto; display: flex; flex-direction: column; border-radius: 0 0 28px 28px; }
  .globe-stage { position: relative; inset: auto; height: min(62vh, 480px); margin-top: var(--header-h); order: 1; cursor: default; }
  .globe-loading { left: 50%; width: min(78vw, 420px); }
  .hero-grid { order: 2; grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-bottom: 44px; min-height: 0; margin-top: -36px; }
  .hero-title { font-size: clamp(2.3rem, 10vw, 3.3rem); }
  .dest-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 28px; padding: 4px var(--gutter) 10px; scrollbar-width: none; scroll-snap-type: x proximity; max-width: none; }
  .dest-chips::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; scroll-snap-align: start; }
  .readout { top: calc(var(--header-h) + 14px); bottom: auto; right: auto; left: var(--gutter); gap: 12px; font-size: 11px; }
  .dest-card-body { padding: 18px 18px 20px; }
  .dest-facts { grid-template-columns: 1fr 1fr; }
  .dest-facts div:last-child { grid-column: span 2; }
  .gm-label { display: none; }
  .gm.is-active .gm-label { display: block; }
}

/* ---------- Секции ---------- */
.section { position: relative; padding: clamp(64px, 8vw, 112px) 0; }
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -0.03em; line-height: 1.12;
  margin: 0 0 14px;
  text-wrap: balance;
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.2vw, 1.12rem); max-width: 58ch; margin: 0; }
.section-head { margin-bottom: clamp(30px, 4vw, 48px); }

/* Подбор тура */
.search { background: var(--bg); }
.search-head { margin-bottom: 30px; }
.search-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(20px, 2.6vw, 32px);
  box-shadow: var(--shadow);
}
.sf-params { display: grid; grid-template-columns: 1.2fr 1.3fr 1.2fr 0.9fr 0.8fr 0.8fr; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; font-weight: 700; color: var(--muted); }
.req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border-radius: var(--r-field); border: 1px solid var(--line-strong);
  background: var(--bg-2); color: var(--text);
  font-size: 15.5px; font-weight: 600;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230a84e0' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.field input[type="date"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .7; }
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder, .field textarea::placeholder { color: #7d8ea1; font-weight: 500; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9fbbd6; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sea); background: #fff; box-shadow: 0 0 0 3px var(--sea-soft); }
.field.has-error input { border-color: var(--danger); }
.field-error { margin: 0; min-height: 0; font-size: 13px; color: var(--danger); font-weight: 600; }
.field-error:empty { display: none; }
.field-submit { padding-top: 27px; }
.form-consent { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.form-consent a, .footer-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.form-status:empty { display: none; }
.form-status { margin-top: 16px; }

.notice {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--r-field);
  border: 1px solid var(--line-strong); background: var(--bg-2);
  margin-bottom: 20px;
}
.notice i { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.notice p { margin: 0; }
.notice a { color: var(--sea); font-weight: 700; }
.notice-error { border-color: rgba(217, 58, 63, 0.4); background: #fff5f5; }
.notice-error i { color: var(--danger); }
.notice-ok { border-color: rgba(18, 152, 90, 0.4); background: #f1fbf5; }
.notice-ok i { color: var(--ok); }
.tv-slot { margin-bottom: 28px; min-height: 120px; }
.tv-extra { margin: 40px 0 0; min-height: 0; }
.tv-bot-slot { margin-top: 18px; }

.sf-filters { display: grid; grid-template-columns: repeat(4, 1fr) 1.1fr; gap: 14px; align-items: start; }
.field-submit .btn i { font-size: 19px; }

@media (max-width: 1100px) {
  .sf-params { grid-template-columns: repeat(3, 1fr); }
  .sf-filters { grid-template-columns: repeat(4, 1fr); }
  .sf-filters .field-submit { padding-top: 0; grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sf-params, .sf-filters { grid-template-columns: 1fr 1fr; }
  .sf-params .field:nth-child(2), .sf-params .field:nth-child(1) { grid-column: span 2; }
}

/* Сравнение предложений туроператоров */
.results { margin-top: 28px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.results-meta { margin: 0; color: var(--muted); font-size: 14.5px; font-weight: 600; }
.notice-sample { border-color: rgba(255, 159, 28, 0.5); background: #fff8ec; }
.notice-sample i { color: #e07d00; }
.results-list { display: grid; gap: 14px; }
.result {
  display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 24px;
  padding: 22px 24px; border-radius: var(--r-card);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: box-shadow .25s, transform .25s var(--ease);
}
.result:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.result-info { min-width: 0; }
.result-top { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.stars { display: inline-flex; gap: 2px; color: var(--sun); font-size: 15px; }
.rating {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 6px;
  background: var(--sea); color: #fff; font: 700 13px var(--font-body); font-variant-numeric: tabular-nums;
}
.result-hotel { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 2px; }
.result-place { margin: 0 0 8px; color: var(--sea); font-weight: 700; font-size: 14.5px; }
.result-facts { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.result-compare { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.rc-label { font-size: 13px; color: var(--muted); font-weight: 600; margin-right: 2px; }
.rc-op {
  display: inline-flex; align-items: baseline; gap: 8px; min-height: 36px; padding: 6px 12px;
  border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text);
  font-size: 13px; cursor: pointer; transition: border-color .2s, background-color .2s;
}
.rc-op:hover { border-color: var(--sea); }
.rc-name { color: var(--muted); }
.rc-price { font-weight: 800; font-variant-numeric: tabular-nums; }
.rc-op.is-best { border-color: var(--sun); background: #fff4e3; }
.rc-op.is-best .rc-price { color: #c25e00; }
.result-side { display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.result-save { margin: 0 0 6px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--ok); padding: 3px 9px; border-radius: var(--r-pill); }
.result-price { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result-base { margin: 4px 0 2px; font-size: 12.5px; color: var(--muted); }
.result-op { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.result-skeleton { min-height: 170px; box-shadow: none; background: linear-gradient(110deg, var(--bg-2) 30%, var(--surface-2) 50%, var(--bg-2) 70%); background-size: 250% 100%; animation: shimmer 1.6s linear infinite; }
.results-empty { padding: 32px; border-radius: var(--r-card); border: 1px dashed var(--line-strong); text-align: center; }
.results-empty p { margin: 0 0 16px; color: var(--muted); }
.results-more { margin: 18px auto 0; display: flex; }
@media (max-width: 760px) {
  .result { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
  .result-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; align-items: stretch; text-align: left; }
  .result-save { align-self: flex-start; }
}

/* Заявка на тур */
.tour-dialog {
  width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0;
  border-radius: var(--r-card); background: #fff; color: var(--text); overflow: auto;
  box-shadow: 0 40px 100px rgba(4, 40, 90, 0.35);
}
.tour-dialog::backdrop { background: rgba(8, 40, 80, 0.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.td-inner { position: relative; padding: 28px 28px 24px; }
.td-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: #fff; color: var(--text); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.td-close:hover { border-color: var(--sea); color: var(--sea); }
.td-place { margin: 0 0 4px; color: var(--sea); font-weight: 700; font-size: 14px; padding-right: 48px; }
.td-title { font-family: var(--font-display); font-weight: 800; font-size: 1.65rem; letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; padding-right: 48px; }
.td-stars { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; }
.td-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.td-facts dt { font-size: 12.5px; color: var(--muted); }
.td-facts dd { margin: 2px 0 0; font-weight: 700; font-size: 14.5px; }
.td-price span { display: block; font-family: var(--font-display); font-weight: 800; font-size: 2rem; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.td-price small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.td-note { margin: 12px 0 18px; font-size: 13.5px; color: var(--muted); }
.td-form { display: grid; gap: 14px; }
.td-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.td-form .form-consent { margin: 0; }
.td-direct { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.td-phone { font-weight: 800; color: var(--text); text-decoration: none; font-size: 15px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .td-inner { padding: 22px 18px 20px; }
  .td-fields { grid-template-columns: 1fr; }
}

/* Направления: bento */
.destinations { background: var(--bg-2); }
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 230px;
  gap: 14px;
}
.tile {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  border: 0; padding: 0; margin: 0; text-align: left;
  background: var(--surface-2); color: #fff; cursor: pointer;
  isolation: isolate;
  box-shadow: var(--shadow);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 30, 70, 0) 40%, rgba(0, 30, 70, 0.72) 100%);
}
.tile:hover img { transform: scale(1.05); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.tile-name { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.35rem, 2vw, 1.8rem); letter-spacing: -0.02em; line-height: 1.15; }
.tile-place { display: block; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.9); margin-top: 2px; }
.tile-go {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--sea);
  font-size: 20px;
  transition: background-color .25s, color .25s, transform .35s var(--ease);
}
.tile:hover .tile-go { background: var(--sun); color: var(--sun-ink); transform: rotate(-45deg); }

.tile:nth-child(1)  { grid-column: 1 / 7;  grid-row: span 2; }
.tile:nth-child(2)  { grid-column: 7 / 13; }
.tile:nth-child(3)  { grid-column: 7 / 10; }
.tile:nth-child(4)  { grid-column: 10 / 13; }
.tile:nth-child(5)  { grid-column: 1 / 5;  grid-row: span 2; }
.tile:nth-child(6)  { grid-column: 5 / 9; }
.tile:nth-child(7)  { grid-column: 9 / 13; grid-row: span 2; }
.tile:nth-child(8)  { grid-column: 5 / 9; }
.tile:nth-child(9)  { grid-column: 1 / 7; }
.tile:nth-child(10) { grid-column: 7 / 13; }

@media (max-width: 899px) {
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 10px; }
  .bento .tile:nth-child(n) { grid-column: auto; grid-row: auto; }
  .bento .tile:nth-child(1), .bento .tile:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .bento .tile:nth-child(n) { grid-column: auto; }
  .tile-body { padding: 16px 18px; }
}

/* Горящие: яркая полоса с фото */
.hot { overflow: hidden; isolation: isolate; padding: clamp(88px, 11vw, 150px) 0; color: #fff; }
.hot-bg { position: absolute; inset: 0; z-index: -1; }
.hot-bg img { width: 100%; height: 100%; object-fit: cover; }
.hot-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 112, 32, 0.95) 0%, rgba(255, 140, 28, 0.78) 42%, rgba(255, 159, 28, 0) 85%); }
.hot-inner { display: grid; gap: 32px; }
.hot-copy { max-width: 560px; }
.hot-copy .lead { color: #fff; margin-bottom: 28px; }
.hot .btn-accent { background: #fff; color: #c25200; box-shadow: 0 10px 26px rgba(120, 40, 0, 0.25); }
.hot .btn-accent:hover { background: #fff6ea; }
.tv-hot { background: #fff; color: var(--text); border-radius: var(--r-card); padding: 16px; }
@media (max-width: 899px) {
  .hot-bg::after { background: linear-gradient(180deg, rgba(255, 140, 28, 0.55) 0%, rgba(255, 112, 32, 0.95) 70%); }
}

/* Как мы работаем: маршрут */
.route {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  position: relative;
}
.route::before {
  content: ""; position: absolute; left: 28px; right: 28px; top: 28px; height: 0;
  border-top: 2px dashed rgba(10, 132, 224, 0.35);
}
.route-step { position: relative; }
.route-dot {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sea); color: #fff;
  box-shadow: 0 8px 20px rgba(10, 132, 224, 0.35);
  font-size: 24px; margin-bottom: 22px;
}
.route-step h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.route-step p { color: var(--muted); margin: 0; max-width: 32ch; }
@media (max-width: 899px) {
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 27px; right: auto; top: 28px; bottom: 28px; height: auto; border-top: 0; border-left: 2px dashed rgba(10, 132, 224, 0.35); }
  .route-step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .route-step:last-child { padding-bottom: 0; }
  .route-dot { grid-row: span 2; margin: 0; }
  .route-step h3 { margin-top: 12px; }
}

/* Об агентстве */
.about { background: var(--bg-2); }
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-media { margin: 0; border-radius: var(--r-card); overflow: hidden; aspect-ratio: 4 / 3.4; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; height: 100%; object-fit: cover; }
.principles { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; }
.principles li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; color: var(--muted); align-items: start; }
.principles i { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--sea); background: var(--sea-soft); }
.principles b { color: var(--text); }
@media (max-width: 899px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-media { aspect-ratio: 16 / 10; }
}

/* Контакты */
.contacts-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.contacts-list .h2 { margin-bottom: 26px; }
.contact-line {
  display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: baseline;
  padding: 16px 0; border-top: 1px solid var(--line);
  text-decoration: none;
}
.contact-line:last-child { border-bottom: 1px solid var(--line); }
.cl-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.cl-value { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.05rem, 1.6vw, 1.3rem); letter-spacing: -0.01em; overflow-wrap: anywhere; transition: color .2s; font-variant-numeric: tabular-nums; }
a.contact-line:hover .cl-value { color: var(--sea); }
.callback {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: clamp(22px, 3vw, 36px); display: grid; gap: 16px;
}
.callback .field input, .callback .field textarea { background: #fff; }
.callback h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; letter-spacing: -0.02em; margin: 0; }
.callback-sub { margin: -8px 0 4px; color: var(--muted); }
.callback .form-consent { margin: 0; }
@media (max-width: 899px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contact-line { grid-template-columns: 1fr; gap: 2px; }
}

/* Подвал: насыщенное море */
.site-footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); background: linear-gradient(135deg, #0a6bd6, #0a8fe6); color: #fff; }
.footer-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-note { margin: 0; color: rgba(255, 255, 255, 0.85); font-size: 13px; flex: 1; min-width: 220px; }
.footer-link { font-weight: 800; font-size: 15px; text-decoration: none; font-variant-numeric: tabular-nums; }
.footer-link:hover { color: #ffd38a; }

/* Метка демо-версии */
.demo-badge {
  position: absolute; right: 16px; top: calc(var(--header-h) + 12px); z-index: 48; margin: 0;
  max-width: calc(100% - 32px);
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92); color: var(--text);
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  pointer-events: none;
}
@media (max-width: 899px) {
  .demo-badge { top: calc(var(--header-h) + 52px); padding: 5px 10px; font-size: 11px; }
}

/* Появление при прокрутке */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.route-step.reveal:nth-child(2) { transition-delay: .08s; }
.route-step.reveal:nth-child(3) { transition-delay: .16s; }
.route-step.reveal:nth-child(4) { transition-delay: .24s; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .readout { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .readout { color: var(--text); }
}

/* Печать и сохранение в PDF: сохраняем цвета, фото и все блоки */
@media print {
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .site-header { position: absolute; }
  .demo-badge, .menu-toggle, .readout, .skip, .mobile-menu, .results-more { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero, .hero-grid { min-height: 0; }
  .hero { height: 760px; }
  .result, .tile, .route-step, .search-form, .callback, .about-grid, .contact-line { break-inside: avoid; }
}
