/* ===== DO-POSLE PAGE ===== */

.do-posle-page {
  overflow-x: hidden;
}

.ba-hero {
  padding: 64px 0 40px;
  text-align: center;
}

.ba-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.ba-hero__title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 500;
  line-height: 1.12;
  color: var(--text);
  margin: 0;
}

.ba-hero__subtitle {
  margin: 16px auto 0;
  max-width: 560px;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ba-hero__intro {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.ba-guide {
  padding: 0 0 40px;
}

.ba-guide__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(43, 38, 35, 0.08);
  border-radius: 12px;
}

.ba-guide__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1.25;
}

.ba-guide__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ba-guide__item {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ba-guide__item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.ba-cta {
  padding: 72px 0 100px;
}

.ba-cta__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 40px;
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(43, 38, 35, 0.08);
  border-radius: 12px;
}

.ba-cta__title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 16px;
  line-height: 1.2;
}

.ba-cta__text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 28px;
}

.ba-cta__btn {
  min-width: 220px;
}

.ba-showcase-section {
  padding: 0 0 72px;
}

.ba-showcase-section__header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.ba-showcase-section__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.ba-showcase-section__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
}

.ba-showcase-section__subtitle {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.6;
}

.ba-showcase-section__hint {
  margin: 16px auto 0;
  max-width: 520px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Showcase — vertical stack */
.ba-showcase {
  max-width: 730px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 100px;
}

.ba-showcase__item {
  width: 100%;
}

.ba-showcase__header {
  text-align: center;
  margin-bottom: 28px;
}

.ba-compare {
  user-select: none;
  touch-action: none;
}

.ba-compare__inner {
  position: relative;
  width: 100%;
  height: min(78vh, 900px);
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid rgba(43, 38, 35, 0.1);
  box-shadow:
    inset 0 0 0 1px rgba(78, 43, 52, 0.07),
    0 20px 56px rgba(43, 38, 35, 0.08);
  --ba-project-pct: 50;
}

.ba-compare__layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.ba-compare__layer--real {
  z-index: 1;
}

.ba-compare__layer--project {
  z-index: 2;
  clip-path: inset(0 calc((100 - var(--ba-project-pct)) * 1%) 0 0);
}

.ba-compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.ba-compare__placeholder {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: linear-gradient(135deg, var(--secondary) 0%, rgba(255, 255, 255, 0.6) 50%, var(--bg) 100%);
  z-index: 1;
}

.ba-compare__layer.is-placeholder .ba-compare__img {
  opacity: 0;
}

.ba-compare__layer.is-placeholder .ba-compare__placeholder {
  display: flex;
}

.ba-label-left,
.ba-label-right {
  position: absolute;
  top: 20px;
  z-index: 4;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  pointer-events: none;
  max-width: calc(50% - 28px);
  line-height: 1.3;
}

.ba-label-left {
  left: 20px;
}

.ba-label-right {
  right: 20px;
}

.ba-watermark {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(43, 38, 35, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 8px 16px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.ba-compare__expand {
  position: absolute;
  left: 20px;
  bottom: 20px;
  z-index: 6;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(43, 38, 35, 0.1);
  transition: background 0.2s, transform 0.2s;
}

.ba-compare__expand:hover {
  background: var(--white);
  transform: scale(1.05);
}

.ba-compare__expand svg {
  width: 16px;
  height: 16px;
}

.ba-compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--ba-project-pct) * 1%);
  transform: translateX(-50%);
  z-index: 5;
  width: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: ew-resize;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ba-compare__handle-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: var(--white);
  box-shadow: 0 0 12px rgba(43, 38, 35, 0.25);
}

.ba-compare__handle-grip {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(43, 38, 35, 0.12);
  box-shadow: 0 4px 16px rgba(43, 38, 35, 0.12);
  position: relative;
  z-index: 1;
}

.ba-compare__handle-grip::before,
.ba-compare__handle-grip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 5px solid transparent;
  margin-top: -5px;
}

.ba-compare__handle-grip::before {
  left: 8px;
  border-right-color: var(--accent);
}

.ba-compare__handle-grip::after {
  right: 8px;
  border-left-color: var(--accent);
}

.ba-compare.is-dragging .ba-compare__handle {
  cursor: grabbing;
}

.ba-showcase__title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
  margin: 0;
}

.ba-showcase__category {
  margin: 6px 0 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.ba-showcase__meta {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Lightbox */
.ba-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ba-lightbox[hidden] {
  display: none;
}

.ba-lightbox.is-open {
  display: flex;
}

.ba-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(43, 38, 35, 0.72);
  backdrop-filter: blur(4px);
}

.ba-lightbox__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 760px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ba-lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 3;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(43, 38, 35, 0.18);
  transition: transform 0.2s;
}

.ba-lightbox__close:hover {
  transform: scale(1.05);
}

.ba-lightbox__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  color: var(--white);
  margin: 0 0 16px;
  text-align: center;
}

.ba-lightbox__body {
  width: 100%;
}

.ba-lightbox__body .ba-compare__inner {
  height: min(78vh, 900px);
}

.ba-lightbox__body .ba-compare__expand {
  display: none;
}

.ba-lightbox__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(43, 38, 35, 0.12);
  transition: background 0.2s;
}

.ba-lightbox__arrow:hover {
  background: var(--white);
}

.ba-lightbox__arrow:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.ba-lightbox__arrow svg {
  width: 18px;
  height: 18px;
}

.ba-lightbox__arrow--prev {
  left: -56px;
}

.ba-lightbox__arrow--next {
  right: -56px;
}

.ba-lightbox__dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.ba-lightbox__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.ba-lightbox__dot.is-active {
  background: var(--white);
  transform: scale(1.25);
}

body.ba-lightbox-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  .ba-lightbox__arrow--prev {
    left: 8px;
  }

  .ba-lightbox__arrow--next {
    right: 8px;
  }
}

@media (max-width: 768px) {
  .ba-showcase-section {
    padding: 32px 0 64px;
  }

  .ba-hero {
    padding: 48px 0 32px;
    text-align: left;
  }

  .ba-guide__inner {
    padding: 24px 20px;
  }

  .ba-cta {
    padding: 56px 0 80px;
  }

  .ba-cta__inner {
    padding: 36px 24px;
    text-align: left;
  }

  .ba-compare__inner,
  .ba-lightbox__body .ba-compare__inner {
    height: min(72vh, 760px);
    min-height: 360px;
  }

  .ba-label-left,
  .ba-label-right {
    top: 14px;
    font-size: 9px;
    letter-spacing: 0.1em;
    padding: 6px 10px;
    max-width: calc(50% - 20px);
  }

  .ba-label-left {
    left: 14px;
  }

  .ba-label-right {
    right: 14px;
  }

  .ba-watermark {
    right: 12px;
    bottom: 12px;
    font-size: 18px;
    padding: 6px 12px;
  }

  .ba-compare__expand {
    left: 14px;
    bottom: 14px;
    width: 32px;
    height: 32px;
  }

  .ba-showcase {
    gap: 80px;
  }

  .ba-showcase__header {
    margin-bottom: 20px;
    text-align: left;
  }

  .ba-showcase__title {
    font-size: 20px;
  }

  .ba-showcase__meta {
    font-size: 13px;
  }

  .ba-lightbox {
    padding: 16px;
  }

  .ba-lightbox__close {
    top: 8px;
    right: 8px;
  }
}
