.section.calc{
  background:#fff8f3;
  padding-bottom:clamp(84px, 9vw, 128px);
}

.calc-wrap{
  max-width:1000px;
  margin:0 auto;
  background:#ffffff;
  border-radius:24px;
  box-shadow:0 14px 36px rgba(11,37,69,.14);
  overflow:hidden;
  display:grid;
  grid-template-columns:1.3fr 1fr;
}

.section.calc + .section,
.section.calc + .prices-sed,
.landing-calc-wrap.section.calc + .section,
.landing-calc-wrap.section.calc + .prices-sed{
  padding-top:clamp(84px, 9vw, 128px);
}

.calc-body{
  padding:40px;
}

.calc-row{
  margin-bottom:28px;
}

.calc-row:last-child{
  margin-bottom:0;
}

.calc-label{
  display:block;
  margin-bottom:14px;
  font-size:14px;
  font-weight:700;
  color:#0b2545;
}

.calc-label small{
  font-weight:500;
  color:#6f7f95;
  margin-left:6px;
}

.calc-opts{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.calc-opt{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:14px;
  border:2px solid transparent;
  background:#f5f8ff;
  font-size:14px;
  font-weight:600;
  color:#2a3f5f;
  cursor:pointer;
  transition:all .2s ease;
  text-align:center;
}
.calc-opt:focus-visible{
  outline:3px solid var(--mint-deep);
  outline-offset:2px;
}

.calc-opt:hover{
  background:#e9f7f3;
}

.calc-opt.active{
  background:var(--mint);
  color:var(--ink);
  border-color:var(--mint-deep);
  box-shadow:var(--shadow-mint);
}

.calc-slider-wrap{
  position:relative;
}

.calc-slider{
  width:100%;
  -webkit-appearance:none;
  appearance:none;
  height:8px;
  border-radius:4px;
  /* --calc-pct задаёт JS; без transition — thumb не «догоняет» курсор */
  --calc-pct:50%;
  background:linear-gradient(90deg,var(--mint) 0%,var(--mint) var(--calc-pct),var(--gray-light) var(--calc-pct));
  outline:none;
  margin:10px 0;
  transition:none;
  touch-action:none;
}

.calc-slider::-webkit-slider-thumb{
  -webkit-appearance:none;
  appearance:none;
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--white);
  cursor:pointer;
  border:3px solid var(--mint-deep);
  box-shadow:var(--shadow-sm);
  transition:none;
}

.calc-slider::-moz-range-thumb{
  width:28px;
  height:28px;
  border-radius:50%;
  background:var(--white);
  cursor:pointer;
  border:3px solid var(--mint-deep);
  transition:none;
}
.calc-slider:focus-visible{
  outline:3px solid var(--mint-deep);
  outline-offset:6px;
}
.calc-teeth-word{
  font-weight:700;
  color:inherit;
}
.calc-summary-live{
  margin:0;
}

.calc-slider-labels{
  display:flex;
  justify-content:space-between;
  margin-top:8px;
  font-size:12px;
  color:#6f7f95;
}

.calc-value{
  font-family:var(--font-head);
  font-size:16px;
  font-weight:700;
  color:var(--mint-deep);
}

.calc-summary{
  background:linear-gradient(145deg,#0b2545 0%,#173a63 100%);
  color:#fff;
  padding:40px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}

.calc-summary-label{
  display:inline-block;
  align-self:flex-start;
  padding:6px 12px;
  border-radius:999px;
  background:rgba(62,207,178,.2);
  color:#9ef0df;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
}

.calc-summary-title{
  margin:20px 0 4px;
  font-size:16px;
  opacity:.9;
}

.calc-summary-price{
  margin-bottom:10px;
  font-size:48px;
  line-height:1;
  font-weight:800;
  color:#ffe46b;
}

.calc-summary-range{
  margin-bottom:24px;
  font-size:13px;
  opacity:.75;
}

.calc-summary-details{
  margin-bottom:24px;
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.15);
  font-size:13px;
}

.calc-summary-details div{
  display:flex;
  justify-content:space-between;
  padding:4px 0;
}

.calc-summary-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
}
.calc-summary-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  width:100%;
  padding:16px;
  border-radius:999px;
  background:#ff7a6b;
  color:#fff;
  font-weight:700;
  text-decoration:none;
  border:none;
  cursor:pointer;
  font-family:inherit;
  font-size:inherit;
  box-sizing:border-box;
}
.calc-summary-btn--secondary{
  background:transparent;
  border:2px solid rgba(255,255,255,.9);
  color:#fff;
}
/* Тёмный блок итогов: при hover не оставлять тёмный текст на «стёкшейся» подложке (перебивает denta-cariesv3-shared). */
.calc-summary .calc-summary-btn--secondary:hover{
  background:rgba(255,255,255,.2);
  color:#fff;
  border-color:rgba(255,255,255,.95);
}

.calc-summary-note{
  margin-top:12px;
  font-size:11px;
  opacity:.6;
  text-align:center;
}

@media (max-width:1024px){
  .calc-wrap{
    grid-template-columns:1fr;
    gap:0;
  }
}

@media (max-width:640px){
  .calc-body,
  .calc-summary{
    padding:26px 20px;
  }

  .calc-summary-price{
    font-size:40px;
  }
  .calc-opt{
    min-height:44px;
  }
}

html[data-theme="dark"] .section.calc{
  background: var(--cream);
}
html[data-theme="dark"] .calc-wrap{
  background: var(--white);
}
html[data-theme="dark"] .calc-label{
  color: var(--ink);
}
html[data-theme="dark"] .calc-label small,
html[data-theme="dark"] .calc-slider-labels{
  color: var(--gray);
}
html[data-theme="dark"] .calc-opt{
  background: var(--cream);
  color: var(--ink-soft);
}
