/* =========================================================
   Wanderlust — авторские путешествия
   ========================================================= */

/* ---------- Токены ---------- */
:root {
  --deep: #0b3d5c;
  --deep-700: #123e63;
  --ocean: #1c6b8a;
  --teal: #2b9aa8;
  --aqua: #7fc3cf;
  --mint: #e6f4f7;
  --sand: #f0a35e;
  --coral: #e2674c;
  --paper: #ffffff;
  --paper-tint: #f4f9fb;
  --ink: #10222e;
  --muted: #5c7688;
  --line: #d9e6ec;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --fs-h1: clamp(2.4rem, 1.6rem + 3.5vw, 4.4rem);
  --fs-h2: clamp(1.9rem, 1.35rem + 2.4vw, 3.1rem);
  --fs-lead: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);

  --space-section: clamp(4rem, 2.8rem + 6vw, 8rem);
  --container: 1220px;
  --gutter: clamp(1.15rem, 0.6rem + 2.4vw, 2.5rem);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 12px rgb(11 61 92 / 0.07);
  --shadow: 0 20px 45px -25px rgb(11 61 92 / 0.4);
  --shadow-lg: 0 40px 90px -45px rgb(11 61 92 / 0.55);

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --header-h: 76px;
}

/* ---------- Сброс ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.7rem 1.2rem;
  background: var(--deep);
  color: #fff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  transition: top 0.2s var(--ease);

  &:focus { top: 0; }
}

/* ---------- Раскладка ---------- */
.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; }
.section--tint { background: var(--paper-tint); }

.section--deep {
  background: linear-gradient(160deg, var(--deep) 0%, #0a2c43 100%);
  color: #eaf4f8;
}

.section__head { max-width: 46rem; margin-bottom: clamp(2.25rem, 1.5rem + 2.5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }

.section__title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-block: 0.5rem 0.9rem;
  text-wrap: balance;
}

.section__lead { font-size: var(--fs-lead); color: var(--muted); max-width: 44rem; text-wrap: pretty; }
.section--deep .section__lead { color: color-mix(in srgb, #eaf4f8 75%, transparent); }
.section__head--center .section__lead { margin-inline: auto; }

.eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
}

.eyebrow--light { color: var(--aqua); }

/* ---------- Кнопки ---------- */
.btn {
  --btn-bg: var(--deep);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: 0.94rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease);

  &:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
  &:active { transform: translateY(0); }
}

.btn--primary { --btn-bg: var(--coral); }
.btn--primary:hover { --btn-bg: #d05a3f; }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--deep);
  border-color: var(--line);

  &:hover { --btn-bg: var(--mint); }
}

.btn--lg { padding: 0.9rem 1.9rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  color: #fff;
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}

.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
}

.logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.logo__mark { width: 34px; height: 34px; flex: none; }

.logo__text {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.6vw, 1.7rem);
  font-size: 0.94rem;
  font-weight: 600;

  & a {
    position: relative;
    padding-block: 0.35rem;
    transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
    opacity: 0.9;

    &::after {
      content: "";
      position: absolute;
      inset-inline: 0;
      bottom: 0;
      height: 2px;
      background: currentColor;
      transform: scaleX(0);
      transform-origin: left;
      transition: transform 0.28s var(--ease);
    }

    &:hover, &.is-active { opacity: 1; }
    &:hover::after, &.is-active::after { transform: scaleX(1); }
  }
}

.site-header.is-scrolled .nav__list a.is-active { color: var(--teal); }

.burger {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid color-mix(in srgb, currentColor 30%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 8%, transparent);
  cursor: pointer;

  & span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
  }

  &[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  &[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  &[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(92vh, 900px);
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 3rem) clamp(3rem, 2rem + 5vw, 6rem);
  color: #fff;
  overflow: hidden;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: -1;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 60%;
  }
}

.hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgb(6 32 48 / 0.82) 0%, rgb(6 32 48 / 0.55) 45%, rgb(6 32 48 / 0.15) 100%);
}

.hero__inner { position: relative; }

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-h1);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin-block: 0.8rem 1.2rem;
  max-width: 24ch;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(4 24 36 / 0.35);

  & em { font-style: italic; color: var(--sand); }
}

.hero__lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.22rem);
  max-width: 40rem;
  color: color-mix(in srgb, #fff 88%, transparent);
  text-wrap: pretty;
}

/* поисковая панель */
.searchbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0.9rem;
  align-items: end;
  margin-top: 2.5rem;
  padding: 1.1rem;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}

.searchbar__field {
  display: grid;
  gap: 0.3rem;
  min-width: 0;

  & label {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
  }

  & select {
    width: 100%;
    padding: 0.62rem 0.8rem;
    background: var(--paper-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.94rem;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);

    &:hover { border-color: var(--aqua); }
    &:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
  }
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  margin-top: 2.75rem;

  & dt {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.6rem);
    font-weight: 600;
    line-height: 1;
    color: var(--sand);
  }

  & dd {
    font-size: 0.85rem;
    max-width: 12rem;
    line-height: 1.4;
    color: color-mix(in srgb, #fff 80%, transparent);
  }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Раннее бронирование ---------- */
.early {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.9rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1.1rem;
  border: 1px solid color-mix(in srgb, var(--sand) 45%, transparent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--sand) 12%, transparent);
  font-size: 0.92rem;
}

.early__badge {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: var(--sand);
  color: #4a2a08;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ---------- Фильтры ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.filters__group { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.chip {
  padding: 0.5rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);

  &:hover { border-color: var(--teal); color: var(--deep); }
  &.is-active { background: var(--deep); border-color: var(--deep); color: #fff; }
}

.filters__sort {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);

  & select {
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
  }
}

.tours__count { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.5rem; }

.tours__empty {
  padding: 2.5rem;
  text-align: center;
  color: var(--muted);
  background: var(--paper-tint);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);

  & a { color: var(--teal); font-weight: 700; text-decoration: underline; }
}

/* ---------- Карточки туров ---------- */
.tours__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
}

.tour {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: card-in 0.45s var(--ease) both;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);

  &:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
  }

  &:hover .tour__art img { scale: 1.08; }
}

@keyframes card-in {
  from { opacity: 0; translate: 0 16px; }
  to { opacity: 1; translate: 0 0; }
}

.tour__art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--deep);

  & img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.6s var(--ease); }
}

.tour__tag {
  position: absolute;
  inset: 0.85rem auto auto 0.85rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--deep);
}

.tour__rating {
  position: absolute;
  inset: 0.85rem 0.85rem auto auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgb(9 34 48 / 0.6);
  backdrop-filter: blur(6px);
  color: #ffd58a;
  font-size: 0.78rem;
  font-weight: 700;
}

.tour__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.55rem;
  padding: 1.25rem 1.35rem 1.4rem;
}

.tour__country {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

.tour__format {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
}

.tour__format--group { background: color-mix(in srgb, var(--ocean) 14%, transparent); color: var(--ocean); }
.tour__format--private { background: color-mix(in srgb, var(--coral) 14%, transparent); color: var(--coral); }

.tour__seats {
  font-size: 0.8rem;
  color: var(--muted);

  &.is-few { color: var(--coral); font-weight: 700; }
}

.tour__title {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.2;
}

.tour__desc { font-size: 0.9rem; color: var(--muted); flex: 1; }

.tour__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-block: 0.75rem;
  border-block: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);

  & span { display: inline-flex; align-items: center; gap: 0.35rem; }
  & svg { width: 15px; height: 15px; color: var(--teal); }
}

.tour__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.35rem;
}

.tour__price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;

  & b { font-size: 1.2rem; font-weight: 800; }
  & small { font-size: 0.74rem; color: var(--muted); }
}

/* ---------- Сравнение «сам или с нами» ---------- */
.scroller { overflow-x: auto; }

.compare__table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;

  & caption {
    caption-side: top;
    text-align: left;
    font-size: 0.85rem;
    color: var(--muted);
    padding-bottom: 0.75rem;
  }

  & th, & td {
    text-align: left;
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 0.92rem;
  }

  & thead th {
    background: var(--mint);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--deep);
  }

  & thead th:last-child { background: color-mix(in srgb, var(--teal) 22%, var(--mint)); }

  & tbody th { font-weight: 700; width: 30%; }
  & tbody td:last-child { color: var(--deep); font-weight: 500; background: color-mix(in srgb, var(--mint) 45%, transparent); }
  & tbody tr:last-child :is(th, td) { border-bottom: 0; }
}

.compare__note {
  margin-top: 1.25rem;
  font-size: 0.92rem;
  color: var(--muted);
  font-style: italic;
}

/* ---------- Кураторы ---------- */
.curators__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
}

.curator {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);

  &:hover { transform: translateY(-5px); border-color: var(--aqua); }

  & img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--aqua) 45%, transparent);
    margin-bottom: 1.1rem;
  }

  & h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
}

.curator__area {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-block: 0.3rem 0.7rem;
}

.curator__bio { font-size: 0.92rem; color: var(--muted); }

.curator__stat {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);

  & b { font-family: var(--font-display); font-size: 1.3rem; color: var(--deep); margin-inline-end: 0.25rem; }
}

/* ---------- Направления ---------- */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.dest {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  isolation: isolate;

  & img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: scale 0.7s var(--ease);
  }

  &::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 35%, rgb(6 28 42 / 0.85));
    transition: opacity 0.35s var(--ease);
  }

  &:hover img { scale: 1.08; }
  &:hover .dest__meta { color: var(--sand); }
  &:hover { box-shadow: var(--shadow); }
}

.dest__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  padding: 1.4rem;
  color: #fff;

  & h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }
  & p { font-size: 0.88rem; color: color-mix(in srgb, #fff 82%, transparent); margin-top: 0.15rem; }
}

.dest__meta {
  display: inline-block;
  margin-top: 0.7rem;
  font-weight: 700;
  font-size: 0.92rem;
  transition: color 0.3s var(--ease);
}

/* ---------- Почему мы ---------- */
.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.5rem);
}

.why-card {
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);

  &:hover { transform: translateY(-6px); border-color: var(--aqua); box-shadow: var(--shadow); }

  & h3 { font-size: 1.1rem; font-weight: 700; margin-block: 0.85rem 0.4rem; }
  & p { font-size: 0.92rem; color: var(--muted); }
}

.why-card__num {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--mint);
  color: var(--ocean);
  font-weight: 800;
  font-size: 0.95rem;
}

.counters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 1.5rem;
  margin-top: clamp(2.5rem, 2rem + 2vw, 4rem);
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  background: linear-gradient(120deg, var(--mint), #fdf5ec);
  border-radius: var(--radius-lg);
}

.counter { text-align: center; }

.counter__value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}

.counter__label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.86rem;
  color: var(--muted);

  & small {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--muted) 75%, transparent);
  }
}

/* ---------- Истории ---------- */
.stories__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(1rem, 0.8rem + 1vw, 1.75rem);
}

.story {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem);
  background: color-mix(in srgb, #ffffff 8%, transparent);
  border: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
  border-radius: var(--radius-lg);
  transition: background-color 0.35s var(--ease), transform 0.35s var(--ease);

  &:hover { background: color-mix(in srgb, #ffffff 13%, transparent); transform: translateY(-4px); }

  & blockquote p { font-size: 0.98rem; line-height: 1.7; color: color-mix(in srgb, #eaf4f8 92%, transparent); text-wrap: pretty; }

  & figcaption {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid color-mix(in srgb, #ffffff 14%, transparent);
  }

  & figcaption > span { display: flex; flex-direction: column; }
  & strong { font-weight: 700; font-size: 0.96rem; color: #eaf4f8; }
  & span { font-size: 0.83rem; color: var(--aqua); }
}

.story__ava {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--aqua) 55%, transparent);
}

.story__rating { color: #ffcf70; letter-spacing: 0.15em; font-size: 0.95rem; }

/* ---------- Заявка ---------- */
.request__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
}

.request__steps {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.25rem;

  & li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }

  & li > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--deep);
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
  }

  & h3 { font-size: 1.02rem; font-weight: 700; }
  & p { font-size: 0.9rem; color: var(--muted); }
}

.form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.field { grid-column: 1 / -1; display: grid; gap: 0.4rem; }
.field--half { grid-column: span 1; }

.field label { font-size: 0.85rem; font-weight: 700; }
.optional { font-weight: 500; color: var(--muted); }

.field :is(input, select, textarea) {
  width: 100%;
  padding: 0.72rem 0.9rem;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);

  &:hover { border-color: var(--aqua); }

  &:focus {
    outline: none;
    background: var(--paper);
    border-color: var(--teal);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent);
  }
}

.field textarea { resize: vertical; min-height: 84px; }

.field__error { font-size: 0.8rem; color: var(--coral); display: none; }

.field.has-error {
  & :is(input, select, textarea) { border-color: var(--coral); background: color-mix(in srgb, var(--coral) 6%, #fff); }
  & .field__error { display: block; }
}

.checkbox {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--muted);
  cursor: pointer;

  & input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--teal); flex: none; }
  & a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
  &.has-error { color: var(--coral); }
}

.form__intro {
  grid-column: 1 / -1;
  font-size: 0.9rem;
  color: var(--muted);
  padding-bottom: 0.35rem;
}

/* ---------- Юридические страницы ---------- */
.legal { padding-block: calc(var(--header-h) + 3rem) 4rem; }

.legal__inner {
  max-width: 46rem;

  & h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.4rem + 2vw, 2.8rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-block: 0.6rem 0.5rem;
    text-wrap: balance;
  }

  & h2 { font-size: 1.2rem; font-weight: 700; margin-block: 2.25rem 0.6rem; }
  & p { margin-bottom: 0.9rem; }
  & ul { list-style: disc; padding-inline-start: 1.25rem; margin-bottom: 0.9rem; }
  & li { margin-bottom: 0.35rem; }
  & a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
}

.legal__updated { font-size: 0.85rem; color: var(--muted); }

.legal__lead {
  font-size: 1.06rem;
  padding: 1rem 1.25rem;
  margin-block: 1.5rem 2rem !important;
  border-inline-start: 3px solid var(--teal);
  background: var(--mint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.legal__demo {
  margin-block: 2.5rem 2rem !important;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.footer__legal {
  padding-top: 1.5rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: color-mix(in srgb, #eaf4f8 45%, transparent);
}

.form button[type="submit"] { grid-column: 1 / -1; margin-top: 0.25rem; }

.form__status {
  grid-column: 1 / -1;
  min-height: 1.2rem;
  font-size: 0.9rem;
  text-align: center;

  &.is-ok { color: #1d7a5f; font-weight: 700; }
  &.is-error { color: var(--coral); font-weight: 700; }
}

/* ---------- Программа тура: модальное окно ---------- */
.plan-dialog {
  width: min(100% - 2rem, 44rem);
  max-height: min(90vh, 52rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  overflow: visible;

  &::backdrop { background: rgb(6 28 42 / 0.65); backdrop-filter: blur(3px); }
}

.plan-dialog__body {
  padding: clamp(1.5rem, 1.2rem + 1.5vw, 2.5rem);
  max-height: min(90vh, 52rem);
  overflow-y: auto;
}

.plan-dialog__close {
  position: absolute;
  inset: 0.85rem 0.85rem auto auto;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);

  & svg { width: 18px; height: 18px; }
  &:hover { color: var(--coral); border-color: var(--coral); }
}

.plan-dialog__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  font-weight: 600;
  line-height: 1.12;
  margin-block: 0.4rem 0.5rem;
  padding-inline-end: 2.5rem;
}

.plan-dialog__meta { font-size: 0.9rem; color: var(--muted); }

.plan-dialog__sub {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-block: 1.75rem 0.8rem;
}

.plan-list {
  display: grid;
  gap: 0.7rem;
  counter-reset: day;

  & li {
    position: relative;
    padding-inline-start: 1.5rem;
    font-size: 0.95rem;

    &::before {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      top: 0.62em;
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--aqua);
    }
  }
}

.plan-includes {
  display: grid;
  gap: 0.5rem;

  & li {
    position: relative;
    padding-inline-start: 1.6rem;
    font-size: 0.93rem;
    color: var(--muted);

    &::before {
      content: "";
      position: absolute;
      inset-inline-start: 0;
      top: 0.42em;
      width: 11px;
      height: 6px;
      border-inline-start: 2px solid var(--teal);
      border-bottom: 2px solid var(--teal);
      rotate: -45deg;
    }
  }
}

.plan-form {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-tint);
}

.plan-form__title { font-weight: 700; margin-bottom: 0.8rem; }

.plan-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;

  & input {
    flex: 1 1 14rem;
    padding: 0.72rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
    font-size: 0.94rem;

    &:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 16%, transparent); }
  }
}

.plan-form__note { margin-top: 0.65rem; font-size: 0.82rem; color: var(--muted); }

.plan-dialog .form__status { margin-top: 0.9rem; text-align: left; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.faq .section__head { margin-bottom: 0; }

.accordion { display: grid; gap: 0.75rem; }

.acc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);

  &[open] { border-color: var(--aqua); box-shadow: var(--shadow-sm); }
  &:hover { border-color: var(--aqua); }

  & summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.25rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    list-style: none;

    &::-webkit-details-marker { display: none; }

    &::after {
      content: "";
      flex: none;
      width: 11px;
      height: 11px;
      border-right: 2px solid var(--teal);
      border-bottom: 2px solid var(--teal);
      rotate: 45deg;
      translate: 0 -3px;
      transition: rotate 0.3s var(--ease);
    }
  }

  &[open] summary::after { rotate: 225deg; translate: 0 2px; }
}

.acc__body {
  padding: 0 1.25rem 1.2rem;

  & p { font-size: 0.93rem; color: var(--muted); text-wrap: pretty; }
}

/* ---------- Подвал ---------- */
.footer {
  background: #071e2c;
  color: color-mix(in srgb, #eaf4f8 78%, transparent);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 1.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr;
  gap: clamp(1.75rem, 3vw, 3.5rem);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid color-mix(in srgb, #eaf4f8 12%, transparent);
}

.footer .logo__text { color: #fff; display: inline-block; margin-bottom: 0.85rem; }
.footer__brand p { font-size: 0.92rem; max-width: 28rem; }

.footer h3 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--aqua);
  margin-bottom: 1rem;
}

.footer__nav li + li { margin-top: 0.55rem; }
.footer__contacts p + p { margin-top: 0.9rem; }
.footer__addr { font-size: 0.88rem; color: color-mix(in srgb, #eaf4f8 60%, transparent); }

.footer a {
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);

  &:hover { color: var(--sand); }
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in srgb, #eaf4f8 10%, transparent);
  font-size: 0.85rem;
  color: color-mix(in srgb, #eaf4f8 55%, transparent);
}

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  translate: 0 24px;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
}

.reveal.is-visible { opacity: 1; translate: 0 0; }

.why__grid .reveal:nth-child(2), .dest-grid .reveal:nth-child(2), .stories__grid .reveal:nth-child(2), .accordion .reveal:nth-child(2) { transition-delay: 0.08s; }
.why__grid .reveal:nth-child(3), .dest-grid .reveal:nth-child(3), .stories__grid .reveal:nth-child(3), .accordion .reveal:nth-child(3) { transition-delay: 0.16s; }
.why__grid .reveal:nth-child(4), .dest-grid .reveal:nth-child(4), .accordion .reveal:nth-child(4) { transition-delay: 0.24s; }
.accordion .reveal:nth-child(5) { transition-delay: 0.32s; }

/* ---------- Адаптив ---------- */
@media (width <= 1024px) {
  .searchbar { grid-template-columns: repeat(2, 1fr); }
  .searchbar .btn { grid-column: 1 / -1; }
  .request__grid, .faq__inner { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (width <= 860px) {
  .burger { display: block; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem var(--gutter) 1.75rem;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    translate: 0 -130%;
    visibility: hidden;
    transition: translate 0.4s var(--ease), visibility 0.4s;
  }

  .nav.is-open { translate: 0 0; visibility: visible; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; font-size: 1.05rem; }

  .nav__list a {
    display: block;
    padding-block: 0.85rem;
    border-bottom: 1px solid var(--line);
    opacity: 1;

    &::after { display: none; }
  }

  .nav__cta { margin-top: 1.15rem; }
  .hero { min-height: auto; }
  .filters { flex-direction: column; align-items: stretch; }
}

@media (width <= 620px) {
  .searchbar { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .field--half { grid-column: 1 / -1; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.25rem 2rem; }
}

/* ---------- Reduced motion ---------- */
@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;
  }

  .reveal { opacity: 1; translate: none; }
}

/* ---------- Печать ---------- */
@media print {
  .site-header, .burger, .searchbar, .hero__scene { display: none; }
  body { background: #fff; color: #000; }
  .reveal, .tour { opacity: 1; translate: none; animation: none; }
}

/* ---------- Межстраничные переходы ----------
   Плавный переход между витриной и работой.
   Baseline с 14.10.2025; без поддержки — обычная навигация. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
