/* ===== HERO — СЕМЕЙНОЕ ПРАВО ===== */

.family-hero {
  margin-top: 100px;
  padding: 160px 0 120px;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
}

.family-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* Картинка справа */
.family-hero__image img {
  width: 440px;
  border-radius: 18px;
  object-fit: cover;
}

/* Контент */
.family-hero__content {
  max-width: 620px;
}

.family-hero__kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8A8F96;
  margin-bottom: 14px;
}

.family-hero__title {
  font-family: var(--font-main);
  font-size: 56px;
  font-weight: 700;
  color: #172833;
  line-height: 1.1;
  margin-bottom: 24px;
}

.family-hero__lead {
  font-size: 18px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 28px;
  max-width: 520px;
}

/* Чипы */
.family-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.family-chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #f5f6f7;
  color: #172833;
  border: 1px solid rgba(0,0,0,0.04);
}

/* Кнопка */
.family-hero__btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  background: #CA578D;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}

.family-hero__btn:hover {
  background: #913661;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(145, 54, 97, 0.22);
}




















/* ===== БЛОК 2 — КАКИЕ ПРОБЛЕМЫ МЫ РЕШАЕМ ===== */

.family-problems {
  padding: 120px 0;
  background: #ffffff;
}

.family-problems__head {
  text-align: left;
  margin-bottom: 50px;
}

.family-problems__kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8A8F96;
  margin-bottom: 12px;
}

.family-problems__title {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 700;
  color: #172833;
}

/* Сетка 3 × 2 */
.family-problems__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Карточка */
.problem-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 32px 28px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.03);
}

.problem-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0,0,0,0.08);
}

/* Иконка-эмодзи */
.problem-card__icon {
  font-size: 42px;
  margin-bottom: 18px;
}

/* Заголовок */
.problem-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #172833;
  margin-bottom: 10px;
}

/* Описание */
.problem-card__desc {
  font-size: 15px;
  color: #555;
  line-height: 1.55;
}












/* ===== БЛОК 3: 8 причин (новый вариант) ===== */

.dtp-reasons {
  padding: 120px 0;
  background: #ffffff;
}

.dtp-reasons__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 40px;
  padding: 56px 52px;
  border-radius: 32px;
  background: #f5f6fb; /* светлая плашка, отличающаяся от фона */
}

/* левая часть */
.dtp-reasons__left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.dtp-reasons__kicker {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #8A8F96;
}

.dtp-reasons__title {
  font-family: var(--font-main);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.3;
  color: #172833;
  max-width: 720px;
}

.dtp-reasons__subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: #4A4F55;
  max-width: 460px;
}

.dtp-reasons__btn {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 999px;
  background: #913661;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
  width: fit-content;
}

.dtp-reasons__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(202, 87, 141, 0.35);
  background: #CA578D;
}

/* правая часть */
.dtp-reasons__right {
  display: flex;
  align-items: stretch;
}

.dtp-reasons__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
  width: 100%;
}

/* одна причина */
.dtp-reason {
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transform: translateY(26px);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(.22,.61,.36,1),
              opacity 0.6s cubic-bezier(.22,.61,.36,1);
}

.dtp-reason.visible {
  transform: translateY(0);
  opacity: 1;
}

.dtp-reason__header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.dtp-reason__index {
  font-family: var(--font-main);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #C0C3D2;
}

.dtp-reason__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8A8F96;
}

/* подсветка для разных типов */
.dtp-reason__label--free {
  color: #1f7a4d;
}

.dtp-reason__label--fast {
  color: #b45b15;
}

.dtp-reason__label--safe {
  color: #334155;
}

.dtp-reason__text {
  font-size: 14px;
  line-height: 1.6;
  color: #2d3238;
}

/* адаптив */
@media (max-width: 1100px) {
  .dtp-reasons__panel {
    grid-template-columns: 1fr;
    padding: 40px 30px;
    gap: 30px;
  }

  .dtp-reasons__title {
    max-width: 100%;
  }

  .dtp-reasons__subtitle {
    max-width: 100%;
  }
}

@media (max-width: 800px) {
  .dtp-reasons {
    padding: 90px 0;
  }

  .dtp-reasons__panel {
    border-radius: 24px;
  }

  .dtp-reasons__grid {
    grid-template-columns: 1fr;
    gap: 18px 0;
  }
}

@media (max-width: 480px) {
  .dtp-reasons__title {
    font-size: 24px;
  }

  .dtp-reason__index {
    font-size: 16px;
  }

  .dtp-reason__text {
    font-size: 13px;
  }
}






















/* ===== ТЁМНЫЙ БЛОК ЛЕСТНИЦЫ ===== */

.dtp-ladder-section.dark {
  position: relative; /* ← вот этого сейчас не хватает */
  padding: 140px 0 0; /* снизу 0 */
  background: #0F161C;
}


.dtp-ladder-head {
  margin-bottom: 60px;
  text-align: left;
}

.dtp-ladder-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6e7680;
  margin-bottom: 10px;
}

.dtp-ladder-title {
  font-family: var(--font-main);
  font-size: 42px;
  font-weight: 700;
  color: #ffffff;
}

/* Горизонтальный скролл */
.dtp-ladder-wrapper {
  overflow-x: auto;
  padding-bottom: 50px; /* нужно, чтобы текст не прилипал */
}

/* Горизонтальная лестница */
.dtp-ladder {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 0;
}

/* ===== СТУПЕНЬКА ===== */
.dtp-ladder-step {
  width: 140px;
  background: #1A232B;
  border-radius: 14px 14px 0 0;
  border: 1px solid rgba(255,255,255,0.06);

  height: 0;
  opacity: 0;
  transform: translateY(50px);

  transition:
    height .9s cubic-bezier(.22,.61,.36,1),
    opacity .5s ease,
    transform .5s ease,
    background .25s ease;
}

.dtp-ladder-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Внутри ступеньки */
.dtp-ladder-inner {
  height: 100%;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
}

/* Верх: номер + стрелка */
.dtp-step-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dtp-step-num {
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 700;
  color: #CA578D;
}

.dtp-step-arrow {
  font-size: 16px;
  color: #8f98a1;
  transition: .3s ease;
}

/* Заголовок шага */
.dtp-step-title {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.3;
}

/* описание скрыто */
.dtp-step-description {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #d6d9dc;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height .45s ease,
    opacity .3s ease;
}

/* hover */
.dtp-ladder-step:hover {
  background: #222c35;
  cursor: pointer;
}

.dtp-ladder-step:hover .dtp-step-description {
  max-height: 260px;
  opacity: 1;
}

.dtp-ladder-step:hover .dtp-step-arrow {
  transform: rotate(180deg);
  color: #CA578D;
}

.dtp-ladder-wrapper {
  overflow-x: auto;
  padding-bottom: 50px; /* изначально 50 */
  transition: padding-bottom .45s ease;
}

.dtp-ladder-wrapper.pb-40 { padding-bottom: 40px; }
.dtp-ladder-wrapper.pb-30 { padding-bottom: 30px; }
.dtp-ladder-wrapper.pb-20 { padding-bottom: 0px; }
.dtp-ladder-wrapper.pb-10 { padding-bottom: 10px; }
.dtp-ladder-wrapper.pb-0  { padding-bottom: 0; }






/* Текстовая зона */
.dtp-ladder-text {
  margin-top: 40px;
  margin-bottom: 50px;
  max-width: 800px;

  /* фиксируем высоту под самый длинный текст */
  min-height: 115px;

  opacity: 1;
  transform: translateY(0);
  transition:
    opacity .35s ease,
    transform .35s ease;
}

.dtp-ladder-text.hidden {
  opacity: 0;
  transform: translateY(6px);
}

/* Заголовок шага */
.dtp-ladder-step-title {
  font-family: var(--font-main);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}


/* Описание шага */
.dtp-ladder-step-desc {
  font-size: 16px;
  line-height: 1.6;
  color: #d8d9db;
  margin-bottom: 10px;
}

/* Линия под текстом — ширина по тексту */
.dtp-ladder-line {
  height: 1px;
  background: rgba(255,255,255,0.10);
  width: fit-content;
  margin-top: 4px;
}

.dtp-step-description {
  display: none !important;
}

.dtp-ladder-chip-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dtp-ladder-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 32px;
  padding: 0 12px;

  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);

  border-radius: 8px;

  font-family: var(--font-main);
  font-size: 15px;
  font-weight: 700;
  color: #fff;

  transition: background .25s ease, border-color .25s ease;
}















/* Декоративная большая иконка справа */
.ladder-bg-icon {
  position: absolute;
  top: 55%;
  right: -200px; /* ← уводим иконку за пределы экрана */
  transform: translateY(-50%);
  opacity: 0.04;
  pointer-events: none;
  z-index: 1;
}

.ladder-bg-icon img {
  width: 520px;   /* можно увеличить размер */
  height: auto;
  object-fit: contain;
}

/* Чтобы контент был сверху */
.family-ladder-section.dark .container,
.family-ladder-section.dark .family-ladder-head,
.family-ladder-section.dark .family-ladder-wrapper {
  position: relative;
  z-index: 3;
}
























/* ===== ОТЗЫВЫ — 3D КАРУСЕЛЬ (БЕЛАЯ ТЕМА) ===== */

.dtp-reviews {
  padding: 260px 0;
  background: #ffffff; /* белый фон */
  color: #172833;
}

.dtp-reviews-head {
  text-align: left;
  margin-bottom: 50px;
}

.dtp-reviews-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #8A8F96;
  margin-bottom: 10px;
}

.dtp-reviews-title {
  font-family: var(--font-main);
  font-size: 38px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #172833;
}

.dtp-reviews-subtitle {
  font-size: 15px;
  color: #6b727a;
  max-width: 420px;
}

/* Вьюпорт карусели */
.dtp-reviews-viewport {
  position: relative;
  height: 380px;
  margin-top: 10px;
  perspective: 1200px;
}

/* Трек */
.dtp-reviews-track {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Карточка */
.dtp-review-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 290px;
  height: 340px;

  transform-origin: center center;
  transform: translate(-50%, -50%);

  border-radius: 18px;
  background: #ffffff; /* белая карточка */
  border: 1px solid rgba(0,0,0,0.05);

  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);

  overflow: hidden;
  opacity: 0;
  pointer-events: none;

  transition:
    transform .6s cubic-bezier(.22,.61,.36,1),
    opacity .5s ease,
    box-shadow .3s ease;

  cursor: zoom-in;
}

/* Внутри — изображение */
.dtp-review-img-wrap {
  width: 100%;
  height: 100%;
}

.dtp-review-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Чип рейтинга */
.dtp-review-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;

  padding: 4px 10px;
  border-radius: 999px;

  background: rgba(255,255,255,0.75);
  border: 1px solid rgba(0,0,0,0.12);

  font-size: 12px;
  font-weight: 600;

  display: inline-flex;
  align-items: center;
  gap: 4px;

  color: #172833;
}

.dtp-review-rating::before {
  content: "★";
  color: #FFD466;
  font-size: 11px;
}

/* Состояния карточек */
.dtp-review-card.is-center {
  opacity: 1;
  pointer-events: auto;

  transform: translate(-50%, -50%) translateZ(60px) scale(1) rotateY(0deg);

  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.dtp-review-card.is-left {
  opacity: 0.65;
  pointer-events: auto;

  transform: translate(-50%, -50%)
             translateX(-260px)
             translateZ(0)
             scale(0.9)
             rotateY(9deg);

  z-index: 2;
}

.dtp-review-card.is-right {
  opacity: 0.65;
  pointer-events: auto;

  transform: translate(-50%, -50%)
             translateX(260px)
             translateZ(0)
             scale(0.9)
             rotateY(-9deg);

  z-index: 2;
}

.dtp-review-card.is-out {
  opacity: 0;
  pointer-events: none;

  transform: translate(-50%, -50%) translateZ(-200px) scale(0.7);
  z-index: 1;
}

/* Hover центральной карточки */
.dtp-review-card.is-center:hover {
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.15);
  transform: translate(-50%, -50%) translateZ(80px) scale(1.02) rotateY(0deg);
}

/* Стрелки */
.dtp-review-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.9);

  color: #172833;
  font-size: 22px;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  transition:
    background .25s ease,
    border-color .25s ease,
    transform .15s ease;

  z-index: 5;
}

.dtp-review-arrow--prev { left: 0; }
.dtp-review-arrow--next { right: 0; }

.dtp-review-arrow:hover {
  background: #CA578D;
  border-color: #CA578D;
  color: #fff;
  transform: translateY(-50%) scale(1.05);
}

.dtp-review-arrow:active {
  transform: translateY(-50%) scale(0.96);
}

/* ===== МОДАЛКА ===== */

.dtp-review-modal {
  position: fixed;
  inset: 0;

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 100;
}

.dtp-review-modal.is-open {
  display: flex;
}

.dtp-review-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

.dtp-review-modal-dialog {
  position: relative;
  z-index: 101;

  max-width: 900px;
  max-height: 80vh;

  border-radius: 18px;
  overflow: hidden;

  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.8);
  background: #000;
}

.dtp-review-modal-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.dtp-review-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 102;

  width: 32px;
  height: 32px;

  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);

  color: #fff;
  font-size: 20px;

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */

@media (max-width: 768px) {
  .dtp-reviews {
    padding: 100px 0;
  }

  .dtp-reviews-viewport {
    height: 320px;
  }

  .dtp-review-card {
    width: 260px;
    height: 310px;
  }

  .dtp-review-card.is-left,
  .dtp-review-card.is-right {
    transform: translate(-50%, -50%)
               translateX(0)
               translateZ(-80px)
               scale(0.85);
  }

  .dtp-review-arrow--prev { left: 0px; }
  .dtp-review-arrow--next { right: 0px; }
}
















/* ===== CTA (форма в плашке с фоном) ===== */
.cta {
  padding: 140px 0;
}

.cta__panel{
  position: relative;
  border-radius: 32px;
  padding: 80px 80px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  overflow: hidden;
  /* никакого фона здесь */
  background: none;
}



.cta__panel.cta--image {
  position: relative;
  background-image: 
    url('../img/consult-bg.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


.cta__panel.cta--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65); /* просто чёрное мягкое затемнение */
  z-index: 0;
}





.cta__left,
.cta__form {
  position: relative;
  z-index: 1; /* чтобы текст и форма были поверх затемнения */
}

/* Текстовая часть */
.cta__title {
  font-family: "RFDewiExtended", sans-serif;
  font-size: 50px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.cta__desc {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  max-width: 500px;
}

/* Форма */
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 380px;
  margin-left: auto;
}

.cta__form input {
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 16px;
  transition: all 0.3s ease;
}

.cta__form input::placeholder {
  color: rgba(255,255,255,0.7);
}

.cta__form input:focus {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.5);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.2);
}

/* Кнопка */
.cta__btn {
  height: 56px;
  border-radius: 16px;
  border: none;
  background: #fff;
  color: #913661;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.cta__btn:hover {
  background: #f7d3e4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* Подпись */
.cta__legal {
  font-size: 10px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  margin-top: -10px;
  text-align: center;
}

/* адаптив */
@media (max-width: 1024px) {
  .cta__panel {
    grid-template-columns: 1fr;
    padding: 60px 40px;
    text-align: center;
  }

  .cta__form {
    margin: 0 auto;
    width: 100%;
    max-width: 420px;
  }

  .cta__title {
    font-size: 34px;
  }
}












/* Форма */
.cta__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
  margin-left: auto;
}

.cta__form label {
  display: flex;
  flex-direction: column;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  gap: 8px;
}

/* Поля */
.cta__form input {
  height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: #fff; /* ← стало белым */
  color: #172833;
  font-family: "RFDewiExtended", sans-serif;
  font-weight: 400;
  font-size: 16px;
  outline: none;
  transition: all 0.25s ease;
}

/* Наведение */
.cta__form input:hover {
  border-color: rgba(145, 54, 97, 0.4);
  box-shadow: 0 0 6px rgba(145, 54, 97, 0.15);
}

/* Фокус (при нажатии) */
.cta__form input:focus {
  border-color: #913661;
  box-shadow: 0 0 0 3px rgba(145, 54, 97, 0.25);
  background: #fff; /* ← не становится прозрачным */
}

/* Когда пользователь ввёл данные */
.cta__form input:not(:placeholder-shown) {
  border-color: rgba(145, 54, 97, 0.4);
}

/* Плейсхолдер */
.cta__form input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  font-weight: 400;
  transition: opacity 0.25s ease;
}

/* Плейсхолдер не исчезает, просто слегка тускнеет при фокусе */
.cta__form input:focus::placeholder {
  opacity: 0.5;
}

/* Кнопка */
.cta__btn {
  height: 56px;
  border-radius: 16px;
  border: none;
  background: #CA578D;
  color: #fff;
  font-family: "RFDewiExtended", sans-serif; /* ← фирменный шрифт */
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta__btn:hover {
  background: #a94a7a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.cta__btn:active {
  transform: translateY(0);
  background: #7d2c57;
}


















