/* ПланетаТур: единая дизайн-система сайта
   Шрифты: Unbounded (заголовки) + Onest (текст). Радиусы: карточки 20px, поля 12px, кнопки pill. */

:root {
  --bg: #f3f6f5;
  --surface: #ffffff;
  --surface-2: #e7efee;
  --ink: #0e2a33;
  --ink-2: #3f5960;
  --line: #d5e0de;
  --accent: #f07a3e;
  --accent-hover: #e2672a;
  --on-accent: #10242b;
  --btn: #db5a1c;
  --btn-hover: #c44e15;
  --sea: #0f5560;
  --ok: #1f9d55;
  --off: #c53030;
  --star: #fc0;
  --shadow: 0 18px 50px -24px rgb(14 42 51 / .35);
  --r-card: 20px;
  --r-field: 12px;
  --container: 1240px;
  --header-h: 72px;
  --font-head: "Unbounded", "Onest", system-ui, sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1c21;
    --surface: #11262c;
    --surface-2: #17323a;
    --ink: #e8f1f1;
    --ink-2: #a9bec1;
    --line: #23424a;
    --sea: #7fc8cf;
    --shadow: 0 18px 50px -24px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; }
h2 { font-family: var(--font-body); font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.12; letter-spacing: -0.03em; }
h3 { font-family: var(--font-body); font-weight: 700; font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section { padding: clamp(64px, 8vw, 104px) 0; }
.section__head { max-width: 720px; margin-bottom: 40px; }
.section__head p { color: var(--ink-2); margin-top: 14px; max-width: 60ch; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, color .2s, transform .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn i { font-size: 20px; }
.btn--accent { background: var(--btn); color: #fff; font-weight: 700; box-shadow: 0 8px 18px -10px rgb(14 42 51 / .45); }
.btn--accent:hover { background: var(--btn-hover); }
.btn--ghost { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--glass { background: rgb(255 255 255 / .14); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--glass:hover { background: rgb(255 255 255 / .24); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--sea); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(243 246 245 / .86);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .header { background: rgb(11 28 33 / .86); } }
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { height: var(--header-h); display: flex; align-items: center; gap: 20px; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; white-space: nowrap; }
.logo__mark {
  width: 46px; height: 28px; flex: none; background: var(--sea);
  -webkit-mask: url("../img/brand/map-mark.png") center / contain no-repeat; mask: url("../img/brand/map-mark.png") center / contain no-repeat;
}
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .02em; }
.logo__sub { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav__item { position: relative; }
.nav__link {
  display: inline-flex; align-items: center; gap: 4px; padding: 10px 10px; border-radius: 10px;
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); background: none; border: 0; cursor: pointer; white-space: nowrap;
}
.nav__link:hover, .nav__item:focus-within > .nav__link { background: var(--surface-2); }
.nav__link[aria-current="page"] { color: var(--sea); }
.nav__link i { font-size: 14px; transition: transform .2s; }
.nav__drop {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 8px;
  background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__item:hover .nav__drop, .nav__item:focus-within .nav__drop { opacity: 1; visibility: visible; transform: none; }
.nav__item:hover > .nav__link i { transform: rotate(180deg); }
.nav__drop a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 15px; }
.nav__drop a:hover { background: var(--surface-2); }

.header__contacts { display: flex; align-items: center; gap: 18px; flex: none; }
.status { display: flex; flex-direction: column; line-height: 1.25; }
.status__line { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--off); flex: none; position: relative; }
.status.is-online .status__dot { background: var(--ok); }
.status.is-online .status__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.status__hint { font-size: 12px; color: var(--ink-2); }
.phone { font-weight: 600; font-size: 16px; text-decoration: none; white-space: nowrap; }
.phone:hover { color: var(--sea); }
.msgrs { display: flex; gap: 6px; }
.msgr {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 19px; color: var(--ink);
  transition: background-color .2s, color .2s;
}
.msgr:hover { background: var(--sea); color: #fff; }
.msgr--max { font-family: var(--font-body); font-size: 13px; font-weight: 700; }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 22px; cursor: pointer; place-items: center; }

/* Мобильное меню */
.mnav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49; background: var(--bg); padding: 16px 20px 32px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s;
}
.mnav.is-open { opacity: 1; visibility: visible; transform: none; }
.mnav a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }
.mnav .mnav__sub { padding-left: 18px; font-size: 16px; color: var(--ink-2); }
.mnav__bottom { margin-top: 24px; display: grid; gap: 12px; }

@media (max-width: 1480px) {
  .status__hint { display: none; }
  .header__row { gap: 16px; }
}
@media (max-width: 1060px) {
  .nav, .header__contacts .status, .header__cta { display: none; }
  .burger { display: grid; }
  .header__contacts { margin-left: auto; gap: 8px; }
}
@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .logo { width: auto; }
  .logo__mark { width: 40px; height: 24px; }
  .logo__name { font-size: 13px; }
  .logo__sub { font-size: 11px; }
  .header__contacts .phone { display: none; }
  .msgr--vk, .msgr--wa { display: none; }
  .container { padding: 0 16px; }
}

/* ---------- Hero-слайдер ---------- */
.hero { position: relative; padding: 0 12px; }
.hero__frame {
  position: relative; overflow: hidden; border-radius: 28px; min-height: min(760px, calc(100dvh - var(--header-h) - 12px));
  display: flex; align-items: flex-end; color: #fff; background: #0e2a33;
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active img { transform: scale(1); }
.hero__frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgb(8 26 32 / .78) 0%, rgb(8 26 32 / .45) 42%, rgb(8 26 32 / 0) 70%),
    linear-gradient(0deg, rgb(8 26 32 / .72) 0%, rgb(8 26 32 / 0) 45%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-top: 64px; padding-bottom: 96px; }
.hero__copy { max-width: 720px; }
.hero h1 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 500; line-height: 1.12; }
.hero h1 span { display: block; }
.hero h1 span { color: #ffc29f; }
.hero__lead { margin-top: 18px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; color: rgb(255 255 255 / .9); max-width: 52ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__caption {
  position: absolute; right: 24px; top: 24px; z-index: 3; text-align: right; max-width: 300px;
  padding: 14px 18px; border-radius: 16px; background: rgb(8 26 32 / .38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(255 255 255 / .18);
}
.hero__caption-place { font-size: 17px; font-weight: 700; }
.hero__caption-season { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: rgb(255 255 255 / .85); margin-top: 4px; }
.hero__caption-hook { font-size: 14px; margin-top: 6px; color: #ffc29f; font-weight: 500; }
.hero__caption > * { transition: opacity .35s; }
.hero__caption.is-switching > * { opacity: 0; }

.hero__controls { display: flex; align-items: center; gap: 14px; margin-top: 28px; }
.hero__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; font-size: 20px;
  background: rgb(255 255 255 / .16); color: #fff; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .4); backdrop-filter: blur(8px);
  transition: background-color .2s;
}
.hero__arrow:hover { background: rgb(255 255 255 / .3); }
.hero__dots { display: flex; gap: 0; }
.hero__dot { width: 30px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.hero__dot::before { content: ""; width: 26px; height: 10px; border-radius: 999px; background: rgb(255 255 255 / .5); clip-path: inset(0 8px round 999px); transition: clip-path .35s cubic-bezier(.16,1,.3,1), background-color .3s; }
.hero__dot:hover::before { background: rgb(255 255 255 / .8); }
.hero__dot.is-active::before { clip-path: inset(0 0 round 999px); background: #fff; }

/* Поиск Tourvisor */
.search-card {
  position: relative; z-index: 4; margin: -64px auto 0; max-width: calc(var(--container) - 48px);
  background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: var(--shadow); padding: 18px 20px 20px;
}
.search-card__title { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 4px 10px; display: flex; align-items: center; gap: 8px; }
.tv-slot { min-height: 76px; }
.tv-fallback { display: none; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 6px 4px; }
.tv-slot.is-empty .tv-fallback { display: flex; }
.tv-fallback p { color: var(--ink-2); font-size: 15px; }

@media (max-width: 860px) {
  .hero { padding: 0 8px; }
  .hero__frame { border-radius: 22px; min-height: 620px; }
  .hero__frame::after { background: linear-gradient(0deg, rgb(8 26 32 / .86) 0%, rgb(8 26 32 / .55) 55%, rgb(8 26 32 / .25) 100%); }
  .hero__caption { left: 16px; right: auto; top: 16px; text-align: left; max-width: calc(100% - 32px); padding: 10px 14px; }
  .hero__caption-season { display: none; }
  .hero__caption-hook { margin-top: 2px; }
  .hero__inner { padding-bottom: 84px; }
  .search-card { margin: -64px 12px 0; padding: 14px; }
}
@media (max-width: 480px) {
  .hero__ctas .btn { width: 100%; }
}

/* ---------- Выгоды ---------- */
.perks { padding: 40px 0 0; }
.perks__grid { display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 16px; }
.perk { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.perk__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; flex: none; background: var(--surface-2); color: var(--sea); }
.perk__big { font-size: 19px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.perk__text { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.perk--accent { background: var(--sea); color: #fff; box-shadow: none; }
.perk--accent .perk__icon { background: rgb(255 255 255 / .14); color: #fff; }
.perk--accent .perk__text { color: rgb(255 255 255 / .85); }
.perk a { color: var(--sea); font-weight: 600; }
@media (max-width: 900px) { .perks__grid { grid-template-columns: 1fr; } }

/* ---------- Отзывы ---------- */
.reviews__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.ya-badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; border-radius: 999px; text-decoration: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s;
}
.ya-badge:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.ya-badge__logo { width: 36px; height: 36px; border-radius: 50%; background: #fc3f1d; color: #fff; display: grid; place-items: center; font: 700 20px/1 Arial, sans-serif; }
.ya-badge b { display: block; font-size: 15px; }
.ya-badge__text span { display: block; font-size: 13px; color: var(--ink-2); }

.reviews__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: thin; }
.review {
  scroll-snap-align: start; background: #fff; color: #21201f; border-radius: 16px; padding: 22px 22px 18px;
  box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 6px 22px -10px rgb(0 0 0 / .18); display: flex; flex-direction: column;
  font-family: "YS Text", "Onest", Arial, sans-serif;
}
.review__head { display: flex; align-items: center; gap: 12px; }
.review__ava { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.review__ava--letter { display: grid; place-items: center; color: #fff; font-weight: 600; font-size: 18px; }
.review__name { font-weight: 600; font-size: 15px; }
.review__level { font-size: 13px; color: #626262; }
.review__meta { display: flex; align-items: center; gap: 10px; margin: 14px 0 8px; font-size: 13px; color: #626262; }
.stars { display: inline-flex; gap: 2px; color: var(--star); font-size: 16px; }
.review__text { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review.is-open .review__text { -webkit-line-clamp: unset; }
.review__more { margin-top: 10px; background: none; border: 0; padding: 6px 0; color: #1f5fc9; font-size: 15px; cursor: pointer; text-align: left; }
.review__src { margin-top: auto; padding-top: 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; color: #626262; }
.review__src::before { content: "Я"; width: 18px; height: 18px; border-radius: 50%; background: #fc3f1d; color: #fff; display: grid; place-items: center; font: 700 11px/1 Arial, sans-serif; }
.reviews__nav { display: flex; gap: 10px; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.round-btn:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (max-width: 960px) { .reviews__track { grid-auto-columns: 78%; } }
@media (max-width: 560px) { .reviews__track { grid-auto-columns: 88%; gap: 14px; } .reviews__nav { display: none; } }

/* ---------- Команда ---------- */
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.member { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; }
.member__photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface-2); }
.member__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16,1,.3,1); }
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.member__role { font-size: 13px; color: var(--ink-2); }
.member__name { font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.member__actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.member__phone { font-weight: 600; text-decoration: none; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.member__phone:hover { color: var(--sea); }
.member__call { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: #fff; font-size: 18px; text-decoration: none; flex: none; }

.member--lead { grid-column: span 2; flex-direction: row; background: var(--sea); color: #fff; box-shadow: none; }
.member--lead .member__photo { aspect-ratio: auto; width: 46%; flex: none; }
.member--lead .member__body { padding: 28px; justify-content: flex-end; }
.member--lead .member__role { color: rgb(255 255 255 / .75); }
.member--lead .member__name { font-size: 26px; }
.member--lead blockquote { margin: 0 0 18px; font-size: 16px; line-height: 1.55; color: rgb(255 255 255 / .92); }
.member--lead .member__phone:hover { color: #ffc29f; }

.member--cta { background: var(--surface-2); box-shadow: none; padding: 26px; justify-content: space-between; gap: 20px; }
.member__cta-title { font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.member--cta p { color: var(--ink-2); font-size: 15px; margin-top: 10px; }

@media (max-width: 1100px) { .team__grid { grid-template-columns: repeat(3, 1fr); } .member--cta { grid-column: span 3; flex-direction: row; align-items: center; } }
@media (max-width: 760px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .member--lead { grid-column: span 2; flex-direction: column; }
  .member--lead .member__photo { width: 100%; aspect-ratio: 4 / 3; }
  .member--lead .member__photo img { object-position: 50% 20%; }
  .member--lead .member__body { padding: 20px; }
  .member--cta { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .member__body { padding: 12px 12px 14px; }
  .member__name { font-size: 15px; }
  .member__phone { font-size: 13.5px; }
  .member__call { width: 36px; height: 36px; }
}

/* ---------- Как работаем ---------- */
.flow { background: var(--surface); }
.flow__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: flow; position: relative; }
.flow__item { position: relative; padding: 0 28px 0 0; }
.flow__item::before {
  counter-increment: flow; content: counter(flow);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 700; font-size: 19px; color: var(--sea);
  position: relative; z-index: 1; margin-bottom: 22px;
}
.flow__item::after { content: ""; position: absolute; top: 26px; left: 52px; right: 0; height: 1.5px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.flow__item:last-child::after { display: none; }
.flow__item:last-child::before { background: var(--btn); color: #fff; box-shadow: none; }
.flow__item h3 { margin-bottom: 8px; }
.flow__item p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 900px) {
  .flow__list { grid-template-columns: 1fr; gap: 28px; }
  .flow__item { padding: 0 0 0 72px; min-height: 52px; }
  .flow__item::before { position: absolute; left: 0; top: 0; margin: 0; }
  .flow__item::after { left: 26px; top: 56px; bottom: -24px; right: auto; width: 1.5px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
}

/* ---------- Подбор (форма-квиз) ---------- */
.pick__box { display: grid; grid-template-columns: 1fr 1.1fr; border-radius: 28px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pick__visual { position: relative; min-height: 420px; color: #fff; display: flex; align-items: flex-end; }
.pick__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick__visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(8 26 32 / .82), rgb(8 26 32 / .05) 60%); }
.pick__visual-text { position: relative; z-index: 1; padding: 32px; }
.pick__visual-text h2 { font-size: clamp(24px, 2.6vw, 34px); }
.pick__visual-text p { margin-top: 12px; color: rgb(255 255 255 / .88); max-width: 40ch; }
.pick__form { padding: clamp(24px, 3.4vw, 44px); display: grid; gap: 22px; }

.chips-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips-group legend { font-weight: 600; font-size: 15px; margin-bottom: 10px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; cursor: pointer; font-size: 15px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: background-color .15s, box-shadow .15s, color .15s;
}
.chip span:hover { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.chip input:checked + span { background: var(--sea); color: #fff; box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-field); border: 1.5px solid var(--line);
  background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, background-color .15s;
}
.field input::placeholder, .field textarea::placeholder { color: #566b71; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--sea); background: var(--surface); }
.field.has-error input { border-color: var(--off); }
.field__error { font-size: 13px; color: var(--off); min-height: 0; }
.form-note { font-size: 13px; color: var(--ink-2); }
.form-note a { color: inherit; }
.form-status { display: none; padding: 14px 16px; border-radius: var(--r-field); font-size: 15px; }
.form-status.is-ok { display: block; background: rgb(31 157 85 / .12); color: var(--ink); }
.form-status.is-err { display: block; background: rgb(214 69 69 / .12); color: var(--ink); }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (max-width: 900px) {
  .pick__box { grid-template-columns: 1fr; }
  .pick__visual { min-height: 260px; }
  .fields { grid-template-columns: 1fr; }
}

/* ---------- Горящие туры ---------- */
.hot { padding-top: 0; }
.hot__box {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(28px, 4vw, 48px);
  background: #c94f16; color: #fff;
  display: grid; grid-template-columns: 1.4fr auto; align-items: center; gap: 24px;
}
.hot__box::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 340px; height: 210px; opacity: .14; background: #fff;
  -webkit-mask: url("../img/brand/map-mark.png") center / contain no-repeat; mask: url("../img/brand/map-mark.png") center / contain no-repeat;
}
.hot__box h2 { font-size: clamp(24px, 2.6vw, 34px); }
.hot__box p { margin-top: 10px; max-width: 52ch; }
.hot__actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; }
.btn--dark { background: var(--on-accent); color: #fff; }
.btn--dark:hover { background: #1d3a43; }
@media (max-width: 760px) { .hot__box { grid-template-columns: 1fr; } }

/* ---------- Контакты ---------- */
.contacts__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px; align-items: stretch; }
.contacts__card { background: var(--surface); border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; display: grid; gap: 22px; align-content: start; }
.contacts__row { display: flex; gap: 14px; align-items: flex-start; }
.contacts__row i { font-size: 22px; color: var(--sea); margin-top: 2px; }
.contacts__row small { display: block; font-size: 13px; color: var(--ink-2); }
.contacts__row a, .contacts__row b { font-weight: 600; text-decoration: none; font-size: 17px; }
.contacts__row a:hover { color: var(--sea); }
.map { border-radius: var(--r-card); overflow: hidden; min-height: 380px; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
@media (max-width: 860px) { .contacts__grid { grid-template-columns: 1fr; } }

/* ---------- Подвал ---------- */
.footer { background: #0b2128; color: #d9e6e6; padding: 56px 0 28px; margin-top: 24px; }
.footer .logo { color: #fff; }
.footer .logo__mark { background: #ffc29f; }
.footer .logo__sub { color: #9fb7ba; }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(3, 1fr); gap: 32px; }
.footer .footer__h { margin: 0 0 14px; font-size: 14px; line-height: 1.4; letter-spacing: 0; color: #9fb7ba; font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { text-decoration: none; }
.footer a:hover { color: #ffc29f; }
.footer__about { margin-top: 16px; font-size: 14px; color: #9fb7ba; max-width: 34ch; }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .1); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; color: #9fb7ba; }
.footer__bottom a { text-decoration: underline; text-underline-offset: 3px; display: inline-block; padding: 12px 0; margin: -12px 0; }
.footer .msgr { background: rgb(255 255 255 / .08); color: #fff; box-shadow: none; }
.footer .msgr:hover { background: var(--btn); color: #fff; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: span 2; } }

/* ---------- Модальное окно ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s; }
.modal.is-open { visibility: visible; opacity: 1; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(8 26 32 / .55); backdrop-filter: blur(4px); }
.modal__dialog { position: relative; width: 100%; max-width: 460px; background: var(--surface); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); transform: translateY(12px) scale(.98); transition: transform .25s cubic-bezier(.16,1,.3,1); display: grid; gap: 18px; }
.modal.is-open .modal__dialog { transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface-2); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.modal h3 { font-size: 24px; padding-right: 40px; }
.modal__lead { color: var(--ink-2); font-size: 15px; margin-top: -8px; }
.modal__alt { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding: 48px 0 8px; }
.page-head h1 { font-size: clamp(26px, 4vw, 46px); overflow-wrap: break-word; hyphens: auto; }
.page-head p { color: var(--ink-2); margin-top: 14px; max-width: 62ch; font-size: 18px; }
.crumbs { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--sea); }
.prose > * { max-width: 760px; }
.prose { overflow-wrap: anywhere; }
.prose h2 { font-size: 24px; margin: 36px 0 12px; }
.prose p, .prose li { color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 20px; }
.svc { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; }
.svc__list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.svc__list li { display: flex; gap: 12px; align-items: flex-start; }
.svc__list i { color: var(--sea); font-size: 22px; flex: none; margin-top: 1px; }
.svc__aside { position: sticky; top: calc(var(--header-h) + 20px); background: var(--surface); border-radius: var(--r-card); padding: 26px; box-shadow: var(--shadow); display: grid; gap: 16px; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc__aside { position: static; } }
.tv-results { background: var(--surface); border-radius: var(--r-card); padding: 20px; box-shadow: inset 0 0 0 1px var(--line); min-height: 220px; }

.nf { min-height: 70dvh; display: grid; place-items: center; text-align: center; padding: 48px 16px; }
.nf__code { font-family: var(--font-head); font-size: clamp(90px, 18vw, 180px); line-height: 1; color: #c2541c; }
.nf h1 { font-size: clamp(24px, 3vw, 34px); margin-top: 10px; }
.nf p { color: var(--ink-2); margin: 14px auto 0; max-width: 46ch; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* ---------- Появление при скролле ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); transition-delay: calc(var(--i, 0) * 70ms); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .hero__slide img { transform: none !important; }
}

.msgr--call { display: none; }
@media (max-width: 640px) { .msgr--call { display: grid; background: var(--btn); color: #fff; box-shadow: none; } }

/* ---------- Модуль поиска Tourvisor в стиле сайта ---------- */
.tv-slot .TVExtSearchForm, .tv-slot .TVSearchingForm, .tv-slot .TVInterfaceWrapper { width: 100% !important; max-width: none !important; }
.tv-slot .TVMainForm { background: transparent !important; padding: 0 !important; width: auto !important; }
.tv-slot .TVFilterForm { width: auto !important; }
.tv-slot .TVButtonColor { background: var(--btn) !important; color: #fff !important; border-radius: 999px !important; font-weight: 600 !important; }
.tv-slot .TVButtonColor:hover { background: var(--btn-hover) !important; }
.tv-slot .TVStarsFilter .TVStarsSelectItem.TVActive:before { color: var(--accent) !important; }
/* главная: только основная строка и кнопка, расширенные фильтры на странице поиска */
.search-card .TVInterfaceWrapper { display: flex !important; align-items: flex-end; gap: 12px; }
.search-card .TVMainForm { flex: 1 1 auto; min-width: 0; }
.search-card .TVFilterForm { background: transparent !important; padding: 0 !important; flex: none; }
@media (max-width: 1000px) { .search-card .TVInterfaceWrapper { display: block !important; } .search-card .TVFilterForm { padding-top: 12px !important; } }
.search-card .TVFilterForm .TVSearchingFormColumnFlexBlock:not(:has(.TVSearchButton)) { display: none !important; }
.search-card .TVFilterForm .TVSearchingFormColumnFlexBlock:has(.TVSearchButton) { width: 100% !important; }
.search-card .TVFilterForm .TVSearchingFormColumnFlexBlock:has(.TVSearchButton) > *:not(:has(.TVSearchButton)) { display: none !important; }
.search-card .TVFiltersBlock:has(.TVSearchButton) { justify-content: flex-end !important; }
.search-card .TVFiltersBlock:has(.TVSearchButton) > *:not(.TVSearchButton):not(:has(.TVSearchButton)) { display: none !important; }
.search-card .TVSearchButton { min-width: 180px !important; height: 52px !important; font-size: 16px !important; }
.tv-results .TVMainForm { background: var(--sea) !important; padding: 20px !important; border-radius: 16px 16px 0 0 !important; }
.tv-results .TVFilterForm { background: var(--surface-2) !important; border-radius: 0 0 16px 16px !important; }
.tv-slot { max-width: 100%; overflow-x: auto; }
.tv-slot .TVExtSearchForm, .tv-slot .TVSearchingForm, .tv-slot .TVInterfaceWrapper { min-width: 0 !important; }
.member--lead .member__photo img { object-position: 50% 15%; }
.tv-slot .TVMainColor { background-color: var(--sea) !important; }
.search-card .TVMainColor { border-radius: 16px; }

/* Превью модуля Tourvisor, пока он не загрузился */
.tv-preview { display: block; }
.tv-preview img { width: 100%; height: auto; border-radius: 12px; }
.tv-preview--tall { max-height: 1100px; overflow: hidden; position: relative; border-radius: 16px; }
.tv-preview--tall::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; background: linear-gradient(rgb(255 255 255 / 0), var(--surface)); pointer-events: none; }
.tv-preview__note { display: none; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.tv-slot.is-preview .tv-preview__note { display: flex; }
.tv-preview--tall .tv-preview__note { position: absolute; z-index: 1; left: 16px; bottom: 16px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.tv-slot:has([class*="tv-moduleid-"] > *) .tv-preview, .tv-slot.is-empty .tv-preview { display: none; }

/* ---------- Правки после critique ---------- */
::selection { background: rgb(240 122 62 / .28); color: var(--ink); }
input, textarea { caret-color: var(--accent); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--sea); }
.section__head h2 + p { margin-top: 12px; }
.btn--lg { min-height: 58px; padding: 0 32px; font-size: 17px; }
.hero__call { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 16px; padding: 8px 4px; }
.hero__call i { font-size: 20px; color: #ffc29f; }
.hero__call b { font-weight: 600; white-space: nowrap; border-bottom: 1px solid rgb(255 255 255 / .45); }
.hero__call:hover b { border-color: #fff; }
.hero__ctas { align-items: center; gap: 12px 24px; }
.hero__pause { margin-left: 4px; }
.hero__controls { gap: 10px; }
.reviews__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.ya-badge .ya-badge__logo { color: #fff; }
.search-card { box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgb(14 42 51 / .35); }
.pick__who { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-field); background: var(--surface-2); }
.pick__who p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.avatars { display: flex; flex: none; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--surface-2); margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.map { position: relative; }
.map__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; color: var(--sea); text-decoration: none; }
.map iframe { position: relative; z-index: 1; }
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgb(243 246 245 / .94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
  }
  .mbar__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; font-weight: 600; text-decoration: none; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
  .mbar__btn--accent { background: var(--btn); color: #fff; box-shadow: none; }
  .mbar__btn i { font-size: 20px; }
  body { padding-bottom: 76px; }
  .hero__call { width: 100%; justify-content: center; }
  .pick__who { flex-direction: column; align-items: flex-start; }
}
/* команда на мобильном: компактные строки вместо больших фото */
@media (max-width: 760px) {
  .team__grid { grid-template-columns: 1fr; gap: 10px; }
  .member--lead, .member--cta { grid-column: auto; }
  .member:not(.member--lead):not(.member--cta) { flex-direction: row; align-items: center; }
  .member:not(.member--lead):not(.member--cta) .member__photo { width: 76px; height: 76px; aspect-ratio: auto; flex: none; margin: 10px 0 10px 10px; border-radius: 50%; }
  .member:not(.member--lead):not(.member--cta) .member__photo img { object-position: 50% 15%; }
  .member:not(.member--lead):not(.member--cta) .member__body { padding: 12px 14px; }
  .member:not(.member--lead):not(.member--cta) .member__actions { padding-top: 4px; }
  .member__name { font-size: 17px; }
  .member__phone { font-size: 15px; }
  .member--lead .member__photo { aspect-ratio: 1 / 1; }
}
@media (max-width: 480px) {
  .hero__controls { gap: 6px; }
  .hero__arrow { width: 40px; height: 40px; font-size: 18px; }
  .hero__dot { width: 22px; }
  .hero__dot::before { width: 20px; height: 8px; clip-path: inset(0 6px round 999px); }
}

.mnav .mnav__bottom .btn { display: inline-flex; justify-content: center; padding: 0 26px; border-bottom: 0; font-size: 16px; font-weight: 600; }
.prose > h2:first-child { margin-top: 0; }
.contacts__row .msgr:hover { color: #fff; }
.svc__title { font-size: clamp(26px, 2.6vw, 32px); }
.svc__aside h3 { font-size: 24px; }
.svc__list li { font-size: 18px; }

/* мостик между пунктом меню и выпадающим списком, чтобы меню не пропадало */
.nav__drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.search-card .search-card__title { margin-bottom: 10px; }
