/* TripDip. Мобильная вёрстка по умолчанию, шире — через min-width.
   Цвета сняты с логотипа (design/e8f9c3e2-….png, 29.09.2026): бирюза «Trip», коралл→оранжевый «Dip»,
   жёлтый солнца, глубокий бирюзовый подписи. */
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/static/fonts/nunito-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap;
  src: url("/static/fonts/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --teal: #0ba8ba;
  --teal-light: #14c6c8;
  --teal-text: #087f96;     /* бирюза для текста на белом: контраст ≥ 4.5 */
  --teal-deep: #0a5f7c;     /* подпись логотипа */
  --coral: #fb5a5a;
  --orange: #fa7a48;
  --sun: #fdc034;
  --hot: linear-gradient(100deg, var(--coral), var(--orange));
  --ink: #0d2f40;
  --muted: #5a7080;
  --bg: #f3f9fa;
  --tint: #e6f5f6;
  --card: #ffffff;
  --line: #dcebee;
  --good: #14936a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(13, 47, 64, .06), 0 8px 24px rgba(13, 47, 64, .07);
  --font-head: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }  /* иначе display у .btn и других перебивает hidden из скриптов */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--teal-text); }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 4.2vw, 2.9rem); font-weight: 900; }
h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); font-weight: 900; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.i { width: 18px; height: 18px; flex: none; vertical-align: -3px; }

/* Верхняя полоса */
.topline { background: var(--tint); font-size: .85rem; color: var(--teal-deep); }
.topline__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 34px; }
.topline__note { display: flex; align-items: center; gap: 6px; }
.topline__tg { display: flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--teal-deep); }

/* Шапка */
.top { background: #fff; box-shadow: 0 1px 0 var(--line); position: sticky; top: 0; z-index: 10; }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 64px; flex-wrap: wrap; }
.logo { display: block; line-height: 0; }
.logo img { height: 44px; width: auto; }
.top__toggle { display: none; }
.top__burger { width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.top__burger span, .top__burger span::before, .top__burger span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative; border-radius: 2px;
}
.top__burger span::before { position: absolute; top: -7px; }
.top__burger span::after { position: absolute; top: 7px; }
.top__nav { display: none; width: 100%; flex-direction: column; padding: 4px 0 14px; }
.top__toggle:checked ~ .top__nav { display: flex; }
.top__nav a { color: var(--ink); text-decoration: none; padding: 8px 0; font-weight: 600; }
.top__nav a:hover { color: var(--teal-text); }
.top__cta { display: inline-flex !important; align-items: center; gap: 8px; }

/* Ряд стран под шапкой */
.chips { border-top: 1px solid var(--line); background: #fff; }
.chips__row { display: flex; gap: 8px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.chips__row::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 4px 12px 4px 4px; border-radius: 99px;
  background: var(--bg); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.chip:hover, .chip[aria-current] { border-color: var(--teal); background: var(--tint); }
.chip__img { width: 28px; height: 28px; border-radius: 50%; background: var(--teal) center / cover no-repeat; }
.chip__price { color: var(--muted); font-weight: 400; font-size: .82rem; }

/* Первый экран — без фоновых фото, чтобы лента была ближе */
.hero { padding: 28px 0 8px; background: linear-gradient(180deg, #fff, var(--bg)); }
.hero__grid { display: grid; gap: 18px; align-items: center; }
.hero__title { margin-bottom: .35em; }
.hero__title em {
  font-style: normal; background: var(--hot); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { max-width: 620px; font-size: 1.05rem; color: #34505f; margin: 0; }
.hero__facts { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); }
.hero__facts ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.hero__facts li { display: flex; gap: 10px; align-items: center; font-size: .94rem; }
.hero__facts .i { color: var(--teal); }
/* Зелёная точка «данные свежие»: пульсирует кольцом, без движения — если пользователь его отключил */
.live__dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; animation: live-pulse 2s ease-out infinite; }
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
@media (prefers-reduced-motion: reduce) {
  .live__dot { animation: none; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
}

/* Лента */
.feed { padding: 18px 0 40px; }
.filter {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: #fff; border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow); margin-bottom: 26px;
}
.filter__field {
  position: relative; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px;
  padding: 6px 10px; min-width: 0; cursor: pointer; background: #fff; transition: border-color .15s, box-shadow .15s;
}
.filter__field:hover { border-color: #b9dfe4; }
.filter__field:focus-within, .filter__field.open { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(11,168,186,.14); }
.filter__field--dates { grid-column: 1 / -1; }
.filter__field > .i { color: var(--teal); width: 20px; height: 20px; }
.filter__field > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.filter__field small { font-size: .75rem; color: var(--muted); line-height: 1.2; }
.filter input, .filter select {
  font: inherit; font-weight: 600; color: var(--ink); background: transparent; border: 0; padding: 0; min-height: 24px;
  width: 100%; outline: none; cursor: pointer;
}
.range-native:not([hidden]) { display: flex; gap: 8px; }

/* Своё значение поля вместо системного — со стрелкой, как у выпадающего списка */
.dd-value {
  font: inherit; font-weight: 700; color: var(--ink); background: none; border: 0; padding: 0 22px 0 0; min-height: 24px;
  text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7080' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right center / 16px no-repeat;
}
.open .dd-value { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ba8ba' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }

/* Всплывающие списки */
.dd-pop {
  display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 40; min-width: 100%; width: max-content;
  max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 12px 36px rgba(13,47,64,.16); cursor: default;
}
.open > .dd-pop { display: block; animation: dd-in .14s ease-out; }
@keyframes dd-in { from { opacity: 0; transform: translateY(-4px); } }
.dd-opt {
  display: block; width: 100%; text-align: left; font: inherit; font-size: .95rem; color: var(--ink); background: none; border: 0;
  border-radius: 9px; padding: 8px 12px; cursor: pointer; white-space: nowrap;
}
.dd-opt:hover, .dd-opt:focus-visible { background: var(--tint); outline: none; }
.dd-opt.is-sel { color: var(--teal-text); font-weight: 700; }
.dd-opt.is-sel::after { content: "✓"; float: right; margin-left: 16px; }

/* Страны галочками */
.dd-pop--checks { min-width: 250px; padding: 6px 6px 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.check:hover { background: var(--tint); }
.check small { margin-left: auto; padding-left: 12px; color: var(--muted); font-weight: 400; font-size: .8rem; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box {
  flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #b9cdd4; background: #fff; transition: .12s;
}
.check input:checked + .check__box {
  border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(11,168,186,.25); }
.dd-pop__foot { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 6px; padding: 8px 4px; }
.dd-clear, .dd-apply { font: inherit; font-size: .9rem; font-weight: 700; border-radius: 9px; padding: 7px 14px; cursor: pointer; }
.dd-clear { background: none; border: 0; color: var(--muted); }
.dd-clear:hover { color: var(--ink); }
.dd-apply { background: var(--teal); color: #fff; border: 0; }

/* Календарь-диапазон */
.cal { width: 316px; padding: 12px; }
.cal__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cal__presets { display: flex; gap: 6px; flex-wrap: wrap; }
.cal__presets button {
  font: inherit; font-size: .82rem; font-weight: 700; color: var(--teal-deep); background: var(--tint); border: 0; border-radius: 99px;
  padding: 5px 11px; cursor: pointer;
}
.cal__presets button:hover { background: #d3eff1; }
.cal__months { display: grid; grid-template-columns: 1fr; gap: 20px; }
.cal__title { font-family: var(--font-head); font-weight: 900; font-size: 1rem; margin: 2px 0 6px; text-align: center; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button {
  width: 30px; height: 30px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.cal__nav button:hover:not(:disabled) { background: var(--tint); border-color: #b9dfe4; }
.cal__nav button:disabled { opacity: .35; cursor: default; }
.cal__nav svg { width: 16px; height: 16px; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 3px; }
.cal__dow { font-size: .68rem; font-weight: 700; color: var(--muted); text-align: center; padding: 2px 0 6px; text-transform: uppercase; }
.cal__day {
  aspect-ratio: 1; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--ink); cursor: pointer; padding: 0;
  border-radius: 9px; position: relative;
}
.cal__day:hover:not(:disabled):not(.is-start):not(.is-end) { background: var(--tint); }
.cal__day.is-off { color: #c3cfd4; cursor: default; }
.cal__day.is-empty { visibility: hidden; }
.cal__day.is-in { background: #e0f4f6; border-radius: 0; color: var(--teal-deep); }
.cal__day.is-start, .cal__day.is-end { background: var(--teal); color: #fff; font-weight: 800; }
.cal__day.is-start:not(.is-end) { border-radius: 9px 0 0 9px; }
.cal__day.is-end:not(.is-start) { border-radius: 0 9px 9px 0; }
@media (min-width: 640px) {
  .cal { width: 580px; }
  .cal__months { grid-template-columns: 1fr 1fr; }
}
.cal__hint { margin: 10px 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.filter__go { font: inherit; font-weight: 800; color: #fff; background: var(--hot); border: 0; border-radius: 12px;
  padding: 12px 20px; cursor: pointer; box-shadow: 0 6px 16px rgba(250, 106, 72, .3);
}
.feed__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 16px; }
.feed__head h2 { margin: 0 6px 0 0; }
.feed__reset { font-size: .9rem; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-size: .85rem;
  background: #fff; border: 1px solid var(--line); color: var(--muted);
}
.pill--live { background: #e8f8ee; border-color: #c9ecd6; color: #13784a; font-weight: 700; }

.grid { display: grid; gap: 16px; }
.grid--cards { grid-template-columns: 1fr; }
.grid--countries { grid-template-columns: 1fr 1fr; }
.grid--resorts { grid-template-columns: 1fr 1fr; }

/* Карточка тура */
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13,47,64,.06), 0 14px 32px rgba(13,47,64,.12); }
.card__img { display: block; aspect-ratio: 16 / 10; background: #cfe3e6 center / cover no-repeat; position: relative; }
.card__badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-family: var(--font-head); font-size: .8rem; font-weight: 800; color: #fff; padding: 4px 11px; border-radius: 99px;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.badge small { font-weight: 700; font-size: .75rem; }
.badge--discount { background: var(--hot); font-size: .95rem; }
.badge--hot { background: var(--coral); }
.badge--new { background: var(--teal); }
.badge--hit { background: var(--sun); color: #4a3200; }
.card__body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__place { margin: 0; font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.card__place .i { width: 15px; height: 15px; color: var(--teal); }
.card__place span { color: #a3b4bd; }
.card__title { font-size: 1.08rem; margin: 0; font-weight: 800; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a:hover { color: var(--teal-text); }
.card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card__rate { margin: 2px 0 0; font-size: .88rem; line-height: 1; }

/* Оценка гостей — рамка справа, отдельно от звёзд */
.score {
  flex: none; display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--teal); border-radius: 10px;
  padding: 3px 8px; background: #fff; color: var(--teal-deep);
}
.score b { font-family: var(--font-head); font-weight: 900; font-size: 1rem; }
.score--big { padding: 10px 14px; border-radius: 14px; border-width: 2px; background: rgba(255,255,255,.96); color: var(--ink); }
.score--big b {
  font-size: 1.9rem; line-height: 1; color: #fff; background: var(--teal); border-radius: 10px; padding: 8px 10px;
}
.score--big span { display: flex; flex-direction: column; line-height: 1.25; }
.score--big strong { font-family: var(--font-head); font-size: 1.15rem; font-weight: 900; }
.score--big small { font-size: .78rem; color: var(--muted); }
.card__facts { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .88rem; color: #3c5664; }
.card__facts li { display: flex; align-items: center; gap: 5px; }
.card__facts .i { width: 16px; height: 16px; color: var(--muted); }
.card__price { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.card__price p { margin: 0; flex: 1 1 auto; }
.card__price b { font-family: var(--font-head); font-size: 1.45rem; font-weight: 900; }
.card__price s { color: var(--muted); font-size: .88rem; margin-left: 4px; }
.card__price small { flex-basis: 100%; font-size: .78rem; color: var(--muted); order: 3; }
.card__save { background: #fff0ea; color: #d9481f; font-weight: 700; font-size: .82rem; padding: 4px 10px; border-radius: 8px; order: 2; }
.card__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line);
  font-size: .82rem; color: var(--muted); text-decoration: none;
}
.card__foot span:first-child { display: flex; align-items: center; gap: 6px; }
.card__foot .i { width: 16px; height: 16px; }
.card__arrow { width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--teal-text); display: grid; place-items: center; }
.card__foot:hover .card__arrow { background: var(--teal); color: #fff; }
.stars { color: var(--sun); letter-spacing: 1px; font-size: .9rem; }

/* Блоки */
.block { padding: 36px 0; }
.block--tight { padding: 8px 0; }
.block--tint { background: var(--tint); }
.block--dark { background: var(--teal-deep); color: #fff; }
.block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 16px; }
.block__head h2 { margin: 0; }
.block__head p { margin: 0; }

/* Баннер Telegram */
.tg-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 18px 20px; border-radius: 20px;
  background: linear-gradient(100deg, #e3f5fc, #eafaf8); border: 1px solid #cdeaf1; color: var(--ink); text-decoration: none;
}
.tg-banner img { flex: none; }
.tg-banner > span:nth-child(2) { flex: 1 1 260px; display: flex; flex-direction: column; gap: 2px; }
.tg-banner b { font-family: var(--font-head); font-size: 1.3rem; font-weight: 900; }
.tg-banner .btn { margin: 0; }

/* Страны */
.country {
  min-height: 150px; border-radius: var(--radius); padding: 14px; color: #fff; text-decoration: none;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)) center / cover no-repeat;
}
.country__name { font-family: var(--font-head); font-size: 1.35rem; font-weight: 900; }
.country__meta { font-size: .85rem; opacity: .9; }
.country__price { font-weight: 800; color: #ffd9a8; }

/* Список отелей */
.hlist { display: flex; flex-direction: column; gap: 10px; }
.hrow {
  display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; align-items: center;
  background: var(--card); border-radius: var(--radius); padding: 10px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow);
}
.hrow__img { grid-row: span 2; width: 72px; height: 72px; border-radius: 12px; background: #cfe3e6 center / cover no-repeat; }
.hrow__body { display: flex; flex-direction: column; min-width: 0; }
.hrow__name { font-weight: 700; }
.hrow__meta { color: var(--muted); font-size: .88rem; }
.hrow__meta em { color: var(--good); font-style: normal; }
.hrow__price { font-weight: 800; white-space: nowrap; font-family: var(--font-head); }

/* Курорты */
.resort {
  background: var(--card); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.resort__name { font-weight: 800; }
.resort__price { font-weight: 800; color: var(--teal-text); }

/* Поиск Травелаты */
.search { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }

/* Как мы ищем цены */
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 16px; }
.steps li { counter-increment: s; background: rgba(255,255,255,.08); border-radius: var(--radius); padding: 16px 16px 16px 58px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--hot); color: #fff; font-weight: 800; display: grid; place-items: center;
}

/* Заголовок страницы */
.page-head { padding: 28px 0 8px; }
.page-head--hotel { background: linear-gradient(180deg, rgba(10,60,80,.5), rgba(10,60,80,.9)), var(--cover, var(--teal-deep)) center / cover; color: #fff; padding: 36px 0 28px; }
.page-head--hotel .muted, .page-head--hotel .crumbs, .page-head--hotel .crumbs a { color: rgba(255,255,255,.88); }
.page-head--with-hot { padding-bottom: 72px; }
.hotel__main h2 { margin-top: 1.2em; }
.hotel__main h2:first-child { margin-top: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.hotel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; }
.hotel-head h1 { margin-bottom: .4em; }
.hotel-head__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 99px; font-size: .88rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(4px);
}
.tag .i { width: 16px; height: 16px; }
.tag--hit { background: var(--sun); border-color: var(--sun); color: #4a3200; font-weight: 700; }


/* Карта */
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--tint); aspect-ratio: 16 / 10; max-height: 420px; width: 100%; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__note { font-size: .85rem; margin-top: 8px; }

/* Отель */
.hotel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.hotel > * { min-width: 0; }  /* иначе ширину колонки задаёт самый широкий потомок — на телефоне горизонтальная прокрутка */
.price-box { background: var(--card); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; }
.price-box p { margin: 0 0 6px; }
.price-box__price { font-family: var(--font-head); font-size: 2.1rem; font-weight: 900; }
.btn {
  display: inline-block; margin-top: 8px; background: var(--hot); color: #fff; text-decoration: none; font-weight: 800;
  padding: 12px 20px; border-radius: 12px; box-shadow: 0 6px 16px rgba(250, 106, 72, .28);
}
.history { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.history li { background: var(--card); padding: 6px 10px; border-radius: 8px; box-shadow: var(--shadow); }
.history span { color: var(--muted); margin-right: 4px; }
.prose { max-width: 760px; margin-top: 28px; }
.prose table { border-collapse: collapse; width: 100%; background: var(--card); border-radius: var(--radius); overflow: hidden; }
.prose td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose td:first-child { color: var(--muted); width: 40%; }
.prose thead { display: none; }

/* Подвал */
.foot { background: var(--ink); color: rgba(255,255,255,.8); padding: 32px 0; font-size: .9rem; }
.foot__grid { display: grid; gap: 20px; }
.foot a { color: #fff; display: block; margin: 3px 0; }
.foot .logo--foot { display: inline-block; background: #fff; border-radius: 12px; padding: 6px 10px; }
.foot .logo--foot img { height: 36px; }
.foot__tg { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 700; }
.foot__title { color: #fff; font-weight: 800; margin: 0 0 6px; }

/* На телефоне пункты первого экрана не показываем: лента должна начинаться на первом экране,
   а «Обновлено» есть и у заголовка ленты. */
/* Короткие и полные варианты текста: верхняя строка на телефоне должна помещаться в одну строку */
.narrow { display: none; }
@media (max-width: 639px) {
  .wide { display: none; }
  .narrow { display: inline; }
  .topline__row { white-space: nowrap; }
  .hero__facts { display: none; }
  .hero { padding-bottom: 4px; }
}
@media (min-width: 640px) {
  .grid--cards { grid-template-columns: 1fr 1fr; }
  .grid--countries { grid-template-columns: repeat(3, 1fr); }
  .grid--resorts { grid-template-columns: repeat(3, 1fr); }
  .filter { grid-template-columns: repeat(3, 1fr); }
  .filter__field--dates { grid-column: auto; }
  .filter__go { grid-column: auto; }
  .hrow { grid-template-columns: 72px 1fr auto; }
  .hrow__img { grid-row: auto; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot__grid { grid-template-columns: 1fr 1fr 2fr; }
}
@media (min-width: 960px) {
  .top__burger { display: none; }
  .top__nav { display: flex !important; width: auto; flex-direction: row; align-items: center; gap: 26px; padding: 0; }
  .top__cta { background: var(--hot); color: #fff !important; padding: 9px 18px 9px 10px !important; border-radius: 12px; box-shadow: 0 6px 16px rgba(250,106,72,.28); }
  .logo img { height: 48px; }
  .hero { padding: 36px 0 12px; }
  .hero__grid { grid-template-columns: 1.35fr 1fr; gap: 40px; }
  .filter { grid-template-columns: 1.4fr 1.3fr 1fr 1.3fr auto; }
  .grid--cards { grid-template-columns: repeat(3, 1fr); }
  .grid--countries { grid-template-columns: repeat(5, 1fr); }
  .grid--resorts { grid-template-columns: repeat(4, 1fr); }
  .country { min-height: 220px; }
  .hotel { grid-template-columns: minmax(0, 1fr) 320px; }
  .price-box { grid-column: 2; grid-row: 1; position: sticky; top: 84px; }
  .hotel__main { grid-column: 1; grid-row: 1; }
}
@media (min-width: 1180px) {
  .grid--cards { grid-template-columns: repeat(4, 1fr); }
}

.more { text-align: center; margin: 22px 0 0; }
.btn--ghost { background: #fff; color: var(--teal-text); border: 2px solid var(--teal); box-shadow: none; cursor: pointer; font: inherit; font-weight: 800; margin: 0; }
.btn--ghost:disabled { opacity: .6; cursor: default; }
.empty { background: var(--card); border-radius: var(--radius); padding: 22px; text-align: center; color: var(--muted); }

/* Прокрутка к #feed после фильтра: закреплённая шапка не закрывает заголовок */
[id] { scroll-margin-top: 84px; }

/* Проверка цены на странице отеля */
.price-box__note { font-size: .88rem; color: var(--muted); }
.price-box__note.is-up { color: #b4541a; }
.price-box__note.is-down { color: var(--good); }
/* Пометка рекламы у партнёрской кнопки (закон о рекламе, ст. 18.1); текст — travelpayouts.ad_label */
.ad-label { margin: 8px 0 0 !important; font-size: .72rem; line-height: 1.35; color: var(--muted); }
.price-box__meals { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--line); font-size: .92rem; }

/* Служебные страницы: «Как мы считаем выгоду», политика */
.block--page { padding-top: 8px; }
.prose--page { margin-top: 0; font-size: 1.02rem; }
.prose--page h2 { margin-top: 1.4em; }
.prose--page li { margin: 4px 0; }

/* Ссылки в тёмном блоке и в пунктах первого экрана */
.block--dark a { color: #9be7ee; }
.hero__facts a { color: inherit; text-decoration-color: rgba(11,168,186,.5); text-underline-offset: 3px; }

/* Блок цены: условия, ближайшие даты, другой тур */
.price-box__terms { margin-top: 10px !important; font-size: .78rem; line-height: 1.4; color: var(--muted); }
.price-box__near { margin: 6px 0 4px; font-size: .92rem; }
.price-box__near p { margin: 0 0 4px; color: var(--muted); }
.price-box__near a { display: block; padding: 3px 0; font-weight: 700; }
.price-box__alt { margin-top: 10px !important; font-size: .9rem; }

/* Подвал: ссылки на служебные страницы */
.foot__links a { display: inline-block !important; margin: 0 16px 4px 0 !important; color: rgba(255,255,255,.9); }

/* Уведомление о cookie */
.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 560px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px 12px 18px; box-shadow: 0 12px 40px rgba(13,47,64,.22); font-size: .88rem;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; }
.cookie .btn { margin: 0; padding: 9px 16px; flex: none; box-shadow: none; border: 0; cursor: pointer; font: inherit; font-weight: 800; }

/* ===== Страница отеля (макет a66a7809, 30.09.2026) ===== */

/* Горящие даты — карточка, наезжающая на шапку */
.hot { position: relative; margin-top: -52px; z-index: 2; }
.hot__card { background: #fff; border-radius: 20px; box-shadow: 0 10px 40px rgba(13,47,64,.14); padding: 18px; }
.hot__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.hot__title { display: flex; align-items: center; gap: 12px; }
.hot__title h2 { margin: 0; font-size: 1.5rem; }
.hot__title p { margin: 0; font-size: .9rem; }
.hot__fire { width: 36px; height: 36px; color: var(--orange); filter: drop-shadow(0 4px 8px rgba(250,122,72,.35)); }
.hot__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.hot__chips .pill { color: var(--teal-deep); font-weight: 700; background: var(--tint); border-color: transparent; }
.hot__chips .i { width: 16px; height: 16px; }
.hot__body { display: grid; gap: 14px; }
.hot__dates { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; }
.hot__dates::-webkit-scrollbar { display: none; }
.hot__date {
  flex: 1 0 150px; text-align: left; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid var(--line);
  border-radius: 14px; padding: 10px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.hot__date:hover { border-color: #b9dfe4; }
.hot__date.is-sel { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(251,90,90,.12); background: #fff8f6; }
.hot__day { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .88rem; color: var(--muted); }
.hot__day em { font-style: normal; font-size: .72rem; font-weight: 800; color: #fff; background: var(--hot); border-radius: 99px; padding: 2px 8px; }
.hot__date b { display: block; font-family: var(--font-head); font-size: 1.45rem; font-weight: 900; margin-top: 2px; white-space: nowrap; }
.hot__go .btn { margin: 0; display: flex; justify-content: center; align-items: center; gap: 8px; }
.btn .i { width: 18px; height: 18px; }

/* Коротко об отеле: заголовок с навигацией, карточки с цветными иконками */
.block--hotel { padding-top: 28px; }
.about__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 16px; }
.about__head h2 { margin: 0 !important; }
.topics {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding-bottom: 2px;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
.topics::-webkit-scrollbar { display: none; }
.topics a {
  flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: #fff;
  border: 1px solid var(--line); color: var(--teal-deep); font-size: .85rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.topics a:hover { border-color: var(--teal); background: var(--tint); }
.topics .i { width: 16px; height: 16px; color: var(--teal); }
.facts { display: grid; grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
.fact { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); }
.fact p { margin: 0; }
.fact__label { font-size: .82rem; color: var(--muted); }
.fact__value { font-size: .95rem; line-height: 1.4; }
.fact__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.fact__icon .i { width: 24px; height: 24px; }
.fact__icon--sun { background: #fff4d6; color: #f0a500; }
.fact__icon--teal { background: #e0f6f7; color: var(--teal); }
.fact__icon--sky { background: #e3f1fd; color: #2f8fe0; }
.fact__icon--orange { background: #fff0e4; color: #f27a2a; }
.fact__icon--violet { background: #efeafd; color: #7255d8; }
.fact__icon--coral { background: #ffece9; color: #ec5446; }
.fact__icon--pink { background: #fde9f3; color: #d6478f; }
.fact__icon--green { background: #e4f6ea; color: #1f9d55; }
.fact__icon--slate { background: #eaf0f3; color: #58707e; }
.topic__head { min-height: 52px; }

/* Блок цены справа */
.price-box__label { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px !important; }
.price-box__facts { list-style: none; margin: 8px 0 12px; padding: 0; display: grid; gap: 8px; font-size: .95rem; }
.price-box__facts li { display: flex; align-items: center; gap: 10px; }
.price-box__facts .i { color: var(--teal-deep); }
.price-box .btn { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 12px 14px; font-size: .95rem; white-space: nowrap; }
.price-box__note.is-ok { display: flex; align-items: center; gap: 8px; background: #e8f8ee; color: #13784a; border-radius: 10px; padding: 8px 12px; }
.price-box__note.is-ok::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #22c55e; color: #fff; font-size: .75rem; font-weight: 900; flex: none; }

/* Цены по датам заезда */
.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 18px; margin-bottom: 28px; }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 8px; }
.panel__title { flex: 1 1 240px; }
.panel__title h2 { margin: 0 !important; }
.panel__title p { margin: 2px 0 0; font-size: .88rem; }
.panel__icon .i { width: 34px; height: 34px; color: var(--teal); }
.chart-nav { display: flex; align-items: center; gap: 6px; }
.chart-nav .pill { color: var(--ink); font-weight: 600; }
.chart-nav button {
  width: 36px; height: 36px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.chart-nav button:hover { background: var(--tint); }
.chart {
  display: flex; align-items: flex-end; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 8px 2px 4px; scrollbar-width: thin;
}
.chart__col {
  flex: 0 0 64px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  position: relative; text-decoration: none; color: var(--ink); scroll-snap-align: start;
}
.chart__price { font-size: .72rem; font-weight: 700; white-space: nowrap; margin-bottom: 4px; }
.chart__bar { flex: none; width: 100%; background: #a6dde2; border-radius: 8px 8px 0 0; transition: background .15s; }
.chart__col:hover .chart__bar { background: #7fd0d8; }
.chart__date { font-size: .75rem; margin-top: 6px; white-space: nowrap; }
.chart__wd { font-size: .7rem; color: var(--muted); }
.chart__wd.is-weekend { color: var(--coral); }
.chart__col--min .chart__bar { background: linear-gradient(180deg, #ff8b7b, var(--coral)); }
.chart__col--min .chart__price, .chart__col--min .chart__date { color: #d9362b; font-weight: 800; }
.chart__best {
  position: relative; margin-bottom: 8px; white-space: nowrap; font-size: .7rem; font-weight: 800; color: #fff; background: var(--coral);
  border-radius: 8px; padding: 3px 8px;
}
.chart__best::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-bottom: 0; border-top-color: var(--coral); }

/* Телефон: «Горящие даты» сеткой 2×2 и вместо блока цены (он повторял бы их сразу ниже) */
.hot__note { margin: 0 0 10px; font-size: .85rem; }
@media (max-width: 959px) {
  .hot ~ .block--hotel .price-box { display: none; }
}
@media (max-width: 639px) {
  .hot__dates { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .hot__date b { font-size: 1.25rem; }
}
@media (min-width: 960px) { .hot__note { display: none !important; } }
@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact--wide { grid-column: 1 / -1; }
  .hot__card { padding: 20px 24px; }
}
@media (min-width: 960px) {
  .hot__body { grid-template-columns: minmax(0, 1fr) 300px; align-items: center; }
  .hot__date { flex-basis: 0; }
}

/* Текст отеля карточками: иконка и заголовок слева, текст справа; подложка — лёгкий оттенок цвета иконки */
.about { margin-top: 28px; }
.about > h2 { margin-bottom: .4em; }
.about__intro { font-size: 1.05rem; line-height: 1.6; max-width: 820px; margin-bottom: 18px; }
.about__intro p { margin: 0 0 .7em; }
.topic {
  display: grid; gap: 10px 20px; background: #fff; border-radius: 18px; padding: 16px 18px; margin-bottom: 12px;
  box-shadow: var(--shadow); scroll-margin-top: 84px; border: 1px solid rgba(13,47,64,.04);
}
.topic__head { display: flex; align-items: center; gap: 14px; }
.topic__head h2 { margin: 0 !important; font-size: 1.2rem; }
.topic__head .fact__icon { width: 52px; height: 52px; border-radius: 14px; }
.topic__head .fact__icon .i { width: 28px; height: 28px; }
.topic__body { font-size: .96rem; line-height: 1.6; color: #24414f; }
.topic__body p { margin: 0 0 .6em; }
.topic__body p:last-child, .topic__body ul:last-child { margin-bottom: 0; }
.topic__body ul { margin: 0 0 .6em; padding-left: 1.2em; }
.topic--sun { background: linear-gradient(100deg, #fffaec, #fff 55%); }
.topic--teal { background: linear-gradient(100deg, #effafa, #fff 55%); }
.topic--sky { background: linear-gradient(100deg, #f0f7fe, #fff 55%); }
.topic--orange { background: linear-gradient(100deg, #fff6ee, #fff 55%); }
.topic--violet { background: linear-gradient(100deg, #f6f3fe, #fff 55%); }
.topic--coral { background: linear-gradient(100deg, #fff4f2, #fff 55%); }
.topic--pink { background: linear-gradient(100deg, #fef3f8, #fff 55%); }
.topic--green { background: linear-gradient(100deg, #f0faf3, #fff 55%); }
.topic--slate { background: linear-gradient(100deg, #f3f6f8, #fff 55%); }
@media (min-width: 760px) {
  .topic { grid-template-columns: 230px minmax(0, 1fr); align-items: start; padding: 18px 22px; }
}

/* Посадочные стран и курортов: короткая шапка, сразу лента */
.page-head--landing { padding: 26px 0 4px; background: linear-gradient(180deg, #fff, var(--bg)); }
.page-head--landing h1 { margin-bottom: .25em; }
.landing__lead { margin: 0; color: var(--muted); font-size: 1rem; }
@media (min-width: 960px) {
  .filter--no-place { grid-template-columns: 1.6fr 1fr 1.3fr auto; }
}

/* Вопросы о горящих турах (главная) */
.faq__list { display: grid; gap: 12px; }
.faq__item { background: #fff; border-radius: 16px; padding: 16px 18px; box-shadow: var(--shadow); }
.faq__item h3 { font-size: 1.05rem; margin: 0 0 6px; }
.faq__item p { margin: 0; color: #34505f; line-height: 1.55; }
@media (min-width: 760px) { .faq__list { grid-template-columns: 1fr 1fr; } }
.hero__title { font-size: clamp(1.8rem, 3.6vw, 2.55rem); }
