/* ==========================================================================
   GardenBox 3D — страница «Kostenloser Online-Gartenplaner»
   /de/gartenplaner-online-kostenlos.php
   Отдельный файл: все правила начинаются с .gbo-, общий /css/style.css не меняется.
   Зелёный — из логотипа GardenBox (#64A02A → #82DE29).
   ========================================================================== */

:root {
  --gbo-green: #64A02A;
  --gbo-green-light: #82DE29;
  --gbo-green-dark: #4E8520;
  --gbo-text: #3C4352;
}

/* ---------- Зелёная кнопка (основное действие страницы — онлайн-планировщик) ---------- */
.button.gbo-btn-green {
  background: linear-gradient(360deg, #5B9625 0%, #8BCB3E 100%);
  box-shadow: 0 3px 0 #9AD45A;
}
.button.gbo-btn-green:hover {
  box-shadow: 0 15px 24px rgba(100, 160, 42, 0.35), 0 3px 0 #9AD45A;
}
.button.gbo-btn-green::after {
  background: linear-gradient(360deg, #4E8520 33.85%, #72B533 100%);
}
.button.gbo-btn-green:active::after {
  background: linear-gradient(360deg, #4E8520 33.85%, #72B533 100%);
}
.button.gbo-btn-green:focus-visible,
.gbo-video-popup:focus-visible {
  outline: 3px solid var(--gbo-green-dark);
  outline-offset: 3px;
}

/* Зелёная кнопка с иконкой (после пошаговой инструкции) */
.button.gbo-btn-icon { gap: 12px; }
.button.gbo-btn-icon .gbo-btn-icon__svg { position: relative; z-index: 1; flex: none; }

/* ---------- Стартовое окно ---------- */
.gbo-hero .hero__text.gbo-hero__text {
  max-width: 600px;
  font-size: 24px;
  line-height: 34px;
}
@media (max-width: 991px) {
  .gbo-hero .hero__text.gbo-hero__text { font-size: 22px; line-height: 30px; }
}
@media (max-width: 767px) {
  .gbo-hero .hero__text.gbo-hero__text { font-size: 18px; line-height: 26px; max-width: 100%; }
}
.gbo-hero .hero__bottom { align-items: flex-start; }
.gbo-hero .hero__bottom-video { min-height: 70px; display: flex; align-items: center; }
@media (max-width: 767px) {
  .gbo-hero .hero__bottom-video { min-height: 0; }
}

/* Кнопка видео — зелёная вместо оранжевой */
.gbo-video-popup .video-popup__btn {
  border-color: var(--gbo-green);
  border-right-color: #F2F3F3;
  border-bottom-color: #F2F3F3;
}
.gbo-video-popup .video-popup__btn::before {
  border-left-color: rgba(100, 160, 42, 0.5);
}
.gbo-video-popup:active .video-popup__btn-wrap {
  border-color: rgba(100, 160, 42, 0.4);
}
.gbo-video-popup:active .video-popup__btn::before {
  border-left-color: var(--gbo-green);
}

.gbo-hero--preview {
  --gbo-garden-plan: url("img/hero-garden-plan.webp") no-repeat left bottom / contain;
  position: relative;
  isolation: isolate;
  padding: clamp(44px, 7vw, 104px) 0;
  background: linear-gradient(90deg, rgb(253 252 249) 37%, rgb(253 249 243 / 83%) 50%, rgba(0, 0, 0, 0) 66%);
}
.gbo-hero--preview::after {
  content: '';
  position: absolute;
  inset: auto auto 0 0;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 381 / 700;
  z-index: -2;
  pointer-events: none;
  background: var(--gbo-garden-plan);
  mask-image: linear-gradient(to right, #000 78%, transparent);
}
.gbo-hero--preview::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--gbo-garden-plan);
  transform: rotate(180deg);
}
@media (max-width: 767px) {
  .gbo-hero--preview::before {
    background-position: left top;
    background-size: auto 46%;
  }
}
.gbo-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
}
.gbo-hero--preview .hero-h1 {
  font-size: clamp(26px, 3.1vw, 40px);
  line-height: 1.16;
}
.gbo-hero__subtitle {
  display: block;
  margin-top: 8px;
  font-size: clamp(17px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.25;
}
.gbo-hero--preview .hero__bottom-btn {
  align-items: center;
  margin: 0;
}
.gbo-hero__figure {
  justify-self: center;
  width: 100%;
  max-width: 560px;
  margin: 0;
}
.gbo-hero__caption {
  margin-top: 16px;
  font-size: 15px;
  font-weight: 400;
  text-align: center;
  line-height: 1.5;
  color: var(--gbo-text);
}
.gbo-hero__preview {
  position: relative;
  display: block;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(32, 48, 36, 0.16);
}
.gbo-hero__preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.gbo-hero__preview:focus-visible {
  outline: 3px solid var(--gbo-green-dark);
  outline-offset: 4px;
}
.gbo-hero__play {
  display: grid;
  place-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(52px, 6vw, 72px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: #fff;
  transition: background-color 0.2s ease;
}
.gbo-hero__play::before {
  content: '';
  margin-left: 4px;
  border-block: 10px solid transparent;
  border-left: 16px solid var(--gbo-green-dark);
}
.gbo-hero__preview:is(:hover, :focus-visible) .gbo-hero__play { background-color: #eff6e9; }
@media (max-width: 767px) {
  .gbo-hero__layout { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Пошаговая инструкция: видео и скриншоты ---------- */
.gbo-steps .tabs-block { justify-content: center; }
/* 542px исходного видео и по 20px рамки с каждой стороны. */
.gbo-steps .swiper-tabs__container {
  max-width: 582px;
  aspect-ratio: 582 / 412;
  padding-bottom: 0;
}
.gbo-steps #swiper-tabs-one .swiper-slide:has(> img) {
  border: 0;
}
.gbo-steps #swiper-tabs-one .swiper-slide img {
  top: 50%;
  left: 50%;
  height: auto;
  transform: translate(-50%, -50%);
  box-sizing: border-box;
  border: 20px solid #fff;
  border-radius: 6px;
}
.gbo-steps #swiper-tabs-one .swiper-slide video {
  object-fit: scale-down;
  background: #fff;
}
.gbo-steps .btn-center { margin-top: 40px; }

/* ---------- Преимущества: шахматный порядок, картинка на зелёной подложке ---------- */
.gbo-adv { padding: 40px 0 20px; }
.gbo-adv__list { display: flex; flex-direction: column; gap: 80px; margin-top: 50px; }
.gbo-adv__row { display: flex; align-items: center; gap: 70px; }
.gbo-adv__row--reverse { flex-direction: row-reverse; }
.gbo-adv__media { position: relative; flex: 0 0 40%; max-width: 420px; margin: 0 0 24px 24px; }
.gbo-adv__media::before {
  content: '';
  position: absolute;
  left: -24px; bottom: -24px;
  width: 70%; height: 75%;
  border-radius: 8px;
  background: linear-gradient(360deg, #5B9625 0%, #8BCB3E 100%);
}
.gbo-adv__row--reverse .gbo-adv__media { margin: 0 24px 24px 0; }
.gbo-adv__row--reverse .gbo-adv__media::before { left: auto; right: -24px; }
.gbo-adv__media img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  background: #E6EEF1;
  box-shadow: 0 6px 40px rgba(0, 21, 36, 0.12);
}
.gbo-adv__body { flex: 1 1 auto; }
.gbo-adv__title { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--gbo-text); margin: 0 0 16px; }
.gbo-adv__title::before {
  content: '';
  display: block;
  width: 40px; height: 3px;
  margin-bottom: 16px;
  border-radius: 2px;
  background: var(--gbo-green);
}
.gbo-adv__text { font-size: 16px; line-height: 24px; color: var(--gbo-text); }
.gbo-adv__text + .gbo-adv__text { margin-top: 12px; }
@media (max-width: 991px) {
  .gbo-adv__row { gap: 40px; }
}
@media (max-width: 767px) {
  .gbo-adv { padding-top: 20px; }
  .gbo-adv__list { gap: 50px; margin-top: 30px; }
  .gbo-adv__row, .gbo-adv__row--reverse { flex-direction: column; align-items: stretch; gap: 36px; }
  .gbo-adv__media { flex: none; align-self: center; width: calc(100% - 16px); margin: 0 0 16px 16px; }
  .gbo-adv__row--reverse .gbo-adv__media { margin: 0 16px 16px 0; }
  .gbo-adv__media::before { left: -16px; bottom: -16px; }
  .gbo-adv__row--reverse .gbo-adv__media::before { right: -16px; }
}

/* ---------- Карусель объектов: отступ между подсказкой и кнопкой ---------- */
.gbo-catalog .btn-center { margin-top: 40px; }
.gbo-catalog:has(+ .gbo-adv) { padding-bottom: 20px; }
.gbo-catalog + .gbo-adv { padding-top: 28px; }
.gbo-catalog + .gbo-adv .gbo-adv__list { margin-top: 0; }

/* ---------- Примеры: скриншоты планов без подписей, только стрелки ---------- */
.gbo-examples { padding-bottom: clamp(18px, 2vw, 28px); }
.gbo-examples + .gbo-reviews .reviews-wrapper { padding-top: clamp(18px, 2vw, 28px); }
.gbo-examples .examples { max-width: 1040px; }
@media (min-width: 500px) {
  .gbo-examples { overflow: hidden; overflow: clip; }
  .gbo-examples .examples {
    width: min(70%, calc(76% - 50px));
    overflow: visible;
  }
  /* Сохраняем зазор между превью при отрицательном интервале Swiper. */
  .gbo-examples .examples .swiper-slide-prev {
    transform: translateX(min(0px, calc(10% - 51px))) scale(0.8);
  }
  .gbo-examples .examples .swiper-slide-next {
    transform: translateX(max(0px, calc(51px - 10%))) scale(0.8);
  }
  .gbo-examples .examples .swiper-slide:not(.swiper-slide-active, .swiper-slide-prev, .swiper-slide-next) {
    opacity: 0;
    pointer-events: none;
  }
}
.gbo-examples .swiper-pagination { display: none; }
.gbo-examples .examples-block img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  height: auto;
  object-fit: cover;
  background: #E6EEF1;
}

/* без подписей затемнение снизу слайда не нужно */
.gbo-examples .examples .swiper-slide.swiper-slide-active .examples-block::after { display: none; }

/* ---------- Отзывы: без звёзд, со стрелками ---------- */
.gbo-reviews .reviews-wrapper { padding-bottom: clamp(16px, 2vw, 24px); }
.gbo-reviews__carousel { position: relative; }
/* Clip the slides at the content edges while the arrows sit in the outer gutters. */
.gbo-reviews .reviews {
  position: static;
  width: auto;
  margin-inline: 56px;
  padding-bottom: 60px;
  overflow: hidden;
}
/* стрелки по бокам, на уровне аватара/имени — не перекрывают текст отзыва */
.gbo-reviews .reviews .swiper-button-prev,
.gbo-reviews .reviews .swiper-button-next { top: 50%; bottom: auto; }
@media (max-width: 767px) {
  .gbo-reviews .reviews { margin-inline: 0; }
  .gbo-reviews .reviews .swiper-button-prev,
  .gbo-reviews .reviews .swiper-button-next { top: 110px; width: 48px; height: 48px; }
  .gbo-reviews .reviews .swiper-button-prev { left: 4px; }
  .gbo-reviews .reviews .swiper-button-next { right: 4px; }
}
.gbo-reviews .reviews-slider__top { justify-content: center; text-align: center; margin-top: 12px; }
.gbo-reviews .reviews-slider__img img { width: 64px; height: 64px; object-fit: cover; background: #E6EEF1; }
.gbo-reviews .reviews-slider__item { width: 100%; }
.gbo-reviews .reviews-slider__item-prof { color: #6B7280; }

/* ---------- FAQ: заголовки вопросов h3 выглядят как на главной ---------- */
.gbo-faq { padding-bottom: 80px; }
/* Сохраняем место для тени и компенсируем его отступом FAQ. */
.gbo-reviews + .gbo-faq { margin-top: calc(clamp(24px, 2.4vw, 34px) - 60px); }
.gbo-faq h3.accordion-heading {
  margin: 0;
  font-weight: 600;
  font-size: 18px;
}
@media (max-width: 767px) {
  .gbo-faq h3.accordion-heading { font-size: 16px; }
}
@media (max-width: 767px) {
  .gbo-faq { padding-bottom: 50px; }
}

/* ---------- Финальный блок: скриншот с полным интерфейсом ---------- */
.gbo-downloads { overflow: hidden; overflow: clip; }
.gbo-downloads .downloads-wrap { background: none; padding: 0; }
.gbo-downloads .downloads-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}
.gbo-downloads .downloads-left { width: auto; padding-right: 0; }
.gbo-downloads .downloads-right { width: auto; padding: 24px 0; justify-content: center; }
@media (min-width: 768px) {
  .gbo-downloads .downloads-right {
    /* Use the outer gutter of the shared 1230px container for the screenshot. */
    --gbo-image-breakout: clamp(0px, (100vw - 1230px) / 2 - 20px, 320px);
    margin-inline-end: calc(-1 * var(--gbo-image-breakout));
    justify-content: flex-end;
  }
}
.gbo-downloads__text {
  font-size: 18px;
  line-height: 27px;
  margin-bottom: 24px;
}
.gbo-downloads .gbo-downloads__features { padding-left: 0; }
.gbo-downloads .gbo-downloads__features li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: 10px;
  list-style: none;
  font-size: 16px;
  line-height: 24px;
}
.gbo-downloads__feature-icon {
  display: block;
  color: #3C4352;
}
.gbo-downloads .downloads-img.gbo-downloads__img {
  width: 100%;
  max-width: 650px;
  margin: 0;
}
.gbo-downloads__img img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 21, 36, 0.12);
}
@media (max-width: 767px) {
  .gbo-downloads .downloads-block { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gbo-downloads .downloads-right { padding: 24px 0 0; }
  .gbo-downloads__text { font-size: 16px; line-height: 24px; text-align: left; }
}

.gbo-downloads--wide-title .downloads-block {
  grid-template-columns: minmax(min(62%, 660px), 1.25fr) minmax(0, 1fr);
  gap: 28px clamp(20px, 2vw, 32px);
  padding-top: clamp(36px, 5vw, 72px);
}
.gbo-downloads--wide-title .downloads-title {
  grid-column: 1 / -1;
  margin-bottom: 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.18;
}
.gbo-downloads--wide-title .downloads-left { padding-top: 0; }
.gbo-downloads--wide-title .downloads-right { align-self: start; justify-content: flex-start; padding-top: 0; }
.gbo-downloads--wide-title .gbo-downloads__features li { text-wrap: pretty; }
.gbo-downloads--wide-title .downloads-img.gbo-downloads__img { max-width: 610px; }
@media (max-width: 767px) {
  .gbo-downloads--wide-title .downloads-block { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gbo-downloads--wide-title .downloads-left { order: 0; padding-bottom: 0; text-align: left; }
  .gbo-downloads--wide-title .downloads-right { order: 0; justify-content: center; padding: 0 0 28px; }
}

/* Ширина текста по отмеченному пункту в каждой локали. */
.gbo-downloads--wide-title:lang(fr) { --gbo-reference-width: 632px; }
.gbo-downloads--wide-title:lang(it) { --gbo-reference-width: 604px; }
.gbo-downloads--wide-title:lang(nl) { --gbo-reference-width: 638px; }
.gbo-downloads--wide-title:lang(pl) { --gbo-reference-width: 628px; }
@media (min-width: 1150px) {
  .gbo-downloads--wide-title:is(:lang(fr), :lang(it), :lang(nl), :lang(pl)) .downloads-block {
    grid-template-columns: var(--gbo-reference-width) minmax(0, 1fr);
  }
  .gbo-downloads--wide-title:is(:lang(fr), :lang(it), :lang(nl), :lang(pl)) .downloads-right {
    /* Сдвигаем колонку на разницу ширин, сохраняя размер скриншота. */
    margin-inline-end: calc(660px - var(--gbo-reference-width) - var(--gbo-image-breakout));
  }
}

/* ---------- Окно онлайн-планировщика (#build-popup) ---------- */
.mfp-wrap.gbo-mfp-planner .mfp-content {
  max-width: 943px;
  border: 0;
}
.mfp-wrap.gbo-mfp-planner .mfp-close { top: 8px; right: 8px; }
.gbo-planner-popup {
  --gbo-popup-columns: minmax(0, 1fr) repeat(2, min(26%, 225px));
  position: relative;
  margin: 20px auto;
  padding: 48px clamp(16px, 4vw, 40px) 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 36px rgba(0, 21, 36, 0.15);
}
.gbo-planner-popup :is(.popup__row, .popup__content li) {
  display: grid;
  grid-template-columns: var(--gbo-popup-columns);
}
.gbo-planner-popup .popup__title {
  padding: 10px 4px;
  font-size: clamp(13px, 2.1vw, 19px);
  font-weight: 700;
  text-align: center;
}
.gbo-planner-popup .popup__title.b-green {
  border: 2px solid #0BB74F;
  border-radius: 8px;
}
.gbo-planner-popup .popup__content ul { margin: 0; padding: 0; list-style: none; }
.gbo-planner-popup .popup__content li {
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #E9E9E9;
  font-size: 14px;
  line-height: 20px;
}
.gbo-planner-popup .popup__content li > span:not(:first-child) { justify-self: center; }
.gbo-planner-popup .popup__btns {
  display: grid;
  grid-template-columns: var(--gbo-popup-columns);
  padding-top: 20px;
}
.gbo-planner-popup .popup__btn:first-child { grid-column: 2; }
.gbo-planner-popup .popup__btn { padding-inline: 4px; text-align: center; }
.gbo-planner-popup .popup__btn a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px;
  border: 1px solid #A8A8A8;
  border-radius: 24px;
  color: var(--gbo-text);
  font-size: 13px;
  font-weight: 700;
}
.gbo-planner-popup .popup__btn.btn-green a {
  border-color: var(--gbo-green);
  background: var(--gbo-green);
  color: #fff;
}
.gbo-planner-popup .popup__btn a:hover {
  border-color: #4D8022;
  background: #4D8022;
  color: #fff;
}
.gbo-planner-popup .popup__btn svg { flex-shrink: 0; }
.gbo-planner-popup .popup__btn > span { font-size: 11px; }
@media (max-width: 560px) {
  .gbo-planner-popup { --gbo-popup-columns: minmax(0, 1fr) repeat(2, 27%); }
  .gbo-planner-popup .popup__content li { font-size: 13px; }
  .gbo-planner-popup .popup__btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gbo-planner-popup .popup__btn:first-child { grid-column: auto; }
  .gbo-planner-popup .popup__btn a { gap: 5px; padding-inline: 5px; font-size: 12px; }
}
