/* ==========================================================================
   Турагенція «Відпочинок без кордонів» — дизайн-система та компоненти
   Bootstrap 5.3 + власні компоненти (BEM). Mobile-first.
   ========================================================================== */

/* ---------- Шрифти (локально, Open Sans variable) ---------- */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-cyrillic-wght.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../fonts/open-sans-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Токени ---------- */
:root {
  /* бренд: темно-синій і пісочний — з логотипу, помаранчевий — для дій */
  --brand-navy: #0f2a4a;
  --brand-navy-2: #16375f;
  --brand-blue: #0b4f9c;
  --brand-blue-muted: #3f6394;
  --brand-sand: #c1996f;
  --brand-sand-soft: #f6efe7;
  --brand-orange: #ee5d1c;
  --brand-orange-dark: #cf4a10;
  --brand-green: #2e9a3e;
  --brand-red: #e0352b;

  --text: #232830;
  --text-muted: #646b75;
  --bg: #ffffff;
  --bg-soft: #f3f4f6;
  --border: #e3e6ea;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 2px 10px rgba(15, 42, 74, .10);
  --shadow-card-hover: 0 14px 32px rgba(15, 42, 74, .18);
  --shadow-float: 0 6px 20px rgba(15, 42, 74, .14);

  --header-h: 72px;
  --section-py: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* перевизначення Bootstrap */
  --bs-body-font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --bs-body-color: var(--text);
  --bs-body-bg: var(--bg);
  --bs-secondary-color: var(--text-muted);
  --bs-border-color: var(--border);
  --bs-primary: var(--brand-orange);
  --bs-primary-rgb: 238, 93, 28;
  --bs-link-color: var(--brand-blue);
  --bs-link-color-rgb: 11, 79, 156;
  --bs-link-hover-color: var(--brand-orange-dark);
  --bs-link-hover-color-rgb: 207, 74, 16;
  --bs-focus-ring-color: rgba(238, 93, 28, .35);
}

@media (min-width: 992px) {
  :root { --section-py: 88px; --header-h: 112px; }
}

/* ---------- База ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { font-size: 1rem; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* Запобіжник від горизонтального скролу. clip (на відміну від hidden) не робить body
   контейнером прокрутки, тож не ламає position: fixed / sticky шапки на мобільних */
html, body { overflow-x: clip; }
@supports not (overflow: clip) { body { overflow-x: hidden; } }
img { max-width: 100%; height: auto; }
a { transition: color .2s; }
h1, h2, h3, h4 { color: var(--brand-navy); }

:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }

.visually-hidden,
.screen-reader-text {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px; z-index: 2000; width: auto; height: auto; clip: auto;
  background: #fff; color: var(--brand-navy); padding: 10px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow-float);
}

.container { max-width: 1260px; }

/* ---------- Секції ---------- */
.section { padding-block: var(--section-py); position: relative; }
.section--soft { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.section__eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--brand-sand); margin-bottom: 8px;
}
.section__title { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); font-weight: 300; line-height: 1.2; margin: 0; }
.section__title b, .section__title strong { font-weight: 700; }
.section__lead { color: var(--text-muted); font-size: 1.05rem; margin: 12px 0 0; }
@media (min-width: 992px) { .section__head { margin-bottom: 48px; } }

/* ---------- Кнопки ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-border-radius: var(--radius-sm); --bs-btn-padding-y: .7rem; --bs-btn-padding-x: 1.4rem; transition: all .2s var(--ease); }
.btn-primary {
  --bs-btn-bg: var(--brand-orange); --bs-btn-border-color: var(--brand-orange);
  --bs-btn-hover-bg: var(--brand-orange-dark); --bs-btn-hover-border-color: var(--brand-orange-dark);
  --bs-btn-active-bg: var(--brand-orange-dark); --bs-btn-active-border-color: var(--brand-orange-dark);
  --bs-btn-disabled-bg: var(--brand-orange); --bs-btn-disabled-border-color: var(--brand-orange);
  box-shadow: 0 6px 18px rgba(238, 93, 28, .28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(238, 93, 28, .35); }
.btn-outline-light { --bs-btn-hover-color: var(--brand-navy); border-width: 2px; }
.btn-outline-navy {
  --bs-btn-color: var(--brand-navy); --bs-btn-border-color: var(--brand-navy);
  --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-navy); --bs-btn-hover-border-color: var(--brand-navy);
  --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-navy); border-width: 2px;
}
.btn-telegram { --bs-btn-color: #fff; --bs-btn-bg: #229ed9; --bs-btn-border-color: #229ed9; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #1a86ba; --bs-btn-hover-border-color: #1a86ba; }
.btn-lg { --bs-btn-padding-y: .85rem; --bs-btn-padding-x: 1.8rem; --bs-btn-font-size: 1.05rem; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-orange-dark);
  font-weight: 700; border-radius: 999px; padding: .7rem 1.6rem; box-shadow: var(--shadow-float); text-decoration: none; border: 0;
}
.btn-pill:hover { color: #fff; background: var(--brand-orange); }
.btn-icon-arrow {
  width: 40px; height: 40px; flex: 0 0 40px; display: inline-grid; place-items: center; border-radius: var(--radius-sm);
  background: var(--brand-orange); color: #fff; font-size: 1.1rem; transition: transform .2s var(--ease), background .2s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--border); transition: background .3s, box-shadow .3s, color .3s; }
.site-header__logo { display: block; flex: 0 0 auto; }
.site-header__logo img { display: block; height: 40px; width: auto; }
.site-header__logo .logo--light { display: none; }

.site-header__top { font-size: .875rem; border-bottom: 1px solid var(--border); transition: max-height .3s var(--ease), opacity .2s, border-color .3s; max-height: 44px; overflow: hidden; }
.site-header__top-inner { display: flex; align-items: center; gap: 20px; height: 44px; }
.site-header__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: inherit; text-decoration: none; white-space: nowrap; }
.site-header__phone:hover { color: var(--brand-orange); }
.site-header__phone .bi { color: var(--brand-orange); }
.site-header__callback { color: var(--brand-orange); font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline dotted; text-underline-offset: 4px; }
.site-header__callback:hover { color: var(--brand-orange-dark); }
.site-header__meta { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.site-header__hours { color: var(--text-muted); display: inline-flex; gap: 6px; align-items: center; }

.social-links { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-links a {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: inherit; text-decoration: none;
  background: rgba(15, 42, 74, .06); transition: background .2s, color .2s, transform .2s;
}
.social-links a:hover { background: var(--brand-orange); color: #fff; transform: translateY(-2px); }

.site-header__main { display: flex; align-items: center; gap: 16px; height: 68px; }
.site-header .navbar { padding: 0; flex: 1 1 auto; }
.site-header .navbar-nav { gap: 2px; margin-inline: auto; }
.site-header .nav-link {
  --bs-nav-link-font-weight: 600; font-size: .95rem; color: var(--brand-navy); padding: .6rem .7rem !important; border-radius: var(--radius-sm); position: relative; white-space: nowrap;
}
.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .show > .nav-link { color: var(--brand-orange); }
.site-header .current-menu-item > .nav-link,
.site-header .current-menu-ancestor > .nav-link,
.site-header .current_page_item > .nav-link,
.site-header .current_page_parent > .nav-link,
.site-header .nav-link.active { color: var(--brand-orange); }
.site-header .dropdown-toggle::after { border: 0; content: "\F282"; font-family: "bootstrap-icons"; vertical-align: -2px; font-size: .7rem; margin-left: 4px; transition: transform .2s; }
.site-header .show > .dropdown-toggle::after { transform: rotate(180deg); }

.site-header .dropdown-menu {
  --bs-dropdown-border-width: 0; --bs-dropdown-border-radius: var(--radius); --bs-dropdown-padding-y: .6rem;
  --bs-dropdown-link-hover-bg: var(--brand-sand-soft); --bs-dropdown-link-active-bg: var(--brand-orange);
  --bs-dropdown-link-color: var(--text); --bs-dropdown-item-padding-x: 1.1rem; --bs-dropdown-item-padding-y: .45rem;
  box-shadow: var(--shadow-card-hover); margin-top: 10px !important; min-width: 240px; font-size: .95rem;
}
.site-header .dropdown-menu .sub-menu { list-style: none; padding: 0 0 .3rem; margin: 0; }
.site-header .dropdown-menu .sub-menu .dropdown-item { padding-left: 2.1rem; font-size: .9rem; color: var(--text-muted); position: relative; }
.site-header .dropdown-menu .sub-menu .dropdown-item::before { content: ""; position: absolute; left: 1.2rem; top: 50%; width: 6px; height: 1px; background: currentColor; }
.site-header .dropdown-menu .menu-item-has-children > .dropdown-item { font-weight: 700; }
@media (min-width: 1200px) {
  .site-header .dropdown-menu--columns { columns: 3; column-gap: 0; width: 560px; }
  .site-header .dropdown-menu--columns > li { break-inside: avoid; }
  .site-header .dropdown:hover > .dropdown-menu { display: block; } /* відкриття по hover на десктопі */
  .site-header .dropdown > .dropdown-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
}
.site-header__cta { white-space: nowrap; }
.site-header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.site-header__icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent;
  color: var(--brand-navy); font-size: 1.35rem; text-decoration: none;
}
.site-header__icon-btn:hover { background: var(--bg-soft); color: var(--brand-orange); }
.site-header__fav { position: relative; }
.site-header__badge {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--brand-orange); color: #fff; font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
/* Кнопка акаунта: на < xxl — лише іконка, на ≥ xxl — іконка + підпис */
.site-header__account {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; justify-content: center; padding: 0;
  border: 0; border-radius: 22px; background: transparent; color: var(--brand-navy); font-weight: 600; white-space: nowrap;
}
.site-header__account .bi { font-size: 1.35rem; }
.site-header__account:hover { background: var(--bg-soft); color: var(--brand-orange); }
.site-header__account.dropdown-toggle::after { display: none; }
.site-header__user-name { display: grid; color: var(--brand-navy); font-weight: 700; font-size: .95rem; }
.site-header__user-name small { color: var(--text-muted); font-weight: 400; font-size: .8rem; }
.site-header__actions > .site-header__account,
.site-header__actions > .site-header__user { display: none; } /* на телефонах вхід — у мобільному меню */
@media (min-width: 768px) {
  .site-header__actions > .site-header__account:not([hidden]) { display: inline-flex; }
  .site-header__actions > .site-header__user:not([hidden]) { display: block; }
}
/* Вузькі телефони (≤ 399): логотип + 3 іконки */
@media (max-width: 399.98px) {
  .site-header__main { gap: 8px; }
  .site-header__logo img { height: 34px; }
  .site-header__actions { gap: 0; }
  .site-header__icon-btn { width: 40px; height: 40px; }
}
/* 1200–1399: ущільнюємо меню, щоб умістились іконки акаунта */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header__main { gap: 10px; }
  .site-header__logo img { height: 42px; }
  .site-header .nav-link { font-size: .9rem; padding: .6rem .4rem !important; }
  .site-header__cta { --bs-btn-padding-x: 1rem; }
}
.site-header__avatar {
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand-orange); color: #fff; font-size: .9rem; font-weight: 700;
}
.site-header__user .dropdown-item { display: flex; align-items: center; gap: 10px; }
.site-header__user .dropdown-item .bi { color: var(--text-muted); }

@media (min-width: 992px) {
  .site-header__logo img { height: 50px; }
}
@media (min-width: 1200px) {
  .site-header__actions { margin-left: 0; }
}

/* Прозора шапка поверх hero (головна). У WP: клас додається на is_front_page() */
.site-header--overlay { position: fixed; top: 0; left: 0; right: 0; width: 100%; background: transparent; box-shadow: none; color: #fff; }
.site-header--overlay .logo--dark { display: none; }
.site-header--overlay .logo--light { display: block; }
.site-header--overlay .site-header__top { border-color: rgba(255, 255, 255, .18); }
.site-header--overlay .site-header__hours { color: rgba(255, 255, 255, .8); }
.site-header--overlay .social-links a { background: rgba(255, 255, 255, .14); }
.site-header--overlay .site-header__callback { color: #ffb48f; }
.site-header--overlay .nav-link,
.site-header--overlay .site-header__icon-btn,
.site-header--overlay .site-header__account { color: #fff; }
.site-header--overlay .site-header__icon-btn:hover,
.site-header--overlay .site-header__account:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.site-header--overlay .nav-link:hover,
.site-header--overlay .show > .nav-link { color: #ffb48f; }
.site-header--overlay.is-scrolled { background: #fff; color: var(--text); box-shadow: 0 4px 20px rgba(15, 42, 74, .1); }
.site-header--overlay.is-scrolled .logo--dark { display: block; }
.site-header--overlay.is-scrolled .logo--light { display: none; }
.site-header--overlay.is-scrolled .nav-link,
.site-header--overlay.is-scrolled .site-header__icon-btn,
.site-header--overlay.is-scrolled .site-header__account { color: var(--brand-navy); }
.site-header--overlay.is-scrolled .nav-link:hover { color: var(--brand-orange); }
.site-header--overlay.is-scrolled .site-header__icon-btn:hover,
.site-header--overlay.is-scrolled .site-header__account:hover { background: var(--bg-soft); }
.site-header--overlay.is-scrolled .social-links a { background: rgba(15, 42, 74, .06); }
/* Згортання верхнього рядка — лише для фіксованої шапки (вона не займає місця в потоці).
   Для sticky-шапки зміна висоти зсувала б сторінку → скрол «стрибав» навколо порогу. */
.site-header--overlay.is-scrolled .site-header__top { max-height: 0; opacity: 0; border-color: transparent; }
/* Sticky-шапка (внутрішні сторінки): верхній рядок просто прокручується разом зі сторінкою,
   а прилипає лише основний рядок — без JS і без зміни висоти */
@media (min-width: 1200px) {
  .site-header:not(.site-header--overlay) { top: -45px; } /* 44px рядок + 1px border */
}

/* Offcanvas (мобільне меню) */
.mobile-menu { --bs-offcanvas-width: min(360px, 88vw); }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--border); }
.mobile-menu .offcanvas-header img { height: 36px; width: auto; }
.mobile-menu__nav { list-style: none; margin: 0; padding: 0; }
.mobile-menu__nav > li { border-bottom: 1px solid var(--border); }
.mobile-menu__nav a { display: block; padding: 12px 0; color: var(--brand-navy); font-weight: 600; text-decoration: none; }
.mobile-menu__nav a:hover,
.mobile-menu__nav .current-menu-item > a,
.mobile-menu__nav .current_page_parent > a { color: var(--brand-orange); }
.mobile-menu__nav .menu-item-has-children { position: relative; }
.mobile-menu__toggle {
  position: absolute; right: -8px; top: 4px; width: 40px; height: 40px; border: 0; background: none; color: var(--brand-navy);
}
.mobile-menu__toggle .bi { display: inline-block; transition: transform .2s; }
.mobile-menu__toggle[aria-expanded="true"] .bi { transform: rotate(180deg); }
.mobile-menu__nav .sub-menu { list-style: none; padding: 0 0 10px 14px; margin: 0; }
.mobile-menu__nav .sub-menu a { font-weight: 400; padding: 7px 0; color: var(--text); }
.mobile-menu__nav .sub-menu--columns { columns: 2; }
.mobile-menu__account { margin-top: 24px; }
.mobile-menu__account .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.mobile-menu__contacts { margin-top: 24px; display: grid; gap: 10px; }

/* ==========================================================================
   HERO з відео
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: min(100svh, 860px); display: flex; flex-direction: column; justify-content: flex-end;
  padding-top: calc(var(--header-h) + 48px); padding-bottom: 32px; background: var(--brand-navy);
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video, .hero__poster { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__poster, .hero__video { position: absolute; inset: 0; }
/* відео над постером; проявляється, коли реально почало грати (клас ставить main.js) */
.hero__video { z-index: 1; opacity: 0; transition: opacity .8s ease; }
.hero__video.is-playing { opacity: 1; }
.hero__overlay {
  position: absolute; inset: 0; z-index: -1;
  /* сила затемнення відео: змінюйте --hero-dim (0 — без затемнення, 1 — максимум) */
  --hero-dim: .45;
  background:
    linear-gradient(180deg, rgba(8, 24, 45, .6) 0%, rgba(8, 24, 45, .1) 30%, rgba(8, 24, 45, .3) 65%, rgba(8, 24, 45, .9) 100%),
    linear-gradient(90deg, rgba(8, 24, 45, .65) 0%, rgba(8, 24, 45, .15) 60%, rgba(8, 24, 45, 0) 100%),
    rgba(8, 24, 45, var(--hero-dim));
}
.hero__content { max-width: 720px; margin-bottom: 32px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; font-size: .8rem;
  color: #fff; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero__eyebrow .bi { color: var(--brand-sand); font-size: 1rem; }
.hero__title { color: #fff; font-weight: 800; font-size: clamp(2.3rem, 1.3rem + 4.6vw, 4.6rem); line-height: 1.05; letter-spacing: -.01em; margin: 0 0 16px; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
.hero__title span { color: var(--brand-sand); }
.hero__text { font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); color: rgba(255, 255, 255, .92); max-width: 600px; margin-bottom: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .92rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .92); }
.hero__chips .bi { color: #7fe0a0; }
.hero__video-toggle {
  position: absolute; right: 16px; top: calc(var(--header-h) + 16px); z-index: 2; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .45); background: rgba(8, 24, 45, .35); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px);
}
.hero__video-toggle:hover { background: rgba(8, 24, 45, .6); }
@media (min-width: 992px) {
  .hero { padding-bottom: 48px; }
  .hero__content { margin-bottom: 48px; }
  .hero__video-toggle { right: 24px; top: auto; bottom: 24px; }
}

/* ---------- Форма пошуку турів (контейнер під модуль пошуку Otpusk) ---------- */
.search-form { position: relative; z-index: 2; }
.search-form__tabs { display: flex; gap: 4px; border: 0; }
.search-form__tabs .nav-link {
  display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: var(--radius) var(--radius) 0 0; font-weight: 700;
  color: var(--brand-navy); background: rgba(255, 255, 255, .88); padding: .75rem 1.2rem; font-size: .95rem;
}
.search-form__tabs .nav-link .bi { color: var(--brand-orange); font-size: 1.15rem; }
.search-form__tabs .nav-link.active { background: var(--brand-orange); color: #fff; }
.search-form__tabs .nav-link.active .bi { color: #fff; }
.search-form__panel { background: #fff; color: var(--text); border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: 0 20px 50px rgba(8, 24, 45, .3); padding: 10px; }
.search-form__grid { display: grid; gap: 8px; }
.search-field {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  min-height: 64px; background: #fff; transition: border-color .2s, box-shadow .2s;
}
.search-field:focus-within { border-color: var(--brand-orange); box-shadow: 0 0 0 3px rgba(238, 93, 28, .15); }
.search-field__icon { font-size: 1.5rem; color: var(--brand-orange); flex: 0 0 auto; }
.search-field__body { flex: 1 1 auto; min-width: 0; }
.search-field__label { display: block; font-size: .78rem; color: var(--text-muted); line-height: 1.2; margin-bottom: 2px; }
.search-field__control {
  display: block; width: 100%; border: 0; padding: 0; background: transparent; color: var(--brand-blue); font-weight: 700; font-size: 1rem;
  line-height: 1.4; appearance: none; -webkit-appearance: none; cursor: pointer; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-field__control:focus { outline: none; }
select.search-field__control { padding-right: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%230b4f9c' d='M1.6 5.1 8 11.5l6.4-6.4-1.1-1.1L8 9.3 2.7 4z'/%3E%3C/svg%3E") no-repeat right center; }
.search-field__row { display: flex; gap: 8px; }
.search-field__row > * { flex: 1 1 0; min-width: 0; }
.search-form__submit { min-height: 64px; font-size: 1.1rem; }
.guests-menu { min-width: 260px; padding: 14px 16px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-card-hover); }
.guests-menu__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; }
.guests-menu__row small { display: block; color: var(--text-muted); font-size: .78rem; }
.counter { display: inline-flex; align-items: center; gap: 10px; }
.counter button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--brand-navy); font-size: 1.1rem; line-height: 1; }
.counter button:hover { border-color: var(--brand-orange); color: var(--brand-orange); }
.counter output { min-width: 18px; text-align: center; font-weight: 700; }
@media (min-width: 768px) {
  .search-form__grid { grid-template-columns: 1fr 1fr; }
  .search-form__submit { grid-column: 1 / -1; }
}
@media (min-width: 1200px) {
  .search-form__grid { grid-template-columns: 1.35fr 1fr 1.35fr 1fr auto; gap: 0; }
  .search-field { border: 0; border-right: 1px solid var(--border); border-radius: 0; }
  .search-field:focus-within { box-shadow: inset 0 -3px 0 var(--brand-orange); }
  .search-form__submit { grid-column: auto; margin-left: 10px; padding-inline: 2.2rem; }
}

/* ==========================================================================
   Банери-лічильники
   ========================================================================== */
.stat-banner {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius); color: #fff; min-height: 150px;
  display: flex; align-items: center; gap: 18px; padding: 24px; background-size: cover; background-position: center; height: 100%;
}
.stat-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(15, 42, 74, .92) 0%, rgba(15, 42, 74, .55) 100%); transition: opacity .3s; }
.stat-banner:hover::before { opacity: .9; }
.stat-banner__icon { font-size: 2.6rem; line-height: 1; color: var(--brand-sand); flex: 0 0 auto; }
.stat-banner__title { color: #fff; font-size: 1.05rem; font-weight: 600; margin: 0; line-height: 1.3; }
.stat-banner__line { width: 28px; height: 2px; background: var(--brand-sand); margin: 10px 0; }
.stat-banner__value { font-size: 2rem; font-weight: 800; line-height: 1; margin: 0; }
.stat-banner__value small { font-size: 1rem; font-weight: 600; }

/* ==========================================================================
   Навігація слайдерів (єдиний компонент)
   ========================================================================== */
.slider { position: relative; }
.slider .swiper { padding: 8px 4px 20px; margin: -8px -4px 0; }
.slider .swiper-slide { height: auto; display: flex; }
.slider .swiper-slide > * { width: 100%; }
.slider-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 18px; }
.slider-nav__controls { display: flex; align-items: center; gap: 14px; }
.slider-nav__btn {
  width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff; color: var(--brand-navy); box-shadow: var(--shadow-float);
  display: grid; place-items: center; font-size: 1.1rem; transition: background .2s, color .2s;
}
.slider-nav__btn:hover { background: var(--brand-navy); color: #fff; }
.slider-nav__btn.swiper-button-disabled { opacity: .45; pointer-events: none; }
.slider-nav__dots { display: flex; gap: 6px; align-items: center; width: auto !important; }
.slider-nav__dots .swiper-pagination-bullet { width: 10px; height: 10px; margin: 0 !important; background: transparent; border: 2px solid var(--brand-blue); opacity: .6; transition: all .2s; }
.slider-nav__dots .swiper-pagination-bullet-active { background: var(--brand-blue); opacity: 1; width: 24px; border-radius: 6px; }
.slider--light .slider-nav__dots .swiper-pagination-bullet { border-color: #fff; }
.slider--light .slider-nav__dots .swiper-pagination-bullet-active { background: #fff; }

/* ==========================================================================
   Картка туру
   ========================================================================== */
.tour-card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-card); overflow: hidden;
  transition: box-shadow .25s var(--ease), transform .25s var(--ease); height: 100%;
}
.tour-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.tour-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.tour-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tour-card:hover .tour-card__media img { transform: scale(1.06); }
.tour-card__badges { position: absolute; left: 10px; top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.badge-tag { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: #fff; padding: 4px 9px; border-radius: 4px; line-height: 1.3; }
.badge-tag--hot { background: var(--brand-red); }
.badge-tag--sale { background: var(--brand-orange-dark); }
.badge-tag--recommend { background: var(--brand-green); }
.badge-tag--early { background: var(--brand-blue); }
.tour-card__tools { position: absolute; right: 10px; top: 10px; display: flex; flex-direction: column; gap: 6px; }
.tour-card__tool {
  width: 36px; height: 36px; border-radius: 4px; border: 0; background: rgba(255, 255, 255, .95); color: var(--brand-navy);
  display: grid; place-items: center; font-size: 1.05rem; transition: color .2s, background .2s;
}
.tour-card__tool:hover, .tour-card__tool[aria-pressed="true"] { color: var(--brand-red); }
.tour-card__tool[aria-pressed="true"] .bi-heart::before { content: "\F415"; }
.tour-card__rating {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 4px;
  padding: 3px 8px; font-size: .8rem; color: var(--text-muted);
}
.tour-card__rating b { color: #fff; background: var(--brand-green); border-radius: 3px; padding: 0 5px; font-size: .8rem; }
.tour-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 16px 16px; }
.tour-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 0; color: var(--text); }
.tour-card__title a { color: inherit; text-decoration: none; }
.tour-card__title a:hover { color: var(--brand-orange); }
.tour-card__stars { color: #f5a623; font-size: .8rem; white-space: nowrap; letter-spacing: 1px; }
.tour-card__location { color: var(--text-muted); font-size: .88rem; margin: 4px 0 10px; }
.tour-card__facts { list-style: none; margin: 0 0 12px; padding: 0; font-size: .88rem; display: grid; gap: 4px; }
.tour-card__facts li { display: flex; gap: 8px; align-items: flex-start; }
.tour-card__facts .bi { color: var(--text-muted); flex: 0 0 auto; }
.tour-card__footer { margin-top: auto; }
.tour-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.tour-card__price-value { font-size: 1.45rem; font-weight: 800; color: var(--brand-navy); line-height: 1.2; }
.tour-card__price-old { color: var(--text-muted); text-decoration: line-through; font-size: .95rem; }
.tour-card__price-note { display: block; color: var(--text-muted); font-size: .8rem; margin-bottom: 12px; }
.tour-card__btn { width: 100%; }

/* ---------- Екскурсійні тури ---------- */
.nav-segmented {
  display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--bg-soft); border: 0; margin: 0 auto 32px;
}
.nav-segmented .nav-link { border-radius: 999px; font-weight: 700; color: var(--brand-navy); padding: .6rem 1.3rem; border: 0; display: inline-flex; gap: 8px; align-items: center; }
.nav-segmented .nav-link.active { background: var(--brand-navy); color: #fff; box-shadow: var(--shadow-float); }
.excursion-card {
  position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .25s var(--ease);
}
.excursion-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.excursion-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.excursion-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.excursion-card:hover .excursion-card__media img { transform: scale(1.06); }
.excursion-card__label {
  position: absolute; left: 12px; bottom: 12px; background: rgba(15, 42, 74, .85); color: #fff; font-size: .78rem; font-weight: 700;
  padding: 5px 10px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; backdrop-filter: blur(4px);
}
.excursion-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1 1 auto; }
.excursion-card__title { font-size: 1.1rem; font-weight: 700; line-height: 1.35; margin: 0 0 10px; }
.excursion-card__title a { color: var(--text); text-decoration: none; }
.excursion-card__title a::after { content: ""; position: absolute; inset: 0; } /* уся картка клікабельна */
.excursion-card__title a:hover { color: var(--brand-orange); }
.excursion-card__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text-muted); font-size: .88rem; margin-bottom: 14px; }
.excursion-card__meta span { display: inline-flex; gap: 6px; align-items: center; }
.excursion-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--border); }
.excursion-card__price small { display: block; font-size: .78rem; color: var(--text-muted); }
.excursion-card__price b { font-size: 1.3rem; color: var(--brand-navy); }
.excursion-card:hover .btn-icon-arrow { transform: translateX(3px); background: var(--brand-orange-dark); }

/* ---------- Типи турів (добірки) ---------- */
.collection-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .collection-grid { grid-template-columns: 1fr 1fr; } .collection-grid > :first-child { grid-column: 1 / -1; } }
@media (min-width: 992px) {
  .collection-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 240px); gap: 20px; }
  .collection-grid > :first-child { grid-column: span 2; grid-row: span 2; }
}
.collection-card { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 220px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; text-decoration: none; }
.collection-card__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.collection-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 45, 0) 30%, rgba(8, 24, 45, .85) 100%); }
.collection-card:hover .collection-card__img { transform: scale(1.07); }
.collection-card__body { padding: 20px 22px; width: 100%; }
.collection-card__tag { display: inline-block; background: var(--brand-orange-dark); color: #fff; font-weight: 700; font-size: .95rem; padding: 6px 12px; border-radius: var(--radius-sm); margin-bottom: 8px; }
.collection-card__text { margin: 0; font-size: .92rem; color: rgba(255, 255, 255, .9); max-width: 440px; }
.collection-card__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; margin-top: 10px; opacity: 0; transform: translateY(6px); transition: all .3s var(--ease); }
.collection-card:hover .collection-card__more, .collection-card:focus-visible .collection-card__more { opacity: 1; transform: none; }
@media (hover: none) { .collection-card__more { opacity: 1; transform: none; } }

/* ---------- Популярні напрямки ---------- */
.destination { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.destination-tile { position: relative; isolation: isolate; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; color: #fff; text-decoration: none; }
.destination-tile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.destination-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 45, 0) 35%, rgba(8, 24, 45, .82) 100%); }
.destination-tile:hover img { transform: scale(1.07); }
.destination-tile__body { position: absolute; left: 14px; right: 14px; bottom: 12px; }
.destination-tile__name { font-size: 1.25rem; font-weight: 800; margin: 0; color: #fff; line-height: 1.2; }
.destination-tile__price { font-size: .95rem; font-weight: 600; margin: 2px 0 0; }
.destination-tile__price b { color: #ffcf9e; }
.destination-tile__from { font-size: .78rem; color: rgba(255, 255, 255, .8); margin: 0; }
.destination__resorts { list-style: none; margin: 0; padding: 0 2px; display: flex; flex-wrap: wrap; font-size: .88rem; }
.destination__resorts li + li::before { content: "•"; margin: 0 6px; color: var(--text-muted); }
.destination__resorts a { text-decoration: none; }
.destination__resorts a:hover { text-decoration: underline; }
@media (max-width: 575.98px) {
  .destination-tile__name { font-size: 1.05rem; }
  .destination-tile__from { display: none; }
  .destination__resorts { font-size: .8rem; }
}

/* ---------- Про нас ---------- */
.about__media { position: relative; }
.about__img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.about__badge {
  position: absolute; right: -8px; bottom: -20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card-hover);
  padding: 16px 20px; display: flex; gap: 14px; align-items: center; max-width: 280px;
}
.about__badge .bi { font-size: 2.2rem; color: var(--brand-orange); }
.about__badge b { display: block; color: var(--brand-navy); font-size: 1.05rem; line-height: 1.2; }
.about__badge span { font-size: .85rem; color: var(--text-muted); }
.about__deco { position: absolute; left: 0; top: -18px; width: 120px; height: 120px; z-index: -1; border-radius: var(--radius-lg); background: radial-gradient(var(--brand-sand) 2px, transparent 2.5px) 0 0 / 14px 14px; opacity: .6; }
.about__quote { font-size: clamp(1.25rem, 1rem + 1vw, 1.6rem); font-weight: 300; color: var(--brand-navy); line-height: 1.35; border-left: 3px solid var(--brand-sand); padding-left: 18px; margin: 0 0 18px; }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .bi { color: var(--brand-green); font-size: 1.15rem; line-height: 1.4; }
.about__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 28px; }
.about__stat { background: var(--brand-sand-soft); border-radius: var(--radius); padding: 14px; text-align: center; }
.about__stat b { display: block; font-size: 1.6rem; font-weight: 800; color: var(--brand-navy); line-height: 1.1; }
.about__stat span { font-size: .8rem; color: var(--text-muted); line-height: 1.25; display: block; overflow-wrap: anywhere; }
@media (min-width: 992px) { .about__deco { left: -18px; } }
@media (max-width: 399.98px) {
  .about__stats { gap: 8px; }
  .about__stat { padding: 12px 6px; }
  .about__stat b { font-size: 1.3rem; }
  .about__stat span { font-size: .72rem; }
}

/* ---------- Кроки ---------- */
.steps { display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: minmax(230px, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 16px; margin: 0 -4px; scrollbar-width: thin; list-style: none; counter-reset: step; }
@media (min-width: 768px) { .steps { grid-auto-columns: minmax(230px, 40%); } }
@media (min-width: 1200px) { .steps { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); overflow: visible; } }
.step-card {
  position: relative; scroll-snap-align: start; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px 24px; background: #fff; overflow: hidden;
  transition: border-color .25s, box-shadow .25s, transform .25s var(--ease);
}
.step-card:hover { border-color: transparent; box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.step-card__num { position: absolute; right: 12px; top: 2px; font-size: 4.2rem; font-weight: 800; line-height: 1; color: var(--brand-navy); opacity: .06; }
.step-card__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 1.6rem; color: var(--brand-orange); background: #fff1ea; margin-bottom: 16px; }
.step-card__title { font-size: 1.05rem; font-weight: 700; margin: 0 0 6px; }
.step-card__text { font-size: .9rem; color: var(--text-muted); margin: 0; }

/* ---------- Лід-форма / підписка (синій блок) ---------- */
.lead-form {
  position: relative; isolation: isolate; border-radius: var(--radius-lg); color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-blue-muted) 100%); padding: 32px 22px;
}
.lead-form::before, .lead-form::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.lead-form::before { width: 340px; height: 340px; right: -80px; top: -120px; border: 50px solid rgba(255, 255, 255, .05); }
.lead-form::after { width: 16px; height: 16px; right: 38%; bottom: 28px; background: var(--brand-sand); box-shadow: 60px -40px 0 -4px rgba(255, 255, 255, .25), 150px -250px 0 -3px var(--brand-orange); }
@media (max-width: 991.98px) { .lead-form::after { display: none; } }
.lead-form__title { color: #fff; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.2rem); font-weight: 300; line-height: 1.2; margin: 0 0 10px; }
.lead-form__title b { font-weight: 700; }
.lead-form__text { color: rgba(255, 255, 255, .85); margin-bottom: 22px; }
.lead-form .form-control, .lead-form .input-group-text { min-height: 54px; border: 0; }
.lead-form .form-control { border-radius: var(--radius-sm); }
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--text-muted); z-index: 5; pointer-events: none; }
.input-icon > .form-control { padding-left: 44px; }
.phone-prefix { background: #fff; border-right: 1px solid var(--border) !important; font-weight: 600; gap: 6px; }
.lead-form .btn { min-height: 54px; }
.lead-form__consent { font-size: .8rem; color: rgba(255, 255, 255, .75); margin: 12px 0 0; }
.lead-form__consent a { color: #fff; }
.lead-form .invalid-feedback { color: #ffc2b3; }
.lead-form__visual { position: relative; display: none; }
.lead-form__circle { width: 300px; height: 300px; border-radius: 50%; object-fit: cover; border: 8px solid rgba(255, 255, 255, .15); margin-left: auto; display: block; }
.lead-form__sticker {
  position: absolute; left: 0; bottom: 20px; background: #fff; color: var(--text); border-radius: var(--radius); padding: 12px 16px; box-shadow: var(--shadow-card-hover);
  display: flex; gap: 10px; align-items: center; font-size: .88rem; max-width: 230px;
}
.lead-form__sticker .bi { font-size: 1.6rem; color: var(--brand-orange); }
.lead-form__sticker b { color: var(--brand-navy); display: block; }
@media (min-width: 992px) {
  .lead-form { padding: 56px 60px; }
  .lead-form__visual { display: block; }
}

/* ---------- Послуги ---------- */
.service-card { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); transition: box-shadow .25s, transform .25s var(--ease); position: relative; }
.service-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-4px); }
.service-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.06); }
.service-card__body { padding: 20px 22px 24px; flex: 1 1 auto; }
.service-card__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.service-card__title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.service-card__title a { color: var(--text); text-decoration: none; }
.service-card__title a::after { content: ""; position: absolute; inset: 0; }
.service-card__text { color: var(--text-muted); font-size: .92rem; margin: 0; }
.service-card:hover .btn-icon-arrow { background: var(--brand-orange-dark); transform: translateX(3px); }

/* ---------- Переваги (темний фон) ---------- */
.advantages { position: relative; isolation: isolate; color: #fff; background-size: cover; background-position: center; background-attachment: scroll; }
.advantages::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 24, 45, .88), rgba(8, 24, 45, .78)); }
.advantages .section__title { color: #fff; }
.advantages .section__lead { color: rgba(255, 255, 255, .8); }
.advantage-box { height: 100%; border: 1px solid rgba(255, 255, 255, .28); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: flex-start; transition: background .25s, border-color .25s; backdrop-filter: blur(2px); }
.advantage-box:hover { background: rgba(255, 255, 255, .07); border-color: var(--brand-sand); }
.advantage-box .bi { font-size: 2.2rem; line-height: 1; color: var(--brand-sand); flex: 0 0 auto; }
.advantage-box__title { color: #fff; font-size: 1.05rem; font-weight: 700; margin: 0 0 4px; }
.advantage-box__text { font-size: .9rem; color: rgba(255, 255, 255, .8); margin: 0; }
@media (min-width: 992px) { .advantages { background-attachment: fixed; } }

/* ---------- Промо-банери ---------- */
.promo-banner {
  position: relative; isolation: isolate; overflow: hidden; height: 100%; border-radius: var(--radius-lg); padding: 30px 26px;
  display: flex; flex-direction: column; align-items: flex-start; min-height: 280px;
}
.promo-banner--sand { background: var(--brand-sand-soft); }
.promo-banner--telegram { background: linear-gradient(135deg, #e7f5fd 0%, #d3ecfa 100%); }
.promo-banner__eyebrow { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-orange-dark); margin-bottom: 8px; }
.promo-banner--telegram .promo-banner__eyebrow { color: #1a7fb0; }
.promo-banner__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 300; line-height: 1.2; margin: 0 0 10px; max-width: 360px; }
.promo-banner__title b { font-weight: 800; }
.promo-banner__text { color: var(--text-muted); margin-bottom: 20px; max-width: 330px; }
.promo-banner .btn { margin-top: auto; }
.promo-banner__visual { position: absolute; right: -40px; bottom: -40px; z-index: -1; width: 230px; height: 230px; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: var(--shadow-float); }
.promo-banner__visual img { width: 100%; height: 100%; object-fit: cover; }
.promo-banner__big { position: absolute; right: 22px; top: 18px; z-index: -1; font-size: clamp(3.2rem, 2rem + 4vw, 5.5rem); font-weight: 800; line-height: 1; color: #229ed9; opacity: .16; }
.promo-banner__tg { position: absolute; right: 30px; bottom: 24px; z-index: -1; font-size: 7rem; line-height: 1; color: #229ed9; opacity: .9; transform: rotate(-12deg); }
@media (max-width: 575.98px) {
  .promo-banner { padding-bottom: 190px; }
  .promo-banner__visual { width: 200px; height: 200px; right: -20px; bottom: -40px; }
  .promo-banner__tg { font-size: 5.5rem; }
  .promo-banner__big { display: none; }
}
@media (min-width: 992px) { .promo-banner { padding: 44px 40px; min-height: 320px; } .promo-banner__visual { width: 280px; height: 280px; } }

/* ---------- Відгуки ---------- */
.reviews { overflow: hidden; }
.reviews .swiper { overflow: visible; }
.review-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); overflow: hidden; height: 100%; }
.review-card__media { aspect-ratio: 16 / 9; overflow: hidden; flex: 0 0 auto; }
.review-card__media img { width: 100%; height: 100%; object-fit: cover; }
.review-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1 1 auto; }
.review-card__name { font-size: 1.05rem; font-weight: 700; margin: 0; }
.review-card__meta { font-size: .82rem; color: var(--text-muted); margin: 2px 0 0; }
.review-card__stars { color: #f5a623; font-size: .85rem; letter-spacing: 1px; }
.review-card__line { width: 28px; height: 2px; background: var(--brand-sand); margin: 12px 0; }
.review-card__text { font-size: .93rem; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.review-card__more { margin-top: auto; color: var(--brand-orange-dark); font-weight: 700; text-decoration: none; font-size: .9rem; }
.review-card__more:hover { color: var(--brand-orange); text-decoration: underline; }
@media (min-width: 768px) {
  .review-card { flex-direction: row; }
  .review-card__media { aspect-ratio: auto; flex: 0 0 36%; }
}

/* ---------- Новини ---------- */
.post-card { display: flex; flex-direction: column; height: 100%; position: relative; }
.post-card__media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; position: relative; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__date { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--brand-navy); font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 4px; }
.post-card__title { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin: 0; }
.post-card__title a { color: var(--brand-blue); text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover .post-card__title a { color: var(--brand-orange-dark); }
.post-card__line { width: 28px; height: 2px; background: var(--brand-sand); margin: 10px 0; }
.post-card__excerpt { color: var(--text-muted); font-size: .9rem; margin: 0; }
/* опційні елементи картки (архів блогу, «Читайте також») */
.post-card__cat {
  position: relative; z-index: 1; align-self: flex-start; display: inline-block; margin-bottom: 6px;
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-orange-dark); text-decoration: none;
}
.post-card__cat:hover { color: var(--brand-navy); }
.post-card__meta { margin: auto 0 0; padding-top: 12px; display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); }
.post-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: .85rem; color: var(--text-muted); }
.post-meta li { display: inline-flex; align-items: center; gap: 6px; }

/* ==========================================================================
   БЛОГ: архів (news.html → home.php / archive.php)
   ========================================================================== */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--bg-soft); padding-block: 28px 32px; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; right: -120px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  border: 64px solid rgba(193, 153, 111, .12);
}
.page-hero::after {
  content: ""; position: absolute; z-index: -1; right: 18%; bottom: 24px; width: 110px; height: 110px;
  background: radial-gradient(var(--brand-sand) 2px, transparent 2.5px) 0 0 / 14px 14px; opacity: .45;
}
.page-hero .breadcrumbs { margin-bottom: 18px; }
.page-hero__title { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 300; line-height: 1.15; margin: 0 0 12px; max-width: 760px; }
.page-hero__title b { font-weight: 700; }
.page-hero__lead { color: var(--text-muted); font-size: 1.05rem; max-width: 640px; margin: 0 0 26px; }
@media (min-width: 992px) { .page-hero { padding-block: 40px 44px; } .page-hero::after { display: block; } }
@media (max-width: 991.98px) { .page-hero::after { display: none; } }

/* Рубрики — горизонтальні «чіпси», на мобільних прокручуються */
.category-nav { margin-inline: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5); }
.category-nav__list {
  list-style: none; margin: 0; padding: 4px calc(var(--bs-gutter-x, 1.5rem) * .5); display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
}
.category-nav__list::-webkit-scrollbar { display: none; }
.category-nav__list li { flex: 0 0 auto; scroll-snap-align: start; }
.category-nav__list a {
  display: inline-block; padding: .5rem 1.05rem; border-radius: 999px; background: #fff; color: var(--brand-navy); font-weight: 600; font-size: .9rem;
  text-decoration: none; box-shadow: 0 0 0 1px var(--border); transition: background .2s, color .2s, box-shadow .2s;
}
.category-nav__list a:hover { box-shadow: 0 0 0 1px var(--brand-orange); color: var(--brand-orange-dark); }
.category-nav__list .current-cat > a { background: var(--brand-navy); color: #fff; box-shadow: var(--shadow-float); }
@media (min-width: 768px) { .category-nav__list { flex-wrap: wrap; overflow: visible; } }

.section--blog { padding-top: 40px; }
@media (min-width: 992px) { .section--blog { padding-top: 56px; } }

/* Головна (закріплена) стаття */
.post-featured {
  position: relative; display: grid; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card);
  transition: box-shadow .25s var(--ease), transform .25s var(--ease); margin-bottom: 24px;
}
.post-featured:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-3px); }
.post-featured__media { aspect-ratio: 16 / 10; overflow: hidden; }
.post-featured__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-featured:hover .post-featured__media img { transform: scale(1.05); }
.post-featured__body { padding: 22px 22px 26px; display: flex; flex-direction: column; align-items: flex-start; }
.post-featured__top { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.post-featured__top .post-card__cat { margin: 0; }
.post-featured__label { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--brand-navy); background: var(--brand-sand-soft); padding: 3px 9px; border-radius: 999px; }
.post-featured__title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); font-weight: 700; line-height: 1.25; margin: 6px 0 12px; }
.post-featured__title a { color: var(--brand-navy); text-decoration: none; }
.post-featured__title a::after { content: ""; position: absolute; inset: 0; }
.post-featured:hover .post-featured__title a { color: var(--brand-orange-dark); }
.post-featured__excerpt { color: var(--text-muted); margin: 0 0 16px; }
.post-featured__more { margin-top: 20px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand-orange-dark); }
.post-featured__more .bi { transition: transform .2s var(--ease); }
.post-featured:hover .post-featured__more .bi { transform: translateX(4px); }
@media (min-width: 992px) {
  .post-featured { grid-template-columns: 7fr 5fr; margin-bottom: 40px; }
  .post-featured__media { aspect-ratio: auto; min-height: 400px; }
  .post-featured__body { padding: 44px 44px 40px; justify-content: center; }
}

/* Бічна панель */
.blog-sidebar__inner { display: grid; gap: 20px; }
.sidebar-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.sidebar-box__title { font-size: .95rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px; padding-bottom: 12px; position: relative; }
.sidebar-box__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--brand-sand); }
.blog-search { position: relative; }
.blog-search .form-control { padding-right: 52px; }
.blog-search__btn {
  position: absolute; right: 4px; top: 4px; bottom: 4px; width: 42px; border: 0; border-radius: 4px; background: var(--brand-orange); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.blog-search__btn:hover { background: var(--brand-orange-dark); }
.sidebar-cats { list-style: none; margin: 0; padding: 0; }
.sidebar-cats li + li { border-top: 1px dashed var(--border); }
.sidebar-cats a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.sidebar-cats a:hover { color: var(--brand-orange-dark); }
.sidebar-cats span { min-width: 30px; text-align: center; font-size: .78rem; font-weight: 700; color: var(--text-muted); background: var(--bg-soft); border-radius: 999px; padding: 2px 8px; }
.sidebar-cats .current-cat > a { color: var(--brand-orange-dark); }
.popular-posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.popular-posts__item { position: relative; display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.popular-posts__img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.popular-posts__title { display: block; font-size: .92rem; font-weight: 600; line-height: 1.35; color: var(--brand-navy); text-decoration: none; }
.popular-posts__title::after { content: ""; position: absolute; inset: 0; }
.popular-posts__item:hover .popular-posts__title { color: var(--brand-orange-dark); }
.popular-posts__date { display: block; font-size: .78rem; color: var(--text-muted); margin-top: 3px; }
.sidebar-cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: 28px 24px; color: rgba(255, 255, 255, .85);
  background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-blue-muted) 100%);
}
.sidebar-cta::before { content: ""; position: absolute; z-index: -1; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .06); }
.sidebar-cta__icon { font-size: 2.2rem; color: var(--brand-sand); line-height: 1; }
.sidebar-cta__title { color: #fff; font-size: 1.3rem; font-weight: 700; margin: 12px 0 8px; }
.sidebar-cta__text { font-size: .92rem; margin-bottom: 18px; }
.sidebar-cta__tg { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .85rem; font-weight: 600; color: #fff; text-decoration: none; }
.sidebar-cta__tg .bi { color: #5cc3f2; font-size: 1.1rem; }
.sidebar-cta__tg:hover { color: var(--brand-sand); }
@media (min-width: 768px) and (max-width: 991.98px) {
  .blog-sidebar__inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* Порожній стан архіву */
.empty-state { text-align: center; border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 24px; }
.empty-state[hidden] { display: none; }
.empty-state__icon { font-size: 3rem; color: var(--brand-sand); }
.empty-state__title { font-size: 1.4rem; font-weight: 700; margin: 12px 0 8px; }
.empty-state__text { color: var(--text-muted); max-width: 460px; margin: 0 auto 20px; }

/* ==========================================================================
   БЛОГ: стаття (news-item.html → single.php)
   ========================================================================== */
.reading-progress { position: fixed; left: 0; right: 0; top: 0; z-index: 1035; height: 3px; pointer-events: none; }
.reading-progress span { display: block; height: 100%; background: var(--brand-orange); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
body.admin-bar .reading-progress { top: 32px; }

.article-container { max-width: 820px; }
.article-container--wide { max-width: 1120px; }
.article-header { padding-top: 24px; }
.article-header .breadcrumbs { margin-bottom: 22px; }
.article-header__title { font-size: clamp(1.9rem, 1.2rem + 2.8vw, 3.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 4px 0 16px; }
.article-header__lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--text-muted); margin: 0; }
.article-header__bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 24px 0 28px; padding: 16px 0; border-block: 1px solid var(--border);
}
.article-header__media { margin: 0 0 8px; }
.article-header__media img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-lg); }
@media (min-width: 992px) { .article-header { padding-top: 36px; } .article-header__media { margin-bottom: 16px; } }

.article-author { display: flex; align-items: center; gap: 12px; }
.article-author__avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-sand); }
.article-author__name { display: block; font-weight: 700; color: var(--brand-navy); line-height: 1.3; margin-bottom: 2px; }

.share { position: relative; display: flex; align-items: center; gap: 8px; }
.share__label { font-size: .85rem; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.share__btn {
  width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; font-size: 1.05rem; text-decoration: none;
  background: var(--bg-soft); color: var(--brand-navy); transition: background .2s, color .2s, transform .2s;
}
.share__btn:hover { background: var(--brand-navy); color: #fff; transform: translateY(-2px); }
.share__btn--facebook:hover { background: #1877f2; }
.share__btn--telegram:hover { background: #229ed9; }
.share__btn--viber:hover { background: #7360f2; }
.share__btn--whatsapp:hover { background: #1fa855; }
.share__copied {
  position: absolute; right: 0; top: calc(100% + 8px); white-space: nowrap; background: var(--brand-navy); color: #fff; font-size: .8rem; font-weight: 600;
  padding: 5px 10px; border-radius: var(--radius-sm); box-shadow: var(--shadow-float);
}
@media (max-width: 399.98px) { .share__label { display: none; } }

/* Зміст */
.toc { background: var(--brand-sand-soft); border-radius: var(--radius); padding: 18px 22px; margin: 32px 0 36px; }
.toc__title { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--brand-navy); cursor: pointer; list-style: none; }
.toc__title::-webkit-details-marker { display: none; }
.toc__title::after { content: "\F282"; font-family: "bootstrap-icons"; margin-left: auto; font-size: .8rem; transition: transform .2s; }
.toc:not([open]) .toc__title::after { transform: rotate(-90deg); }
.toc__title .bi { color: var(--brand-orange); font-size: 1.2rem; }
.toc__list { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 4px; }
.toc__list li { counter-increment: toc; }
.toc__list a { display: flex; gap: 12px; padding: 5px 0; color: var(--text); text-decoration: none; font-size: .95rem; }
.toc__list a::before { content: counter(toc, decimal-leading-zero); font-weight: 700; color: var(--brand-sand); min-width: 22px; }
.toc__list a:hover, .toc__list a.is-active { color: var(--brand-orange-dark); }
.toc__list a.is-active { font-weight: 700; }

/* CTA всередині статті */
.cta-inline {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
  margin: 48px 0 36px; padding: 28px 24px; border-radius: var(--radius-lg); color: rgba(255, 255, 255, .85);
  background: linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-blue-muted) 100%);
}
.cta-inline::before { content: ""; position: absolute; z-index: -1; right: -60px; bottom: -110px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .06); }
.cta-inline__title { color: #fff; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 700; margin: 0 0 6px; }
.cta-inline__text { margin: 0; }
@media (min-width: 768px) {
  .cta-inline { flex-direction: row; align-items: center; justify-content: space-between; padding: 34px 36px; }
  .cta-inline .btn { flex: 0 0 auto; }
}

/* Підвал статті: теги, автор, навігація */
.article-footer { display: grid; gap: 28px; padding-bottom: var(--section-py); }
.tagcloud { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tagcloud__label { font-weight: 700; color: var(--brand-navy); margin-right: 4px; font-size: .9rem; }
.tag-cloud-link {
  display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--bg-soft); color: var(--text);
  font-size: .85rem !important; /* wp_tag_cloud() додає inline font-size */ text-decoration: none; transition: background .2s, color .2s;
}
.tag-cloud-link::before { content: "#"; color: var(--brand-sand); margin-right: 1px; }
.tag-cloud-link:hover { background: var(--brand-orange); color: #fff; }
.tag-cloud-link:hover::before { color: inherit; }
.author-box { display: flex; gap: 18px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius); padding: 22px; }
.author-box__avatar { width: 72px; height: 72px; flex: 0 0 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-card); }
.author-box__label { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-sand); margin: 0; }
.author-box__name { font-size: 1.1rem; font-weight: 700; color: var(--brand-navy); margin: 2px 0 6px; }
.author-box__text { color: var(--text-muted); font-size: .92rem; margin: 0; }
@media (min-width: 768px) { .author-box { padding: 26px 28px; } .author-box__avatar { width: 96px; height: 96px; flex-basis: 96px; } }

.section--related .post-card__media { box-shadow: var(--shadow-card); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: var(--brand-navy); color: rgba(255, 255, 255, .78); font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px; border-radius: 50%; border: 70px solid rgba(255, 255, 255, .03); pointer-events: none; }
.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer__main { padding-block: 56px 32px; }
.site-footer__logo img { height: 52px; width: auto; }
.site-footer__about { margin: 18px 0 20px; max-width: 340px; }
.site-footer__title { color: #fff; font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .menu a { display: inline-flex; align-items: center; gap: 6px; transition: color .2s, transform .2s; }
.site-footer .menu a:hover { transform: translateX(3px); }
.site-footer .menu--columns { grid-template-columns: 1fr 1fr; column-gap: 16px; }
.site-footer__contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.site-footer__contacts li { display: flex; gap: 12px; align-items: flex-start; }
.site-footer__contacts .bi { color: var(--brand-sand); font-size: 1.1rem; line-height: 1.5; }
.site-footer__contacts b { color: #fff; font-weight: 700; }
.site-footer .social-links { gap: 10px; }
.site-footer .social-links a { width: 40px; height: 40px; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.05rem; }
.site-footer .social-links a:hover { background: var(--brand-orange); }
.site-footer__social-title { color: #fff; font-weight: 700; margin: 0 0 10px; font-size: .95rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .85rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }
.site-footer__pay { display: flex; gap: 10px; align-items: center; font-size: 1.6rem; color: rgba(255, 255, 255, .6); }
@media (min-width: 992px) { .site-footer__main { padding-block: 80px 48px; } }

/* ==========================================================================
   Плаваючий чат-віджет
   ========================================================================== */
.chat-widget { position: fixed; right: 16px; bottom: 16px; z-index: 1040; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.chat-widget__buttons { display: flex; gap: 10px; align-items: center; }
.chat-widget__call, .chat-widget__toggle {
  border: 0; background: var(--brand-orange); color: #fff; box-shadow: 0 8px 24px rgba(238, 93, 28, .4); transition: transform .2s, background .2s;
}
.chat-widget__call { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; text-decoration: none; }
.chat-widget__call:hover { color: #fff; background: var(--brand-orange-dark); transform: scale(1.05); }
.chat-widget__toggle { position: relative; height: 56px; border-radius: 999px; padding: 0 18px 0 20px; display: inline-flex; align-items: center; gap: 12px; font-weight: 700; font-size: .85rem; line-height: 1.2; text-align: left; }
.chat-widget__toggle:hover { background: var(--brand-orange-dark); }
.chat-widget__toggle .bi { font-size: 1.5rem; }
.chat-widget__badge { position: absolute; top: -6px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-red); border: 2px solid #fff; font-size: .72rem; display: grid; place-items: center; }
.chat-widget__call { animation: ring 3.2s infinite; }
@keyframes ring { 0%, 100% { box-shadow: 0 8px 24px rgba(238, 93, 28, .4), 0 0 0 0 rgba(238, 93, 28, .45); } 50% { box-shadow: 0 8px 24px rgba(238, 93, 28, .4), 0 0 0 14px rgba(238, 93, 28, 0); } }
.chat-widget__panel {
  width: min(320px, calc(100vw - 32px)); background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(8, 24, 45, .25); overflow: hidden;
  transform-origin: bottom right; transition: opacity .2s, transform .25s var(--ease);
}
.chat-widget__panel[hidden] { display: block; opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none; visibility: hidden; }
.chat-widget__head { background: var(--brand-navy); color: #fff; padding: 14px 16px; display: flex; gap: 12px; align-items: center; }
.chat-widget__avatar { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-sand); }
.chat-widget__head b { display: block; font-size: .95rem; }
.chat-widget__head small { color: #7fe0a0; font-size: .78rem; }
.chat-widget__close { margin-left: auto; border: 0; background: none; color: #fff; font-size: 1.3rem; opacity: .8; }
.chat-widget__msg { margin: 16px; padding: 12px 14px; background: var(--bg-soft); border-radius: 4px 14px 14px 14px; font-size: .92rem; }
.chat-widget__links { display: grid; gap: 8px; padding: 0 16px 16px; }
.chat-widget__link { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); color: #fff; font-weight: 700; text-decoration: none; font-size: .92rem; }
.chat-widget__link:hover { color: #fff; filter: brightness(1.08); }
.chat-widget__link .bi { font-size: 1.2rem; }
.chat-widget__link--telegram { background: #229ed9; }
.chat-widget__link--viber { background: #7360f2; }
.chat-widget__link--whatsapp { background: #1fa855; }
@media (max-width: 575.98px) {
  .chat-widget__toggle span { display: none; }
  .chat-widget__toggle { width: 56px; padding: 0; justify-content: center; }
}

/* Кнопка «нагору» */
.to-top {
  position: fixed; left: 16px; bottom: 16px; z-index: 1039; width: 46px; height: 46px; border-radius: 50%; border: 0; background: #fff;
  color: var(--brand-navy); box-shadow: var(--shadow-float); display: grid; place-items: center; font-size: 1.2rem;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--brand-navy); color: #fff; }

/* ---------- Модалки ---------- */
.modal-content { border: 0; border-radius: var(--radius-lg); overflow: hidden; }
.modal-header { border: 0; padding: 22px 24px 0; }
.modal-title { font-weight: 700; }
.modal-body { padding: 16px 24px 24px; }
.form-label { font-weight: 600; font-size: .9rem; }
.form-control, .form-select { min-height: 48px; border-radius: var(--radius-sm); }
.form-control:focus, .form-select:focus { border-color: var(--brand-orange); box-shadow: 0 0 0 .2rem rgba(238, 93, 28, .15); }
.form-check-input:checked { background-color: var(--brand-orange); border-color: var(--brand-orange); }

/* ---------- Анімація появи ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .advantages { background-attachment: scroll; }
}

/* Модалка входу / реєстрації */
.auth-modal__tabs { background: var(--bg-soft); border-radius: 12px; padding: 4px; margin-bottom: 20px; }
.auth-modal__tabs .nav-link { border-radius: 9px; color: var(--brand-navy); font-weight: 600; }
.auth-modal__tabs .nav-link.active { background: #fff; color: var(--brand-orange); box-shadow: 0 1px 4px rgba(15, 42, 74, .12); }
.auth-modal__perks { display: flex; gap: 8px; align-items: flex-start; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.auth-modal__perks .bi { color: var(--brand-orange); }

/* =====================================================================
   Особистий кабінет (account.html) і Обране (favorites.html)
   ===================================================================== */
.page-hero--compact { padding-block: 24px 28px; }
@media (min-width: 992px) { .page-hero--compact { padding-block: 32px 36px; } }
form.sent .wpcf7-response-output { background: #e6f6ea; border-color: #b6e2c0; color: #1f6b2c; }

/* Статус-мітки */
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: .8rem; font-weight: 700; line-height: 1.3; white-space: nowrap;
}
.status--success { background: #e6f6ea; color: #1f6b2c; }
.status--accent { background: #fdeee6; color: var(--brand-orange-dark); }
.status--info { background: #e7eff9; color: var(--brand-blue); }
.status--muted { background: var(--bg-soft); color: var(--text-muted); }

/* Навігація кабінету */
.account { padding-top: 32px; }
.account .tab-pane:focus { outline: none; }
.account-nav { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px; }
.account-nav__user { display: flex; align-items: center; gap: 12px; padding: 12px 12px 16px; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.account-nav__avatar {
  flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--brand-orange); color: #fff; font-size: 1.2rem; font-weight: 700;
}
.account-nav__user-text { display: grid; min-width: 0; }
.account-nav__user-text b { color: var(--brand-navy); }
.account-nav__user-text small { color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; }
.account-nav__list { flex-direction: column; gap: 2px; }
.account-nav__list .nav-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 600; font-size: .95rem;
}
.account-nav__list .nav-link .bi { font-size: 1.1rem; color: var(--text-muted); }
.account-nav__list .nav-link:hover { background: var(--brand-sand-soft); color: var(--brand-navy); }
.account-nav__list .nav-link.active { background: var(--brand-navy); color: #fff; }
.account-nav__list .nav-link.active .bi { color: var(--brand-sand); }
.account-nav__count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-orange); color: #fff; font-size: .75rem; font-weight: 700;
}
.account-nav__count--muted { background: var(--bg-soft); color: var(--text-muted); }
.account-nav__logout { color: var(--text-muted) !important; border-top: 1px solid var(--border); border-radius: 0 !important; margin-top: 6px; padding-top: 14px !important; }
/* < lg: горизонтальна прокрутка розділів */
@media (max-width: 991.98px) {
  .account-nav { padding: 0; border: 0; background: none; }
  .account-nav__user { padding: 0 0 14px; border: 0; margin: 0; }
  .account-nav__list {
    flex-direction: row; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px;
    margin-inline: calc(-1 * var(--bs-gutter-x, 1.5rem) * .5); padding: 2px calc(var(--bs-gutter-x, 1.5rem) * .5) 6px;
  }
  .account-nav__list::-webkit-scrollbar { display: none; }
  .account-nav__list .nav-link { flex: 0 0 auto; background: #fff; box-shadow: 0 0 0 1px var(--border); border-radius: 999px; padding: 8px 14px; white-space: nowrap; }
  .account-nav__logout { border-top: 0; margin-top: 0; padding-top: 8px !important; border-radius: 999px !important; }
}

/* Менеджер */
.manager-card { margin-top: 16px; background: var(--brand-sand-soft); border-radius: var(--radius); padding: 20px; text-align: center; }
.manager-card__photo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: var(--shadow-card); }
.manager-card__role { font-size: .8rem; color: var(--text-muted); margin: 10px 0 0; }
.manager-card__name { font-weight: 700; color: var(--brand-navy); margin: 0 0 8px; }
.manager-card__phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand-navy); text-decoration: none; white-space: nowrap; }
.manager-card__phone .bi { color: var(--brand-orange); }
.manager-card__links { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
.manager-card__links a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--brand-navy); font-size: 1.05rem; text-decoration: none; }
.manager-card__links a:hover { background: var(--brand-orange); color: #fff; }
.manager-card--inline { display: flex; align-items: center; gap: 14px; text-align: left; margin-top: 24px; }
.manager-card--inline .manager-card__photo { width: 56px; height: 56px; }
.manager-card--inline .manager-card__role { margin: 0; }
.manager-card--inline .manager-card__name { margin-bottom: 2px; }

/* Заголовки та блоки кабінету */
.account-title { font-size: 1.6rem; font-weight: 700; color: var(--brand-navy); margin: 0 0 20px; }
.account-subtitle { font-size: .9rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 28px 0 14px; }
.account-subtitle:first-of-type { margin-top: 0; }
.account-greeting { margin-bottom: 20px; }
.account-greeting .account-title { margin-bottom: 6px; }
.account-pane-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.account-pane-head .account-title { margin: 0; }
.account-pane-head .btn, .account-box__head .btn, .trip-card__actions .btn, .request-card__links .btn { display: inline-flex; align-items: center; gap: 8px; }
.account-box { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.account-box:first-child, .account-title + .account-box { margin-top: 0; }
@media (min-width: 768px) { .account-box { padding: 24px 28px; } }
.account-box__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.account-box__title { font-size: 1.1rem; font-weight: 700; color: var(--brand-navy); margin: 0 0 16px; }
.account-box__head .account-box__title { margin: 0; }
.account-box__title small { display: block; font-size: .85rem; font-weight: 400; color: var(--text-muted); margin-top: 2px; }
.account-box__more { font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.account-box--danger { border-color: #f5c2bd; }
.account-box--danger .account-box__title { color: var(--brand-red); }
.account-empty { text-align: center; color: var(--text-muted); padding: 32px 0; margin: 0; }

/* Статистика */
.account-stats { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .account-stats { grid-template-columns: repeat(4, 1fr); } }
.account-stat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: grid; gap: 2px; }
.account-stat .bi { font-size: 1.3rem; color: var(--brand-orange); margin-bottom: 6px; }
.account-stat b { font-size: 1.6rem; line-height: 1.1; color: var(--brand-navy); }
.account-stat span { font-size: .85rem; color: var(--text-muted); }

/* Картка подорожі */
.trip-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: grid; }
.trip-card--next { box-shadow: var(--shadow-card); border-color: transparent; }
@media (min-width: 768px) { .trip-card { grid-template-columns: 38% 1fr; } }
.trip-card__media { position: relative; min-height: 200px; background: var(--bg-soft); }
.trip-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.trip-card__countdown {
  position: absolute; left: 12px; bottom: 12px; background: rgba(15, 42, 74, .88); color: #fff; border-radius: var(--radius-sm);
  padding: 6px 12px; font-size: .85rem; backdrop-filter: blur(4px);
}
.trip-card__countdown b { font-size: 1.15rem; color: var(--brand-sand); }
.trip-card__body { padding: 18px 20px 20px; }
@media (min-width: 992px) { .trip-card__body { padding: 22px 26px 24px; } }
.trip-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.trip-card__num { font-size: .82rem; color: var(--text-muted); }
.trip-card__title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin: 0; }
.trip-card__location { color: var(--text-muted); margin: 2px 0 14px; }
.trip-card__facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px 20px; font-size: .92rem; }
@media (min-width: 576px) { .trip-card__facts { grid-template-columns: 1fr 1fr; } }
.trip-card__facts li { display: flex; gap: 8px; }
.trip-card__facts .bi { color: var(--brand-orange); }
.trip-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.trip-details { display: grid; gap: 0; margin: 0 0 16px; font-size: .92rem; }
.trip-details > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.trip-details dt { font-weight: 400; color: var(--text-muted); }
.trip-details dd { margin: 0; font-weight: 600; }
.payment { margin-bottom: 18px; }
.payment__row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.payment .progress { height: 8px; --bs-progress-bar-bg: var(--brand-green); }

/* Минулі подорожі */
.past-trip { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; }
.past-trip__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; filter: saturate(.85); }
.past-trip__body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.past-trip__title { font-size: 1rem; font-weight: 700; margin: 0; }
.past-trip__meta { font-size: .85rem; color: var(--text-muted); margin: 2px 0 14px; }
.past-trip__body .btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.past-trip__done { margin: auto 0 0; font-size: .88rem; font-weight: 600; color: var(--brand-green); display: flex; gap: 6px; }

/* Заявки */
.request-mini { list-style: none; padding: 0; margin: 0; }
.request-mini li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; border-top: 1px solid var(--border); }
.request-mini li:first-child { border-top: 0; padding-top: 0; }
.request-mini div { display: grid; }
.request-mini small { color: var(--text-muted); }
.chip-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip-filter__btn {
  border: 0; background: #fff; box-shadow: 0 0 0 1px var(--border); border-radius: 999px; padding: 7px 14px;
  font-weight: 600; font-size: .9rem; color: var(--text);
}
.chip-filter__btn span { color: var(--text-muted); font-weight: 400; margin-left: 2px; }
.chip-filter__btn:hover { box-shadow: 0 0 0 1px var(--brand-orange); }
.chip-filter__btn.active { background: var(--brand-navy); color: #fff; box-shadow: none; }
.chip-filter__btn.active span { color: rgba(255, 255, 255, .7); }
.request-list { display: grid; gap: 16px; }
.request-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
@media (min-width: 768px) { .request-card { padding: 22px 26px; } }
.request-card--highlight { border-color: var(--brand-orange); box-shadow: 0 0 0 1px var(--brand-orange), var(--shadow-card); }
.request-card--muted { opacity: .75; }
.request-card__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 8px 16px; }
.request-card__title { font-size: 1.15rem; font-weight: 700; margin: 0; }
.request-card__meta { font-size: .85rem; color: var(--text-muted); margin: 2px 0 0; }
.request-card__params { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.request-card__params li { display: flex; gap: 6px; }
.request-card__params .bi { color: var(--text-muted); }
.request-card__toggle {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 0; border: 0; background: none;
  font-weight: 700; color: var(--brand-navy);
}
.request-card__toggle .bi { transition: transform .2s; }
.request-card__toggle[aria-expanded="false"] .bi { transform: rotate(-90deg); }
.request-card__note { display: flex; gap: 10px; background: var(--brand-sand-soft); border-radius: var(--radius-sm); padding: 12px 14px; font-size: .92rem; font-style: italic; margin: 12px 0; }
.request-card__note .bi { color: var(--brand-sand); font-size: 1.2rem; font-style: normal; }
.request-card__hint { font-size: .88rem; color: var(--text-muted); margin: 14px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.request-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; font-weight: 600; font-size: .92rem; }
.request-card__links a, .request-card__links .btn-link { display: inline-flex; gap: 6px; text-decoration: none; font-weight: 600; font-size: .92rem; }

/* Етапи заявки */
.request-steps { list-style: none; padding: 0; margin: 18px 0 0; display: flex; counter-reset: step; }
.request-steps li {
  flex: 1 1 0; position: relative; text-align: center; font-size: .72rem; color: var(--text-muted); padding-top: 26px; counter-increment: step;
}
.request-steps li::before {
  content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 2px solid var(--border); font-size: .7rem; font-weight: 700;
}
.request-steps li + li::after { content: ""; position: absolute; top: 10px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.request-steps .is-done, .request-steps .is-current { color: var(--brand-navy); font-weight: 600; }
.request-steps .is-done::before { content: "\F26E"; font-family: "bootstrap-icons"; background: var(--brand-green); border-color: var(--brand-green); color: #fff; }
.request-steps .is-done::after, .request-steps .is-current::after { background: var(--brand-green); }
.request-steps .is-current::before { background: var(--brand-orange); border-color: var(--brand-orange); color: #fff; box-shadow: 0 0 0 4px rgba(238, 93, 28, .18); }
@media (min-width: 576px) { .request-steps li { font-size: .8rem; } }

/* Пропозиції менеджера */
.offer-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.offer {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px 14px; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px; transition: border-color .2s, background .2s;
}
@media (min-width: 768px) { .offer { grid-template-columns: 96px 1fr auto auto; } }
.offer.is-chosen { border-color: var(--brand-green); background: #f3fbf5; }
.offer__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; grid-row: span 2; }
@media (min-width: 768px) { .offer__img { grid-row: auto; } }
.offer__info { display: grid; gap: 4px; justify-items: start; min-width: 0; }
.offer__title { font-weight: 700; color: var(--text); text-decoration: none; }
.offer__title:hover { color: var(--brand-orange); }
.offer__meta { font-size: .82rem; color: var(--text-muted); }
.offer__price { display: flex; align-items: baseline; gap: 8px; }
@media (min-width: 768px) { .offer__price { flex-direction: column; align-items: flex-end; gap: 0; } }
.offer__price b { font-size: 1.15rem; color: var(--brand-navy); white-space: nowrap; }
.offer__price s { font-size: .82rem; color: var(--text-muted); }
.offer__btn { grid-column: 2; justify-self: start; --bs-btn-padding-x: 1rem; }
@media (min-width: 768px) { .offer__btn { grid-column: auto; } }

/* Документи */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.doc:first-child { border-top: 0; padding-top: 0; }
.doc__icon { flex: 0 0 auto; width: 42px; height: 42px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--bg-soft); color: var(--brand-navy); font-size: 1.2rem; }
.doc__icon--pdf { background: #fdeee6; color: var(--brand-orange-dark); }
.doc__info { display: grid; flex: 1; min-width: 0; }
.doc__info b { font-weight: 600; font-size: .95rem; }
.doc__info small { color: var(--text-muted); }
.doc__btn { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--brand-navy); background: var(--bg-soft); font-size: 1.1rem; text-decoration: none; }
.doc__btn:hover { background: var(--brand-orange); color: #fff; }
.doc--pending .doc__info b { color: var(--text-muted); }
.upload-drop {
  display: grid; justify-items: center; gap: 4px; padding: 24px 16px; border: 2px dashed var(--border); border-radius: var(--radius);
  text-align: center; cursor: pointer; transition: border-color .2s, background .2s;
}
.upload-drop .bi { font-size: 2rem; color: var(--brand-orange); }
.upload-drop small { color: var(--text-muted); word-break: break-all; }
.upload-drop:hover, .upload-drop.is-over { border-color: var(--brand-orange); background: var(--brand-sand-soft); }
.upload-form.was-validated input:invalid ~ .invalid-feedback { display: block; }
.upload-form.was-validated .upload-drop:has(+ input:invalid) { border-color: var(--bs-form-invalid-border-color); }

/* Туристи */
.traveler-list { list-style: none; padding: 0; margin: 0; }
.traveler { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-top: 1px solid var(--border); }
.traveler:first-child { border-top: 0; padding-top: 0; }
.traveler__avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-sand-soft); color: var(--brand-navy); font-weight: 700; font-size: .85rem; }
.traveler__info { display: grid; flex: 1; gap: 2px; min-width: 0; }
.traveler__info b { letter-spacing: .03em; }
.traveler__info small { color: var(--text-muted); }
.traveler__warn { display: flex; gap: 6px; font-size: .82rem; color: #9a5b00; background: #fff5e0; border-radius: 4px; padding: 4px 8px; margin-top: 4px; }
.traveler__btn { flex: 0 0 auto; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--brand-navy); }
.traveler__btn:hover { background: var(--brand-orange); color: #fff; }

/* Перемикачі сповіщень */
.switch-list { display: grid; gap: 14px; }
.switch-list .form-switch { padding-left: 3.2em; }
.switch-list .form-switch .form-check-input { width: 2.6em; height: 1.4em; margin-left: -3.2em; margin-top: .1em; }
.switch-list .form-check-input:checked { background-color: var(--brand-orange); border-color: var(--brand-orange); }
.switch-list .form-check-label { display: grid; }
.switch-list .form-check-label small { color: var(--text-muted); font-size: .85rem; }

/* Сеанси */
.session-list { list-style: none; padding: 0; margin: 0 0 16px; }
.session-list li { display: flex; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.session-list li:first-child { border-top: 0; padding-top: 0; }
.session-list .bi { font-size: 1.4rem; color: var(--text-muted); }
.session-list div { display: grid; flex: 1; }
.session-list small { color: var(--text-muted); }

/* Зірки у відгуку */
.star-rating { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-rating input { position: absolute; opacity: 0; pointer-events: none; }
.star-rating label { font-size: 1.9rem; color: var(--border); cursor: pointer; transition: color .15s, transform .15s; }
.star-rating label:hover, .star-rating label:hover ~ label, .star-rating input:checked ~ label { color: #f5a623; }
.star-rating label:hover { transform: scale(1.1); }
.star-rating input:focus-visible + label { outline: 2px solid var(--brand-orange); border-radius: 4px; }

/* ---------- Обране ---------- */
.favorites { padding-top: 32px; }
.fav-login {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; margin-bottom: 24px;
  background: #e7eff9; border-radius: var(--radius);
}
.fav-login__icon { font-size: 1.8rem; color: var(--brand-blue); }
.fav-login__text { flex: 1 1 280px; margin: 0; font-size: .92rem; }
.fav-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.fav-toolbar__count { margin: 0; font-size: 1.05rem; }
.fav-toolbar__count b { color: var(--brand-orange); }
.fav-toolbar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.fav-toolbar__actions .btn { display: inline-flex; align-items: center; gap: 6px; --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .9rem; }
.fav-toolbar__sort { width: auto; }
.fav-toolbar__clear { color: var(--text-muted); text-decoration: none; }
.fav-toolbar__clear:hover { color: var(--brand-red); }
[data-favorite-item] { transition: opacity .25s, transform .25s; }
[data-favorite-item].is-removing { opacity: 0; transform: scale(.95); }
.tour-card__fav-note { display: flex; gap: 6px; align-items: center; font-size: .82rem; font-weight: 600; color: #9a5b00; margin: -4px 0 10px; }
.tour-card__fav-note--down { color: var(--brand-green); }
.fav-send {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 32px;
  padding: 24px; border-radius: var(--radius-lg); background: var(--brand-navy); color: rgba(255, 255, 255, .85);
}
@media (min-width: 992px) { .fav-send { padding: 28px 36px; } }
.fav-send__text { flex: 1 1 360px; }
.fav-send__title { color: #fff; font-size: 1.35rem; font-weight: 700; margin: 0 0 4px; }
.fav-send .btn { display: inline-flex; align-items: center; gap: 8px; }
.fav-empty { text-align: center; max-width: 520px; margin: 0 auto; padding: 32px 0 16px; }
.fav-empty__icon { width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-sand-soft); color: var(--brand-orange); font-size: 2.4rem; }
.fav-empty__title { font-size: 1.5rem; font-weight: 700; margin: 0 0 8px; }
.fav-empty__text { color: var(--text-muted); margin-bottom: 22px; }
.fav-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* =====================================================================
   Пошук турів (search.html → page-search.php)
   ===================================================================== */
.search-hero {
  position: relative; isolation: isolate; color: #fff; background: var(--brand-navy) center / cover no-repeat;
  padding-block: 24px 40px;
}
.search-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8, 24, 45, .85) 0%, rgba(8, 24, 45, .55) 55%, rgba(8, 24, 45, .8) 100%);
}
.search-hero .breadcrumbs { margin-bottom: 18px; color: rgba(255, 255, 255, .7); }
.search-hero .breadcrumbs a { color: rgba(255, 255, 255, .8); }
.search-hero .breadcrumbs a:hover { color: #fff; }
.search-hero__title { color: #fff; font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); font-weight: 300; line-height: 1.15; margin: 0 0 10px; }
.search-hero__title b { font-weight: 700; }
.search-hero__lead { color: rgba(255, 255, 255, .88); font-size: 1.05rem; max-width: 640px; margin: 0 0 14px; }
.search-hero__perks { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .9rem; }
.search-hero__perks li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .92); }
.search-hero__perks .bi { color: #7fe0a0; }
@media (min-width: 992px) { .search-hero { padding-block: 36px 56px; } .search-hero__perks { margin-bottom: 36px; } }

.search-page { padding-top: 28px; }
@media (min-width: 992px) { .search-page { padding-top: 44px; } }

/* Фільтри: на < lg — offcanvas, на ≥ lg — бічна колонка */
.search-filters .offcanvas-body { padding: 0; }
.filters { width: 100%; background: #fff; }
.filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.filters__title { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--brand-navy); }
.filters__title .bi { color: var(--brand-orange); }
.filters__reset { border: 0; background: none; padding: 0; font-size: .85rem; font-weight: 600; color: var(--text-muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.filters__reset:hover { color: var(--brand-orange-dark); }
.filters__foot { position: sticky; bottom: 0; z-index: 2; padding: 14px 20px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 16px rgba(15, 42, 74, .06); }
@media (max-width: 991.98px) {
  .filters__head .filters__title { visibility: hidden; } /* заголовок уже є в шапці offcanvas */
}
@media (min-width: 992px) {
  .filters { border: 1px solid var(--border); border-radius: var(--radius); }
  .filters__foot { display: none; } /* на десктопі фільтри застосовуються одразу */
}
.filter-group { margin: 0; padding: 18px 20px; border-top: 1px solid var(--border); min-width: 0; }
.filters__head + .filter-group { border-top: 0; }
.filter-group__title { float: none; width: auto; font-size: .95rem; font-weight: 700; color: var(--brand-navy); margin: 0 0 12px; padding: 0; }
.filter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.filter-list.collapse.show, .filter-list.collapsing { margin-top: 8px; }
.filter-check { display: flex; align-items: flex-start; gap: 10px; min-height: 0; margin: 0; padding-left: 0; }
.filter-check .form-check-input { float: none; flex: 0 0 auto; margin: .2em 0 0; cursor: pointer; }
.filter-check.form-switch { padding-left: 0; }
.filter-check.form-switch .form-check-input { width: 2.2em; margin-left: 0; }
.filter-check .form-check-label { display: flex; justify-content: space-between; gap: 8px; flex: 1 1 auto; font-size: .92rem; cursor: pointer; }
.filter-check__count { color: var(--text-muted); font-size: .8rem; }
.filter-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 0; border: 0; background: none; font-size: .9rem; font-weight: 600; color: var(--brand-blue); }
.filter-more .bi { font-size: .75rem; transition: transform .2s; }
.filter-more:not(.collapsed) .bi { transform: rotate(180deg); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px var(--border); font-size: .88rem; font-weight: 600; color: var(--text); cursor: pointer; transition: background .2s, color .2s, box-shadow .2s;
}
.filter-chip .bi { color: #f5a623; font-size: .8rem; }
.filter-chip:hover { box-shadow: 0 0 0 1px var(--brand-orange); }
.btn-check:checked + .filter-chip { background: var(--brand-navy); color: #fff; box-shadow: none; }
.btn-check:focus-visible + .filter-chip { outline: 3px solid var(--brand-orange); outline-offset: 2px; }

/* Подвійний повзунок ціни */
.range { position: relative; height: 28px; margin: 0 4px 12px; }
.range__track { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--border); }
.range__fill { position: absolute; top: 0; bottom: 0; left: var(--from); right: calc(100% - var(--to)); border-radius: 2px; background: var(--brand-orange); }
.range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 28px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input[type="range"]::-webkit-slider-runnable-track { background: none; }
.range input[type="range"]::-moz-range-track { background: none; }
.range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; cursor: grab;
  background: #fff; border: 2px solid var(--brand-orange); box-shadow: var(--shadow-card);
}
.range input[type="range"]::-moz-range-thumb {
  pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; cursor: grab;
  background: #fff; border: 2px solid var(--brand-orange); box-shadow: var(--shadow-card);
}
.range input[type="range"]:focus-visible { outline: none; }
.range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(238, 93, 28, .3); }
.range input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(238, 93, 28, .3); }
.range-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range-inputs__field { position: relative; margin: 0; }
.range-inputs__field span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: .8rem; color: var(--text-muted); pointer-events: none; }
.range-inputs__field .form-control { min-height: 40px; padding: .35rem .5rem .35rem 30px; font-size: .9rem; font-weight: 600; }

.search-sidebar .manager-card { margin-top: 20px; }

/* Панель над результатами */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.results-bar__summary { min-width: 0; }
.results-bar__title { font-size: 1.4rem; font-weight: 300; margin: 0; }
.results-bar__title b { font-weight: 700; color: var(--brand-orange-dark); }
.results-bar__query { margin: 2px 0 0; color: var(--text-muted); font-size: .9rem; }
.results-bar__query a { font-weight: 600; }
.results-bar__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.results-bar__actions .btn { display: inline-flex; align-items: center; gap: 6px; --bs-btn-padding-y: .4rem; --bs-btn-padding-x: .9rem; }
.results-bar__sort { width: auto; min-height: 38px; font-size: .9rem; font-weight: 600; background-color: #fff; }
.results-bar__badge {
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: inline-grid; place-items: center;
  background: var(--brand-orange); color: #fff; font-size: .72rem; font-weight: 700;
}
.results-bar__badge[hidden] { display: none; }
.view-switch { display: inline-flex; gap: 2px; padding: 3px; background: #fff; border-radius: var(--radius-sm); box-shadow: 0 0 0 1px var(--border); }
.view-switch button { width: 34px; height: 32px; border: 0; border-radius: 4px; background: none; color: var(--text-muted); font-size: 1.05rem; display: grid; place-items: center; }
.view-switch button:hover { color: var(--brand-navy); }
.view-switch button[aria-pressed="true"] { background: var(--brand-navy); color: #fff; }

/* Обрані фільтри */
.active-filters-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 16px; }
.active-filters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.active-filters:empty { display: none; }
.active-filters__chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 12px; border: 0; border-radius: 999px; background: #fff;
  box-shadow: 0 0 0 1px var(--border); font-size: .85rem; font-weight: 600; color: var(--brand-navy); transition: box-shadow .2s, color .2s;
}
.active-filters__chip .bi-x-lg { font-size: .7rem; color: var(--text-muted); margin-left: 2px; }
.active-filters__star { color: #f5a623; font-size: .75rem; margin-left: -3px; }
.active-filters__chip:hover { box-shadow: 0 0 0 1px var(--brand-red); }
.active-filters__chip:hover .bi-x-lg { color: var(--brand-red); }
.active-filters__watch { display: inline-flex; align-items: center; gap: 6px; padding: 0; margin-left: auto; font-weight: 600; text-decoration: none; }
.active-filters__watch:hover { color: var(--brand-orange-dark); }

/* Ціни на сусідні дати */
.date-prices { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card); padding: 14px 16px 8px; margin-bottom: 20px; }
.date-prices__title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .88rem; font-weight: 700; color: var(--brand-navy); }
.date-prices__title .bi { color: var(--brand-orange); }
.date-prices__list { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.date-prices__list li { flex: 1 0 106px; display: flex; }
.date-prices__item {
  width: 100%; display: grid; align-content: start; gap: 1px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; text-align: center; line-height: 1.3; transition: border-color .2s, background .2s;
}
.date-prices__item:hover { border-color: var(--brand-orange); }
.date-prices__day { font-size: .78rem; color: var(--text-muted); }
.date-prices__price { font-size: .92rem; color: var(--brand-navy); white-space: nowrap; }
.date-prices__tag { font-size: .7rem; font-weight: 700; color: var(--brand-green); }
.date-prices__item.is-cheapest { border-color: #b6e2c0; background: #f3fbf5; }
.date-prices__item.is-cheapest .date-prices__price { color: var(--brand-green); }
.date-prices__item[aria-pressed="true"] { background: var(--brand-navy); border-color: var(--brand-navy); }
.date-prices__item[aria-pressed="true"] .date-prices__day { color: rgba(255, 255, 255, .75); }
.date-prices__item[aria-pressed="true"] .date-prices__price,
.date-prices__item[aria-pressed="true"] .date-prices__tag { color: #fff; }

/* Результати: список (≥ md) або плитка */
.search-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; transition: opacity .2s; }
.search-results.is-loading { opacity: .4; pointer-events: none; }
.search-results__item { display: flex; min-width: 0; }
.search-results__item > .tour-card { width: 100%; }
.search-results__cta { grid-column: 1 / -1; }
.search-results__cta .cta-inline { margin: 0; }
@media (min-width: 576px) { .search-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .search-results[data-view="grid"] { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 768px) {
  .search-results[data-view="list"] { grid-template-columns: minmax(0, 1fr); }
  .search-results[data-view="list"] .tour-card { flex-direction: row; }
  .search-results[data-view="list"] .tour-card__media { flex: 0 0 40%; aspect-ratio: auto; min-height: 240px; }
  .search-results[data-view="list"] .tour-card__media img { position: absolute; inset: 0; }
  .search-results[data-view="list"] .tour-card__body { padding: 18px 22px 20px; }
  .search-results[data-view="list"] .tour-card__title { font-size: 1.15rem; }
}
/* ≥ xl: ціна й кнопка — окремою колонкою праворуч */
@media (min-width: 1200px) {
  .search-results[data-view="list"] .tour-card__media { flex-basis: 34%; }
  .search-results[data-view="list"] .tour-card__body {
    display: grid; grid-template-columns: minmax(0, 1fr) 200px; grid-template-rows: repeat(5, auto) 1fr; column-gap: 24px;
  }
  .search-results[data-view="list"] .tour-card__body > * { grid-column: 1; }
  .search-results[data-view="list"] .tour-card__footer {
    grid-column: 2; grid-row: 1 / -1; margin: 0; padding-left: 24px; border-left: 1px dashed var(--border);
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .search-results[data-view="list"] .tour-card__price { flex-direction: column; gap: 0; }
}
/* Опційні елементи картки туру (пошук) */
.tour-card__tags { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tour-card__tags li { padding: 3px 8px; border-radius: 4px; background: #e7eff9; color: var(--brand-blue); font-size: .75rem; font-weight: 600; line-height: 1.4; }
.tour-card__variants { display: block; margin-top: 10px; text-align: center; font-size: .85rem; font-weight: 600; text-decoration: none; }
.tour-card__variants:hover { text-decoration: underline; }

.search-more { display: grid; justify-items: center; gap: 24px; margin-top: 32px; }
.search-more .btn { display: inline-flex; align-items: center; gap: 8px; }
.search-more .pagination { margin: 0; }
.search-page .empty-state { background: #fff; }

/* FAQ */
.faq__title { text-align: left; }
.faq .section__lead { margin-bottom: 28px; }
.faq__links-title { font-weight: 700; color: var(--brand-navy); margin: 0 0 12px; }
.faq .accordion {
  --bs-accordion-border-color: var(--border); --bs-accordion-border-radius: var(--radius); --bs-accordion-inner-border-radius: calc(var(--radius) - 1px);
  --bs-accordion-btn-padding-x: 1.25rem; --bs-accordion-btn-padding-y: 1.1rem; --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-btn-color: var(--brand-navy); --bs-accordion-active-color: var(--brand-orange-dark); --bs-accordion-active-bg: #fff;
  --bs-accordion-btn-focus-box-shadow: 0 0 0 .2rem rgba(238, 93, 28, .2);
  display: grid; gap: 10px;
}
.faq .accordion-item { border: 1px solid var(--border); border-radius: var(--radius) !important; overflow: hidden; }
.faq .accordion-button { font-weight: 700; font-size: 1rem; }
.faq .accordion-button:not(.collapsed) { box-shadow: none; }
.faq .accordion-body { padding-top: 0; color: var(--text-muted); }
.price-watch__query { display: flex; gap: 8px; align-items: flex-start; background: var(--bg-soft); border-radius: var(--radius-sm); padding: 10px 12px; font-size: .88rem; font-weight: 600; color: var(--brand-navy); }
.price-watch__query .bi { color: var(--brand-orange); margin-top: 2px; }
