/* =====================================================================
   Шаблон страницы услуги — стили поверх style.css
   Figma: MEDO-Clinic / Услуга шаблон (1440px)
   ===================================================================== */

/* ---------- Hero ---------- */
.thero { position: relative; height: 579px; margin: 0 20px; color: var(--dark); }
.thero__bg { position: absolute; inset: 0; }
.thero__bg img { width: 1400px; height: 579px; }
.thero__bg { overflow: hidden; border-radius: 28px; }
.thero__bg .thero__art { position: absolute; left: 850px; top: 36px; width: 480px; height: 543px; object-fit: contain; object-position: center bottom; }
.thero__bg .thero__art--tall { left: 830px; top: 14px; width: 520px; height: 660px; object-position: center top; }
.thero__bg .thero__slot { position: absolute; left: 850px; top: 36px; width: 480px; height: 420px; } /* зарезервировано под изображение услуги */
.crumbs {
  position: absolute;
  left: 933px;
  top: 0;
  display: flex;
  gap: 10px;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: rgba(12, 14, 17, .37);
  white-space: nowrap;
}
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--dark); }
.crumbs span { color: #a5a6a7; }
.crumbs a + span + a { color: #a5a6a7; }
.crumbs i, .crumbs b { color: var(--red); font-style: normal; font-weight: 400; }
.thero__head { position: absolute; left: 44px; top: 43px; width: 816px; }
.thero__title {
  position: static;
  width: 816px;
  font-size: 74px;
  font-weight: 400;
  line-height: .95;
  letter-spacing: -0.03em;
}
.thero__title b { color: var(--red); font-weight: 600; }
.thero__text { position: static; margin-top: 43px; width: 499px; font-size: 24px; line-height: 1.1; letter-spacing: -0.02em; }
.thero__price { position: absolute; left: 44px; top: 475px; font-size: 32px; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.thero__pdf { position: absolute; left: 44px; top: 523px; display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; color: #949494; transition: color .2s; }
.thero__pdf img { width: 13px; height: 8px; transform: rotate(-90deg); }
.thero__pdf:hover { color: var(--dark); }
.thero__btn { position: absolute; right: 44px; top: 480px; width: 412px; }

/* ---------- Когда требуется сервисный перезапуск ---------- */
.symp { position: relative; min-height: 425px; margin: 82px 20px 0; }
.symp__title { width: 528px; font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; }
.symp__intro { width: 374px; margin-top: 54px; font-size: 16px; line-height: 1.1; letter-spacing: -0.02em; }
.symp__intro p + p { margin-top: 18px; }
.symp__intro b { font-weight: 500; }
.symp__list { position: absolute; left: 711px; top: 15px; width: 690px; }
.symp__item { position: relative; padding: 18px 0 20px; border-top: 1px solid rgba(12, 14, 17, .08); }
.symp__item:first-child { padding-top: 0; border-top: 0; }
.symp__item button {
  position: relative;
  display: block;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--dark);
  text-align: left;
  transition: color .25s;
}
.symp__item button:hover { color: var(--red); }
.symp__tabs { position: absolute; left: -76px; top: 6px; width: 60px; height: 17px; opacity: 0; transition: opacity .25s, transform .25s; transform: translateX(-8px); }
.symp__item p {
  display: none;
  width: 100%;
  max-width: 560px;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(12, 14, 17, .7);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.symp__item.is-active button { color: var(--red); font-weight: 600; }
.symp__item.is-active .symp__tabs { opacity: 1; transform: none; }
.symp__item.is-active p { display: block; opacity: 1; transform: none; }

/* ---------- Детализация продукта ---------- */
.detail {
  position: relative;
  min-height: 672px;
  margin: 0 20px;
  padding: 192px 44px 40px; /* высота по содержимому: шагов может быть больше четырёх */
  border-radius: 28px;
  overflow: hidden;
  background: var(--dark);
}
.detail__bg { position: absolute; inset: 0; }
.detail__bg img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { position: absolute; left: 44px; right: 44px; top: 79px; text-align: left; font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; color: var(--white); }
.detail__list { position: relative; z-index: 1; width: auto; }
.dstep { margin-bottom: 12px; border-radius: 20px; background: var(--gray-2); color: var(--ink); }
.dstep:last-child { margin-bottom: 0; }
.dstep summary {
  position: relative;
  display: flex;
  align-items: baseline;
  padding: 42px 100px 42px 38px;
  font-size: 29px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
}
.dstep summary::-webkit-details-marker { display: none; }
.dstep__num { width: 116px; flex: none; font-weight: 500; color: var(--red); }
.dstep__name { font-weight: 400; }
.dstep summary::after {
  content: "";
  position: absolute;
  right: 51px;
  top: 45px;
  width: 25px;
  height: 25px;
  background: url(../img/faq-plus.svg) center / contain no-repeat;
}
.dstep[open] summary::after { background-image: url(../img/faq-minus.svg); }
.dstep__body { width: 995px; padding: 0 38px 40px; margin-top: -17px; font-size: 20px; line-height: 1.21; letter-spacing: -0.02em; color: rgba(2, 13, 32, .38); }

/* ---------- Как проходит процедура ---------- */
.proc { padding: 66px 20px 0; }
.proc__title { font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; }
.proc__cards { display: flex; gap: 20px; margin: 48px 0 0; }
.pcard-p {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 324px;
  height: 298px;
  padding: 21px 26px 28px;
  border-radius: 20px;
  background: var(--gray);
  color: var(--dark);
  cursor: default;
  transition: background .3s, color .3s;
}
.pcard-p:last-child { width: 330px; }
.pcard-p h3 { font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.pcard-p p { width: 260px; font-size: 20.3px; line-height: 1.1; letter-spacing: -0.02em; }
.pcard-p.is-active { background: var(--red); color: var(--white); }
.pcard-p__badge {
  position: absolute;
  left: 204px;
  top: -24px;
  width: 124px;
  height: 38px;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.pcard-p__badge b {
  position: absolute;
  left: 26px;
  top: -1px;
  z-index: 1;
  font-family: "Microgramma Extd D", "Eurostile", "Inter", sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--red);
  transform: scaleX(1.35);
  transform-origin: left top;
}
.pcard-p__badge img { position: absolute; top: 12px; height: 25px; transform: scaleX(-1); }
.pcard-p__badge img:nth-of-type(1) { left: 0; width: 73px; }
.pcard-p__badge img:nth-of-type(2) { left: 75px; width: 16px; }
.pcard-p__badge img:nth-of-type(3) { left: 100px; width: 16px; }
.pcard-p.is-active .pcard-p__badge { opacity: 1; transform: none; }
.proc__btn { display: inline-flex; min-width: 371px; margin: 25px 0 0; }

/* ---------- Врачи (переопределение отступа) ---------- */
.service-page .doctors { padding-top: 105px; }

/* ---------- Стоимость сервиса ---------- */
.cost {
  position: relative;
  height: 820px;
  margin: 86px 20px 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
}
.cost__car { position: absolute; right: 16px; top: 346px; width: 748px; height: 597px; max-width: none; transform: scaleX(-1); }
.cost__title { position: absolute; left: 44px; top: 50px; font-size: 64px; font-weight: 400; line-height: .95; letter-spacing: -0.03em; }
.cost__note { position: absolute; left: 44px; top: 139px; width: 444px; font-size: 16px; line-height: .95; letter-spacing: -0.03em; opacity: .7; }
.cost__box {
  position: absolute;
  left: 44px;
  top: 224px;
  width: 476px;
  height: 122px;
  padding: 26px 28px;
  border: 1px solid rgba(217, 217, 217, .17);
  border-radius: 20px;
  background: #16171a;
}
.cost__box span { display: block; font-size: 20px; line-height: .95; letter-spacing: -0.03em; opacity: .7; }
.cost__box strong { display: block; margin-top: 16px; font-size: 36px; font-weight: 600; line-height: .95; letter-spacing: -0.03em; color: var(--red); }
.cost__incl { position: absolute; left: 44px; top: 417px; width: 560px; }
.cost__incl-title { font-size: 20px; line-height: .95; letter-spacing: -0.03em; opacity: .7; }
.cost__incl ul { margin-top: 23px; }
.cost__incl li { position: relative; margin-bottom: 22px; font-size: 21px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.cost__incl li.is-hot { padding-left: 76px; color: var(--red); }
.cost__incl li.is-hot img { position: absolute; left: -2px; top: 2px; width: 60px; height: 17px; transform: scaleX(-1); }
.cost__incl li small { display: block; margin-top: 5px; font-size: 15px; font-weight: 400; line-height: 1.2; color: #d9d9d9; }
.cost__form { position: absolute; right: 44px; top: 50px; width: 620px; }
.cost__input {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: 12px;
  padding: 0 46px 0 30px;
  border: 0;
  border-radius: 32px;
  background: #f2f5fa;
  font: inherit;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--dark);
  outline: none;
}
.cost__input::placeholder { color: #a4a8af; }
.cost__input:focus { box-shadow: 0 0 0 2px var(--red); }
.cost__submit {
  display: block;
  width: 100%;
  height: 64px;
  margin-top: 14px;
  border-radius: 32px;
  background: var(--red);
  color: var(--white);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: background .2s;
}
.cost__submit:hover { background: #d92b30; }
.cost__agree { margin: 22px 0 0 57px; font-size: 16px; line-height: 1.1; letter-spacing: -0.02em; }
.cost__agree a { color: #ff777b; text-decoration: underline; text-underline-position: from-font; }

/* ---------- FAQ / CTA offsets on this page ---------- */
.service-page .faq { padding-top: 97px; }
.cta--service { margin-top: 100px; }

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .thero { display: flex; flex-direction: column; height: auto; margin: 8px var(--pad) 0; }
  .crumbs { position: static; order: -1; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; padding: 0 4px; white-space: normal; }
  .thero__head { position: static; width: 100%; }
  .thero__title { position: static; width: 100%; font-size: 38px; line-height: .95; }
  .thero__text { position: static; width: 100%; margin-top: 16px; font-size: 17px; line-height: 1.25; }
  .thero__bg { position: relative; order: 1; height: 360px; margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: #f5f6f6; }
  .thero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 30%; }
  .thero__bg .thero__art, .thero__bg .thero__art--tall { left: 10%; top: 6%; width: 80%; height: 94%; object-fit: contain; object-position: center bottom; }
  .thero__price { position: static; order: 2; margin-top: 20px; font-size: 30px; }
  .thero__pdf { position: static; order: 3; margin-top: 10px; font-size: 16px; }
  .thero__btn { position: static; order: 4; display: flex; width: 100%; margin-top: 18px; }

  .symp { height: auto; margin: 56px var(--pad) 0; padding: 0; }
  .symp__title { width: 100%; font-size: 34px; }
  .symp__intro { width: 100%; margin-top: 20px; }
  .symp__list { position: static; width: 100%; margin-top: 28px; }
  .symp__item { padding: 14px 0; }
  .symp__item:first-child { border-top: 0; }
  .symp__item button { padding-left: 0; font-size: 24px; }
  .symp__tabs { display: none; }
  .symp__item p { position: static; display: none; width: 100%; margin-top: 10px; font-size: 15px; line-height: 1.25; opacity: 1; transform: none; }
  .symp__item.is-active p { display: block; }

  .detail { min-height: 0; margin: 40px var(--pad) 0; padding: 32px 12px 12px; border-radius: 24px; }
  .detail__title { position: relative; z-index: 1; font-size: 32px; }
  .detail__list { position: relative; z-index: 1; width: 100%; margin-top: 22px; }
  .dstep { margin-bottom: 8px; border-radius: 18px; }
  .dstep summary { flex-wrap: wrap; gap: 4px 14px; padding: 20px 56px 20px 18px; font-size: 18px; }
  .dstep__num { width: auto; }
  .dstep summary::after { right: 18px; top: 22px; width: 18px; height: 18px; }
  .dstep__body { width: 100%; padding: 0 18px 20px; margin-top: -6px; font-size: 14px; line-height: 1.3; }

  .proc { padding: 56px var(--pad) 0; }
  .proc__title { margin-top: 16px; font-size: 34px; }
  .proc__cards { flex-direction: column; gap: 10px; margin: 26px 0 0; }
  .pcard-p { width: 100% !important; height: auto; min-height: 0; gap: 22px; padding: 20px; }
  .pcard-p h3 { font-size: 22px; }
  .pcard-p h3 br { display: none; }
  .pcard-p p { width: 100%; font-size: 16px; line-height: 1.25; }
  .pcard-p__badge { display: none; }
  .proc__btn { width: 100%; margin: 12px 0 0; }

  .service-page .doctors { padding-top: 56px; }

  .cost { height: auto; margin: 56px var(--pad) 0; padding: 32px 20px 300px; border-radius: 24px; }
  .cost__car { right: -60px; top: auto; bottom: -40px; width: 420px; height: auto; }
  .cost__title { position: static; font-size: 34px; }
  .cost__note { position: static; width: 100%; margin-top: 14px; font-size: 15px; line-height: 1.25; }
  .cost__box { position: static; width: 100%; height: auto; margin-top: 22px; padding: 20px; }
  .cost__title, .cost__note { position: static; }
  .cost__box strong { margin-top: 10px; font-size: 30px; }
  .cost__form { position: static; width: 100%; margin-top: 24px; }
  .cost__input { height: 60px; padding: 0 22px; font-size: 17px; }
  .cost__submit { height: 60px; font-size: 17px; }
  .cost__agree { margin: 14px 0 0; font-size: 13px; }
  .cost__incl { position: relative; left: auto; top: auto; z-index: 1; width: auto; margin-top: 30px; }
  .cost__incl li { margin-bottom: 16px; font-size: 20px; }
  .cost__incl li.is-hot { padding-left: 0; }
  .cost__incl li.is-hot img { display: none; }
  .cost__incl li small { font-size: 18px; }

  .service-page .faq { padding-top: 56px; }
  .cta--service { margin-top: 40px; }
}

/* без изображения услуги на мобильном пустую панель не показываем */
@media (max-width: 767px) {
  .thero--noart .thero__bg { display: none; }
  .thero--noart .thero__price { margin-top: 28px; }
}
