/* Informacni stranky (prototyp-zahlavi/views.js): kontakt, reference, o nas, obchodni informace, ochrana osobnich udaju, platba kartou.
   Vlastnik: balik 3G. Vse pod .rd. Pravni a obchodni stranky podle servis.html / servis.css. */

.rd .info-page .info-section-title {
  margin: 46px 0 18px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- Kontakt ---------- */
.rd .info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.rd .info-grid > * {
  min-width: 0;
}

.rd .info-page .company-card {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.rd .info-page .company-card p {
  margin: 0;
}

.rd .info-page .big-contact {
  display: block;
  margin: 10px 0 2px;
  font-size: 22px;
  line-height: 30px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.rd .info-page .big-contact.mail {
  font-size: 17px;
  line-height: 26px;
}

.rd .info-page .big-contact:hover {
  color: var(--accent-link);
}

.rd .info-page .contact-ask {
  min-width: 180px;
  height: 44px;
  margin-top: 18px;
}

.rd .support-lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

.rd .info-page .contact-ask .ico {
  margin-left: 8px;
}

.rd .support-line {
  position: relative;
  min-width: 0;
  padding: 14px 52px 14px 16px;
  border-left: 4px solid var(--c, var(--accent));
  border-radius: var(--radius);
  background: var(--light-gray-color);
}

.rd .support-line b {
  display: block;
  font-size: 13px;
  line-height: 20px;
  color: var(--navy);
}

.rd .support-line a {
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.rd .support-line a:hover {
  color: var(--c-text, var(--accent-link));
}

.rd .support-line .ask-ico {
  position: absolute;
  top: 50%;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--c, var(--accent)) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--c-text, var(--accent-link));
}

.rd .support-line .ask-ico:hover,
.rd .support-line .ask-ico:focus-visible {
  color: var(--c-text, var(--accent-link));
  box-shadow: 0 0 0 1px var(--c, var(--accent));
}

.rd .support-line .ask-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 .support-line .ask-hint::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -6px;
  border: 6px solid transparent;
  border-top-color: var(--navy);
}

.rd .support-line .ask-ico:hover .ask-hint,
.rd .support-line .ask-ico:focus-visible .ask-hint {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.rd .contact-form {
  margin-bottom: 30px;
  scroll-margin-top: 100px;
}

.rd .info-grid + .contact-form {
  margin: 30px 0 0;
}

.rd .contact-form .muted a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}

.rd .contact-form .lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 14px;
  margin-top: 18px;
}

.rd .contact-form .lead-form .wide {
  grid-column: 1 / -1;
}

.rd .contact-form .lead-submit {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 4px;
}

.rd .contact-form .lead-submit .btn {
  flex: none;
  min-width: 180px;
  height: 46px;
}

.rd .contact-form .lead-submit small {
  flex: 1 1 280px;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted-text-color);
}

.rd .contact-form .lead-submit small a {
  color: inherit;
  text-decoration: underline;
}

.rd .contact-form .callout {
  margin-top: 18px;
}

.rd .contact-form .form-error {
  margin: 0;
  font-size: 13px;
  color: var(--err);
}

.rd .contact-form .form-error a {
  text-decoration: underline;
}

/* ---------- Reference ---------- */
.rd .quote-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 40px;
  margin-bottom: 34px;
}

.rd .quote-stats div {
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .quote-stats b {
  display: block;
  font-size: 30px;
  line-height: 38px;
  color: var(--navy);
}

.rd .info-page .quotes {
  columns: 3 300px;
  column-gap: 18px;
}

.rd .info-page .quote {
  break-inside: avoid;
  margin: 0 0 18px;
  padding: 22px 22px 18px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
}

.rd .info-page .quote p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 23px;
}

.rd .info-page .quote p:first-of-type::before {
  content: "„";
}

.rd .info-page .quote p:last-of-type::after {
  content: "“";
}

.rd .info-page .quote cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

.rd .clients-lead {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .client-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
  padding: 0;
  list-style: none;
}

.rd .client-list li {
  padding: 6px 12px;
  border-radius: 16px;
  background: var(--light-gray-color);
  font-size: 13px;
  line-height: 20px;
}

.rd .clients-note,
.rd .trademarks {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-text-color);
}

/* ---------- O nas ---------- */
.rd .about-motto {
  max-width: 760px;
}

/* motto jako zvyrazneny blok: sede pozadi a pruh v barvach produktu */
.rd .info-card.about-motto {
  position: relative;
  overflow: hidden;
  padding-left: 32px;
  border: 0;
  background: var(--light-gray-color);
}

.rd .info-card.about-motto::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  background: linear-gradient(var(--form-studio-color), var(--stereo-color), var(--enter-color));
}

.rd .info-card.about-motto p {
  margin: 0;
  font-size: 15px;
  line-height: 25px;
  font-weight: 500;
  color: var(--navy);
}

.rd .about-split .team li small {
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  background: var(--light-gray-color);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted-text-color);
}

.rd .team {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.rd .team h3 {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 20px;
  color: var(--muted-text-color);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.rd .team ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .team li {
  padding: 6px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 22px;
  font-weight: 500;
  color: var(--navy);
}

.rd .history-line {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .history-line li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 22px;
}

.rd .history-line b {
  font-size: 16px;
  color: var(--navy);
}

.rd .trademarks {
  margin-top: 30px;
}

/* CZ O nas: tym vlevo, historie vpravo */
.rd .about-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 56px;
}

.rd .about-split .team {
  grid-template-columns: 1fr;
  gap: 22px;
}

.rd .about-split .history-line {
  grid-template-columns: 1fr;
}

.rd .about-split .history-line li:first-child {
  padding-top: 0;
}

@media (max-width: 1000px) {
  .rd .about-split {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .about-split .team {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  .rd .about-split .team {
    grid-template-columns: 1fr;
  }
}

/* ---------- Obchodni informace a platba kartou ---------- */
.rd .info-summary {
  margin-bottom: 24px;
}

.rd .info-summary .badge {
  margin-bottom: 12px;
}

.rd .pay-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 16px;
  padding: 0;
  list-style: none;
}

.rd .pay-methods li {
  padding: 5px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm, 6px);
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.rd .info-ico {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  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 .pay-cards {
  margin-top: 8px;
}

.rd .doc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.rd .doc-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}

.rd .doc-card:hover {
  border-color: var(--navy);
  box-shadow: 0 8px 20px rgba(31, 40, 61, .08);
}

.rd .doc-card .ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  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 .doc-card b {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--navy);
}

.rd .doc-card small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  line-height: 17px;
  color: var(--body-text);
}

.rd .info-page .help-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 30px;
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.rd .info-page .help-strip h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 26px;
  color: #fff;
}

.rd .info-page .help-strip p {
  margin: 0;
  font-size: 13.5px;
  line-height: 20px;
  color: #cfd3dc;
}

.rd .info-page .help-strip a {
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  color: #fff;
}

.rd .info-page .help-strip a small {
  display: block;
  font-size: 12px;
  line-height: 18px;
  font-weight: 400;
  color: #9aa1b2;
}

/* Ochrana osobnich udaju: oddily v kartach, kotvy #odber a #statistiky vedou z jinych webu */
.rd .privacy-sections {
  margin-bottom: 24px;
}

.rd .privacy-sections .info-card {
  scroll-margin-top: 90px;
}

.rd .privacy-sections .info-card:target {
  border-color: var(--accent);
}

.rd .privacy-sections ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .privacy-sections li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 16px;
  font-size: 14px;
  line-height: 23px;
}

.rd .privacy-sections li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.rd .privacy-sections a {
  color: var(--accent-link);
  text-decoration: underline;
}

/* Elektronicke danove doklady v RdModal */
.rd .tax-docs p {
  margin: 0;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .tax-docs a {
  color: var(--accent-link);
  text-decoration: underline;
}

.rd .tax-docs .tax-docs-lead {
  margin-bottom: 20px;
  font-size: 14.5px;
  line-height: 23px;
  color: var(--primary-text-color);
}

.rd .tax-docs h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--navy);
}

.rd .tax-docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rd .tax-docs-item {
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
}

.rd .tax-docs-item .info-ico {
  margin-bottom: 10px;
}

.rd .tax-docs-note {
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--light-gray-color);
}

.rd .tax-docs-note p + p {
  margin-top: 8px;
}

.rd .tax-docs .tax-docs-h {
  margin-top: 24px;
}

.rd .tax-docs-steps {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tax-step;
}

.rd .tax-docs-steps li {
  position: relative;
  padding: 0 0 12px 38px;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
  counter-increment: tax-step;
}

.rd .tax-docs-steps li::before {
  content: counter(tax-step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  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: 12.5px;
  font-weight: 600;
}

.rd .tax-docs-steps code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--light-gray-color);
  color: var(--navy);
  font-size: 12.5px;
}

@media (max-width: 700px) {
  .rd .tax-docs-grid {
    grid-template-columns: 1fr;
  }
}

/* PDF v RdModal (SK licencni ujednani) */
.rd .pdf-frame {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--light-gray-color);
}

/* Stare komponenty TermsAndConditions a ElectronicTaxDocsPopup v RdModal: pravni text se nekopiruje, jen se prestyluje.
   Tridy basic-title / basic-description / fs-underline ma i main.css, proto vyssi specificita. Nadpis da RdModal. */
.rd .legal-doc h1 {
  display: none;
}

.rd .legal-doc .basic-title,
.rd .legal-doc .basic-description {
  padding: 0;
  letter-spacing: normal;
  text-align: left;
}

.rd .legal-doc .basic-title {
  margin: 20px 0 6px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--navy);
}

.rd .legal-doc h1 + .basic-title {
  margin-top: 0;
}

.rd .legal-doc .basic-description {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 23px;
  font-weight: 400;
  color: var(--primary-text-color);
}

.rd .legal-doc .b {
  font-weight: 600;
}

.rd .legal-doc .terms-sec + .terms-sec {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
}

.rd .legal-doc .terms-sec h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 22px;
  font-weight: 600;
  color: var(--navy);
}

.rd .legal-doc .terms-sec .num {
  display: inline-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);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-link);
}

.rd .legal-doc .terms-sec ul {
  margin: 0;
  padding: 0 0 0 34px;
  list-style: none;
}

.rd .legal-doc .terms-sec li {
  position: relative;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 23px;
  color: var(--primary-text-color);
}

.rd .legal-doc .terms-sec li:last-child {
  margin-bottom: 0;
}

.rd .legal-doc .terms-sec li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: -14px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--muted-text-color);
}

.rd .legal-doc .terms-sec ol {
  margin: 0;
  padding: 0 0 0 52px;
}

.rd .legal-doc .terms-sec ol li::before {
  display: none;
}

.rd .legal-doc .terms-sec p {
  margin: 0 0 8px;
  padding-left: 34px;
  font-size: 14px;
  line-height: 23px;
  color: var(--primary-text-color);
}

.rd .legal-doc .terms-sec p:last-child {
  margin-bottom: 0;
}

.rd .legal-doc .terms-sec ul + p,
.rd .legal-doc .terms-sec ol + p {
  margin-top: 8px;
}

.rd .legal-doc .terms-sec p + ul,
.rd .legal-doc .terms-sec p + ol {
  margin-bottom: 8px;
}

/* Uvod bez cisla kapitoly */
.rd .legal-doc .terms-intro p {
  padding-left: 0;
}

/* Samostatna stranka licencniho ujednani */
.rd .info-page .legal-page {
  margin-top: 8px;
}

.rd .info-page .legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 20px 0 0;
}

.rd .legal-doc a {
  font-weight: 600;
  color: var(--accent-link);
  overflow-wrap: anywhere;
}

.rd .legal-doc a:hover {
  text-decoration: underline;
}

/* ---------- Ochrana osobnich udaju (obsah s kotvami) ---------- */
.rd .toc-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 50px;
}

.rd .toc {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 2px;
  font-size: 13.5px;
  line-height: 20px;
}

.rd .toc b {
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--muted-text-color);
  text-transform: uppercase;
  letter-spacing: .6px;
}

.rd .toc a {
  padding: 6px 0 6px 12px;
  border-left: 2px solid var(--light-gray-color);
  color: var(--body-text);
}

.rd .toc a:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.rd .prose {
  max-width: 780px;
}

.rd .prose h2 {
  margin: 34px 0 10px;
  font-size: 20px;
  line-height: 28px;
  color: var(--navy);
  scroll-margin-top: 100px;
}

.rd .prose h2:first-child {
  margin-top: 0;
}

.rd .prose p,
.rd .prose li {
  font-size: 15px;
  line-height: 26px;
}

.rd .prose p {
  margin: 0 0 12px;
}

.rd .prose ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.rd .prose li + li {
  margin-top: 4px;
}

.rd .prose a {
  font-weight: 600;
  color: var(--accent-link);
}

.rd .prose a:hover {
  text-decoration: underline;
}

/* ---------- responzivita ---------- */
@media (max-width: 1000px) {
  .rd .info-grid,
  .rd .history-line,
  .rd .toc-layout {
    grid-template-columns: 1fr;
  }

  .rd .team,
  .rd .doc-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rd .toc {
    display: none;
  }

  .rd .info-page .help-strip {
    grid-template-columns: 1fr 1fr;
  }

  .rd .info-page .help-strip > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .rd .doc-grid,
  .rd .info-page .help-strip {
    grid-template-columns: 1fr;
  }

  .rd .info-page .help-strip {
    gap: 18px;
    padding: 22px 20px;
  }

  .rd .info-page .info-section-title {
    margin-top: 36px;
    font-size: 20px;
    line-height: 28px;
  }

  .rd .info-page .quotes {
    columns: 1;
  }
}

@media (max-width: 560px) {
  .rd .team,
  .rd .support-lines,
  .rd .info-page .company-card {
    grid-template-columns: 1fr;
  }

  .rd .info-page .big-contact {
    font-size: 20px;
  }

  .rd .contact-form .lead-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .rd .contact-form .lead-submit .btn {
    width: 100%;
  }

  .rd .support-line .ask-ico {
    width: 40px;
    height: 40px;
    margin-top: -20px;
  }

  .rd .quote-stats b {
    font-size: 26px;
    line-height: 34px;
  }
}

/* ---------- 6C – slovenske informacni stranky (/sk/kontakt, /sk/o-nas …) ---------- */
.rd .info-page .about-team-lead {
  margin: -6px 0 18px;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .trademarks + .trademarks {
  margin-top: 6px;
}

.rd .info-page .trademarks .link {
  font-weight: 600;
  color: var(--accent-link);
}
