@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./pt-sans-regular-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./pt-sans-regular-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./pt-sans-bold-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "PT Sans";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("./pt-sans-bold-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* MyDance chrome: brand title regular weight (matches donor header) */
.bf-step-header .bf-brand {
  font-weight: 400 !important;
  font-size: 17px !important;
}

/* Guard: raw_html widgets must not stretch header back SVG */
.bf-back-button svg {
  width: 10px !important;
  height: 18px !important;
  display: block;
  flex: none;
}

/* Welcome social_proof: counter + sub like FitnessLab / UI-kit */
main[data-step="welcome"][data-variant="social_proof"] [data-type="title"] {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: var(--bf-accent) !important;
  line-height: 1.15 !important;
  text-align: center !important;
  margin: 0 0 6px !important;
}

main[data-step="welcome"][data-variant="social_proof"] [data-type="paragraph"] {
  font-size: 15px !important;
  font-weight: 400 !important;
  text-align: center !important;
  color: var(--bf-muted) !important;
  line-height: 1.4 !important;
  margin: 0 0 14px !important;
}

main[data-step="welcome"][data-variant="social_proof"] .bf-element-group[data-group-id="intro"] {
  margin-bottom: 0 !important;
}

main[data-step="welcome"][data-variant="social_proof"] figure {
  margin: 0 auto 14px !important;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
}

main[data-step="welcome"][data-variant="social_proof"] figure img {
  width: auto !important;
  max-width: 100% !important;
  max-height: calc(100dvh - 255px) !important;
  margin: 0 auto !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

/* Start: donor typography */
main[data-step="start"] [data-type="title"] {
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}

main[data-step="start"] [data-type="subtitle"] {
  font-size: 18px !important;
  font-weight: 400 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: var(--bf-muted) !important;
  line-height: 1.35 !important;
}

main[data-step="start"] .bf-options[data-variant="age"] .bf-option-body {
  background: var(--bf-accent);
  color: #fff;
}

main[data-step="start"] .bf-options[data-variant="age"] .bf-option-label {
  color: #fff;
}

/* CTA buttons: brand #E2572E */
button[data-type="button"],
a[data-type="button"],
a[data-action="navigate"],
button[data-action="navigate"],
.bf-cta-scroll,
.bf-pwh-cta,
.bf-success-cta,
.bf-auth-form button[type="submit"] {
  background: #E2572E !important;
  box-shadow: 0 6px 18px color-mix(in srgb, #E2572E 32%, transparent) !important;
}

a[data-action="navigate"][data-bf-incomplete],
a[data-action="navigate"][aria-disabled="true"],
button[data-action="navigate"][data-bf-incomplete],
button[data-action="navigate"][aria-disabled="true"] {
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.bf-accent,
[data-type="title"].bf-accent,
span.bf-accent,
span.bf-accent strong {
  color: #E2572E !important;
}

main[data-step="prediction"] .bf-lead .bf-accent,
main[data-step="prediction"] .bf-lead strong.bf-accent {
  color: #E2572E !important;
  font-weight: 800 !important;
}

/* Loader gate popups: Нет/Да side by side (WaterFasting mechanics, Dance brand) */
.bf-gate-card [data-type="title"] {
  margin-bottom: 16px;
  font-family: var(--bf-font-family);
  font-size: 20px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0;
}
.bf-gate-card .bf-options[data-layout="list"] {
  flex-direction: row;
  gap: 10px;
}
.bf-gate-card .bf-options[data-layout="list"] .bf-option-card {
  flex: 1 1 0;
  justify-content: center;
  text-align: center;
  min-height: 52px;
  padding: 0 12px;
  border-radius: 16px;
}
.bf-gate-card .bf-options[data-layout="list"] .bf-option-body {
  flex: 1 1 auto !important;
  width: 100%;
  align-items: center !important;
  padding: 8px 0 !important;
  text-align: center !important;
}
.bf-gate-card .bf-options[data-layout="list"] .bf-option-label {
  display: block;
  width: 100%;
  text-align: center !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
}
.bf-gate-card .bf-options[data-layout="list"] .bf-option-check {
  display: none !important;
}
.bf-gate-card .bf-options[data-layout="list"] .bf-option-card[data-option-value="yes"],
.bf-gate-card .bf-options[data-layout="list"] .bf-option-card:nth-child(2) {
  background: #E2572E;
  color: #fff;
}
.bf-gate-card .bf-options[data-layout="list"] .bf-option-card[data-option-value="yes"] .bf-option-label,
.bf-gate-card .bf-options[data-layout="list"] .bf-option-card:nth-child(2) .bf-option-label {
  color: #fff !important;
}

main[data-step="diffinfo"] [data-type="image"] img,
main[data-step="diffinfo"] figure img {
  border-radius: 18px;
}

/* CTA / option cards: larger corner radius everywhere */
button[data-type="button"],
a[data-type="button"],
.bf-cta-scroll,
.bf-pwh-cta,
.bf-success-cta,
.bf-auth-form button[type="submit"] {
  border-radius: var(--theme-btn-roundness, 40px) !important;
}

.bf-option-card {
  border-radius: var(--theme-quiz-roundness, 20px) !important;
}

/* Question titles everywhere: 28px */
[data-type="title"],
[data-type="rich_text"] h1 {
  font-size: 28px !important;
  line-height: 1.25 !important;
}

/* Motivation Likert: question 18 regular, statement 28, labels 16, digits 28 */
main[data-step="motivation"] [data-type="title"] {
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  margin: 0 0 14px !important;
  color: var(--bf-text) !important;
}

main[data-step="motivation"] [data-type="subtitle"] {
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  color: var(--bf-text) !important;
  background: #efefef;
  border-radius: 16px;
  padding: 16px 14px;
  margin: 0 0 20px !important;
  text-align: center;
}

main[data-step="motivation"] .bf-options[data-layout="chips"] {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  flex-wrap: nowrap;
  padding: 2px 0 56px;
}

main[data-step="motivation"] .bf-options[data-layout="chips"]::before,
main[data-step="motivation"] .bf-options[data-layout="chips"]::after {
  position: absolute;
  bottom: 0;
  max-width: 44%;
  color: var(--bf-muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  white-space: pre-line;
}

main[data-step="motivation"] .bf-options[data-layout="chips"]::before {
  content: "Совершенно\Aне согласна";
  left: 0;
  text-align: left;
}

main[data-step="motivation"] .bf-options[data-layout="chips"]::after {
  content: "Полностью\Aсогласна";
  right: 0;
  text-align: right;
}

/* Same soft fill as list options: no border / inset ring */
main[data-step="motivation"] .bf-options[data-layout="chips"] .bf-option-card {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0;
  border: 0 !important;
  border-radius: 16px !important;
  background: color-mix(in srgb, color-mix(in srgb, var(--bf-accent) 8%, white) 80%, transparent);
  box-shadow: none !important;
}

main[data-step="motivation"] .bf-options[data-layout="chips"] .bf-option-card.is-selected {
  background: color-mix(in srgb, var(--bf-accent) 14%, white);
  box-shadow: none !important;
}

main[data-step="motivation"] .bf-options[data-layout="chips"] .bf-option-check {
  display: none;
}

main[data-step="motivation"] .bf-options[data-layout="chips"] .bf-option-label {
  font-size: 28px;
  font-weight: 700;
}

main[data-step="motivationinfo"] [data-type="rich_text"] h1 {
  text-align: center;
}

main[data-step="motivationinfo"] .chart-container {
  margin: 8px auto 16px;
}

/* Measure widgets (height/weight): FitnessLab layout contract.
   Engine default puts .error-message in a horizontal flex next to the input - broken.
   visualSource is Scripts/height_ru.html (NOT height.html, which is a wrong zone copy). */
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) {
  all: initial;
  display: block;
  box-sizing: border-box;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  font-family: "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) * {
  box-sizing: border-box;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.height-widget-wrapper, .weight-widget-wrapper, .target-weight-widget-wrapper) {
  padding: 12px 0 8px;
  background: transparent;
}

/* Beat engine .bf-measure-input-wrapper rules (@import loads before inline engine CSS).
   Engine paints active unit as color:#fff + accent bg; our white ::before slider then
   hides the label ("см" / "кг") as white-on-white. */
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .unit-toggle,
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-toggle {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0 !important;
  width: fit-content;
  height: 40px !important;
  margin: 0 auto 25px !important;
  padding: 4px !important;
  border: 1px solid #d1d1d6 !important;
  border-radius: 12px !important;
  background: #d1d1d6 !important;
  touch-action: manipulation;
}

.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .unit-toggle::before,
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-toggle::before {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgb(0 0 0 / 10%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .unit-toggle[data-active-unit="imperial"]::before,
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-toggle[data-active-unit="imperial"]::before {
  transform: translateX(-100%);
}

.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-toggle-bg {
  display: none !important;
}

.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .unit-option,
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-btn {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 60px !important;
  width: auto !important;
  height: 32px !important;
  padding: 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #666 !important;
  box-shadow: none !important;
  font: 400 16px/1 "PT Sans", sans-serif !important;
  letter-spacing: 0 !important;
  cursor: pointer;
}

.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .unit-toggle[data-active-unit="metric"] .unit-option[data-unit="metric"],
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .unit-toggle[data-active-unit="imperial"] .unit-option[data-unit="imperial"],
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-toggle[data-active-unit="metric"] .bf-unit-btn[data-unit="metric"],
.bf-measure-input-wrapper:is(
  .fitness-height-widget,
  .fitness-weight-widget,
  .fitness-target-weight-widget
) .bf-unit-toggle[data-active-unit="imperial"] .bf-unit-btn[data-unit="imperial"] {
  background: transparent !important;
  color: #333 !important;
  font-weight: 700 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .input-container,
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .bf-measure-container {
  position: relative;
  display: none !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 0 !important;
  margin: 0 0 8px !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="metric"] ~ .input-container[data-unit="metric"],
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .unit-toggle[data-active-unit="imperial"] ~ .input-container[data-unit="imperial"],
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .bf-unit-toggle[data-active-unit="metric"] ~ .bf-measure-container[data-unit="metric"],
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  .bf-unit-toggle[data-active-unit="imperial"] ~ .bf-measure-container[data-unit="imperial"] {
  display: block !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .input-wrapper,
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .bf-measure-field,
.fitness-height-widget .imperial-field {
  display: flex !important;
  flex: none !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
}

.fitness-height-widget .imperial-inputs {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

/* Beat engine underline measure style (width:170px / border-bottom) with boxed FL inputs. */
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input) {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: 60px !important;
  min-height: 60px !important;
  padding: 0 20px !important;
  border: 1px solid #d1d1d6 !important;
  border-radius: 12px !important;
  border-bottom: 1px solid #d1d1d6 !important;
  outline: none;
  background: #f9f9fb !important;
  color: #333 !important;
  font: 700 28px/1 "PT Sans", sans-serif !important;
  text-align: center !important;
  user-select: text;
  appearance: textfield;
  -moz-appearance: textfield;
  transition: all 0.2s ease;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input)::-webkit-outer-spin-button,
:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input)::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input)::placeholder {
  color: #d0d0d0 !important;
  font-weight: 700 !important;
  font-size: 28px !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input):focus {
  border-color: var(--bf-accent, #E2572E) !important;
  background: color-mix(in srgb, var(--bf-accent, #E2572E) 5%, white) !important;
  color: #333 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)[data-measure-state="error"]
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input) {
  border-color: #e54e51 !important;
  background: #fef7f7 !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)[data-measure-state]:not(
    [data-measure-state="wait"],
    [data-measure-state="error"]
  )
  :is(.cm-input, .kg-input, .lbs-input, .imperial-input, .bf-measure-input) {
  border: 1px solid #00b67a !important;
  background: #f4fff8 !important;
  color: #008f61 !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, #00b67a 12%, transparent) !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)
  :is(.unit-label, .imperial-unit, .bf-measure-unit) {
  min-width: 40px;
  color: #333 !important;
  font: 700 28px/1 "PT Sans", sans-serif !important;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget) .error-message {
  display: block !important;
  width: 100%;
  min-height: 18px;
  margin-top: 8px;
  color: #333;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

:is(.fitness-height-widget, .fitness-weight-widget, .fitness-target-weight-widget)[data-measure-state="error"]
  .error-message {
  color: #e54e51;
}

/* Height: no hint card in donor FF widget. Weight: BMI / goal cards only after value. */
.fitness-height-widget .bf-hint-card {
  display: none !important;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-card {
  display: none;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  margin-top: 20px;
  padding: 15px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.4;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget)
  .bf-hint-card:not([data-hint-state="wait"], [data-hint-state="error"]) {
  display: flex;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  font: 700 12px/1 "PT Sans", sans-serif;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-title {
  font-weight: 700;
  line-height: 1.35;
}

:is(.fitness-weight-widget, .fitness-target-weight-widget) .bf-hint-text {
  margin-top: 4px;
  color: #666;
  font-weight: 400;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="normal"] {
  background: #e8f5e8;
  border: 1px solid #c8e6c9;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="normal"] .bf-hint-dot {
  background: #4caf50 !important;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="normal"] .bf-hint-title {
  color: #2e7d32;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="underweight"],
.fitness-weight-widget .bf-hint-card[data-hint-state="obese"] {
  background: #ffebee;
  border: 1px solid #ffcdd2;
}

.fitness-weight-widget
  .bf-hint-card:is([data-hint-state="underweight"], [data-hint-state="obese"])
  .bf-hint-dot {
  background: #f44336 !important;
}

.fitness-weight-widget
  .bf-hint-card:is([data-hint-state="underweight"], [data-hint-state="obese"])
  .bf-hint-title {
  color: #c62828;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="overweight"] {
  background: #fff3e0;
  border: 1px solid #ffcc02;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="overweight"] .bf-hint-dot {
  background: #ff9800 !important;
}

.fitness-weight-widget .bf-hint-card[data-hint-state="overweight"] .bf-hint-title {
  color: #f57c00;
}

.fitness-target-weight-widget .bf-hint-card {
  background: #f5f5f5;
  border: 1px solid #e6e6e6;
}

.fitness-target-weight-widget .bf-hint-dot {
  background: #666 !important;
}

/* Dance: weight trajectory + profile BMI comment (donor parity) */
.bf-trajectory {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

.bf-trajectory-card {
  padding: 8px 0 2px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.bf-trajectory-view[data-trajectory-direction="up"] {
  display: none;
}

.bf-trajectory:has([title="up"]) .bf-trajectory-view[data-trajectory-direction="down"] {
  display: none;
}

.bf-trajectory:has([title="up"]) .bf-trajectory-view[data-trajectory-direction="up"] {
  display: block;
}

.bf-trajectory svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.bf-trajectory-grid line {
  stroke: color-mix(in srgb, var(--bf-muted) 13%, transparent);
  stroke-width: 1;
  stroke-dasharray: 3 8;
}

.bf-trajectory-guide {
  stroke: color-mix(in srgb, var(--bf-accent) 38%, transparent);
  stroke-width: 2;
  stroke-dasharray: 5 7;
}

.bf-trajectory-line {
  fill: none;
  stroke: var(--bf-accent);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  path-length: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 5px 8px color-mix(in srgb, var(--bf-accent) 25%, transparent));
  animation: fitness-trajectory-draw 1.55s cubic-bezier(.22, .75, .2, 1) .48s forwards;
}

.bf-trajectory-dot {
  fill: var(--bf-accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: fitness-trajectory-dot .38s cubic-bezier(.2, .8, .2, 1) both;
}

.bf-trajectory-dot:not([data-end]) {
  animation-delay: .24s;
}

.bf-trajectory-dot[data-end] {
  animation-delay: 2.03s;
}

/* Room above the curve so the "Сейчас" plaque sits over the start dot, not on it. */
.bf-trajectory-plot {
  position: relative;
  padding-top: 34px;
}

.bf-trajectory-badge {
  position: absolute;
  z-index: 2;
  min-width: 96px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--bf-accent) 22%, transparent);
  border-radius: 12px;
  background: #ffffff;
  color: var(--bf-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  opacity: 0;
  transform: translateY(6px);
  animation: fitness-trajectory-badge .4s cubic-bezier(.2, .8, .2, 1) .28s forwards;
  pointer-events: none;
}

.bf-trajectory-badge strong {
  display: block;
  margin-top: 2px;
  color: var(--bf-text);
  font-size: 18px;
  font-weight: 800;
}

/* Keep plaques clear of start/finish dots on the curve. */
.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-start {
  top: 0;
  left: 3%;
}

.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-goal {
  top: 0;
  right: 3%;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-start,
.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-start {
  left: 3%;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-goal,
.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-goal {
  right: 2%;
}

.bf-trajectory-view[data-trajectory-direction="down"] .bf-trajectory-goal {
  top: 34%;
  bottom: auto;
}

.bf-trajectory-view[data-trajectory-direction="up"] .bf-trajectory-start {
  top: 34%;
  bottom: auto;
}

.bf-trajectory-goal {
  border: 1px solid var(--bf-accent);
  background: var(--bf-accent);
  color: #fff;
  box-shadow: 0 6px 20px color-mix(in srgb, var(--bf-accent) 28%, transparent);
  animation-delay: 2.08s;
}

.bf-trajectory-goal strong {
  color: #fff;
}

.bf-trajectory-dates {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: var(--bf-muted);
  font-size: 13px;
  font-weight: 700;
}

.bf-trajectory-caption {
  margin: 14px 6px 0;
  color: var(--bf-muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

@keyframes fitness-trajectory-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fitness-trajectory-dot {
  from { opacity: 0; transform: scale(.2); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes fitness-trajectory-badge {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bf-trajectory-line,
  .bf-trajectory-dot,
  .bf-trajectory-badge {
    animation: none;
    opacity: 1;
    transform: none;
    stroke-dashoffset: 0;
  }
}

/* Profile BMI comment cards - donor Scripts/profile_ru.html */
[data-type="health_profile"] .bf-hint-card,
.fitness-bmi-profile .bmi-comment,
[data-type="health_profile"] .bmi-comment {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  box-sizing: border-box;
}

[data-type="health_profile"] .bf-hint-card[data-hint-state="normal"],
.fitness-bmi-profile .bmi-comment[data-hint-state="normal"] {
  border: 1px solid color-mix(in srgb, #00b67a 28%, white);
  background: linear-gradient(135deg, #f4fff8, color-mix(in srgb, #00b67a 12%, white));
}

[data-type="health_profile"] .bf-hint-card:not([data-hint-state="normal"]),
.fitness-bmi-profile .bmi-comment:not([data-hint-state="normal"]) {
  border: 1px solid rgb(255 205 210 / 50%);
  background: linear-gradient(135deg, rgb(255 235 238 / 95%), rgb(255 205 210 / 90%));
}

[data-type="health_profile"] .bf-hint-dot,
.fitness-bmi-profile .comment-icon {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f44336 !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
}

[data-type="health_profile"] .bf-hint-card[data-hint-state="normal"] .bf-hint-dot,
.fitness-bmi-profile .bmi-comment[data-hint-state="normal"] .comment-icon {
  background: #00b67a !important;
}

/* Donor .comment-title: icon inline with the title, text below. */
[data-type="health_profile"] .bf-hint-card {
  display: grid !important;
  grid-template-columns: 24px 1fr;
  align-items: center;
  column-gap: 10px;
  row-gap: 8px;
}
[data-type="health_profile"] .bf-hint-card .bf-hint-body {
  display: contents;
}
[data-type="health_profile"] .bf-hint-card .bf-hint-dot {
  margin: 0;
}
[data-type="health_profile"] .bf-hint-card .bf-hint-dot::after {
  content: "!";
}
[data-type="health_profile"] .bf-hint-card[data-hint-state="normal"] .bf-hint-dot::after {
  content: "✓";
}
[data-type="health_profile"] .bf-hint-card .bf-hint-title {
  margin: 0;
}
[data-type="health_profile"] .bf-hint-card .bf-hint-text {
  grid-column: 1 / -1;
  margin: 0;
}

[data-type="health_profile"] .bf-hint-title {
  color: #c62828;
  font-size: 16px;
  font-weight: 700;
}

[data-type="health_profile"] .bf-hint-card[data-hint-state="normal"] .bf-hint-title {
  color: #008f61;
}

[data-type="health_profile"] .bf-hint-text {
  color: #666;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

/* Profile fact icons must stay visible */
[data-type="health_profile"] .bf-profile-fact > img {
  display: block !important;
  width: 48px !important;
  height: 48px !important;
  flex: none !important;
  object-fit: contain !important;
  border-radius: 0 !important;
}

/* Paywall before/after: exact FitnessLab_3_real fitnesslab-3.css (BA block only) */
main[data-layout-preset="standard-v1"] > [data-type="paywall_header"]:has(~ .bf-ba-fitness) {
  margin: -12px calc(0px - var(--bf-layout-page-padding)) 0;
}

main[data-layout-preset="standard-v1"] > .bf-ba-fitness {
  width: calc(100% + var(--bf-layout-page-padding) + var(--bf-layout-page-padding)) !important;
  max-width: none !important;
  margin-right: calc(0px - var(--bf-layout-page-padding)) !important;
  margin-left: calc(0px - var(--bf-layout-page-padding)) !important;
}

.bf-ba-fitness {
  position: relative;
  isolation: isolate;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px !important;
  width: 100%;
  aspect-ratio: auto;
  padding: 64px 10px 0;
  overflow: hidden;
  background: #f2f2f2;
}

.bf-ba-fitness > .bf-ba-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bf-ba-fitness > .bf-ba-col {
  z-index: 1;
  min-width: 0;
  height: auto;
  gap: 0;
  justify-content: flex-start;
}

.bf-ba-fitness > .bf-ba-before {
  padding-right: 0;
}

.bf-ba-fitness > .bf-ba-after {
  padding-left: 0;
}

.bf-ba-fitness .bf-ba-photo {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 2.05;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  box-shadow: none !important;
}

.bf-ba-fitness .bf-ba-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.bf-ba-fitness .bf-ba-badge {
  top: -52px;
  bottom: auto;
  left: 50%;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding: 11px 8px;
  transform: translateX(-50%);
  border-radius: 11px;
  background: rgb(255 255 255 / 94%) !important;
  color: #2d2d2d !important;
  font-size: 16px;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
  box-shadow: none !important;
}

.bf-ba-fitness .bf-ba-after .bf-ba-badge {
  background: rgb(255 255 255 / 94%) !important;
  color: var(--bf-accent) !important;
  box-shadow: none !important;
}

.bf-ba-fitness > .bf-ba-before::after {
  display: none;
}

.bf-ba-fitness .bf-ba-metrics {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 132px;
  padding: 14px 6px 10px;
  background: var(--bf-bg);
}

.bf-ba-fitness .bf-ba-before .bf-ba-metrics {
  margin-left: -10px;
  margin-right: -2px;
  padding-left: 16px;
  padding-right: 8px;
}

.bf-ba-fitness .bf-ba-after .bf-ba-metrics {
  margin-left: -2px;
  margin-right: -10px;
  padding-left: 8px;
  padding-right: 16px;
}


/* Paywall disclaimer under reviews (FitnessLab_4 pattern) */
main[data-step="offer"] p[data-el="el-offer-paragraph"] {
  margin: 14px 0 24px !important;
  color: var(--bf-muted) !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

/* Money-back guarantee */
main[data-step="offer"] [data-el="el-offer-guarantee-image"] {
  margin: 8px 0 12px !important;
}
main[data-step="offer"] [data-el="el-offer-guarantee-image"] img {
  width: 30% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 auto;
}
main[data-step="offer"] [data-el="el-offer-guarantee-title"] {
  margin: 0 0 10px !important;
  font-size: 22px !important;
  line-height: 1.25 !important;
  text-align: center !important;
}
main[data-step="offer"] [data-el="el-offer-guarantee-text"] {
  margin: 0 0 20px !important;
  color: var(--bf-text) !important;
  font-size: 16px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}

/* Plain list question: same centered title as the background-image questions. */
main[data-step="mood"] [data-type="title"] {
  text-align: center !important;
}

/* Price plate + discount timer: FitnessLab_4 fitnesslab-4.css (Discount block); price plate/ribbon/strike in the donor red #ce3127. */
main:is([data-step="offer"], [data-step="special-offer"]) [data-type="discount_timer"] {
  box-sizing: border-box;
  width: 100% !important;
  margin: 4px 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--bf-text) !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-heading {
  color: var(--bf-text) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center;
}

/* Timer styled like the paywall header timer (digits + colon, no plates).
   The chain SVG renders at ~1.18px per unit: 28px digits = 23.7 units, 11px labels = 9.3 units.
   Days/hours are hidden; their two circles become the colon dots. */
main:is([data-step="offer"], [data-step="special-offer"]) path.bf-dt-brand,
main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(n+3),
main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain text:nth-of-type(-n+4) {
  display: none !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(-n+2) {
  display: inline !important;
  r: 1.7px;
  cx: 76.6px;
  fill: color-mix(in srgb, #E2572E 40%, white) !important;
  stroke: none !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(1) {
  cy: 12.8px;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(2) {
  cy: 21.2px;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-num {
  fill: #E2572E !important;
  font-family: "PT Sans", sans-serif !important;
  font-weight: 900 !important;
  font-size: 23.7px !important;
  font-variant-numeric: tabular-nums;
  dominant-baseline: central !important;
  transform: translate(-39.5px, -1.5px);
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-label {
  fill: var(--bf-muted) !important;
  font-family: "PT Sans", sans-serif !important;
  font-weight: 600 !important;
  font-size: 9.3px !important;
  text-anchor: middle !important;
  transform: translate(-39.5px, -9px);
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-sticker svg {
  filter: none !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-plate {
  fill: #ffffff !important;
  stroke: #e69b96 !important;
  stroke-width: 3px !important;
  rx: 12px !important;
  ry: 12px !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-price {
  fill: #ce3127 !important;
  font-family: "PT Sans", sans-serif !important;
  font-weight: 800 !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-old {
  fill: #2b2d33 !important;
  font-family: "PT Sans", sans-serif !important;
  font-weight: 600 !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) path.bf-dt-accent {
  fill: #ce3127 !important;
  stroke: #ce3127 !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) rect.bf-dt-accent {
  fill: #ce3127 !important;
  stroke: none !important;
  rx: 0 !important;
  ry: 0 !important;
  /* slanted side edges (parallelogram) */
  clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
}

/* Steeper diagonal for the discount ribbon (renderer default is -31.9deg). */
main:is([data-step="offer"], [data-step="special-offer"]) rect.bf-dt-accent,
main:is([data-step="offer"], [data-step="special-offer"]) text.bf-dt-ribbon {
  transform-box: fill-box;
  transform-origin: center;
  transform: translateX(-4px) rotate(-36deg) scale(1.06);
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-ribbon {
  fill: #ffffff !important;
  font-family: "PT Sans", sans-serif !important;
  font-weight: 800 !important;
}

main[data-step="offer"] .bf-ba-bars {
  gap: 6px !important;
  margin-top: 8px !important;
}

main[data-step="offer"] .bf-ba-bars i {
  height: 12px !important;
}

main[data-step="offer"] [data-el="el-offer-rich_text"] h1 {
  color: #000000 !important;
}

main[data-step="offer"] [data-type="plan_summary"] .bf-ps-icon {
  background: transparent !important;
  padding: 0 !important;
}

main[data-step="offer"] [data-type="plan_summary"] .bf-ps-icon img {
  width: 100% !important;
  height: 100% !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-cta-scroll {
  font-size: 20px !important;
}

/* Review marquee speed as FitnessLab_3 (~44px/s): Dance has 3 reviews vs 6, so half of the engine's 48s loop. */
[data-type="reviews_carousel"] .bf-reviews-carousel {
  animation-duration: 24s !important;
}

/* FAQ: edge-to-edge band (main has 16px side padding), PT Sans, Dance accent instead of the Pilates red. */
main[data-step="offer"] .bf-faq[data-type="faq"] {
  width: auto !important;
  margin-left: -16px !important;
  margin-right: -16px !important;
  border-radius: 0 !important;
  font-family: "PT Sans", sans-serif !important;
}

main[data-step="offer"] .bf-faq .bf-faq-title {
  font-family: "PT Sans", sans-serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
}

main[data-step="offer"] .bf-faq .bf-faq-q {
  font-family: "PT Sans", sans-serif !important;
}

main[data-step="offer"] .bf-faq .bf-faq-item[data-open="true"] .bf-faq-question-text,
main[data-step="offer"] .bf-faq .bf-faq-item[data-open="true"] .bf-faq-chevron {
  color: #E2572E !important;
}

/* Launch skeleton: Dance logo (favicon.webp) instead of the letter mark, as FitnessLab_4. */
.bf-launch em {
  width: 68px !important;
  height: 68px !important;
  font-size: 0 !important;
  color: transparent !important;
  background: #ffffff url("../favicon.webp") center / 100% 100% no-repeat !important;
  border-radius: 20px !important;
  box-shadow: 0 8px 24px color-mix(in srgb, #E2572E 18%, transparent) !important;
  animation: dance-launch-glow 1.8s ease-in-out infinite !important;
}

@keyframes dance-launch-glow {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 22px color-mix(in srgb, #E2572E 16%, transparent), 0 0 0 0 color-mix(in srgb, #E2572E 0%, transparent);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 34px color-mix(in srgb, #E2572E 34%, transparent), 0 0 0 8px color-mix(in srgb, #E2572E 10%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bf-launch em {
    animation: none !important;
  }
}

/* Special offer in the donor reds: timer #d03129, buttons #cc524e; "Полезные привычки" media on donor grey. */
main[data-step="special-offer"] .bf-benefits-special .bf-benefit:nth-child(7) .bf-benefit-media {
  background: #f2f2f2 !important;
}

main[data-step="special-offer"] .bf-pwh-digits span {
  color: #d03129 !important;
}

main[data-step="special-offer"] .bf-pwh-digits .bf-pwh-colon {
  color: color-mix(in srgb, #d03129 40%, white) !important;
}

main[data-step="special-offer"] .bf-pwh-cta,
main[data-step="special-offer"] .bf-cta-scroll {
  background: #cc524e !important;
  box-shadow: 0 6px 18px color-mix(in srgb, #cc524e 32%, transparent) !important;
}

main[data-step="special-offer"] .bf-dt-heading {
  white-space: pre-line;
  font-size: 22px !important;
  line-height: 1.25 !important;
}

main[data-step="special-offer"] .bf-dt-num {
  fill: #d03129 !important;
  font-size: 29px !important;
}

main[data-step="special-offer"] .bf-dt-chain circle.bf-dt-brand:nth-of-type(-n+2) {
  r: 2px;
  fill: color-mix(in srgb, #d03129 40%, white) !important;
}

main[data-step="special-offer"] .bf-dt-chain circle.bf-dt-brand:nth-of-type(1) {
  cy: 11.8px;
}

main[data-step="special-offer"] .bf-dt-chain circle.bf-dt-brand:nth-of-type(2) {
  cy: 22.2px;
}

main[data-step="special-offer"] .bf-dt-chain text.bf-dt-num:nth-of-type(5) {
  transform: translate(-45.5px, -1.5px);
}

main[data-step="special-offer"] .bf-dt-chain text.bf-dt-label:nth-of-type(6) {
  transform: translate(-45.5px, -9px);
}

main[data-step="special-offer"] .bf-dt-chain text.bf-dt-num:nth-of-type(7) {
  transform: translate(-33.5px, -1.5px);
}

main[data-step="special-offer"] .bf-dt-chain text.bf-dt-label:nth-of-type(8) {
  transform: translate(-33.5px, -9px);
}

/* Offer and special offer as the donor screen: solid "03:00" timer without labels, bigger price sticker.
   The chain is pinned to 156px so one SVG unit = 1px regardless of the column width. */
main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-timer {
  gap: 6px !important;
}

/* Heading + timer centred on the price frame (ribbon ignored); the frame centre moves with the sticker width. */
main[data-step="special-offer"] .bf-dt-timer {
  transform: translateY(calc(32.8px - 0.203 * min(184px, 47vw)));
}

main[data-step="offer"] .bf-dt-timer {
  transform: translateY(calc(13.48px - 0.177 * min(184px, 47vw)));
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain {
  width: 156px !important;
  max-width: none !important;
  margin-bottom: -16px;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain text.bf-dt-label {
  display: none !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-num {
  font-size: 36px !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain text.bf-dt-num:nth-of-type(5) {
  transform: translate(-43.27px, -1px);
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain text.bf-dt-num:nth-of-type(7) {
  transform: translate(-35.77px, -1px);
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(-n+2) {
  r: 2.6px;
  fill: #E2572E !important;
}

main[data-step="special-offer"] .bf-dt-chain circle.bf-dt-brand:nth-of-type(-n+2) {
  fill: #d03129 !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(1) {
  cy: 11.5px;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-chain circle.bf-dt-brand:nth-of-type(2) {
  cy: 23.5px;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-sticker {
  width: min(184px, 47vw) !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-price {
  font-size: 35px !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-dt-old {
  font-size: 16.5px !important;
}

/* Header timer on the special offer as the donor: no labels, solid colon. */
main[data-step="special-offer"] .bf-pwh-labels {
  display: none !important;
}

main[data-step="special-offer"] .bf-pwh-digits span {
  font-size: 31px !important;
}

main[data-step="special-offer"] .bf-pwh-digits .bf-pwh-colon {
  color: #d03129 !important;
  font-size: 27px !important;
}

/* Paywall type scale: 28px screen titles (engine), 22px section headings, 16px body text.
   Display numbers (timers, prices, kcal), the 20px CTA and the legal footer keep their own sizes. */
main:is([data-step="offer"], [data-step="special-offer"]) :is(
  .bf-checkout-heading,
  .bf-scanner-title,
  .bf-reviews-title,
  .bf-dt-heading,
  .bf-offer-lead,
  .bf-offer-bundle
) {
  font-size: 22px !important;
  line-height: 1.25 !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) :is(
  .bf-benefit-title,
  .bf-benefit-sub,
  .bf-ba-value,
  .bf-ba-label,
  .bf-faq-q,
  .bf-faq-question-text,
  .bf-faq-a,
  .bf-ps-info b,
  .bf-ps-value,
  .bf-review-heading,
  .bf-review-text,
  .bf-review-handle,
  .bf-review-sub,
  .bf-review-actions,
  .bf-review-actions span,
  .bf-review-card .bf-review-stars,
  .bf-reviews-rating,
  .bf-reviews-rating > *,
  .bf-scanner-kcal span,
  .bf-macro b,
  .bf-macro b i,
  .bf-macro span,
  .bf-scanner-footnote,
  [data-type="paragraph"],
  .bf-checkout-security
) {
  font-size: 16px !important;
}

/* Auto-date heading stays on one line: 22px from ~390px wide, shrinks with the column below that ("До 30 сентября!" = 7.1 x font size). */
main[data-step="offer"] .bf-dt-timer {
  container-type: inline-size;
}

main[data-step="offer"] .bf-dt-heading {
  white-space: nowrap !important;
  font-size: min(22px, 14cqi) !important;
}

/* Native FunnelFox checkout as on the FunnelFox-hosted funnel: 12px cards with a hairline border and no shadow,
   10px between cards, 56px submit with 20px radius, wide letter spacing and #222 fill; regular grey security note. */
main:is([data-step="offer"], [data-step="special-offer"]) [data-type="checkout"] .ff-skin-default {
  gap: 10px !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) [data-type="checkout"] .ff-payment-method-card {
  border-radius: 12px !important;
  padding: 18px !important;
  border: 1px solid #e3e3e3 !important;
  box-shadow: none !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) [data-type="checkout"] :is(.ff-card-form-submit-button, [id^="bf-card-submit-"]) {
  min-height: 56px !important;
  border-radius: 20px !important;
  background: #222222 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  margin: 24px 0 4px !important;
}

main:is([data-step="offer"], [data-step="special-offer"]) .bf-checkout-native-note {
  font-weight: 400 !important;
  font-size: 16px !important;
  color: #555555 !important;
}

/* Paywall typography for ru quizzes: header and checkout buttons 20px. */
html body main[data-step] :is(.bf-pwh-cta, .bf-cta-scroll) {
  font-size: 20px !important;
  letter-spacing: 0 !important;
}

/* Header button stays on one line next to the timer: 20px, smaller only where the label would wrap. */
html body main[data-step] .bf-pwh-cta {
  padding-inline: 12px !important;
  white-space: nowrap;
  font-size: min(20px, calc((100vw - 160px) / 10.4)) !important;
}

/* Paywall "plan ready" title 24px like the other ru quizzes; question titles keep 28px. */
main[data-step="offer"] [data-type="rich_text"] h1 {
  font-size: 24px !important;
}

/* Side figure frame (docs/quiz-quality-baseline.md §12.8): bottom right of the first screen, whole and off the text */
html body main:has(> .bf-step-bg):has(.bf-options[data-variant="bg_narrow"]) > .bf-step-bg {
  position: absolute !important;
  inset: max(var(--bf-figure-top, 168px), calc(100dvh - min(100vw, 480px) * var(--bf-figure-k, 1.75))) 0 auto 0 !important;
  width: 100% !important;
  height: min(calc(100dvh - var(--bf-figure-top, 168px)), calc(min(100vw, 480px) * var(--bf-figure-k, 1.75))) !important;
  max-height: none !important;
  overflow: hidden !important;
}
html body main:has(> .bf-step-bg):has(.bf-options[data-variant="bg_narrow"]) > .bf-step-bg img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: right bottom !important;
  transform: none !important;
}
