/*
 * Webbuy – order.css
 * Order form (/zamow), thank-you page (/dziekujemy) and the call form partial (home #contact).
 * Uses the tokens and primitives of base.css only. Mobile first; desktop layout from 1024 px.
 *
 * Modes:
 *   no JS          – one long form: every step visible, steps list = jump links, native file input.
 *   html.order-js  – set by an inline script in templates/order.php; one step at a time (order.js adds
 *                    .is-enhanced to the form). If order.js never runs, the inline script removes the class
 *                    after 6 s and the long form appears.
 */

/* ------------------------------------------------------------------ page shell */

.order-page,
.thanks-page {
  background-color: var(--bg);
}

.o-hero {
  padding-top: clamp(20px, 4vw, 48px);
  padding-bottom: clamp(28px, 4vw, 48px);
}

.o-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-small);
  color: var(--text-2);
}

.o-crumbs li + li::before {
  content: "/";
  margin-right: .6rem;
  color: var(--text-3);
}

.o-hero__grid {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  margin-top: clamp(20px, 3.5vw, 40px);
}

.o-hero__title,
.t-hero__title,
.cf-page__title {
  margin-top: 1rem;
  font-size: clamp(2.125rem, 1.45rem + 2.4vw, 3.375rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.032em;
  max-width: 11.5em; /* = 17ch of Manrope 800, in em: same measure with the fallback font */
}

.o-hero__lead {
  margin-top: 1.25rem;
  max-width: 34.1em; /* = 54ch of Inter, in em: same measure with the fallback font */
}

.o-hero__points {
  display: none;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text-2);
}

.o-hero__points li {
  position: relative;
  padding: .85rem 0 .85rem 1.4rem;
  border-top: 1px solid var(--line);
}

.o-hero__points li:last-child {
  border-bottom: 1px solid var(--line);
}

.o-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.38rem;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

@media (min-width: 640px) {
  .o-hero__points {
    display: block;
  }
}

@media (min-width: 1024px) {
  .o-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .o-hero__main {
    grid-column: 1 / span 7;
  }
  .o-hero__points {
    grid-column: 9 / span 4;
  }
}

/* ------------------------------------------------------------------ layout: aside + main */

.o-layout {
  position: relative;
  padding-top: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(56px, 8vw, 120px);
}

.o-layout::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.o-main {
  min-width: 0;
}

/* mobile & tablet: one column – the step, then the sticky summary bar, then the call-us block (aside) */
@media (max-width: 1023.98px) {
  .o-layout {
    display: flex;
    flex-direction: column;
  }
  .o-main {
    order: 1;
  }
  .o-bar {
    order: 2;
  }
  .o-aside {
    order: 3;
    margin-top: clamp(48px, 8vw, 72px);
  }
}

.o-aside .o-steps,
.o-aside .o-sum {
  display: none;
}

@media (min-width: 1024px) {
  .o-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: stretch;
  }
  .o-aside {
    grid-column: 1 / span 4;
    grid-row: 1;
    margin-top: 0;
  }
  .o-main {
    grid-column: 5 / span 8;
    grid-row: 1;
  }
  .o-aside__inner {
    position: sticky;
    top: calc(var(--header-h) + 28px);
    padding-right: clamp(0px, 2vw, 32px);
    /* Short laptop screens (e.g. 1366 × 768): the column scrolls on its own instead of hiding its lower part.
       The 6 px inset keeps focus rings inside the scroll box. */
    max-height: calc(100vh - var(--header-h) - 56px);
    max-height: calc(100dvh - var(--header-h) - 56px);
    margin: -6px 0 0 -6px;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-left: 6px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .o-aside .o-steps {
    display: block;
  }
  html.order-js .o-aside .o-sum {
    display: block;
  }
}

@media (min-width: 1240px) {
  .o-main {
    grid-column: 6 / span 7;
  }
}

/* ------------------------------------------------------------------ steps list (aside) */

.o-steps ol {
  position: relative;
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-steps ol::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: var(--line);
}

.o-steps__link {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 0;
  color: var(--text-2);
  text-decoration: none;
  border-radius: var(--radius-s);
}

.o-steps__n {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--bg);
  font-size: .8125rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}

.o-steps__label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.o-steps__link:hover .o-steps__label {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .25em;
}

.o-steps__item.is-current .o-steps__link {
  color: var(--text);
}

.o-steps__item.is-current .o-steps__n {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.o-steps__item.is-done .o-steps__n {
  background: var(--accent);
  border-color: var(--accent);
  color: transparent;
}

.o-steps__item.is-done .o-steps__n::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 10px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--on-accent);
  border-bottom: 2px solid var(--on-accent);
  transform: rotate(-45deg);
}

.o-steps__item.is-done .o-steps__link {
  color: var(--text);
}

/* Windows high contrast / forced colours: backgrounds are dropped there, so the current and finished steps get system
   colours (the step list and the progress bar would otherwise look all alike). */
@media (forced-colors: active) {
  .o-steps__link[aria-current="step"] .o-steps__n,
  .o-steps__item.is-current .o-steps__n {
    forced-color-adjust: none;
    background: Highlight;
    border-color: Highlight;
    color: HighlightText;
  }
  .o-steps__link[aria-current="step"] .o-steps__label,
  .o-steps__item.is-current .o-steps__label {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: .25em;
  }
  .o-steps__item.is-done .o-steps__n {
    forced-color-adjust: none;
    background: Canvas;
    border-color: CanvasText;
    color: transparent;
  }
  .o-steps__item.is-done .o-steps__n::after {
    border-color: CanvasText;
  }
  .o-progress__seg {
    forced-color-adjust: none;
    background: Canvas;
    border: 1px solid GrayText;
  }
  .o-progress__seg.is-done {
    background: CanvasText;
    border-color: CanvasText;
  }
  .o-progress__seg.is-current {
    background: Highlight;
    border-color: Highlight;
  }
}

/* ------------------------------------------------------------------ live summary (aside, desktop) */

.o-sum {
  margin-top: 32px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.o-sum__title {
  padding: 18px 22px 0;
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.o-sum__list {
  display: grid;
  margin: 0;
  padding: 6px 22px 10px;
}

.o-sum__row {
  display: grid;
  grid-template-columns: 7.25rem minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: .9375rem;
  line-height: 1.45;
}

.o-sum__row:last-child {
  border-bottom: 0;
}

.o-sum__row dt {
  color: var(--text-2);
  font-size: .875rem;
}

.o-sum__row dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
}

.o-sum__total {
  padding: 18px 22px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
}

.o-sum__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.o-sum__price {
  margin-top: 6px;
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 1.2rem + .7vw, 1.875rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text);
}

.o-sum__note {
  margin-top: 6px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--text-2);
}

/* no note without an amount ("Wycena po rozmowie" says it already) */
.o-sum__note:empty {
  display: none;
}

.is-bumped {
  animation: o-bump .42s var(--ease-out);
}

@keyframes o-bump {
  from {
    opacity: .35;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* call-us block */
.o-help {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .o-help {
    margin-top: 32px;
    padding-top: 0;
    border-top: 0;
  }
}

.o-help__title {
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.o-help__text {
  margin-top: 6px;
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 25.2em; /* = 40ch of Inter, in em: same measure with the fallback font */
}

.o-help__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 22px;
  margin-top: 14px;
}

.o-help__tel {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.o-help__tel:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

/* ------------------------------------------------------------------ progress (JS) */

.o-progress {
  margin-bottom: clamp(24px, 4vw, 36px);
}

html.order-js .o-progress[hidden] {
  display: block !important; /* reserve the space before order.js runs (no layout shift) */
  visibility: hidden;
}

html:not(.order-js) .o-progress {
  display: none !important;
}

.o-progress__text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .5rem;
  font-size: .875rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

.o-progress__text strong {
  color: var(--text);
  font-weight: 650;
}

.o-progress__sep {
  color: var(--text-3);
}

.o-progress__bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.o-progress__seg {
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background-color .35s var(--ease-out);
}

.o-progress__seg.is-done {
  background: var(--text);
}

.o-progress__seg.is-current {
  background: var(--accent);
}

/* ------------------------------------------------------------------ notices & error summary */

.o-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 28px;
  padding: 12px 14px 12px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  font-size: .9375rem;
}

.o-errors {
  margin-bottom: 32px;
  padding: 18px 20px 18px 22px;
  border: 1px solid color-mix(in srgb, var(--danger) 45%, transparent);
  border-left: 4px solid var(--danger);
  border-radius: 10px;
  background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

.o-errors:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.o-errors__title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.o-errors__text {
  margin-top: 6px;
  color: var(--text);
}

.o-errors__list {
  margin: 10px 0 0;
  padding-left: 1.1rem;
}

.o-errors__list li + li {
  margin-top: 4px;
}

.o-errors__list a {
  color: var(--danger);
  font-weight: 550;
}

/* ------------------------------------------------------------------ steps */

.o-step {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

/* JS: one step at a time */
html.order-js .order:not(.is-enhanced) .o-step:not([data-step="1"]),
.order.is-enhanced .o-step:not(.is-current) {
  display: none;
}

.order.is-enhanced .o-step.is-entering {
  animation: o-step-in .35s var(--ease-out);
}

@keyframes o-step-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* no JS: long form with hairline separators */
html:not(.order-js) .o-step + .o-step {
  margin-top: clamp(56px, 8vw, 88px);
  padding-top: clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--line);
}

.o-step__head {
  margin-bottom: clamp(24px, 4vw, 36px);
}

.o-step__of {
  margin-left: .9em;
  padding-left: .9em;
  border-left: 1px solid var(--line-strong);
  color: var(--text-2);
}

html.order-js .o-step__of {
  display: none;
}

.o-step__title {
  margin-top: 14px;
  font-size: clamp(1.75rem, 1.3rem + 1.7vw, 2.625rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.o-step__title:focus {
  outline: none;
}

.o-step__lead {
  margin-top: 12px;
  max-width: 36.6em; /* = 58ch of Inter, in em: same measure with the fallback font */
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-2);
}

/* ------------------------------------------------------------------ groups & fields */

.o-group + .o-group,
.o-fields + .o-group,
.o-group + .o-fields {
  margin-top: clamp(32px, 5vw, 44px);
}

.o-legend {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--text);
}

.o-legend .req,
.o-legend .opt {
  font-family: var(--font-body);
  font-size: .9375rem;
}

.o-legend .req {
  color: var(--accent-ink);
  margin-left: .15em;
}

.o-legend .opt {
  font-weight: 400;
  color: var(--text-2);
  margin-left: .3em;
}

.o-group > .help {
  margin-top: 4px;
  max-width: 37.9em; /* = 60ch of Inter, in em: same measure with the fallback font */
}

.o-group > .field-error {
  margin-top: 10px;
}

.o-fields {
  display: grid;
  /* minmax(0, …): a wide control (the native file input of the no-JS form) must not widen the page */
  grid-template-columns: minmax(0, 1fr);
  gap: 24px 20px;
}

@media (min-width: 720px) {
  .o-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .o-span-2 {
    grid-column: 1 / -1;
  }
}

.order .label {
  font-size: 1rem;
}

.order .input,
.order .select,
.order .textarea,
.cf .input,
.cf .select,
.cf .textarea {
  min-height: 54px;
  padding: .85rem 1rem;
  font-size: 1.0625rem;
  border-radius: 10px;
}

.order .textarea,
.cf .textarea {
  min-height: 120px;
}

.order .select,
.cf .select {
  padding-right: 2.75rem;
}

.o-field--date .input {
  max-width: 260px;
}

/* ------------------------------------------------------------------ package cards */

.o-pkgs {
  display: grid;
  gap: 14px;
}

.o-pkg {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  column-gap: 16px;
  padding: 22px 22px 22px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s ease, box-shadow .25s ease;
}

.o-pkg:hover {
  border-color: var(--line-strong);
}

.o-pkg__radio {
  position: relative;
  z-index: 2;
  grid-column: 1;
  grid-row: 1;
  margin-top: 4px;
}

.o-pkg__label {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  cursor: pointer;
}

/* the whole card selects the package */
.o-pkg__label::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.o-pkg__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.o-pkg__name {
  font-family: var(--font-head);
  font-size: 1.375rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.022em;
  color: var(--text);
}

.o-pkg__flag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.o-pkg__price {
  align-self: center;
  justify-self: end;
  font-family: var(--font-head);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.o-pkg__tagline {
  grid-column: 1 / -1;
  margin-top: 6px;
  max-width: 39.1em; /* = 62ch of Inter, in em: same measure with the fallback font */
  font-size: .9688rem;
  line-height: 1.55;
  color: var(--text-2);
}

.o-pkg__features {
  grid-column: 2;
  display: grid;
  gap: 8px 28px;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

@media (min-width: 720px) {
  .o-pkg__features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.o-pkg__feat {
  position: relative;
  padding-left: 22px;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--text);
}

.o-pkg__feat::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .38em;
  width: 10px;
  height: 5.5px;
  border-left: 1.75px solid var(--accent-ink);
  border-bottom: 1.75px solid var(--accent-ink);
  transform: rotate(-45deg);
}

.o-pkg__feat--inc {
  font-weight: 650;
}

.o-pkg__feat--inc::before {
  top: .42em;
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 2px;
  background: var(--accent);
  transform: none;
}

.o-pkg__more,
.o-pkg__term {
  grid-column: 2;
  margin-top: 12px;
  font-size: .8125rem;
  color: var(--text-2);
}

.o-pkg__more + .o-pkg__term {
  margin-top: 4px;
}

/* add-ons in the package price, listed under the features */
.o-pkg__inc {
  grid-column: 2;
  margin-top: 12px;
  font-size: .8125rem;
  line-height: 1.5;
  color: var(--text-2);
}

.o-pkg__inc-title {
  font-weight: 600;
  color: var(--text);
}

.o-pkg__save {
  grid-column: 2;
  justify-self: start;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: var(--radius-s);
  background: color-mix(in srgb, var(--ok) 12%, transparent);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ok);
}

.o-pkg__more + .o-pkg__inc,
.o-pkg__inc + .o-pkg__term,
.o-pkg__save + .o-pkg__term {
  margin-top: 4px;
}

/* unselected cards show 4 features; the chosen one opens fully */
.o-pkg:not(:has(.o-pkg__radio:checked)) .o-pkg__feat:nth-child(n + 5) {
  display: none;
}

.o-pkg:has(.o-pkg__radio:checked) .o-pkg__more {
  display: none;
}

@supports not selector(:has(*)) {
  .o-pkg__more {
    display: none;
  }
}

.o-pkg:has(.o-pkg__radio:checked) {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text), var(--shadow-1);
}

.o-pkg:has(.o-pkg__radio:focus-visible) {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.o-pkg:has(.o-pkg__radio[aria-invalid="true"]) {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
}

.o-pkg--unsure {
  background: var(--surface-2);
  padding-block: 18px;
}

.o-pkg--unsure .o-pkg__name {
  font-size: 1.125rem;
}

@media (max-width: 479.98px) {
  .o-pkg {
    padding: 18px 16px 18px 16px;
    column-gap: 14px;
  }
  .o-pkg__label {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-pkg__price {
    justify-self: start;
    margin-top: 2px;
  }
  .o-pkg__features {
    grid-column: 1 / -1;
  }
  .o-pkg__more,
  .o-pkg__term {
    grid-column: 1 / -1;
  }
}

/* ------------------------------------------------------------------ toggle rows (add-ons, care) */

.o-toggles {
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.o-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px 20px 16px 18px;
  transition: background-color .2s ease;
}

.o-toggle + .o-toggle {
  border-top: 1px solid var(--line);
}

.o-toggle:hover {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

.o-toggle__input {
  position: relative;
  z-index: 2;
  width: 44px;
  height: 26px;
  margin: 1px 0 0;
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-2);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.o-toggle__input::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  border-radius: 5px;
  background: var(--text-2);
  transition: transform .25s var(--ease-out), background-color .2s ease;
}

.o-toggle__input:checked {
  background: var(--text);
  border-color: var(--text);
}

.o-toggle__input:checked::before {
  transform: translateX(18px);
  background: var(--accent);
}

.o-toggle__input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.o-toggle__label {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 16px;
  cursor: pointer;
}

.o-toggle__label::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.o-toggle__name {
  font-weight: 600;
  line-height: 1.4;
}

.o-toggle__text {
  grid-column: 1;
  margin-top: 2px;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--text-2);
}

.o-toggle__price {
  grid-column: 2;
  grid-row: 1;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
}

/* the add-on is in the chosen package's price: badge under the text; unticked, the price shows what comes off */
.o-toggle__inc {
  grid-column: 1;
  justify-self: start;
  margin-top: 8px;
  padding: 2px 7px;
  border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  font-size: .75rem;
  font-weight: 700;
  color: var(--accent-ink);
}

.o-toggle__inc[hidden] {
  display: none;
}

.o-toggle.is-free .o-toggle__price {
  color: var(--text-2);
  font-weight: 500;
  text-decoration: line-through;
}

/* "cheaper as a package" hint under the add-ons */
.o-upsell {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent);
  background: color-mix(in srgb, var(--ok) 10%, var(--surface));
}

.o-upsell[hidden] {
  display: none;
}

.o-upsell__title {
  font-weight: 700;
  color: var(--ok);
}

.o-upsell__text {
  font-size: .9375rem;
  color: var(--text);
}

.o-upsell__btn {
  margin-top: 6px;
}

@media (max-width: 479.98px) {
  .o-toggle {
    padding: 14px 14px 14px 14px;
    gap: 12px;
  }
  .o-toggle__label {
    grid-template-columns: minmax(0, 1fr);
  }
  .o-toggle__price {
    grid-column: 1;
    grid-row: auto;
    margin-top: 4px;
    font-size: .875rem;
  }
}

@media (forced-colors: active) {
  .o-toggle__input {
    appearance: auto;
    -webkit-appearance: auto;
    width: 22px;
    height: 22px;
  }
  .o-toggle__input::before {
    display: none;
  }
}

/* ------------------------------------------------------------------ segmented radios */

.o-seg {
  --seg-min: 88px;
  --seg-pad: 18px;
  position: relative;
  display: flex;
  flex-wrap: wrap; /* labels never break – when they do not fit side by side, whole options move to a new row */
  max-width: 100%;
  gap: 3px;
  margin-top: 12px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
}

@media (min-width: 560px) {
  .o-seg {
    display: inline-flex;
  }
}

@media (max-width: 379px) {
  .o-seg {
    --seg-min: 64px;
    --seg-pad: 12px;
  }
}

.o-seg__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.o-seg__btn {
  /* grows from a common base, never narrower than its own label: equal segments where the text allows */
  flex: 1 0 var(--seg-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 var(--seg-pad);
  white-space: nowrap;
  text-align: center;
  border-radius: 7px;
  font-size: .9688rem;
  font-weight: 600;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, color .2s ease;
}

.o-seg__btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}

.o-seg__input:checked + .o-seg__btn {
  background: var(--text);
  color: var(--bg);
}

.o-seg__input:focus-visible + .o-seg__btn {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.o-seg:has([aria-invalid="true"]) {
  border-color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger);
}

@media (forced-colors: active) {
  .o-seg__input:checked + .o-seg__btn {
    outline: 2px solid Highlight;
  }
}

/* ------------------------------------------------------------------ tiles (actions, start) */

.o-tiles {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

@media (min-width: 560px) {
  .o-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.o-tile {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 16px 18px 16px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.o-tile:hover {
  border-color: var(--line-strong);
}

.o-tile__input {
  position: relative;
  z-index: 2;
  margin-top: 1px;
}

.o-tile__label {
  display: grid;
  gap: 2px;
  cursor: pointer;
}

.o-tile__label::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.o-tile__title {
  font-weight: 600;
  line-height: 1.4;
}

.o-tile__help {
  font-size: .875rem;
  line-height: 1.45;
  color: var(--text-2);
}

.o-tile:has(.o-tile__input:checked) {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text);
}

.o-tile:has(.o-tile__input[aria-invalid="true"]) {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
}

.o-tiles--radio .o-tile {
  align-items: center;
}

/* ------------------------------------------------------------------ chips (features) */

.o-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.o-chip {
  position: relative;
  display: inline-flex;
}

.o-chip__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.o-chip__label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  font-size: .9375rem;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* "+" that becomes a tick */
.o-chip__label::before {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat;
  opacity: .7;
  transition: transform .25s var(--ease-out);
}

.o-chip__label:hover {
  border-color: var(--text);
}

.o-chip__input:checked + .o-chip__label {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}

.o-chip__input:checked + .o-chip__label::before {
  width: 10px;
  height: 5.5px;
  margin: 0 .5px 3px;
  background: none;
  border-left: 1.75px solid var(--accent);
  border-bottom: 1.75px solid var(--accent);
  opacity: 1;
  transform: rotate(-45deg);
}

.o-chip__input:focus-visible + .o-chip__label {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (forced-colors: active) {
  .o-chip__input:checked + .o-chip__label {
    outline: 2px solid Highlight;
  }
}

/* ------------------------------------------------------------------ option rows (budget) */

.o-opts {
  margin-top: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.o-opt {
  align-items: center;
  padding: 15px 18px;
  transition: background-color .2s ease;
}

.o-opt + .o-opt {
  border-top: 1px solid var(--line);
}

.o-opt:hover {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

.o-opt:has(:checked) {
  background: color-mix(in srgb, var(--text) 4%, transparent);
  font-weight: 600;
}

/* ------------------------------------------------------------------ files */

.o-files__drop {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 6px;
  padding: 18px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color .2s ease, background-color .2s ease;
}

.o-files__drop.is-drag {
  border-color: var(--text);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
}

.o-files__choose,
.o-files__hint {
  display: none;
}

html.order-js .o-files__choose {
  display: inline-flex;
}

html.order-js .o-files__hint {
  display: inline;
  font-size: .9375rem;
  color: var(--text-2);
}

html.order-js .o-files__input {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
}

html.order-js .o-files__input:focus-visible + .o-files__choose {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.o-files__input {
  min-width: 0; /* the native file input (no-JS form) may shrink inside the flex drop zone */
  max-width: 100%;
  font-size: .9375rem;
}

.o-files__plus {
  position: relative;
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
}

.o-files__lost {
  padding: 10px 14px;
  border-left: 3px solid var(--warn);
  background: color-mix(in srgb, var(--warn) 9%, var(--surface));
  border-radius: 0 8px 8px 0;
  font-size: .9375rem;
}

.o-files__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.o-files__list:not(:empty) {
  margin-top: 10px;
}

.o-file {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  animation: o-step-in .35s var(--ease-out);
}

.o-file__thumb {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--surface-2);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-2);
}

.o-file__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.o-file__body {
  min-width: 0;
}

.o-file__name {
  display: block;
  overflow: hidden;
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.o-file__meta {
  display: block;
  font-size: .8125rem;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ recap (step 5, JS) */

.o-recap {
  margin-top: clamp(32px, 5vw, 44px);
  padding: 20px 22px 8px;
  border-radius: var(--radius);
  background: var(--bg-2);
}

.o-recap__title {
  font-size: 1.0625rem;
  font-weight: 700;
}

.o-recap__list {
  margin: 8px 0 0;
}

.o-recap__row {
  display: grid;
  gap: 4px;
  padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}

.o-recap__row:first-child {
  border-top: 0;
}

.o-recap__row dt {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.o-recap__row dd {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--text);
}

.o-recap__val {
  min-width: 0;
  overflow-wrap: anywhere;
}

.o-recap__edit {
  flex: none;
  margin-top: -6px;
}

/* ------------------------------------------------------------------ consent, honeypot */

.o-consent {
  margin-top: clamp(28px, 4vw, 36px);
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.o-consent.has-error {
  border-color: color-mix(in srgb, var(--danger) 60%, var(--line));
}

.o-consent .choice,
.cf .choice {
  font-size: .9688rem;
  line-height: 1.5;
}

/* legal basis under the checkbox – aligned with the label text (22px box + .75rem gap) */
.o-consent__note {
  margin: 0;
  padding-left: calc(22px + .75rem);
  font-size: .8438rem;
}

/* ------------------------------------------------------------------ step navigation & submit */

.o-nav {
  display: none;
}

html.order-js .o-nav,
.o-nav--submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: clamp(36px, 5vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

html:not(.order-js) [data-nav-only] {
  display: none;
}

.o-nav__next,
.o-submit__btn {
  margin-left: auto;
}

.o-nav__back .icon {
  margin-left: -4px;
}

@media (max-width: 559.98px) {
  .o-nav__next,
  .o-submit__btn {
    flex: 1 1 auto;
  }
  html:not(.order-js) .o-submit__btn {
    width: 100%;
  }
}

.order .o-submit__btn[aria-busy="true"] {
  color: var(--on-accent) !important;
  padding-right: 3.25rem;
}

.order .o-submit__btn[aria-busy="true"]::after {
  left: auto;
  right: 1.25rem;
}

.order .o-submit__btn[aria-busy="true"] .icon {
  display: none;
}

.o-submit__progress {
  position: relative;
  height: 3px;
  margin-top: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--line);
}

.o-submit__progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 36%;
  border-radius: 2px;
  background: var(--accent);
  animation: o-indeterminate 1.3s var(--ease-in-out) infinite;
}

@keyframes o-indeterminate {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(290%);
  }
}

.o-submit__status:empty {
  display: none;
}

.o-submit__status {
  margin-top: 12px;
  font-size: .9375rem;
  color: var(--text-2);
}

.o-submit__note {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--text-2);
}

@media (min-width: 560px) {
  .o-submit__note {
    text-align: right;
  }
}

/* ------------------------------------------------------------------ mobile summary bar (JS, < 1024 px) */

.o-bar {
  display: none;
}

@media (max-width: 1023.98px) {
  html.order-js .o-bar:not([hidden]) {
    position: sticky;
    bottom: 0;
    z-index: 30;
    display: block;
    margin: clamp(32px, 6vw, 48px) calc(var(--gutter) * -1) 0;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
    background-color: var(--band-bg);
    border-top: 2px solid var(--accent);
    color: var(--text);
  }
}

/* First visit: the cookie note would cover the bar. Phones: the note is a full-width strip at the very bottom, so the
   bar sits on top of it until the note is closed (site.js sets --note-h = the note's height + 16 px). Tablets: the
   note is a card, which moves up above the bar instead. */
@media (max-width: 599.98px) {
  html.order-js.has-note .o-bar:not([hidden]) {
    bottom: max(0px, calc(var(--note-h, 0px) - 16px));
  }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  html.order-js .cookie-note {
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  }
}

/* Keyboard focus and in-page jumps stop above the bar (and above the cookie note while it is shown, WCAG 2.4.11).
   !important: site.js writes the note's own padding inline on <html>; here it is extended by the bar's height. */
@media (max-width: 1023.98px) {
  html.order-js {
    scroll-padding-bottom: calc(var(--note-h, 0px) + 72px) !important;
  }
}

@media (min-width: 600px) and (max-width: 1023.98px) {
  html.order-js.has-note {
    scroll-padding-bottom: calc(var(--note-h, 0px) + 100px) !important;
  }
}

.o-bar__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 16px;
  width: 100%;
  min-height: 48px;
  padding: 2px 0;
  text-align: left;
  color: var(--text);
  border-radius: var(--radius-s);
}

.o-bar__main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  min-width: 0;
}

.o-bar__label {
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.o-bar__price {
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.o-bar__pkg {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  font-size: .8125rem;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.o-bar__more {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
}

.o-bar__more .icon {
  transition: transform .25s var(--ease-out);
}

.o-bar__toggle[aria-expanded="true"] .o-bar__more .icon {
  transform: rotate(180deg);
}

.o-bar__panel {
  max-height: 46vh;
  margin-top: 8px;
  padding-top: 4px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.o-bar__panel .o-sum__list {
  padding: 0;
}

.o-bar__panel .o-sum__note {
  padding-bottom: 6px;
}

/* Phones: one ~56 px line (price · package · „Szczegóły”), so the bar never takes a big bite of a short screen.
   The eyebrow stays in the button's accessible name, only visually hidden. */
@media (max-width: 599.98px) {
  html.order-js .o-bar:not([hidden]) {
    padding-top: 5px;
    padding-bottom: calc(5px + env(safe-area-inset-bottom, 0px));
  }
  .o-bar__toggle {
    grid-template-columns: auto minmax(0, 1fr) auto;
    column-gap: 10px;
    min-height: 44px;
    padding: 0;
  }
  .o-bar__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .o-bar__main {
    flex-wrap: nowrap;
  }
  .o-bar__price {
    font-size: 1rem;
  }
  .o-bar__pkg {
    grid-column: 2;
    grid-row: 1;
  }
  .o-bar__pkg::before {
    content: "· ";
  }
  .o-bar__more {
    grid-column: 3;
    grid-row: 1;
  }
}

/* Narrow phones: „Szczegóły” keeps only its chevron (the word stays in the accessible name), so the package name
   still has room next to the longest price text. */
@media (max-width: 379.98px) {
  .o-bar__more {
    gap: 0;
    font-size: 0;
  }
  .o-bar__more .icon {
    width: 20px;
    height: 20px;
  }
}

/* ------------------------------------------------------------------ thank-you page */

.t-hero {
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(40px, 7vw, 96px);
}

.t-hero__grid {
  display: grid;
  gap: clamp(32px, 5vw, 56px);
  margin-top: clamp(28px, 5vw, 56px);
}

@media (min-width: 1024px) {
  .t-hero__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--grid-gap);
    align-items: end;
  }
  .t-hero__main {
    grid-column: 1 / span 7;
  }
  .t-card {
    grid-column: 8 / span 5;
  }
}

.t-hero__main .lead {
  margin-top: 1.25rem;
}

.t-card {
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-l);
  background-color: var(--band-bg);
  color: var(--text);
  box-shadow: var(--shadow-2);
  animation: o-step-in .7s var(--ease-out) both;
}

.t-card__label {
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.t-card__number {
  margin-top: 10px;
  font-family: var(--font-head);
  font-size: clamp(2.125rem, 1.7rem + 1.9vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.t-card__help {
  margin-top: 12px;
  font-size: .9375rem;
  color: var(--text-2);
}

.t-panel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.t-panel__label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-2);
}

.t-row {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 13px 14px 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  animation: t-row-in .7s var(--ease-out) .35s both;
}

.t-row__dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: t-ping 2.4s ease-out 1.2s infinite;
}

.t-row__main {
  min-width: 0;
}

.t-row__num {
  display: block;
  font-weight: 650;
  font-size: .9375rem;
}

.t-row__meta {
  display: block;
  overflow: hidden;
  font-size: .8125rem;
  color: var(--text-2);
  white-space: nowrap;
  text-overflow: ellipsis;
}

@keyframes t-row-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes t-ping {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent);
  }
}

.t-next {
  position: relative;
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(40px, 6vw, 72px);
}

.t-next::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}

.t-next__title {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
}

.t-steps {
  display: grid;
  gap: 28px;
  margin: clamp(28px, 4vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .t-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--grid-gap);
  }
}

.t-step {
  padding-top: 18px;
  border-top: 1px solid var(--text);
}

.t-step__n {
  font-size: .8125rem;
  font-weight: 650;
  letter-spacing: .08em;
  color: var(--accent-ink);
}

.t-step__title {
  margin-top: 12px;
  font-size: 1.25rem;
}

.t-step__text {
  margin-top: 8px;
  max-width: 25.2em; /* = 40ch of Inter, in em: same measure with the fallback font */
  color: var(--text-2);
}

.t-links {
  padding-bottom: clamp(72px, 10vw, 140px);
}

.t-links__contact {
  margin-top: 22px;
  font-size: .9375rem;
}

/* ------------------------------------------------------------------ call form (home #contact) */

.cf__head {
  margin-bottom: 22px;
}

.cf__title {
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cf__lead {
  margin-top: 8px;
  max-width: 30.3em; /* = 48ch of Inter, in em: same measure with the fallback font */
  font-size: .9688rem;
  line-height: 1.55;
  color: var(--text-2);
}

.cf {
  container-type: inline-size;
}

.cf__grid {
  display: grid;
  gap: 18px 16px;
}

/* two columns only where the form itself is wide enough (in the #contact band it sits in a narrow column) */
@container (min-width: 520px) {
  .cf__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cf__wide {
    grid-column: 1 / -1;
  }
}

.cf .label {
  font-size: .9375rem;
}

.cf__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 22px;
}

.cf__note {
  font-size: .875rem;
  color: var(--text-2);
}

.cf__status {
  margin-top: 12px;
  font-size: .9375rem;
  color: var(--danger);
}

.cf__status:empty {
  display: none;
}

.cf__errors {
  margin-bottom: 20px;
  padding: 14px 16px 14px 18px;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: color-mix(in srgb, var(--danger) 9%, var(--surface));
  font-size: .9375rem;
}

.cf__errors:focus {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.cf__errors-title {
  font-weight: 700;
}

.cf__errors ul {
  margin: 6px 0 0;
  padding-left: 1.1rem;
}

.cf__errors a {
  color: var(--danger);
}

.cf__submit[aria-busy="true"] {
  color: var(--on-accent) !important;
  padding-right: 3.25rem;
}

.cf__submit[aria-busy="true"]::after {
  left: auto;
  right: 1.25rem;
}

.cf__submit[aria-busy="true"] .icon {
  display: none;
}

.cf__success {
  padding: 4px 0;
  animation: o-step-in .35s var(--ease-out);
}

.cf__success:focus {
  outline: none;
}

.cf__tick {
  position: relative;
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
}

.cf__tick::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 16px;
  height: 9px;
  border-left: 2.5px solid var(--on-accent);
  border-bottom: 2.5px solid var(--on-accent);
  transform: rotate(-45deg);
}

.cf__success-title {
  margin-top: 18px;
  font-family: var(--font-head);
  font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.cf__success-text {
  margin-top: 8px;
  max-width: 29em; /* = 46ch of Inter, in em: same measure with the fallback font */
  color: var(--text-2);
}

.cf__success-number {
  display: inline-flex;
  margin-top: 16px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  font-size: .9375rem;
  font-weight: 600;
}

.cf__again {
  display: flex;
  margin-top: 18px;
}

.cf__again[hidden] {
  display: none;
}

.cf-page {
  padding-top: clamp(24px, 5vw, 64px);
  padding-bottom: clamp(72px, 10vw, 140px);
}

.cf-page .eyebrow {
  margin-top: clamp(28px, 5vw, 56px);
}

.cf-page__title {
  margin-bottom: clamp(28px, 4vw, 44px);
  font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  max-width: 13.5em; /* = 20ch of Manrope 800, in em: same measure with the fallback font */
}

.cf--standalone {
  max-width: 760px;
}

/* ------------------------------------------------------------------ print */

@media print {
  .o-aside,
  .o-bar,
  .o-nav,
  .o-progress,
  .o-files__drop {
    display: none !important;
  }
  .order.is-enhanced .o-step {
    display: block !important;
  }
}
