/* Главная v2 (конверсионная). Только токены из style.css; светлая тема, зоны нажатия ≥44px. */

/* ---------- первый экран ---------- */
.h2-hero{position:relative;padding:0 0 clamp(28px,4vw,56px);isolation:isolate}
.h2-hero-bg{position:relative;height:clamp(170px,46vw,260px);overflow:hidden}
.h2-hero-bg img{width:100%;height:100%;object-fit:cover}
.h2-hero-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(251,250,247,0) 40%,var(--bg) 100%)}
.h2-hero-in{display:grid;gap:24px;margin-top:-56px;position:relative}
.h2-hero-txt .eyebrow{margin-bottom:10px}
.h2-hero-txt h1{font-size:var(--fs-h1);line-height:1.12;letter-spacing:-.02em;text-wrap:balance}
.h2-hero-txt .lead{margin-top:14px;color:var(--ink-2);font-size:1.0625rem;max-width:52ch}
.h2-hero-txt .score{margin-top:16px}

.h2-pick{background:var(--paper);border:1px solid var(--line);border-radius:20px;padding:20px;box-shadow:0 2px 4px rgba(30,42,45,.04),0 18px 48px -18px rgba(30,42,45,.22);display:grid;gap:16px}
.h2-pick-h{font-size:1.25rem;line-height:1.25}
.h2-pick-sub{margin-top:-10px;font-size:.9rem;color:var(--ink-3)}
.h2-f{border:0;margin:0;padding:0;min-width:0}
.h2-f legend,.h2-l{display:block;font-size:.8125rem;font-weight:500;color:var(--ink-2);margin-bottom:8px;padding:0}
.h2-opts{display:flex;flex-wrap:wrap;gap:8px}
.h2-opt{position:relative;cursor:pointer}
.h2-opt input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.h2-opt span{display:inline-flex;align-items:center;min-height:44px;padding:0 14px;border:1px solid var(--line-2);border-radius:999px;background:var(--paper);font-size:.9rem;color:var(--ink-2);transition:background-color .15s,border-color .15s,color .15s}
.h2-opt input:checked+span{background:var(--teal-wash);border-color:var(--teal);color:var(--teal-ink);font-weight:500}
.h2-opt input:focus-visible+span{outline:2px solid var(--teal);outline-offset:2px}
@media (hover:hover) and (pointer:fine){.h2-opt:hover span{border-color:var(--teal)}}
.h2-row{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:end}
.h2-date input{width:100%;min-height:48px;padding:0 12px;border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--bg);color:var(--ink);font-size:1rem}
.h2-date input:focus-visible{outline:2px solid var(--teal);outline-offset:1px}
.h2-stp{display:flex;align-items:center;border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--bg);min-height:48px}
.h2-stp button{display:grid;place-items:center;width:44px;height:46px;border:0;background:none;cursor:pointer;color:var(--teal-ink)}
.h2-stp button:disabled{color:var(--line-2);cursor:default}
.h2-stp output{min-width:28px;text-align:center;font-weight:600;font-variant-numeric:tabular-nums}
.h2-send{display:grid;gap:10px}
.h2-send .btn{width:100%;min-height:52px;justify-content:center}
.h2-send .btn-main{font-size:1.0625rem}
.h2-note{display:flex;align-items:center;justify-content:center;gap:6px;font-size:.8125rem;color:var(--ink-3);margin-top:-4px}
.h2-note svg.i{width:15px;height:15px;color:var(--teal)}

@media (min-width:640px){
  .h2-send{grid-template-columns:1fr auto}
  .h2-send .btn-line{width:auto;padding-inline:20px}
}
@media (min-width:900px){
  .h2-hero{padding:clamp(32px,4vw,56px) 0 clamp(48px,5vw,72px)}
  .h2-hero-bg{position:absolute;top:0;right:0;bottom:0;width:58%;height:auto;z-index:-1;border-bottom-left-radius:32px}
  .h2-hero-bg::after{background:linear-gradient(90deg,var(--bg) 0%,rgba(251,250,247,.55) 32%,rgba(251,250,247,0) 62%)}
  .h2-hero-in{margin-top:0;grid-template-columns:minmax(0,1fr) 440px;gap:clamp(32px,5vw,72px);align-items:center}
  .h2-hero-txt{padding:24px 0}
  .h2-pick{padding:24px 26px}
}

/* ---------- полоса доверия ---------- */
.h2-trust{border-block:1px solid var(--line);background:var(--paper)}
.h2-trust-in{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding-block:10px;scroll-snap-type:x proximity}
.h2-trust-in::-webkit-scrollbar{display:none}
.h2-trust-in>li{flex:none;scroll-snap-align:start}
.h2-trust-in>li,.h2-trust-in>li>a{display:flex;align-items:center;gap:10px;min-height:48px;padding-right:18px}
.h2-trust-in svg.i{width:22px;height:22px;color:var(--teal)}
.h2-trust-in svg.i.fill{color:var(--star)}
.h2-trust-in b{display:block;font-size:.9rem;font-weight:600;line-height:1.25}
.h2-trust-in small{display:block;font-size:.78rem;color:var(--ink-3);line-height:1.3}
@media (min-width:1024px){.h2-trust-in{justify-content:space-between;overflow:visible}.h2-trust-in>li{padding-right:0}}

/* ---------- заголовки секций с действием справа ---------- */
.h2-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 24px;margin-bottom:20px}
.h2-head h2{font-size:var(--fs-h2);line-height:1.2}
.h2-anchor{position:relative;top:-80px;display:block}

/* ---------- экскурсии по курортам ---------- */
.h2-tours{padding-top:clamp(40px,6vw,72px)}
.h2-tabs{display:inline-flex;padding:4px;gap:4px;border:1px solid var(--line-2);border-radius:999px;background:var(--paper)}
.h2-tabs button{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border:0;border-radius:999px;background:none;font-weight:500;color:var(--ink-2);cursor:pointer;transition:background-color .15s,color .15s}
.h2-tabs button small{font-size:.75rem;font-weight:600;min-width:24px;padding:1px 7px;border-radius:999px;background:var(--teal-wash);color:var(--teal-ink)}
.h2-tabs button[aria-selected=true]{background:var(--teal);color:#fff}
.h2-tabs button[aria-selected=true] small{background:rgba(255,255,255,.2);color:#fff}
@media (max-width:639px){.h2-tabs{display:flex;width:100%}.h2-tabs button{flex:1;justify-content:center;padding:0 10px}}
.h2-pan-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 6px;font-size:.9rem;color:var(--ink-3);margin-bottom:14px}
.h2-star{display:inline-flex;align-items:center;gap:3px;color:var(--ink)}
.h2-star svg.i{width:14px;height:14px;color:var(--star)}
.h2-cats{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;margin:0 calc(-1 * var(--pad)) 22px;padding:0 var(--pad)}
.h2-cats::-webkit-scrollbar{display:none}
.h2-cats a{flex:none;display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid var(--line-2);border-radius:999px;background:var(--paper);font-size:.9rem;color:var(--ink);transition:border-color .15s}
.h2-cats a svg.i{width:18px;height:18px;color:var(--teal)}
.h2-cats a small{font-size:.75rem;color:var(--ink-3)}
@media (hover:hover) and (pointer:fine){.h2-cats a:hover{border-color:var(--teal)}}
@media (min-width:1024px){.h2-cats{flex-wrap:wrap;overflow:visible;margin-inline:0;padding:0}}
.h2-tours .top{display:flex;flex-direction:column}
.h2-tours .top .body{display:flex;flex-direction:column;flex:1}
.h2-acts{margin-top:auto;padding-top:14px;display:grid;grid-template-columns:auto 1fr;gap:8px}
.h2-acts .btn{min-height:44px;justify-content:center;padding-inline:14px}
.h2-pan .pop-more{margin-top:24px}
@media (min-width:768px){.h2-tours .top-track{row-gap:36px}}

/* ---------- отзывы ---------- */
.h2-rev{padding-top:clamp(40px,6vw,72px)}
.h2-score{display:inline-flex;align-items:center;gap:12px;min-height:44px}
.h2-score .big{font-size:2.25rem;font-weight:600;line-height:1}
.h2-score .stars{display:flex;gap:2px;color:var(--star)}
.h2-score .stars svg{width:16px;height:16px}
.h2-score small{display:block;font-size:.8125rem;color:var(--ink-3)}
@media (min-width:900px){.h2-rv-track{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* ---------- как забронировать + гарантии ---------- */
.h2-how{padding-top:clamp(40px,6vw,72px)}
.h2-how-in{display:grid;gap:28px;padding:clamp(20px,4vw,40px);border:1px solid var(--teal-line);border-radius:24px;background:var(--teal-wash)}
.h2-how-in h2{font-size:var(--fs-h2);line-height:1.2;margin-bottom:20px}
.h2-steps{display:grid;gap:16px;margin-bottom:24px}
.h2-steps li{display:grid;grid-template-columns:40px 1fr;gap:14px;align-items:start}
.h2-steps .n{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;background:var(--teal);color:#fff;font-weight:600}
.h2-steps b{display:block;font-weight:600;margin-top:7px}
.h2-steps p{color:var(--ink-2);font-size:.9375rem;line-height:1.55}
.h2-how .cta{display:flex;flex-wrap:wrap;gap:10px}
.h2-guar{display:grid;gap:12px}
.h2-guar li{display:grid;grid-template-columns:44px 1fr;gap:14px;padding:16px;border-radius:var(--r);background:var(--paper);border:1px solid var(--line)}
.h2-guar .ico{display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--teal-wash);color:var(--teal)}
.h2-guar .ico svg.i{width:22px;height:22px}
.h2-guar b{display:block;font-weight:600}
.h2-guar p{font-size:.875rem;color:var(--ink-2);line-height:1.55;margin-top:2px}
@media (min-width:900px){.h2-how-in{grid-template-columns:1fr 1fr;gap:48px;align-items:start}.h2-guar{grid-template-columns:1fr 1fr}}

/* ---------- SEO-текст: свёрнут, но в разметке полностью ---------- */
.h2-seo-body.clamp{max-height:9.5em;overflow:hidden;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent);mask-image:linear-gradient(180deg,#000 55%,transparent)}
.h2-seo-more{margin-top:12px}

/* правки: переполнение формы и вкладки на узких экранах */
.h2-pick>*,.h2-row>*{min-width:0}
.h2-send .btn{white-space:normal;text-align:center}
@media (min-width:900px){.h2-send{grid-template-columns:1fr}.h2-send .btn-line{width:100%}}
.h2-tabs button{white-space:nowrap}
@media (max-width:639px){.h2-tabs button{font-size:.9rem;gap:6px;padding:0 8px}}

/* правка блока «3 шага + гарантии»: без отступа списка, карточки с иконкой сверху, ровная высота */
.h2-steps{padding:0;list-style:none}
.h2-guar{grid-template-columns:1fr 1fr;gap:12px}
.h2-guar li{display:flex;flex-direction:column;gap:6px;padding:18px;grid-template-columns:none}
.h2-guar .ico{margin-bottom:6px}
.h2-guar b{font-size:1rem;line-height:1.3}
.h2-guar p{margin:0}
.h2-guar-note{margin-top:14px;font-size:.8125rem;color:var(--ink-3);line-height:1.5}
@media (max-width:379px){.h2-guar{grid-template-columns:1fr}}
@media (min-width:900px){.h2-how-in{align-items:center}}
@media (max-width:639px){
  .h2-guar{grid-template-columns:1fr;gap:10px}
  .h2-guar li{display:grid;grid-template-columns:44px 1fr;column-gap:14px;row-gap:2px;padding:14px 16px;align-items:center}
  .h2-guar .ico{grid-row:span 2;margin:0}
  .h2-guar b,.h2-guar p{grid-column:2}
}

/* ===== первый экран v2.1: яркое фото на весь экран, белый текст на мягком затемнении ===== */
.h2-hero{padding:clamp(28px,5vw,64px) 0 clamp(32px,5vw,72px);color:#fff;background:#0E5C63}
.h2-hero-bg{position:absolute;inset:0;height:auto;width:auto;z-index:-1;border-radius:0}
.h2-hero-bg img{width:100%;height:100%;object-fit:cover;object-position:50% 60%}
.h2-hero-bg::after{background:linear-gradient(180deg,rgba(8,38,44,.55) 0%,rgba(8,38,44,.25) 45%,rgba(8,38,44,.1) 100%)}
.h2-hero-in{margin-top:0}
.h2-hero-txt{padding:0}
.h2-hero-txt .eyebrow{color:#CFF3EF;font-weight:500}
.h2-hero-txt h1{color:#fff;text-shadow:0 2px 24px rgba(0,0,0,.25)}
.h2-hero-txt h1 .nb{color:#FFE7A8}
.h2-hero-txt .lead{color:rgba(255,255,255,.92);text-shadow:0 1px 12px rgba(0,0,0,.25)}
.h2-hero-txt .score{background:rgba(255,255,255,.95);border-color:transparent}
.h2-hot{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:18px}
.h2-hot-l{font-size:.8125rem;color:rgba(255,255,255,.85);margin-right:2px}
.h2-hot a{display:inline-flex;align-items:center;gap:6px;min-height:40px;padding:0 14px;border-radius:999px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);color:#fff;font-size:.875rem;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background-color .15s}
.h2-hot a b{font-weight:600}
.h2-hot a .pr .pre{color:rgba(255,255,255,.8)}
@media (hover:hover) and (pointer:fine){.h2-hot a:hover{background:rgba(255,255,255,.28)}}
.h2-pick{color:var(--ink)}
@media (min-width:900px){
  .h2-hero{padding:clamp(48px,6vw,88px) 0}
  .h2-hero-bg{width:auto;border-bottom-left-radius:0}
  .h2-hero-bg::after{background:linear-gradient(90deg,rgba(8,38,44,.62) 0%,rgba(8,38,44,.38) 38%,rgba(8,38,44,.05) 70%)}
  .h2-hero-txt{padding:0}
}
@media (prefers-reduced-transparency:reduce){.h2-hot a{background:rgba(8,38,44,.55);-webkit-backdrop-filter:none;backdrop-filter:none}}

/* ===== адаптив формы подбора ===== */
.hdr .brand{flex:none}
.hdr .brand .logo{flex:none;max-width:none}

/* 900–1023: ещё одна колонка (форма под текстом), две колонки — только с 1024 */
@media (min-width:900px) and (max-width:1023px){
  .h2-hero-in{grid-template-columns:1fr;gap:28px}
  .h2-hero-bg::after{background:linear-gradient(180deg,rgba(8,38,44,.55) 0%,rgba(8,38,44,.25) 45%,rgba(8,38,44,.1) 100%)}
}

/* планшет: поля формы в две колонки */
@media (min-width:640px) and (max-width:1023px){
  .h2-pick{grid-template-columns:1fr 1fr;column-gap:24px;padding:24px}
  .h2-pick-h,.h2-pick-sub,.h2-send,.h2-note{grid-column:1/-1}
  .h2-pick .h2-f:nth-of-type(2){grid-column:1/-1}
  .h2-row{grid-column:2;grid-row:3;align-self:start}
  .h2-pick fieldset:first-of-type{grid-column:1;grid-row:3}
  .h2-send{grid-template-columns:1fr auto}
  .h2-send .btn-line{width:auto;padding-inline:22px}
}

/* телефон */
@media (max-width:639px){
  .h2-pick{padding:18px 16px;gap:14px;border-radius:18px}
  .h2-pick-h{font-size:1.125rem}
  /* варианты — одна строка с прокруткой, без переносов */
  .h2-opts{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px;-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 24px),transparent);mask-image:linear-gradient(90deg,transparent 0,#000 12px,#000 calc(100% - 24px),transparent)}
  .h2-opts::-webkit-scrollbar{display:none}
  .h2-opt{flex:none}
  .h2-opt span{white-space:nowrap;padding:0 13px;font-size:.875rem}
  /* дата и количество людей — друг под другом */
  .h2-row{grid-template-columns:1fr;gap:12px}
  .h2-row>.h2-f:last-child{display:flex;align-items:center;justify-content:space-between;gap:12px}
  .h2-row>.h2-f:last-child .h2-l{margin:0}
  .h2-stp{min-width:150px;justify-content:space-between}
  .h2-send .btn{min-height:50px;padding-inline:12px;font-size:1rem}
  .h2-note{font-size:.75rem;text-align:center;flex-wrap:wrap}
}
@media (max-width:359px){
  .h2-pick{padding:16px 14px}
  .h2-opts{margin-inline:-14px;padding-inline:14px}
  .h2-send .btn{font-size:.9375rem}
  .h2-hot a{padding:0 12px;font-size:.8125rem}
}

/* ===== мобильная версия без горизонтальных лент (всё помещается в ширину экрана) ===== */
@media (max-width:639px){
  /* форма: варианты ровными рядами */
  .h2-opts{flex-wrap:wrap;overflow:visible;margin-inline:0;padding-inline:0;-webkit-mask-image:none;mask-image:none;gap:8px}
  .h2-opt{flex:1 1 auto}
  .h2-opt span{width:100%;justify-content:center;padding:0 10px}

  /* полоса доверия: рейтинг строкой + сетка 2×2 */
  .h2-trust-in{display:grid;grid-template-columns:1fr 1fr;gap:4px 12px;overflow:visible;padding-block:12px}
  .h2-trust-in>li:first-child{grid-column:1/-1}
  .h2-trust-in>li,.h2-trust-in>li>a{padding-right:0;min-height:44px;gap:8px}
  .h2-trust-in svg.i{width:20px;height:20px}
  .h2-trust-in b{font-size:.84rem}
  .h2-trust-in small{font-size:.74rem}

  /* вкладки и категории */
  .h2-head{margin-bottom:16px}
  .h2-cats{flex-wrap:wrap;overflow:visible;margin:0 0 18px;padding:0}
  .h2-cats a{min-height:40px;padding:0 12px;font-size:.85rem}

  /* карточки экскурсий: компактный вертикальный список */
  .h2-tours .top-track{display:grid;grid-template-columns:1fr;gap:12px;overflow:visible;margin-inline:0;padding-inline:0}
  .h2-tours .top{display:grid;grid-template-columns:112px 1fr;gap:0 14px;flex:none;padding:10px;border:1px solid var(--line);border-radius:var(--r);background:var(--paper)}
  .h2-tours .top .media{grid-row:1/3;aspect-ratio:auto;height:100%;min-height:112px;border-radius:12px}
  .h2-tours .top .media img{height:100%;object-fit:cover}
  .h2-tours .top .tags{left:16px;right:auto;top:16px}
  .h2-tours .top .tag{font-size:.7rem;padding:2px 7px}
  .h2-tours .top .body{padding:2px 0 0;min-width:0}
  .h2-tours .top .kind{font-size:.75rem}
  .h2-tours .top h3{font-size:1rem;line-height:1.3;margin-top:2px}
  .h2-tours .top .row{flex-wrap:wrap;gap:2px 10px;margin-top:6px}
  .h2-tours .top .price .now{font-size:1.125rem}
  .h2-tours .top .rate{font-size:.78rem}
  .h2-acts{grid-column:1/-1;grid-template-columns:1fr 1.4fr;padding-top:10px}
  .h2-acts .btn{min-height:44px;font-size:.9rem;padding-inline:10px}
  .h2-pan .pop-more .btn{width:100%;justify-content:center}

  /* отзывы: друг под другом, 3 шт., текст до 6 строк */
  .h2-rv-track{display:grid;grid-template-columns:1fr;gap:12px;overflow:visible;margin-inline:0;padding-inline:0;margin-bottom:20px}
  .h2-rv-track .rev{flex:none;padding:18px}
  .h2-rv-track .rev:nth-child(n+4){display:none}
  .h2-rv-track .rev p{display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden}
  .h2-rev>.wrap>.btn{width:100%;justify-content:center}

  /* пары кнопок — на всю ширину */
  .h2-how .cta,.h2 .final .cta,.h2 .faq-wrap .cta{display:grid;grid-template-columns:1fr;gap:10px}
  .h2-how .cta .btn,.h2 .final .cta .btn,.h2 .faq-wrap .cta .btn{width:100%;justify-content:center}
  .h2 .faq-wrap .cta{grid-template-columns:1fr 1fr}
}
@media (max-width:639px){
  .h2-acts{grid-template-columns:1fr;min-width:0}
  .h2-acts .btn-line{display:none}
  .h2-acts .btn{width:100%;min-width:0;white-space:nowrap}
  .h2-tours .top>*{min-width:0}
}

/* ===== поле даты: iOS Safari / Android Chrome ведут себя одинаково ===== */
.h2-date{position:relative;display:block;min-width:0}
.h2-date input[type=date]{
  -webkit-appearance:none;appearance:none;display:block;box-sizing:border-box;
  width:100%;min-width:0;max-width:100%;height:48px;min-height:48px;margin:0;
  padding:0 44px 0 14px;line-height:48px;text-align:left;font-size:16px; /* 16px — iOS не зумит поле */
  border:1px solid var(--line-2);border-radius:var(--r-sm);background:var(--bg);color:var(--ink)}
.h2-date input[type=date]::-webkit-date-and-time-value{text-align:left;margin:0;min-height:1.2em}
.h2-date input[type=date]::-webkit-datetime-edit{padding:0;line-height:48px}
.h2-date input[type=date]::-webkit-calendar-picker-indicator{position:absolute;right:0;top:0;width:44px;height:100%;margin:0;padding:0;opacity:0;cursor:pointer}
/* своя иконка календаря и подсказка для пустого поля (iOS не показывает плейсхолдер) */
.h2-date::after{content:"";position:absolute;right:14px;bottom:14px;width:20px;height:20px;pointer-events:none;
  background:currentColor;color:var(--teal);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E") center/contain no-repeat}
.h2-date .h2-ph{position:absolute;left:15px;bottom:0;height:48px;line-height:48px;font-size:16px;color:var(--ink-3);pointer-events:none}
.h2-date.has-val .h2-ph{display:none}
.h2-date:not(.has-val) input[type=date]{color:transparent}
.h2-date:not(.has-val) input[type=date]:focus{color:var(--ink)}
.h2-date:not(.has-val) input[type=date]:focus~.h2-ph{display:none}

/* нижняя панель на очень узких экранах */
@media (max-width:359px){.dock .btn-line{font-size:0;gap:0;padding-inline:14px}.dock .btn-line svg.i{font-size:1rem}}

/* ===== полоса доверия на телефоне: ровные плитки 2×2 ===== */
@media (max-width:639px){
  .h2-trust{background:var(--bg);border:0}
  .h2-trust-in{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding-block:16px 4px}
  .h2-trust-in>li:first-child{grid-column:auto}
  .h2-trust-in>li:nth-child(5){display:none}
  .h2-trust-in>li{display:block;min-height:0;padding:0}
  .h2-trust-in>li,.h2-trust-in>li>a{gap:0}
  .h2-trust-in>li>a{display:block;padding:0}
  .h2-trust-in>li{padding:12px 12px 12px;border:1px solid var(--line);border-radius:14px;background:var(--paper)}
  .h2-trust-in>li>a{margin:-12px;padding:12px;border-radius:14px}
  .h2-trust-in svg.i{display:block;width:22px;height:22px;margin-bottom:8px}
  .h2-trust-in b{font-size:.875rem;line-height:1.25}
  .h2-trust-in small{font-size:.75rem;margin-top:2px}
}

/* ===== первый экран каталога (курорт / тип экскурсий) ===== */
.ef2-cat-hero .h2-hero-txt .lead{max-width:46ch}
.ef2-hfacts{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.ef2-hfacts li,.ef2-hfacts li>a{display:inline-flex;align-items:center;gap:8px;min-height:44px}
.ef2-hfacts li{padding:0 14px;border-radius:999px;background:rgba(255,255,255,.95);color:var(--ink);font-size:.875rem}
.ef2-hfacts li>a{margin:0 -14px;padding:0 14px;border-radius:999px;color:inherit}
.ef2-hfacts svg.i{width:18px;height:18px;color:var(--teal)}
.ef2-hfacts svg.i.fill{color:var(--star)}
.ef2-hfacts b{font-weight:600}
.ef2-hfacts span{color:var(--ink-3)}
.ef2-hfacts .pr .pre{color:var(--ink-3)}
/* на каталоге в шапке форма не перекрывает панель фильтров */
.ef2-catalog .h2-hero{z-index:1}
@media (max-width:639px){
  .ef2-hfacts{gap:6px;margin-top:14px}
  .ef2-hfacts li,.ef2-hfacts li>a{min-height:38px;gap:6px}
  .ef2-hfacts li{padding:0 11px;font-size:.8125rem}
  .ef2-hfacts li>a{margin:0 -11px;padding:0 11px}
  .ef2-hfacts svg.i{width:16px;height:16px}
  .ef2-cat-hero .h2-hero-txt .lead{font-size:1rem}
}

/* ===== карточка доверия и связи на странице курорта ===== */
.ef2-tcard{position:relative;display:grid;gap:16px;padding:22px;border-radius:20px;background:var(--paper);color:var(--ink);border:1px solid var(--line);box-shadow:0 2px 4px rgba(30,42,45,.04),0 18px 48px -18px rgba(30,42,45,.25)}
.ef2-tc-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.ef2-tc-score{display:inline-flex;align-items:center;gap:12px;min-height:44px;color:var(--ink)}
.ef2-tc-score .big{font-size:2.5rem;font-weight:600;line-height:1;letter-spacing:-.02em}
.ef2-tc-score .stars{display:flex;gap:2px;color:var(--star)}
.ef2-tc-score .stars svg{width:16px;height:16px}
.ef2-tc-score small{display:block;font-size:.8125rem;color:var(--ink-3);margin-top:2px}
.ef2-tc-since{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:999px;background:var(--teal-wash);color:var(--teal-ink);font-size:.8125rem;font-weight:500;white-space:nowrap}
.ef2-tc-since svg.i{width:16px;height:16px}
.ef2-tc-rev{margin:0;padding:14px 16px;border-radius:14px;background:var(--bg);border:1px solid var(--line)}
.ef2-tc-rev blockquote{margin:0}
.ef2-tc-rev p{font-size:.9375rem;line-height:1.55;color:var(--ink-2)}
.ef2-tc-rev figcaption{display:flex;align-items:center;gap:10px;margin-top:10px;font-size:.84rem;line-height:1.35}
.ef2-tc-rev .av{display:grid;place-items:center;flex:none;width:32px;height:32px;border-radius:50%;background:var(--teal-wash);color:var(--teal-ink);font-size:.75rem;font-weight:600}
.ef2-tc-rev figcaption small{display:block;color:var(--ink-3)}
.ef2-tc-h{font-size:1.125rem;line-height:1.3}
.ef2-tc-list{display:grid;gap:8px;margin-top:-6px}
.ef2-tc-list li{display:flex;align-items:flex-start;gap:10px;font-size:.9375rem;line-height:1.45;color:var(--ink-2)}
.ef2-tc-list li svg.i{flex:none;width:20px;height:20px;margin-top:1px;padding:3px;border-radius:50%;background:var(--teal);color:#fff;stroke-width:3}
.ef2-tc-list b{color:var(--ink);font-weight:600}
.ef2-tc-cta{display:grid;gap:8px}
.ef2-tc-cta .btn{width:100%;justify-content:center;min-height:50px}
.ef2-tc-cta .btn-main{font-size:1.0625rem}
.ef2-tc-alt{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ef2-tc-alt .btn{min-height:46px}
.ef2-tc-alt .btn:only-child{grid-column:1/-1}
.ef2-tc-tel{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:var(--ink-2);font-size:.9375rem;font-variant-numeric:tabular-nums}
.ef2-tc-tel svg.i{width:18px;height:18px;color:var(--teal)}
.ef2-tc-note{display:flex;align-items:center;justify-content:center;gap:8px;margin-top:-6px;font-size:.8125rem;color:var(--ink-3)}
.ef2-tc-note .dot{width:8px;height:8px;border-radius:50%;background:#2E9E5B;box-shadow:0 0 0 4px rgba(46,158,91,.15)}
@media (min-width:900px){.ef2-tcard{padding:24px 26px}}
@media (max-width:379px){.ef2-tcard{padding:18px 14px}.ef2-tc-score .big{font-size:2.125rem}.ef2-tc-since{display:none}}
.ef2-cat-hero+section,.ef2-cat-hero+*+section{padding-top:var(--sec)}
/* кнопки в карточках: Подробнее · Забронировать (Telegram) · WhatsApp-иконка */
.h2-acts{grid-template-columns:auto 1fr auto}
.h2-acts .btn-ico{width:44px;min-height:44px;padding:0}
@media (max-width:639px){.h2-acts{grid-template-columns:1fr auto}}
.h2-acts{grid-template-columns:auto 1fr auto auto}
@media (max-width:639px){.h2-acts{grid-template-columns:1fr auto auto}}

/* кнопки карточки на главной: «Забронировать» сверху во всю ширину, ниже Подробнее · WhatsApp · MAX */
.h2-acts{grid-template-columns:1fr auto auto;grid-template-areas:"main main main" "more wa max"}
.h2-acts>.btn-main{grid-area:main}
.h2-acts>.btn-line{grid-area:more}
.h2-acts>a[href*="wa.me"]{grid-area:wa}
.h2-acts>.btn-max{grid-area:max}
@media (max-width:639px){
  /* компактная карточка: тело «раскрывается» в сетку карточки, кнопки — отдельной строкой во всю ширину */
  .h2-tours .top{grid-template-columns:112px 1fr;grid-template-rows:auto auto 1fr auto}
  .h2-tours .top .body{display:contents}
  .h2-tours .top .media{grid-row:1/4;grid-column:1}
  .h2-tours .top .kind,.h2-tours .top h3,.h2-tours .top .row{grid-column:2;min-width:0}
  .h2-tours .top .kind{padding-top:2px}
  .h2-acts{grid-column:1/-1;grid-row:4;grid-template-columns:1fr auto auto;grid-template-areas:"main wa max";padding-top:12px}
  .h2-acts>.btn-line{display:none}
}

/* ===== телефон: ровные «Популярно» и факты в первом экране ===== */
@media (max-width:639px){
  .h2-hot{display:grid;grid-template-columns:1fr;gap:6px;margin-top:16px}
  .h2-hot-l{margin:0 0 2px}
  .h2-hot a{display:flex;justify-content:space-between;width:100%;min-height:42px;padding:0 14px;border-radius:12px}
  .h2-hot a b{flex:none;white-space:nowrap}
  .ef2-hfacts{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
  .ef2-hfacts li{display:block;min-height:0;padding:8px 6px;border-radius:14px;text-align:center;line-height:1.25}
  .ef2-hfacts li>a{display:block;min-height:0;margin:-8px -6px;padding:8px 6px;border-radius:14px}
  .ef2-hfacts svg.i{display:inline-block;vertical-align:-3px;margin-right:3px}
  .ef2-hfacts b{font-size:.9375rem}
  .ef2-hfacts span{display:block;margin-top:2px;font-size:.71875rem}
}
@media (max-width:639px){ .ef2-hfacts b .pr,.ef2-hfacts b span{display:inline;margin:0;font-size:inherit} .ef2-hfacts b .pre{font-size:.75rem;font-weight:400;margin-right:2px} .ef2-hfacts li{display:flex;flex-direction:column;justify-content:center} .ef2-hfacts li>a{display:flex;flex-direction:column;justify-content:center;height:calc(100% + 16px)} }

/* ===== отзывы в карточке доверия: карусель ===== */
.ef2-tc-revs{position:relative;margin-top:2px}
.ef2-tc-track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;border-radius:14px}
.ef2-tc-track::-webkit-scrollbar{display:none}
.ef2-tc-track:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.ef2-tc-track .ef2-tc-rev{flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always;display:flex;flex-direction:column;min-height:168px}
.ef2-tc-track .ef2-tc-rev blockquote{flex:1}
.ef2-tc-rev .stars{display:flex;gap:2px;margin-bottom:6px;color:var(--star)}
.ef2-tc-rev .stars svg{width:13px;height:13px}
.ef2-tc-nav{display:flex;align-items:center;gap:6px;margin-top:8px}
.ef2-tc-nav button{flex:none;width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--line-2);border-radius:50%;background:#fff;color:var(--teal-ink);cursor:pointer}
.ef2-tc-nav button svg{width:14px;height:14px}
.ef2-tc-prev svg{transform:rotate(180deg)}
.ef2-tc-nav button:disabled{opacity:.35;cursor:default}
.ef2-tc-dots{display:flex;gap:5px;margin:0 4px}
.ef2-tc-dots i{width:6px;height:6px;border-radius:50%;background:var(--line-2);transition:width .2s,background-color .2s}
.ef2-tc-dots i.on{width:16px;border-radius:3px;background:var(--teal)}
.ef2-tc-all{margin-left:auto;font-size:.8125rem;font-weight:500;color:var(--teal-ink);text-decoration:underline;text-underline-offset:3px;min-height:32px;display:inline-flex;align-items:center}
@media (prefers-reduced-motion:reduce){ .ef2-tc-track{scroll-behavior:auto} }
.ef2-tcard{min-width:0}
.ef2-tc-revs{min-width:0;max-width:100%;contain:inline-size}
.ef2-tc-track{width:100%;min-width:0}
.h2-trust-in,.h2-cats,.h2-opts,.ef2-tc-track{overflow-y:hidden;overscroll-behavior-x:contain}

/* ===== страница курорта на телефоне — макет «Курорт, мобильная версия» ===== */
.fbtn,.chip-all,.c-more,.ind-all{display:none}
@media (max-width:767px){
  /* шапка уезжает вместе со страницей; закреплены только фильтры и нижняя панель */
  .ef2-catalog .hdr{position:relative}
  .ef2-catalog .fbar{top:0}
  .ef2-catalog .fbar.fbar-hide{transform:translateY(calc(-100% - 2px))}
  /* первый экран: без карточки доверия (отзывы, гарантии и контакты есть ниже и в нижней панели) */
  .ef2-catalog .ef2-tcard{display:none}
  /* Топ-3 повторяет «Популярно» и начало каталога */
  .ef2-catalog #top3{display:none}
  .ef2-catalog #top3~#catalog{padding-top:calc(var(--sec) * .6)}
  /* фильтры: «Фильтры» + категории в один ряд, остальное — по кнопке */
  .ef2-catalog .fbar-in{flex-wrap:wrap;align-items:center;gap:8px;padding-block:8px}
  .ef2-catalog .fbar .tools{gap:6px}
  .ef2-catalog .fbar .tools .ib{display:none}
  .ef2-catalog .fbtn{display:inline-flex;align-items:center;gap:6px;flex:none;height:44px;padding:0 14px;border:1.5px solid var(--line-2);border-radius:22px;background:var(--paper);font:inherit;font-size:.875rem;font-weight:600;color:var(--ink);cursor:pointer}
  .ef2-catalog .fbtn svg.i{width:16px;height:16px}
  .ef2-catalog .fbtn[aria-expanded=true]{background:var(--teal-wash);border-color:var(--teal);color:var(--teal-ink)}
  .ef2-catalog .fbtn-n{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:var(--teal);color:#fff;font-size:.75rem;font-style:normal;font-weight:700}
  .ef2-catalog .fbtn-n[hidden]{display:none}
  .ef2-catalog .fbar .chips{flex:1;min-width:0}
  .ef2-catalog .fbar .cg:not(.cg-type){display:none}
  .ef2-catalog .fbar .chip{height:44px;padding:0 16px;border-width:1.5px;font-size:.875rem;font-weight:600;color:var(--ink)}
  .ef2-catalog .fbar .chip[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
  .ef2-catalog .chip-all{display:inline-block}
  .ef2-catalog .fbar.f-open .tools .ib{display:grid}
  .ef2-catalog .fbar.f-open .chips{flex:1 1 100%;flex-wrap:wrap;overflow:visible;margin-right:0;padding-right:2px;-webkit-mask-image:none;mask-image:none;row-gap:8px}
  .ef2-catalog .fbar.f-open .cg{display:flex;flex:1 1 100%;max-width:100%;flex-wrap:wrap;row-gap:8px}
  .ef2-catalog .fbar.f-open .cg+.cg{flex-basis:100%;padding-left:0;margin-left:0;border-left:0}
  .ef2-catalog .fbar.f-open .cg:not(.cg-type)::before{content:attr(aria-label);flex-basis:100%;font-size:.8125rem;font-weight:600;color:var(--ink-3)}
  /* карточки: две кнопки — «Забронировать» и «Подробнее» */
  .ef2-catalog .grid .card .acts{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:8px}
  .ef2-catalog .grid .card .acts .btn{min-height:52px;border-radius:12px}
  .ef2-catalog .c-more{display:inline-flex;align-items:center;justify-content:center;font-weight:600}
  /* индивидуальные: одна карточка и кнопка «Смотреть все» */
  .ef2-catalog .ef2-ind-grid:not(.show-all)>li:nth-child(n+2){display:none}
  .ef2-catalog .ind-all{display:flex;width:100%;min-height:52px;margin-top:16px}
  .ef2-catalog .ind-all[hidden]{display:none}
}

/* полоса доверия и отзывы в сетке — только на телефоне */
.ef2-tstrip,.ef2-grev{display:none}
@media (max-width:767px){
  .ef2-catalog .ef2-tstrip{display:block;background:var(--paper);border-bottom:1px solid var(--line)}
  .ef2-tstrip ul{display:grid;grid-template-columns:1fr 1fr;gap:6px 12px;margin:0;padding-block:12px;list-style:none}
  .ef2-tstrip li,.ef2-tstrip a{display:flex;align-items:center;gap:6px;min-height:32px;font-size:.875rem;font-weight:600;color:var(--ink);text-decoration:none}
  .ef2-tstrip svg.i{flex:none;width:16px;height:16px;color:var(--teal)}
  .ef2-tstrip a svg.i{color:#E8A317}
  .ef2-tstrip a span{text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
  .ef2-catalog .grid>.ef2-grev{display:block;grid-column:1/-1;margin:0 -16px;padding:4px 0 8px;list-style:none}
  .ef2-catalog .grid>.ef2-grev[hidden]{display:none}
  .ef2-grev-h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 16px 10px}
  .ef2-grev-h p{display:flex;align-items:center;gap:6px;margin:0;font-size:.9375rem;color:var(--ink-2)}
  .ef2-grev-h p b{color:var(--ink)}
  .ef2-grev-h svg.i{width:18px;height:18px;color:#E8A317}
  .ef2-grev-h a{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--teal-ink)}
  .ef2-grev-track{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:0 16px;scroll-padding:0 16px;overscroll-behavior-x:contain}
  .ef2-grev-track::-webkit-scrollbar{display:none}
  .ef2-grev-track:focus-visible{outline:2px solid var(--teal);outline-offset:-2px}
  .ef2-grev-track .ef2-tc-rev{flex:0 0 85%;scroll-snap-align:start;display:flex;flex-direction:column;background:var(--paper)}
  .ef2-grev-track .ef2-tc-rev figcaption{margin-top:auto;padding-top:10px}

  /* компактная карточка: ~1,5 карточки на экране */
  .ef2-catalog #grid{row-gap:24px}
  .ef2-catalog .grid .card .media{aspect-ratio:2/1}
  .ef2-catalog .grid .card .media img{width:100%;height:100%;object-fit:cover}
  .ef2-catalog .grid .card .body{padding-top:12px}
  .ef2-catalog .grid .card .row{margin-top:6px}
  .ef2-catalog .grid .card .pk{margin-top:8px}
  .ef2-catalog .grid .card .pk{align-items:center}
  .ef2-catalog .grid .card .pk .more{flex:none;margin-top:0}
  .ef2-catalog .grid .card .perks{display:block;flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:.875rem;color:var(--ink-2)}
  .ef2-catalog .grid .card .perks li{display:inline}
  .ef2-catalog .grid .card .perks li+li::before{content:" · "}
  .ef2-catalog .grid .card .perks svg{display:none}
  .ef2-catalog .grid .card .perks .f-calendar svg{display:inline-block;width:15px;height:15px;margin:0 5px 0 0;vertical-align:-2px;color:var(--teal-ink)}
  .ef2-catalog .grid .card .acts{margin-top:12px}
  .ef2-catalog .grid .card .acts .btn{min-height:48px}
  /* ссылки: больше площадь нажатия без сдвига текста */
  .ef2-catalog .rate-btn{padding-block:12px;margin-block:-12px}
  .ef2-catalog .h2-seo a,.ef2-catalog #faq a{padding-block:15px;margin-block:-15px}
}

/* Топ-3 на 768–1100 px: две кнопки помещаются в карточку (без значка календаря, уже поля) */
.top-book .acts{grid-template-columns:minmax(0,1fr) auto}
@media (min-width:768px) and (max-width:1100px){
  .top-book .acts .btn{padding-inline:12px}
  .top-book .acts .btn-main svg.i{display:none}
}

/* телефон: всё нажимаемое — не ниже 44 px. Текст не сдвигаем: у строчных ссылок поля компенсируются
   отрицательным отступом, у блочных — min-height */
@media (max-width:767px){
  main p a:not(.btn),main li>a:not(.btn):not(.media),main th a,main td a,main b>a,main dd a,
  .ef2-ind-jump,.rv-track .lk,.h2-rv-track .lk,.seo-end a,.ef2-catalog .rate-btn{padding-block:15px;margin-block:-15px}
  .h2-hot a,.h2-pan a,.h2-hero-txt .score,.ef2-tstrip a,.ef2-tstrip li{min-height:44px}
  .ef2-tstrip ul{row-gap:0}
  .card .pk .more{min-height:44px;padding-block:0}
}
