/* Existing calculators, contact choices and steps share the site's type and theme. */
.cb-contact-pair {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(16rem, .8fr);
  gap: clamp(.85rem, 2vw, 1.4rem);
}
#contacts .cb-contact-pair .contact-panel {margin: 0; min-width: 0;}
.cb-chat-qr {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.35rem;
  color: #fff7f5;
  background: linear-gradient(135deg, #54172c, #872e4a);
  padding: clamp(1.3rem, 2.7vw, 2.6rem);
  border-radius: 1.5rem;
}
#contacts .cb-chat-qr h3 {margin: 0; color: inherit; font-size: clamp(1.35rem, 2vw, 1.85rem); line-height: 1.15;}
#contacts .cb-chat-qr p {margin: .65rem 0 0; color: #f3dfe4; line-height: 1.5;}
.cb-chat-qr img {display: block; width: 148px; height: auto; border-radius: .55rem; background: white; image-rendering: pixelated;}
.cb-service-help, .cb-catalog-help {padding-block: .9rem;}
.cb-contact-pair + .cb-help {margin-top: 1rem;}
.cb-help {
  color: var(--ed-ink, var(--text, #281d22));
  background: var(--ed-soft, var(--accent-bg, #f3edef));
  border: 1px solid var(--border, #bba8af);
  border-radius: 1.1rem;
  box-sizing: border-box;
  overflow: clip;
}
.cb-help summary {
  display: flex; justify-content: space-between; align-items: center; gap: .75rem;
  min-height: 56px; padding: .8rem 1.3rem; cursor: pointer;
  font: inherit; font-weight: 650; color: inherit; list-style: none;
}
.cb-help summary::-webkit-details-marker {display: none;}
.cb-help summary::after {content: ""; width: .55rem; height: .55rem; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-right: .25rem;}
.cb-help[open] summary::after {transform: rotate(225deg);}
.cb-help summary:focus-visible {outline: 2px solid currentColor; outline-offset: -5px;}
.cb-help-content {padding: .6rem 1.3rem 1.25rem; display: grid; grid-template-columns: minmax(11rem,.75fr) 1.5fr; gap: 1rem;}
.cb-help .cb-help-content p {color: inherit; font-weight: 600; margin: 0 0 .45rem;}
.cb-channels {display: flex; gap: .45rem;}
.cb-help .cb-channels a {display: inline-grid; place-items: center; min-width: 44px; min-height: 44px;}
.cb-help nav {display: grid; gap: .15rem;}
.cb-help nav a {display: flex; align-items: center; min-height: 44px; width: fit-content; color: inherit; text-decoration: underline; text-underline-offset: .2em;}
html[data-theme="dark"] #client-help {color: #f7eff2; background: #382933; border-color: #785969;}
html[data-theme="dark"] #client-help :is(summary,nav a,.cb-help-content p) {color: #f7eff2;}
#sales-estimate [data-st-estimate]:not([hidden]) {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 3rem); max-inline-size: none; max-width: none;
  padding: clamp(1rem, 2.4vw, 2.2rem); align-items: stretch;
}
#sales-estimate [data-st-estimate] .st-fields {display: grid; grid-template-columns: minmax(0,1fr); align-content: center; gap: 1rem; margin: 0;}
#sales-estimate [data-st-estimate] .st-number, #sales-estimate [data-st-estimate] fieldset {max-inline-size: none; min-width: 0;}
#sales-estimate [data-st-estimate] .st-number input {box-sizing: border-box; min-height: 44px; width: 100%; max-width: 100%; font-variant-numeric: tabular-nums;}
#sales-estimate .cb-est-result {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  min-width: 0; gap: .85rem; padding: clamp(1.2rem,2.7vw,2.25rem);
  background: linear-gradient(125deg,#5c1a32,#8c3653); color: #fff9f7; border-radius: 1.1rem;
}
#sales-estimate .cb-est-result h3 {margin: 0; color: inherit; font-size: clamp(1.3rem, 2vw, 1.9rem); line-height: 1.13;}
#sales-estimate .cb-est-result .st-total {color: #fff; margin: 0; font-size: 1.18rem; line-height: 1.45; overflow-wrap: anywhere;}
#sales-estimate .cb-est-result .st-total:empty, #sales-estimate .st-total:not(:empty) + .cb-est-hint {display: none;}
#sales-estimate .cb-est-result .cb-est-hint {margin: 0; color: #f5e1e6; line-height: 1.5;}
#sales-estimate .cb-est-result button.st-button {
  order: 1; margin: auto 0 0; min-height: 46px; max-width: 100%; padding: .7rem 1.15rem;
  color: #651e38; background: #fff6f1; border: 1px solid transparent; border-radius: 3rem;
  white-space: normal; font-size: 1rem; text-align: center;
}
#sales-estimate .cb-est-result button:focus-visible {outline: 3px solid white; outline-offset: 3px;}
#sales-compare .sl-grid > .sl-card {
  border: 1px solid #443640; border-radius: 1.15rem; background: #262128; color: #f7f1f3;
  padding: clamp(1.2rem, 2.2vw, 2rem);
}
#sales-compare .sl-card h3 {margin-top: 0; color: #fff9fa;}
#sales-compare .sl-card p {margin: .9rem 0 0; color: #f2eaf0; line-height: 1.52;}
#sales-compare .sl-card p + p {padding-top: .9rem; border-top: 1px solid #655560;}
#sales-compare .sl-card p strong {display: block; margin-bottom: .28rem; color: #ffbfd2;}
.service-edition main #sales-stages .sl-stages {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,14rem),1fr));
  padding: 0; gap: .85rem; counter-reset: cb-stage; list-style: none;
}
.service-edition main #sales-stages .sl-stages > li {
  margin: 0; padding: 1.3rem; border-radius: 1rem; background: var(--ed-soft,var(--accent-bg));
}
.service-edition main #sales-stages .sl-stages > li::before {
  counter-increment: cb-stage; content: counter(cb-stage);
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  margin-bottom: 1rem; border: 1px solid currentColor; border-radius: 50%;
  font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--ed-wine,currentColor);
}
@media (max-width: 760px) {
  .cb-contact-pair, #sales-estimate [data-st-estimate]:not([hidden]) {grid-template-columns: minmax(0,1fr);}
  .cb-chat-qr {display: none;}
  #sales-estimate .cb-est-result {gap: .75rem;}
  #sales-estimate .cb-est-result button.st-button {margin-top: .2rem;}
}
@media (max-width: 560px) {
  .cb-help-content {grid-template-columns: 1fr;}
  .cb-help summary, .cb-help-content {padding-inline: 1rem;}
}
