:root {
  --background: #f5f6f5; --surface: #fff; --text: #18211e; --muted: #626b65;
  --line: #d7ddd8; --accent: #176345; --accent-hover: #104e35; --error: #a02720;
  --note: #f5f0de; --radius: 8px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.5; color: var(--text); background: var(--background);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { max-width: 944px; margin: 0 auto; padding: 48px 32px 32px; }
.brand { margin: 0 0 16px; font-size: 16px; font-weight: 700; color: var(--accent); }
h1 { margin: 0; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; letter-spacing: -.025em; }
h2 { margin: 0 0 24px; font-size: 22px; line-height: 1.3; }
p { margin: 0 0 16px; }
.intro { color: var(--muted); margin: 16px 0 24px; }
.steps { display: flex; list-style: none; gap: 32px; margin: 0 0 32px; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.steps li { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.steps span { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; }
.steps li[aria-current] { color: var(--accent); font-weight: 600; }
.steps li[aria-current] span { background: var(--accent); border-color: var(--accent); color: white; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 256px; gap: 32px; align-items: start; }
.panel { padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
input:not([type="checkbox"]) { display: block; width: 100%; min-width: 0; min-height: 48px; padding: 12px; margin-bottom: 20px; border: 1px solid #aab4ac; border-radius: 4px; background: var(--surface); color: var(--text); font: inherit; }
#phone { margin-bottom: 8px; }
.hint { color: var(--muted); font-size: 13px; margin-bottom: 20px; }
.optional { font-weight: 400; font-size: 12px; color: var(--muted); }
.fields-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
button { cursor: pointer; font: inherit; }
.primary { width: 100%; min-height: 48px; border: none; border-radius: 4px; padding: 12px 16px; font-weight: 600; background: var(--accent); color: #fff; }
.primary:hover:not(:disabled) { background: var(--accent-hover); }
.primary:disabled { background: #dfe5e0; color: #515b54; cursor: not-allowed; }
:focus-visible { outline: 3px solid #6cab8e; outline-offset: 3px; }
.consent { display: flex; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 13px; margin: 4px 0 24px; }
.consent input { accent-color: var(--accent); width: 18px; height: 18px; flex-shrink: 0; margin: 2px 0; }
a { color: var(--accent); text-underline-offset: 3px; }
.captcha-block { margin-bottom: 24px; }
#captcha-container { min-height: 72px; }
.captcha-block .hint { margin: 8px 0; }
.text-button { border: 0; padding: 8px 0; color: var(--accent); background: transparent; text-decoration: underline; text-underline-offset: 3px; font-size: 13px; text-align: left; }
.password-note { padding: 24px; background: var(--note); border-radius: var(--radius); }
.password-note h2 { font-size: 16px; margin-bottom: 12px; }
.password-note p { font-size: 14px; margin-bottom: 12px; }
.password-note p:last-child { margin-bottom: 0; }
.aside-note { color: var(--muted); font-size: 13px; margin-top: 24px; }
.error { font-size: 14px; padding: 12px; background: #fff1ef; color: var(--error); border-left: 3px solid var(--error); overflow-wrap: anywhere; }
.call-number { display: block; font-size: clamp(24px, 4vw, 32px); font-weight: 700; margin: 24px 0; text-decoration: none; overflow-wrap: anywhere; }
.verification-state { padding: 16px 0; border-top: 1px solid var(--line); }
.success-mark { width: 48px; height: 48px; display: grid; place-items: center; background: #e7f3eb; color: var(--accent); border-radius: 50%; font-size: 28px; margin-bottom: 24px; }
.diagnostics { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 13px; color: var(--muted); }
summary { cursor: pointer; width: fit-content; }
dl { margin: 16px 0; }
dl div { display: flex; gap: 16px; margin: 8px 0; }
dt { width: 150px; flex-shrink: 0; }
dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 16px; background: var(--surface); color: var(--text); }
@media (max-width: 720px) {
  main { padding: 24px 16px; }
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .panel { padding: 24px; }
  .steps { gap: 24px; }
}
@media (max-width: 380px) {
  .fields-row { grid-template-columns: 1fr; gap: 0; }
  .panel { padding: 16px; }
  .steps { gap: 16px; }
  dl div { flex-direction: column; gap: 4px; }
}
@media (max-width: 350px) {
  main { padding-inline: 8px; }
  /* Yandex's slider requires at least 300px; use the panel's full width. */
  #captcha-container, #incoming-captcha-container { margin-inline: -16px; width: calc(100% + 32px); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } }
