/* firmy.css — the page for companies, /pro-firmy (scripts/compose.mjs composeB2B,
 * texts in scripts/b2b-copy.mjs, behaviour in firmy.js). The hero, the reasons
 * and the reference are the service pages' own (home.css); this file draws what
 * only this page has: the price table and the registration form.
 *
 * The site's rule holds here too: nothing is outlined. The table floats on its
 * shadow and separates its rows with hairlines (a repeating list — one of the
 * three places a line survives); the form is a white panel whose fields are
 * filled boxes a shade off it, the label inside the box (booking.css .mrFloat,
 * redrawn here because the booking form's stylesheet is not on this page). */

/* the hero's headline is a sentence here, not a service name: a little wider,
   and its lines balanced so no word is left alone on the last one */
.frontend-page-b2b .mrSvcHero__title { max-width: 17ch; text-wrap: balance; }

/* ── the price table ────────────────────────────────────────────────────── */
.mrPrices { background: var(--mr-cream); scroll-margin-top: 90px; }
.mrPrices__wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro card" "foot card"; grid-template-rows: auto 1fr; gap: 0 56px; align-items: start;
  padding-top: 88px; padding-bottom: 88px;
}
.mrPrices__intro { grid-area: intro; }
.mrPrices__foot { grid-area: foot; }
.mrPrices__card { grid-area: card; }
.mrPrices__eyebrow, .mrReg__eyebrow {
  margin: 0 0 10px; color: var(--mr-accent-ink);
  font: 700 13px/1.3 var(--mr-body); letter-spacing: .12em; text-transform: uppercase;
}
.mrPrices__title, .mrReg__title {
  margin: 0; color: var(--mr-dark);
  font: 600 clamp(28px, 3vw, 40px)/1.08 var(--mr-display); letter-spacing: -.01em;
}
.mrPrices__sub, .mrReg__sub { margin: 14px 0 0; max-width: 46ch; color: var(--mr-muted); font-size: 17px; line-height: 1.55; }
.mrPrices__cta { margin-top: 26px; }
.mrPrices__card {
  padding: 10px 30px 22px; border-radius: 22px; background: var(--mr-panel); box-shadow: var(--mr-lift-2);
}
.mrPrices__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.mrPrices__table th, .mrPrices__table td { padding: 15px 0; text-align: left; vertical-align: baseline; }
.mrPrices__table thead th {
  padding: 16px 0 12px; color: var(--mr-faint);
  font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.mrPrices__table tbody tr + tr th, .mrPrices__table tbody tr + tr td { box-shadow: inset 0 1px 0 var(--mr-line-soft); }
.mrPrices__table tbody th { color: var(--mr-dark); font-size: 16.5px; font-weight: 600; }
.mrPrices__table .mrPrices__km { width: 1%; padding-left: 20px; color: var(--mr-faint); font-size: 15px; text-align: right; white-space: nowrap; }
.mrPrices__table .mrPrices__price { width: 1%; padding-left: 28px; color: var(--mr-dark); font-size: 17px; font-weight: 700; text-align: right; white-space: nowrap; }
.mrPrices__table thead .mrPrices__km, .mrPrices__table thead .mrPrices__price { font-size: 12.5px; font-weight: 700; color: var(--mr-faint); }
.mrPrices__note { margin: 14px 0 0; color: var(--mr-faint); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 960px) {
  .mrPrices__wrap {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "card" "foot"; grid-template-rows: none;
    padding-top: 64px; padding-bottom: 64px;
  }
  .mrPrices__card { margin-top: 24px; }
  .mrPrices__cta { margin-top: 20px; }
}
@media (max-width: 600px) {
  .mrPrices__wrap { padding-top: 48px; padding-bottom: 48px; }
  .mrPrices__card { padding: 4px 18px 16px; border-radius: 18px; }
  .mrPrices__table th, .mrPrices__table td { padding: 13px 0; }
  .mrPrices__table tbody th { font-size: 15px; }
  .mrPrices__table .mrPrices__km { padding-left: 10px; font-size: 13.5px; }
  .mrPrices__table .mrPrices__price { padding-left: 12px; font-size: 15.5px; }
}

/* ── the registration ───────────────────────────────────────────────────────
 * Desktop: the heading and what happens next on the left, the form on the
 * right. Phone: the heading, then the form, then the rest — whoever scrolled
 * here came to fill it in. */
.mrReg { background: var(--mr-cream); scroll-margin-top: 80px; }
.mrReg__wrap {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-areas: "intro panel" "aside panel";
  grid-template-rows: auto 1fr; gap: 0 56px; align-items: start;
  padding-top: 88px; padding-bottom: 96px;
}
.mrReg__intro { grid-area: intro; }
.mrReg__aside { grid-area: aside; margin-top: 34px; }
.mrReg__panel { grid-area: panel; }
.mrReg__subtitle { margin: 0 0 12px; color: var(--mr-dark); font: 700 16px/1.3 var(--mr-body); }
.mrReg__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.mrReg__steps li { position: relative; margin: 0 0 12px; padding-left: 38px; color: var(--mr-muted); font-size: 15.5px; line-height: 1.5; counter-increment: step; }
.mrReg__steps li::before {
  content: counter(step); position: absolute; left: 0; top: -1px;
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #F1E6D6; color: var(--mr-accent-ink); font-size: 13px; font-weight: 700;
}
.mrReg__soon { margin-top: 28px; padding: 22px 24px; border-radius: 18px; background: #F6EFE6; }
.mrReg__soonList { margin: 0; padding: 0; list-style: none; }
.mrReg__soonList li { margin: 0 0 8px; color: var(--mr-muted); font-size: 15px; line-height: 1.5; }
.mrReg__soonList li:last-child { margin-bottom: 0; }
.mrReg__soonList strong { color: var(--mr-dark); font-weight: 700; }

.mrReg__form, .mrReg__done {
  padding: 34px 34px 30px; border-radius: 24px; background: var(--mr-panel); box-shadow: var(--mr-lift-2);
}
.mrReg__set { min-width: 0; margin: 0 0 26px; padding: 0; border: 0; }
.mrReg__legend {
  display: block; margin: 0 0 12px; padding: 0; color: var(--mr-accent-ink);
  font: 700 12.5px/1.3 var(--mr-body); letter-spacing: .1em; text-transform: uppercase;
}
.mrReg__row { display: grid; gap: 12px; }
.mrReg__row--two { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.mrReg__row--contact { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.mrReg__row + .mrFloat, .mrFloat + .mrReg__row, .mrFloat + .mrFloat, .mrReg__row + .mrReg__row { margin-top: 12px; }
/* side by side in a row, the fields share its top edge */
.mrReg__row > .mrFloat { margin-top: 0; }
.mrReg__row--ico { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: center; }
.mrReg__row--ico .mrReg__hint { margin: 0; }
.mrReg__hint { margin: 6px 0 0 4px; color: var(--mr-faint); font-size: 13.5px; line-height: 1.45; }
.mrReg__hint.is-ok { color: #3E6B3A; }
.mrReg__hint.is-bad { color: var(--mr-danger); }
.mrReg__error { margin: 6px 0 0 4px; color: var(--mr-danger); font-size: 14px; line-height: 1.4; }
.mrReg__error:empty { display: none; }

/* the field: a filled box, the label inside it (booking.css .mrFloat) */
.mrReg .mrFloat__box { position: relative; }
.mrReg .mrFloat__box input,
.mrReg .mrFloat__box textarea {
  box-sizing: border-box; display: block; width: 100%; height: 60px; margin: 0; padding: 24px 16px 7px;
  border: 0; border-radius: 14px; outline: 0; background-color: var(--mr-cream); box-shadow: none;
  color: var(--mr-dark); font: 500 16.5px/1.3 var(--mr-body); transition: box-shadow .2s, background-color .2s;
}
.mrReg .mrFloat__box textarea { height: auto; min-height: 104px; padding-top: 30px; line-height: 1.45; resize: vertical; }
.mrReg .mrFloat__box input:hover, .mrReg .mrFloat__box textarea:hover { background-color: #F6EFE6; }
.mrReg .mrFloat__box input:focus, .mrReg .mrFloat__box textarea:focus { background-color: var(--mr-panel); box-shadow: 0 0 0 2px var(--mr-gold); }
.mrReg .mrFloat__box input::placeholder, .mrReg .mrFloat__box textarea::placeholder { color: transparent; }
.mrReg .mrFloat__box label {
  position: absolute; left: 16px; right: 16px; top: 50%; margin: 0; overflow: hidden; transform: translateY(-50%); pointer-events: none;
  color: var(--mr-muted); font: 500 16.5px/1.2 var(--mr-body); letter-spacing: 0; text-transform: none; white-space: nowrap; text-overflow: ellipsis;
  transition: top .18s cubic-bezier(.22, .61, .36, 1), transform .18s cubic-bezier(.22, .61, .36, 1), font-size .18s, color .18s;
}
.mrReg .mrFloat--area .mrFloat__box label { top: 20px; transform: none; }
.mrReg .mrFloat__box:focus-within label,
.mrReg .mrFloat__box:has(input:not(:placeholder-shown)) label,
.mrReg .mrFloat__box:has(textarea:not(:placeholder-shown)) label {
  top: 11px; transform: none; color: var(--mr-accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.mrReg .mrFloat.is-invalid .mrFloat__box input,
.mrReg .mrFloat.is-invalid .mrFloat__box textarea { background-color: var(--mr-panel); box-shadow: 0 0 0 2px var(--mr-danger); }
.mrReg .mrFloat.is-invalid .mrFloat__box label { color: var(--mr-danger); }
.mrReg .mrFloat.is-filled .mrFloat__box input { animation: mrRegFill .9s ease-out; }
@keyframes mrRegFill { from { background-color: #FFF1DD; } }

/* how often: three tiles, one answer (a radio each) */
.mrReg__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.mrReg__tile {
  position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 76px; padding: 14px 16px;
  border-radius: 14px; background: var(--mr-cream); cursor: pointer; transition: background-color .2s, box-shadow .2s;
}
.mrReg__tile:hover { background: #F6EFE6; }
.mrReg__tile input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.mrReg__tile:has(input:checked) { background: #FFF8EE; box-shadow: 0 0 0 2px var(--mr-gold); }
.mrReg__tile:has(input:focus-visible) { outline: 2px solid var(--mr-gold); outline-offset: 2px; }
.mrReg__tileTitle { color: var(--mr-dark); font-size: 15.5px; font-weight: 700; line-height: 1.25; }
.mrReg__tileText { color: var(--mr-faint); font-size: 13px; line-height: 1.35; }

.mrReg__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.mrReg__banner { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: #FBE4E2; color: #5A1F1B; font-size: 15px; line-height: 1.5; }
.mrReg__banner a { color: inherit; font-weight: 700; }
.mrReg__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 4px; }
.mrReg__submit { min-height: 54px; padding: 0 30px; font-size: 16.5px; }
.mrReg__submit[disabled] { cursor: progress; opacity: .75; }
.mrReg__submit .mrReg__spin {
  display: inline-block; width: 16px; height: 16px; margin-right: 10px; border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%; vertical-align: -3px; animation: mrRegSpin .8s linear infinite;
}
@keyframes mrRegSpin { to { transform: rotate(360deg); } }
.mrReg__legal { flex: 1 1 240px; margin: 0; color: var(--mr-faint); font-size: 13px; line-height: 1.5; }
.mrReg__legal a, .mrReg__call a { color: var(--mr-accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.mrReg__call { margin: 18px 0 0; color: var(--mr-muted); font-size: 14.5px; }
.mrReg__call a { font-weight: 700; white-space: nowrap; }

/* after sending: the answer in place of the form */
.mrReg__done { outline: 0; }
.mrReg__doneIcon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; border-radius: 50%;
  background: #F1E6D6; color: var(--mr-accent-ink);
}
.mrReg__doneTitle { margin: 0; color: var(--mr-dark); font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--mr-display); }
.mrReg__doneText { margin: 12px 0 0; max-width: 52ch; color: var(--mr-muted); font-size: 16.5px; line-height: 1.55; }
.mrReg__doneText strong { color: var(--mr-dark); }
.mrReg__doneActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* the floating "Registrovat firmu" steps aside while the form is on screen */
.mrFloatCta.is-away { opacity: 0 !important; pointer-events: none !important; transform: translateY(16px) !important; }

@media (max-width: 960px) {
  .mrReg__wrap {
    grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "panel" "aside"; grid-template-rows: none;
    padding-top: 64px; padding-bottom: 64px;
  }
  .mrReg__panel { margin-top: 26px; }
  .mrReg__aside { margin-top: 36px; }
}
@media (max-width: 600px) {
  .mrReg__wrap { padding-top: 48px; padding-bottom: 52px; }
  .mrReg__form, .mrReg__done { margin: 0 -8px; padding: 24px 18px 22px; border-radius: 20px; }
  .mrReg__row--two, .mrReg__row--ico { grid-template-columns: minmax(0, 1fr); }
  .mrReg__row--ico .mrReg__hint { margin: -4px 0 0 4px; }
  .mrReg__tiles { grid-template-columns: minmax(0, 1fr); }
  .mrReg__tile { min-height: 0; flex-direction: row; align-items: baseline; gap: 8px; }
  .mrReg__submit { width: 100%; justify-content: center; }
  .mrReg .mrFloat__box input, .mrReg .mrFloat__box textarea { font-size: 16px; }
}

/* The anti-bot widget (site/firmy.js) — only on screen when Cloudflare wants a click. */
.mrReg .mrTurnstile { margin-top: 14px; }
.mrReg .mrTurnstile:empty { display: none; }
