/**
 * SAIF PROFACE ad landings (implants, braces and aligners).
 * Extends src/landing-cataract.css: ProFace colours plus doctors, before/after and comparison blocks.
 */

.lpc--proface {
  --lpc-accent: #9b5db5;
  --lpc-accent-dark: #7d4598;
  --lpc-tint: #f8f4fa;
}

/* ---------- First screen ---------- */
.lpc--proface .lpc-hero__prices {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 28px;
}

.lpc--proface .lpc-hero__prices .lpc-hero__price {
  margin-bottom: 0;
}

.lpc-hero__consult {
  margin: 10px 0 22px;
  font-size: 15px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Steps: five cards ---------- */
.lpc-steps--five {
  counter-reset: none;
}

/* ---------- Prices: service + price ---------- */

.lpc-prices__text {
  font-size: 16px;
  font-weight: 600;
}

@media (min-width: 768px) {
  .lpc-prices--two .lpc-prices__head,
  .lpc-prices--two .lpc-prices__row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

/* ---------- Braces vs aligners ---------- */
.lpc-compare {
  border-top: 1px solid var(--lpc-line);
}

.lpc-compare__row {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  border-bottom: 1px solid var(--lpc-line);
}

.lpc-compare__row--head {
  display: none;
}

.lpc-compare__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(81, 81, 81, 0.7);
}

.lpc-compare__cell {
  font-size: 16px;
  line-height: 1.45;
}

.lpc-compare__cell::before {
  content: attr(data-label) ": ";
  font-weight: 700;
}

/* ---------- Doctors ---------- */
.lpc-doctors {
  display: grid;
  gap: 20px;
}

.lpc-doctor {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  background: #fff;
}

.lpc-doctor__photo {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #eee;
}

.lpc-doctor__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.lpc-doctor__name {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.lpc-doctor__role {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--lpc-accent-dark);
}

.lpc-doctor__facts {
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  font-size: 15px;
  line-height: 1.45;
}

.lpc-doctor__facts li + li {
  margin-top: 4px;
}

/* ---------- Before / after ---------- */
.lpc-works {
  display: grid;
  gap: 16px;
}

.lpc-work {
  margin: 0;
}

.lpc-work--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.lpc-work__img {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f2f2f2;
}

.lpc-work__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.lpc-work__img:hover img {
  transform: scale(1.03);
}

.lpc-work__tag {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

/* ---------- About ---------- */
.lpc--proface .lpc-section--dark .lpc-facts__value {
  color: #d9b3ea;
}

.lpc-address {
  margin: 28px 0 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .lpc-works {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lpc-work--pair {
    grid-column: 1 / -1;
  }

  .lpc-doctors {
    grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  }

  .lpc-doctor {
    grid-template-columns: 1fr;
    padding: 0 0 20px;
  }

  .lpc-doctor__photo {
    aspect-ratio: 4 / 5;
  }

  .lpc-doctor__body {
    padding: 0 20px;
  }
}

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
  .lpc-steps--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lpc-reviews--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lpc-compare__row,
  .lpc-compare__row--head {
    display: grid;
    grid-template-columns: 200px repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: start;
  }

  .lpc-compare__row--head {
    padding: 14px 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--lpc-accent-dark);
  }

  .lpc-compare__label {
    padding-top: 3px;
  }

  .lpc-compare__cell::before {
    content: none;
  }
}

/* ---------- ≥ 1024px ---------- */
@media (min-width: 1024px) {
  .lpc-steps--five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
  }

  .lpc-steps--five .lpc-step {
    padding: 76px 20px 24px;
  }

  .lpc-steps--five .lpc-step__num {
    left: 20px;
    top: 22px;
  }

  .lpc-works {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }

  .lpc-work--pair {
    grid-column: span 2;
  }
}

/* Phone contact bar sits outside .lpc, so it gets the ProFace colour here */
.lpc-bar--proface .lpc-bar__btn--call {
  background: #9b5db5;
}

/* ---------- Form contacts: gap between phone and Telegram ---------- */
.lpc--proface .lpc-form__phone {
  margin-bottom: 18px;
}

/* ---------- FAQ: title on the same line as the first question ---------- */
@media (min-width: 1024px) {
  .lpc--proface .lpc-faq h2 {
    padding-top: 20px;
  }
}

/* ---------- Doctors: cards in a row share rows (photo / name / role / facts / link) ---------- */
@media (min-width: 640px) {
  .lpc--proface .lpc-doctor {
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }

  .lpc--proface .lpc-doctor__body {
    display: contents;
  }

  .lpc--proface .lpc-doctor__body > * {
    margin-right: 20px;
    margin-left: 20px;
  }

  .lpc--proface .lpc-doctor__name {
    margin-top: 18px;
  }

  .lpc--proface .lpc-doctor__body .lpc-link {
    justify-self: start;
    align-self: end;
  }
}

/* ---------- Doctors: round the whole card, not just the photo ---------- */
.lpc--proface .lpc-doctor {
  border-radius: 14px;
  overflow: hidden;
}

.lpc--proface .lpc-doctor__photo {
  background: transparent;
}

.lpc--proface .lpc-doctor__photo img {
  border-radius: 0 !important;
}

@media (max-width: 639px) {
  .lpc--proface .lpc-doctor__photo {
    border-radius: 10px;
  }
}

/* ---------- Works: equal tiles, no empty cell ---------- */
@media (min-width: 640px) {
  .lpc--proface .lpc-work--pair {
    gap: 16px;
  }
}

@media (min-width: 1024px) {
  .lpc--proface .lpc-works {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
  }

  .lpc--proface .lpc-work--pair {
    gap: 20px;
  }

  /* Steps share rows (title / time / text) so every line starts at the same height */
  .lpc-steps--five .lpc-step {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    row-gap: 0;
    align-content: start;
  }

  /* No time line: the text starts where the time line starts in other cards */
  .lpc-steps--five .lpc-step__title + .lpc-step__text {
    grid-row: 2 / span 2;
  }
}

/* ---------- Works without a pair tile: centre the last row instead of leaving a hole ---------- */
@media (min-width: 640px) {
  .lpc--proface .lpc-works:not(:has(.lpc-work--pair)) {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .lpc--proface .lpc-works:not(:has(.lpc-work--pair)) > .lpc-work {
    width: calc((100% - 16px) / 2);
  }
}

@media (min-width: 1024px) {
  .lpc--proface .lpc-works:not(:has(.lpc-work--pair)) {
    gap: 20px;
  }

  .lpc--proface .lpc-works:not(:has(.lpc-work--pair)) > .lpc-work {
    width: calc((100% - 60px) / 4);
  }
}
