.ofmkz {
  --ofmkz-brand: #a81c38;
  --ofmkz-brand-dark: #8f1830;
  --ofmkz-brand-soft: #fff4f6;
  --ofmkz-ink: #111827;
  --ofmkz-ink-soft: #475569;
  --ofmkz-line: #ecd3d8;
  --ofmkz-panel: #ffffff;
  --ofmkz-bg: #fbf7f8;
  --ofmkz-success: #0f766e;
  --ofmkz-warning: #9a3412;
  --ofmkz-radius: 20px;
  --ofmkz-shadow: 0 18px 48px rgba(168, 28, 56, .08);
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 24px 16px 56px;
  color: var(--ofmkz-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.ofmkz *,
.ofmkz *::before,
.ofmkz *::after {
  box-sizing: border-box;
}

.ofmkz button,
.ofmkz input,
.ofmkz textarea {
  font: inherit;
}

.ofmkz input,
.ofmkz textarea {
  accent-color: var(--ofmkz-brand);
}

.ofmkz h1,
.ofmkz h2,
.ofmkz h3,
.ofmkz p {
  margin-top: 0;
}

.ofmkz__shell {
  overflow: hidden;
  border: 1px solid rgba(168, 28, 56, .12);
  border-radius: 28px;
  background: var(--ofmkz-panel);
  box-shadow: var(--ofmkz-shadow);
}

.ofmkz__intro {
  padding: 28px 28px 22px;
  border-bottom: 1px solid rgba(168, 28, 56, .08);
  background: #fff;
}

.ofmkz__badge,
.ofmkz__step-tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--ofmkz-brand-soft);
  color: var(--ofmkz-brand-dark);
  font-weight: 800;
}

.ofmkz__badge {
  padding: 8px 12px;
  border: 1px solid rgba(168, 28, 56, .14);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ofmkz__intro h1 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
}

.ofmkz__intro p {
  max-width: 780px;
  margin: 14px 0 0;
  color: var(--ofmkz-ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.ofmkz__progress {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  padding: 20px 28px 0;
}

.ofmkz__progress-item {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid rgba(168, 28, 56, .10);
  border-radius: 18px;
  background: #fff;
  color: #64748b;
}

.ofmkz__progress-item small {
  display: block;
  margin-bottom: 4px;
  color: var(--ofmkz-brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ofmkz__progress-item strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.ofmkz__progress-item.is-current {
  border-color: rgba(168, 28, 56, .25);
  background: rgba(168, 28, 56, .08);
  color: var(--ofmkz-ink);
}

.ofmkz__progress-item.is-done {
  background: rgba(168, 28, 56, .06);
  color: var(--ofmkz-ink);
}

.ofmkz__form-body {
  padding: 24px 28px 30px;
}

.ofmkz__step {
  display: none;
}

.ofmkz__step.is-active {
  display: block;
}

.ofmkz__step-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.ofmkz__step-tag {
  padding: 8px 12px;
  font-size: 13px;
}

.ofmkz__step-head h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.18;
}

.ofmkz__step-head p {
  max-width: 720px;
  margin: 10px 0 0;
  color: var(--ofmkz-ink-soft);
  line-height: 1.7;
}

.ofmkz__step-note {
  color: var(--ofmkz-brand-dark);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.ofmkz__stack {
  display: grid;
  gap: 16px;
}

.ofmkz__card {
  padding: 20px;
  border: 1px solid rgba(168, 28, 56, .10);
  border-radius: 22px;
  background: #fff;
}

.ofmkz__card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
}

.ofmkz__help-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.ofmkz__help-row h3 {
  margin: 0;
}

.ofmkz__help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(168, 28, 56, .22);
  border-radius: 999px;
  padding: 8px 11px;
  background: #fff;
  color: var(--ofmkz-brand-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.ofmkz__help-button:hover,
.ofmkz__help-button:focus-visible {
  border-color: var(--ofmkz-brand);
  background: var(--ofmkz-brand-soft);
  outline: 0;
}

.ofmkz__help-button::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ofmkz-brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ofmkz__help-button--icon {
  flex: 0 0 34px;
  width: 34px;
  min-width: 34px;
  max-width: 34px;
  height: 34px;
  min-height: 34px;
  max-height: 34px;
  aspect-ratio: 1 / 1;
  padding: 0;
  border-color: var(--ofmkz-brand);
  background: var(--ofmkz-brand);
  color: #fff;
  font-size: 0;
  line-height: 1;
}

.ofmkz__help-button--icon::before {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  background: transparent;
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.ofmkz__help-button--icon:hover,
.ofmkz__help-button--icon:focus-visible {
  border-color: var(--ofmkz-brand);
  background: #fff;
  color: var(--ofmkz-brand);
}

.ofmkz__card p {
  margin: 8px 0 0;
  color: var(--ofmkz-ink-soft);
  line-height: 1.65;
}

.ofmkz__choice-grid {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ofmkz__choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ofmkz__choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.ofmkz__choice input,
.ofmkz__doctor-choice input,
.ofmkz__slot-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ofmkz__choice-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: flex-start;
  min-height: 72px;
  padding: 16px;
  border: 1px solid rgba(168, 28, 56, .14);
  border-radius: 18px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.ofmkz__choice input:checked + .ofmkz__choice-box,
.ofmkz__doctor-choice input:checked + .ofmkz__doctor-box,
.ofmkz__slot-choice input:checked + .ofmkz__slot-box {
  border-color: rgba(168, 28, 56, .32);
  background: rgba(168, 28, 56, .08);
}

.ofmkz__choice-mark {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid rgba(168, 28, 56, .34);
  border-radius: 50%;
}

.ofmkz__choice input:checked + .ofmkz__choice-box .ofmkz__choice-mark::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ofmkz-brand);
}

.ofmkz__choice-title {
  display: block;
  font-weight: 800;
}

.ofmkz__choice--with-help .ofmkz__choice-box {
  position: relative;
  padding-right: 58px;
}

.ofmkz__help-button--choice {
  position: absolute;
  top: 50%;
  right: 14px;
  flex-basis: 30px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  transform: translateY(-50%);
}

.ofmkz__help-button--choice::before {
  font-size: 14px;
}

.ofmkz__choice-meta {
  display: block;
  margin-top: 4px;
  color: var(--ofmkz-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ofmkz__recommendation {
  margin-top: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(168, 28, 56, .14);
  border-radius: 20px;
  background: #fff8f9;
}

.ofmkz__recommendation.is-angiology {
  border-color: rgba(33, 97, 140, .18);
  background: #f7fbff;
}

.ofmkz__recommendation strong {
  display: block;
  font-size: 18px;
}

.ofmkz__recommendation p {
  margin: 8px 0 0;
  color: var(--ofmkz-ink-soft);
  line-height: 1.7;
}

.ofmkz__doctor-grid,
.ofmkz__slot-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ofmkz__doctor-choice,
.ofmkz__slot-choice {
  position: relative;
  display: block;
  cursor: pointer;
}

.ofmkz__doctor-box {
  display: grid;
  grid-template-columns: 112px 1fr;
  overflow: hidden;
  border: 1px solid rgba(168, 28, 56, .14);
  border-radius: 20px;
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}

.ofmkz__doctor-photo {
  min-height: 112px;
  background: #fff4f6;
}

.ofmkz__doctor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ofmkz__doctor-photo.is-ghost {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: #fff8f9;
  color: var(--ofmkz-brand-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.ofmkz__doctor-content {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 16px;
}

.ofmkz__doctor-choice--with-help .ofmkz__doctor-content {
  position: relative;
  padding-right: 58px;
}

.ofmkz__help-button--doctor {
  position: absolute;
  top: 16px;
  right: 16px;
  flex-basis: 30px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
}

.ofmkz__help-button--doctor::before {
  font-size: 14px;
}

.ofmkz__doctor-content strong {
  color: var(--ofmkz-ink);
  font-size: 17px;
}

.ofmkz__doctor-content span {
  color: var(--ofmkz-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ofmkz__doctor-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--ofmkz-brand-soft);
  color: var(--ofmkz-brand-dark);
  font-size: 12px;
  font-weight: 800;
}

.ofmkz__split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ofmkz__calendar {
  overflow: hidden;
  margin-top: 16px;
  border: 1px solid rgba(168, 28, 56, .12);
  border-radius: 20px;
  background: #fff;
}

.ofmkz__calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(168, 28, 56, .10);
  background: #fff8f9;
}

.ofmkz__calendar-title {
  font-size: 16px;
  font-weight: 800;
  text-transform: capitalize;
}

.ofmkz__calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(168, 28, 56, .16);
  border-radius: 50%;
  background: #fff;
  color: var(--ofmkz-brand-dark);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.ofmkz__calendar-nav[disabled] {
  opacity: .45;
  cursor: not-allowed;
}

.ofmkz__calendar-weekdays,
.ofmkz__calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px 0;
}

.ofmkz__calendar-weekdays {
  padding-bottom: 8px;
}

.ofmkz__calendar-weekdays span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-align: center;
  text-transform: uppercase;
}

.ofmkz__calendar-grid {
  padding-top: 0;
  padding-bottom: 16px;
}

.ofmkz__calendar-day {
  min-height: 56px;
  padding: 8px 6px;
  border: 1px solid rgba(168, 28, 56, .10);
  border-radius: 16px;
  background: #fff;
  color: var(--ofmkz-ink);
  font-weight: 700;
  cursor: pointer;
}

.ofmkz__calendar-day span {
  display: block;
  text-align: center;
}

.ofmkz__calendar-day.is-outside {
  opacity: .32;
  cursor: default;
}

.ofmkz__calendar-day.is-disabled {
  opacity: .5;
  background: #f8fafc;
  cursor: not-allowed;
}

.ofmkz__calendar-day.is-today {
  border-color: rgba(168, 28, 56, .26);
}

.ofmkz__calendar-day.is-selected {
  border-color: rgba(168, 28, 56, .32);
  background: rgba(168, 28, 56, .08);
  color: var(--ofmkz-brand-dark);
}

.ofmkz__calendar-day.is-available .ofmkz__calendar-day-meta::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ofmkz-brand);
}

.ofmkz__calendar-day-number {
  font-size: 16px;
  line-height: 1.2;
}

.ofmkz__calendar-day-meta {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 11px;
  line-height: 1.2;
}

.ofmkz__calendar-status {
  margin: 0 16px 16px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #fff8f9;
  color: var(--ofmkz-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ofmkz__calendar-status.is-error {
  background: #fff7ed;
  color: var(--ofmkz-warning);
}

.ofmkz__slot-box {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(168, 28, 56, .14);
  border-radius: 18px;
  background: #fff;
}

.ofmkz__slot-box strong {
  display: block;
  font-size: 16px;
}

.ofmkz__slot-box span {
  display: block;
  margin-top: 4px;
  color: var(--ofmkz-ink-soft);
  font-size: 14px;
  line-height: 1.55;
}

.ofmkz__slot-status {
  color: var(--ofmkz-brand-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ofmkz__status {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(168, 28, 56, .12);
  border-radius: 18px;
  background: #fff;
  color: var(--ofmkz-ink-soft);
  line-height: 1.6;
}

.ofmkz__status.is-error {
  border-color: rgba(154, 52, 18, .24);
  background: #fff7ed;
  color: var(--ofmkz-warning);
}

.ofmkz__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.ofmkz__field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.ofmkz__field--full {
  grid-column: 1 / -1;
}

.ofmkz__field label {
  font-weight: 700;
}

.ofmkz__field input,
.ofmkz__field select,
.ofmkz__field textarea {
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1.5px solid var(--ofmkz-line);
  border-radius: 16px;
  background: #fff;
  outline: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ofmkz__field textarea {
  min-height: 136px;
  resize: vertical;
}

.ofmkz__field input:focus,
.ofmkz__field select:focus,
.ofmkz__field textarea:focus {
  border-color: rgba(168, 28, 56, .36);
  box-shadow: 0 0 0 4px rgba(168, 28, 56, .08);
}

.ofmkz__field small {
  color: #64748b;
  line-height: 1.55;
}

.ofmkz__phone-field {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  border: 1.5px solid var(--ofmkz-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.ofmkz__phone-field select {
  appearance: auto;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 10px 0 14px;
  border: 0;
  border-right: 1px solid var(--ofmkz-line);
  border-radius: 0;
  background: #fff;
  outline: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.ofmkz__phone-field input {
  height: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.ofmkz__phone-field input:focus,
.ofmkz__phone-field select:focus {
  box-shadow: none;
}

.ofmkz__phone-field:focus-within {
  border-color: rgba(168, 28, 56, .36);
  box-shadow: 0 0 0 4px rgba(168, 28, 56, .08);
}

.ofmkz__honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ofmkz__summary-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ofmkz__summary-item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid rgba(168, 28, 56, .10);
  border-radius: 18px;
  background: #fff;
}

.ofmkz__summary-item span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.ofmkz__summary-item strong {
  font-size: 16px;
  line-height: 1.6;
}

.ofmkz__consents {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ofmkz__consent {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(168, 28, 56, .12);
  border-radius: 18px;
  background: #fff;
}

.ofmkz__consent input {
  margin-top: 2px;
}

.ofmkz__consent strong {
  display: block;
  margin-bottom: 4px;
}

.ofmkz__consent span {
  color: var(--ofmkz-ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.ofmkz__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.ofmkz__actions p {
  max-width: 560px;
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

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

.ofmkz__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}

.ofmkz__btn[disabled] {
  opacity: .55;
  cursor: progress;
}

.ofmkz__btn--primary {
  background: var(--ofmkz-brand);
  color: #fff;
  box-shadow: 0 14px 26px rgba(168, 28, 56, .18);
}

.ofmkz__btn--secondary {
  border: 1px solid rgba(168, 28, 56, .20);
  background: #fff;
  color: var(--ofmkz-brand-dark);
}

.ofmkz__success {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 22px;
  background: #fff;
}

.ofmkz__success.is-visible {
  display: block;
}

.ofmkz__success h3 {
  margin: 0;
  color: var(--ofmkz-success);
  font-size: 24px;
}

.ofmkz__success p,
.ofmkz__success li {
  color: var(--ofmkz-ink-soft);
  line-height: 1.7;
}

.ofmkz__prep-notice {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(168, 28, 56, .26);
  border-left: 4px solid var(--ofmkz-brand);
  border-radius: 18px;
  background: #fff4f6;
}

.ofmkz__prep-notice h4 {
  margin: 0 0 12px;
  color: var(--ofmkz-brand-dark);
  font-size: 20px;
  line-height: 1.25;
}

.ofmkz__prep-notice p {
  margin: 0 0 10px;
  color: var(--ofmkz-ink);
}

.ofmkz__prep-notice ul {
  margin: 0 0 12px 20px;
  padding: 0;
}

.ofmkz__prep-notice strong {
  color: var(--ofmkz-brand-dark);
}

@media (max-width: 900px) {
  .ofmkz__progress {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .ofmkz {
    padding: 16px 10px 40px;
  }

  .ofmkz__intro,
  .ofmkz__form-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .ofmkz__progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-left: 18px;
    padding-right: 18px;
  }

  .ofmkz__choice-grid--two,
  .ofmkz__split,
  .ofmkz__fields {
    grid-template-columns: 1fr;
  }

  .ofmkz__phone-field {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .ofmkz__doctor-box {
    grid-template-columns: 88px 1fr;
  }

  .ofmkz__doctor-photo {
    min-height: 88px;
  }

  .ofmkz__step-head {
    flex-direction: column;
  }

  .ofmkz__help-row {
    display: grid;
  }

  .ofmkz__help-button {
    width: fit-content;
  }

  .ofmkz__step-note {
    white-space: normal;
  }

  .ofmkz__buttons {
    width: 100%;
  }

  .ofmkz__buttons .ofmkz__btn {
    flex: 1 1 220px;
  }
}
