/* Sunday Travel, главная v3: по макету пользователя brand/design-ref-v3.webp.
   Тёплый светлый фон, жёлто-оранжевые кнопки из логотипа, красный для «горящих» цен, тёмный подвал. */

:root {
  --bg: #fffdf8;
  --cream: #fff6e4;
  --cream-2: #ffefcc;
  --card: #ffffff;
  --text: #161616;
  --text-2: #4a4a4a;
  --muted: #6b6b6b;
  --brand-ink: #dd6d00;   /* оранжевый для крупного текста: 3,3:1 к фону */
  --line: #f1e6d0;
  --yellow: #fcc62a;
  --orange: #faa500;
  --orange-ink: #e07800;
  --red: #e0202a;
  --dark: #1c1917;
  --foot: #241b15;
  --foot-text: #e9e2d9;
  --foot-muted: #a99d90;
  --green: #22a447;
  --tg: #229ed9;

  --btn: linear-gradient(180deg, #ffd24d 0%, #fcb514 100%);
  --btn-hover: linear-gradient(180deg, #ffc93a 0%, #f5a800 100%);
  --shadow: 0 10px 30px -14px rgba(120, 72, 0, 0.28);
  --shadow-soft: 0 6px 22px -12px rgba(120, 72, 0, 0.22);

  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --script: "Caveat", "Segoe Print", cursive;
  --r: 18px;
  --r-sm: 14px;
  --wrap: 1360px;
  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul { margin: 0; }
p { text-wrap: pretty; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; text-wrap: balance; }
:focus-visible { outline: 3px solid var(--dark); outline-offset: 3px; border-radius: 8px; }
.footer :focus-visible { outline-color: var(--yellow); }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--pad) * 2); margin-inline: auto; padding-inline: var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--btn); color: var(--dark); font: 700 1rem/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(250, 165, 0, 0.7); transition: background 0.2s var(--ease), transform 0.15s var(--ease), box-shadow 0.2s var(--ease); }
.btn:hover { background: var(--btn-hover); box-shadow: 0 10px 24px -8px rgba(250, 165, 0, 0.85); }
.btn:active { transform: scale(0.98); }
.btn i { font-size: 1.15em; }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 1.0625rem; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 0.875rem; gap: 6px; }
.btn--block { width: 100%; }
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.55); min-height: 54px; padding: 0 30px; }
.btn--dark:hover { background: #000; box-shadow: 0 12px 26px -10px rgba(0, 0, 0, 0.6); }
.btn--outline { background: #fff; box-shadow: inset 0 0 0 2px var(--yellow); }
.btn--outline:hover { background: var(--cream); box-shadow: inset 0 0 0 2px var(--orange); }

/* шапка поверх hero */
.nav { position: absolute; inset: 0 0 auto; z-index: 30; }
.nav.is-stuck { position: fixed; background: rgba(255, 253, 248, 0.86); -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 10px 28px -20px rgba(60, 30, 0, 0.35); animation: nav-in 0.35s var(--ease); }
.nav.is-stuck .nav__in { height: 68px; }
.nav.is-stuck .nav__logo img { height: 50px; }
@keyframes nav-in { from { transform: translateY(-100%); } }
.nav__in { display: flex; align-items: center; gap: clamp(16px, 2.4vw, 40px); height: 92px; }
.nav__logo img { height: 70px; width: auto; transition: height 0.25s var(--ease); }
.nav__links { display: flex; gap: clamp(14px, 1.8vw, 30px); font-size: 0.9375rem; font-weight: 500; }
.nav__links > li { position: relative; }
.nav__links a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; text-decoration: none; transition: color 0.2s var(--ease); }
.nav__links a:hover { color: var(--orange-ink); }
.nav__links i { font-size: 0.75em; }
.nav__drop > ul { position: absolute; top: 100%; left: -14px; min-width: 200px; padding: 8px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s; }
.nav__drop:hover > ul, .nav__drop:focus-within > ul { opacity: 1; visibility: visible; transform: none; }
.nav__drop > ul a { display: block; padding: 9px 12px; border-radius: 10px; }
.nav__drop > ul a:hover { background: var(--cream); color: var(--text); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: clamp(10px, 1.4vw, 20px); }
.nav__soc { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; text-decoration: none; transition: background 0.2s var(--ease), transform 0.2s var(--ease); }
.nav__soc img { width: 26px; height: 26px; }
.nav__soc:hover { background: rgba(255, 255, 255, 0.7); transform: translateY(-1px); }
/* переключатель языков */
.lang { display: flex; padding: 3px; background: rgba(255, 255, 255, 0.8); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.lang a { padding: 6px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; text-decoration: none; color: var(--text-2); transition: background 0.2s var(--ease), color 0.2s var(--ease); }
.lang a:hover { color: var(--text); background: #fff; }
.lang a[aria-current] { background: var(--dark); color: #fff; }
.menu { display: none; position: relative; }
.menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(255, 255, 255, 0.85); cursor: pointer; font-size: 1.4rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu ul { position: absolute; right: 0; top: 52px; display: grid; gap: 2px; min-width: 230px; padding: 8px; background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow); }
.menu a { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.menu a:hover { background: var(--cream); }
.menu .menu__lang { display: flex; gap: 6px; padding: 8px 6px 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.menu .menu__lang a { flex: 1; text-align: center; padding: 9px 0; font-weight: 700; background: var(--cream); }
.menu .menu__lang a[aria-current] { background: var(--dark); color: #fff; }

/* hero */
.hero { position: relative; display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding: 104px 0 56px; overflow: hidden; isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
/* экран шире 16:9: видео встаёт по высоте целиком, прижато вправо, слева уходит в светлый фон под текстом, ничего не обрезается */
@media (min-aspect-ratio: 16/9) {
  .hero__video { left: auto; width: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%); mask-image: linear-gradient(90deg, transparent 0%, #000 22%); }
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(255, 253, 248, 0.97) 0%, rgba(255, 253, 248, 0.9) 24%, rgba(255, 253, 248, 0.55) 38%, rgba(255, 253, 248, 0) 52%),
  linear-gradient(180deg, rgba(255, 253, 248, 0.75) 0%, rgba(255, 253, 248, 0) 22%); }
.hero__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.hero__text { max-width: 760px; }
.hero h1 { font-size: clamp(2.5rem, 4.2vw + 0.4rem, 4.5rem); line-height: 1.02; }
.hero__brand { color: var(--brand-ink); }
.hero__lead { margin-top: 18px; font-size: clamp(1.0625rem, 0.5vw + 0.95rem, 1.25rem); font-weight: 500; color: #2a2a2a; }
.hero__row { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); margin-top: 30px; }
.hero__script { position: relative; font: 700 clamp(1.75rem, 1.6vw + 1rem, 2.4rem)/1 var(--script); color: #1d1d1d; transform: rotate(-9deg); padding-bottom: 10px; }
.hero__script::after { content: ""; position: absolute; left: 18%; right: -6%; bottom: -4px; height: 10px; border-bottom: 4px solid var(--orange); border-radius: 0 0 60% 40% / 0 0 100% 100%; transform: rotate(2deg); }

/* форма бронирования */
.book { flex: 0 0 340px; min-width: 0; display: grid; gap: 10px; padding: 22px 20px 16px; background: rgba(255, 255, 255, 0.96); border-radius: var(--r); box-shadow: 0 24px 50px -24px rgba(60, 30, 0, 0.45); }
.book h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; font-size: 1.25rem; letter-spacing: -0.015em; }
.book h2 i { font-size: 1.6rem; color: var(--orange); }
.field { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; column-gap: 8px; padding: 9px 12px; background: #fbf9f5; border: 1px solid #f0ebe1; border-radius: 12px; cursor: pointer; }
.field > i { grid-row: span 2; font-size: 1.45rem; color: var(--text); }
.field__label { font-size: 0.8125rem; color: var(--muted); line-height: 1.2; }
.field select, .field input { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); font: 600 0.9375rem/1.4 var(--font); cursor: pointer; }
.field select { appearance: none; -webkit-appearance: none; }
.field select:focus, .field input:focus { outline: none; }
.field:focus-within { border-color: var(--orange-ink); box-shadow: 0 0 0 3px rgba(250, 165, 0, 0.25); }
/* незаполненное обязательное поле */
.field.is-invalid, .pill-field.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(224, 32, 42, 0.16); animation: shake 0.35s var(--ease); }
.field__error { grid-column: 2; margin-top: 2px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--red); }
.pill-field { flex-wrap: wrap; }
.pill-field .field__error { flex-basis: 100%; margin: -6px 0 8px 30px; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field__dates { display: flex; align-items: center; gap: 4px; }
.field__dates input { width: 0; min-width: 0; flex: 1 1 0; font-size: 0.875rem; }
.book .btn { margin-top: 6px; min-height: 52px; font-size: 1.0625rem; }
.book__note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; line-height: 1.25; }
.book__note i { font-size: 1.6rem; color: var(--green); }

/* полоса преимуществ */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; padding-block: 18px; background: linear-gradient(180deg, #fffaf0 0%, var(--cream) 100%); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.strip__item { display: flex; align-items: center; gap: 14px; padding: 4px clamp(14px, 2vw, 32px); }
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip p { font-size: 0.875rem; color: var(--text-2); line-height: 1.3; }
.strip strong { display: block; color: var(--text); font-size: 0.9375rem; font-weight: 700; }
.ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #fff4d6 0%, #ffe9b8 100%); font-size: 1.9rem; color: var(--orange); }

/* заголовки секций */
.sec { margin-top: clamp(28px, 2.8vw, 40px); }
.sec__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.sec__head h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.125rem); }
.sec__head p { margin-top: 4px; font-size: 0.9375rem; color: var(--text-2); }
.sec__ico { flex: none; font-size: clamp(2.2rem, 2vw + 1rem, 2.9rem); color: var(--orange); }
.sec__ico--fire { background: linear-gradient(180deg, #ffb000 0%, #f04a00 70%, #e0202a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sec__more { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--red); font-weight: 700; font-size: 0.9375rem; text-decoration: none; white-space: nowrap; }
.sec__more:hover { text-decoration: underline; text-underline-offset: 0.2em; }

/* горящие туры */
.tours { --gap: clamp(14px, 1.6vw, 24px); display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * var(--gap)) / 4); gap: var(--gap); margin: -8px -6px -18px; padding: 8px 6px 22px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 6px; scrollbar-width: none; }
.tours::-webkit-scrollbar { display: none; }
.tour { scroll-snap-align: start; }
.slider-ctrl { margin-left: auto; display: flex; gap: 10px; }
.slider-ctrl button { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--text); font-size: 1.05rem; cursor: pointer; box-shadow: var(--shadow-soft); transition: background 0.2s var(--ease), opacity 0.2s var(--ease); }
.slider-ctrl button:hover:not(:disabled) { background: var(--cream-2); }
.slider-ctrl button:disabled { opacity: 0.4; cursor: default; }
.slider-ctrl + .sec__more { margin-left: 18px; }
.badge--soft { background: var(--yellow); color: var(--dark); box-shadow: 0 6px 14px -6px rgba(250, 165, 0, 0.8); }
.tour { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.tour:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -16px rgba(120, 72, 0, 0.35); }
.tour__img { position: relative; aspect-ratio: 16 / 8.8; overflow: hidden; }
.tour__img img { width: 100%; height: 100%; object-fit: cover; }
.tour__body { position: relative; padding: 2px 20px 18px; display: grid; gap: 4px; }
.tour__body::before { content: ""; position: absolute; left: -8%; right: -8%; top: -26px; height: 52px; background: var(--card); border-radius: 55% 45% 0 0 / 100% 70% 0 0; transform: rotate(-2.5deg); }
.tour__body > * { position: relative; }
.tour h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.tour p { display: flex; align-items: center; gap: 8px; font-size: 0.9375rem; color: var(--text-2); }
.tour p i { font-size: 1.05rem; color: var(--text); }
.tour .tour__price { margin-top: 6px; display: block; color: var(--red); font-size: 1.125rem; font-weight: 700; }
.tour__price strong { font-size: 1.375rem; font-weight: 800; letter-spacing: -0.02em; }
.go { position: absolute; right: 18px; bottom: 18px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--btn); color: var(--dark); font-size: 1.1rem; text-decoration: none; box-shadow: 0 6px 14px -6px rgba(250, 165, 0, 0.8); transition: transform 0.2s var(--ease); }
.go::after { content: ""; position: absolute; inset: -6px; }
.tour .go { position: absolute; }
.go:hover { transform: translateX(3px); }
.badge { position: absolute; top: 14px; left: 14px; padding: 6px 13px; border-radius: 999px; background: var(--red); color: #fff; font-size: 0.875rem; font-weight: 700; box-shadow: 0 6px 14px -6px rgba(224, 32, 42, 0.8); }
.heart { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: #fff; font-size: 1.75rem; cursor: pointer; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.45)); transition: transform 0.15s var(--ease); }
.heart:hover { transform: scale(1.1); }
.heart[aria-pressed="true"] { color: #ff4d5a; }

/* почему мы */
.why { display: grid; grid-template-columns: minmax(0, 3.1fr) minmax(0, 7fr); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(28px, 2.8vw, 40px); }
.why__intro { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(28px, 3vw, 35px); background: linear-gradient(135deg, #fffaf2 0%, #ffefcf 100%); border-radius: var(--r); box-shadow: var(--shadow-soft); }
.why__intro h2 { font-size: clamp(1.75rem, 1.3vw + 1rem, 2.375rem); }
.why__intro p { margin-top: 14px; font-size: 1.0625rem; font-weight: 500; color: #2a2a2a; max-width: 24ch; }
.why__intro .btn { margin-top: auto; }
.why__intro p + .btn { margin-top: 30px; }
.why__panel { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); padding: clamp(22px, 2.4vw, 34px); background: linear-gradient(90deg, #fffaf2 0%, #fff4df 60%, #fff4df 100%); border-radius: var(--r); box-shadow: var(--shadow-soft); overflow: hidden; isolation: isolate; min-height: 300px; }
.why__list { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 20px clamp(16px, 1.6vw, 28px); width: 63%; }
.why__list li { display: flex; align-items: center; gap: 14px; }
.why__list .ico { width: 50px; height: 50px; font-size: 1.6rem; }
.why__list li { gap: 12px; }
.why__list p { font-size: 0.875rem; color: var(--text-2); line-height: 1.3; }
.why__list strong { display: block; color: var(--text); font-size: 1rem; font-weight: 700; }
.why__mascot { position: absolute; z-index: 0; right: 5%; bottom: 0; height: 100%; width: auto; filter: drop-shadow(0 16px 22px rgba(120, 72, 0, 0.18)); }

/* популярные направления и галерея */
.dest, .gallery { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.3vw, 20px); }
.dest li, .gallery li { position: relative; }
.tile { position: relative; display: block; aspect-ratio: 4 / 2.85; border-radius: var(--r-sm); overflow: hidden; text-decoration: none; box-shadow: var(--shadow-soft); }
.gallery .tile { aspect-ratio: 4 / 2.55; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 52%, rgba(0, 0, 0, 0.45) 100%); }
.tile span, .tile figcaption { position: absolute; z-index: 1; left: 16px; bottom: 12px; color: #fff; font-size: clamp(1.125rem, 0.6vw + 0.9rem, 1.5rem); font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); }

/* баннеры «Готовы к путешествию?» */
.cta { position: relative; display: flex; align-items: center; gap: clamp(20px, 3vw, 48px); min-height: 124px; margin-top: clamp(28px, 2.8vw, 40px); padding: 22px clamp(24px, 3vw, 44px) 22px clamp(90px, 9vw, 130px); border-radius: var(--r); overflow: hidden; isolation: isolate;
  background: linear-gradient(90deg, #ffe7a3 0%, #ffd056 30%, #ffc23a 46%, rgba(255, 190, 50, 0) 64%), url("img/v3/cta-sunset.webp") right 22% / 60% auto no-repeat, #f6a21a; box-shadow: var(--shadow-soft); }
.cta--wide { border-radius: 0; margin-top: clamp(56px, 6vw, 96px); overflow: visible; padding-left: max(var(--pad), calc((100% - var(--wrap)) / 2)); min-height: 140px; }
.cta--mascot { margin-top: clamp(64px, 7vw, 110px); overflow: visible; }
.cta__mascot { position: absolute; z-index: 1; right: clamp(16px, 6%, 90px); bottom: 0; height: 178%; width: auto; pointer-events: none; filter: drop-shadow(0 16px 22px rgba(120, 72, 0, 0.18)); }
.cta__plane { position: absolute; left: clamp(20px, 2.4vw, 40px); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: clamp(54px, 2vw + 30px, 66px); aspect-ratio: 1; border-radius: 50%; background: #fff; color: var(--orange-ink); font-size: clamp(1.7rem, 0.8vw + 1.2rem, 2.1rem); box-shadow: 0 10px 24px -8px rgba(150, 82, 0, 0.35); }
.cta h2 { font-size: clamp(1.5rem, 1.2vw + 1rem, 2.125rem); }
.cta p { margin-top: 4px; font-size: clamp(0.9375rem, 0.3vw + 0.875rem, 1.0625rem); font-weight: 500; }

/* обратный звонок и офис */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 24px); margin-top: clamp(28px, 2.8vw, 40px); }
.call { position: relative; display: flex; min-height: 300px; background: linear-gradient(135deg, #fff3d6 0%, #ffe2a2 100%); border-radius: var(--r); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-soft); }
.call__body { position: relative; z-index: 1; display: grid; gap: 12px; align-content: center; width: min(330px, 56%); padding: clamp(22px, 2.4vw, 32px); }
.call__head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 4px; }
.call__ico { flex: none; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--orange); font-size: 2rem; box-shadow: var(--shadow-soft); }
.call h2 { font-size: clamp(1.25rem, 0.8vw + 0.9rem, 1.625rem); }
.call__head p { margin-top: 6px; font-size: 0.875rem; color: var(--text-2); }
.call__mascot { position: absolute; z-index: 0; right: 3%; bottom: 0; height: 100%; width: auto; filter: drop-shadow(0 16px 22px rgba(120, 72, 0, 0.18)); }
.pill-field { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px -4px rgba(120, 72, 0, 0.25); cursor: text; }
.pill-field > i { font-size: 1.15rem; color: var(--orange); }
.pill-field img { width: 20px; height: 15px; border-radius: 2px; }
.pill-field input, .pill-field select { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: transparent; color: var(--text); font: 500 0.9375rem var(--font); }
.pill-field select { cursor: pointer; }
.pill-field input:focus, .pill-field select:focus { outline: none; }
.pill-field:focus-within { box-shadow: 0 0 0 3px rgba(250, 165, 0, 0.35); }
.office { position: relative; display: flex; min-height: 300px; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-soft); }
.office__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 52%; padding: clamp(24px, 2.6vw, 36px); }
.office h2 { font-size: clamp(1.375rem, 0.9vw + 1rem, 1.875rem); }
.office p { font-size: 0.9375rem; color: var(--text-2); }
.office__mascot { position: absolute; right: 4%; bottom: 0; height: 94%; width: auto; filter: drop-shadow(0 16px 22px rgba(120, 72, 0, 0.18)); }

/* отзывы */
.sec--mascot { position: relative; padding-left: calc(var(--pad) + 150px); }
.reviews__mascot { position: absolute; left: var(--pad); bottom: 0; height: 100%; max-height: 300px; width: auto; filter: drop-shadow(0 16px 22px rgba(120, 72, 0, 0.18)); }
.reviews { position: relative; display: flex; align-items: center; gap: 12px; }
.reviews__row { flex: 1; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2 * 24px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; }
.reviews__row::-webkit-scrollbar { display: none; }
.review { display: flex; gap: 16px; align-items: flex-start; padding: 22px 24px; background: #fff; border: 1px dashed #ecdcbc; border-radius: var(--r); box-shadow: var(--shadow-soft); scroll-snap-align: start; }
.review__ava { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cream-2); color: #d6b571; font-size: 1.7rem; }
.review__name { font-weight: 700; font-size: 1rem; }
.review__text { margin-top: 6px; font-size: 0.9375rem; color: var(--text-2); }
.reviews__nav { flex: none; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--text); font-size: 1rem; cursor: pointer; box-shadow: var(--shadow-soft); transition: background 0.2s var(--ease); }
.reviews__nav:hover { background: var(--cream); }

/* вопросы */
.faq { display: grid; grid-template-columns: minmax(0, 3.3fr) minmax(0, 6.7fr); gap: clamp(20px, 2.4vw, 40px); align-items: start; margin-top: clamp(28px, 2.8vw, 40px); }
.faq__mascot { position: relative; margin: 0; align-self: center; container-type: inline-size; }
.faq__mascot img { width: 100%; height: auto; }
/* текст облачка поверх картинки: на каждом языке свой */
.faq__bubble { position: absolute; left: 57.5%; top: 17.5%; width: 33%; height: 22%; display: grid; place-items: center; text-align: center; font: 800 5.4cqw/1.05 var(--font); letter-spacing: -0.02em; color: var(--text); transform: rotate(-6deg); }
.faq .sec__head { margin-bottom: 14px; }
.qa { margin-top: 10px; background: #fff; border-radius: var(--r-sm); box-shadow: 0 4px 16px -10px rgba(120, 72, 0, 0.35); }
.qa summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 20px; font-weight: 700; font-size: 1rem; cursor: pointer; list-style: none; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { flex: none; font-size: 1.15rem; transition: transform 0.25s var(--ease); }
.qa[open] summary i { transform: rotate(45deg); }
.qa p { padding: 0 20px 16px; color: var(--text-2); font-size: 0.9375rem; }
.qa a { color: var(--orange-ink); font-weight: 600; }

/* подвал */
.footer { margin-top: 0; padding-top: 48px; background: var(--foot); color: var(--foot-text); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr 1.2fr; gap: 32px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__brand img { width: 190px; height: auto; }
.footer__brand p { margin-top: 18px; font-size: 1.125rem; font-weight: 600; color: #fff; }
.footer h2 { font-size: 1.0625rem; color: #fff; letter-spacing: -0.01em; margin-bottom: 14px; }
.footer h2 span { display: block; font-weight: 500; font-size: 0.9375rem; color: var(--foot-text); margin-top: 2px; }
.footer ul { display: grid; gap: 9px; font-size: 0.9375rem; }
.footer a { color: var(--foot-text); text-decoration: none; transition: color 0.2s var(--ease); }
.footer a:hover { color: var(--yellow); }
.footer .btn, .footer .btn:hover { color: var(--dark); box-shadow: 0 8px 18px -10px rgba(0, 0, 0, 0.6); }
.footer__contacts li { display: flex; align-items: center; gap: 12px; }
.footer__contacts i { font-size: 1.15rem; color: #fff; }
.footer__contacts img { width: 20px; height: 20px; }
.footer__sub p { font-size: 0.9375rem; color: var(--foot-muted); margin-bottom: 14px; }
.footer__bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 22px 28px; font-size: 0.8125rem; color: var(--foot-muted); }
.footer__legal { display: flex; gap: 10px; }
.footer__soc { display: flex; gap: 16px; margin-right: 76px; }
.footer__soc img { width: 28px; height: 28px; transition: transform 0.2s var(--ease); }
.footer__soc a:hover img { transform: translateY(-2px); }

/* плавающая кнопка «Онлайн-консультант» */
.consult { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 6px 6px 6px 86px; border: 3px solid var(--yellow); border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; box-shadow: 0 16px 34px -14px rgba(120, 72, 0, 0.45); transition: transform 0.2s var(--ease); }
.consult:hover { transform: translateY(-2px); }
.consult__ava { position: absolute; left: -8px; bottom: -4px; width: 86px; height: 86px; border: 3px solid #fff; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffe08a, var(--yellow)); object-fit: cover; box-shadow: var(--shadow-soft); }
.consult__text { display: grid; line-height: 1.2; padding-right: 2px; }
.consult__text strong { font-size: 0.9375rem; font-weight: 800; }
.consult__text span { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8125rem; color: var(--text-2); }
.consult__text i { color: var(--orange); }
.consult__btn { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--btn); color: #fff; font-size: 1.6rem; box-shadow: 0 6px 14px -6px rgba(250, 165, 0, 0.8); }

/* чат-консультант: панель над виджетом, на телефоне лист снизу */
.chat { position: fixed; z-index: 45; right: 20px; bottom: 100px; display: flex; flex-direction: column; width: min(384px, calc(100vw - 40px)); height: min(600px, calc(100dvh - 130px)); border-radius: 22px; background: #fff; box-shadow: 0 28px 60px -22px rgba(80, 48, 0, 0.5), 0 0 0 1px rgba(120, 72, 0, 0.08); overflow: hidden; transform-origin: 100% 100%; animation: chat-in 0.32s var(--ease); }
.chat[hidden] { display: none; }
.chat:focus { outline: none; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; background: linear-gradient(180deg, #ffe08a 0%, var(--yellow) 100%); }
.chat__ava { flex: none; width: 48px; height: 48px; border: 2px solid #fff; border-radius: 50%; background: radial-gradient(circle at 50% 40%, #ffe08a, var(--yellow)); object-fit: cover; }
.chat__who { flex: 1; min-width: 0; }
.chat__who h2 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.chat__who p { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: #3d3428; }
.chat__who p::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.75); }
.chat__x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.55); color: var(--dark); font-size: 1.15rem; cursor: pointer; transition: background 0.15s var(--ease); }
.chat__x:hover { background: #fff; }
.chat__log { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 16px 14px; overflow-y: auto; overscroll-behavior: contain; background: var(--bg); }
.chat__msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 0.9375rem; line-height: 1.45; overflow-wrap: anywhere; }
.chat__msg--bot { align-self: flex-start; border: 1px solid var(--line); border-bottom-left-radius: 6px; background: #fff; }
.chat__msg--me { align-self: flex-end; border-bottom-right-radius: 6px; background: var(--yellow); color: var(--dark); font-weight: 600; }
.chat__typing { display: inline-flex; gap: 4px; padding: 15px 16px; }
.chat__typing span { width: 7px; height: 7px; border-radius: 50%; background: #c9b48a; animation: chat-dot 1s ease-in-out infinite; }
.chat__typing span:nth-child(2) { animation-delay: 0.15s; }
.chat__typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chat-dot { 0%, 80%, 100% { opacity: 0.35; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 4px; }
.chat__chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 1.5px solid var(--yellow); border-radius: 999px; background: #fff; color: var(--dark); font: 600 0.875rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background 0.15s var(--ease), border-color 0.15s var(--ease); }
.chat__chip:hover { border-color: var(--orange); background: var(--cream); }
.chat__chip--tg { border-color: #1a7bab; background: #1a7bab; color: #fff; }
.chat__chip--tg:hover { border-color: #136895; background: #136895; }
.chat__chip--tg i { font-size: 1.15rem; }
.chat__form { display: flex; gap: 8px; padding: 10px 10px 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat__input { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--text); font: 500 1rem var(--font); }
.chat__input::placeholder { color: var(--muted); }
.chat__input:focus-visible { outline: none; border-color: var(--orange); background: #fff; }
.chat__send { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--btn); color: var(--dark); font-size: 1.3rem; cursor: pointer; box-shadow: 0 6px 14px -6px rgba(250, 165, 0, 0.8); }
.chat__send:hover { background: var(--btn-hover); }

/* попап «Забронировать» */
html:has(.modal[open]) { overflow: hidden; }
.modal { width: 100%; max-width: min(720px, calc(100% - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; background: transparent; color: var(--text); overflow: visible; }
.modal[open] { display: flex; align-items: flex-end; justify-content: center; }
.modal__mascot { flex: none; width: 240px; height: auto; margin-right: -34px; position: relative; z-index: 0; filter: drop-shadow(0 16px 22px rgba(120, 72, 0, 0.18)); }
.modal::backdrop { background: rgba(28, 20, 12, 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal__box { position: relative; z-index: 1; flex: 1 1 auto; min-width: 0; max-width: 460px; display: grid; gap: 10px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 24px 22px; background: #fff; border-radius: 20px; box-shadow: 0 30px 60px -20px rgba(40, 20, 0, 0.5); }
.modal[open] .modal__box { animation: pop 0.28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.modal h2 { display: flex; align-items: center; gap: 10px; padding-right: 44px; font-size: 1.5rem; letter-spacing: -0.02em; }
.modal h2 i { font-size: 1.7rem; color: var(--orange); }
.modal__lead { margin-bottom: 4px; font-size: 0.9375rem; color: var(--text-2); }
.modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #f5f1ea; color: var(--text); font-size: 1.1rem; cursor: pointer; transition: background 0.2s var(--ease); }
.modal__close:hover { background: var(--cream-2); }
.modal .btn { margin-top: 6px; min-height: 52px; font-size: 1.0625rem; }
.modal__note { text-align: center; font-size: 0.875rem; color: var(--text-2); }
.modal__note a { color: var(--orange-ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.field input::placeholder { color: var(--muted); font-weight: 500; }

/* планшет */
@media (max-width: 1180px) {
  .nav__links { display: none; }
  .menu { display: block; }
  .tours { grid-auto-columns: calc((100% - var(--gap)) / 2); margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .why__intro .btn { margin-top: 24px; }
  .dest, .gallery { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 30%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 12px; scroll-padding-inline: var(--pad); }
  .dest::-webkit-scrollbar, .gallery::-webkit-scrollbar { display: none; }
  .dest li, .gallery li { scroll-snap-align: start; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav__soc, .lang { display: none; }
  .nav__cta { margin-left: auto; }
  /* телефон и планшет: текст, под ним видео полосой 16:9 без обрезки, ниже форма */
  .hero { flex-direction: column; align-items: stretch; padding: 92px 0 32px; background: var(--bg); }
  .hero::before { display: none; }
  .hero__in { display: contents; }
  /* порядок: заголовок, подзаголовок, видео с рукописной фразой в левом нижнем углу, под видео кнопка на всю ширину, форма */
  .hero__text, .hero__row { display: contents; }
  .hero h1 { order: 1; margin-top: 8px; padding-inline: var(--pad); }
  .hero__lead { order: 2; padding-inline: var(--pad); }
  .hero__video { order: 3; position: relative; inset: auto; z-index: 0; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-top: 24px; object-fit: cover; -webkit-mask-image: none; mask-image: none; }
  /* фраза занимает 80 px внутри видео: начинается на 100 px выше его нижнего края, кнопка встаёт на 24 px ниже видео */
  .hero__script { order: 4; position: relative; z-index: 1; align-self: flex-start; height: 80px; margin: -100px 0 44px calc(var(--pad) + 8px); color: #fff; text-shadow: 0 2px 4px rgba(0, 0, 0, 0.35), 0 4px 18px rgba(0, 0, 0, 0.5); }
  .hero__row .btn { order: 5; align-self: stretch; margin: 0 var(--pad); }
  .js .hero__script { animation-delay: 0.42s; }
  .js .hero__row .btn { animation-delay: 0.54s; }
  .js .hero .book { animation-delay: 0.66s; }
  .book { order: 6; flex: none; margin: 16px var(--pad) 0; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .strip__item:nth-child(3) { border-left: 0; }
  .why__list { width: 100%; }
  .why__panel { padding-bottom: 284px; }
  .why__mascot { right: 50%; transform: translateX(50%); height: 260px; }
  .sec--mascot { padding-left: var(--pad); }
  .reviews__mascot { display: none; }
  .cta__mascot { right: 16px; height: 280px; }
  /* баннер: фото полосой сверху, текст ниже на жёлтом, чтобы самолёт с фото не попадал под текст */
  .cta { --cta-strip: clamp(118px, 24vw, 190px); flex-direction: column; align-items: flex-start; gap: 16px; padding: calc(var(--cta-strip) + 6px) 24px 24px; background: linear-gradient(170deg, #ffe7a3 0%, #ffd056 55%, #ffc23a 100%); }
  .cta::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: var(--cta-strip); border-radius: inherit; border-bottom-left-radius: 0; border-bottom-right-radius: 0; background: url("img/v3/cta-sunset.webp") 62% 30% / cover no-repeat; -webkit-mask-image: linear-gradient(180deg, #000 62%, transparent); mask-image: linear-gradient(180deg, #000 62%, transparent); }
  .cta__plane { top: 16px; left: 16px; right: auto; transform: none; width: 48px; font-size: 1.5rem; }
  .cta--wide { padding-left: var(--pad); }
  .reviews__row { grid-auto-columns: 85%; margin-inline: calc(-1 * var(--pad)); padding-inline: var(--pad); scroll-padding-inline: var(--pad); }
  .reviews__nav { display: none; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__mascot { width: 100%; max-width: 420px; justify-self: center; }
}
@media (max-width: 640px) {
  .nav__in { height: 72px; }
  .nav__logo img { height: 46px; }
  .nav.is-stuck .nav__in { height: 60px; }
  .nav.is-stuck .nav__logo img { height: 40px; }
  .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
  .strip { grid-template-columns: minmax(0, 1fr); }
  .strip__item + .strip__item { border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .sec__head { flex-wrap: wrap; }
  .sec__head > div { flex: 1 1 0; min-width: 0; }
  .sec__more { margin-left: 0; width: 100%; padding-left: calc(clamp(2.2rem, 2vw + 1rem, 2.9rem) + 16px); }
  .tours { grid-auto-columns: 82%; }
  .slider-ctrl { display: none; }
  .why__list { grid-template-columns: minmax(0, 1fr); }
  .dest, .gallery { grid-auto-columns: 62%; }
  .call { flex-direction: column; min-height: 0; }
  .call__body { width: 100%; padding-bottom: 254px; } /* 230 px персонаж + 24 px до кнопки, как у офиса */
  .call__mascot { right: 50%; transform: translateX(50%); height: 230px; }
  .office { flex-direction: column; }
  .office__body { width: 100%; }
  .office__mascot { position: static; display: block; height: 200px; margin: 0 auto 8px; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__bottom { flex-direction: column; align-items: flex-start; padding-bottom: 92px; }
  .footer__soc { margin-right: 0; }
  .consult { right: 12px; bottom: 12px; min-height: 56px; padding: 4px 4px 4px 64px; }
  .consult__text { display: none; }
  .consult__ava { width: 66px; height: 66px; left: -6px; bottom: -3px; }
  .consult__btn { width: 44px; height: 44px; font-size: 1.4rem; }
  .chat { right: 8px; left: 8px; bottom: 8px; width: auto; height: min(640px, calc(100dvh - 16px)); border-radius: 20px; }
  .chat-open .consult { display: none; }
  .cta__mascot { display: none; }
  .cta--mascot, .cta--wide { margin-top: clamp(28px, 2.8vw, 40px); }
}

/* вход hero при загрузке: видео проявляется, тексты, кнопка и форма выезжают по очереди, в конце дорисовывается подчёркивание фразы.
   translate и scale, а не transform: у фразы и подчёркивания свой поворот, он сохраняется */
@keyframes hero-in { from { opacity: 0; translate: 0 22px; } }
@keyframes hero-fade { from { opacity: 0; } }
@keyframes line-draw { from { scale: 0 1; } }
.js .hero__video { animation: hero-fade 1.2s ease-out both; }
.js .hero h1, .js .hero__lead, .js .hero__row .btn, .js .hero__script, .js .hero .book { animation: hero-in 0.8s var(--ease) both; }
.js .hero h1 { animation-delay: 0.08s; }
.js .hero__lead { animation-delay: 0.22s; }
.js .hero__row .btn { animation-delay: 0.36s; }
.js .hero__script { animation-delay: 0.5s; }
.js .hero .book { animation-delay: 0.42s; }
.js .hero__script::after { transform-origin: 0 50%; animation: line-draw 0.7s var(--ease) 1s both; }

/* появление блоков при прокрутке: классы ставит скрипт, без JS всё видно сразу */
.rv-on .rv { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity 0.7s var(--ease) var(--rv-d, 0ms), transform 0.9s var(--ease) var(--rv-d, 0ms); }
.rv-on .rv.is-in { opacity: 1; transform: none; }

/* движение */
@media (prefers-reduced-motion: reduce) {
  .rv-on .rv { opacity: 1; transform: none; transition: none; }
  .js .hero__video, .js .hero h1, .js .hero__lead, .js .hero__row .btn, .js .hero__script, .js .hero .book, .js .hero__script::after { animation: none; }
  .modal[open] .modal__box { animation: none; }
  .nav.is-stuck { animation: none; }
  .nav__logo img { transition: none; }
  .field.is-invalid, .pill-field.is-invalid { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .tour, .tile img, .go, .heart, .nav__drop > ul, .qa summary i, .consult { transition: none; }
  .chat, .chat__typing span { animation: none; }
  .tour:hover, .tile:hover img, .go:hover { transform: none; }
}

@media (max-width: 760px) {
  .modal__mascot { display: none; }
}
