/* ===== 01-base.css ===== */
/* ============================================================
   ЭКОНОМЛЕР — design tokens, reset, typography, primitives
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Involve";
  src: url("../fonts/involve-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Involve";
  src: url("../fonts/involve-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Involve";
  src: url("../fonts/involve-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Involve";
  src: url("../fonts/involve-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HeliosExt";
  src: url("../fonts/heliosext-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "HeliosExt";
  src: url("../fonts/heliosext-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #252525;
  --ink-2: #333331;
  --ink-3: #4a4a46;
  --muted: #6b6b63;
  --muted-2: #8a8a81;
  --paper: #f7f5ef;
  --paper-2: #fffefb;
  --paper-3: #efece3;
  --line: #e2ded0;
  --line-soft: #ece9df;
  --yellow: #ffe144;
  --yellow-deep: #f4d21c;
  --yellow-soft: #fff6c9;
  --white: #ffffff;

  --r-2xl: 36px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --shadow-s: 0 1px 2px rgba(37, 37, 37, 0.04), 0 6px 16px -6px rgba(37, 37, 37, 0.08);
  --shadow-m: 0 2px 4px rgba(37, 37, 37, 0.03), 0 18px 40px -18px rgba(37, 37, 37, 0.16);
  --shadow-l: 0 40px 90px -40px rgba(37, 37, 37, 0.34), 0 8px 24px -12px rgba(37, 37, 37, 0.12);

  --ease: cubic-bezier(0.22, 0.68, 0.16, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --wrap: 1320px;
  --gutter: clamp(16px, 4.2vw, 44px);
  --header-h: 78px;

  --font-body: "Involve", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "HeliosExt", "Involve", "Segoe UI", sans-serif;

  --z-header: 60;
  --z-sheet: 90;
  --z-nav: 80;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

body.is-locked {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

[hidden] {
  display: none !important;
}

img, svg, video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

summary {
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker {
  display: none;
}

::selection {
  background: var(--yellow);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

.dark :focus-visible,
.footer :focus-visible {
  outline-color: var(--yellow);
}

/* ---------- Layout helpers ---------- */
.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.wrap--wide {
  width: min(100% - var(--gutter) * 2, 1560px);
}

.section {
  padding-block: clamp(56px, 7.2vw, 108px);
  position: relative;
}

.section--tight {
  padding-block: clamp(40px, 5vw, 72px);
}

.section--paper2 {
  background: var(--paper-2);
}

.section--dark {
  background: var(--ink);
  color: var(--white);
}

.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translate(-50%, -160%);
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  z-index: 200;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus-visible {
  transform: translate(-50%, 0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Typography ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.025em;
}

.h1,
.h2,
.h3,
.display {
  overflow-wrap: break-word;
  hyphens: auto;
}

.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 4.6vw, 74px);
  line-height: 0.92;
  letter-spacing: -0.028em;
}

.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3.5vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}

.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1;
  letter-spacing: -0.015em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.dark .eyebrow,
.footer .eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.lead {
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
}
.dark .lead {
  color: rgba(255, 255, 255, 0.68);
}

.mono-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------- Section head ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(26px, 3.4vw, 46px);
}
.sec-head__text {
  max-width: 640px;
}
.sec-head .h2 {
  margin-top: 14px;
}
.sec-head__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  max-width: 46ch;
}
.dark .sec-head__sub {
  color: rgba(255, 255, 255, 0.62);
}
.sec-head__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
  padding-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--white);
  --btn-border: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-border);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background-color 0.25s ease,
    color 0.25s ease, box-shadow 0.35s var(--ease), border-color 0.25s ease;
  will-change: transform;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -18px rgba(37, 37, 37, 0.5);
}
.btn:active {
  transform: translateY(0);
}

.btn--accent {
  --btn-bg: var(--yellow);
  --btn-fg: var(--ink);
}
.btn--accent:hover {
  --btn-bg: #ffd91f;
  box-shadow: 0 18px 34px -16px rgba(255, 225, 68, 0.75);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-border: var(--line);
}
.btn--ghost:hover {
  --btn-border: var(--ink);
  box-shadow: none;
}

.btn--light {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
}

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: var(--white);
  --btn-border: rgba(255, 255, 255, 0.24);
}
.btn--on-dark:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(255, 255, 255, 0.4);
  box-shadow: none;
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn__arrow {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease);
}
.btn:hover .btn__arrow {
  transform: translateX(4px);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, gap 0.3s var(--ease);
}
.link-arrow:hover {
  border-color: currentColor;
  gap: 12px;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
}

/* ---------- Chips / pills ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.3s var(--ease);
}
.chip:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.chip--on-dark {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.82);
}
.chip--on-dark:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.chip--on-dark.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.badge--glass {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge--ink {
  background: var(--ink);
  color: var(--white);
}

/* ---------- Icon button (round) ---------- */
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease);
}
.icon-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.icon-btn svg {
  width: 19px;
  height: 19px;
}
.icon-btn--on-dark {
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--white);
}
.icon-btn--on-dark:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--ink);
}

/* ---------- Icons ---------- */
.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ---------- Photo ---------- */
.photo {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--paper-3);
  isolation: isolate;
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
  will-change: transform;
}
.photo__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 15, 14, 0) 42%, rgba(15, 15, 14, 0.62) 100%);
  pointer-events: none;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ---------- Price typography ---------- */
.price {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price__from {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.dark .price__from {
  color: rgba(255, 255, 255, 0.55);
}
.price__value {
  font-size: 21px;
  line-height: 1;
}
.price__old {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted-2);
  text-decoration: line-through;
}

/* ---------- Reveal animation ---------- */
/* Появление блоков включается только на широких экранах: класс .js-reveal
   ставит inline-скрипт в <head>. На мобильном контент виден сразу — раньше
   секции «доезжали» кусками, из-за чего загрузка выглядела прерывистой. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ===== 02-header.css ===== */
/* ============================================================
   Header, navigation, drawer, mobile tab bar
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(247, 245, 239, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
  pointer-events: none;
}
.header.is-stuck {
  border-bottom-color: var(--line-soft);
}
.header.is-stuck::before {
  background: rgba(247, 245, 239, 0.82);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: var(--header-h);
}

/* logo */
.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo img {
  width: clamp(132px, 12vw, 158px);
  height: auto;
}

/* nav */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.nav__link {
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s ease, background-color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}
.nav__link:hover {
  color: var(--ink);
}
.nav__link:hover::after,
.nav__link.is-active::after {
  transform: scaleX(1);
}
.nav__link.is-active {
  color: var(--ink);
  font-weight: 600;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* favourites counter */
.icon-btn--badge {
  position: relative;
}
.icon-btn__count {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  border: 2px solid var(--paper);
  transform: scale(0);
  transition: transform 0.3s var(--ease-out);
}
.icon-btn__count.is-visible {
  transform: scale(1);
}

/* account menu */
.account {
  position: relative;
}
.account__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 44px;
  padding: 0 16px 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 500;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.account__btn:hover {
  border-color: var(--ink);
}
.account__btn svg {
  width: 16px;
  height: 16px;
}
.account__chevron {
  transition: transform 0.3s var(--ease);
}
.account[data-open="true"] .account__chevron {
  transform: rotate(180deg);
}
.account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  padding: 10px;
  border-radius: 22px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.25s ease, transform 0.3s var(--ease), visibility 0.25s;
}
.account[data-open="true"] .account__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.account__item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 14px;
  transition: background-color 0.2s ease;
}
.account__item:hover {
  background: var(--paper);
}
.account__item-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.account__item:hover .account__item-ico {
  background: var(--yellow);
}
.account__item-ico svg {
  width: 18px;
  height: 18px;
}
.account__item-title {
  font-weight: 600;
  font-size: 14.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.account__item-desc {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 2px;
}
.account__divider {
  height: 1px;
  background: var(--line-soft);
  margin: 8px 12px;
}
.account__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 4px;
  font-size: 13px;
  color: var(--muted);
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.burger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}
body.drawer-open .burger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
body.drawer-open .burger span:nth-child(2) {
  opacity: 0;
}
body.drawer-open .burger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ---------- Drawer ---------- */
.drawer {
  position: fixed;
  inset: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  background: var(--paper);
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) calc(env(safe-area-inset-bottom) + 18px);
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.45s var(--ease), visibility 0.3s;
}
body.drawer-open .drawer {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.drawer__head img {
  width: 140px;
}
.drawer__intro {
  align-self: end;
  padding-bottom: clamp(20px, 5vh, 44px);
}
.drawer__intro-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(26px, 8.4vw, 38px);
  line-height: 0.94;
  letter-spacing: -0.025em;
}
.drawer__intro-title .accent {
  color: var(--ink);
  background: var(--yellow);
  padding: 0 0.06em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.drawer__intro-note {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.drawer__nav {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding-bottom: clamp(18px, 4vh, 34px);
}
.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 7vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.drawer__link svg {
  width: 22px;
  height: 22px;
  color: var(--muted-2);
}
.drawer__foot {
  display: grid;
  gap: 12px;
}
.drawer__foot .btn {
  width: 100%;
}
.drawer__meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
}

/* ---------- Mobile tab bar ---------- */
.tabbar {
  display: none;
}

@media (max-width: 1080px) {
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .header__actions .account {
    display: none;
  }
  .header__actions .btn--cta-desktop {
    display: none;
  }
  .header__actions .btn--add-tour {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }
  .header__actions {
    gap: 8px;
  }
  .header__actions .icon-btn--search {
    display: none;
  }
  .logo img {
    width: 128px;
  }

  .tabbar {
    display: grid;
    /* minmax(0,1fr) вместо 1fr: иначе треки растягиваются по ширине подписи
       и последний пункт уезжает за экран на 360 px */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: var(--z-nav);
    padding: 8px 8px calc(env(safe-area-inset-bottom) + 8px);
    background: rgba(255, 254, 251, 0.9);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-top: 1px solid var(--line-soft);
    transition: transform 0.4s var(--ease);
  }
  body.drawer-open .tabbar,
  body.search-open .tabbar {
    transform: translateY(110%);
  }
  .tabbar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    padding: 6px 0;
    border-radius: 14px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s ease;
  }
  .tabbar__label {
    display: block;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
    text-align: center;
  }
  .tabbar__item svg {
    width: 23px;
    height: 23px;
  }
  .tabbar__item.is-active {
    color: var(--ink);
  }
  .tabbar__item.is-active svg {
    stroke-width: 2;
  }
  .tabbar__item.is-active .tabbar__ico {
    background: var(--yellow);
  }
  .tabbar__ico {
    display: grid;
    place-items: center;
    width: 44px;
    height: 30px;
    border-radius: 999px;
    transition: background-color 0.25s ease;
  }
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
}

/* ===== 03-hero.css ===== */
/* ============================================================
   Hero: search console + photo triptych + price ticker
   ============================================================ */

.hero {
  position: relative;
  padding-top: clamp(10px, 1.6vw, 18px);
  padding-bottom: clamp(24px, 3vw, 40px);
}

.hero__frame {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(14px, 1.6vw, 22px);
  align-items: stretch;
}

/* ---------- dark console panel ---------- */
.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 1.6vw, 22px);
  padding: clamp(24px, 2.8vw, 38px);
  border-radius: var(--r-2xl);
  background: radial-gradient(120% 90% at 85% 0%, #33332f 0%, #252525 46%, #1f1f1e 100%);
  color: var(--white);
  overflow: hidden;
  box-shadow: var(--shadow-l);
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 70%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 225, 68, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 0;
}
.hero__panel > * {
  position: relative;
  z-index: 1;
}

.hero__route {
  position: absolute;
  right: -30px;
  bottom: 96px;
  width: 330px;
  height: 200px;
  color: var(--yellow);
  opacity: 0.16;
  z-index: 0;
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  height: 30px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hero__eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 0 rgba(255, 225, 68, 0.6);
  animation: pulse 2.6s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 225, 68, 0.55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 225, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 225, 68, 0); }
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(33px, 4.05vw, 60px);
  line-height: 0.92;
  letter-spacing: -0.032em;
  margin-top: -2px;
}
.hero__title > span {
  display: block;
  white-space: nowrap;
}
.hero__title .accent {
  display: inline;
  color: var(--yellow);
}
.hero__lead {
  margin-top: 2px;
  max-width: 44ch;
  font-size: clamp(14.5px, 1.05vw, 16.5px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.66);
}

/* ---------- search console ---------- */
.search {
  margin-top: auto;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.search__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.field {
  position: relative;
  min-width: 0;
}
.field__btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  text-align: left;
  transition: background-color 0.22s ease, border-color 0.22s ease;
}
.field__btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.14);
}
.field__btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}
.field__label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.field__value {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.field__value svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 255, 255, 0.4);
  margin-left: auto;
  flex-shrink: 0;
}

.search__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 56px;
  margin-top: 2px;
  border-radius: 16px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background-color 0.25s ease, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.search__submit:hover {
  background: #ffd91f;
  box-shadow: 0 18px 30px -18px rgba(255, 225, 68, 0.9);
}
.search__submit:active {
  transform: scale(0.994);
}
.search__submit svg {
  width: 18px;
  height: 18px;
}

.search__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.search__quick .chip {
  height: 32px;
  padding: 0 13px;
  font-size: 12.5px;
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.76);
}
.search__quick .chip:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

/* search toggle for mobile sheet */
.search__sheet-head,
.search__close {
  display: none;
}

/* ---------- popovers ---------- */
.popover {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  width: max(100%, 280px);
  padding: 8px;
  border-radius: 18px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-l);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top left;
  transition: opacity 0.22s ease, transform 0.3s var(--ease), visibility 0.22s;
}
.field[data-open="true"] .popover {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.popover__title {
  padding: 8px 10px 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.popover__list {
  display: grid;
  gap: 2px;
  max-height: 280px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.popover__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  text-align: left;
  font-size: 14px;
  transition: background-color 0.18s ease;
}
.popover__option:hover {
  background: var(--paper);
}
.popover__option .flag {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--paper-3);
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-3);
}
.popover__option small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}
.popover__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 6px 8px;
}
.popover__chips .chip {
  height: 34px;
  font-size: 13px;
}
.popover__chips .chip.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
}
.stepper__label {
  font-size: 14px;
  font-weight: 500;
}
.stepper__label small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 400;
}
.stepper__controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.stepper__btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.stepper__btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.stepper__btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.stepper__btn svg {
  width: 15px;
  height: 15px;
}
.stepper__value {
  min-width: 22px;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ---------- hero meta ---------- */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.58);
}
.hero__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__meta-item svg {
  width: 15px;
  height: 15px;
  color: rgba(255, 225, 68, 0.9);
}
.hero__meta b {
  color: var(--white);
  font-weight: 600;
}

/* ---------- media mosaic ---------- */
.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.32fr 1fr;
  gap: clamp(8px, 0.9vw, 14px);
  min-height: 0;
}

.hcard {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--paper-3);
  isolation: isolate;
  color: var(--white);
}
.hcard--main {
  grid-column: 1 / -1;
  grid-row: 1;
}
.hcard--a {
  grid-column: 1;
  grid-row: 2;
}
.hcard--b {
  grid-column: 2;
  grid-row: 2;
}
.hcard img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.hcard:hover img {
  transform: scale(1.05);
}
.hcard::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 11, 0.35) 0%, rgba(12, 12, 11, 0) 32%, rgba(12, 12, 11, 0) 46%, rgba(12, 12, 11, 0.72) 100%);
  pointer-events: none;
}
.hcard__top {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.hcard__bottom {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hcard__place {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(16px, 1.5vw, 22px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hcard__meta {
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}
.hcard__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: -0.01em;
}
.hcard__price span {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.hcard--a .hcard__bottom,
.hcard--b .hcard__bottom {
  left: 13px;
  right: 13px;
  bottom: 12px;
}
.hcard--a .hcard__place,
.hcard--b .hcard__place {
  font-size: clamp(13px, 1.1vw, 16px);
}
.hcard--a .hcard__price,
.hcard--b .hcard__price {
  font-size: 15px;
  margin-top: 2px;
}

/* favourite button on photo */
.fav {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--white);
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.fav:hover {
  background: var(--white);
  color: var(--ink);
  transform: scale(1.06);
}
.fav svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s var(--ease-out);
}
.fav.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.fav.is-active svg {
  fill: currentColor;
  animation: heart-pop 0.45s var(--ease-out);
}
@keyframes heart-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}

/* ---------- ticker ---------- */
.ticker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: clamp(14px, 1.6vw, 20px);
  padding: 12px 18px;
  border-radius: 18px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.ticker__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 18px;
  border-right: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.ticker__label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f9d55;
  animation: pulse-green 2.6s infinite;
}
@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(31, 157, 85, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 157, 85, 0); }
}
.ticker__viewport {
  position: relative;
  overflow: hidden;
  flex: 1;
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 48px), transparent);
}
.ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: marquee 46s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 22px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--ink-2);
}
.ticker__item + .ticker__item {
  border-left: 1px solid var(--line);
}
.ticker__item b {
  font-weight: 600;
}
.ticker__item .up {
  color: #b23b2e;
  font-weight: 600;
}
.ticker__item .down {
  color: #1f7a4d;
  font-weight: 600;
}
.ticker__price {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

/* ===== 04-tours-dest.css ===== */
/* ============================================================
   Deals feed (tours)
   ============================================================ */

.tours {
  padding-top: clamp(30px, 4vw, 56px);
}

.tours__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tours__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px);
}

.tcard {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease),
    border-color 0.3s ease, opacity 0.3s ease;
}
.tcard:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: var(--line);
}
.tcard.is-hidden {
  display: none;
}

.tcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-3);
}
.tcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
/* обложка карточки — ссылка: клик по изображению открывает тур */
.tcard__cover {
  position: absolute;
  inset: 0;
  display: block;
}
.tcard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tcard:hover .tcard__media img {
  transform: scale(1.055);
}
.tcard__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 11, 0.22) 0%, rgba(12, 12, 11, 0) 34%);
  pointer-events: none;
}
.tcard__badges {
  position: absolute;
  top: 11px;
  left: 11px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: calc(100% - 60px);
}
.tcard__fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.tcard__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 15px 15px;
  flex: 1;
}
.tcard__geo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tcard__geo svg {
  width: 12px;
  height: 12px;
}
.tcard__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tcard__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}
.tcard__rating b {
  color: var(--ink);
  font-weight: 700;
}
.tcard__rating .star {
  width: 12px;
  height: 12px;
  color: var(--yellow-deep);
  fill: currentColor;
  stroke: none;
}
.tcard__rating .reviews {
  color: var(--muted-2);
}
.tcard__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--muted);
}
.tcard__meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line);
}
.tcard__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}
.tcard__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tcard__price .price__value {
  font-size: 19px;
}
.tcard__price .row {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.tcard__cta {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.35s var(--ease);
}
.tcard__cta svg {
  width: 16px;
  height: 16px;
}
.tcard:hover .tcard__cta {
  background: var(--yellow);
  color: var(--ink);
  transform: translateX(2px);
}

.tours__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(22px, 2.6vw, 34px);
}

/* ============================================================
   Destinations (dark explorer)
   ============================================================ */

.dest {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(56px, 7vw, 104px);
  isolation: isolate;
}
.dest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(90% 70% at 20% 10%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(90% 70% at 20% 10%, #000 0%, transparent 72%);
  opacity: 0.5;
  z-index: -1;
}
.dest__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.dest__head {
  margin-bottom: clamp(20px, 2.4vw, 30px);
}
.dest__head .h2 {
  margin-top: 14px;
}
.dest__head .lead {
  margin-top: 16px;
}

.dlist {
  display: grid;
  gap: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.dlist__row {
  display: grid;
  grid-template-columns: 1fr auto 64px 20px;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 15px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  text-align: left;
  color: rgba(255, 255, 255, 0.78);
  transition: background-color 0.28s ease, color 0.28s ease, padding 0.35s var(--ease);
}
.dlist__row:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}
.dlist__row.is-active {
  background: var(--yellow);
  color: var(--ink);
  border-color: transparent;
  padding-inline: 18px;
}
.dlist__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 1.5vw, 21px);
  letter-spacing: -0.015em;
  line-height: 1;
}
.dlist__price {
  font-size: 12.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  opacity: 0.86;
}
.dlist__trend {
  justify-self: end;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #7fd6a5;
  white-space: nowrap;
}
.dlist__row.is-active .dlist__trend {
  background: rgba(37, 37, 37, 0.12);
  color: #14603a;
}
.dlist__arrow {
  width: 16px;
  height: 16px;
  opacity: 0.5;
}
.dlist__row.is-active .dlist__arrow {
  opacity: 1;
}

/* right visual */
.dest__stage {
  position: sticky;
  top: 100px;
}
.dstage {
  position: relative;
  border-radius: var(--r-2xl);
  overflow: hidden;
  background: #1b1b1a;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, 0.9);
}
.dstage__media {
  position: relative;
  aspect-ratio: 16 / 12;
}
.dstage__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.7s ease, transform 1.4s var(--ease-out);
}
.dstage__media img.is-active {
  opacity: 1;
  transform: none;
}
.dstage__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.5) 0%, rgba(10, 10, 9, 0.02) 20%, rgba(10, 10, 9, 0.22) 36%, rgba(10, 10, 9, 0.78) 56%, rgba(10, 10, 9, 0.97) 100%);
}
.dstage__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.dstage__counter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(20, 20, 19, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 11.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
}
.dstage__counter b {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.dstage__content {
  position: absolute;
  left: clamp(18px, 2vw, 30px);
  right: clamp(18px, 2vw, 30px);
  bottom: clamp(18px, 2vw, 28px);
  z-index: 2;
  color: var(--white);
}
.dstage__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 8px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}
.dstage__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(30px, 3.4vw, 52px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  hyphens: auto;
}
.dstage__desc {
  margin-top: 10px;
  max-width: 44ch;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}
.dstage__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.dfact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  min-width: 92px;
}
.dfact small {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.dfact b {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.dstage__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
}
.dstage__price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.dstage__price .price__from {
  color: rgba(255, 255, 255, 0.55);
}
.dstage__price .price__value {
  font-size: 24px;
  color: var(--white);
}
.dstage__actions .btn--accent {
  margin-left: auto;
}

.dest__footnote {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
}
.dest__footnote svg {
  width: 14px;
  height: 14px;
}

/* ===== 05-radar-coll.css ===== */
/* ============================================================
   Price radar
   ============================================================ */

.radar {
  background: var(--paper-2);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.radar__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.radar__text .h2 {
  margin-top: 14px;
}
.radar__text .lead {
  margin-top: 16px;
}
.radar__best {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.best-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.3s var(--ease);
}
.best-row:hover {
  border-color: var(--line);
  transform: translateX(3px);
}
.best-row__month {
  font-size: 13px;
  font-weight: 600;
  min-width: 88px;
}
.best-row__bar {
  position: relative;
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: var(--paper-3);
  overflow: hidden;
}
.best-row__bar span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: 999px;
  background: var(--ink);
  transform-origin: left;
  animation: bar-grow 1.2s var(--ease-out) both;
}
.best-row:first-child .best-row__bar span {
  background: var(--yellow);
}
@keyframes bar-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.best-row__price {
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.radar__card {
  position: relative;
  padding: clamp(16px, 2vw, 28px);
  border-radius: var(--r-xl);
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-s);
}
.radar__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.radar__title {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.radar__title span {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 2px;
}
.radar__switch {
  display: flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.radar__switch button {
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.25s ease, color 0.25s ease;
}
.radar__switch button.is-active {
  background: var(--ink);
  color: var(--white);
}

.chart {
  position: relative;
  margin-top: 10px;
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}
.chart__grid line {
  stroke: var(--line-soft);
  stroke-width: 1;
  stroke-dasharray: 2 5;
}
.chart__area {
  fill: url(#radarFill);
}
.chart__line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s var(--ease-out);
}
.radar.is-in .chart__line {
  stroke-dashoffset: 0;
}
.chart__dot {
  fill: var(--white);
  stroke: var(--ink);
  stroke-width: 2;
  transition: r 0.25s var(--ease), fill 0.25s ease, stroke 0.25s ease;
}
.chart__dot.is-best {
  fill: var(--yellow);
  stroke: var(--yellow-deep);
}
.chart__dot.is-active {
  r: 6.5;
  fill: var(--ink);
  stroke: var(--white);
  stroke-width: 2.5;
}
.chart__labels text {
  font-family: var(--font-body);
  font-size: 10.5px;
  fill: var(--muted-2);
  letter-spacing: 0.02em;
}
.chart__labels text.is-best {
  fill: var(--ink);
  font-weight: 600;
}
.chart__ylabels text {
  font-family: var(--font-body);
  font-size: 10px;
  fill: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.chart__hover-line {
  stroke: var(--ink);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.chart__hit {
  fill: transparent;
  cursor: pointer;
}
.chart__tip {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 11px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -120%);
  transition: opacity 0.18s ease;
  box-shadow: var(--shadow-m);
}
.chart__tip.is-visible {
  opacity: 1;
}
.chart__tip b {
  font-size: 13px;
}
.chart__tip span {
  color: rgba(255, 255, 255, 0.6);
}

.radar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
  font-size: 11.5px;
  color: var(--muted);
}
.radar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.radar__legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink);
}
.radar__legend i.y {
  background: var(--yellow);
}
.radar__legend i.g {
  background: var(--line);
}

.radar__more {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.3s var(--ease);
}
.radar__more:hover {
  background: var(--white);
  border-color: var(--line);
  transform: translateY(-1px);
}
.radar__more-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.radar__more-text b {
  font-size: 14px;
  font-weight: 600;
}
.radar__more-text small {
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.radar__more-ico {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.3s var(--ease);
}
.radar__more:hover .radar__more-ico {
  background: var(--yellow);
  color: var(--ink);
  transform: translateX(2px);
}

/* ============================================================
   Collections
   ============================================================ */

.coll__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}
.coll-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: var(--paper-3);
}
.coll-card:nth-child(2) {
  margin-top: clamp(0px, 3vw, 40px);
}
.coll-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.coll-card:hover img {
  transform: scale(1.06);
}
.coll-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 12, 11, 0.34) 0%, rgba(12, 12, 11, 0) 40%, rgba(12, 12, 11, 0.78) 100%);
  pointer-events: none;
}
.coll-card__top {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.coll-card__bottom {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}
.coll-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 0.94;
  letter-spacing: -0.02em;
}
.coll-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.75);
}
.coll-card__arrow {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.4s var(--ease);
}
.coll-card__arrow svg {
  width: 16px;
  height: 16px;
}
.coll-card:hover .coll-card__arrow {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
  transform: rotate(-45deg);
}

/* ===== 06-stats-steps.css ===== */
/* ============================================================
   Stats band + how it works
   ============================================================ */

.stats {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(44px, 5.4vw, 76px);
}
.stats::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -40%;
  width: 60%;
  aspect-ratio: 2;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 225, 68, 0.14), transparent 70%);
  pointer-events: none;
}
.stats__grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.stat {
  padding-left: clamp(14px, 1.6vw, 26px);
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}
.stat:first-child {
  padding-left: 0;
  border-left: 0;
}
.stat__value {
  display: flex;
  align-items: baseline;
  gap: 2px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 0.86;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat__value small {
  font-size: 0.4em;
  letter-spacing: 0;
  line-height: 1;
  color: var(--yellow);
  align-self: flex-start;
  margin-top: 0.1em;
}
.stat__label {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.58);
  max-width: 20ch;
}

/* ============================================================
   Steps
   ============================================================ */

.steps__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 36px);
}
.step {
  position: relative;
  padding-top: 24px;
  border-top: 1px dashed var(--line);
}
.step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.step__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
}
.step__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.step__ico svg {
  width: 19px;
  height: 19px;
}
.step h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  font-family: var(--font-body);
  text-transform: none;
}
.step p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34ch;
}
.step__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.step__link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.step__link:hover svg {
  transform: translateX(3px);
}

/* ===== 07-reviews-faq.css ===== */
/* ============================================================
   Reviews + FAQ
   ============================================================ */

.reviews__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.reviews__head .h2 {
  margin-top: 14px;
}
.reviews__note {
  max-width: 36ch;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  padding-bottom: 6px;
}
.stars {
  display: inline-flex;
  gap: 2px;
  color: var(--yellow-deep);
}
.stars svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  stroke: none;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
.review {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(18px, 2vw, 26px);
  border-radius: var(--r-lg);
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-s);
}
.review__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.review__text::before {
  content: "«";
}
.review__text::after {
  content: "»";
}
.review__foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 6px;
}
.avatar {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--paper-3);
  border: 1px solid var(--line-soft);
}
.avatar--y {
  background: var(--yellow);
  color: var(--ink);
}
.review__author {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.review__author b {
  font-size: 13.5px;
  font-weight: 600;
}
.review__author span {
  font-size: 11.5px;
  color: var(--muted);
}
.review__tag {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 5px 9px;
  border-radius: 7px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- FAQ ---------- */
.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.faq__aside {
  position: sticky;
  top: 104px;
}
.faq__aside .h2 {
  margin-top: 14px;
}
.faq__aside .lead {
  margin-top: 16px;
}
.faq__support {
  margin-top: 26px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--white);
}
.faq__support h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.faq__support p {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.5;
}
.faq__support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.faq__support-actions .btn {
  min-height: 40px;
  font-size: 13px;
  padding: 0 16px;
}

.faq__list {
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  padding: 20px 0;
  text-align: left;
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 600;
  letter-spacing: -0.012em;
  transition: color 0.2s ease;
}
.faq__q:hover {
  color: var(--ink-3);
}
.faq__ico {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.35s var(--ease);
}
.faq__ico svg {
  width: 15px;
  height: 15px;
  transition: transform 0.35s var(--ease);
}
.faq__item.is-open .faq__ico {
  background: var(--yellow);
  border-color: var(--yellow);
}
.faq__item.is-open .faq__ico svg {
  transform: rotate(180deg);
}
.faq__a {
  overflow: hidden;
  height: 0;
  transition: height 0.4s var(--ease);
}
.faq__a-inner {
  padding: 0 40px 22px 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 62ch;
}

/* ===== 08-cta-footer.css ===== */
/* ============================================================
   Final CTA (budget picker) + footer
   ============================================================ */

.budget {
  padding-block: clamp(20px, 3vw, 44px) clamp(40px, 5vw, 72px);
}
.budget__panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding: clamp(26px, 3.4vw, 54px);
  border-radius: var(--r-2xl);
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.budget__panel::before {
  content: "";
  position: absolute;
  right: -8%;
  top: -40%;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.55), transparent 62%);
  pointer-events: none;
}
.budget__panel .eyebrow {
  color: rgba(37, 37, 37, 0.62);
}
.budget__panel .h2 {
  margin-top: 14px;
  max-width: 15ch;
}
.budget__panel p {
  margin-top: 16px;
  max-width: 40ch;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(37, 37, 37, 0.72);
}
.budget__route {
  position: absolute;
  left: 34%;
  bottom: -20px;
  width: 260px;
  color: rgba(37, 37, 37, 0.16);
  pointer-events: none;
}

.budget__control {
  position: relative;
  padding: clamp(18px, 2.2vw, 28px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(37, 37, 37, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.budget__amount {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.budget__amount span {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(37, 37, 37, 0.55);
}
.budget__amount b {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.budget__amount span:last-child {
  font-size: 16px;
  letter-spacing: 0;
  color: var(--ink);
  align-self: flex-end;
  margin-bottom: 0.3em;
}
.budget__range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  margin: 18px 0 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--ink) 0%,
    var(--ink) var(--p, 50%),
    rgba(37, 37, 37, 0.16) var(--p, 50%),
    rgba(37, 37, 37, 0.16) 100%
  );
  cursor: grab;
}
.budget__range:active {
  cursor: grabbing;
}
.budget__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--yellow);
  border: 5px solid var(--ink);
  box-shadow: 0 0 0 1px rgba(37, 37, 37, 0.15), 0 6px 14px rgba(37, 37, 37, 0.25);
  transition: transform 0.2s var(--ease);
}
.budget__range::-webkit-slider-thumb:hover {
  transform: scale(1.08);
}
.budget__range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--yellow);
  border: 5px solid var(--ink);
}
.budget__scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: rgba(37, 37, 37, 0.55);
  font-variant-numeric: tabular-nums;
}
.budget__result {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
.budget__result svg {
  width: 16px;
  height: 16px;
}
.budget__result span {
  color: rgba(37, 37, 37, 0.6);
  font-weight: 400;
}
.budget__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.budget__chips .chip {
  height: 30px;
  padding: 0 11px;
  font-size: 11.5px;
  border-color: rgba(37, 37, 37, 0.16);
  color: rgba(37, 37, 37, 0.75);
}
.budget__chips .chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.budget__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
}
.budget__actions .btn {
  flex: 1;
  min-width: 180px;
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(40px, 5vw, 68px);
  overflow: hidden;
}
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 40px);
  padding-bottom: clamp(30px, 4vw, 52px);
}
.footer__brand img {
  width: 178px;
}
.footer__note {
  margin-top: 18px;
  max-width: 30ch;
  font-size: 13.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
}
.footer__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}
.footer__phone:hover {
  color: var(--yellow);
}
.footer__phone svg {
  width: 16px;
  height: 16px;
  color: var(--yellow);
}
.footer__mail {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.6);
}
.footer__mail:hover {
  color: var(--white);
}
.footer__col h4 {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 14px;
}
.footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s ease, transform 0.25s var(--ease);
}
.footer__col a:hover {
  color: var(--yellow);
  transform: translateX(2px);
}
.footer__socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.8);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.footer__socials a:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.footer__socials svg {
  width: 17px;
  height: 17px;
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}
.footer__wordmark {
  margin-top: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(40px, 10.3vw, 164px);
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  user-select: none;
  pointer-events: none;
  margin-bottom: -0.14em;
}

/* ===== 09-responsive.css ===== */
/* ============================================================
   Responsive
   ============================================================ */

/* ---------- короткие экраны ноутбуков ---------- */
@media (min-width: 1081px) and (max-height: 800px) {
  .hero__panel {
    padding-block: 26px;
    gap: 15px;
  }
  .hero__title {
    font-size: clamp(34px, 3.65vw, 50px);
  }
  .hero__lead {
    font-size: 15px;
  }
  .search__quick {
    display: none;
  }
  .hero__meta {
    padding-top: 12px;
    font-size: 11.5px;
  }
  .hero__media {
    max-height: 660px;
  }
}

/* ---------- ≤ 1180 ---------- */
@media (max-width: 1180px) {
  .hero__title {
    font-size: clamp(34px, 4.1vw, 56px);
  }
  .tours__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    row-gap: 32px;
  }
}

/* ---------- ≤ 1080 ---------- */
@media (max-width: 1080px) {
  .hero__frame {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .hero__panel {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 14px 32px;
    align-items: start;
  }
  .hero__eyebrow {
    grid-column: 1;
    grid-row: 1;
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }
  .hero__eyebrow-more {
    display: none;
  }
  .hero__title {
    grid-column: 1;
    grid-row: 2;
    font-size: clamp(30px, 4.2vw, 44px);
  }
  .hero__lead {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
  }
  .hero__meta {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 6px;
  }
  .search {
    grid-column: 2;
    grid-row: 1 / 4;
    margin-top: 0;
    align-self: start;
  }
  .hero__route {
    display: none;
  }
  .hero__media {
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 300px;
    min-height: 0;
  }
  .hcard--main,
  .hcard--a,
  .hcard--b {
    grid-row: auto;
    grid-column: auto;
  }
  .dest__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .dest__stage {
    position: static;
  }
  .dlist {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
    gap: 0 18px;
  }
  .acc__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .acc-card {
    min-height: 0;
  }
  .faq__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq__aside {
    position: static;
  }
  .faq__support {
    max-width: 520px;
  }
}

/* ---------- ≤ 980 ---------- */
@media (max-width: 980px) {
  .radar__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .radar__text {
    max-width: 620px;
  }
  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .budget__panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .budget__panel .h2 {
    max-width: 22ch;
  }
  .budget__route {
    display: none;
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- ≤ 860 ---------- */
@media (max-width: 860px) {
  .acc__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .tours__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .steps__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .step {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 18px;
    padding: 20px 0 20px 20px;
    border-top: 0;
    border-left: 1px dashed var(--line);
  }
  .step__head {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-content: flex-start;
    gap: 14px;
  }
  .step h3 {
    grid-column: 1;
    margin: 8px 0 4px;
  }
  .step p {
    grid-column: 1;
    max-width: 46ch;
  }
  .step__link {
    grid-column: 1;
    margin-top: 10px;
  }
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 16px;
  }
  .stat:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }
  .coll__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coll-card:nth-child(2) {
    margin-top: 0;
  }
  .coll-card:nth-child(3) {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
  }
}

/* ---------- ≤ 760 (mobile app mode) ---------- */
@media (max-width: 760px) {
  :root {
    --gutter: 16px;
    --r-2xl: 26px;
    --r-xl: 20px;
    --r-lg: 18px;
  }

  .section {
    padding-block: 44px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
  }
  .sec-head__aside {
    padding-bottom: 0;
    width: 100%;
  }
  .h2 {
    font-size: clamp(26px, 8.4vw, 36px);
  }

  /* hero */
  .hero {
    padding-top: 4px;
  }
  .hero__panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px 16px 16px;
    border-radius: 24px;
  }
  .hero__eyebrow,
  .hero__title,
  .hero__lead,
  .hero__meta,
  .search {
    grid-column: auto;
    grid-row: auto;
  }
  .hero__route {
    display: none;
  }
  .hero__title {
    font-size: clamp(31px, 9.8vw, 42px);
    line-height: 0.92;
  }
  .hero__lead {
    font-size: 13.5px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero__meta {
    display: none;
  }
  .hero__eyebrow {
    font-size: 9.5px;
    height: 26px;
  }
  .hero__panel .search-trigger {
    display: flex;
  }
  .search {
    display: none;
  }

  .hero__media {
    display: flex;
    grid-template-columns: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .hero__media::-webkit-scrollbar {
    display: none;
  }
  .hcard {
    flex: 0 0 76%;
    height: 340px;
    scroll-snap-align: start;
    border-radius: 20px;
  }
  .hcard--main {
    flex-basis: 84%;
  }
  .hcard__place {
    font-size: 19px;
  }
  .hcard--a .hcard__place,
  .hcard--b .hcard__place {
    font-size: 17px;
  }

  /* ticker */
  .ticker {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px 14px;
  }
  .ticker__label {
    border-right: 0;
    padding-right: 0;
  }
  .ticker__item {
    padding: 0 16px;
    font-size: 12px;
  }

  /* tours */
  .tours__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 2px;
    scrollbar-width: none;
  }
  .tours__filters::-webkit-scrollbar {
    display: none;
  }
  .tours__grid {
    gap: 10px;
  }
  .tcard {
    border-radius: 16px;
  }
  .tcard__body {
    padding: 10px 10px 12px;
    gap: 5px;
  }
  .tcard__title {
    font-size: 13px;
  }
  .tcard__geo {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .tcard__meta {
    font-size: 11px;
  }
  .tcard__rating {
    font-size: 11px;
  }
  .tcard__price .price__value {
    font-size: 16px;
  }
  .tcard__price .price__old {
    font-size: 11px;
  }
  .tcard__cta {
    width: 32px;
    height: 32px;
  }
  .tcard__cta svg {
    width: 14px;
    height: 14px;
  }
  .tcard__fav {
    top: 8px;
    right: 8px;
  }
  .tcard__badges {
    top: 8px;
    left: 8px;
  }
  .fav {
    width: 32px;
    height: 32px;
  }
  .fav svg {
    width: 15px;
    height: 15px;
  }
  .badge {
    height: 22px;
    font-size: 10px;
    padding: 0 8px;
  }

  /* destinations */
  .dlist {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 6px;
    scrollbar-width: none;
    border-top: 0;
  }
  .dlist::-webkit-scrollbar {
    display: none;
  }
  .dlist__row {
    grid-template-columns: auto;
    gap: 0;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    white-space: nowrap;
  }
  .dlist__row.is-active {
    padding-inline: 14px;
  }
  .dlist__price,
  .dlist__trend,
  .dlist__arrow {
    display: none;
  }
  .dlist__name {
    font-size: 14px;
  }
  .dstage__media {
    aspect-ratio: 4 / 3;
  }
  .dstage__media::after {
    background: linear-gradient(180deg, rgba(10, 10, 9, 0.34) 0%, rgba(10, 10, 9, 0) 58%, rgba(10, 10, 9, 0.45) 100%);
  }
  .dstage__content {
    position: static;
    padding: 18px 16px 16px;
  }
  .dstage__title {
    font-size: clamp(23px, 7.2vw, 33px);
  }
  .dstage__desc {
    margin-top: 8px;
    font-size: 13.5px;
  }
  .dstage__facts {
    gap: 6px;
    margin-top: 14px;
  }
  .dfact {
    padding: 7px 9px;
    min-width: 0;
    flex: 1 1 0;
  }
  .dfact b {
    font-size: 11.5px;
    white-space: normal;
    line-height: 1.25;
  }
  .dstage__actions {
    gap: 10px;
  }
  .dstage__actions .btn {
    flex: 1;
  }

  /* radar */
  .radar__card {
    padding: 16px 14px 12px;
  }
  .radar__card-head {
    gap: 8px;
  }
  .radar__switch button {
    padding: 0 9px;
    font-size: 11px;
  }
  .chart__labels text:nth-child(even) {
    display: none;
  }
  .chart__labels text,
  .chart__ylabels text {
    font-size: 20px;
  }
  .chart__line {
    stroke-width: 4;
  }
  .chart__dot {
    r: 7;
    stroke-width: 3.5;
  }
  .chart__dot.is-active {
    r: 10;
  }
  .best-row__month {
    min-width: 74px;
    font-size: 12px;
  }

  /* collections */
  .coll__grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .coll__grid::-webkit-scrollbar {
    display: none;
  }
  .coll-card {
    flex: 0 0 78%;
    aspect-ratio: 3 / 4;
    scroll-snap-align: start;
  }
  .coll-card:nth-child(3) {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }

  /* account */
  .acc-card__ui {
    padding-top: 20px;
  }
  .mini-chat {
    right: 0;
    bottom: -8px;
  }

  /* reviews */
  .reviews__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .reviews__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  /* faq */
  .faq__q {
    padding: 16px 0;
    font-size: 15px;
    gap: 14px;
  }
  .faq__a-inner {
    padding-right: 0;
    font-size: 13.5px;
  }

  /* budget */
  .budget {
    padding-block: 8px 36px;
  }
  .budget__panel {
    padding: 22px 18px;
    border-radius: 26px;
  }
  .budget__control {
    padding: 16px 14px;
  }
  .budget__actions .btn {
    min-width: 0;
  }

  .budget__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .budget__actions .btn {
    width: 100%;
  }

  /* footer */
  .footer {
    padding-top: 36px;
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .footer__wordmark {
    font-size: 10.6vw;
    letter-spacing: -0.045em;
    -webkit-text-stroke-width: 1px;
  }
}

/* ---------- ≤ 520 ---------- */
@media (max-width: 520px) {
  .hero__title {
    font-size: clamp(29px, 9.4vw, 38px);
  }
  .tcard__price .price__old {
    display: none;
  }
  .tcard__price .price__value {
    font-size: 15px;
  }
  .tcard__price .price__from {
    font-size: 9px;
    letter-spacing: 0.08em;
  }
  .tcard__foot {
    align-items: center;
  }
  .tours__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat__value {
    font-size: clamp(34px, 10vw, 48px);
  }
  .budget__amount b {
    font-size: 30px;
  }
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 16px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

/* ---------- mobile search sheet ---------- */
.search-trigger {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 0 7px 0 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-align: left;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.search-trigger:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}
.search-trigger__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.search-trigger__text b {
  font-size: 14px;
  font-weight: 600;
}
.search-trigger__text span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-trigger__go {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  flex-shrink: 0;
}
.search-trigger__go svg {
  width: 18px;
  height: 18px;
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 89;
  background: rgba(18, 18, 17, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}
body.search-open .sheet-backdrop {
  opacity: 1;
  visibility: visible;
}
body.search-open .hero {
  z-index: 70;
}

@media (max-width: 760px) {
  body.search-open .search {
    display: flex;
    flex-direction: column;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 95;
    max-height: 92dvh;
    overflow-y: auto;
    margin: 0;
    padding: 10px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #202020;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -30px 70px rgba(0, 0, 0, 0.5);
    transform: translateY(102%);
    transition: transform 0.45s var(--ease);
    gap: 10px;
    animation: none;
  }
  body.search-open .search {
    transform: translateY(0);
  }
  .search__sheet-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 4px 8px;
  }
  .search__sheet-title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.8);
  }
  .search__close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
  }
  .search__close svg {
    width: 16px;
    height: 16px;
  }
  .search__fields {
    grid-template-columns: minmax(0, 1fr);
  }
  .search__submit {
    height: 54px;
  }
  .search__quick {
    padding-bottom: 4px;
  }
  .popover {
    left: 0;
    right: 0;
    width: auto;
  }
}

/* ===== 10-extras.css ===== */
/* ============================================================
   Extras: toast, anchor offsets, misc states
   ============================================================ */

section[id],
div[id="main"] {
  scroll-margin-top: 92px;
}

@media (max-width: 760px) {
  section[id] {
    scroll-margin-top: 74px;
  }
}

/* toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 520px);
  padding: 13px 20px 13px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-size: 13.5px;
  font-weight: 500;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.5s var(--ease-out), opacity 0.4s ease;
  pointer-events: none;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}
.toast svg {
  width: 17px;
  height: 17px;
  color: var(--yellow);
  flex-shrink: 0;
}

@media (max-width: 760px) {
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
    font-size: 12.5px;
    padding: 12px 16px;
    max-width: 88vw;
  }
}

/* icon sizing overrides (kept after .icon defaults) */
.btn .btn__arrow {
  width: 18px;
  height: 18px;
}
.dlist__row .dlist__arrow {
  width: 16px;
  height: 16px;
}
.tcard__cta .icon,
.tcard__cta svg {
  width: 16px;
  height: 16px;
}

/* disabled / hidden chips */
.chip[style*="display: none"] {
  display: none !important;
}

/* keep the hero image crisp while lazy images decode */
img {
  content-visibility: auto;
}

/* hide scrollbars on mobile snap rows without losing keyboard access */
.hero__media,
.tours__filters,
.coll__grid,
.dlist {
  -webkit-overflow-scrolling: touch;
}

/* selection in dark blocks */
.dark ::selection,
.footer ::selection,
.hero__panel ::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* ===== 11-modal.css ===== */
/* ============================================================
   Request modal
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 17, 0.58);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal__dialog {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(24px, 2.6vw, 34px);
  border-radius: var(--r-2xl);
  background: var(--paper-2);
  box-shadow: var(--shadow-l);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.45s var(--ease-out);
}
.modal.is-open .modal__dialog {
  transform: none;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.modal__close:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.modal__close svg {
  width: 16px;
  height: 16px;
}
.modal__title {
  margin-top: 14px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 17ch;
}
.modal__sub {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 44ch;
}

.modal__form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}
.mfield {
  display: grid;
  gap: 6px;
}
.mfield__label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mfield__input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}
.mfield__input::placeholder {
  color: var(--muted-2);
}
.mfield__input:hover {
  border-color: var(--line);
  background: var(--white);
}
.mfield__input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(37, 37, 37, 0.08);
}
.mfield__input.is-invalid {
  border-color: #c4453a;
  background: #fff5f3;
}
select.mfield__input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23252525' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.mcheck {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
  cursor: pointer;
}
.mcheck input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--ink);
  cursor: pointer;
}
.mcheck input.is-invalid {
  outline: 2px solid #c4453a;
  outline-offset: 1px;
  border-radius: 4px;
}
.mform__error {
  margin: 0;
  font-size: 12.5px;
  color: #b23b2e;
}
.modal__note {
  margin: 2px 0 0;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted-2);
  text-align: center;
}

.modal__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0 2px;
}
.modal__success-ico {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  margin-bottom: 6px;
}
.modal__success-ico svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.2;
}
.modal__success-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.modal__success-text {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.modal__success .btn {
  margin-top: 12px;
  width: 100%;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .modal {
    padding: 0;
    align-items: end;
  }
  .modal__dialog {
    width: 100%;
    max-height: 92dvh;
    border-radius: 24px 24px 0 0;
    padding: 22px 18px calc(20px + env(safe-area-inset-bottom));
    transform: translateY(102%);
  }
  .modal.is-open .modal__dialog {
    transform: none;
  }
  .modal__close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }
  .modal__title {
    font-size: 26px;
    padding-right: 44px;
  }
  .mfield__input {
    height: 50px;
    font-size: 16px;
  }
}

/* ===== 12-inner.css ===== */
/* ============================================================
   Inner pages: page head, catalog, detail, dashboard, forms
   ============================================================ */

/* ---------- page head ---------- */
.page-head {
  padding-top: clamp(22px, 3vw, 40px);
  padding-bottom: clamp(18px, 2.4vw, 30px);
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--ink);
}
.crumbs .sep {
  opacity: 0.45;
}
.page-head__row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  hyphens: auto;
}
.page-head .lead {
  margin-top: 14px;
}
.page-head__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}

/* ---------- chips row / segmented ---------- */
.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 760px) {
  .chips-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding: 2px var(--gutter) 4px;
    scrollbar-width: none;
  }
  .chips-row::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.toolbar__count {
  font-size: 13.5px;
  color: var(--muted);
}
.toolbar__count b {
  color: var(--ink);
  font-weight: 600;
}
.toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.select {
  height: 42px;
  padding: 0 36px 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background-color: var(--paper-2);
  color: var(--ink);
  font-size: 13.5px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23252525' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

/* ---------- catalog ---------- */
.catalog {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 36px);
  align-items: start;
}
.filters {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 20px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.filters__group h4 {
  margin: 0 0 10px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters__list {
  display: grid;
  gap: 9px;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
}
.check input {
  width: 16px;
  height: 16px;
  accent-color: var(--ink);
  cursor: pointer;
}
.check span {
  flex: 1;
}
.check small {
  color: var(--muted-2);
  font-size: 11.5px;
}
.filters__row {
  display: flex;
  gap: 8px;
}
.filters__row .mfield {
  flex: 1;
}
.filters__row .mfield__input {
  height: 42px;
  background: var(--paper);
  font-size: 13.5px;
}
.filters__actions {
  display: flex;
  gap: 8px;
}
.filters__actions .btn {
  flex: 1;
  min-height: 44px;
  font-size: 13.5px;
}
.filters-toggle {
  display: none;
}
.filters__close {
  display: none;
}

@media (max-width: 900px) {
  .catalog {
    grid-template-columns: minmax(0, 1fr);
  }
  .filters-toggle {
    display: inline-flex;
  }
  .filters:not(.is-open) {
    display: none;
  }
  .filters {
    position: static;
  }
}

/* ---------- cards grid (catalog) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cards-grid .tcard__title {
    font-size: 13px;
  }
  .cards-grid .tcard__meta {
    font-size: 11px;
  }
  .cards-grid .tcard__body {
    padding: 10px 10px 12px;
  }
}

/* ---------- pagination ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 30px;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.pagination a:hover {
  border-color: var(--ink);
}
.pagination .is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  font-weight: 600;
}
.pagination .is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- detail page ---------- */
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: clamp(20px, 2.6vw, 40px);
  align-items: start;
}
.detail__aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
@media (max-width: 980px) {
  .detail {
    grid-template-columns: minmax(0, 1fr);
  }
  .detail__aside {
    position: static;
    order: -1;
  }
}

/* ============================================================
   Слайдер галереи тура
   ============================================================ */
.tslider {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--paper-3);
}
.tslider__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  aspect-ratio: 16 / 10;
}
.tslider__track::-webkit-scrollbar {
  display: none;
}
.tslider__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--paper-3);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  cursor: zoom-in;
}
.tslider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tslider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 8px 24px -12px rgba(18, 18, 17, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
.tslider__nav svg {
  width: 17px;
  height: 17px;
}
.tslider__nav--prev {
  left: 14px;
}
.tslider__nav--prev svg {
  transform: scaleX(-1);
}
.tslider__nav--next {
  right: 14px;
}
.tslider__nav:hover {
  background: var(--yellow);
}
.tslider__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
.tslider__counter {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(18, 18, 17, 0.55);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.tslider__counter b {
  font-weight: 700;
}
.tslider__slash {
  opacity: 0.55;
}
.tslider__hint {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.tslider__hint svg {
  width: 13px;
  height: 13px;
}
.tslider__thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 10px 2px 2px;
}
.tslider__thumbs::-webkit-scrollbar {
  display: none;
}
.tslider__thumb {
  flex: 0 0 auto;
  width: 92px;
  height: 62px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper-3);
  cursor: pointer;
  opacity: 0.62;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.tslider__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.tslider__thumb:hover {
  opacity: 1;
}
.tslider__thumb.is-active {
  opacity: 1;
  border-color: var(--yellow);
}
@media (max-width: 760px) {
  .tslider {
    border-radius: 18px;
  }
  .tslider__track {
    aspect-ratio: 4 / 3;
  }
  .tslider__nav {
    width: 36px;
    height: 36px;
  }
  .tslider__nav--prev {
    left: 8px;
  }
  .tslider__nav--next {
    right: 8px;
  }
  .tslider__counter {
    left: 10px;
    bottom: 10px;
    padding: 5px 10px;
  }
  .tslider__hint {
    right: 10px;
    bottom: 10px;
    padding: 6px 11px;
  }
  .tslider__thumb {
    width: 74px;
    height: 52px;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
}
.gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.gallery__item:hover img {
  transform: scale(1.04);
}
.gallery__item--main {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
}
.gallery__more {
  position: absolute;
  inset: auto 12px 12px auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
@media (max-width: 760px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 220px 90px;
    aspect-ratio: auto;
  }
  .gallery__item--main {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .gallery__item:nth-child(n + 4) {
    display: none;
  }
  .gallery__more {
    inset: auto 10px 10px auto;
  }
}

.panel {
  padding: clamp(16px, 1.8vw, 24px);
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.panel + .panel {
  margin-top: 14px;
}
.panel__title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel__text {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.panel__text + .panel__text {
  margin-top: 12px;
}

.specs {
  display: grid;
  margin: 0;
}
.specs__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.specs__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.specs__row dt {
  color: var(--muted);
  margin: 0;
}
.specs__row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.amenity {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--ink-2);
}
.amenity svg {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.price-box {
  display: grid;
  gap: 12px;
}
.price-box__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.price-box__value {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-box__old {
  font-size: 14px;
  color: var(--muted-2);
  text-decoration: line-through;
}
.price-box__note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.price-box .btn {
  width: 100%;
}

.rating-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.rating-row b {
  color: var(--ink);
  font-size: 14px;
}
.rating-row .stars svg {
  width: 14px;
  height: 14px;
}

/* ---------- auth ---------- */
.auth {
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 56px) 0 clamp(40px, 6vw, 80px);
}
.auth__card {
  width: min(100%, 470px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-m);
}
.auth__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.auth__sub {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.auth__form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}
.auth__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.auth__foot a {
  color: var(--ink);
  font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.auth__foot a:hover {
  border-color: var(--ink);
}
.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 11.5px;
  color: var(--muted-2);
}
.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.role-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
}
.role-switch a,
.role-switch button {
  flex: 1;
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.role-switch .is-active {
  background: var(--ink);
  color: var(--white);
}

/* ---------- dashboard ---------- */
.dash {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}
.dash__nav {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.dash__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dash__link svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.dash__link:hover {
  background: var(--paper);
}
.dash__link.is-active {
  background: var(--ink);
  color: var(--white);
}
.dash__link.is-active svg {
  color: var(--yellow);
}
.dash__foot {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-size: 11.5px;
  color: var(--muted-2);
  padding-inline: 12px;
}
@media (max-width: 900px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash__nav {
    position: static;
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 4px;
  }
  .dash__nav::-webkit-scrollbar {
    display: none;
  }
  .dash__link {
    white-space: nowrap;
    padding: 9px 12px;
  }
  .dash__foot {
    display: none;
  }
}

.dash__title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.dash__title h1 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.dash__title p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 980px) {
  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kpi {
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.kpi small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.kpi b {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.kpi em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11.5px;
  color: #1f7a4d;
}
.kpi em.down {
  color: #b23b2e;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 620px;
}
.table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td b {
  font-weight: 600;
}
.table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.status--ok {
  background: #e7f5ec;
  color: #1f7a4d;
}
.status--wait {
  background: #fff4c9;
  color: #8a6d00;
}
.status--no {
  background: #fdecea;
  color: #b23b2e;
}
.status--info {
  background: #e6f0fd;
  color: #1f5aa8;
}
.status--progress {
  background: #efe9fd;
  color: #5b3fa8;
}

/* смена статуса заявки в кабинете агентства */
.status-select {
  appearance: none;
  -webkit-appearance: none;
  padding: 5px 26px 5px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23252525' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}
.status-select:hover {
  box-shadow: 0 0 0 2px rgba(37, 37, 37, 0.08);
}
.status-select:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
}
.status-select:disabled {
  opacity: 0.6;
  cursor: progress;
}
.status-select__note {
  display: inline-block;
  margin-left: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #1f7a4d;
  opacity: 0;
  transition: opacity 0.2s ease;
  vertical-align: middle;
}
.status-select__note.is-visible {
  opacity: 1;
}
.status-select__note.is-error {
  color: #b23b2e;
}

/* ---------- chat ---------- */
.chat {
  display: grid;
  grid-template-rows: auto 1fr auto;
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  overflow: hidden;
  min-height: 440px;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.chat__avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
}
.chat__avatar svg {
  width: 18px;
  height: 18px;
}
.chat__name {
  font-size: 13.5px;
  font-weight: 600;
}
.chat__status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #1f7a4d;
}
.chat__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f9d55;
}
.chat__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  max-height: 460px;
  overflow-y: auto;
}
.msg {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px 14px 14px 4px;
  background: var(--paper);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.msg time {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: var(--muted-2);
}
.msg--me {
  margin-left: auto;
  border-radius: 14px 14px 4px 14px;
  background: var(--yellow);
  color: var(--ink);
}
.chat__form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line-soft);
}
.chat__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 14px;
}
.chat__input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.chat__send {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.chat__send:hover {
  background: var(--yellow);
  color: var(--ink);
}

/* ---------- blog ---------- */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}
@media (max-width: 980px) {
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .posts-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.post {
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.post:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-s);
}
.post__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.post__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.post:hover .post__media img {
  transform: scale(1.04);
}
.post__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}
.post__meta {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.post h3 {
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.post p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.post__more {
  margin-top: auto;
  padding-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post__more svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}
.post:hover .post__more svg {
  transform: translateX(3px);
}

/* ---------- article ---------- */
.article {
  max-width: 760px;
  margin-inline: auto;
}
.article__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  font-size: 12px;
  color: var(--muted);
}
.article__cover {
  margin: 26px 0 6px;
  border-radius: 22px;
  overflow: hidden;
}
.article p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
}
.article h2 {
  margin: 36px 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.article ul,
.article ol {
  margin: 0 0 18px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
}
.article ul li {
  list-style: disc;
}
.article blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--yellow);
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
}

/* ---------- legal ---------- */
.legal {
  max-width: 820px;
  margin-inline: auto;
}
.legal h2 {
  margin: 30px 0 10px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.legal p,
.legal li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.legal ul {
  padding-left: 20px;
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}
.legal ul li {
  list-style: disc;
}
.legal__updated {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 62vh;
  padding-block: clamp(36px, 6vw, 72px);
}
.error-page__code {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 16vw, 190px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.error-page h1 {
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1;
}
.error-page p {
  margin: 12px auto 0;
  color: var(--muted);
  max-width: 46ch;
}
.error-page__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 22px;
}

/* ---------- generic sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
}
.stack-16 {
  display: grid;
  gap: 16px;
}
.stack-10 {
  display: grid;
  gap: 10px;
}
.mt-24 {
  margin-top: 24px;
}
.mt-32 {
  margin-top: 32px;
}
.center-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ---------- country hero ---------- */
.country-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: clamp(320px, 40vw, 460px);
  border-radius: var(--r-2xl);
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
}
.country-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.country-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.15) 0%, rgba(10, 10, 9, 0.1) 40%, rgba(10, 10, 9, 0.85) 100%);
}
.country-hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(20px, 3vw, 38px);
}
.country-hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.country-hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.country-hero__desc {
  margin-top: 12px;
  max-width: 52ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- feature cards (about / agencies) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 18px);
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.feature {
  display: grid;
  gap: 10px;
  padding: clamp(18px, 2vw, 24px);
  border-radius: 20px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  align-content: start;
}
.feature__ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  margin-bottom: 4px;
}
.feature__ico svg {
  width: 20px;
  height: 20px;
}
.feature h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- contacts ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 26px;
}
@media (max-width: 760px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.contact-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
}
.contact-card small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.contact-card b,
.contact-card a {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.contact-card a:hover {
  color: var(--muted);
}
.contact-card span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- form grid ---------- */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.form-grid .mfield--full {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
textarea.mfield__input {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.5;
}

/* ---------- CTA strip ---------- */
.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(20px, 2.6vw, 32px);
  border-radius: var(--r-xl);
  background: var(--ink);
  color: var(--white);
}
.cta-strip h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(20px, 2.4vw, 30px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.cta-strip p {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
  max-width: 46ch;
}
.cta-strip__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}


/* ---------- compact search on inner pages ---------- */
.page-head + .section--tight {
  padding-top: 0;
}
.inline-search {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 10px;
  align-items: end;
  margin-top: 22px;
  padding: 14px;
  border-radius: 20px;
  background: var(--paper-2);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-s);
}
.inline-search .mfield__input {
  height: 46px;
  background: var(--paper);
}
.inline-search .btn {
  height: 46px;
  min-height: 46px;
}
@media (max-width: 1080px) {
  .inline-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inline-search .btn {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .inline-search {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- country tiles ---------- */
.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}
@media (max-width: 1180px) {
  .country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .country-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.country-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  background: var(--paper-3);
}
.country-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}
.country-card:hover img {
  transform: scale(1.05);
}
.country-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 9, 0.28) 0%, rgba(10, 10, 9, 0) 38%, rgba(10, 10, 9, 0.82) 100%);
}
.country-card__body {
  position: relative;
  z-index: 1;
  padding: 14px 15px;
}
.country-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.country-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.78);
}
.country-card__price {
  font-weight: 600;
  color: var(--white);
}
.country-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
}


/* ---------- bar chart ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 170px;
}
.bars span {
  flex: 1;
  min-width: 0;
  border-radius: 6px 6px 2px 2px;
  background: var(--paper-3);
  transition: background-color 0.2s ease;
}
.bars span.is-peak {
  background: var(--yellow);
}
.bars span.is-ink {
  background: var(--ink);
}
.bars-axis {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted-2);
}

/* flat collections grid */
.coll__grid--flat .coll-card:nth-child(2) {
  margin-top: 0;
}
.coll__grid--flat {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.coll__grid--flat .coll-card {
  aspect-ratio: 3 / 4;
}
@media (max-width: 860px) {
  .coll__grid--flat {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .coll__grid--flat .coll-card:nth-child(3) {
    grid-column: auto;
    aspect-ratio: 3 / 4;
  }
}
@media (max-width: 560px) {
  .coll__grid--flat {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* generic content section spacing */
.inner-section {
  padding-block: clamp(34px, 4.6vw, 64px);
}
.inner-section--tight {
  padding-block: clamp(22px, 3vw, 40px);
}
.divider {
  height: 1px;
  background: var(--line-soft);
  margin-block: clamp(26px, 3.4vw, 44px);
}


/* faq groups */
.faq__group {
  margin: 26px 0 8px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.faq__list > .faq__group:first-child {
  margin-top: 0;
}


/* four-step row */
.steps__grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .steps__grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 860px) {
  .steps__grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* toolbar filters row on mobile */
@media (max-width: 760px) {
  .toolbar__right {
    width: 100%;
  }
  .toolbar__right .chips-row {
    flex: 1 1 auto;
    min-width: 0;
  }
}


/* four feature cards in a row */
.feature-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1080px) {
  .feature-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .feature-grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== 13-pages.css ===== */
/* ============================================================
   Page-specific components: tabs, article aside, lightbox
   ============================================================ */

/* ---------- dashboard tabs ---------- */
button.dash__link {
  width: 100%;
  border: 0;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.dash__panel[hidden] {
  display: none !important;
}

/* ---------- article with aside ---------- */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(0, 320px);
  justify-content: space-between;
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
}
.article-layout .article {
  max-width: none;
  margin: 0;
}
.article__aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
}
.article__aside-title {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.post-mini {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--paper-2);
  transition: border-color 0.2s ease, transform 0.3s var(--ease);
}
.post-mini:hover {
  border-color: var(--line);
  transform: translateX(2px);
}
.post-mini img {
  width: 78px;
  height: 62px;
  object-fit: cover;
  border-radius: 10px;
}
.post-mini b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.post-mini .post-mini__meta {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article__aside-cta {
  margin-top: 6px;
  padding: 16px;
  border-radius: 16px;
  background: var(--ink);
  color: var(--white);
}
.article__aside-cta b {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}
.article__aside-cta p {
  margin: 6px 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}
@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .article__aside {
    position: static;
  }
}

/* ---------- legal pages full width ---------- */
.legal {
  max-width: none;
  margin: 0;
  width: 100%;
}
.legal p,
.legal li {
  font-size: 15.5px;
  line-height: 1.72;
}
.legal h2 {
  font-size: 20px;
}

/* ---------- gallery lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: grid;
  place-items: center;
  padding: 64px 72px;
  background: rgba(12, 12, 11, 0.94);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}
.lightbox__img {
  max-width: min(1180px, 100%);
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 14px;
  object-fit: contain;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8);
}
.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lightbox__close:hover {
  background: var(--white);
  color: var(--ink);
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lightbox__nav:hover {
  background: var(--white);
  color: var(--ink);
}
.lightbox__nav--prev {
  left: 16px;
}
.lightbox__nav--next {
  right: 16px;
}
.lightbox__nav--prev svg {
  transform: rotate(90deg);
}
.lightbox__nav--next svg {
  transform: rotate(-90deg);
}
.lightbox__counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 640px) {
  .lightbox {
    padding: 56px 12px 64px;
  }
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .lightbox__nav--prev {
    left: 8px;
  }
  .lightbox__nav--next {
    right: 8px;
  }
}

.gallery__item {
  cursor: zoom-in;
  border: 0;
  padding: 0;
  background: var(--paper-3);
}
button.gallery__item {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---------- register role panels ---------- */
.role-panel[hidden] {
  display: none !important;
}
.auth__note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- modal tour context ---------- */
.modal__context {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
}
.modal__context-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
  width: 100%;
}
.modal__context b {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}


/* ==========================================================================
   Поиск в герое, модалка поиска, аналитика цен
   ========================================================================== */
.field--select {
  display: block;
  text-align: left;
}
.field__select {
  width: 100%;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: none;
}
.field__select option {
  color: var(--ink);
  background: var(--white);
  font-weight: 400;
}
.search__submit {
  width: 100%;
  margin-top: 10px;
}
.search__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

/* модалка поиска */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.search-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 17, 0.55);
  backdrop-filter: blur(6px);
}
.search-modal__dialog {
  position: relative;
  width: min(460px, 100%);
  padding: 26px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.5);
}
.search-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.search-modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
}
.search-modal__form {
  display: grid;
  gap: 12px;
}

/* аналитика: дорогие месяцы и пустые колонки */
.best-row--high .best-row__bar span {
  background: var(--line);
}
.bars span.is-empty {
  background: var(--line-soft);
  opacity: 0.5;
}


/* ---------- поповер направлений: ровная сетка ---------- */
.popover__option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.popover__option .flag {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border-radius: 6px;
  font-size: 10px;
  letter-spacing: 0.04em;
}
.popover__option small {
  margin-left: auto;
  padding-left: 10px;
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------- график аналитики ---------- */
.price-chart-wrap {
  margin-top: 18px;
}
.price-chart {
  width: 100%;
  height: auto;
  display: block;
}


/* меню аккаунта: центрирование пунктов */
.account__item { align-items: center; }
.account__item .account__item-title { display: flex; align-items: center; min-height: 22px; }

/* подсказка у поля — по фокусу, справа от заголовка */
.mfield { position: relative; }
.mfield__focus-hint {
  position: absolute; top: 0; right: 0;
  font-size: 11.5px; color: var(--muted);
  opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.mfield:focus-within .mfield__focus-hint { opacity: 1; }

/* постоянная подсказка под полем (ввод в кабинете) */
.mfield__hint {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}

/* программа тура */
.program { display: grid; gap: 12px; }
.program__row { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 12px; align-items: start; }
.program__num {
  display: grid; place-items: center; height: 26px; min-width: 30px; padding: 0 7px;
  border-radius: 100px; background: var(--yellow); color: var(--ink);
  font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap;
}
.program__body { display: grid; gap: 3px; min-width: 0; }
.program__title { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.program__text { font-size: 14px; line-height: 1.5; color: var(--muted); }
@media (max-width: 560px) {
  .program__row { grid-template-columns: 26px minmax(0,1fr); gap: 10px; }
  .program__num { height: 24px; min-width: 26px; padding: 0 6px; font-size: 11px; }
}

/* ============================================================
   Агентства: логотип в карточке, на странице и в каталоге
   ============================================================ */
.agency-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.agency-card__logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  overflow: hidden;
}
.agency-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
  display: block;
}
.agency-card__name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}
.agency-card__status {
  display: block;
  margin-top: 4px;
}

.agency-head {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  min-width: 0;
}
.agency-brand {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  flex: 0 0 auto;
  border-radius: 18px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 18px 34px -22px rgba(18, 18, 17, 0.5);
}
.agency-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
  display: block;
}
@media (max-width: 640px) {
  .agency-brand {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    font-size: 22px;
  }
}

.post__logo {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  overflow: hidden;
}
.post__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--white);
  display: block;
}

/* избранное на странице тура: активное сердечко */
.icon-btn.is-active {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--ink);
}
.icon-btn.is-active svg {
  fill: currentColor;
}

/* 4 колонки для туров на страницах направления и коллекции */
.cards-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  .cards-grid--4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .cards-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .cards-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .cards-grid--4 .tcard__title {
    font-size: 13px;
  }
  .cards-grid--4 .tcard__body {
    padding: 10px 10px 12px;
  }
}

/* ============================================================
   07-mobile-fixes.css — правки мобильной версии, страница тура,
   слайдер похожих туров, прелоадер переходов
   ============================================================ */

/* ---------- 1. прелоадер между страницами ---------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  gap: 0;
  align-content: center;
  background: var(--paper, #f7f5ef);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  /* показ — сразу, скрытие — после затухания */
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}
.preloader.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.16s ease, visibility 0s linear 0s;
}
.preloader__logo {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  animation: preloader-pulse 1.2s ease-in-out infinite;
}
.preloader__bar {
  position: relative;
  display: block;
  overflow: hidden;
  width: 116px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(37, 37, 37, 0.12);
}
.preloader__bar::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border-radius: inherit;
  background: var(--yellow, #ffe144);
  animation: preloader-slide 1.15s ease-in-out infinite;
}
@keyframes preloader-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(0.9); opacity: 0.6; }
}
@keyframes preloader-slide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(280%); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader__logo { animation: none; }
  .preloader__bar::after { animation: none; width: 100%; }
}

/* ---------- 2. фильтры на мобильном ---------- */
.filters__head {
  display: none;
}
@media (max-width: 900px) {
  .filters__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--line-soft);
  }
  .filters__head b {
    font-size: 15px;
    font-weight: 600;
  }
  .filters__close {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
  }
  .filters__close svg {
    width: 16px;
    height: 16px;
  }
  .filters.is-open {
    animation: filters-in 0.24s var(--ease-out, ease-out);
  }
  .filters__actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    padding: 12px 0 2px;
    background: linear-gradient(to top, var(--paper-2) 70%, transparent);
  }
  .filters-toggle.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--white);
  }
  body.filters-open {
    overflow: hidden;
  }
}
@keyframes filters-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- 3. аналитика цен: прокрутка графика ---------- */
.price-chart-wrap {
  position: relative;
}
.price-chart__hint {
  display: none;
}
@media (max-width: 760px) {
  .price-chart-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    margin-inline: -6px;
    padding-inline: 6px;
    padding-bottom: 6px;
  }
  .price-chart {
    width: 720px;
    max-width: none;
    height: 240px;
  }
  .price-chart__hint {
    display: block;
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--muted);
  }
}

/* ---------- 4. мобильный: меньше «дорогих» эффектов ---------- */
@media (max-width: 900px) {
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 254, 251, 0.97);
  }
  .tabbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 254, 251, 0.98);
  }
  .ticker__track {
    animation: none;
  }
  .ticker__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .ticker__viewport::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- 5. страница тура: две колонки на десктопе, порядок на мобильном ---------- */
.tour-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 356px;
  gap: 22px 34px;
  align-items: start;
}
.tl-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}
.tl-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
.tl-similar {
  grid-column: 1 / -1;
  margin-top: 12px;
}
.tour-layout .panel + .panel {
  margin-top: 0;
}
.tl-price .price-box__top {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.tl-price .price-box__value {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.tour-buy__label {
  display: block;
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tl-price .price-box__note {
  display: block;
  margin: 6px 0 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.tour-buy__actions {
  display: grid;
  gap: 10px;
}
.tour-buy__actions .btn {
  width: 100%;
}
.tl-agency .agency-card {
  margin: 0;
}

@media (max-width: 980px) {
  .tour-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  /* обёртки «растворяются», чтобы блоки шли в нужном порядке */
  .tl-main,
  .tl-aside {
    display: contents;
  }
  .tl-aside {
    position: static;
  }
  .tl-similar {
    grid-column: auto;
    margin-top: 10px;
  }
  .tl-gallery { order: 1; }
  .tl-price { order: 2; }
  .tl-specs { order: 3; }
  .tl-about { order: 4; }
  .tl-amenities { order: 5; }
  .tl-program { order: 6; }
  .tl-includes { order: 7; }
  .tl-agency { order: 8; }
  .tl-similar { order: 9; }

  .tour-layout > * {
    min-width: 0;
  }
  .tl-price .price-box__note {
    margin-bottom: 14px;
  }
  .tour-buy__actions {
    gap: 12px;
  }
}

/* ---------- 6. слайдер похожих туров ---------- */
.similar {
  position: relative;
}
.similar__track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 2px 6px;
}
.similar__track::-webkit-scrollbar {
  display: none;
}
.similar__track .tcard {
  flex: 0 0 clamp(220px, 26vw, 280px);
  scroll-snap-align: start;
}
.similar__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 10px 26px -14px rgba(18, 18, 17, 0.6);
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}
.similar__nav svg {
  width: 16px;
  height: 16px;
}
.similar__nav--prev {
  left: -14px;
}
.similar__nav--prev svg {
  transform: scaleX(-1);
}
.similar__nav--next {
  right: -14px;
}
.similar__nav:hover {
  background: var(--yellow);
}
.similar__nav:disabled {
  opacity: 0;
  pointer-events: none;
}
@media (max-width: 760px) {
  .similar__nav {
    width: 38px;
    height: 38px;
  }
  .similar__nav--prev {
    left: -6px;
  }
  .similar__nav--next {
    right: -6px;
  }
  .similar__track .tcard {
    flex: 0 0 74%;
  }
}

/* ---------- 7. мобильное меню: поиск ---------- */
.tabbar__item {
  border: 0;
  background: none;
  /* НЕ `font: inherit` — оно перебивало font-size из медиазапроса (10.5px),
     и на экранах шире 400px подписи рисовались системными 16px и обрезались */
  font-family: inherit;
  font-weight: inherit;
  cursor: pointer;
}
.drawer__search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.drawer__search svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

/* ---------- 8. карточка тура: название тура + отель ---------- */
.tcard__hotel {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tcard__hotel:empty {
  display: none;
}
@media (max-width: 560px) {
  .cards-grid .tcard__hotel,
  .tours__grid .tcard__hotel {
    font-size: 11px;
  }
}

/* ---------- 9. узкие экраны: 400 и меньше (минимум 320) ---------- */
@media (max-width: 400px) {
  .tabbar {
    padding: 6px 6px calc(env(safe-area-inset-bottom) + 6px);
  }
  .tabbar__item {
    font-size: 10px;
    gap: 3px;
    padding: 5px 0;
  }
  .tabbar__item svg {
    width: 21px;
    height: 21px;
  }
  .tabbar__ico {
    width: 40px;
    height: 27px;
  }
  .logo img {
    width: 116px;
  }
  .header__actions {
    gap: 6px;
  }
  .icon-btn {
    width: 42px;
    height: 42px;
  }
  .page-title {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 344px) {
  .tabbar__item {
    font-size: 9.5px;
    letter-spacing: 0;
  }
  .tabbar__item svg {
    width: 19px;
    height: 19px;
  }
  .logo img {
    width: 104px;
  }
  .icon-btn {
    width: 38px;
    height: 38px;
  }
  .btn {
    padding: 0 18px;
    font-size: 14px;
  }
}

/* ---------- 10. hero на узких экранах ---------- */
@media (max-width: 560px) {
  .hero__eyebrow {
    height: auto;
    min-height: 30px;
    max-width: 100%;
    padding: 6px 12px 6px 10px;
    letter-spacing: 0.08em;
    line-height: 1.3;
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .hero__eyebrow-more {
    display: none;
  }
}

/* ============================================================
   11. ИИ-ассистент
   ============================================================ */
.ai-fab {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 130;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 20px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 20px 38px -20px rgba(23, 23, 22, 0.7);
  transition: transform 0.25s var(--ease), box-shadow 0.25s ease;
}
.ai-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -20px rgba(23, 23, 22, 0.75);
}
.ai-fab__icon {
  width: 20px;
  height: 20px;
  color: var(--yellow);
}
body.ai-open .ai-fab {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}

.ai-panel {
  position: fixed;
  right: 18px;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 140;
  display: none;
  flex-direction: column;
  width: min(400px, calc(100vw - 36px));
  height: min(620px, calc(100vh - 36px));
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 40px 80px -34px rgba(23, 23, 22, 0.5), 0 0 0 1px var(--line-soft);
  overflow: hidden;
}
.ai-panel.is-open {
  display: flex;
  animation: ai-in 0.28s var(--ease);
}
@keyframes ai-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ai-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--white);
}
.ai-head__avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  flex: 0 0 auto;
}
.ai-head__avatar .icon {
  width: 20px;
  height: 20px;
}
.ai-head__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.ai-head__text b {
  font-size: 14px;
  font-weight: 700;
}
.ai-head__text span {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-head__close {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  flex: 0 0 auto;
}
.ai-head__close .icon {
  width: 16px;
  height: 16px;
}

.ai-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background: var(--paper);
}
.ai-msg {
  max-width: 90%;
  padding: 10px 13px;
  border-radius: 16px;
  font-size: 13.5px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.ai-msg--bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-bottom-left-radius: 6px;
}
.ai-msg--me {
  align-self: flex-end;
  background: var(--ink);
  color: var(--white);
  border-bottom-right-radius: 6px;
}
.ai-msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-msg p {
  margin: 0 0 7px;
}
.ai-msg p:last-child {
  margin-bottom: 0;
}
.ai-msg ul {
  margin: 0 0 7px;
  padding-left: 17px;
  list-style: none;
}
.ai-msg ul:last-child {
  margin-bottom: 0;
}
.ai-msg li {
  position: relative;
  margin: 0 0 4px;
}
.ai-msg li::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--yellow);
}
.ai-msg b {
  font-weight: 700;
}

.ai-tour {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.ai-tour:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}
.ai-tour img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.ai-tour__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.ai-tour__title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ai-tour__meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ai-tour__price {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.ai-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 13px 14px;
}
.ai-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
  animation: ai-blink 1.2s infinite ease-in-out;
}
.ai-typing i:nth-child(2) { animation-delay: 0.15s; }
.ai-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes ai-blink {
  0%, 80%, 100% { opacity: 0.25; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-2px); }
}

.ai-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 12px 10px;
  background: var(--paper);
}
.ai-quick[hidden],
.ai-quick:empty { display: none; }
.ai-chip {
  flex: 0 0 auto;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ai-chip:hover {
  border-color: var(--ink);
  background: var(--paper-3);
}

.ai-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px 6px;
  border-top: 1px solid var(--line-soft);
  background: var(--white);
}
.ai-form__input {
  flex: 1 1 auto;
  min-width: 0;
  max-height: 120px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.35;
  resize: none;
  outline: none;
  overflow-y: hidden;      /* высота растёт скриптом, скроллбар не нужен */
  scrollbar-width: none;
}
.ai-form__input::-webkit-scrollbar { display: none; }
.ai-form__input:focus {
  border-color: var(--ink);
}
.ai-form__send {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.ai-form__send:hover { transform: scale(1.05); }
.ai-form__send .icon { width: 18px; height: 18px; }

.ai-note {
  margin: 0;
  padding: 0 14px 11px;
  font-size: 10.5px;
  line-height: 1.35;
  color: var(--muted);
  background: var(--white);
}

@media (max-width: 760px) {
  .ai-fab {
    right: 12px;
    bottom: calc(78px + env(safe-area-inset-bottom));
    height: 48px;
    padding: 0 15px 0 13px;
    font-size: 13px;
    gap: 7px;
  }
  .ai-fab__icon { width: 18px; height: 18px; }
  .ai-panel {
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: min(88vh, 760px);
    border-radius: 20px 20px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .ai-log { padding: 12px; }
  .ai-msg { max-width: 94%; font-size: 13.5px; }
  .ai-tour { grid-template-columns: 48px minmax(0, 1fr) auto; }
  .ai-tour img { width: 48px; height: 48px; }
}

.hcard {
  display: block;
  text-decoration: none;
  color: var(--white);
}
.hcard:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}

.ai-tour--noimg {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* два телефона в подвале */
.footer__phones {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin-top: 18px;
}
.footer__phones .footer__phone {
  margin-top: 0;
}
.footer__phone--second {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

/* два телефона в карточке контактов — в столбик */
.contact-card a + a {
  display: block;
  margin-top: 2px;
}

/* сайдбар страницы тура: прокрутка, если не помещается по высоте */
.tl-aside {
  max-height: calc(100vh - 112px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
}
.tl-aside::-webkit-scrollbar { width: 6px; }
.tl-aside::-webkit-scrollbar-thumb { background: rgba(22, 21, 15, .16); border-radius: 3px; }
@media (max-width: 980px) {
  .tl-aside { max-height: none; overflow: visible; padding-right: 0; }
}
