.dental-profile {
  margin-top: clamp(16px, 2vw, 28px);
}

.dental-profile h2 {
  font-size: clamp(25px, 3.6vw, 38px);
}

.dental-profile .calculator-lead {
  margin: 10px 0 22px;
  color: var(--muted);
}

.dental-profile form {
  max-width: 760px;
  margin-inline: auto;
}

.dental-profile .calculator-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  padding: clamp(16px, 4vw, 32px);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.dental-profile label {
  font-size: 15px;
  font-weight: 700;
}

.dental-profile :is(input[type="text"], select) {
  display: block;
  width: 100%;
  min-height: 58px;
  margin-top: 5px;
  padding: 12px;
  border: 1px solid #dce2d8;
  border-radius: 13px;
  background: #fafbf9;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 400;
}

.dental-profile .calculator-checks { margin-top: 12px; }
.dental-profile .calculator-checks label {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 44px;
}
.dental-profile input[type="checkbox"] {
  flex: none;
  width: 22px;
  height: 22px;
  accent-color: var(--red);
}

.dental-profile .small { font-size: 14px; color: var(--muted); }
.dental-profile button[type="submit"] { margin-top: 18px; }
.dental-profile button:disabled { opacity: .6; cursor: default; }
.dental-profile [data-calculator-status]:empty { display: none; }
.dental-profile [data-calculator-status] { margin-top: 13px; }
.dental-profile [data-calculator-result] {
  border-top: 1px solid var(--line);
  margin-top: 23px;
  padding-top: 20px;
}
.dental-profile [data-calculator-result] > h3 {
  margin-bottom: 7px;
  scroll-margin-top: 24px;
}

.dental-profile .calculator-related {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 18px;
}
.dental-profile .calculator-related .text-link { text-decoration: underline; }

.dental-profile .comparison-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 26px 0 20px;
}
.dental-profile .comparison-controls, .dental-reference .dental-jump {
  position: static;
  z-index: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dental-profile .comparison-position { margin-right: auto; font-size: 14px; color: var(--muted); }
.dental-profile .comparison-controls button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}
.dental-profile .comparison-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(275px, calc((100% - 36px) / 3));
  grid-template-rows: repeat(var(--comparison-rows), auto);
  gap: 0 18px;
  list-style: none;
  margin: 0 0 24px;
  padding: 0 0 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.dental-profile .comparison-card {
  grid-row: span var(--comparison-rows);
  display: grid;
  grid-template-rows: subgrid;
  gap: 12px;
  min-width: 0;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: white;
  scroll-snap-align: start;
  overflow-wrap: anywhere;
}
.dental-profile .comparison-card-heading { padding: 6px 0 10px; min-width: 0; }
.dental-profile .comparison-card-heading img {
  display: block;
  max-width: min(100%, 160px);
  height: 48px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 16px;
}
.dental-profile .comparison-card-heading h4 { font-size: 22px; line-height: 1.2; }
.dental-profile .comparison-price { min-height: 76px; padding-bottom: 8px; }
.dental-profile .comparison-price p { font-size: 16px; line-height: 1.5; }
.dental-profile .comparison-price p:first-child { font-weight: 750; color: var(--ink); }
.dental-profile .comparison-benefit {
  background: var(--soft);
  border-radius: 11px;
  padding: 14px 12px;
  font-size: 16px;
  line-height: 1.5;
}
.dental-profile .comparison-benefit strong { display: block; font-size: 14px; margin-bottom: 4px; }
.dental-profile details { padding-top: 8px; font-size: 14px; line-height: 1.5; }
.dental-profile summary { cursor: pointer; }
.dental-profile .comparison-card details p { margin: 12px 0; }
.dental-profile .dental-price-card .comparison-price .dental-price-amount {
  margin: 0;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 750;
  color: var(--ink);
}
.dental-profile .dental-price-entry + .dental-price-entry { margin-top: 10px; }
.dental-profile .dental-price-note {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted);
}
.dental-reference {
  margin-top: clamp(30px, 5vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

@media (max-width: 700px) {
  .dental-profile .calculator-fields { grid-template-columns: 1fr; }
  .dental-profile .comparison-columns { grid-auto-columns: calc(100% - 28px); gap: 0 14px; }
  .dental-profile .comparison-card { padding: 20px 16px; }
}

.dental-reference-disclosure {
  margin-block: clamp(22px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding-inline: clamp(15px, 3vw, 24px);
}
.dental-reference-disclosure > summary {
  min-height: 48px;
  padding-block: 12px;
  font-weight: 750;
  cursor: pointer;
}
.dental-reference-disclosure > summary::marker { color: var(--red); }
.dental-reference-disclosure .dental-reference { margin-top: 0; }
.dental-reference-disclosure .visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
