/* DT506: unified card calculator styles */
.calc-wrap{ font-family:"Instrument Sans",sans-serif;  max-width:1200px; margin:0 auto; padding:40px 20px 80px; }
.calc-head h1, .calc-head h2{ font-size:38px; margin:0 0 10px; }
.calc-head p{ color:rgba(0,0,0,.65); max-width:78ch; line-height:1.45; margin:0; }

.calc-grid{
margin-top: 18px;
display:grid;
grid-template-columns: 1.2fr .8fr;
gap: 18px;
align-items: start;
}

.card{
background:#fff;
border:1px solid rgba(0,0,0,.06);
border-radius:16px;
box-shadow: var(--shadow-1);
padding: 18px;
}

.f-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-row3{ display:grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.route-row{ grid-template-columns: 1fr 1fr; }
.field-full{ grid-column: 1 / -1; }
.calc-dir-hidden{
display:none !important;
}
.field{ display:flex; flex-direction:column; gap:6px; }
.field label{
font-size: 12px;
letter-spacing:.06em;
text-transform:uppercase;
color: rgba(0,0,0,.58);
font-weight: 900;
}
.field .calc-exped-inline{
display: inline-flex;
align-items: center;
gap: 7px;
margin-top: 5px;
font-size: 11px;
line-height: 1.25;
letter-spacing: 0;
text-transform: none;
font-weight: 700;
color: rgba(30,38,48,.78);
}
.field .calc-exped-inline input{
width: 14px;
height: 14px;
margin: 0;
flex: 0 0 auto;
}
.inp{
width:100%;
height: 40px;
padding: 0 12px;
border-radius: 12px;
border: 1px solid rgba(0,0,0,.10);
background: rgba(255,255,255,.90);
font-weight: 700;
outline: none;
text-align: center;
line-height: 1.2;
}
select.inp{
appearance:none;
background-image:
linear-gradient(45deg, transparent 50%, rgba(0,0,0,.55) 50%),
linear-gradient(135deg, rgba(0,0,0,.55) 50%, transparent 50%);
background-position:
calc(100% - 18px) calc(50% - 3px),
calc(100% - 12px) calc(50% - 3px);
background-size: 6px 6px, 6px 6px;
background-repeat:no-repeat;
padding-right: 36px;
text-align-last: center;
}

.calc-range{
width: 100%;
height: 18px;
margin-top: 1px;
margin-bottom: 0;
padding: 0;
border: 0;
appearance: none;
-webkit-appearance: none;
background: transparent;
align-self: flex-end;
}

.calc-range:focus{
outline: none;
}

.calc-range::-webkit-slider-runnable-track{
height: 6px;
border-radius: 999px;
border: 1px solid rgba(0,0,0,.08);
background: linear-gradient(180deg, rgba(25,33,45,.16), rgba(25,33,45,.08));
box-shadow: none;
}

.calc-range::-webkit-slider-thumb{
-webkit-appearance: none;
width: 18px;
height: 18px;
margin-top: -7px;
border: 2px solid #fff;
border-radius: 50%;
background: #e52629;
box-shadow: 0 2px 8px rgba(13,18,27,.18);
cursor: pointer;
}

.calc-range::-moz-range-track{
height: 6px;
border-radius: 999px;
border: 1px solid rgba(0,0,0,.08);
background: linear-gradient(180deg, rgba(25,33,45,.16), rgba(25,33,45,.08));
box-shadow: none;
}

.calc-range::-moz-range-progress{
height: 6px;
border-radius: 999px;
background: #e52629;
}

.calc-range::-moz-range-thumb{
width: 18px;
height: 18px;
border: 2px solid #fff;
border-radius: 50%;
background: #e52629;
box-shadow: 0 2px 8px rgba(13,18,27,.18);
cursor: pointer;
}

.calc-range::-moz-focus-outer{
border: 0;
}

.field-city{
position: relative;
}

.calc-city-dd{
position: absolute;
top: calc(100% + 6px);
left: 0;
right: 0;
z-index: 45;
display: grid;
gap: 4px;
max-height: 260px;
overflow-y: auto;
padding: 8px;
border-radius: 12px;
border: 1px solid rgba(0,0,0,.12);
background: rgba(255,255,255,.98);
box-shadow: 0 20px 44px rgba(9,11,14,.18);
}

.calc-city-dd[hidden]{
display: none;
}

.calc-city-dd__item{
display: block;
width: 100%;
padding: 10px 12px;
border: 1px solid transparent;
border-radius: 10px;
background: transparent;
color: rgba(29,29,27,.92);
font-size: 14px;
font-weight: 700;
line-height: 1.2;
text-align: left;
cursor: pointer;
}

.calc-city-dd__item:hover,
.calc-city-dd__item.is-active{
border-color: rgba(229,38,41,.22);
background: rgba(229,38,41,.08);
color: rgba(19,19,19,.98);
}

.checks{ display:grid; gap:10px; margin-top: 10px; }
.chk{
display:flex; align-items:flex-start; gap:10px;
padding: 12px 12px;
border-radius: 12px;
border:1px solid rgba(0,0,0,.06);
background: rgba(0,0,0,.02);
}
.chk input{ margin-top:3px; }
.chk b{ display:block; }
.chk small{ display:block; color: rgba(0,0,0,.55); margin-top:2px; }

.calc-switch{
  position: relative;
}

.calc-switch input[type="checkbox"]{
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.calc-switch .calc-switch-ui{
  position: relative;
  width: 38px;
  min-width: 38px;
  height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.18);
  background: rgba(15,23,42,.14);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
  flex: 0 0 auto;
}

.calc-switch .calc-switch-ui::after{
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(9,11,14,.35);
  transition: transform .22s ease;
}

.calc-switch input[type="checkbox"]:checked + .calc-switch-ui{
  background: #e52629;
  border-color: #e52629;
}

.calc-switch input[type="checkbox"]:checked + .calc-switch-ui::after{
  transform: translateX(16px);
}

.calc-switch input[type="checkbox"]:focus-visible + .calc-switch-ui{
  box-shadow: none;
}

.field .calc-exped-inline.calc-switch{
  gap: 8px;
}

.chk.calc-switch{
  align-items: center;
}

.chk.calc-switch > div{
  flex: 1 1 auto;
}

.btn-row{ margin-top: 12px; display:flex; gap:10px; flex-wrap:wrap; }
.btn-outline{
display:inline-flex; align-items:center; justify-content:center;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(0,0,0,.10);
background: rgba(255,255,255,.82);
font-weight: 900;
cursor:pointer;
color: rgba(0,0,0,.80);
text-decoration:none;
white-space: nowrap;
}
.btn-outline:hover{ border-color: rgba(229,38,41,.25); }
.btn-primary{
display:inline-flex; align-items:center; justify-content:center;
padding: 12px 14px;
border-radius: 12px;
border: 1px solid rgba(229,38,41,.25);
background: #e52629;
font-weight: 900;
cursor:pointer;
color: #fff;
text-decoration:none;
white-space: nowrap;
}

.res-top{ display:flex; justify-content:space-between; gap:12px; align-items:flex-start; }
.price{
font-size: clamp(26px, 3.1vw, 34px);
font-weight: 900;
letter-spacing: -.02em;
color: rgba(29,29,27,.92);
line-height: 1.06 !important;
white-space: nowrap !important;
word-break: keep-all !important;
overflow-wrap: normal !important;
writing-mode: horizontal-tb !important;
text-orientation: mixed !important;
font-variant-numeric: tabular-nums;
}

#rTotal{
display: inline-block;
max-width: 100%;
white-space: nowrap !important;
word-break: keep-all !important;
overflow-wrap: normal !important;
writing-mode: horizontal-tb !important;
text-orientation: mixed !important;
}

#rRule{
display: none !important;
}
.mono{ font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-weight: 800; }
.muted{ color: rgba(0,0,0,.58); }

.breakdown{ margin-top: 10px; display:grid; gap:10px; }
.line{
display:flex; justify-content:space-between; gap:12px;
padding: 10px 12px;
border-radius: 12px;
border:1px solid rgba(0,0,0,.06);
background: rgba(0,0,0,.02);
font-weight: 800;
}
.hint{ margin-top: 10px; font-size: 12px; color: rgba(0,0,0,.55); line-height: 1.35; }
.calc-spec-note{ display:flex; align-items:flex-start; gap:8px; margin-top:10px; padding:10px 12px; border-radius:10px; background:rgba(37,99,235,.07); border:1px solid rgba(37,99,235,.18); font-size:12px; line-height:1.4; color:rgba(0,0,0,.75); }
.calc-spec-note i{ flex-shrink:0; font-size:14px; color:#2563eb; margin-top:1px; }
.calc-spec-note a{ color:#2563eb; font-weight:600; text-decoration:underline; }

@media(max-width:980px){
.calc-grid{ grid-template-columns: 1fr; }
.calc-head h1, .calc-head h2{ font-size: 32px; }
.route-row{ grid-template-columns: 1fr; }
}

html[data-theme="dark"] .calc-city-dd{
border-color: rgba(255,255,255,.16);
background: rgba(16,18,22,.97);
box-shadow: 0 20px 44px rgba(0,0,0,.45);
}

html[data-theme="dark"] .calc-city-dd__item{
color: rgba(242,244,247,.90);
}

html[data-theme="dark"] .calc-city-dd__item:hover,
html[data-theme="dark"] .calc-city-dd__item.is-active{
border-color: rgba(229,38,41,.42);
background: rgba(229,38,41,.16);
color: rgba(255,255,255,.97);
}
html[data-theme="dark"] .field .calc-exped-inline{
color: rgba(219,229,244,.78);
}

html[data-theme="dark"] .calc-switch .calc-switch-ui{
  border-color: rgba(255,255,255,.18);
  background: rgba(15,23,42,.14);
  box-shadow: none;
}
html[data-theme="dark"] .calc-switch input[type="checkbox"]:checked + .calc-switch-ui{
  border-color: #e52629;
  background: #e52629;
  box-shadow: none;
}

html[data-theme="dark"] .calc-range::-webkit-slider-runnable-track{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
}

html[data-theme="dark"] .calc-range::-webkit-slider-thumb{
  border-color: rgba(255,255,255,.18);
  background: #e52629;
  box-shadow: none;
}

html[data-theme="dark"] .calc-range::-moz-range-track{
  border-color: rgba(255,255,255,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.08));
}

html[data-theme="dark"] .calc-range::-moz-range-progress{
  background: #e52629;
}

html[data-theme="dark"] .calc-range::-moz-range-thumb{
  border-color: rgba(255,255,255,.18);
  background: #e52629;
  box-shadow: none;
}

/* DT507c: service list styles for dynamic services (fix missing labels/spacing) */
#cServices{
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.svc-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid rgba(0,0,0,.06);
  background: rgba(0,0,0,.02);
  font-weight: 800;
  cursor: pointer;
  user-select: none;
}

.svc-item input[type="checkbox"]{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.svc-title{
  flex: 1 1 auto;
  color: rgba(0,0,0,.85);
}

.svc-price{
  flex: 0 0 auto;
  white-space: nowrap;
  color: rgba(0,0,0,.62);
}

/* DT507d: tune service item typography (prevent giant titles) */
#cServices .svc-item{
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  padding: 14px 14px;
}

#cServices .svc-title{
  font-size: 16px;
  font-weight: 700;
}

#cServices .svc-price{
  font-size: 14px;
  font-weight: 600;
  color: rgba(0,0,0,.58);
}

#cServices .svc-item input[type="checkbox"]{
  margin-top: 0;
}

/* DT507e: compact services block (less vertical space) */
#cServices{
  margin-top: 10px;
  gap: 8px;
}

@media (min-width: 860px){
  #cServices{
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

#cServices .svc-item{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.015);
}

#cServices .svc-title{
  font-size: 15px;
  font-weight: 700;
}

#cServices .svc-price{
  font-size: 13px;
}

#cServices .svc-item input[type="checkbox"]{
  width: 15px;
  height: 15px;
}

/* DT508: dark theme polish for calculator page */
html[data-theme="dark"] .calc-wrap{
  color: rgba(241,245,255,.92);
}

html[data-theme="dark"] .calc-head p{
  color: rgba(214,224,240,.75);
}

html[data-theme="dark"] .calculator-page .card{
  background: rgba(19,23,31,.88);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 14px 34px rgba(0,0,0,.34);
}

html[data-theme="dark"] .calculator-page .field label{
  color: rgba(225,233,247,.78);
}

html[data-theme="dark"] .calculator-page .inp{
  background: rgba(12,16,24,.88);
  border-color: rgba(255,255,255,.16);
  color: rgba(243,247,255,.95);
}

html[data-theme="dark"] .calculator-page .inp::placeholder{
  color: rgba(208,220,238,.48);
}

html[data-theme="dark"] .calculator-page select.inp{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(225,233,247,.74) 50%),
    linear-gradient(135deg, rgba(225,233,247,.74) 50%, transparent 50%);
}

html[data-theme="dark"] .calculator-page .btn-outline{
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(236,242,252,.9);
}

html[data-theme="dark"] .calculator-page .btn-outline:hover{
  border-color: rgba(229,38,41,.45);
  background: rgba(229,38,41,.12);
}

html[data-theme="dark"] .calculator-page .muted,
html[data-theme="dark"] .calculator-page .hint,
html[data-theme="dark"] .calculator-page .chk small,
html[data-theme="dark"] .calculator-page .svc-price{
  color: rgba(214,224,240,.74);
}

html[data-theme="dark"] .calculator-page .price,
html[data-theme="dark"] .calculator-page .svc-title{
  color: rgba(247,250,255,.96);
}

html[data-theme="dark"] .calculator-page .chk,
html[data-theme="dark"] .calculator-page .line,
html[data-theme="dark"] .calculator-page #cServices .svc-item{
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
}

html[data-theme="dark"] .calculator-page .calc-result-badge{
  border-color: rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: rgba(225,233,247,.9);
}

/* DT509: final graphite-only dark theme for calculator */
html[data-theme="dark"] body#top.calculator-page #calculator,
html[data-theme="dark"] body#top.calculator-page #calculator .calc-wrap,
html[data-theme="dark"] body#top.calculator-page #calculator .calc-grid,
html[data-theme="dark"] body#top.calculator-page #calculator .calc-head,
html[data-theme="dark"] body#top.calculator-page #calculator .calc-head p{
  background-image: none !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .card,
html[data-theme="dark"] body#top.calculator-page #calculator section.card,
html[data-theme="dark"] body#top.calculator-page #calculator aside.card{
  background: #101010 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.12) !important;
  box-shadow: 0 16px 34px rgba(0,0,0,.42) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .inp,
html[data-theme="dark"] body#top.calculator-page #calculator input.inp,
html[data-theme="dark"] body#top.calculator-page #calculator select.inp,
html[data-theme="dark"] body#top.calculator-page #calculator textarea.inp{
  background: #121212 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.16) !important;
  color: #f3f3f3 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator select.inp{
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(243,243,243,.7) 50%),
    linear-gradient(135deg, rgba(243,243,243,.7) 50%, transparent 50%) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator :is(.chk, .line, #cServices .svc-item, .calc-result-badge){
  background: #151515 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.12) !important;
  color: #f1f1f1 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator :is(.muted, .hint, .chk small, .svc-price){
  color: rgba(241,241,241,.72) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator :is(.price, .svc-title, .calc-section-title, h1, h2, h3, strong, b){
  color: #f7f7f7 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-switch .calc-switch-ui{
  background: #1a1a1a !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.18) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-switch input[type="checkbox"]:checked + .calc-switch-ui{
  background: #e52629 !important;
  background-image: none !important;
  border-color: #e52629 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-switch .calc-switch-ui::after{
  background: #ffffff !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-range::-webkit-slider-runnable-track,
html[data-theme="dark"] body#top.calculator-page #calculator .calc-range::-moz-range-track{
  background: #1d1d1d !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.12) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-city-dd{
  background: #101010 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.14) !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.48) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-city-dd__item{
  background: transparent !important;
  color: #f1f1f1 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-city-dd__item:hover,
html[data-theme="dark"] body#top.calculator-page #calculator .calc-city-dd__item.is-active{
  background: rgba(229,38,41,.14) !important;
  border-color: rgba(229,38,41,.34) !important;
  color: #ffffff !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator :is(.btn-outline, .calc-route-swap){
  background: #141414 !important;
  background-image: none !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #f1f1f1 !important;
  box-shadow: none !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator :is(.btn-outline, .calc-route-swap):hover{
  background: #1a1a1a !important;
  border-color: rgba(255,255,255,.22) !important;
  color: #ffffff !important;
}

/* DT510: fix delivery type select layout */
body#top.calculator-page #calculator .field{
  position: relative;
}

body#top.calculator-page #calculator .field.field-full{
  gap: 8px;
}

body#top.calculator-page #calculator .field > select.inp{
  min-height: 48px !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  text-align: left !important;
  text-align-last: left !important;
  padding-left: 14px !important;
}

body#top.calculator-page #calculator .field:has(> select.inp) > label[for]:not(.calc-exped-inline):not(.calc-label-hidden){
  position: static !important;
  transform: none !important;
  background: transparent !important;
  padding: 0 !important;
  color: rgba(0,0,0,.58) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: .06em !important;
  line-height: 1.2 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator .field:has(> select.inp) > label[for]:not(.calc-exped-inline):not(.calc-label-hidden){
  background: transparent !important;
  color: rgba(225,233,247,.78) !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator #cMode.inp{
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-color: #121212 !important;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(243,243,243,.72) 50%),
    linear-gradient(135deg, rgba(243,243,243,.72) 50%, transparent 50%) !important;
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px) !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
  color: #f3f3f3 !important;
}

html[data-theme="dark"] body#top.calculator-page #calculator #cMode.inp option{
  background: #121212 !important;
  color: #f3f3f3 !important;
}

/* DT511: typography and alignment polish for calculator */
body#top.calculator-page #calculator .calc-head{
  margin-bottom: 6px;
}

body#top.calculator-page #calculator .calc-head h1{
  line-height: 1.02;
  letter-spacing: -.02em;
}

body#top.calculator-page #calculator .calc-head p{
  font-size: 15px;
  line-height: 1.55;
  max-width: 72ch;
}

body#top.calculator-page #calculator .calc-section-title{
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
  color: rgba(0,0,0,.58);
}

body#top.calculator-page #calculator .field label{
  line-height: 1.2;
}

body#top.calculator-page #calculator .inp,
body#top.calculator-page #calculator input.inp,
body#top.calculator-page #calculator select.inp{
  font-size: 15px;
  line-height: 1.25;
}

body#top.calculator-page #calculator #cFromCity,
body#top.calculator-page #calculator #cToCity,
body#top.calculator-page #calculator #cPlaces,
body#top.calculator-page #calculator #cWeight,
body#top.calculator-page #calculator #cVolume{
  text-align: left;
  padding-left: 14px;
}

body#top.calculator-page #calculator .calc-exped-inline{
  font-size: 12px;
  line-height: 1.35;
}

body#top.calculator-page #calculator .chk{
  align-items: center;
  min-height: 66px;
}

body#top.calculator-page #calculator .chk b,
body#top.calculator-page #calculator #cServices .svc-title{
  font-size: 15px;
  line-height: 1.3;
}

body#top.calculator-page #calculator .chk small,
body#top.calculator-page #calculator #cServices .svc-price,
body#top.calculator-page #calculator .hint{
  line-height: 1.45;
}

body#top.calculator-page #calculator .calc-result-meta{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

body#top.calculator-page #calculator .calc-result-badge{
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
}

body#top.calculator-page #calculator .breakdown{
  margin-top: 14px;
}

body#top.calculator-page #calculator .line{
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  line-height: 1.3;
}

body#top.calculator-page #calculator .btn-row{
  align-items: center;
}

html[data-theme="dark"] body#top.calculator-page #calculator .calc-head p,
html[data-theme="dark"] body#top.calculator-page #calculator .chk small,
html[data-theme="dark"] body#top.calculator-page #calculator #cServices .svc-price,
html[data-theme="dark"] body#top.calculator-page #calculator .hint,
html[data-theme="dark"] body#top.calculator-page #calculator .muted{
  color: rgba(241,241,241,.76) !important;
}

html[data-theme="dark"] .calc-spec-note{ background:rgba(59,130,246,.1); border-color:rgba(59,130,246,.25); color:rgba(220,235,255,.85); }
html[data-theme="dark"] .calc-spec-note i{ color:#60a5fa; }
html[data-theme="dark"] .calc-spec-note a{ color:#60a5fa; }

html[data-theme="dark"] body#top.calculator-page #calculator .calc-section-title,
html[data-theme="dark"] body#top.calculator-page #calculator .field label{
  color: rgba(229,233,240,.82) !important;
}

/* DT_MOBILE_FIX_1: iOS Safari auto-zoom prevention — font-size must be ≥16px on inputs */
@media (max-width: 768px) {
  .inp,
  input.inp,
  select.inp,
  textarea.inp {
    font-size: 16px !important;
  }
}

/* DT_MOBILE_FIX_2: price block overflow on narrow screens */
@media (max-width: 480px) {
  .res-top {
    flex-direction: column;
    gap: 6px;
  }
  .price {
    white-space: normal !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
}
