/* ===== 1Демонтаж: общесайтовые фиксы и виджеты (этапы 2–3) ===== */

/* Единая типографика: кастомные блоки (таблица цен, SEO-блок, навигация)
   не задают font-family и наследуют сериф браузера */
body {
  font-family: 'TildaSans', Arial, sans-serif;
}

/* Отзывы (скриншоты Авито в карусели t670): не обрезать широкие картинки */
.t670 .t-slds__bgimg {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

/* ===== Калькулятор стоимости ===== */
#calc-1d {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 28px 24px;
  background: #1B3A5C;
  border-radius: 16px;
  color: #fff;
  font-family: 'TildaSans', Arial, sans-serif;
}
#calc-1d h3 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 700;
  text-align: center;
}
.c1d-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.c1d-row select,
.c1d-row input {
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  color: #1B3A5C;
  background: #fff;
  outline: none;
}
.c1d-row select { flex: 2 1 260px; min-width: 220px; }
.c1d-row input  { flex: 1 1 140px; min-width: 120px; }
.c1d-result {
  text-align: center;
  margin: 20px 0 6px;
  font-size: 18px;
}
.c1d-result b {
  font-size: 30px;
  color: #FFC53D;
  display: block;
  margin-top: 4px;
}
.c1d-result small {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  opacity: .75;
}
.c1d-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px;
}
.c1d-form input {
  flex: 1 1 200px;
  min-width: 180px;
  max-width: 280px;
  padding: 13px 14px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
}
.c1d-form button {
  flex: 1 1 220px;
  max-width: 300px;
  padding: 13px 20px;
  border: none;
  border-radius: 10px;
  background: #ff4719;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s;
}
.c1d-form button:hover { background: #e63c10; }
.c1d-err { border: 2px solid #ff4719 !important; }
.c1d-ok {
  text-align: center;
  font-size: 20px;
  font-weight: 600;
  color: #7CE8B5;
  padding: 18px 0 6px;
}
#price-list tbody tr { cursor: pointer; }
@media (max-width: 600px) {
  #calc-1d { margin-left: 12px; margin-right: 12px; padding: 22px 14px; }
  #calc-1d h3 { font-size: 21px; }
  .c1d-result b { font-size: 26px; }
}

/* ===== Слайдер до/после: широкая пара, ползунок двигает границу ===== */
.pf-item:has(.ba2) {
  flex: 0 0 auto !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.ba2 {
  position: relative;
  display: flex;
  width: min(720px, 88vw);
  height: 470px;
  border-radius: 18px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: 0 14px 44px rgba(13, 31, 51, .18);
  background: #0b1522;
}
.ba2-pane {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.ba2-before { flex: none; width: 50%; }
.ba2-after { flex: 1; }
.ba2 .ba2-pane img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  pointer-events: none;
}
.ba2-bar {
  position: absolute;
  top: 0; bottom: 0;
  width: 4px;
  margin-left: -2px;
  background: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, .5);
  z-index: 2;
}
.ba2-grip {
  position: absolute;
  top: 50%; left: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .4);
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  cursor: ew-resize;
  transition: transform .2s;
}
.ba2:hover .ba2-grip { transform: scale(1.08); }
.ba2-grip svg { width: 26px; height: 26px; fill: #1B3A5C; }
.ba2-tag {
  position: absolute;
  top: 14px;
  padding: 6px 14px;
  border-radius: 9px;
  font: 800 14px/1 'TildaSans', Arial, sans-serif;
  letter-spacing: .06em;
  z-index: 2;
  pointer-events: none;
}
.ba2-tag-l { left: 14px; background: #ffce29; color: #14181d; }
.ba2-tag-r { right: 14px; background: rgba(11, 21, 34, .78); color: #fff; border: 1px solid rgba(255,255,255,.25); }
@media (max-width: 768px) {
  .ba2 { height: 340px; }
  .ba2-bar { display: none; }
}
