/* Свой цвет текста и свой фон подвала на страницах услуг убраны 15.10:
   подвал один на весь сайт, его вид задаёт reference.css. */
/* Липкой панели услуги больше нет (убрана 15.10), поэтому и запаса под
   неё внизу страницы больше нет. Из-за него под синим подвалом висела
   светлая полоса в 90 px — ровно та, что владелец уже ловил 14.10 на
   других страницах. Запас под плавающую кнопку держит сам подвал:
   .with-sticky-booking .site-footer в reference.css, одно правило на
   весь сайт. */
/* Фон страницы услуги — тот же, что на главной. Волна под первым экраном
   нарисована цветом --paper, и на холодном #f5f7fa её нижний край читался
   полосой: владелец 15.10 «волна у тебя не так выделена на странице услуг». */
.implant-page {
  --implant-soft: #f2f6f8;
  background: var(--paper, #f8f5f1);
}
.implant-main > .container,
.implant-main > nav > .container,
.implant-section > .container {
  max-width: 1440px;
}
.implant-main {
  font-size: 17px;
}
.implant-main .dp-breadcrumbs {
  padding-bottom: 24px;
}
.implant-main h3 {
  font-size: 22px;
  line-height: 1.25;
}
/* Отступ при переходе по якорю задаёт один раз reference.css правилом
   scroll-padding-top для всей страницы: он считается от высоты шапки.
   Своё значение в 32 px было меньше шапки и накрывало заголовок. */
.implant-main .section-title {
  line-height: 1.12;
  font-size: var(--wb-h2);
  max-width: 860px;
}
.implant-section {
  background: white;
}
.implant-section-heading {
  margin-bottom: 32px;
}
.implant-section-heading > :is(p, a) {
  display: block;
  max-width: 680px;
  margin-top: 20px;
}
.implant-section-heading > p {
  color: var(--dp-muted);
}
.implant-section-heading > .dp-inline-link {
  display: inline-flex;
}
.implant-main .dp-inline-link {
  flex-wrap: wrap;
}
.implant-main .dp-inline-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.implant-main .button,
.implant-main summary {
  touch-action: manipulation;
}
.implant-main select {
  font: inherit;
}
.implant-text-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: 15px;
}
.implant-text-link:hover {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.implant-offer-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.implant-method-name {
  white-space: nowrap;
}
.implant-offer-copy > span {
  font-size: 13px;
  line-height: 1.4;
}
.implant-offer-arrow {
  position: absolute;
  bottom: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: white;
  border-radius: 50%;
}
.implant-anchor-nav {
  border-bottom: 1px solid var(--dp-line);
  background: white;
}
.implant-anchor-nav > div {
  display: flex;
  gap: 0 30px;
  flex-wrap: wrap;
}
.implant-anchor-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 60px;
  color: var(--dp-blue);
  font-size: 15px;
}
.implant-anchor-nav a:hover {
  box-shadow: inset 0 -2px var(--dp-blue);
}
.implant-method-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding-block: 12px;
  background: white;
}
.implant-method-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 14px;
  color: var(--dp-blue);
}
.implant-method-links svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}
.implant-cost-parts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.implant-cost-parts article {
  padding-top: 8px;
}
.implant-part-icon {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--dp-sky);
  color: var(--dp-blue);
}
.implant-part-icon > .ref-image {
  width: 56px;
  height: 56px;
  mix-blend-mode: multiply;
}
.implant-part-icon svg {
  width: 26px;
  height: 26px;
}
.implant-cost-parts article:nth-child(2n) .implant-part-icon {
  background: var(--dp-lavender);
}
.implant-cost-parts p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--dp-muted);
}
.implant-consult-band {
  padding: 32px 0;
  background: var(--dp-lime);
}
.implant-consult-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.implant-consult-band h2 {
  font-size: 28px;
  line-height: 1.2;
}
.implant-consult-band p {
  margin-top: 10px;
}
.implant-consult-band .dp-booking {
  flex-shrink: 0;
}
.implant-situations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
#implant-situations {
  background: var(--dp-blue);
  color: white;
  border-radius: 0 72px 0 0;
}
#implant-situations .section-title {
  color: white;
}
#implant-situations .implant-second-opinion .dp-booking {
  background: white;
  color: var(--dp-blue);
}
#implant-situations .implant-situations > a:hover {
  outline-color: var(--dp-lime);
}
.implant-situations > a {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-width: 0;
  padding: 0 0 22px;
  border-radius: 22px;
  background: white;
  color: var(--dp-ink);
  overflow: hidden;
}
.implant-situations > a > .ref-image {
  width: 100%;
  aspect-ratio: 1.75;
  border-radius: 0 0 45% 0;
  margin-bottom: 22px;
}
.implant-situations :is(h3, p, .implant-situation-arrow) {
  margin-inline: 22px;
}
.implant-situations h3 {
  color: var(--dp-blue);
}
.implant-situations > a:hover {
  outline: 2px solid var(--dp-blue);
  outline-offset: 3px;
}
.implant-situations p {
  font-size: 15px;
  margin-block: 14px 24px;
}
.implant-situations .implant-part-icon {
  background: white;
}
.implant-situations > a:nth-child(2) {
  background: #eee8fa;
}
.implant-situations > a:nth-child(3) {
  background: #e7f5fe;
}
.implant-situations > a:nth-child(4) {
  background: #e6edda;
}
.implant-situation-arrow {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dp-blue);
  color: white;
  margin-top: auto;
}
.implant-second-opinion {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 36px;
  border-top: 1px solid #ffffff40;
  margin-top: 40px;
  padding-top: 30px;
}
.implant-second-opinion p {
  max-width: 660px;
  margin-bottom: 20px;
}
.implant-methods {
  background: var(--dp-blue);
  color: white;
}
.implant-methods .section-title,
.implant-methods .implant-section-heading > p {
  color: white;
}
.implant-methods .dp-direction-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.implant-methods .dp-direction-card:hover {
  outline-color: var(--dp-lime);
}
.implant-methods :focus-visible {
  outline-color: var(--dp-lime);
}
.implant-budget {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: start;
}
.implant-budget > div > p {
  margin-top: 24px;
}
.implant-budget ul {
  padding-left: 22px;
  margin: 22px 0;
}
.implant-budget li {
  margin-top: 8px;
}
.implant-payment {
  border-top: 1px solid var(--dp-line);
  border-bottom: 1px solid var(--dp-line);
  margin: 24px 0;
  padding: 20px 0;
}
.implant-payment summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--dp-blue);
}
.implant-payment p {
  margin-top: 16px;
  font-size: 16px;
}
.implant-payment summary::-webkit-details-marker {
  display: none;
}
.implant-payment[open] summary svg {
  transform: rotate(45deg);
}
.implant-full-arch > .ref-image {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 1672 / 941;
  border-radius: 8px;
}
.implant-full-arch h3 {
  margin-top: 24px;
  color: var(--dp-blue);
}
.implant-full-arch > div {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.implant-quiz-section {
  background: var(--dp-sky);
}
/* Две колонки: слева заголовок, иллюстрация и кнопка, справа опрос.
   Полоса во всю ширину была ошибкой чтения просьбы — владелец 14.10 просил
   развернуть на всю строку карточку врача ВНУТРИ опроса, а не сам опрос. */
.implant-quiz-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1.44fr);
  gap: 44px;
  align-items: start;
}
.implant-quiz-layout > div > p {
  max-width: 530px;
  margin-top: 24px;
}
/* Левая колонка квиза: заголовок, иллюстрация на прозрачном фоне, текст и
   зелёная кнопка записи (владелец 14.10). Кнопка одна и ведёт в ту же
   форму, что и последний шаг опроса. */
.implant-quiz-art {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 24px 0 0;
}
.implant-quiz-aside > .button {
  margin-top: 24px;
  justify-self: start;
  width: auto;
  min-width: 260px;
}
/* Фото слева, имя рядом с ним, а подпись врача идёт отдельной строкой во
   всю ширину карточки: в узкой колонке она рвалась на три куска
   (владелец 14.10). */
.implant-quiz-doctor {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-areas:
    "photo name"
    "text text";
  align-items: center;
  column-gap: 18px;
  row-gap: 12px;
  max-width: none;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--dp-line, #d6e6f4);
}
.implant-quiz-doctor img {
  grid-area: photo;
}
.implant-quiz-doctor b {
  grid-area: name;
}
.implant-quiz-doctor small {
  grid-area: text;
}
.implant-quiz-doctor img {
  width: 92px;
  height: 118px;
  object-fit: cover;
  object-position: center top;
  border-radius: 14px;
  background: #eef3f8;
}
.implant-quiz-doctor b {
  font-size: 18px;
  line-height: 1.3;
  color: var(--dp-blue, #0f408f);
}
.implant-quiz-doctor small {
  display: block;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #44566c;
}
.implant-quiz-tool {
  padding: 24px;
  border-radius: 8px;
  background: white;
  min-width: 0;
}
.implant-quiz-progress {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 32px;
  color: var(--dp-muted);
  font-size: 14px;
}
.implant-quiz-progress progress {
  width: 100%;
  height: 8px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--implant-soft);
  accent-color: var(--dp-blue);
}
.implant-quiz-progress progress::-webkit-progress-bar {
  background: var(--implant-soft);
}
.implant-quiz-progress progress::-webkit-progress-value {
  background: var(--dp-blue);
}
.implant-quiz-step {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.implant-quiz-step legend {
  float: none;
  width: 100%;
  padding: 0;
  margin-bottom: 24px;
  font:
    600 24px/1.3 "Golos Text",
    sans-serif;
}
.implant-quiz-options {
  display: grid;
  gap: 12px;
  min-height: 276px;
  align-content: start;
}
.implant-quiz-options label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 14px 16px;
  border: 1px solid var(--dp-line);
  border-radius: 4px;
  cursor: pointer;
}
.implant-quiz-options label:hover {
  border-color: var(--dp-blue);
}
.implant-quiz-options label:has(:checked) {
  background: #f0f7fc;
  border-color: var(--dp-blue);
}
.implant-quiz-options input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dp-blue);
}
.implant-quiz-options span {
  flex: 1;
  font-size: 16px;
}
.implant-quiz-options svg {
  visibility: hidden;
  color: var(--dp-blue);
}
.implant-quiz-options label:has(:checked) svg {
  visibility: visible;
}
.implant-quiz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}
.implant-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  border: 0;
  background: transparent;
  padding: 8px 0;
  color: var(--dp-blue);
}
.implant-back:disabled {
  cursor: default;
  color: var(--dp-muted);
  opacity: 0.55;
}
.implant-form-message {
  color: #ac263e;
  font-size: 14px;
  padding-top: 14px;
}
.tooth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 4px;
  margin-bottom: 18px;
  border: 1px solid var(--dp-line);
  border-radius: 6px;
  background: var(--implant-soft);
}
.tooth-tabs button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  background: transparent;
  color: var(--dp-blue);
  font-size: 14px;
}
.tooth-tabs button[aria-selected="true"] {
  background: var(--dp-blue);
  color: white;
}
.tooth-sides {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: 340px;
  margin: auto;
  font-size: 13px;
  color: var(--dp-muted);
}
.tooth-sides span:last-child {
  text-align: right;
}
.tooth-arch {
  position: relative;
  width: 100%;
  max-width: 340px;
  height: 392px;
  margin: 18px auto 0;
}
.implant-main .tooth-button {
  position: absolute;
  top: var(--tooth-y);
  left: var(--tooth-x);
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 44px;
  height: 48px;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 5px;
  padding: 0;
  background: transparent;
  color: var(--dp-blue);
  font-size: 13px;
  line-height: 12px;
}
.implant-main .tooth-button img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.implant-main .tooth-button:hover {
  background: var(--implant-soft);
  border-color: var(--dp-sky);
}
.implant-main .tooth-button[aria-pressed="true"] {
  border-color: var(--dp-blue);
  background: var(--dp-sky);
}
.implant-main .tooth-button:focus-visible {
  z-index: 1;
}
.tooth-check {
  display: none;
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dp-blue);
  color: white;
}
.tooth-button[aria-pressed="true"] .tooth-check {
  display: grid;
  place-items: center;
}
.implant-main .tooth-check svg {
  width: 10px;
  height: 10px;
  stroke-width: 2.5;
}
.tooth-whole,
.tooth-unsure {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
  cursor: pointer;
}
.tooth-whole {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--dp-line);
}
.tooth-whole input,
.tooth-unsure input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 0;
  accent-color: var(--dp-blue);
}
.tooth-selection-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 10px 0 4px;
}
.tooth-selection-status output {
  font-size: 14px;
  font-weight: 600;
}
.tooth-selection-status .round-button {
  display: grid;
  place-items: center;
  border: 0;
  width: 44px;
  height: 44px;
  background: var(--implant-soft);
  color: var(--dp-blue);
}
.tooth-selection-status .round-button:disabled {
  opacity: 0.4;
  cursor: default;
}
#tooth-selection {
  font-size: 13px;
  color: var(--dp-muted);
  margin-bottom: 12px;
}
#quiz-result h3 {
  color: var(--dp-blue);
}
#quiz-answers {
  margin: 24px 0;
}
#quiz-answers > div {
  padding: 12px 0;
  border-bottom: 1px solid var(--dp-line);
}
#quiz-answers dt {
  font-size: 13px;
  color: var(--dp-muted);
}
#quiz-answers dd {
  margin: 5px 0 0;
  font-weight: 600;
  font-size: 16px;
}
#quiz-result > p {
  font-size: 14px;
  color: var(--dp-muted);
}
.implant-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-top: 24px;
}
.implant-result-actions > .dp-booking {
  width: 100%;
}
.implant-answer-details {
  margin-top: 20px;
}
.implant-answer-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  cursor: pointer;
  font-size: 14px;
}
.implant-answer-details p {
  font-size: 13px;
}
.implant-process {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
}
.implant-process > div > p {
  margin: 24px 0;
}
.implant-stages {
  list-style: none;
  padding: 0;
  margin: 0;
}
.implant-stages li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--dp-line);
}
.implant-stages li:first-child {
  padding-top: 0;
  border: 0;
}
.implant-stage-number {
  font:
    600 36px/1.2 "Golos Text",
    sans-serif;
  color: var(--dp-blue);
}
.implant-stages p {
  margin-top: 14px;
  font-size: 16px;
  color: var(--dp-muted);
}
.implant-review-band {
  background: var(--dp-blue);
}
.implant-review-band .section-title {
  color: white;
}
.implant-review-band .implant-section-heading > .dp-inline-link {
  --dp-inline-color: white;
}
.implant-main .dp-doctors-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.implant-main .dp-card-photo {
  height: 330px;
}
.implant-main .dp-card-body {
  padding: 20px 16px;
}
.implant-main .dp-card-heading h3 {
  font-size: 19px;
}
/* Блок вопросов услуги больше не имеет своей вёрстки: он собран тем же
   scripts/faq.mjs, что главная, и оформлен .wb-faq-section в core-page.css. */
.implant-appointment {
  background: #e7f5fe;
}
.implant-appointment-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 100px;
}
.implant-appointment-fields {
  background: white;
  padding: 32px;
  border-radius: 24px;
}
.implant-appointment-layout > div > p {
  margin-top: 24px;
  max-width: 590px;
}
.implant-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  font:
    600 28px/1.3 "Golos Text",
    sans-serif;
  color: var(--dp-blue) !important;
}
#implant-appointment-preferences > label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}
.implant-appointment select {
  width: 100%;
  min-height: 52px;
  padding: 12px;
  border: 1px solid #7598af;
  background: white;
  border-radius: 4px;
  color: var(--dp-ink);
}
.implant-appointment fieldset {
  border: 0;
  margin: 24px 0;
  padding: 0;
}
.implant-appointment legend {
  padding: 0;
  margin-bottom: 8px;
  font-weight: 600;
}
#implant-appointment-preferences fieldset label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  cursor: pointer;
}
#implant-appointment-preferences input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--dp-blue);
}
.implant-appointment form > p {
  margin-top: 16px;
  font-size: 13px;
}
.implant-visit > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.implant-visit p {
  margin-top: 20px;
}
.implant-map-link {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  max-width: 330px;
  min-height: 60px;
  color: var(--dp-blue) !important;
  font-size: 18px;
  border-bottom: 1px solid var(--dp-sky);
}
@media (max-width: 599px) {
}
@media (min-width: 1680px) {
}
@media (max-width: 1199px) {
  .implant-cost-parts,
  .implant-situations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .implant-budget,
  .implant-quiz-layout,
  .implant-process,
  .implant-appointment-layout {
    gap: 40px;
  }

  .implant-main .dp-doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .implant-main .dp-card-photo {
    height: 370px;
  }
  .implant-quiz-tool {
    padding: 24px;
  }
  .implant-phone {
    font-size: 24px;
  }
}
@media (max-width: 899px) {
  .implant-anchor-nav > div {
    gap: 0 22px;
  }
  .implant-anchor-nav a {
    min-height: 48px;
  }

  .implant-methods .dp-direction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .implant-main .dp-direction-card > span:nth-child(2) {
    font-size: 18px;
  }
  .implant-budget,
  .implant-quiz-layout,
  .implant-process,
  .implant-appointment-layout {
    grid-template-columns: 1fr;
  }
  .implant-full-arch {
    max-width: 620px;
  }
  .implant-quiz-doctor {
    display: none;
  }
  .implant-consult-band .container {
    flex-wrap: wrap;
  }
  .implant-main .dp-reviews-grid {
    grid-template-columns: 1fr;
  }
  .implant-visit > .container {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 599px) {
  .implant-main :is(input, button, select, a) {
    scroll-margin-bottom: 100px;
  }
  .implant-main {
    font-size: 16px;
  }
  .implant-main .dp-breadcrumbs {
    padding-top: 18px;
    padding-bottom: 18px;
  }
  .implant-offer-copy > span {
    font-size: 13px;
  }
  .implant-anchor-nav > div {
    gap: 0 20px;
  }
  .implant-anchor-nav a {
    font-size: 13px;
    min-height: 44px;
  }

  .implant-main h3 {
    font-size: 20px;
  }
  .implant-section-heading {
    margin-bottom: 28px;
  }
  .implant-cost-parts {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .implant-cost-parts article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0 16px;
  }
  .implant-cost-parts .implant-part-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 44px;
    height: 44px;
  }
  .implant-cost-parts p {
    grid-column: 2;
    font-size: 15px;
  }
  .implant-consult-band h2 {
    font-size: 24px;
  }
  .implant-situations {
    gap: 12px;
  }
  .implant-situations > a {
    padding: 0 0 16px;
  }
  .implant-situations :is(h3, p, .implant-situation-arrow) {
    margin-inline: 12px;
  }
  .implant-situations h3 {
    font-size: 18px;
  }
  .implant-situations p {
    font-size: 13px;
  }
  .implant-second-opinion {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .implant-methods .dp-direction-grid {
    gap: 12px;
  }
  .implant-main .dp-direction-card > span:nth-child(2) {
    padding-left: 12px;
    font-size: 15px;
  }
  .implant-main .dp-direction-card {
    grid-template-columns: 1fr 30px;
    gap: 12px 6px;
    padding-right: 8px;
  }
  .implant-main .dp-direction-card > .ref-image {
    width: calc(100% + 8px);
  }
  .implant-main .dp-direction-card .dp-button-arrow {
    width: 26px;
    height: 26px;
  }
  .implant-main .dp-direction-card svg {
    width: 16px;
    height: 16px;
  }
  .implant-quiz-tool {
    padding: 20px;
  }
  .implant-quiz-step legend {
    font-size: 22px;
  }
  .implant-quiz-options label {
    padding: 12px;
  }
  .implant-quiz-options span {
    font-size: 15px;
  }
  .implant-quiz-options svg {
    width: 16px;
  }
  .implant-quiz-progress {
    font-size: 13px;
  }
  .implant-quiz-controls {
    gap: 12px;
  }
  .implant-main .dp-doctors-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .implant-main .dp-doctor-card {
    max-width: 410px;
    width: 100%;
    justify-self: center;
  }
  .implant-main .dp-card-photo {
    height: 380px;
  }
  .implant-stages li {
    grid-template-columns: 42px 1fr;
    gap: 16px;
  }
  .implant-stage-number {
    font-size: 28px;
  }
  .implant-appointment select {
    font-size: 14px;
  }
  .implant-phone {
    font-size: 21px;
    gap: 10px;
  }
}
@media (max-width: 359px) {
  .implant-situations {
    grid-template-columns: 1fr;
  }
  .implant-main .dp-direction-card > span:nth-child(2) {
    font-size: 13px;
    overflow-wrap: anywhere;
  }
  .implant-quiz-tool {
    padding: 16px;
  }
  .implant-quiz-controls .dp-booking {
    gap: 12px;
    padding-left: 14px;
  }
  .implant-phone {
    font-size: 18px;
  }
}
.implant-quiz-section .implant-quiz-tool {
  padding: 28px;
  border-radius: 24px;
  background: white;
  color: var(--dp-ink);
}
.implant-quiz-section .implant-quiz-progress {
  color: var(--dp-muted);
  margin-bottom: 18px;
}
.implant-quiz-section .implant-quiz-progress progress {
  accent-color: var(--dp-lime);
}
.implant-quiz-section .implant-quiz-progress progress::-webkit-progress-value {
  background: var(--dp-lime);
}
.implant-quiz-section .implant-quiz-step legend {
  font-size: 25px;
  margin-bottom: 20px;
}
.implant-quiz-section .tooth-tabs {
  margin-bottom: 14px;
}
.implant-quiz-section .tooth-sides,
.implant-quiz-section #tooth-selection {
  color: var(--dp-muted);
}
.implant-quiz-section .tooth-button {
  color: var(--dp-blue);
}
.implant-quiz-section .tooth-button:hover,
.implant-quiz-section .tooth-button[aria-pressed="true"] {
  color: var(--dp-blue);
}
.implant-quiz-section .tooth-whole {
  border-color: var(--dp-line);
}
.implant-quiz-section .tooth-whole input,
.implant-quiz-section .tooth-unsure input {
  accent-color: var(--dp-lime);
  color-scheme: light;
}
.implant-quiz-section .implant-back {
  color: var(--dp-blue);
}
.implant-quiz-section .implant-form-message {
  color: #a22222;
}
.implant-quiz-section .implant-quiz-options label {
  background: #f4f7fa;
  color: var(--dp-ink);
}
.implant-quiz-section .implant-quiz-options label:has(:checked) {
  background: var(--dp-sky);
  border-color: var(--dp-blue);
}
.implant-quiz-section .implant-quiz-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 0;
}
.implant-quiz-section .implant-quiz-options label {
  display: grid;
  grid-template-columns: 1fr 18px;
  grid-template-rows: 32px auto;
  align-content: start;
  align-items: start;
  min-height: 124px;
  gap: 12px;
  border-radius: 8px;
  border: 2px solid transparent;
}
.implant-quiz-section .implant-quiz-options input {
  grid-column: 2;
  grid-row: 1;
}
.implant-quiz-section .implant-option-visual {
  grid-column: 1;
  grid-row: 1;
}
.implant-quiz-section .implant-quiz-options .implant-option-visual svg {
  visibility: visible;
  width: 32px;
  height: 32px;
  color: var(--dp-blue);
  stroke-width: 1.5px;
}
.implant-quiz-section .implant-option-label {
  grid-column: 1 / -1;
  grid-row: 2;
  font-weight: 500;
  line-height: 1.4;
}
.implant-quiz-section .implant-quiz-options label:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  grid-template-columns: 32px 1fr 18px;
  grid-template-rows: auto;
  min-height: 68px;
  align-items: center;
}
.implant-quiz-section
  .implant-quiz-options
  label:last-child:nth-child(odd)
  input {
  grid-column: 3;
}
.implant-quiz-section
  .implant-quiz-options
  label:last-child:nth-child(odd)
  .implant-option-label {
  grid-column: 2;
  grid-row: 1;
}
.implant-quiz-section .implant-quiz-options label:has(:focus-visible) {
  outline: 3px solid var(--dp-lime);
  outline-offset: 3px;
}
.implant-quiz-section .implant-choice-note {
  color: var(--dp-muted);
  min-height: 66px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
}
@media (max-width: 599px) {
  .implant-quiz-section .implant-quiz-options {
    gap: 10px;
  }
  .implant-quiz-section .implant-quiz-options label {
    padding: 12px;
    gap: 8px;
    min-height: 140px;
  }
  .implant-quiz-section .implant-quiz-options .implant-option-label {
    font-size: 14px;
  }
  .implant-quiz-section .implant-choice-note {
    min-height: 84px;
  }
}
.implant-quiz-section #quiz-result h3,
.implant-quiz-section #quiz-result > p {
  color: var(--dp-ink);
}
.implant-quiz-section #quiz-answers dt {
  color: var(--dp-muted);
}
.implant-quiz-section #quiz-answers > div {
  border-color: var(--dp-line);
}
.implant-quiz-section #quiz-result .dp-booking {
  background: var(--dp-lime);
  color: #153616;
}
.implant-quiz-section .implant-quiz-controls {
  margin-top: 18px;
}
.implant-scope-offers {
  margin: 24px 0 16px;
  max-width: 840px;
}
.implant-main .implant-scope-note {
  font-size: 13px;
  color: var(--dp-muted);
  margin-bottom: 32px;
}
@media (min-width: 1200px) {
  .implant-quiz-section .tooth-picker {
    display: grid;
    grid-template-columns: minmax(250px, 340px) minmax(150px, 1fr);
    gap: 0 24px;
    align-items: start;
    grid-template-rows: auto auto auto 1fr;
  }
  .implant-quiz-section .tooth-tabs {
    grid-column: 1 / -1;
  }
  .implant-quiz-section .tooth-selection-status {
    grid-column: 2;
    grid-row: 2;
  }
  .implant-quiz-section #tooth-selection {
    grid-column: 2;
    grid-row: 3;
  }
  .implant-quiz-section .tooth-unsure {
    grid-column: 2;
    grid-row: 4;
  }
}
@media (max-width: 1199px) {
  .implant-quiz-section .implant-quiz-tool {
    width: 100%;
    max-width: 720px;
    justify-self: center;
  }
}
@media (max-width: 599px) {
  .implant-quiz-section .implant-quiz-tool {
    padding: 18px;
  }
  .implant-quiz-section .implant-quiz-step legend {
    font-size: 22px;
  }
  .implant-quiz-section .implant-quiz-progress {
    font-size: 13px;
    margin-bottom: 14px;
  }
  .implant-quiz-section .tooth-arch {
    margin-top: 8px;
  }
  .implant-quiz-section .tooth-tabs button {
    padding: 8px;
    font-size: 13px;
  }
  .implant-quiz-section .implant-quiz-controls {
    margin-top: 12px;
  }
}

/* Front view keeps both jaws present on narrow screens as well. */
.implant-quiz-section .tooth-picker.tooth-picker-front {
  display: block;
}
.tooth-picker-front .tooth-sides {
  max-width: none;
  margin-bottom: 10px;
}
/* На компьютере челюсть видна целиком и никуда не листается: колонка
   опроса рассчитана так, чтобы все шестнадцать зубов помещались в строку
   (владелец 14.10, кнопки перелистывания убраны). На телефоне строка
   прокручивается пальцем: зуб меньше 44 px нажать невозможно, и гейт
   test:implantation это проверяет на 320. */
.tooth-scroll {
  padding: 4px 0;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--dp-sky) transparent;
  overscroll-behavior-inline: contain;
}
.tooth-front-chart {
  /* Ровно шестнадцать целей по 44 px плюс пятнадцать зазоров по 1 px.
     Лишние 7 px заставляли листать строку на 1440 (владелец 15.10). */
  min-width: 719px;
  padding: 2px 0;
}
.tooth-front-row {
  display: grid;
  grid-template-columns: repeat(16, minmax(44px, 1fr));
  gap: 1px;
  position: relative;
}
.tooth-front-row::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed #7197c6;
  pointer-events: none;
}
.implant-main .tooth-front-chart h3 {
  font: 500 13px/1.4 var(--figma-font-body);
  color: var(--dp-blue);
  text-align: center;
  margin: 4px 0 8px;
}
.tooth-front-chart [data-jaw="lower"] {
  margin-top: 16px;
}
.implant-main .tooth-front-row .tooth-button {
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  width: 100%;
  min-width: 0;
  height: 74px;
  min-height: 74px;
  padding: 2px 0;
  gap: 2px;
  font-size: 11px;
}
.implant-main .tooth-front-row .tooth-button img {
  width: 100%;
  max-width: 34px;
  height: 52px;
  object-fit: contain;
}
@media (max-width: 760px) {
  .implant-main .tooth-front-row .tooth-button {
    height: 62px;
    min-height: 62px;
    font-size: 9px;
  }
  .implant-main .tooth-front-row .tooth-button img {
    max-width: 22px;
    height: 42px;
  }
}
.tooth-front-chart [data-jaw="upper"] .tooth-button > span:not(.tooth-check) {
  order: -1;
}
/* Пока строка прокручивается пальцем, подпись челюсти остаётся на виду:
   иначе на телефоне непонятно, верх это или низ (гейт test:implantation). */
@media (max-width: 1199px) {
  .implant-main .tooth-front-chart h3 {
    position: sticky;
    left: 0;
    width: max-content;
    text-align: left;
  }
}
.tooth-whole-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0 28px;
  border-bottom: 1px solid var(--dp-line);
  padding-top: 12px;
}
.implant-quiz-section .tooth-whole-group .tooth-whole {
  border: 0;
}
.implant-trust {
  background: #e7f5fe;
}
.implant-trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.implant-trust-points > div {
  padding-top: 8px;
}
.implant-trust-points > div > .ref-image {
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  border-radius: 50%;
}
.implant-trust-points p {
  margin-top: 12px;
  font-size: 16px;
}
.implant-decision {
  background: #f5f7fa;
}
.implant-planning-points {
  list-style: none;
  margin: 0;
  padding: 0;
}
.implant-planning-points li {
  display: flex;
  gap: 24px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--dp-line);
}
.implant-planning-points li > span {
  color: var(--dp-blue);
  font:
    600 24px/1.3 "Golos Text",
    sans-serif;
}
.implant-methods-inline {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--dp-line);
}
.implant-methods-inline > h3 {
  margin-bottom: 24px;
}
.implant-final-offer {
  background: #e7f5fe url("assets/figma/ribbon.webp") right center / 600px 600px
    no-repeat;
}
.implant-final-offer .implant-scope-note {
  margin-top: 16px;
}
.implant-quiz-layout {
  grid-template-columns: minmax(0, 0.56fr) minmax(0, 1.44fr);
  gap: 44px;
}
.implant-main summary {
  min-height: 44px;
}
@media (max-width: 1199px) {
  .implant-quiz-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
@media (max-width: 767px) {
  .implant-trust-points {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .implant-appointment-fields {
    padding: 20px;
  }
  #implant-situations {
    border-top-right-radius: 36px;
  }
  .implant-final-offer {
    background-image: none;
  }
}

/* Разборы блога на коммерческой странице: питание в обратную сторону.
   Без входящих ссылок статья не входит в индекс: из 28 статей вне индекса
   у 22 не было ни одной входящей ссылки. */
.implant-read-before {
  margin-top: 28px;
  padding: 26px 28px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #d6e6f4;
}
.implant-read-before h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.3;
}
.implant-read-before > p {
  margin: 0 0 14px;
  color: #3c5a78;
}
.implant-read-before ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.implant-read-before a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
  color: var(--figma-blue, #0f408f);
}

/* Во время квиза кнопка записи остаётся на месте, но уступает «Далее». */

/* Таблица цен внутри блока «Стоимость». На узком экране строка становится
   карточкой: горизонтальная прокрутка прайса читается как «от меня прячут». */
.implant-price-table {
  margin: 0 0 20px;
}
.implant-price-table table {
  width: 100%;
  border-collapse: collapse;
}
.implant-price-table th,
.implant-price-table td {
  padding: 13px 14px 13px 0;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--dp-line, #d6e6f4);
  font-size: 16px;
  line-height: 1.45;
}
.implant-price-table thead th {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a5a6e;
}
.implant-price-table tbody th {
  font-weight: 600;
  width: 38%;
}
.implant-price-amount {
  font-family: var(--figma-font-heading);
  font-weight: 700;
  font-size: 19px;
  color: var(--dp-blue, #0f408f);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .implant-price-table table,
  .implant-price-table tbody,
  .implant-price-table tr,
  .implant-price-table th,
  .implant-price-table td {
    display: block;
    width: auto;
  }
  .implant-price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .implant-price-table tr {
    padding: 14px 16px;
    margin-bottom: 10px;
    border: 1px solid var(--dp-line, #d6e6f4);
    border-radius: 14px;
    background: #f7fafd;
  }
  .implant-price-table tbody th,
  .implant-price-table td {
    padding: 0;
    border-bottom: 0;
  }
  .implant-price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin: 8px 0 2px;
    color: #4a5a6e;
    font-size: 13px;
  }
}

/* Честные условия */
.implant-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 24px 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--dp-sky, #bce4fe);
  font-size: 17px;
}
.implant-formula span,
.implant-formula b {
  padding: 8px 16px;
  border-radius: 999px;
  background: #fff;
}
.implant-formula b {
  color: var(--dp-blue, #0f408f);
}
.implant-formula i {
  font-style: normal;
  font-weight: 700;
  color: var(--dp-blue, #0f408f);
}
.implant-honest-grid,
.implant-waiting-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  margin-bottom: 24px;
}
.implant-honest-grid article,
.implant-waiting-grid article {
  padding: 22px 24px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--dp-line, #d6e6f4);
}
.implant-honest-grid h3,
.implant-waiting-grid h3 {
  margin: 0 0 8px;
  font-size: 19px;
  line-height: 1.25;
  color: var(--dp-blue, #0f408f);
}
.implant-honest-grid p,
.implant-waiting-grid p {
  margin: 0;
  color: #3c5a78;
  font-size: 16px;
  line-height: 1.55;
}

/* Второе мнение при отказе */
.implant-refused-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.implant-refused-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.implant-refused-steps li {
  display: flex;
  gap: 14px;
  padding: 18px 22px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--dp-line, #d6e6f4);
}
.implant-refused-steps span {
  font-family: var(--figma-font-heading);
  font-weight: 700;
  color: var(--dp-sky, #bce4fe);
}
.implant-refused-steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}

/* Деньги: рассрочка и марки */
/* Карточки одного ряда тянутся на одну высоту. С align-items: start зелёная
   «Рассрочка» вставала короче соседней «Вернётся 13% налога», и ряд выглядел
   обрубленным (замечание владельца 13.10). */
.implant-money {
  display: grid;
  grid-template-columns: 300px 300px 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: stretch;
}
.implant-installments {
  padding: 24px 26px;
  border-radius: 20px;
  background: var(--dp-lime, #91b84a);
  color: #1d2b0b;
}
.implant-installments h3 {
  margin: 0 0 8px;
  font-size: 24px;
}
.implant-installments p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.5;
}
.implant-installments small {
  font-size: 14px;
  opacity: 0.85;
}
.implant-brands {
  padding: 24px 26px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid var(--dp-line, #d6e6f4);
}
.implant-brands h3 {
  margin: 0 0 14px;
  font-size: 20px;
}
.implant-brands ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.implant-brands li {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fafd;
  display: grid;
  gap: 1px;
}
.implant-brands b {
  font-size: 16px;
}
.implant-brands span {
  color: #4a5a6e;
  font-size: 14px;
}
.implant-brands small {
  color: var(--dp-blue, #0f408f);
  font-size: 13px;
}
.implant-brands > p {
  margin: 0;
  color: #4a5a6e;
  font-size: 15px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .implant-money {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .implant-refused-layout,
  .implant-money {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
}

/* Длинная подпись кнопки на 320 вылезала за экран на 43 px. */
@media (max-width: 420px) {
  .implant-honest .button,
  .implant-refused .button {
    max-width: 100%;
    white-space: normal;
    text-align: left;
  }
}

/* Полоса доказательств сразу под первым экраном. Разбор выдачи Уфы
   13.10.2026: приём есть у шести клиник из четырнадцати, у нас не было. */
.implant-proof-strip {
  padding: 28px 0;
  background: var(--dp-paper, #fff);
  border-bottom: 1px solid var(--dp-line, #d6e6f4);
}
.implant-proof-strip ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 18px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.implant-proof-strip li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.implant-proof-strip svg,
.implant-proof-strip .icon {
  flex: none;
  width: 24px;
  height: 24px;
  color: var(--dp-blue, #0f408f);
}
.implant-proof-strip b {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}
.implant-proof-strip span {
  color: #4a5a6e;
  font-size: 14px;
  line-height: 1.4;
}

/* Налоговый вычет в рублях рядом с ценой. */
.implant-tax {
  padding: 24px 26px;
  border-radius: 20px;
  background: #f2f7fb;
  border: 1px solid var(--dp-line, #d6e6f4);
}
.implant-tax h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--dp-blue, #0f408f);
}
.implant-tax p {
  margin: 0 0 14px;
  color: #3c5a78;
  font-size: 15px;
  line-height: 1.5;
}
.implant-tax ul {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.implant-tax li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
}
.implant-tax span {
  color: #4a5a6e;
  font-size: 15px;
}
.implant-tax b {
  font-family: var(--figma-font-heading);
  font-size: 19px;
  /* Не --dp-lime: переменная это цвет ЗАЛИВКИ, на белом она давала 2,29:1. */
  color: #4e6b17;
}

/* Рейтинги независимых площадок строкой. Числа и даты в data/reviews.json. */
.implant-rating-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(160px, 100%), 1fr));
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
/* Каждая площадка в своём фирменном цвете и со своим значком: человек
   узнаёт источник оценки до того, как прочитает название (владелец 14.10).
   Цвета сняты подсчётом пикселей самих значков, см.
   styleboard/assets/platforms/ПРОВЕНАНС.md. */
.implant-rating-bar a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "logo rating"
    "name name"
    "count count";
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f4f8fd;
  background: color-mix(in srgb, var(--platform, #1d4ed8) 9%, #fff);
  border: 1px solid #dbe8f6;
  border-color: color-mix(in srgb, var(--platform, #1d4ed8) 28%, #fff);
  text-decoration: none;
  color: inherit;
}
.implant-rating-bar a:hover {
  border-color: var(--platform, #1d4ed8);
}
.implant-rating-bar img {
  grid-area: logo;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.implant-rating-bar b {
  grid-area: rating;
  font-family: var(--figma-font-heading);
  font-size: 26px;
  line-height: 1;
  color: var(--platform, #1d4ed8);
}
.implant-rating-bar span {
  grid-area: name;
  font-weight: 600;
  font-size: 15px;
}
.implant-rating-bar small {
  grid-area: count;
  font-size: 13px;
}
.implant-rating-bar small {
  color: #4a5a6e;
}

/* Лента отзывов стоит на синей плашке: подпись и кнопка должны читаться. */
.implant-review-band .rv-feed-hint {
  color: #cfe3fa;
}
.implant-review-band .rv-feed {
  -webkit-mask: none;
  mask: none;
}

/* Флаг страны производителя в карточке марки имплантата. */
.implant-brands li {
  position: relative;
}
/* Снимок имплантата на фоне флага страны производителя (владелец 14.10,
   сгенерировано Codex). */
.implant-brands ul {
  grid-auto-rows: 1fr;
}
.implant-brands li {
  display: grid;
  align-content: start;
  padding: 0 0 14px;
  overflow: hidden;
}
.implant-brands li b,
.implant-brands li span,
.implant-brands li small {
  padding-inline: 16px;
}
.implant-brand-flag {
  display: block;
  width: 100%;
  height: 86px;
  object-fit: cover;
  margin-bottom: 10px;
}

/* ── Первый экран услуги = первый экран главной ────────────────────────
   Владелец 15.10: «ты по сути везде можешь делать одинаковый первый экран,
   потом мы просто везде разные фото поставим». Поэтому своих правил о
   высоте, ширине, скруглении и волне у услуг больше нет — всё берётся
   из .hero. Здесь остаётся только то, что отличается по СОДЕРЖАНИЮ. */

/* Снимок уходит под шапку, как на главной. Пока хлебные крошки стояли
   отдельной строкой сверху, фотография начиналась ниже шапки, и первый
   экран выглядел меньше. Крошки переехали внутрь экрана. */
.implant-page:has(.site-header) > main {
  margin-top: calc(-1 * (var(--header-height) + 2 * var(--header-inset)));
}
/* Крошки добавляют первому экрану услуги строку, которой нет на главной,
   а содержимое обязано закончиться ДО волны (она закрывает последние
   ~95 px). Поэтому поле сверху меньше ровно на высоту этой строки, и
   нижний факт перестаёт уезжать под волну. */
.implant-hero .hero-inner {
  padding-top: 112px;
}
.implant-hero .dp-breadcrumbs {
  padding: 0;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
}
.implant-hero .dp-breadcrumbs a {
  color: #fff;
}
.implant-hero .dp-breadcrumbs [aria-current] {
  color: rgba(255, 255, 255, 0.82);
}

/* Фактов четыре, а не три, и они длиннее: «Заживление в 4 раза быстрее»
   в один ряд не встаёт. Поэтому два на два. ВСЕ четыре выделены лаймом —
   владелец 15.10: «я тебя просил все факты выделить лаймом». */
/* Четыре факта идут в два ряда, и этот второй ряд — вся разница с
   главной по высоте. Поэтому ряды плотнее и цифра чуть меньше: иначе
   нижняя строка упирается в волну. */
.implant-hero .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 32px;
  margin-top: 22px;
  max-width: 620px;
}
.implant-hero .hero-copy > p {
  margin-top: 14px;
}
.implant-hero .hero-stats > div {
  min-width: 0;
}
.implant-hero .hero-stats b {
  font-size: 22px;
  line-height: 1.15;
  color: var(--lime-bright, #b5d44a);
}
.implant-hero .hero-stats span {
  font-size: 14px;
}

/* Оффер услуги строкой под заголовком, лаймом: на главной его роль
   играет em внутри заголовка. */
.implant-hero .hero-copy > p > em {
  display: block;
  margin-bottom: 8px;
  font-style: normal;
  font-size: 20px;
  font-weight: 700;
  color: var(--lime-bright, #b5d44a);
}

/* Своего кадра у услуг нет: снимок, его положение и отражение берутся
   из .hero-background главной. Владелец 15.10: «фото и первый экран
   точь-в-точь как на главной». Разные фотографии по услугам он поставит
   отдельно, когда снимет их. */

/* ── Блок записи с открытой формой (страницы услуг) ────────────────────
   Владелец 15.10: «запишитесь на консультацию, нужно только имя и номер
   телефона, непосредственно на странице услуг, с открытой лид-формой».
   Берём синюю полосу «Комплексная консультация» с главной, но вместо
   кнопки в правой колонке стоит сама форма на белой карточке. Своя сетка
   нужна потому, что на главной в этой полосе четыре колонки с картинкой,
   а здесь три: текст, список и форма. */
.consultation-lead .consultation-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 430px);
  gap: 36px;
  align-items: center;
}
.consultation-lead ul:before {
  inset: -40px -28px;
}
.consultation-lead #implant-lead-slot {
  position: relative;
  z-index: 1;
  padding: 26px 28px;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 75, 150, 0.12);
}
.consultation-lead .wb-lead-form {
  display: grid;
  gap: 14px;
}
.consultation-lead .lead-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.consultation-lead .lead-field {
  display: grid;
  gap: 6px;
  font-size: 14px;
}
.consultation-lead .lead-field input {
  width: 100%;
}
.consultation-lead .lead-preview-note,
.consultation-lead .form-status {
  margin: 0;
  font-size: 13px;
}
.consultation-lead .lead-consent {
  align-items: start;
  font-size: 13px;
}
.consultation-lead .button {
  width: 100%;
  justify-content: center;
}
.consultation-lead .lead-phone {
  justify-content: center;
}
@media (max-width: 1100px) {
  .consultation-lead .consultation-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  }
  .consultation-lead ul {
    grid-column: 1;
  }
}
@media (max-width: 860px) {
  .consultation-lead .consultation-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .consultation-lead ul {
    grid-column: auto;
  }
}

/* На узком экране фактов четыре, а не три, и заголовок услуги длиннее:
   в фиксированные 810 px первого экрана они не помещались, и последний
   факт вместе с плашкой акции уезжал под волну (`.hero` режет лишнее).
   Высоту на мобильном отпускаем по содержимому — пропорции и волна те же,
   просто экран ровно такой, какой нужен тексту. */
@media (max-width: 900px) {
  .implant-hero {
    height: auto;
    min-height: 810px;
  }
  .implant-hero .hero-inner {
    padding-bottom: 120px;
  }
  .implant-hero .hero-stats {
    gap: 14px 20px;
  }
  .implant-hero .hero-stats b {
    font-size: 20px;
  }
}

/* ── Челюсть целиком на одном экране (владелец 16.10) ──────────────────
   «Я не хочу челюсть с зубами туда лево-вправо листать. Я хочу, чтобы она
   была как бы внутри одного экрана: я мог все зубки выбрать.»

   Шестнадцать зубов в ряд при цели касания 44 px требуют 719 px, и ряд
   приходилось листать пальцем. Считаем: на 390 px экрану остаётся 318 px
   внутри карточки, это 19 px на зуб, по такому не попасть. Поэтому ряд
   разворачиваем в два по восемь и выпускаем блок во всю ширину экрана:
   378 px на восемь зубов это 47 px, цель касания сохранена, а вся челюсть
   видна целиком. Деление на восемь анатомическое: порядок зубов в ряду
   18..11 и 21..28, то есть первая строка это правая сторона, вторая левая.
   Пунктир посередине ряда (граница сторон) на двух строках смысла не
   имеет и снимается.

   Нижняя граница 361 px не случайна: на 320 px экрану остаётся 308 px, это
   38 px на зуб, и цель касания падает ниже предела. Там ряд по-прежнему
   листается пальцем: показать восемь целей по 44 px на такой ширине
   физически нечем. */
@media (min-width: 361px) and (max-width: 760px) {
  .tooth-scroll {
    overflow: visible;
    margin-inline: -36px;
    padding-inline: 6px;
    scroll-snap-type: none;
  }
  /* 719 px это ширина ряда из шестнадцати зубов. На двух строках по восемь
     она держала бы прежнюю прокрутку. */
  .tooth-front-chart {
    min-width: 0;
  }
  .tooth-front-row {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 2px 1px;
  }
  /* Блок зубов выпущен во всю ширину экрана, а заголовок челюсти это
     обычная строка текста: возвращаем ему поле карточки, иначе он стоит
     у самого края и выпадает из колонки. */
  .implant-main .tooth-front-chart h3 {
    padding-inline: 30px;
  }
  .tooth-front-row::after {
    display: none;
  }
  .tooth-button {
    width: auto;
    min-width: 0;
  }
  /* Подписи «справа/слева» стояли двумя колонками над одним рядом. На двух
     строках они указывали бы не туда. */
  .tooth-sides {
    display: none;
  }
}

/* Планшет 768: шестнадцать зубов в ряд это 719 px, а внутри карточки
   остаётся 696. Не хватает ровно полей, поэтому блок зубов выпускаем во
   всю ширину экрана: 756 px, ряд помещается целиком и листать его не
   надо. Делить на восемь тут не за чем, места хватает. */
@media (min-width: 761px) and (max-width: 768px) {
  .tooth-scroll {
    overflow: visible;
    margin-inline: -36px;
    padding-inline: 6px;
  }
  .tooth-front-chart {
    min-width: 0;
  }
  .implant-main .tooth-front-chart h3 {
    padding-inline: 30px;
  }
}
