/* ===== FastTour — базовые стили и компоненты ===== */
@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
  opacity: 1;
  transition: opacity .25s var(--ease);
}
body.is-leaving { opacity: 0; }
body.is-entering { opacity: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Типографика ---------- */
.display, .h1, .h2, .h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.display { font-size: clamp(36px, 6.4vw, 84px); line-height: 1.02; text-transform: uppercase; }
.h1 { font-size: clamp(30px, 4.6vw, 56px); line-height: 1.05; }
.h2 { font-size: clamp(26px, 3.4vw, 42px); line-height: 1.1; }
.h3 { font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1.2; }
.upper { text-transform: uppercase; }
.lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--grey-700); }
.muted { color: var(--grey-500); }
.t-violet { color: var(--violet); }
.t-turq { color: var(--turquoise); }
.t-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--violet);
}
.eyebrow::before { content: ""; width: 15px; height: 10px; background: var(--grad); -webkit-mask: var(--flame-mask) center / 100% 100% no-repeat; mask: var(--flame-mask) center / 100% 100% no-repeat; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--violet); color: #fff; box-shadow: var(--shadow-violet); }
.btn-primary:hover { background: var(--violet-600); }
.btn-grad { background: var(--grad); color: #fff; box-shadow: var(--shadow-violet); }
.btn-turq { background: var(--turquoise); color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-viber { background: #7360F2; color: #fff; }
.btn-tg { background: #229ED9; color: #fff; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center;
  background: var(--grey-50); transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--violet-100); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.is-on { background: var(--violet); color: #fff; }

/* ---------- Чипы / бейджи ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--grey-50); font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip:hover { background: var(--violet-100); }
.chip.is-active { background: var(--ink); color: #fff; }
.chip-ai { background: var(--violet-100); color: var(--violet); }
.chip-ai button { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(119,51,252,.15); font-size: 12px; line-height: 1; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; background: var(--grey-50); color: var(--grey-700);
}
.badge-fire { background: var(--grad); color: #fff; }
.badge-turq { background: var(--turquoise-100); color: #087B7B; }
.badge-sand { background: var(--sand-100); color: #8A6420; }
.badge-green { background: #E3F8EE; color: #0B7A47; }
.badge svg { width: 14px; height: 14px; }

/* ---------- Брендовые формы ---------- */
.flame, .flame-label { -webkit-mask: var(--flame-mask) center / 100% 100% no-repeat; mask: var(--flame-mask) center / 100% 100% no-repeat; }
/* «Огонь» с подписью — как посты в брендбуке: текст лежит на нижней широкой части */
.flame-label {
  position: absolute; display: grid; align-content: end; justify-items: start; padding: 0 0 7% 24%;
  background: var(--grad-v); color: #fff; font-family: var(--font-display); font-weight: 700; line-height: 1.05;
}
.flame-label small { font-family: var(--font-body); font-weight: 600; font-size: .62em; opacity: .9; margin-top: 4px; }
.pattern-shells {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath d='M0 100A100 100 0 0 1 100 0v41A59 59 0 0 0 41 100Z' fill='%2326D0D0'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.pattern-shells-sand {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath d='M0 100A100 100 0 0 1 100 0v41A59 59 0 0 0 41 100Z' fill='%23F0D9A8'/%3E%3C/svg%3E");
  background-size: 60px 60px;
}
.pattern-shells-violet {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 100 100'%3E%3Cpath d='M0 100A100 100 0 0 1 100 0v41A59 59 0 0 0 41 100Z' fill='%237733FC' fill-opacity='.08'/%3E%3C/svg%3E");
  background-size: 56px 56px;
}
.deco { position: absolute; pointer-events: none; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(14,11,26,.06);
  transition: background .3s, border-color .3s;
}
.site-header.is-dark { background: rgba(0,0,0,.72); border-color: rgba(255,255,255,.08); color: #fff; }
.site-header .container { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: flex; align-items: center; flex: none; }
.logo img { height: 34px; width: auto; }
.logo .logo-light { display: none; }
.site-header.is-dark .logo .logo-dark { display: none; }
.site-header.is-dark .logo .logo-light { display: block; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  padding: 8px 14px; border-radius: var(--r-pill); font-weight: 500; font-size: 15px; position: relative;
  transition: background .2s;
}
.main-nav a:hover { background: rgba(119,51,252,.08); }
.main-nav a.is-current { color: var(--violet); }
.site-header.is-dark .main-nav a.is-current { color: var(--turquoise); }
.main-nav a .dot { position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: #FF5A1F; }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-phone { display: grid; line-height: 1.15; text-align: right; margin-right: 6px; }
.header-phone b { font-size: 16px; font-weight: 700; }
.header-phone small { font-size: 12px; color: var(--grey-500); display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.site-header.is-dark .header-phone small { color: rgba(255,255,255,.6); }
.online-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 0 rgba(23,178,106,.5); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(23,178,106,.5); } 70% { box-shadow: 0 0 0 8px rgba(23,178,106,0); } 100% { box-shadow: 0 0 0 0 rgba(23,178,106,0); } }
.msg-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; transition: transform .2s; }
.msg-btn:hover { transform: translateY(-2px) scale(1.05); }
.msg-btn svg { width: 20px; height: 20px; }
.msg-viber { background: #7360F2; }
.msg-tg { background: #229ED9; }
.header-icons { display: flex; gap: 6px; }
.header-icons .icon-btn { position: relative; }
.site-header.is-dark .icon-btn { background: rgba(255,255,255,.1); }
.counter { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--violet); color: #fff; font-size: 11px; font-weight: 700; display: none; place-items: center; }
.counter.has { display: grid; }
.burger { display: none; }

/* мобильное меню */
.drawer { position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.drawer::before { content: ""; position: absolute; inset: 0; background: rgba(14,11,26,.5); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); background: #fff; padding: 20px;
  transform: translateX(100%); transition: transform .35s var(--ease); display: flex; flex-direction: column; gap: 16px; overflow-y: auto;
}
.drawer.is-open { pointer-events: auto; }
.drawer.is-open::before { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-nav a { display: flex; justify-content: space-between; padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--grey-100); }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 110px) 0; position: relative; }
.section-sm { padding: clamp(40px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.section-head .h2 { max-width: 760px; }
.section-head p { max-width: 520px; margin-top: 12px; }
.bg-grey { background: var(--grey-50); }
.bg-black { background: var(--black); color: #fff; }
.bg-violet { background: var(--violet); color: #fff; }
.bg-turq { background: var(--turquoise); color: var(--ink); }
.bg-sand { background: var(--sand-100); }
.bg-grad { background: var(--grad-diag); color: #fff; }
.bg-black .muted, .bg-violet .muted, .bg-grad .muted { color: rgba(255,255,255,.65); }
.bg-black .lead, .bg-violet .lead, .bg-grad .lead, .on-dark .lead { color: rgba(255,255,255,.85); }
.on-dark .muted { color: rgba(255,255,255,.65); }
.round-top { border-radius: var(--r-xl) var(--r-xl) 0 0; }
.round { border-radius: var(--r-xl); }

/* ---------- Сетки ---------- */
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
/* Элементы сеток не должны распирать страницу по ширине содержимого */
.grid > *, .split > *, .cta-band > *, .results-layout > *, .hotel-layout > *, .cab-layout > *, .article-layout > *, .hero-a-grid > * { min-width: 0; }
html { overflow-x: hidden; }

/* ---------- Хлебные крошки ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--grey-500); margin-bottom: 18px; }
.crumbs a:hover { color: var(--violet); }
.crumbs span::before { content: "/"; margin-right: 6px; opacity: .5; }
.on-dark .crumbs { color: rgba(255,255,255,.7); }

/* ---------- ИИ-строка «Скажи словами» ---------- */
.ai-search {
  position: relative; background: #fff; border-radius: 26px; padding: 8px; box-shadow: var(--shadow-lg);
  border: 2px solid transparent; background-clip: padding-box;
}
.ai-search::before {
  content: ""; position: absolute; inset: -2px; border-radius: 28px; padding: 2px; background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.ai-search-row { display: flex; align-items: center; gap: 8px; }
.ai-avatar { width: 44px; height: 44px; flex: none; border-radius: 50%; overflow: hidden; }
.ai-avatar img { width: 100%; height: 100%; }
.ai-search input {
  flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; font-size: 17px; background: transparent; padding: 0 6px;
}
.ai-search input::placeholder { color: var(--grey-500); }
.ai-mic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--grey-50); flex: none; }
.ai-mic svg { width: 22px; height: 22px; }
.ai-mic.is-rec { background: #FFE8E6; color: var(--danger); animation: pulse 1.4s infinite; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px; }
.ai-chips:not(:empty) { padding: 10px 8px 6px; }
.ai-hint { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; font-size: 14px; }
.ai-hint button { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.7); border: 1px solid var(--grey-100); font-size: 13px; }
.ai-hint button:hover { border-color: var(--violet); color: var(--violet); }
.ai-reply { display: none; gap: 12px; align-items: flex-start; padding: 12px 10px 6px; font-size: 15px; }
.ai-reply.is-shown { display: flex; }
.ai-reply .ai-avatar { width: 32px; height: 32px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

.search-tabs { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: rgba(14,11,26,.06); gap: 4px; margin-bottom: 14px; }
.search-tabs button { height: 38px; padding: 0 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.search-tabs svg { width: 17px; height: 17px; flex: none; }
.search-tabs button.is-active { background: #fff; box-shadow: var(--shadow-sm); }
.on-dark .search-tabs { background: rgba(255,255,255,.12); }
.on-dark .search-tabs button { color: #fff; }
.on-dark .search-tabs button.is-active { background: #fff; color: var(--ink); }
.search-pane { display: none; }
.search-pane.is-active { display: block; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- «Штурман» — контекстная подсказка ---------- */
.shturman {
  position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(119,51,252,.07), rgba(38,208,208,.10)); border: 1px solid rgba(119,51,252,.14);
}
.shturman .ai-avatar { width: 40px; height: 40px; }
.shturman-body { flex: 1; min-width: 0; }
.shturman-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--violet); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.shturman-text { font-size: 15px; }
.shturman-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.shturman-actions button, .shturman-actions a { padding: 7px 14px; border-radius: var(--r-pill); background: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm); transition: color .2s; }
.shturman-actions button:hover, .shturman-actions a:hover { color: var(--violet); }
.shturman-close { position: absolute; top: 10px; right: 12px; opacity: .45; font-size: 18px; }

/* ---------- Карточки туров / отелей ---------- */
.tour-card {
  position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-100); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.tour-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tour-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.tour-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card:hover .tour-media img { transform: scale(1.05); }
.tour-badges { position: absolute; top: 12px; left: 12px; right: 100px; display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.tour-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; }
.tour-actions button { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; transition: transform .2s, background .2s, color .2s; }
.tour-actions button:hover { transform: scale(1.08); }
.tour-actions button svg { width: 18px; height: 18px; }
.tour-actions button.is-on { background: var(--violet); color: #fff; }
.tour-discount { position: absolute; left: 0; bottom: 0; padding: 8px 16px 8px 12px; background: var(--grad); color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 20px; border-top-right-radius: 18px; }
.tour-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tour-loc { font-size: 13px; color: var(--grey-500); display: flex; gap: 6px; align-items: center; }
.tour-name { font-weight: 700; font-size: 17px; line-height: 1.25; }
.stars { color: #FFB020; letter-spacing: 1px; font-size: 13px; }
.tour-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 13px; color: var(--grey-700); }
.tour-meta span { display: inline-flex; align-items: center; gap: 4px; }
.tour-meta svg { width: 15px; height: 15px; color: var(--grey-500); }
.tour-foot { margin-top: auto; display: flex; align-items: end; justify-content: space-between; gap: 10px; padding-top: 10px; }
.price { display: grid; line-height: 1.1; }
.price s { font-size: 13px; color: var(--grey-500); }
.price b { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.price small { font-size: 12px; color: var(--grey-500); }
.rating { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }

/* ---------- Плитки направлений ---------- */
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 16px; }
.dest {
  position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate;
}
.dest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.dest::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.55)); }
.dest:hover img { transform: scale(1.06); }
.dest .flame-label { right: -3%; bottom: -3%; width: 44%; aspect-ratio: 280 / 190; font-size: clamp(14px, 1.3vw, 18px); }
.dest-info { position: absolute; left: 20px; bottom: 18px; right: 20px; display: grid; gap: 2px; }
.dest-info b { font-family: var(--font-display); font-size: 24px; font-weight: 800; }
.dest-info span { font-size: 14px; opacity: .9; }
.dest-price { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.95); color: var(--ink); font-size: 13px; font-weight: 700; }
.dest.wide { grid-column: span 2; }
.dest.tall { grid-row: span 2; }

/* ---------- Блок заявки / CTA ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(28px, 4vw, 56px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
}
.lead-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--grey-700); }
.input {
  height: 54px; width: 100%; border-radius: 16px; border: 1.5px solid var(--grey-100); background: #fff; padding: 0 16px; font-size: 16px;
  transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(119,51,252,.12); }
textarea.input { height: 96px; padding: 14px 16px; resize: vertical; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 4px; border-radius: 16px; background: var(--grey-50); }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .2s, color .2s; }
.seg span svg { width: 18px; height: 18px; }
.seg input:checked + span { background: #fff; box-shadow: var(--shadow-sm); color: var(--violet); }
.form-note { font-size: 12px; color: var(--grey-500); }
.on-dark .form-note { color: rgba(255,255,255,.6); }

.manager {
  display: flex; align-items: center; gap: 12px;
}
.manager img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.manager b { display: block; }
.manager small { color: var(--grey-500); display: flex; align-items: center; gap: 6px; }
.avatars { display: flex; }
.avatars img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }

/* ---------- Шаги / преимущества ---------- */
.feature { padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--grey-100); display: grid; gap: 12px; align-content: start; transition: transform .3s var(--ease), box-shadow .3s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--violet-100); color: var(--violet); }
.feature-ico svg { width: 28px; height: 28px; }
.step-num { font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; }

/* ---------- Отзывы ---------- */
.review { padding: 26px; border-radius: var(--r-lg); background: #fff; display: grid; gap: 14px; box-shadow: var(--shadow-sm); }
.review-head { display: flex; align-items: center; gap: 12px; }
.review-head img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-src { margin-left: auto; font-size: 12px; color: var(--grey-500); }
.review-photos { display: flex; gap: 8px; }
.review-photos img { width: 72px; height: 56px; border-radius: 10px; object-fit: cover; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: var(--r-md); background: #fff; border: 1px solid var(--grey-100); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; line-height: 1; color: var(--violet); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--grey-700); }

/* ---------- Статьи блога ---------- */
.post-card { display: grid; gap: 14px; }
.post-card .img { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 16 / 10; }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover img { transform: scale(1.05); }
.post-card .meta { font-size: 13px; color: var(--grey-500); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--black); color: #fff; padding: 72px 0 110px; position: relative; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; font-weight: 600; }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: var(--turquoise); }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; color: rgba(255,255,255,.5); }
.footer-deco { position: absolute; right: -40px; top: -40px; width: 320px; height: 320px; opacity: .9; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pay-icons span { padding: 6px 10px; border-radius: 8px; background: rgba(255,255,255,.08); font-size: 12px; font-weight: 600; }

/* ---------- Плавающие элементы ---------- */
.contact-dock {
  position: fixed; right: 20px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.dock-items { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; transform-origin: bottom right; transition: transform .3s var(--ease), opacity .3s; }
.contact-dock:not(.is-open) .dock-items { opacity: 0; transform: scale(.6) translateY(20px); pointer-events: none; }
.dock-item { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: var(--r-pill); background: #fff; box-shadow: var(--shadow-md); font-weight: 600; font-size: 14px; }
.dock-item .msg-btn { width: 40px; height: 40px; }
.dock-item .msg-call { background: var(--success); }
.dock-item .msg-pick { background: var(--violet); }
.dock-toggle {
  width: 64px; height: 64px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-violet); position: relative;
}
.dock-toggle::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(119,51,252,.35); animation: ring 2.4s infinite; }
@keyframes ring { 0% { transform: scale(.9); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.dock-toggle svg { width: 28px; height: 28px; transition: transform .3s; }
.contact-dock.is-open .dock-toggle svg { transform: rotate(135deg); }
.dock-bubble { position: absolute; right: 76px; bottom: 10px; white-space: nowrap; background: #fff; padding: 10px 14px; border-radius: 16px 16px 4px 16px; box-shadow: var(--shadow-md); font-size: 14px; font-weight: 500; animation: fadeUp .5s var(--ease) both; animation-delay: 3s; }
.contact-dock.is-open .dock-bubble { display: none; }

.mobile-bar { display: none; }

.compare-bar {
  position: fixed; left: 50%; bottom: 24px; z-index: 55; transform: translate(-50%, 140%); transition: transform .4s var(--ease);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 20px; border-radius: var(--r-pill); background: var(--ink); color: #fff; box-shadow: var(--shadow-lg);
}
.compare-bar.is-shown { transform: translate(-50%, 0); }
.compare-bar .thumbs { display: flex; }
.compare-bar .thumbs img { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink); margin-left: -10px; object-fit: cover; }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; pointer-events: none; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(14,11,26,.6); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.modal-box {
  position: relative; width: min(520px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; background: #fff; border-radius: var(--r-lg); padding: 32px;
  transform: translateY(24px) scale(.97); opacity: 0; transition: transform .35s var(--ease), opacity .35s;
}
.modal.is-open { pointer-events: auto; }
.modal.is-open::before { opacity: 1; }
.modal.is-open .modal-box { transform: none; opacity: 1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; background: var(--grey-50); display: grid; place-items: center; font-size: 22px; }
.modal-head { display: grid; gap: 8px; margin-bottom: 20px; padding-right: 40px; }
.modal-success { text-align: center; display: none; gap: 14px; justify-items: center; padding: 20px 0; }
.modal.is-done .modal-success { display: grid; }
.modal.is-done .modal-form { display: none; }
.success-ico { width: 72px; height: 72px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; }
.success-ico svg { width: 36px; height: 36px; }

.exit-box { width: min(760px, 100%); padding: 0; display: grid; grid-template-columns: .9fr 1.1fr; overflow: hidden; }
.exit-media { position: relative; background: var(--violet); min-height: 320px; overflow: hidden; }
.exit-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.exit-body { padding: 36px 32px; display: grid; gap: 14px; align-content: center; }

/* ---------- «Карта отпуска» ---------- */
.vmap { position: fixed; inset: 0; z-index: 110; background: #fff; display: grid; grid-template-columns: 1.1fr .9fr; transform: translateY(100%); transition: transform .5s var(--ease); }
.vmap.is-open { transform: none; }
.vmap-left { padding: 32px clamp(20px, 5vw, 72px); overflow-y: auto; display: flex; flex-direction: column; }
.vmap-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.vmap-progress { flex: 1; height: 6px; border-radius: 3px; background: var(--grey-100); overflow: hidden; max-width: 300px; }
.vmap-progress i { display: block; height: 100%; width: 0; background: var(--grad); transition: width .4s var(--ease); }
.vmap-step { display: none; }
.vmap-step.is-active { display: block; animation: fadeUp .45s var(--ease); }
.vmap-q { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 24px; }
.vmap-q .ai-avatar { width: 48px; height: 48px; }
.vmap-q .bubble { background: var(--grey-50); padding: 14px 18px; border-radius: 4px 20px 20px 20px; font-size: 18px; font-weight: 600; max-width: 560px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.opt {
  position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 1 / 1; color: #fff; text-align: left; isolation: isolate;
  display: flex; align-items: flex-end; padding: 14px; font-weight: 700; font-size: 16px; transition: transform .25s var(--ease), box-shadow .25s;
}
.opt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.opt::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.65)); }
.opt:hover { transform: translateY(-3px); }
.opt.is-on { box-shadow: 0 0 0 4px var(--violet); }
.opt.is-on::before { content: "✓"; position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; border-radius: 50%; background: var(--violet); display: grid; place-items: center; font-size: 15px; }
.opt-plain { aspect-ratio: auto; height: 64px; background: var(--grey-50); color: var(--ink); align-items: center; justify-content: center; text-align: center; }
.opt-plain::after { display: none; }
.opt-plain.is-on { background: var(--violet-100); color: var(--violet); }
.opt-plain.is-on::before { display: none; }
.range-wrap { display: grid; gap: 12px; max-width: 560px; }
.range-val { font-family: var(--font-display); font-size: 40px; font-weight: 800; }
input[type=range] { width: 100%; accent-color: var(--violet); height: 28px; }
.vmap-nav { margin-top: auto; padding-top: 28px; display: flex; gap: 12px; }
.vmap-right { position: relative; background: var(--ink); color: #fff; padding: 32px; overflow-y: auto; overflow-x: hidden; }
.vmap-right .deco-flame { position: absolute; width: 520px; aspect-ratio: 280/190; right: -160px; bottom: -80px; background: var(--grad-v); opacity: .35; }
.vmap-card { position: relative; border-radius: var(--r-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); padding: 24px; display: grid; gap: 16px; backdrop-filter: blur(10px); }
.vmap-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.vmap-tags .chip { background: rgba(255,255,255,.12); color: #fff; animation: fadeUp .35s var(--ease); }
.vmap-results { display: grid; gap: 12px; }
.vmap-res { display: grid; grid-template-columns: 88px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.08); animation: fadeUp .45s var(--ease) both; }
.vmap-res img { width: 88px; height: 72px; border-radius: 12px; object-fit: cover; }
.vmap-res b { display: block; }
.vmap-res small { color: rgba(255,255,255,.65); }
.vmap-empty { color: rgba(255,255,255,.5); font-size: 14px; display: flex; gap: 10px; align-items: center; }
.vmap-mobile-res { display: none; }
@media (max-width: 980px) { .vmap-mobile-res { display: grid; } }

/* ---------- Tourvisor + fallback ---------- */
.tv-wrap { position: relative; }
.tv-wrap .tv-live-area:empty { display: none; }
.tv-wrap.is-live .tv-fallback { display: none; }
.tv-demo-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--grey-500); margin-top: 10px; }
.tv-demo-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sand); }

.search-form {
  display: grid; grid-template-columns: 1.2fr 1.4fr 1.1fr .9fr 1fr auto; gap: 6px; padding: 8px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg);
}
.sf-field { display: grid; align-content: center; padding: 8px 16px; border-radius: 18px; min-height: 62px; transition: background .2s; cursor: pointer; }
.sf-field:hover { background: var(--grey-50); }
.sf-field small { font-size: 12px; color: var(--grey-500); font-weight: 500; }
.sf-field b { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-form .btn { height: 62px; border-radius: 18px; padding: 0 28px; }

/* ---------- Появление при скролле ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }

/* ---------- Метка прототипа ---------- */
.todo { background: repeating-linear-gradient(45deg, #FFF6D6, #FFF6D6 6px, #FFEFB8 6px, #FFEFB8 12px); color: #6B4E00; padding: 1px 6px; border-radius: 6px; font-size: .9em; }
.proto-switch { position: fixed; left: 16px; bottom: 16px; z-index: 58; display: flex; gap: 4px; padding: 4px; border-radius: var(--r-pill); background: rgba(14,11,26,.85); color: #fff; font-size: 12px; font-weight: 600; box-shadow: var(--shadow-md); }
.proto-switch a { padding: 6px 12px; border-radius: var(--r-pill); }
.proto-switch a.is-current { background: #fff; color: var(--ink); }

/* ---------- Адаптив ---------- */
.main-nav a, .header-phone b, .header-phone small { white-space: nowrap; }
@media (max-width: 1360px) {
  .header-phone { display: none; }
}
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 10px; font-size: 14px; }
  .search-form { grid-template-columns: 1fr 1fr 1fr; }
  .search-form .btn { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  :root { --header-h: 64px; }
  .main-nav, .header-msg, .header-cta { display: none; }
  .burger { display: grid; }
  .split, .cta-band { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: repeat(2, 1fr); }
  .g-3 { grid-template-columns: repeat(2, 1fr); }
  .dest-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vmap { grid-template-columns: 1fr; }
  .vmap-right { display: none; }
  .exit-box { grid-template-columns: 1fr; }
  .exit-media { min-height: 160px; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .display { font-size: clamp(26px, 8.6vw, 40px); }
  .ai-search .btn { padding: 0 16px; }
  .ai-mic { width: 40px; height: 40px; }
  .eyebrow { font-size: 11px; }
  .logo img { height: 28px; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .dest-grid { grid-auto-rows: 170px; gap: 10px; }
  .dest.wide { grid-column: span 2; }
  .dest-info b { font-size: 18px; }
  .search-form { grid-template-columns: 1fr 1fr; }
  .sf-field:first-child, .sf-field:nth-child(2) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-dock { display: none; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(4, 1fr);
    background: #fff; border-top: 1px solid var(--grey-100); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px rgba(14,11,26,.08);
  }
  .mobile-bar a, .mobile-bar button { display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 600; padding: 6px 0; border-radius: 12px; }
  .mobile-bar svg { width: 24px; height: 24px; }
  .mobile-bar .mb-main { background: var(--grad); color: #fff; }
  .mobile-bar .mb-viber { color: #7360F2; } .mobile-bar .mb-tg { color: #229ED9; } .mobile-bar .mb-call { color: var(--success); }
  .compare-bar { bottom: 84px; }
  .proto-switch { bottom: 84px; }
  .modal-box { padding: 24px 20px; }
  .ai-search input { font-size: 15px; }
  .section-head { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
