/* ============================================================
   Landing «Операция катаракты» (single-service-lechenie-katarakty.php)
   ============================================================ */

.lpc {
  --lpc-accent: #3da1af;
  --lpc-accent-dark: #2f8996;
  --lpc-text: #515151;
  --lpc-tint: #f4fafb;
  --lpc-line: rgba(81, 81, 81, 0.16);
  color: var(--lpc-text);
}

.lpc [hidden] {
  display: none !important;
}

/* ---------- Shared ---------- */
.lpc-section {
  padding-block: 50px;
  scroll-margin-top: 90px;
}

.lpc-section--tint {
  background: var(--lpc-tint);
}

.lpc-section--dark {
  background: #1f2d30;
  color: #fff;
}

.lpc-title {
  margin: 0 0 24px;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--lpc-text);
}

.lpc-section--dark .lpc-title {
  color: #fff;
}

.lpc-eyebrow {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--lpc-accent);
}

.lpc-text {
  margin: 0 0 16px;
  font-size: 17px;
  line-height: 1.6;
}

.lpc-text--lead {
  max-width: 720px;
  margin-bottom: 28px;
}

.lpc-text--strong {
  font-weight: 700;
}

.lpc-note {
  margin: 0 0 24px;
  border-left: 3px solid var(--lpc-accent);
  background: var(--lpc-tint);
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.lpc-section--tint .lpc-note {
  background: #fff;
}

.lpc-note--wide {
  margin: 28px 0 0;
}

.lpc-btn {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  padding: 14px 26px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.lpc-btn svg {
  flex-shrink: 0;
}

.lpc-btn--primary {
  background: var(--lpc-accent);
  color: #fff;
}

.lpc-btn--primary:hover {
  background: var(--lpc-accent-dark);
  color: #fff;
}

.lpc-btn--outline {
  border-color: var(--lpc-text);
  background: transparent;
  color: var(--lpc-text);
}

.lpc-btn--outline:hover {
  border-color: var(--lpc-accent);
  color: var(--lpc-accent);
}

.lpc-btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
}

.lpc-btn--ghost:hover {
  background: #fff;
  color: var(--lpc-text);
}

.lpc-link {
  display: inline-block;
  border-bottom: 1px solid currentColor;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  color: var(--lpc-accent);
}

.lpc-link:hover {
  color: var(--lpc-accent-dark);
}

.lpc-link--light,
.lpc-link--light:hover {
  color: #7fd6e2;
}

.lpc-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}

.lpc-split {
  display: grid;
  gap: 8px;
}

/* ---------- 1. Hero ---------- */
.lpc-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #1f2d30;
  color: #fff;
}

.lpc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.lpc-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lpc-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 26, 29, 0.84) 0%, rgba(15, 26, 29, 0.72) 100%);
}

.lpc-hero__inner {
  display: flex;
  padding-top: 104px;
  padding-bottom: 32px;
}

.lpc-hero__copy {
  width: 100%;
}

.lpc-hero__title {
  margin: 0 0 12px;
  font-size: clamp(27px, 7.4vw, 56px);
  font-weight: 600;
  line-height: 1.08;
  text-transform: uppercase;
  text-wrap: balance;
  color: #fff;
}

.lpc-hero__lead {
  margin: 0 0 16px;
  max-width: 600px;
  font-size: 16px;
  line-height: 1.5;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.92);
}

.lpc-hero__price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 18px;
  border-left: 3px solid var(--lpc-accent);
  padding-left: 14px;
}

.lpc-hero__price-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.lpc-hero__price-value {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15;
}

.lpc-hero__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.lpc-hero__actions .lpc-btn--primary {
  grid-column: 1 / -1;
}

.lpc-hero__actions .lpc-btn--ghost {
  min-height: 48px;
  padding-inline: 10px;
  font-size: 12px;
}

.lpc-hero__trust {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}

.lpc-hero__trust li {
  position: relative;
  padding-left: 18px;
  text-wrap: balance;
}

.lpc-hero__trust li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  background: var(--lpc-accent);
}

.lpc-hero__surgeon {
  display: none;
}

/* ---------- 2. Symptoms ---------- */
.lpc-checklist {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.lpc-checklist li {
  position: relative;
  padding-left: 34px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}

.lpc-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  background: var(--lpc-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='5 12 10 17 19 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ---------- 3. Steps ---------- */
.lpc-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lpc-step {
  position: relative;
  background: #fff;
  padding: 22px 20px 22px 74px;
}

.lpc-step__num {
  position: absolute;
  left: 20px;
  top: 22px;
  display: flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--lpc-accent);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.lpc-step__title {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.lpc-step__time {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: var(--lpc-accent);
}

.lpc-step__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* ---------- 4. Prices ---------- */
.lpc-prices {
  border-top: 1px solid var(--lpc-line);
}

.lpc-prices__head {
  display: none;
}

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

.lpc-prices__name {
  display: block;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.lpc-prices__brands {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  color: rgba(81, 81, 81, 0.7);
}

.lpc-prices__benefit {
  font-size: 15px;
  line-height: 1.45;
}

.lpc-prices__price {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--lpc-accent-dark);
}

.lpc-prices__sum {
  white-space: nowrap;
}

.lpc-prices__included {
  margin: 16px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.lpc-extras {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.lpc-promo {
  position: relative;
  display: grid;
  gap: 10px;
  border: 2px solid var(--lpc-accent);
  background: var(--lpc-tint);
  padding: 22px 20px 20px;
}

.lpc-promo__badge {
  justify-self: start;
  background: var(--lpc-accent);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.lpc-promo__title {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.lpc-promo__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
}

.lpc-promo__price {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--lpc-accent-dark);
}

.lpc-extras__list {
  border: 1px solid var(--lpc-line);
  padding: 20px;
}

.lpc-extras__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(81, 81, 81, 0.7);
}

.lpc-extras__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding: 10px 0;
  font-size: 16px;
  line-height: 1.4;
}

.lpc-extras__row + .lpc-extras__row {
  border-top: 1px dashed var(--lpc-line);
}

.lpc-extras__price {
  font-weight: 700;
  white-space: nowrap;
}

.lpc-full-price {
  margin-top: 20px;
  border-top: 1px solid var(--lpc-line);
}

.lpc-full-price > section {
  padding-bottom: 0 !important;
}

/* ---------- 5. Equipment ---------- */
.lpc-media {
  display: grid;
  gap: 24px;
}

.lpc-media__photo {
  margin: 0;
}

.lpc-media__photo img,
.lpc-surgeon__photo {
  border-radius: 14px;
}

.lpc-media__photo img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---------- 6. Surgeon ---------- */
.lpc-surgeon {
  display: grid;
  gap: 24px;
}

.lpc-surgeon__photo {
  margin: 0;
  max-width: 400px;
  overflow: hidden;
  background: #e3f3f6;
  aspect-ratio: 4 / 4.4;
}

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

.lpc-title--name {
  margin-bottom: 8px;
  font-size: clamp(26px, 3.2vw, 40px);
}

.lpc-surgeon__role {
  margin: 0 0 20px;
  font-size: 17px;
  font-weight: 600;
  color: rgba(81, 81, 81, 0.75);
}

.lpc-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lpc-facts li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.lpc-facts__value {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(22px, 5.6vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--lpc-accent);
}

.lpc-section--dark .lpc-facts__value {
  color: #7fd6e2;
}

.lpc-facts__label {
  font-size: 15px;
  line-height: 1.4;
}

.lpc-facts--inline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.lpc-facts--inline .lpc-facts__value {
  font-size: clamp(18px, 4.8vw, 30px);
  overflow-wrap: anywhere;
}

.lpc-facts--inline .lpc-facts__label {
  font-size: 14px;
}

/* ---------- 8. Reviews ---------- */
.lpc-reviews {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.lpc-review {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--lpc-line);
  padding: 22px 20px;
}

.lpc-stars {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: 3px;
  color: #f5b301;
}

.lpc-review__text {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.55;
}

.lpc-review__author {
  margin: auto 0 2px;
  font-size: 16px;
  font-weight: 700;
}

.lpc-review__source {
  margin: 0;
  font-size: 13px;
  color: rgba(81, 81, 81, 0.65);
}

/* ---------- 9. Visitors ---------- */
.lpc-split__head .lpc-btn {
  margin: 4px 0 28px;
}

.lpc-days {
  display: grid;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: lpc-day;
}

.lpc-days li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--lpc-line);
  padding: 12px 0 12px 44px;
  counter-increment: lpc-day;
}

.lpc-days li::before {
  content: counter(lpc-day);
  position: absolute;
  left: 0;
  top: 12px;
  display: flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  background: var(--lpc-accent);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.lpc-days__day {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lpc-accent-dark);
}

.lpc-days__text {
  font-size: 16px;
  line-height: 1.4;
}

/* ---------- 10. FAQ ---------- */
.lpc-faq {
  padding-block: 50px;
}

/* ---------- 11. Form ---------- */
.lpc-form-section {
  background: var(--lpc-tint);
}

.lpc-form {
  display: grid;
  gap: 28px;
}

.lpc-form__copy {
  display: contents;
}

.lpc-form__copy > .lpc-title,
.lpc-form__copy > .lpc-text {
  margin-bottom: 0;
}

.lpc-form__shell {
  background: #fff;
  padding: 24px 20px;
}

.lpc-form__shell .saif-appointment-grid {
  gap: 14px;
}

.lpc-form__shell .saif-appointment-field {
  background: #fff;
  border-color: rgba(81, 81, 81, 0.3);
}

.lpc-form__shell .saif-appointment-actions {
  margin-top: 16px;
}

.lpc-form__shell .lpc-btn {
  width: 100%;
}

.lpc-form__shell .wpcf7-spinner {
  position: absolute;
}

.lpc-form__consent {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: rgba(81, 81, 81, 0.7);
}

.lpc-form__consent a {
  color: var(--lpc-accent);
  text-decoration: underline;
}

.lpc-form__shell .wpcf7-response-output {
  margin-top: 14px;
}

.lpc-form__contacts {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  order: 3;
}

.lpc-form__or {
  margin: 0 0 4px;
  font-size: 16px;
}

.lpc-form__phone {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  color: var(--lpc-text);
}

.lpc-form__phone:hover {
  color: var(--lpc-accent);
}

.lpc-form__hours {
  margin: 4px 0 18px;
  font-size: 15px;
  color: rgba(81, 81, 81, 0.75);
}

/* ---------- Mobile contact bar ---------- */
.lpc-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9990;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.14);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.lpc-bar__btn {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  color: #fff;
}

.lpc-bar__btn--call {
  background: var(--lpc-accent, #3da1af);
}

.lpc-bar__btn--tg {
  background: #229ed9;
}

.lpc-bar__btn:hover {
  color: #fff;
  filter: brightness(0.94);
}

@media (max-width: 1023px) {
  /* The labelled bar replaces the floating contact button on phones. */
  body.single-service #saif-contact-widget {
    display: none !important;
  }

  body.single-service {
    padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
  }
}

@media print {
  .lpc-bar {
    display: none;
  }
}

/* ---------- ≥ 640px ---------- */
@media (min-width: 640px) {
  .lpc-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .lpc-hero__actions {
    display: flex;
    flex-wrap: wrap;
  }

  .lpc-hero__actions .lpc-btn--ghost {
    min-height: 54px;
    padding-inline: 22px;
    font-size: 14px;
  }

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

  .lpc-form__shell {
    padding: 36px;
  }
}

/* ---------- ≥ 768px ---------- */
@media (min-width: 768px) {
  .lpc-section,
  .lpc-faq {
    padding-block: 75px;
  }

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

  .lpc-step {
    padding: 84px 26px 28px;
  }

  .lpc-step__num {
    left: 26px;
    top: 26px;
  }

  .lpc-prices__head,
  .lpc-prices__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
  }

  .lpc-prices__head {
    padding: 14px 0;
    border-bottom: 1px solid var(--lpc-line);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(81, 81, 81, 0.7);
  }

  .lpc-prices__head > :last-child,
  .lpc-prices__price {
    width: 250px;
    text-align: right;
  }

  .lpc-prices__price {
    font-size: 17px;
  }

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

  .lpc-prices__benefit {
    font-size: 16px;
  }

  .lpc-extras {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .lpc-surgeon {
    grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
  }

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

/* ---------- ≥ 1024px ---------- */
@media (min-width: 1024px) {
  .lpc-bar {
    display: none;
  }

  .lpc-text {
    font-size: 18px;
  }

  .lpc-split {
    grid-template-columns: minmax(0, 34%) minmax(0, 1fr);
    gap: 0;
  }

  .lpc-split__head {
    padding-right: 48px;
  }

  .lpc-hero__inner {
    min-height: 680px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-top: 190px;
    padding-bottom: 0;
  }

  .lpc-hero__copy {
    max-width: 800px;
    padding-bottom: 64px;
  }

  .lpc-hero__title {
    margin-bottom: 18px;
  }

  .lpc-hero__lead {
    margin-bottom: 24px;
    font-size: 20px;
  }

  .lpc-prices__head > :last-child,
  .lpc-prices__price {
    width: 300px;
  }

  .lpc-prices__price {
    font-size: 19px;
  }

  .lpc-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

  .lpc-facts--inline {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 40px;
  }

  .lpc-hero__price {
    margin-bottom: 28px;
  }

  .lpc-hero__price-label {
    font-size: 16px;
  }

  .lpc-hero__price-value {
    font-size: 36px;
  }

  .lpc-hero__trust {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 32px;
    font-size: 15px;
  }

  .lpc-media {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
  }

  .lpc-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
    gap: 60px;
    align-items: start;
  }

  .lpc-form__copy {
    display: block;
  }

  .lpc-form__copy > .lpc-title {
    margin-bottom: 24px;
  }

  .lpc-form__copy > .lpc-text {
    margin-bottom: 28px;
  }
}

/* ---------- ≥ 1280px ---------- */
@media (min-width: 1280px) {
  .lpc-hero__actions {
    flex-wrap: nowrap;
  }

  .lpc-hero__actions .lpc-btn {
    white-space: nowrap;
  }

  .lpc-hero__surgeon {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: min(400px, 30vw);
    margin: 0;
    align-self: flex-end;
  }

  .lpc-hero__surgeon img {
    display: block;
    width: 100%;
    height: auto;
  }

  .lpc-hero__surgeon figcaption {
    position: absolute;
    left: -24px;
    bottom: 40px;
    display: flex;
    max-width: 280px;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    padding: 14px 18px;
    font-size: 14px;
    line-height: 1.35;
    color: var(--lpc-text);
  }

  .lpc-hero__surgeon-name {
    font-size: 16px;
    font-weight: 700;
  }
}
