/* =========================================================
   Гарантия лучшей цены (24.11.2026, макет «Гарантия лучшей цены» на холсте).
   1) Строка со щитом внизу правой карточки тура (.tour-rail-card), под отзывами.
   2) Окно с условиями: на компьютере 560 px по центру, на телефоне шторка снизу,
      как окно «Скачать или поделиться программой» (tour-pdf.css).
   3) Страница /garantiya-luchshej-czeny/ (page-garantiya-luchshej-czeny.php)
      из блоков главной 2027 (home-2027.css).
   Разметка и подключение: inc/best-price.php, окно: assets/js/best-price.js.
   ========================================================= */

/* ---------- Строка в правой карточке ---------- */
.bpg-line{ display:flex; align-items:flex-start; gap:8px; margin:0; font-family:var(--font-main); }
.bpg-line__ic{ flex:none; width:20px; height:20px; color:var(--color-primary, #E86B18); margin-top:1px; }
.bpg-line__txt{ display:flex; flex-direction:column; gap:2px; min-width:0; }
.bpg-line__top{ font-size:14px; font-weight:500; line-height:1.4; color:var(--color-ink, #16140f); }
.bpg-line__more{
  display:inline; border:0; background:none; padding:0; margin:0 0 0 8px;
  font:inherit; font-weight:400; color:var(--color-text-soft, #464a42);
  text-decoration:underline; text-underline-offset:3px; cursor:pointer;
}
.bpg-line__more:hover, .bpg-line__more:focus{ color:var(--color-primary, #E86B18); background:none; }
.bpg-line__sub{ font-size:13px; line-height:1.4; color:var(--color-text-soft, #464a42); }
.bpg-line--end{ padding-top:14px; border-top:1px solid var(--color-border, #e7e7e1); }

/* ---------- Окно с условиями ---------- */
.bpg{
  --bpg-ink:#16140f; --bpg-soft:#464a42; --bpg-faded:#9aa096;
  --bpg-orange:#E86B18; --bpg-orange-h:#CF5F14; --bpg-fon:#f4f4f4;
  position:fixed; inset:0; z-index:100000; color:var(--bpg-ink);
  font-family:var(--font-main, 'Onest', sans-serif);
}
.bpg[hidden]{ display:none; }
.bpg *, .bpg *::before, .bpg *::after{ box-sizing:border-box; }
.bpg__dim{ position:absolute; inset:0; background:rgba(22,20,15,.45); opacity:0; transition:opacity .2s; }
.bpg.is-open .bpg__dim{ opacity:1; }

.bpg__win{
  position:absolute; background:#fff; overflow:auto; -webkit-overflow-scrolling:touch;
  left:0; right:0; bottom:0; max-height:92%; border-radius:24px 24px 0 0;
  padding:8px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  transform:translateY(100%); transition:transform .25s ease;
}
.bpg.is-open .bpg__win{ transform:translateY(0); }
.bpg__grab{ width:40px; height:5px; border-radius:3px; background:#d9d9d9; margin:0 auto 12px; }

@media (min-width: 900px){
  .bpg__win{
    left:50%; top:50%; right:auto; bottom:auto; width:560px; max-height:90%;
    border-radius:24px; padding:26px 28px 24px;
    transform:translate(-50%, -46%); opacity:0; transition:transform .2s ease, opacity .2s ease;
    box-shadow:0 30px 80px rgba(0,0,0,.25);
  }
  .bpg.is-open .bpg__win{ transform:translate(-50%, -50%); opacity:1; }
  .bpg__grab{ display:none; }
}

.bpg__head{ display:flex; align-items:flex-start; gap:12px; margin-bottom:18px; }
.bpg__badge{ flex:none; width:40px; height:40px; border-radius:12px; background:var(--bpg-fon); color:var(--bpg-orange); display:flex; align-items:center; justify-content:center; }
.bpg__ttl{ flex:1; min-width:0; }
.bpg__ttl h3{ margin:0; font-size:20px; font-weight:600; line-height:1.2; color:var(--bpg-ink); }
.bpg__ttl p{ margin:5px 0 0; font-size:14px; line-height:1.45; color:var(--bpg-soft); }
.bpg__x{ flex:none; width:36px; height:36px; border-radius:50%; border:0; padding:0; background:var(--bpg-fon); color:var(--bpg-ink); display:flex; align-items:center; justify-content:center; cursor:pointer; }
.bpg__x:hover{ background:#e9e9e9; }

.bpg__label{ font-size:12px; font-weight:600; color:var(--bpg-faded); text-transform:uppercase; letter-spacing:.07em; margin:0 0 10px; }
.bpg__list{ list-style:none; margin:0 0 20px; padding:0; display:flex; flex-direction:column; gap:10px; }
.bpg__list li{ display:flex; gap:10px; margin:0; padding:0; font-size:15px; line-height:1.4; color:var(--bpg-ink, #16140f); }
.bpg__list li::before{ content:none; }
.bpg__list li svg{ flex:none; margin-top:1px; color:var(--bpg-orange, #E86B18); }
.bpg__list li span{ min-width:0; }

.bpg__btn{
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; height:50px; padding:0 14px;
  border-radius:14px; border:1px solid var(--bpg-orange); background:var(--bpg-orange); color:#fff;
  font:inherit; font-size:15px; font-weight:600; line-height:1.2; cursor:pointer; text-decoration:none;
}
.bpg__btn:hover, .bpg__btn:focus{ background:var(--bpg-orange-h); border-color:var(--bpg-orange-h); color:#fff; text-decoration:none; }
.bpg__btn svg{ flex:none; }
.bpg__more{
  display:flex; align-items:center; justify-content:center; gap:6px; margin:14px auto 0; width:fit-content;
  padding:4px 8px; font-size:14px; font-weight:500; color:var(--bpg-soft);
  text-decoration:underline; text-underline-offset:3px;
}
.bpg__more:hover{ color:var(--bpg-ink); }

/* Окно выводится внутри <footer class="site-footer"> (wp_footer), а footer.css делает
   у ссылок подвала фон прозрачным при наведении/фокусе (!important) и убирает подчеркивание.
   Без этого кнопка при наведении становилась белой и текст пропадал (24.11). */
.site-footer .bpg .bpg__btn,
.site-footer .bpg .bpg__btn:focus,
.site-footer .bpg .bpg__btn:active{ background:var(--bpg-orange) !important; color:#fff; }
.site-footer .bpg .bpg__btn:hover{ background:var(--bpg-orange-h) !important; color:#fff; }
.site-footer .bpg .bpg__more{ text-decoration:underline; }

html.bpg-lock, html.bpg-lock body{ overflow:hidden; }

/* ---------- Страница гарантии (блоки главной 2027) ---------- */
.gar2{ --bpg-ink:#16140f; --bpg-soft:#464a42; --bpg-orange:#E86B18; }
.gar2 .hm-hero{ padding-bottom:48px; }
.gar2-hero-act{ justify-content:center; margin-top:0; }
.gar2-steps .hm-seo__fact b{ color:#E86B18; }
.gar2-cols{ gap:12px; }
.gar2-cols .hm-seo__txt{ padding:24px 20px; border-radius:16px; background:#f4f4f4; }
.gar2-cols .hm-seo__txt h3{ margin:0 0 16px; }
.gar2-cols .bpg__list{ margin:0; gap:12px; }
.gar2-cols .bpg__list li{ font-size:16px; line-height:1.5; color:#45483f; }
.gar2-no li svg{ color:#9aa096; }
.gar2-faq .stud-accordion-list{ margin-top:20px; max-width:900px; }
.gar2-band{ margin-top:72px; margin-bottom:72px; }
@media (min-width: 900px){
  .gar2-cols{ grid-template-columns:repeat(2, minmax(0, 1fr)); gap:20px; }
  .gar2-cols .hm-seo__txt{ padding:32px 32px 28px; }
}
