/* EL FIT — component fixes on top of style.css (sliders, "Корисно знати"). */

/* ---------- "Корисно знати": content fills the whole card ---------- */
.help-folder .efit-help {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
}

/* ---------- "До / після" slider ---------- */
.slider { position: relative; }

.slider .results-track {
  scrollbar-width: none;            /* Firefox */
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
}
.slider .results-track::-webkit-scrollbar { display: none; }
.slider .results-track > * { scroll-snap-align: start; }

.slider-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 1px solid #e9be5080;
  border-radius: 50%;
  background: #121a16e6;
  color: #e9be50;
  box-shadow: 0 10px 24px #00000059;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  cursor: pointer;
  transform: translateY(-50%);
  transition: background .2s, color .2s, opacity .2s, transform .2s;
}
.slider-arrow svg { width: 22px; height: 22px; }
.slider-prev { left: -14px; }
.slider-next { right: -14px; }
.slider-next svg { transform: rotate(180deg); }
.slider-arrow:hover:not(:disabled) { background: #e9be50; color: #18211c; transform: translateY(-50%) scale(1.06); }
.slider-arrow:disabled { opacity: 0; pointer-events: none; }
.slider-static .slider-arrow { display: none; }

/* Touch screens: just swipe */
@media (hover: none), (max-width: 720px) {
  .slider-arrow { display: none; }
}

/* ---------- footer ---------- */
.site-footer {
  max-width: none;
  margin: var(--block-gap, 40px) 0 0;
  padding: 0;
  display: block;
  background: #121a16;
  border-top: 1px solid #e9be5026;
  color: #b9b39f;
  font-family: var(--efit-font);
}
.site-footer-inner,
.site-footer-bottom {
  box-sizing: border-box;
  max-width: var(--page-max, 1440px);
  margin: 0 auto;
  padding-left: var(--gutter, 32px);
  padding-right: var(--gutter, 32px);
}
.site-footer-inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 44px;
}
.footer-brand .logo { margin-bottom: 18px; }
.footer-brand p { max-width: 30ch; margin: 0; color: #f3ecd8; font-size: 16px; line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-col h2 {
  margin: 4px 0 6px;
  color: #e9be50;
  font-family: var(--efit-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
/* same look for every footer link (old .external-contact rules add borders/padding) */
.site-footer .footer-col a {
  display: inline-block;
  min-height: 0;
  margin: 0;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #d9d3bf;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: color .2s, border-color .2s;
}
.site-footer .footer-col a:hover { color: #fff; border-bottom-color: #e9be50; }
.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 20px;
  padding-bottom: 24px;
  border-top: 1px solid #ffffff12;
  font-size: 13px;
}
.site-footer-bottom p { margin: 0; }
/* the bottom line sits under the container width, the border spans it */
.site-footer-bottom { border-top: 0; position: relative; }
.site-footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter, 32px);
  right: var(--gutter, 32px);
  border-top: 1px solid #ffffff14;
}

@media (min-width: 721px) {
  /* keep the right-hand text clear of the floating Telegram button */
  .site-footer-bottom { padding-right: calc(var(--gutter, 32px) + 84px); }
  .site-footer-bottom::before { right: var(--gutter, 32px); }
}
@media (max-width: 1000px) {
  .site-footer-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .site-footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; padding-top: 36px; padding-bottom: 28px; }
  .footer-brand p { font-size: 15px; }
  .site-footer-bottom {
    flex-direction: column;
    /* room for the floating Telegram button */
    padding-bottom: calc(24px + 66px + env(safe-area-inset-bottom));
  }
}
