.callback-card {
  width: min(34.7rem, calc(100% - 2rem));
  box-sizing: border-box;
  margin: clamp(2.5rem, 6vw, 6rem) auto;
  padding: clamp(1rem, 2.5vw, 1.75rem);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  color: var(--ink);
  border-radius: clamp(1rem, 3vw, 2.25rem);
}
.callback-card h2 {margin: 0 auto .6rem; max-width: 22ch; text-align: center; font: normal clamp(1.5rem, 3.5vw, 2.27rem)/1.08 var(--editorial-face, 'Golos Text', Arial, sans-serif); color: var(--ink)}
.callback-card form {display: grid; gap: .5625rem; min-width: 0}
.callback-fields {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5625rem}
.callback-field {display: block; position: relative; min-width: 0}
.callback-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.callback-flag {
  position: absolute;
  inset-inline-start: .8rem;
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 1.125rem;
  aspect-ratio: 3 / 2;
  border-radius: 3px;
  background: linear-gradient(#fff 0 33.333%, #17459c 33.333% 66.667%, #ce2931 66.667%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ink) 12%, transparent);
  pointer-events: none;
}
html:root body .callback-card .callback-phone input[type=tel] {padding-inline-start: 2.5rem}
body #callback :is(input:not([type=checkbox]), textarea) {width: 100%; box-sizing: border-box; border: 1px solid var(--muted); border-radius: .8rem; color: var(--ink); background: var(--paper); padding: .55rem .75rem; font: inherit; font-size: 1rem; line-height: 1.4; min-height: 44px; margin: 0}
.callback-card :is(input,textarea)::placeholder {font-weight: 400}
body #callback .callback-field {margin: 0; gap: 0}
body #callback textarea {display: block; height: 4rem; min-height: 4rem; resize: vertical}
body #callback .request-consent {grid-template-columns: 44px minmax(0,1fr); align-items: center; gap: .125rem; font-size: .875rem; margin-block: 0}
body #callback .request-consent a {display: flex; align-items: center; min-height: 44px}
body #callback .request-consent input {appearance: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; padding: 0}
body #callback .request-consent input::before {content: ""; width: 20px; height: 20px; box-sizing: border-box; border: 1.5px solid var(--muted); border-radius: 4px; background: var(--paper)}
body #callback .request-consent input:checked::before {content: "✓"; text-align: center; background: var(--accent); color: var(--paper); border-color: var(--accent); font: bold 16px/18px sans-serif}
@media (forced-colors: active) {
  body #callback .request-consent input:checked::before {background: Highlight; color: HighlightText}
}
body #callback .button {justify-self: center; min-height: 44px; padding: .5rem 1.3rem}
.callback-card [data-form-status] {text-align: center}
.callback-card [data-form-status]:empty {display: none}
body main .request-consent {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: .75rem;
  color: var(--muted);
  font-size: .9375rem;
  font-weight: 400;
  line-height: 1.5;
  margin-block: .6rem;
}
body main .request-consent input[type=checkbox] {
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
body main .request-consent a {
  color: var(--accent-hover);
  font-weight: 550;
  width: fit-content;
}
body main .request-consent :is(input, a):focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}
.request-required {color: #ff9a97; font: 700 1em/1 system-ui, sans-serif}
html[data-site-theme="light"] .request-required {color: #b51a24}
@media(max-width: 600px){.callback-fields {grid-template-columns: minmax(0,1fr)}}
