/* Objednavka /order/{product} vcetne rozsireni a Servisu, dokonceni a platba (prototyp servis.html #objednavka, servis.css .order-*).
   Vlastnik: balik 5C. Vse pod .rd. Plati jen pro CZ; /sk/order/* zustava v MainLayout bez .rd. */

/* ---------- 5C – formular objednavky ---------- */

.rd .order-page {
  padding-top: 40px;
  padding-bottom: 32px;
}

.rd .order-page .page-width.narrow {
  max-width: 980px;
}

.rd .order-page .order-loading {
  display: grid;
  place-items: center;
  min-height: 420px;
}

.rd .order-page .order-loading .loader {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border-color);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: rd-spin .9s linear infinite;
}

.rd .order-page .back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}

.rd .order-page .page-head.row {
  margin-bottom: 30px;
}

/* kroky objednavky (OrderSteps) */
.rd .order-page .steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .order-page .steps .step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted-text-color);
}

.rd .order-page .steps .n {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid #cfd3dc;
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.rd .order-page .steps .step.active {
  color: var(--navy);
  font-weight: 600;
}

.rd .order-page .steps .step.active .n {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.rd .order-page .steps .step.done {
  color: var(--navy);
}

.rd .order-page .steps .step.done .n {
  border-color: var(--ok);
  background: var(--ok);
  color: #fff;
}

.rd .order-page .steps .line {
  flex: 0 1 60px;
  min-width: 20px;
  height: 2px;
  background: #dfe2e8;
}

.rd .order-page .steps .line.done {
  background: var(--ok);
}

.rd .order-page .prefilled {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--light-gray-color);
  font-size: 13px;
  color: var(--body-text);
}

.rd .order-page .prefilled b {
  font-weight: 600;
  color: var(--navy);
}

.rd .order-page .from-pricing {
  margin-bottom: 18px;
}

.rd .order-page .order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 34px;
  align-items: start;
}

.rd .order-page .order-main {
  display: grid;
  gap: 14px;
  align-content: start;
}

.rd .order-page .order-main .info-card + .info-card {
  margin-top: 0;
}

.rd .order-page .form-section {
  margin-bottom: 26px;
}

.rd .order-page .form-section:last-child {
  margin-bottom: 0;
}

.rd .order-page .form-section > h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.rd .order-page .form-section > h3 .num {
  display: grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--accent-link);
  font-size: 12px;
}

.rd .order-page .form-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px 14px;
}

.rd .order-page .form-grid .c2 {
  grid-column: span 2;
}

.rd .order-page .form-grid .c3 {
  grid-column: span 3;
}

.rd .order-page .form-grid .c4 {
  grid-column: span 4;
}

.rd .order-page .form-grid .c6 {
  grid-column: 1 / -1;
}

.rd .order-page .form-grid .form-note {
  margin: -8px 0 0;
  font-size: 12px;
  line-height: 17px;
  color: var(--muted-text-color);
}

.rd .order-page .form-msg {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  font-size: 12.5px;
  line-height: 18px;
}

.rd .order-page .form-msg.ok {
  color: var(--ok);
}

.rd .order-page .form-msg.err {
  color: var(--err);
}

.rd .order-page .form-msg.info {
  color: var(--info);
}

.rd .order-page .form-msg .spin {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: rd-spin .8s linear infinite;
}

/* chyby validace (InputText / ValidationMessage) */
.rd .order-page .input.invalid,
.rd .order-page .textarea.invalid {
  border-color: var(--err);
}

.rd .order-page .validation-message {
  font-size: 12px;
  line-height: 17px;
  color: var(--err);
}

/* naseptavac adres z RUIAN (OrderAddressField) */
.rd .order-page .addr-suggest {
  position: relative;
}

.rd .order-page .addr-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 20;
  max-height: 300px;
  margin: 0;
  padding: 6px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-overlay);
}

.rd .order-page .addr-list li {
  padding: 8px 14px;
  cursor: pointer;
}

.rd .order-page .addr-list li:hover,
.rd .order-page .addr-list li.active {
  background: var(--accent-soft);
}

.rd .order-page .addr-list b {
  display: block;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--navy);
}

.rd .order-page .addr-list small {
  display: block;
  font-size: 12px;
  line-height: 17px;
  color: var(--muted-text-color);
}

@media (hover: none) {
  .rd .order-page .addr-list li {
    padding: 11px 14px;
  }
}

.rd .order-page .transfer {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #c9cdd6;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .order-page .transfer .ico {
  flex: none;
  color: var(--navy);
}

.rd .order-page .transfer b {
  color: var(--navy);
}

/* velke volby licence a skupin (OrderOption) */
.rd .order-page .opts {
  display: grid;
  gap: 10px;
}

.rd .order-page .opt {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}

.rd .order-page .opt:hover {
  border-color: #b9bdc8;
}

.rd .order-page .opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.rd .order-page .opt:has(input:focus-visible) {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.rd .order-page .opt .ind {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid #b9bdc8;
  border-radius: 50%;
  background: #fff;
}

.rd .order-page .opt.multi .ind {
  border-radius: 5px;
}

.rd .order-page .opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.rd .order-page .opt.on .ind {
  border-color: var(--accent);
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center no-repeat;
}

.rd[data-product="fs"] .order-page .opt.on .ind {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%232d364c' stroke-width='2' fill='none'/%3E%3C/svg%3E");
}

.rd .order-page .opt-text b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.rd .order-page .opt-text small {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--body-text);
}

.rd .order-page .opt-text .for {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .order-page .opt .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  text-align: right;
}

.rd .order-page .opt .price small {
  display: block;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .order-page .opt.locked {
  cursor: default;
  border-style: dashed;
  background: var(--light-gray-color);
}

.rd .order-page .opt.locked .ind {
  border-color: #9aa0ad;
  background: #9aa0ad url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='white' stroke-width='2' fill='none'/%3E%3C/svg%3E") center no-repeat;
}

.rd .order-page .opt.locked:not(.on) .ind {
  background-image: none;
}

.rd .order-page .opt-group-title {
  margin: 26px 0 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 18px;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: var(--muted-text-color);
  scroll-margin-top: 90px;
}

.rd .order-page .opt-lead {
  margin: -4px 0 14px;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .order-page .opt-unlock {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--muted-text-color);
}

.rd .order-page .opt-unlock .link {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd .order-page .seg-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.rd .order-page .seg-choice .opt {
  grid-template-columns: 1fr;
  padding: 12px 10px;
  text-align: center;
}

.rd .order-page .seg-choice .opt .ind {
  display: none;
}

.rd .order-page .opts.flash .opt {
  animation: rd-optflash 1.6s ease-out;
}

@keyframes rd-optflash {
  0%, 30% {
    box-shadow: 0 0 0 3px var(--accent);
  }

  100% {
    box-shadow: 0 0 0 3px transparent;
  }
}

.rd .order-page .form-grid.devices {
  margin-top: 12px;
}

/* ---------- 5C – souhrn ceny (OrderSummary) ---------- */

.rd .order-page .sum-card {
  position: sticky;
  top: 20px;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.rd .order-page .sum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 22px 0;
}

.rd .order-page .sum-head img {
  display: block;
  height: 34px;
  width: auto;
}

.rd .order-page .sum-body {
  padding: 4px 22px 18px;
}

.rd .order-page .sum-lines {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--primary-text-color);
}

.rd .order-page .sum-lines li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.rd .order-page .sum-lines li.add span:first-child::before {
  content: "+ ";
  font-weight: 700;
  color: var(--ok);
}

.rd .order-page .sum-lines li.none {
  color: var(--muted-text-color);
}

.rd .order-page .sum-lines li.none .link {
  margin-left: 4px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd .order-page .sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.rd .order-page .sum-total b {
  font-size: 15px;
  color: var(--navy);
}

.rd .order-page .sum-total .big {
  font-size: 28px;
  line-height: 34px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
  white-space: nowrap;
}

.rd .order-page .sum-total .big small {
  display: block;
  font-size: 12.5px;
  line-height: 18px;
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .order-page .sum-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--warn);
}

.rd .order-page .sum-note.info {
  color: var(--info);
}

.rd .order-page .sum-foot {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--light-gray-color);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  background: #fafbfc;
}

.rd .order-page .sum-foot .sum-msg {
  margin-bottom: 12px;
}

.rd .order-page .sum-foot .sum-back {
  margin-top: 10px;
}

.rd .order-page .sum-foot .legal {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--body-text);
}

.rd .order-page .sum-foot .legal b {
  color: var(--navy);
}

.rd .order-page .sum-foot .legal .link {
  font-size: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd .order-page .mini-trust {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--body-text);
}

.rd .order-page .mini-trust span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rd .order-page .mini-trust svg {
  flex: none;
  color: var(--ok);
}

/* ---------- 5C – Servis: kontrola udaju a platba ---------- */

.rd .order-page .form-callout {
  margin-top: 18px;
}

.rd .order-page .form-callout.first {
  margin: 0 0 18px;
}

.rd .order-page .form-actions {
  margin-top: 22px;
}

.rd .order-page .dl-list {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 18px;
  margin: 0;
  font-size: 14px;
  line-height: 22px;
}

.rd .order-page .dl-list dt {
  color: var(--muted-text-color);
}

.rd .order-page .dl-list dd {
  margin: 0;
  font-weight: 500;
  color: var(--primary-text-color);
  overflow-wrap: anywhere;
}

.rd .order-page .pay-locked {
  margin-top: 10px;
  padding: 12px 22px;
  border-style: dashed;
  opacity: .6;
}

.rd .order-page .pay-locked b {
  color: var(--navy);
}

.rd .order-page .confirmed-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px 20px;
}

.rd .order-page .confirmed-bar .txt {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .order-page .confirmed-bar .txt b {
  color: var(--navy);
}

.rd .order-page .confirmed-bar .note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--ok);
}

.rd .order-page .tick {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
}

.rd .order-page .tick.yes {
  background: var(--ok-soft);
  color: var(--ok);
}

.rd .order-page .pay-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px 34px;
  align-items: center;
}

.rd .order-page .pay-card.single {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.rd .order-page .pay-rows {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 22px;
  align-items: center;
  margin: 0;
  font-size: 14.5px;
}

.rd .order-page .pay-rows dt {
  color: var(--muted-text-color);
}

.rd .order-page .pay-rows dd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  font-weight: 600;
  color: var(--navy);
}

.rd .order-page .pay-rows dd.pay-value {
  font-size: 17px;
  line-height: 24px;
}

.rd .order-page .pay-rows dd.amount {
  font-size: 22px;
  line-height: 28px;
}

.rd .order-page .pay-rows .vat {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .order-page .copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 2px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted-text-color);
  vertical-align: middle;
  cursor: pointer;
}

.rd .order-page .copy:hover,
.rd .order-page .copy:focus-visible {
  background: var(--light-gray-color);
  color: var(--navy);
}

.rd .order-page .copy.done {
  color: var(--ok);
}

.rd .order-page .copy .copy-hint {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  z-index: 30;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 8px 20px rgba(31, 40, 61, .22);
  font: 400 12px/16px var(--font-family);
  color: #fff;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 4px);
  transition: opacity .15s, transform .15s, visibility .15s;
  pointer-events: none;
}

.rd .order-page .copy .copy-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.rd .order-page .copy:hover .copy-hint,
.rd .order-page .copy:focus-visible .copy-hint,
.rd .order-page .copy.done .copy-hint {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.rd .order-page .pay-rows .acc-sep {
  margin: 0 4px 0 2px;
}

.rd .order-page .qr {
  font-size: 12px;
  color: var(--muted-text-color);
  text-align: center;
}

.rd .order-page .qr img {
  display: block;
  margin: 0 auto 6px;
  padding: 8px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  box-sizing: content-box;
}

.rd .order-page .qr.row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
  text-align: left;
}

.rd .order-page .qr.row img {
  flex: none;
  margin: 0;
}

.rd .order-page .qr .link {
  margin-top: 8px;
  font-size: 13px;
}

.rd .order-page .proforma-row {
  margin-top: 18px;
}

.rd .order-page .proforma-row .muted {
  font-size: 12.5px;
}

.rd .order-page .pay-after {
  margin-top: 20px;
}

/* ---------- 5C – dokonceni a platba (CompletionTab, okno brany) ---------- */

.rd .order-page .success-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  padding: 26px 28px;
  border-radius: var(--radius-lg);
  background: var(--ok-soft);
}

.rd .order-page .success-hero .big-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
}

.rd .order-page .success-hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: var(--navy);
}

.rd .order-page .success-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .order-page .next-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rd-step;
}

.rd .order-page .next-steps li {
  position: relative;
  padding-left: 40px;
  font-size: 14px;
  line-height: 21px;
  counter-increment: rd-step;
}

.rd .order-page .next-steps li::before {
  content: counter(rd-step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--accent-link);
  font-size: 13px;
  font-weight: 600;
  line-height: 26px;
  text-align: center;
}

.rd .order-page .next-steps b {
  color: var(--navy);
}

.rd .order-page .next-steps a,
.rd .order-page .success-hero a {
  font-weight: 600;
  color: var(--accent-link);
}

.rd .order-page .rd-modal .next-steps,
.rd .order-page .modal-box .next-steps {
  gap: 10px;
  margin: 16px 0;
}

.rd .order-page .done-callout {
  margin-bottom: 18px;
}

.rd .order-page .pay-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.rd .order-page .pay-method h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rd .order-page .pay-method h2 .tag {
  margin-left: auto;
}

.rd .order-page .pay-method.fastest {
  border: 2px solid var(--accent);
}

.rd .order-page .pay-method .pay-methods {
  margin: 10px 0 16px;
}

.rd .order-page .pay-method .pay-buttons {
  gap: 10px;
}

.rd .order-page .pay-method .muted.small {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 18px;
}

.rd .order-page .pay-method .muted.small a {
  font-weight: 600;
  color: var(--accent-link);
}

.rd .order-page .order-note {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--muted-text-color);
}

.rd .order-page .gateway {
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.rd .order-page .gateway .bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: #fafbfc;
  font-size: 12.5px;
  color: var(--body-text);
}

.rd .order-page .gateway .bar b {
  color: var(--navy);
}

.rd .order-page .gateway-frame {
  display: block;
  width: 100%;
  height: min(70vh, 620px);
  border: 0;
  background: #fff;
}

.rd .order-page .order-privacy {
  margin: 30px 0 0;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--light-gray-color);
  font-size: 12.5px;
  line-height: 19px;
  color: var(--body-text);
}

/* ---------- kompaktni objednavka a Servis (prototyp servis.css .pg-tight, .bill-grid, .srv-*) ---------- */

.rd .order-page.pg-tight {
  padding-top: 24px;
}

.rd .order-page.pg-tight .page-width.service-narrow {
  max-width: 900px;
}

.rd .order-page .page-head.row.head-tight {
  align-items: center;
  margin-bottom: 16px;
}

.rd .order-page .head-tight h1 {
  margin-bottom: 2px;
  font-size: 28px;
  line-height: 36px;
}

.rd .order-page .head-tight p {
  font-size: 14px;
  line-height: 21px;
}

.rd .order-page .head-tight .steps {
  flex-wrap: nowrap;
}

.rd .order-page .head-tight .steps .step {
  white-space: nowrap;
}

.rd .order-page.pg-tight .prefilled {
  margin-bottom: 14px;
  padding: 9px 14px;
}

.rd .order-page.pg-tight .back-link {
  margin-bottom: 8px;
  font-size: 13.5px;
}

.rd .order-page.pg-tight .order-layout {
  gap: 26px;
}

.rd .order-page .order-main .info-card {
  padding: 18px 22px;
}

.rd .order-page .order-main .form-section {
  margin-bottom: 0;
}

.rd .order-page .order-main .form-section > h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.rd .order-page .order-main .form-section > h3 .num {
  width: 22px;
  height: 22px;
  font-size: 11.5px;
}

.rd .order-page .order-main .form-section > h3 svg {
  flex: none;
  color: var(--navy);
}

.rd .order-page .order-main .form-lead,
.rd .order-page .order-main .opt-lead {
  margin: -4px 0 10px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted-text-color);
}

.rd .order-page .order-main .ares-note {
  margin: -2px 0 10px;
}

.rd .order-page .bill-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 10px 12px;
}

.rd .order-page .bill-grid > * {
  align-self: start;
  min-width: 0;
}

.rd .order-page .bill-grid > .g2 { grid-column: span 2; }
.rd .order-page .bill-grid > .g3 { grid-column: span 3; }
.rd .order-page .bill-grid > .g4 { grid-column: span 4; }
.rd .order-page .bill-grid > .g6 { grid-column: span 6; }
.rd .order-page .bill-grid > .g8 { grid-column: span 8; }

.rd .order-page .order-main .field {
  gap: 3px;
}

.rd .order-page .order-main .field > label,
.rd .order-page .order-main .field > .label {
  font-size: 12px;
  line-height: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rd .order-page .order-main .input {
  height: 38px;
  padding: 0 11px;
  font-size: 13.5px;
}

.rd .order-page .order-main .textarea {
  height: 38px;
  min-height: 38px;
  padding: 8px 11px;
  font-size: 13.5px;
  line-height: 20px;
  resize: vertical;
}

.rd .order-page .order-main .field .hint {
  font-size: 11.5px;
  line-height: 15px;
}

.rd .order-page .bill-grid > .edit-note {
  align-self: end;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 0 0 2px;
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted-text-color);
}

.rd .order-page .edit-note svg {
  flex: none;
  margin-top: 1px;
  color: var(--navy);
}

.rd .order-page .edit-note .link {
  font-size: inherit;
}

.rd .order-page .srv-edit-actions {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--light-gray-color);
}

.rd .order-page .order-main .transfer {
  margin-top: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 18px;
}

.rd .order-page .order-main .opts {
  gap: 6px;
}

.rd .order-page .order-main .opt {
  gap: 10px;
  align-items: center;
  padding: 9px 14px;
}

.rd .order-page .order-main .opt .ind {
  width: 18px;
  height: 18px;
  margin-top: 0;
}

.rd .order-page .order-main .opt-text {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
}

.rd .order-page .order-main .opt-text b {
  font-size: 14px;
  line-height: 20px;
}

.rd .order-page .order-main .opt-text .for {
  order: 2;
  margin: 0;
  font-size: 12px;
}

.rd .order-page .order-main .opt-text small {
  order: 3;
  flex-basis: 100%;
  margin: 0;
  font-size: 12.5px;
  line-height: 17px;
}

.rd .order-page .order-main .opt.multi {
  padding: 8px 14px;
}

.rd .order-page .order-main .opt.multi .opt-text small {
  display: none;
}

.rd .order-page .order-main .opt-group-title {
  margin: 14px 0 6px;
}

.rd .order-page .order-main .seg-choice .opt {
  padding: 8px 10px;
}

.rd .order-page .order-main .seg-choice .opt-text {
  display: block;
}

.rd .order-page .order-main .seg-choice .opt-text small {
  display: block;
  flex-basis: auto;
  order: 0;
}

.rd .order-page.pg-tight .sum-card {
  top: 12px;
}

.rd .order-page.pg-tight .sum-head {
  padding-top: 16px;
}

.rd .order-page.pg-tight .sum-total {
  margin-top: 12px;
  padding-top: 12px;
}

.rd .order-page.pg-tight .sum-foot {
  padding: 14px 22px 16px;
}

.rd .order-page.pg-tight .order-privacy {
  margin-top: 18px;
}

.rd .order-page .srv-check {
  padding: 18px 26px 10px;
}

.rd .order-page .srv-note {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--ok-soft);
  font-size: 13px;
  line-height: 19px;
  color: var(--navy);
}

.rd .order-page .srv-note .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--ok);
}

.rd .order-page .srv-check .dl-list {
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 2px 14px;
  font-size: 13.5px;
  line-height: 21px;
}

.rd .order-page .srv-sec {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.rd .order-page .srv-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.rd .order-page .srv-cols > section:first-child {
  padding-right: 26px;
}

.rd .order-page .srv-cols > section + section {
  padding-left: 26px;
  border-left: 1px solid var(--light-gray-color);
}

.rd .order-page .srv-sub {
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .order-page .srv-upsell {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 7px 12px;
  border: 1px dashed var(--border-color);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .order-page .srv-upsell .ico {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--accent-link);
}

.rd .order-page .srv-upsell p {
  margin: 0;
}

.rd .order-page .srv-upsell .link {
  font-size: inherit;
}

.rd .order-page .srv-full {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--ok);
}

.rd .order-page .srv-full svg {
  flex: none;
}

.rd .order-page .srv-check .srv-actions {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--light-gray-color);
}

.rd .order-page .srv-hint {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 19px;
  color: var(--muted-text-color);
}

.rd .order-page .srv-hint b {
  font-weight: 600;
  color: var(--body-text);
}

.rd .order-page .btn-row .grow {
  flex: 1;
}

@media (max-width: 760px) {
  .rd .order-page .srv-cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .order-page .srv-cols > section:first-child {
    padding-right: 0;
  }

  .rd .order-page .srv-cols > section + section {
    margin-top: 16px;
    padding-left: 0;
    border-left: 0;
  }
}

/* ---------- 5C – responzivita ---------- */

@media (max-width: 1100px) {
  .rd .order-page .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .order-page .sum-card {
    position: static;
  }
}

@media (max-width: 700px) {
  .rd .order-page {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .rd .order-page .page-head h1 {
    font-size: 25px;
    line-height: 33px;
  }

  .rd .order-page .steps .line {
    flex-basis: 20px;
  }

  .rd .order-page .info-card {
    padding: 20px 18px;
  }

  .rd .order-page .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .order-page .form-grid > * {
    grid-column: 1 / -1 !important;
  }

  .rd .order-page .form-grid .form-note {
    margin-top: -6px;
  }

  .rd .order-page .bill-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .rd .order-page .bill-grid > * {
    grid-column: 1 / -1 !important;
  }

  .rd .order-page .bill-grid > .g2,
  .rd .order-page .bill-grid > .g3 {
    grid-column: span 1 !important;
  }

  .rd .order-page .head-tight .steps {
    flex-wrap: wrap;
  }

  .rd .order-page .srv-check .dl-list {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 2px 14px;
  }

  .rd .order-page .srv-check .dl-list dd {
    margin-bottom: 0;
  }

  .rd .order-page .seg-choice,
  .rd .order-page .pay-options,
  .rd .order-page .pay-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .order-page .dl-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .rd .order-page .dl-list dd {
    margin-bottom: 8px;
  }

  .rd .order-page .opt {
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 14px;
  }

  .rd .order-page .opt .price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
    grid-column: 2;
    text-align: left;
  }

  .rd .order-page .opt .price small {
    display: inline;
  }

  .rd .order-page .opt-text .for {
    font-size: 12.5px;
  }

  .rd .order-page .btn {
    min-width: 0;
    height: auto;
    min-height: 48px;
    padding-top: 10px;
    padding-bottom: 10px;
    white-space: normal;
    text-align: center;
  }

  .rd .order-page .btn-row > .btn {
    flex: 1 1 auto;
  }

  .rd .order-page .copy {
    width: 40px;
    height: 40px;
  }

  .rd .order-page .qr .link,
  .rd .order-page .sum-lines li.none .link,
  .rd .order-page .opt-unlock .link {
    display: inline-block;
    padding: 8px 4px;
  }

  .rd .order-page .sum-foot .legal {
    font-size: 12.5px;
    line-height: 19px;
  }

  .rd .order-page .sum-total .big {
    font-size: 24px;
    line-height: 30px;
  }

  .rd .order-page .success-hero {
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
  }

  .rd .order-page .success-hero .big-ico {
    width: 44px;
    height: 44px;
  }

  .rd .order-page .success-hero h2 {
    font-size: 19px;
    line-height: 26px;
  }

  .rd .order-page .gateway-frame {
    height: 70vh;
  }
}

/* 6E – SK objednávka: platba prevodom s IBAN (na mobilu popisky nad hodnotami, IBAN na jeden řádek) */
@media (max-width: 700px) {
  .rd .order-sk .pay-rows {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .rd .order-sk .pay-rows dd {
    margin-bottom: 10px;
  }

  .rd .order-sk .pay-rows dd:last-child {
    margin-bottom: 0;
  }
}
