/* Zalozka Stáhnout a „Co dál“ (prototyp-zahlavi/views.js), trial dialog a poslani odkazu.
   Vlastnik: balik 3D (*DownloadsTab, Components/Redesign/Download). Vse pod .rd. */

/* ---------- Stáhnout: hlavni soubor ---------- */
.rd .dl-page .dl-main {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px 50px;
  align-items: center;
  padding: 30px 34px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  background: #fff;
}

.rd .dl-page .dl-main h2 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.rd .dl-page .dl-desc,
.rd .dl-page .dl-desc p {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  color: var(--body-text);
}

.rd .dl-page .dl-main .dl-desc {
  max-width: 620px;
  overflow-wrap: anywhere;
}

.rd .dl-page .dl-desc p + p {
  margin-top: 8px;
}

.rd .dl-page .dl-desc a {
  color: var(--accent-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .dl-page .dl-main .action {
  text-align: center;
}

.rd .dl-page .dl-main .btn {
  min-width: 240px;
}

.rd .dl-page .dl-meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted-text-color);
}

.rd .dl-page .dl-note {
  max-width: 300px;
  margin: 10px auto 0;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: var(--light-gray-color);
  font-size: 12.5px;
  line-height: 19px;
  color: var(--body-text);
  text-align: left;
}

.rd .dl-page .dl-note::before {
  content: "ⓘ ";
  color: var(--accent-link);
  font-weight: 600;
}

.rd .dl-page .dl-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  grid-column: 1 / -1;
  margin: 6px 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border-color);
  list-style: none;
  counter-reset: dl-step;
}

.rd .dl-page .dl-steps li {
  position: relative;
  padding-left: 38px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
  counter-increment: dl-step;
}

.rd .dl-page .dl-steps li::before {
  content: counter(dl-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 .dl-page .dl-update {
  grid-column: 1 / -1;
  margin: -12px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .dl-page .dl-update a {
  color: var(--accent-link);
  font-weight: 600;
}

.rd .dl-page .dl-update a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Stáhnout: dalsi soubory a starsi verze ---------- */
.rd .dl-page .dl-section-title {
  margin: 40px 0 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.rd .dl-page .dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rd .dl-page .dl-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: 100px;
}

.rd .dl-page .dl-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.rd .dl-page .dl-card .dl-desc,
.rd .dl-page .dl-card .dl-desc p {
  font-size: 13px;
  line-height: 20px;
}

.rd .dl-page .dl-card .dl-desc {
  margin-bottom: 14px;
  overflow-wrap: anywhere;
}

.rd .dl-page .dl-card .dl-desc.clamped {
  max-height: 120px;
  margin-bottom: 6px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 60%, transparent);
  mask-image: linear-gradient(#000 60%, transparent);
}

.rd .dl-page .dl-card .dl-more {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
  cursor: pointer;
}

.rd .dl-page .dl-card .dl-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .dl-page .dl-card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

.rd .dl-page .dl-card .foot a {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .dl-page .dl-card .foot a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .dl-page .dl-card .foot span {
  font-size: 12px;
  color: var(--muted-text-color);
  text-align: right;
}

.rd .dl-page details.history {
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.rd .dl-page details.history summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.rd .dl-page .history-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px 20px;
  margin-top: 14px;
}

.rd .dl-page .history-links a {
  font-size: 13px;
  line-height: 20px;
  color: var(--accent-link);
}

.rd .dl-page .history-links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Co dál ---------- */
.rd .dl-page .next-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 26px 30px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
}

.rd .dl-page .next-hero .big-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  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 .dl-page .next-hero h2 {
  margin: 0 0 4px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.rd .dl-page .next-hero p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .dl-page .next-hero .link {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .dl-page .next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: next-step;
}

.rd .dl-page .next-steps li {
  position: relative;
  padding: 20px 20px 20px 66px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  counter-increment: next-step;
}

.rd .dl-page .next-steps li::before {
  content: counter(next-step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  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-weight: 600;
  line-height: 34px;
  text-align: center;
}

.rd .dl-page .next-steps b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
  color: var(--navy);
}

.rd .dl-page .next-steps p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .dl-page .next-cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.rd .dl-page .next-video {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 20px;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.rd .dl-page .next-video .play {
  width: 72px;
  height: 72px;
  color: var(--form-studio-color);
  transition: transform .2s;
}

.rd .dl-page .next-video .play svg {
  display: block;
  width: 100%;
  height: 100%;
}

.rd .dl-page .next-video:hover .play {
  transform: scale(1.06);
}

.rd .dl-page .next-video b {
  font-size: 16px;
}

.rd .dl-page .next-video small {
  font-size: 12px;
  color: #cfd3dc;
}

.rd .dl-page .next-first {
  margin-top: 30px;
}

.rd .dl-page .next-first h3 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}

.rd .dl-page .next-first p {
  margin: 0 0 12px;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .dl-page .next-first .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .dl-page .next-first .more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .dl-page .top-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 6px;
}

.rd .dl-page .top-forms a {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 13px;
  text-align: left;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

.rd .dl-page .top-forms a:hover {
  border-color: var(--accent);
}

.rd .dl-page .top-forms small {
  flex: none;
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .dl-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 .dl-page .help-strip h3 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 600;
}

.rd .dl-page .help-strip p {
  margin: 0;
  font-size: 13.5px;
  color: #cfd3dc;
}

.rd .dl-page .help-strip a {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.rd .dl-page .help-strip a small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #9aa1b2;
}

/* ---------- Okno po stazeni (TrialDialog v RdModal) ---------- */
.rd .trial-dialog .modal-body > p {
  color: var(--body-text);
}

.rd .trial-dialog .trial-tips {
  display: grid;
  gap: 10px;
}

.rd .trial-dialog .trial-consent {
  font-size: 11.5px;
  line-height: 17px;
  color: var(--muted-text-color);
}

.rd .trial-dialog .trial-consent a,
.rd .trial-dialog .trial-consent .link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--accent-link);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.rd .trial-dialog .trial-privacy h3 {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.rd .trial-dialog .trial-privacy p {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 20px;
}

.rd .trial-dialog .trial-privacy a {
  color: var(--accent-link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.rd .trial-dialog p.trial-thanks {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ok-soft);
  color: var(--ok);
}

.rd .trial-dialog p.trial-thanks b {
  color: inherit;
}

.rd .trial-dialog .modal-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.rd .trial-dialog .modal-foot .btn {
  width: 100%;
  min-width: 0;
  height: 46px;
}

.rd .trial-dialog .modal-foot .btn:only-child {
  grid-column: 1 / -1;
}

/* ---------- Responzivita (prototyp: 1000 a 560 px) ---------- */
@media (max-width: 1000px) {
  .rd .dl-page .dl-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd .dl-page .history-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .rd .dl-page .next-steps,
  .rd .dl-page .next-cols {
    grid-template-columns: 1fr;
  }

  .rd .dl-page .help-strip {
    grid-template-columns: 1fr 1fr;
  }

  .rd .dl-page .help-strip > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rd .dl-page .dl-main {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .rd .dl-page .dl-main .btn {
    width: 100%;
    min-width: 0;
  }

  .rd .dl-page .dl-note {
    max-width: none;
  }

  .rd .dl-page .dl-grid,
  .rd .dl-page .dl-steps,
  .rd .dl-page .help-strip {
    grid-template-columns: 1fr;
  }

  .rd .dl-page .next-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 20px;
  }
}
