/**
 * Page styles: "Побутівки | Виробництво"
 * Load only on this page template via wp_enqueue_scripts.
 */

/* Responsive corner policy (BLOCKS ONLY):
   - Laptop/Desktop: прямі кути (radius: 0) для контейнерів/блоків
   - Mobile (та менші екрани): заокруглення 7px для контейнерів/блоків
   Примітка: чіпи/теги (pill) лишаються округлими.
*/
.gb-pob, .gb-pob-subnav{ --pob-radius: 0px; }


/* Subnav ("Каталог / Комплектації / ..."):
   - Desktop/Laptop: прямі кути
   - Mobile: radius 7px
*/
.gb-pob-subnav{ --pob-subnav-radius: 0px; --pob-subnav-link-radius: 0px; }
@media (max-width: 1024px){
  .gb-pob-subnav{ --pob-subnav-radius: 7px; --pob-subnav-link-radius: 7px; }
}
.gb-pob-subnav__inner{ border-radius: var(--pob-subnav-radius) !important; }
.gb-pob-subnav__link{ border-radius: var(--pob-subnav-link-radius) !important; }

/* Buttons: always rounded 7px (desktop + mobile) */
.gb-pob .btn{ border-radius: 7px !important; }

@media (max-width: 1024px){
  .gb-pob, .gb-pob-subnav{ --pob-radius: 7px; }
}

/* Apply to blocks/containers */
.gb-pob-subnav__inner,
.gb-pob-filter__card,
.gb-pob-card,
.gb-pob-carousel__wrap,
.gb-pkg,
.gb-compare,
.gb-compare__scroll,
.gb-step,
.gb-faq__item,
.gb-article{
  border-radius: var(--pob-radius) !important;
}


.gb-pob, .gb-pob-subnav{
  --pob-radius: 14px;     /* fallback */
  --pob-radius-sm: 12px;
}
@media (max-width: 1024px){
  .gb-pob, .gb-pob-subnav{ --pob-radius: 7px; --pob-radius-sm: 7px; }
}
@media (min-width: 1025px){
  .gb-pob, .gb-pob-subnav{ --pob-radius: 0px; --pob-radius-sm: 0px; }
}

/* Apply to blocks */
.gb-pob-subnav__inner,
.gb-pob-filter__card,
.gb-pob-card,
.gb-pob-carousel__wrap,
.gb-pkg,
.gb-compare,
.gb-step,
.gb-faq__item,
.gb-article{
  border-radius: var(--pob-radius);
}

.gb-pob-hero .gb-hero__inner{ grid-template-columns: 1.1fr .9fr; }
.gb-pob-hero__subtitle{ max-width: 720px; }

/* Anchor pills (subnav) */
.gb-pob-subnav{ position: sticky; top: calc(var(--gb-header-h, 78px) + var(--gb-phonebar-h, 0px) + 10px); z-index: 20; margin-top: -32px; }
.gb-pob-subnav__inner{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.08);
  padding:10px;
  display:flex;
  gap:8px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
}
.gb-pob-subnav__link{
  flex: 0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background: var(--gray-100);
  border:1px solid var(--gray-200);
  font-weight:900;
  font-size:12px;
  color: var(--blue-900);
}
.gb-pob-subnav__link:hover{ transform: translateY(-1px); }

/* Filter */
.gb-pob-filter{ margin-top: 18px; }
.gb-pob-filter__card{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 16px 16px 14px;
}
.gb-pob-filter__row{ display:flex; align-items:flex-start; gap:12px; margin-top: 10px; flex-wrap:wrap; }
.gb-pob-filter__label{ min-width: 120px; font-weight:900; color: var(--muted); font-size:16px; padding-top: 2px; }
.gb-pob-filter__chips{ display:flex; gap:8px; flex-wrap:wrap; }
.gb-pob-filter__head{ margin: 0 0 10px; }
.gb-pob-filter__head .gb-pob-h2{ margin-bottom: 0; }

.gb-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 12px;
  border-radius:999px;
  background: var(--gray-100);
  border:1px solid var(--gray-200);
  font-weight:900;
  font-size:14px;
  color: var(--blue-900);
  cursor:pointer;
  user-select:none;
}
.gb-chip.is-active{
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-2) 100%);
  border-color: transparent;
  color:#1a1309;
  box-shadow: 0 10px 18px rgba(240,124,26,.20);
}

/* Section headers */
.gb-pob-head{ margin-top: 22px; }
.gb-pob-h2{
  margin:0 0 8px;
  font-size:30px;
  font-weight:900;
  color:#0c2340;
}
.gb-pob-sub{
  margin:-2mm 0 0;
  color:#6b7b93;
  font-size:14px;
  line-height:1.45;
  font-weight:400;
}

/* Catalog grid */
.gb-pob-grid{
  display:grid;
  /* New model card is more content-rich; keep it wider on laptops */
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
@media (min-width: 1400px){
  .gb-pob-grid{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px){
  .gb-pob-grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px){
  .gb-pob-grid{ display:none; }
}

/* Card */
.gb-pob-card{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius:14px;
  overflow:hidden;
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gb-pob-card:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px rgba(8,26,44,.12); }
.gb-pob-card__img img{ width:100%; height:180px; object-fit:cover; }
.gb-pob-card__body{ padding: 12px; }
.gb-pob-card__title{ display:block; font-weight:900; color: var(--blue-900); margin: 0 0 6px; }
.gb-pob-card__title-label{ font-weight:400; }
.gb-pob-card__title-value{ font-weight:900; }
.gb-pob-card__price{ font-weight:900; color: var(--muted); font-size:13px; margin-bottom: 10px; }
.gb-pob-card__tags{ display:flex; gap:8px; flex-wrap:wrap; margin-bottom: 10px; }

.gb-tag{
  display:inline-flex;
  align-items:center;
  padding: 5px 10px;
  border-radius:999px;
  font-weight:900;
  font-size:12px;
  border:1px solid rgba(11,36,64,.18);
  background: rgba(11,36,64,.08);
  color: var(--blue-900);
}
.gb-tag--soft{
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-2) 100%);
  border-color: transparent;
  color:#1a1309;
}

.gb-pob-card__plan{ margin: 8px 0 10px; }
.gb-plan{ width:100%; height:auto; display:block; }

/* Schematic preview rounding in cards */
.gb-pob-card__plan img,
.gb-pob-card__plan svg{
  border-radius: 5px;
  overflow: hidden;
  display:block;
}

.gb-pob-card__thumbs{ display:flex; gap:8px; margin-bottom: 12px; }
.gb-pob-card__thumbs img{
  width: 56px; height: 42px;
  object-fit:cover;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 18px rgba(8,26,44,.06);
}

.gb-pob-card__actions{ display:flex; gap:10px; }
.gb-pob-card__actions .btn{ flex:1 1 auto; padding: 10px 12px; font-size:13px; }

/* Carousels
 * - Mobile: 1 card per view + swipe
 * - Desktop: 9 cards per view (3x3) + swipe (paged)
 */
.gb-pob-carousel{ margin-top: 10px; }
/* Mobile carousel section is hidden on desktop */
.gb-pob-carousel:not(.gb-pob-carousel--desktop){ display:none; }
/* Desktop carousel section is visible on desktop */
.gb-pob-carousel--desktop{ display:block; }
@media (max-width: 760px){
  .gb-pob-carousel:not(.gb-pob-carousel--desktop){ display:block; }
  .gb-pob-carousel--desktop{ display:none; }
}
.gb-pob-carousel__hint{ color: var(--muted); font-weight:800; font-size:13px; margin: 0 0 8px; }
.gb-pob-carousel__wrap{
  position: relative;
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 10px;
}
.gb-pob-carousel__track{
  gap:12px;
  /* Swipe like in the Reviews block: native horizontal scroll + scroll-snap */
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 8px;
  /* IMPORTANT: don't lock vertical scrolling on mobile.
     Default (auto) lets the browser decide: vertical scroll for the page,
     horizontal scroll for the carousel.
  */
  touch-action: auto;
}
.gb-pob-carousel__track::-webkit-scrollbar{ display:none; }
/* Mobile track (cards) */
.gb-pob-carousel:not(.gb-pob-carousel--desktop) .gb-pob-carousel__track{ display:flex; }
.gb-pob-card--mobile{
  flex: 0 0 88%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
/* Desktop track (pages) */
.gb-pob-carousel--desktop .gb-pob-carousel__track{ display:flex; }
.gb-pob-carousel__page{
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.gb-pob-carousel__arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 44px;
  border-radius: 12px;
  border:1px solid var(--gray-200);
  background: var(--gray-100);
  color: var(--blue-900);
  font-size: 28px;
  font-weight: 900;
  display:none;
}
.gb-pob-carousel__arrow--prev{ left: 8px; }
.gb-pob-carousel__arrow--next{ right: 8px; }
@media (max-width: 760px){
  .gb-pob-carousel__arrow{ display:block; }
}
@media (min-width: 761px){
  .gb-pob-carousel--desktop .gb-pob-carousel__arrow{ display:block; }
}
.gb-pob-carousel__dots{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:6px;
  width:100%;
  min-height:18px;
  margin-top: 10px;
}
.gb-pob-carousel__dot{
  display:block;
  flex:0 0 auto;
  width:7px;
  height:7px;
  padding:0;
  border:0;
  border-radius:999px;
  background: rgba(11,36,64,.35);
  box-shadow:none;
  cursor:pointer;
}
.gb-pob-carousel__dot.is-active{
  width:18px;
  background: var(--orange);
}

/* Packages */
.gb-pob-section{ margin-top: 28px; }
.gb-pkg-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap:14px; }
@media (max-width: 980px){ .gb-pkg-grid{ grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }
@media (max-width: 640px){ .gb-pkg-grid{ grid-template-columns: 1fr; } }
.gb-pkg{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 14px;
  position: relative;
}
.gb-pkg__badge{
  position:absolute;
  top:12px; left:12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-2) 100%);
  color:#1a1309;
  font-weight:900;
  font-size:12px;
}
.gb-pkg__head{ padding-top: 4px; }
.gb-pkg__title{ margin:0; font-size:20px; font-weight:900; color: var(--blue-900); }
.gb-pkg__sub{ margin-top:4px; color: var(--muted); font-weight:800; font-size:12px; }
.gb-pkg__list{ margin: 12px 0 0; padding-left: 18px; color: var(--blue-900); font-weight:800; line-height: 1.25; }
.gb-pkg__list li{ margin: 3px 0; }
.gb-pkg__more{ display:inline-block; margin-top: 10px; font-weight:900; color: var(--muted); }

/* Compare */
.gb-compare{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 14px;
}
.gb-compare__head{ display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.gb-compare__title{ font-weight:900; color: var(--blue-900); font-size:18px; }
.gb-compare__scroll{ overflow:auto; margin-top: 10px; border: 1px solid var(--gray-200); border-radius: 14px; }
.gb-compare__table{ width: 100%; border-collapse: collapse; min-width: 920px; background:#fff; }
.gb-compare__table th, .gb-compare__table td{ padding: 10px 12px; border-bottom: 1px solid var(--gray-200); text-align:left; vertical-align:top; font-weight:800; font-size:13px; }
.gb-compare__table thead th{ background: var(--gray-50); color: var(--blue-900); font-weight:900; }
.gb-compare__table tbody tr:nth-child(odd) th,
.gb-compare__table tbody tr:nth-child(odd) td{ background: var(--gray-50); }
.gb-compare__table .is-strong{ color: var(--blue-900); font-weight:900; }
.gb-compare__cta{ display:flex; gap:12px; align-items:center; margin-top: 12px; flex-wrap:wrap; }
.gb-compare__cta-sub{ color: var(--muted); font-weight:800; font-size:13px; }

/* Steps */
.gb-steps{ display:grid; grid-template-columns: repeat(5, 1fr); gap:12px; }
@media (max-width: 1100px){ .gb-steps{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){ .gb-steps{ grid-template-columns: 1fr; } }
.gb-step{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 12px;
}
.gb-step__pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius:999px;
  background: var(--gray-100);
  border:1px solid var(--gray-200);
  font-weight:900;
  font-size:12px;
  color: var(--blue-900);
}
.gb-step__title{ margin-top: 10px; font-weight:900; color: var(--blue-900); }
.gb-step__text{ margin-top: 6px; color: var(--muted); font-weight:800; font-size:13px; }

/* FAQ */
.gb-faq__item{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 0;
  margin-bottom: 10px;
  overflow:hidden;
}
.gb-faq__q{
  list-style:none;
  cursor:pointer;
  padding: 14px 14px;
  font-weight:900;
  color: var(--blue-900);
  position: relative;
}
.gb-faq__q::after{
  content:"▾";
  position:absolute;
  right: 14px;
  top: 14px;
  color: var(--muted);
}
.gb-faq__item[open] .gb-faq__q::after{ content:"▴"; }
.gb-faq__a{
  padding: 0 14px 14px;
  color: var(--muted);
  font-weight:800;
  font-size:13px;
}

/* Articles */
.gb-articles{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }
@media (max-width: 980px){ .gb-articles{ grid-template-columns: 1fr; } }
.gb-article{
  background:#fff;
  border:1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 22px rgba(8,26,44,.06);
  padding: 14px;
}
.gb-article__title{ display:block; font-weight:900; color: var(--blue-900); margin-bottom: 8px; }
.gb-article__text{ color: var(--muted); font-weight:800; font-size:13px; margin-bottom: 12px; }
.gb-article__more{ font-weight:900; color: var(--muted); }


/* === Corner rules (subnav + buttons) ===
   Блок навігації "Каталог / Комплектації / ..." (тільки контейнер):
   - Laptop/Desktop/Tablet (>=769px): прямі кути (0px)
   - Mobile (<=768px): заокруглення 7px
   Кнопки на сторінці: завжди 7px
   Піктограми/чіпи навігації (пілли) залишаються округлими.
*/
@media (min-width: 769px){
  nav.gb-pob-subnav .gb-pob-subnav__inner{ border-radius: 0 !important; }
}
@media (max-width: 768px){
  nav.gb-pob-subnav .gb-pob-subnav__inner{ border-radius: 7px !important; }
}
/* Keep the nav pills rounded on all sizes */
nav.gb-pob-subnav .gb-pob-subnav__link{ border-radius: 999px !important; }

/* Buttons: always 7px */
.gb-pob .btn{ border-radius: 7px !important; }


/* === Filter corner rules ===
   Блок "Фільтр каталогу" (контейнер):
   - Laptop/Desktop (>=1025px): прямі кути (0px)
   - Tablet/Mobile (<=1024px): заокруглення 7px
   Кнопки лишаються 7px (визначено окремо).
*/
@media (min-width: 1025px){
  .gb-pob-filter__card{ border-radius: 0 !important; }
}
@media (max-width: 1024px){
  .gb-pob-filter__card{ border-radius: 7px !important; }
}


/* === Filter button corner rules ===
   Кнопки/чіпи у блоці "Фільтр каталогу" (розміри/комплектація): 7px
*/
.gb-pob-filter__card .gb-chip{ border-radius: 7px !important; }


/* === Subnav button corner rules ===
   Кнопки у блоці "Каталог / Комплектації / Порівняння / ..." : 7px
*/
nav.gb-pob-subnav .gb-pob-subnav__link{ border-radius: 7px !important; }


/* === Mobile rounding rules ===
   Мобільні версії: кнопки у блоці навігації + чіпи у "Фільтр каталогу" = 7px
*/
@media (max-width: 768px){
  nav.gb-pob-subnav .gb-pob-subnav__link{ border-radius: 7px !important; }
  .gb-pob-filter__card .gb-chip{ border-radius: 7px !important; }
}


/* === Catalog card corner rules ===
   1) У "Каталог моделей" (картка моделі):
      - на ноутбуці/десктопі (>=1025px) кнопки "Детальніше" та "Отримати КП" (у блоці дій) — прямі кути
      - бейджі/теги (6×2,44 / Хіт / 1–3 кімнати тощо) — заокруглення 7px
   2) Загальні кнопки на сторінці залишаються з заокругленням 7px (див. інші правила), окрім цього винятку.
*/
.gb-pob-card__tags .gb-tag{ border-radius: 7px !important; }
@media (min-width: 1025px){
  .gb-pob-card__actions .btn{ border-radius: 0 !important; }
}


/* === Quick menu layout rules ===
   Desktop/Laptop: опустити швидке меню на ~5мм (19px) і зменшити відстань до наступного блоку на ~5мм
   Tablet/Mobile: прибрати швидке меню
*/
@media (min-width: 1025px){
  nav.gb-pob-subnav{ margin-top: -13px !important; } /* було -32px */
}
@media (max-width: 1024px){
  nav.gb-pob-subnav{ display: none !important; }
}


/* === Filter position tweak ===
   Підняти "Фільтр каталогу" у всіх версіях на ~5мм (≈19px).
   Базово було margin-top: 18px → стає -1px.
*/
.gb-pob-filter{ margin-top: -1px !important; }


/* === Hero height like homepage ===
   Зробити висоту верхнього блоку (Hero) такою ж, як на "Головна":
   - padding 58px 0 58px
   - min-height 340px (на десктопі), а на <=980px — як у темі (min-height:auto)
*/
.gb-pob-hero.gb-hero--page .gb-hero__inner{
  padding: 58px 0 58px !important;
  min-height: 340px !important;
}
@media (max-width: 980px){
  .gb-pob-hero.gb-hero--page .gb-hero__inner{
    min-height: auto !important;
  }
}


/* === Pobutivky hero buttons offset ===
   Опустити кнопки "Розрахувати вартість / Отримати прайс" у Hero на ~5мм (≈19px)
*/
.gb-pob-hero .gb-actions{ margin-top: 19px !important; }



/* Pobutivky FAQ uses the same markup/styles as Rent FAQ */
.gb-pob .gb-rent-faq-section{ margin-top: 18px; }


/* === Pobutivky hero buttons down 5mm ===
   Опустити кнопки "Розрахувати вартість / Отримати прайс" у верхньому Hero-блоці на ~5мм (≈19px) — у всіх версіях.
*/
.gb-pob-hero .gb-actions{ margin-top: 19px !important; }



/* === Pobutivky catalog 'Детальніше' button gray === */
/* Make the 'Детальніше' button in model cards gray like the 'Хіт' tag (soft gray/blue). */
.gb-pob-card__actions .btn.btn--light{
  background: rgba(11,36,64,.08) !important;
  border: 1px solid rgba(11,36,64,.18) !important;
  color: var(--blue-900) !important;
}
.gb-pob-card__actions .btn.btn--light:hover{
  background: rgba(11,36,64,.12) !important;
  border-color: rgba(11,36,64,.22) !important;
}

/* === Plan zoom (clickable schematic) === */
.gb-plan-zoom{
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.gb-plan-zoom:focus-visible{
  outline: 2px solid rgba(247,147,30,.85);
  outline-offset: 3px;
  border-radius: 10px;
}
.gb-plan-zoom .gb-plan{ transition: transform .18s ease, box-shadow .18s ease; }
.gb-plan-zoom:hover .gb-plan{
  transform: translateY(-1px);
  filter: drop-shadow(0 10px 18px rgba(8,26,44,.10));
}

/* Modal */
.gb-plan-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
}
.gb-plan-modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(8,26,44,.62);
}
.gb-plan-modal__dialog{
  position: relative;
  margin: 4vh auto;
  width: min(960px, 92vw);
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(219,227,238,1);
  box-shadow: 0 18px 46px rgba(8,26,44,.22);
  padding: 18px 18px 16px;
  overflow: hidden;
}
.gb-plan-modal__close{
  position: absolute;
  right: 12px;
  top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(219,227,238,1);
  background: rgba(238,242,247,1);
  color: rgba(11,36,64,1);
  font-size: 26px;
  line-height: 38px;
  font-weight: 900;
  cursor: pointer;
}

.gb-plan-modal__nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(219,227,238,1);
  background: rgba(255,255,255,.92);
  color: rgba(11,36,64,1);
  font-size: 34px;
  line-height: 42px;
  font-weight: 900;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gb-plan-modal__nav--prev{ left: 10px; }
.gb-plan-modal__nav--next{ right: 10px; }
.gb-plan-modal__nav[hidden]{ display:none !important; }
.gb-plan-modal__content{
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  max-height: calc(92vh - 60px);
}
.gb-plan-modal__content .gb-plan{
  width: 100%;
  height: auto;
  max-height: 78vh;
}

/* Media viewer frame: keep all slides the same size (based on main photo aspect ratio) */
.gb-media-frame{
  width: min(860px, 88vw);
  aspect-ratio: var(--gb-media-ar, 4 / 3);
  max-height: 78vh;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gb-media-frame img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.gb-media-frame .gb-media-html,
.gb-media-frame svg{
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
}
@media (max-width: 480px){
  .gb-plan-modal__dialog{ width: 94vw; margin: 3vh auto; border-radius: 12px; }
  .gb-plan-modal__close{ width: 38px; height: 38px; border-radius: 10px; }
}


/* === Packages section offset + inline badge === */
/* Move the packages section down by ~5mm (≈19px) */
#packages.gb-pob-section{ margin-top: calc(28px + 19px) !important; }

/* Inline badge to the right of 'Стандарт' title */
.gb-pkg__head-row{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  flex-wrap:wrap;
}
.gb-pkg__badge--inline{
  position: static !important;
  margin: 0 !important;
}


/* === Compare table redesign === */
/* Move compare section down by ~5mm (≈19px) */
#compare.gb-pob-section{ margin-top: calc(28px + 19px) !important; }

/* Lift the Articles section up by ~10 mm (~38 px) on screen */
#articles.gb-pob-section{ margin-top: calc(28px - 38px) !important; }

/* Remove duplicate header text spacing */
.gb-compare__head{ gap: 10px; }

/* Make the table header row more prominent */
.gb-compare__table thead th{
  background: var(--gray-100) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  border-bottom: 2px solid var(--gray-200) !important;
}

/* Column separation (vertical borders) */
.gb-compare__table th + th,
.gb-compare__table td + td{
  border-left: 1px solid var(--gray-200);
}

/* Standard column highlight */
.gb-compare__table thead th.is-strong{
  background: rgba(247,147,30,.18) !important;
  color: var(--blue-900) !important;
}
.gb-compare__table tbody td.is-strong{
  background: rgba(247,147,30,.08);
  font-weight: 900;
  color: var(--blue-900);
}

/* Parameter column stronger */
.gb-compare__table tbody th{
  color: var(--blue-900);
  font-weight: 900;
}

/* Slightly tighter row height to keep table readable */
.gb-compare__table th, .gb-compare__table td{
  padding: 11px 12px;
}


/* === Compare table redesign v2 (per latest request) === */
/* 1) Increase parameters font, 2) values non-bold, 3) tighter rows, 4) vertical line after first column */
.gb-compare__table tbody th{
  font-size: 15px !important;       /* bigger 'Найменування' rows */
  font-weight: 900 !important;
}
.gb-compare__table tbody td{
  font-weight: 400 !important;      /* values not bold */
  color: var(--muted) !important;
  font-size: 13px !important;
}

/* Tighter row height */
.gb-compare__table th, .gb-compare__table td{
  padding: 8px 12px !important;
}

/* Strong vertical separator after 'Найменування' column */
.gb-compare__table th:first-child,
.gb-compare__table td:first-child{
  border-right: 2px solid var(--gray-200) !important;
}

/* 5) Header row: double size (responsive) */
.gb-compare__table thead th{
  font-size: clamp(16px, 2.2vw, 28px) !important;
  font-weight: 900 !important;
  padding: 14px 12px !important;
}

/* Keep header background prominent */
.gb-compare__table thead th{
  background: var(--gray-100) !important;
}

/* Column highlight based on active package (10) */
.gb-compare[data-active-package="budget"] .gb-compare__table thead th:nth-child(2),
.gb-compare[data-active-package="budget"] .gb-compare__table tbody td:nth-child(2){
  background: rgba(247,147,30,.10) !important;
  font-weight: 700 !important;
  color: var(--blue-900) !important;
}
.gb-compare[data-active-package="standard"] .gb-compare__table thead th:nth-child(3),
.gb-compare[data-active-package="standard"] .gb-compare__table tbody td:nth-child(3){
  background: rgba(247,147,30,.14) !important;
  font-weight: 700 !important;
  color: var(--blue-900) !important;
}
.gb-compare[data-active-package="comfort"] .gb-compare__table thead th:nth-child(4),
.gb-compare[data-active-package="comfort"] .gb-compare__table tbody td:nth-child(4){
  background: rgba(247,147,30,.10) !important;
  font-weight: 700 !important;
  color: var(--blue-900) !important;
}
.gb-compare[data-active-package="san"] .gb-compare__table thead th:nth-child(5),
.gb-compare[data-active-package="san"] .gb-compare__table tbody td:nth-child(5){
  background: rgba(247,147,30,.10) !important;
  font-weight: 700 !important;
  color: var(--blue-900) !important;
}

/* CTA row: place PDF button opposite the main CTA */
.gb-compare__cta{
  justify-content: space-between !important;
}
.gb-compare__cta .btn{ flex: 0 0 auto; }
@media (max-width: 720px){
  .gb-compare__cta{ justify-content:flex-start !important; align-items:flex-start !important; }
  .gb-compare__cta .btn.btn--primary{
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .gb-compare__cta-sub{
    width:100%;
    text-align:center !important;
    margin-left:0 !important;
    margin-right:0 !important;
  }
  .gb-compare__pdf{
    width: 100%;
    text-align:left !important;
    margin-left:0 !important;
  }
}


/* === Compare table tuning v3 === */
/* 1) прибрати стаціонарне підсвічування 'Стандарт' (is-strong) — підсвітка тільки через data-active-package */
.gb-compare__table thead th.is-strong{
  background: var(--gray-100) !important;
  color: var(--blue-900) !important;
}
.gb-compare__table tbody td.is-strong{
  background: transparent !important;
  font-weight: 400 !important;
  color: var(--muted) !important;
}

/* 2) зменшити висоту рядків таблиці */
.gb-compare__table th, .gb-compare__table td{
  padding: 6px 10px !important;
  line-height: 1.25 !important;
}

/* 3) заголовки (Найменування/Бюджет/Стандарт/Комфорт) зменшити ~в 1.5 рази */
.gb-compare__table thead th{
  font-size: clamp(12px, 1.45vw, 18px) !important;
  padding: 10px 10px !important;
}

/* 4) колонка 'Найменування' — однотонний світлий фон (без "зебри") */
.gb-compare__table tbody th{
  background: var(--gray-50) !important;
}
.gb-compare__table tbody tr:nth-child(odd) th{
  background: var(--gray-50) !important;
}


/* === Compare equal package columns === */
.gb-compare__table{ table-layout: fixed !important; }
.gb-compare__table col.col-param{ width: 32% !important; }
.gb-compare__table col.col-package{ width: 17% !important; }


/* === Compare parameter checkmarks === */
/* Orange checkmark before each parameter name (like 'Чому нас обирають' on homepage) */
.gb-compare__table tbody th{
  position: relative;
  padding-left: 28px !important; /* space for icon */
}
.gb-compare__table tbody th::before{
  content: "✓";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  color: var(--orange);
  background: transparent;
  box-shadow: none;
}



#articles .gb-articles{ width:100%; }
#articles .gb-articles__track{ display:grid; grid-template-columns: repeat(3, 1fr); gap:14px; }

@media (max-width: 1024px){
  #articles .gb-articles__track{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px){
  #articles .gb-articles__track{
    display:flex;
    gap:12px;
    overflow-x:auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #articles .gb-articles__track::-webkit-scrollbar{ height: 6px; }
  #articles .gb-articles__track::-webkit-scrollbar-thumb{ background: rgba(8,26,44,.14); border-radius: 10px; }
  #articles .gb-article{
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
}

/* If markup doesn't have __track wrapper, make grid apply to direct children */
#articles .gb-articles:not([data-gb-articles]){
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 1024px){
  #articles .gb-articles:not([data-gb-articles]){ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px){
  #articles .gb-articles:not([data-gb-articles]){
    display:flex;
    overflow-x:auto;
    gap:12px;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #articles .gb-articles:not([data-gb-articles]) > *{
    flex: 0 0 86%;
    scroll-snap-align: start;
  }
}


/* === Articles: swipe slider on ALL breakpoints === */
#articles .gb-articles__track,
#articles .gb-articles:not([data-gb-articles]){
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
#articles .gb-articles__track::-webkit-scrollbar,
#articles .gb-articles:not([data-gb-articles])::-webkit-scrollbar{ height: 6px; }
#articles .gb-articles__track::-webkit-scrollbar-thumb,
#articles .gb-articles:not([data-gb-articles])::-webkit-scrollbar-thumb{ background: rgba(8,26,44,.14); border-radius: 10px; }

/* Card widths: desktop shows ~3 cards, tablet ~2, mobile ~1 */
#articles .gb-article,
#articles .gb-articles:not([data-gb-articles]) > *{
  scroll-snap-align: start;
  flex: 0 0 calc((100% - 28px) / 3); /* 3 cards + 2 gaps */
}
@media (max-width: 1024px){
  #articles .gb-article,
  #articles .gb-articles:not([data-gb-articles]) > *{
    flex-basis: calc((100% - 14px) / 2); /* 2 cards + 1 gap */
  }
}
@media (max-width: 768px){
  #articles .gb-article,
  #articles .gb-articles:not([data-gb-articles]) > *{
    flex-basis: 86%; /* swipe card */
  }
}


/* === Catalog filter font-weight rules === */
/* Default: no bold. Active: orange + bold (orange styling already exists). */
.gb-pob-filter__card .gb-chip{
  font-weight: 400 !important;
}
.gb-pob-filter__card .gb-chip.is-active,
.gb-pob-filter__card .gb-chip[aria-pressed="true"]{
  font-weight: 900 !important;
}


/* === Pobutivky quick menu hover bold === */
/* Default: not bold. On hover: bold. */
nav.gb-pob-subnav .gb-pob-subnav__link{
  font-weight: 400 !important;
}
@media (hover: hover) and (pointer: fine){
  nav.gb-pob-subnav .gb-pob-subnav__link:hover{
    font-weight: 900 !important;
  }
}


/* === Pobutivky hero height = Rent hero height === */
/* Match upper hero block height with the 'Оренда риштувань' hero */
.gb-pob-hero .gb-hero__inner{
  padding: 58px 0 58px !important;
  min-height: 340px !important;
}
@media (max-width: 980px){
  .gb-pob-hero .gb-hero__inner{
    min-height: auto !important;
  }
}


/* === Compare: param names not bold === */
.gb-compare__table tbody th{
  font-weight: 400 !important;
}


/* === Compare: center package headers === */
.gb-compare__table thead th:nth-child(n+2){
  text-align: center !important;
}
.gb-compare__table tbody td:nth-child(n+2){
  text-align: center !important;
}


/* === Compare: header center, values right === */
/* Header: center all column titles incl. 'Найменування' */
.gb-compare__table thead th{ text-align: center !important; }

/* Body: keep parameter names (first column) left, values in package columns right */
.gb-compare__table tbody th{ text-align: left !important; }
.gb-compare__table tbody td:nth-child(n+2){ text-align: right !important; }


/* === Compare: values left with 5mm indent === */
/* Body values in package columns: left aligned with ~5mm (≈19px) indent from the vertical separator */
.gb-compare__table tbody td:nth-child(n+2){
  text-align: left !important;
  padding-left: 19px !important;
}


/* === Compare: name column pad 5mm === */
/* Move 'Найменування' values to the right by ~5mm (≈19px) */
.gb-compare__table tbody th{
  padding-left: 19px !important;
}


/* === Compare: shift 'Найменування' content + check together === */
/* Move BOTH the orange checkmark and the parameter text to the right by ~5mm (≈19px) */
.gb-compare__table tbody th{
  padding-left: 47px !important; /* 28px (icon+gap) + 19px shift */
}
.gb-compare__table tbody th::before{
  left: 29px !important; /* 10px + 19px shift */
}


/* === Compare table + CTA tune v4 === */
/* Minimal row height (considering 'Найменування' font size) */
.gb-compare__table tbody th,
.gb-compare__table tbody td{
  padding-top: 4px !important;
  padding-bottom: 4px !important;
  line-height: 1.12 !important;
}

/* Swap layout: show subtext on the right, PDF link below */
.gb-compare__cta{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap: 12px;
}
.gb-compare__cta-sub{
  order: 2;
  margin-left: auto;
  font-weight: 400 !important;
}
.gb-compare__pdf{
  order: 3;
  flex-basis: 100%;
  margin-left: auto;
  font-weight: 400 !important;
}
@media (hover:hover) and (pointer:fine){
  .gb-compare__pdf:hover{ font-weight: 900 !important; }
}


/* === Compare CTA subtext restore style === */
/* Keep placement/order, but restore visual style closer to previous theme look */
.gb-compare__cta-sub{
  margin-left: auto;        /* keep on the right */
  font-weight: 400 !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}



/* === Compare: wider fixed package columns on laptop === */
/* Laptop/Desktop: make package columns wider, fixed and equal, so values fit in one line */
@media (min-width: 1025px){
  .gb-compare__table{ table-layout: fixed !important; }
  .gb-compare__table col.col-param{ width: 18% !important; }
  .gb-compare__table col.col-package{ width: 20.5% !important; }

  /* Keep package values on one line */
  .gb-compare__table thead th:nth-child(n+2),
  .gb-compare__table tbody td:nth-child(n+2){
    white-space: nowrap !important;
  }
}


/* === Compare (mobile): dynamic first column width ===
   Mobile: make the first column ('Найменування') width follow the text (no wrapping).
   We switch to auto table layout and shrink the first column to content.
*/
@media (max-width: 768px){
  .gb-compare__table{ table-layout: auto !important; }
  .gb-compare__table col.col-param{ width: 1% !important; }
  .gb-compare__table col.col-package{ width: auto !important; }

  /* Keep the parameter names in one line */
  .gb-compare__table thead th:first-child,
  .gb-compare__table tbody th{
    white-space: nowrap !important;
  }
}


/* === Compare: shift name column (check+text) left 5mm === */
/* Shift the whole 'Найменування' content (checkmark + text) LEFT by ~5mm (≈19px).
   Previous state: padding-left 47px and ::before left 29px (shifted right).
   New state: subtract 19px -> padding-left 28px, ::before left 10px.
*/
.gb-compare__table tbody th{
  padding-left: 28px !important;
}
.gb-compare__table tbody th::before{
  left: 10px !important;
}


/* === Pobutivky card plan corners (desktop straight, mobile 7px) === */
/* Plan schematic inside catalog cards */
.gb-pob-card__plan .gb-plan-zoom,
.gb-pob-card__plan svg.gb-plan,
.gb-pob-card__plan .gb-plan{
  overflow: hidden;
}

/* Laptop/Desktop: прямі кути */
@media (min-width: 1025px){
  .gb-pob-card__plan .gb-plan-zoom,
  .gb-pob-card__plan svg.gb-plan,
  .gb-pob-card__plan .gb-plan{
    border-radius: 0 !important;
  }
}

/* Mobile/Tablet: заокруглення 7px */
@media (max-width: 1024px){
  .gb-pob-card__plan .gb-plan-zoom,
  .gb-pob-card__plan svg.gb-plan,
  .gb-pob-card__plan .gb-plan{
    border-radius: 7px !important;
  }
}


/* === Mobile model card (new макет) === */
@media (max-width: 760px){
  /* Make the carousel container invisible – cards act as the visible UI */
  .gb-pob-carousel__wrap{
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
  }
  .gb-pob-carousel__track{ padding-bottom: 12px !important; }
  .gb-pob-card--mobile.gb-pob-card--model{ flex: 0 0 92%; }
}

.gb-pob-card--model .gb-pob-card__img{
  /* підняти головне фото максимально вгору (без внутрішнього відступу) */
  display: block;
  padding: 0;
  background: #fff;
}
.gb-pob-card--model .gb-pob-card__main-img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 7px;
  /* коли фото прилягає до меж картки — прибираємо рамку, щоб не було подвійного бордера */
  border: 0;
}
.gb-pob-card--model .gb-pob-card__img--plan{
  padding: 4px 12px 0;
}
.gb-pob-card--model .gb-pob-card__main-plan-img,
.gb-pob-card--model .gb-pob-card__main-plan-svg svg{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}
.gb-pob-card--model .gb-pob-card__main-plan-svg{
  display: block;
}
.gb-pob-card--model .gb-pob-card__main-photo{
  width: 100%;
  display: block;
  padding: 0 12px;
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}
.gb-pob-card--model .gb-pob-card__photo-img{
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--gray-200);
  border-radius: 5px;
  background: #fff;
}

.gb-pob-card--model .gb-pob-card__body{
  padding: 0;
}

.gb-pob-card--model .gb-pob-card__title{
  /* компактніше, щоб назва моделі була ближче до схеми */
  padding: 6px 12px 2px;
  margin: 0;
  font-size: 18px;
  line-height: 1.15;
  text-align: left;
}

.gb-pob-card--model .gb-pob-card__specs{
  border-top: 1px solid var(--gray-200);
}
.gb-pob-card--model .gb-pob-spec{
  display:flex;
  align-items:flex-start;
  gap:8px;
  /* мінімальна висота рядків без зміни розміру шрифту */
  padding: 4px 12px;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 800;
  font-size: 14px;
}
.gb-pob-card--model .gb-pob-spec__icon{ color: var(--blue-900); margin-top: 1px; flex: 0 0 auto; }
.gb-pob-card--model .gb-pob-spec__label{ color: var(--blue-900); font-weight: 900; flex: 0 0 auto; }
.gb-pob-card--model .gb-pob-spec__value{ color: var(--muted); font-weight: 900; }
.gb-pob-card--model .gb-pob-spec--price .gb-pob-spec__value{ color:#1f8f3c; }
.gb-pob-model-note{
  padding: 0 12px 8px 38px;
  border-bottom: 1px solid var(--gray-200);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
}

.gb-pob-card--model .gb-pob-card__section{ padding: 6px 0 0; }
.gb-pob-card--model .gb-pob-card__section-title{
  padding: 0 12px 6px;
  text-align: center;
  font-weight: 900;
  color: var(--blue-900);
  font-size: 16px;
}
.gb-pob-card--model .gb-pob-card__plan{ padding: 0 12px; margin-top: -1mm; }
.gb-pob-card--model .gb-pob-card__plan img,
.gb-pob-card--model .gb-pob-card__plan svg{
  width: 100%;
  height: auto;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  background: #fff;
}
.gb-pob-card--model .gb-pob-card__hint{ display:none !important; }

.gb-pob-card--model .gb-pob-card__thumbs{
  padding: 12px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: -2mm;
}
.gb-pob-card--model .gb-pob-card__thumb{
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  display:block;
}
.gb-pob-card--model .gb-pob-card__thumb img{
  width: 100%;
  height: 54px;
  object-fit: cover;
  border-radius: 7px;
  border: 1px solid var(--gray-200);
}

/* Laptop/Desktop: прямі кути для головного та додаткових фото */
@media (min-width: 761px){
  .gb-pob-card--model .gb-pob-card__main-img,
  .gb-pob-card--model .gb-pob-card__thumb img{
    border-radius: 0px;
  }
}

@media (max-width: 430px){
  .gb-pob-card--model .gb-pob-card__thumbs{ grid-template-columns: repeat(2, 1fr); }
  .gb-pob-card--model .gb-pob-card__thumb img{ height: 62px; }
}

/* Mobile media inside model cards:
   - keep the model carousel swipe working;
   - keep page scroll responsive when a gesture starts on photo/plan/thumb.
   We do NOT lock touch-action to pan-y here, because that breaks horizontal
   swipe on the mobile catalog slider. Instead, the interactive wrappers keep
   normal touch behavior, while inner media becomes passive. */
@media (max-width: 760px){
  .gb-pob-card--model .gb-pob-card__img--plan,
  .gb-pob-card--model .gb-pob-card__main-photo,
  .gb-pob-card--model .gb-pob-card__thumb{
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .gb-pob-card--model .gb-pob-card__main-plan-img,
  .gb-pob-card--model .gb-pob-card__main-plan-svg,
  .gb-pob-card--model .gb-pob-card__main-plan-svg svg,
  .gb-pob-card--model .gb-pob-card__photo-img,
  .gb-pob-card--model .gb-pob-card__thumb img{
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
  }
}

.gb-pob-card--model .gb-pob-card__colors{
  padding: 2px 12px 12px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 10px;
  margin-top: -3mm;
  flex-wrap: nowrap;           /* в один ряд у всіх версіях */
  overflow-x: auto;            /* якщо не влазить — горизонтальний скрол, але без переносу */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;       /* Firefox */
}
.gb-pob-card--model .gb-pob-card__colors::-webkit-scrollbar{ display:none; } /* Chrome/Safari */
.gb-pob-card--model .gb-pob-card__color{
  flex: 1 1 0;
  width: auto;
  min-width: 68px;
  max-width: 84px;
  /* -30% від попередньої висоти (44px) */
  height: 31px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  border: 1px solid rgba(8,26,44,.14);
  background: var(--ral);
  color: rgba(255,255,255,.96);
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 12px 20px rgba(8,26,44,.10);
}
.gb-pob-card--model .gb-pob-card__color.is-light{ color: var(--blue-900); }
.gb-pob-card--model .gb-pob-card__color.is-active{ outline: 2px solid rgba(247,147,30,.9); outline-offset: 2px; }

.gb-pob-card--model .gb-pob-card__pdf-btn{
  margin: 0 12px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--blue-900);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 14px 26px rgba(8,26,44,.22);
  font-weight: 900;
  font-size: 14px;
  text-align: center;
}
.gb-pob-card--model .gb-pob-card__pdf-ico{
  width: 38px;
  height: 30px;
  display:grid;
  place-items:center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.10);
}
.gb-pob-card--model .gb-pob-card__pdf-btn:hover{ transform: translateY(-1px); }

.gb-plan-modal__content > img,
.gb-plan-modal__content > svg{
  max-width: 100%;
  height: auto;
  max-height: 78vh;
}

/* === March 2026: raise filter block + reduce section titles ===
   1) Move the whole 'Фільтр каталогу' container up by ~10mm (~38px) from current position.
   2) Make titles of all main containers/sections on the Pobutivky page 10% smaller.
*/
.gb-pob-filter{
  margin-top: -39px !important;
}

.gb-pob .gb-pob-h2,
.gb-pob .gb-section__title{
  font-size: 27px !important; /* 10% smaller than 30px */
}

/* === March 2026: lift FAQ title + questions inside container by ~5mm, keep container in place === */
.gb-pob .gb-rent-faq-section > .container{
  position: relative;
  top: -19px;
}

/* === March 2026: reduce FAQ container height by ~5mm, keep container position === */
.gb-pob .gb-rent-faq-section > .container{
  margin-bottom: -19px;
}

/* === March 2026: reduce Reviews block height by ~5mm, keep block position === */
.gb-pob #reviews.gb-reviews{
  padding-bottom: 15px !important; /* 34px -> 15px, ~5mm less overall height */
}

/* === Compare: auto-width for all columns === */
/* Keep every column self-sizing by content and keep text on one line across all breakpoints. */
.gb-compare__table{
  table-layout: auto !important;
  width: max-content;
  min-width: 100%;
}
.gb-compare__table col.col-param,
.gb-compare__table col.col-package{
  width: auto !important;
}
.gb-compare__table thead th,
.gb-compare__table tbody th,
.gb-compare__table tbody td{
  width: 1% !important;
  white-space: nowrap !important;
}


/* === Catalog filter position: under catalog description, before cards === */
.gb-pob-filter--under-catalog{
  margin-top: 16px !important;
}

/* === April 2026: make the catalog filter card about 5mm shorter === */
.gb-pob-filter--under-catalog .gb-pob-filter__card{
  padding-top: 7px !important;
  padding-bottom: 4px !important;
}
.gb-pob-filter--under-catalog .gb-pob-filter__row{
  margin-top: 4px !important;
}
.gb-pob-filter--under-catalog .gb-pob-filter__label{
  padding-top: 0 !important;
}

/* === March 2026: lift Catalog models block and all following content by 10mm === */
main#catalog.gb-pob{
  padding-top: calc(46px - 10mm) !important;
}

/* === March 2026: laptop-only catalog paging (9 cards + swipe) ===
   - Laptop (1025px–1440px): keep the paged 3x3 carousel with swipe.
   - Tablet (761px–1024px) and large desktop (1441px+): show all model cards without swipe.
   - Mobile (<=760px): keep the existing single-card swipe carousel.
*/
@media (min-width: 761px) and (max-width: 1024px),
       (min-width: 1441px){
  .gb-pob-carousel--desktop .gb-pob-carousel__track{
    display: block;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .gb-pob-carousel--desktop .gb-pob-carousel__page{
    flex: none;
    scroll-snap-align: unset;
    scroll-snap-stop: normal;
    margin-bottom: 14px;
  }

  .gb-pob-carousel--desktop .gb-pob-carousel__page:last-child{
    margin-bottom: 0;
  }

  .gb-pob-carousel--desktop .gb-pob-carousel__arrow,
  .gb-pob-carousel--desktop .gb-pob-carousel__dots{
    display: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1024px){
  .gb-pob-carousel--desktop .gb-pob-carousel__page{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1025px) and (max-width: 1440px){
  .gb-pob-carousel--desktop .gb-pob-carousel__track{
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
  }

  .gb-pob-carousel--desktop .gb-pob-carousel__page{
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
  }

  .gb-pob-carousel--desktop .gb-pob-carousel__arrow{
    display: block;
  }

  .gb-pob-carousel--desktop .gb-pob-carousel__dots{
    display: flex;
  }
}


/* === March 2026: move explanatory text under section titles up by 2mm === */
.gb-pob .gb-pob-sub{
  margin-top: -2mm !important;
}

/* === March 2026: raise package filter buttons by 1mm === */
.gb-pob-filter--under-catalog .gb-pob-filter__chips{
  position: relative;
  top: -1mm;
}

/* === March 2026: lift reviews content inside block by ~5mm on Pobutivky page === */
.gb-pob #reviews.gb-reviews > .container{
  position: relative;
  top: -19px;
  margin-bottom: -19px;
}

/* === March 2026: align the Reviews title with other section titles on Pobutivky page === */
.gb-pob #reviews.gb-reviews .gb-section__title{
  text-align: left !important;
  margin-left: 0 !important;
}

/* === March 2026: pull Feedback + Contacts blocks 5mm closer to Reviews on Pobutivky page === */
.gb-pob-cta{
  margin-top: -5mm !important;
  margin-bottom: -5mm !important;
}


/* === March 2026: lift FAQ block up by 5mm === */
.gb-pob .gb-rent-faq-section{
  margin-top: calc(18px - 5mm) !important;
}

/* === March 2026: unify vertical gaps between titled blocks on Pobutivky page ===
   Request: keep "Каталог моделей" unchanged.
   All following titled blocks start with the same visible gap of 10mm from the block above.
*/
#packages.gb-pob-section,
#compare.gb-pob-section,
#choose.gb-pob-section,
#articles.gb-pob-section{
  margin-top: 10mm !important;
}

/* FAQ and Reviews are full-width .gb-section blocks with their own top padding.
   To make the TITLE sit 10mm below the previous block, normalize via padding-top.
*/
.gb-pob #faq.gb-rent-faq-section{
  margin-top: 0 !important;
  padding-top: 10mm !important;
}

#reviews.gb-reviews{
  margin-top: 0 !important;
  padding-top: 10mm !important;
}

/* Cancel older inner lifts so the spacing is controlled only by the rules above. */
#reviews.gb-reviews > .container{
  position: relative;
  top: 0 !important;
  margin-bottom: 0 !important;
}

/* === March 2026: normalize visual gaps FAQ -> Articles and Articles -> Reviews ===
   Match the same visual rhythm as between other Pobutivky blocks.
   - FAQ keeps a 10mm top gap from the previous block, but no extra bottom padding.
   - The main white wrapper ends right after Articles, so Reviews starts with the same 10mm gap.
*/
.gb-pob #faq.gb-rent-faq-section{
  padding-bottom: 0 !important;
}

main#catalog.gb-pob{
  padding-bottom: 0 !important;
}


/* === Mobile: keep package filter buttons in a single row on Pobutivky page === */
@media (max-width: 767px){
  .gb-pob-filter--under-catalog .gb-pob-filter__row{
    display: block !important;
  }
  .gb-pob-filter--under-catalog .gb-pob-filter__label{
    display: block !important;
    min-height: 0 !important;
    margin-bottom: 8px !important;
  }
  .gb-pob-filter--under-catalog .gb-pob-filter__chips{
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .gb-pob-filter--under-catalog .gb-pob-filter__chips::-webkit-scrollbar{
    display: none;
  }
  .gb-pob-filter--under-catalog .gb-pob-filter__card .gb-chip{
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: calc(12px - 1mm);
    padding-right: calc(12px - 1mm);
  }
}


/* === Articles slider (same UX as Reviews) === */
#articles .gb-articles-slider{
  width: 100%;
}
#articles .gb-articles__wrap{
  position: relative;
}
#articles .gb-articles__track{
  display: flex !important;
  gap: 14px !important;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 2px;
}
#articles .gb-articles__track::-webkit-scrollbar{
  display: none;
}
#articles .gb-article{
  flex: 0 0 calc((100% - 28px) / 3) !important;
  min-width: calc((100% - 28px) / 3) !important;
  scroll-snap-align: start;
}
#articles .gb-articles__nav{
  margin-top: 18px;
}
@media (max-width: 980px){
  #articles .gb-article{
    flex-basis: calc((100% - 14px) / 2) !important;
    min-width: calc((100% - 14px) / 2) !important;
  }
}
@media (max-width: 640px){
  #articles .gb-article{
    flex-basis: 100% !important;
    min-width: 100% !important;
  }
}

/* === March 2026 fix: Articles slider wrapper must span full section width === */
#articles .gb-articles.gb-articles-slider{
  display: block !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}
#articles .gb-articles.gb-articles-slider .gb-articles__wrap{
  width: 100%;
  max-width: 100%;
}
#articles .gb-articles.gb-articles-slider .gb-articles__track{
  width: 100%;
  align-items: stretch;
}
#articles .gb-articles.gb-articles-slider .gb-article{
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
#articles .gb-articles.gb-articles-slider .gb-article__more{
  margin-top: auto;
}


/* === Final fix: Articles slider shows all articles and keeps readable justified text === */
#articles .gb-articles.gb-articles-slider{
  display:block !important;
  width:100% !important;
}
#articles .gb-articles.gb-articles-slider .gb-articles__wrap{
  width:100%;
  max-width:100%;
}
#articles .gb-articles.gb-articles-slider .gb-articles__track{
  width:100%;
  align-items:stretch;
}
#articles .gb-articles.gb-articles-slider .gb-article{
  flex:0 0 calc((100% - 28px) / 3) !important;
  min-width:calc((100% - 28px) / 3) !important;
  max-width:calc((100% - 28px) / 3) !important;
  display:flex;
  flex-direction:column;
}
#articles .gb-articles.gb-articles-slider .gb-article__title,
#articles .gb-articles.gb-articles-slider .gb-article__text{
  text-align:justify;
  text-justify:inter-word;
  text-align-last:left;
  word-break:normal;
  overflow-wrap:anywhere;
  hyphens:auto;
}
#articles .gb-articles.gb-articles-slider .gb-article__title{
  line-height:1.35;
}
#articles .gb-articles.gb-articles-slider .gb-article__text{
  line-height:1.45;
}
#articles .gb-articles.gb-articles-slider .gb-article__more{
  margin-top:auto;
}
@media (max-width:980px){
  #articles .gb-articles.gb-articles-slider .gb-article{
    flex:0 0 calc((100% - 14px) / 2) !important;
    min-width:calc((100% - 14px) / 2) !important;
    max-width:calc((100% - 14px) / 2) !important;
  }
}
@media (max-width:640px){
  #articles .gb-articles.gb-articles-slider .gb-article{
    flex:0 0 100% !important;
    min-width:100% !important;
    max-width:100% !important;
  }
}


/* === Mobile-specific editable review text on Pobutivky | Production === */
.gb-pob #reviews .gb-review__text-desktop,
.gb-pob #reviews .gb-review__text-mobile{
  display:block;
}
.gb-pob #reviews .gb-review__text-mobile{
  display:none;
}
@media (max-width: 767px){
  .gb-pob #reviews .gb-review__text{
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .gb-pob #reviews .gb-review__text--has-mobile .gb-review__text-desktop{
    display:none;
  }
  .gb-pob #reviews .gb-review__text--has-mobile .gb-review__text-mobile{
    display:block;
  }
}

/* === Mobile reviews on Pobutivky | Production: larger text, full-width justify === */
@media (max-width: 767px){
  .gb-pob #reviews .gb-review{
    padding: 14px 14px 12px;
  }

  .gb-pob #reviews .gb-review__head{
    align-items: flex-start;
    margin-bottom: 8px;
  }

  .gb-pob #reviews .gb-review__meta{
    min-width: 0;
  }

  .gb-pob #reviews .gb-review__name{
    font-size: 14px;
    line-height: 1.25;
  }

  .gb-pob #reviews .gb-review__stars{
    margin-top: 4px;
  }

  .gb-pob #reviews .gb-review__text,
  .gb-pob #reviews .gb-review__text-desktop,
  .gb-pob #reviews .gb-review__text-mobile{
    font-size: 16.8px !important;
    line-height: 1.5 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: left !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    hyphens: auto;
    max-width: none !important;
    width: 100%;
  }

  .gb-pob #reviews .gb-review__text{
    margin: 0 0 8px;
  }
}


/* === Mobile April 2026: Pobutivky reviews spacing + compact text === */
@media (max-width: 767px){
  .gb-pob #reviews .gb-reviews__nav{
    margin-bottom: 5mm !important;
  }

  .gb-pob #reviews .gb-review{
    min-width: calc(100vw - 28px) !important;
    max-width: calc(100vw - 28px) !important;
    flex: 0 0 calc(100vw - 28px) !important;
    box-sizing: border-box;
  }

  .gb-pob #reviews .gb-review__text,
  .gb-pob #reviews .gb-review__text-desktop,
  .gb-pob #reviews .gb-review__text-mobile{
    font-size: 13.6px !important;
    line-height: 1.38 !important;
    text-align: justify !important;
    text-justify: inter-word !important;
    text-align-last: left !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    hyphens: auto;
    width: 100% !important;
    max-width: 100% !important;
    display: block;
  }

  .gb-pob #reviews .gb-review__text{
    margin: 0 0 6px !important;
  }
}

/* Laptop-only: rounded corners for steps in the "Як обрати побутівку" block */
@media (min-width: 981px) and (max-width: 1366px){
  .gb-steps .gb-step{
    border-radius: 5px !important;
  }
}

/* === April 2026: lift Reviews title and review cards by 5mm, keep section container in place === */
.gb-pob #reviews.gb-reviews > .container{
  position: relative;
  top: -5mm !important;
}

/* === April 2026: make review cards on Pobutivky page ~5mm shorter, keep typography unchanged === */
.gb-pob #reviews .gb-review{
  padding-top: calc(16px - 2.5mm) !important;
  padding-bottom: calc(14px - 2.5mm) !important;
}

@media (max-width: 767px){
  .gb-pob #reviews .gb-review{
    padding-top: calc(14px - 2.5mm) !important;
    padding-bottom: calc(12px - 2.5mm) !important;
  }
}

/* === April 2026: lower review content inside cards by 5mm, keep card containers unchanged === */
.gb-pob #reviews .gb-review__head{
  margin-top: 5mm !important;
}

/* === March 2026: 3mm gap from explanatory text to content in specific blocks === */
#packages .gb-pob-sub + .gb-pkg-grid,
#compare .gb-pob-sub + .gb-compare,
#choose .gb-pob-sub + .gb-steps,
#articles .gb-pob-sub + .gb-articles{
  margin-top: 3mm !important;
}

/* === March 2026: 3mm gap from Catalog models explanatory text to the catalog block === */
#catalog .gb-pob-sub + .gb-pob-filter--under-catalog{
  margin-top: 3mm !important;
}


/* Works gallery on production page */
.gb-works-gallery__item{ cursor:pointer; }
@media (max-width: 980px){
  .gb-works-gallery__item{ cursor:default; }
}
