﻿.sec-head {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}
.sec-head.center {
  align-items: center;
  text-align: center;
}
.sec-head h1,
.sec-head h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.sec-sub {
  color: var(--color-muted);
  max-width: 570px;
  font-size: 1.08rem;
}
.center .gold-rule {
  margin-inline: auto;
}
.ba {
  position: relative;
  direction: ltr;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  --pos: 50%;
  user-select: none;
}
.ba-layer {
  position: absolute;
  inset: 0;
}
.ba-layer picture,
.ba-layer img {
  width: 100%;
  height: 100%;
}
.ba-layer img {
  object-fit: cover;
  object-position: center;
}
.ba-top {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.ba-tag {
  position: absolute;
  top: 12px;
  z-index: 3;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}
.ba-tag-start {
  left: 12px;
  background: #18201bb3;
}
.ba-tag-end {
  right: 12px;
  background: var(--color-primary);
}
.ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  background: #fff;
  transform: translate(-50%);
  z-index: 4;
  pointer-events: none;
  box-shadow: 0 0 0 1px #18201b1f;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow);
}
.ba-knob:before,
.ba-knob:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-block: 5px solid transparent;
}
.ba-knob:before {
  left: 8px;
  border-right: 7px solid var(--color-primary);
  transform: translateY(-50%);
}
.ba-knob:after {
  right: 8px;
  border-left: 7px solid var(--color-primary);
  transform: translateY(-50%);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 5;
}
