/* Zalozky O programu a Vyhody (FORM studio 3B, STEREO a ENTER 3E), kazdy balik ve vlastnim oddilu. Vse pod .rd. */

/* ===== 3B FORM studio ===== */
/* Zdroj: prototyp-zahlavi/index.html (.about-intro, .feature-cards, .key-list, .adv-*, .lp-final, .video-modal, .next-video).
   Obsahuje i styly sdilenych komponent Components/Redesign/About (AboutIntro, FeatureCards, KeyList, AdvantageCards,
   AdvantageTable, AdvantageCta, VideoModal, VideoCard) – pouziva je i STEREO a ENTER. */

/* ---------- AboutIntro ---------- */
.rd .about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  padding: 10px 0 50px;
}

.rd .intro-item {
  display: flex;
  gap: 26px;
  align-items: flex-start;
}

.rd .intro-item img {
  flex: none;
  width: 96px;
  height: 96px;
}

.rd .intro-item h2 {
  margin: 4px 0 10px;
  font-size: 22px;
  line-height: 30px;
  color: var(--navy);
}

.rd .intro-item p {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 23px;
}

/* ---------- FeatureCards ---------- */
.rd .feature-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.rd .feature-cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.rd .feature-cards.two {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 18px;
}

.rd .feature-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 24px 20px 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.rd .feature-card img {
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  object-fit: contain;
  object-position: left center;
}

.rd .feature-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 22px;
  color: var(--navy);
}

.rd .feature-card p {
  margin: 0;
  font-size: 13px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .feature-card p + p {
  margin-top: 8px;
}

.rd .feature-card .more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd a.feature-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.rd a.feature-card:hover .more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rd .feature-card.wide {
  flex-direction: row;
  gap: 22px;
  align-items: flex-start;
}

.rd .feature-card.wide img {
  flex: none;
  margin: 0;
}

.rd .feature-card.wide > div {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  min-width: 0;
}

/* ---------- KeyList ---------- */
.rd .about-title {
  margin: 50px 0 20px;
  font-size: 22px;
  line-height: 30px;
  text-align: center;
  color: var(--navy);
}

.rd .key-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.rd .key-item {
  position: relative;
  min-width: 0;
  padding: 20px 22px 20px 70px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
}

.rd .key-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.rd .key-mark {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 34px;
  text-align: center;
  color: var(--accent-text);
}

.rd .key-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  line-height: 22px;
  color: var(--navy);
}

.rd .key-item .top {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
  color: var(--accent-link);
}

.rd .key-item p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .key-item p a {
  font-weight: 600;
  color: var(--accent-link);
}

.rd .key-item p a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- stranka Vyhody: AdvantageCards, AdvantageTable, AdvantageCta ---------- */
.rd .adv-title {
  margin: 46px 0 18px;
  font-size: 22px;
  line-height: 30px;
  color: var(--navy);
}

.rd .adv-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rd .adv-card {
  display: block;
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.rd .adv-card:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(18, 28, 61, .08);
}

.rd .adv-card .ico,
.rd .adv-sec .ico {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  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 .adv-card h3 {
  margin: 12px 0 6px;
  font-size: 16px;
  line-height: 22px;
  color: var(--navy);
}

.rd .adv-card p {
  margin: 0;
  font-size: 13px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .adv-table {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 14px;
}

.rd .adv-row {
  display: grid;
  grid-template-columns: 1fr 150px 170px;
  align-items: center;
  border-top: 1px solid var(--border-color);
}

.rd .adv-row > span {
  min-width: 0;
  padding: 10px 16px;
  line-height: 21px;
  color: #3d4252;
}

.rd .adv-row > span + span {
  text-align: center;
}

.rd .adv-head {
  border-top: 0;
  background: var(--navy);
}

.rd .adv-head > span {
  font-weight: 600;
  color: #fff;
}

.rd .adv-head small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #cfd3dc;
}

.rd .adv-group {
  scroll-margin-top: 90px;
}

.rd .adv-sec {
  grid-template-columns: 1fr;
  background: var(--light-gray-color);
}

.rd .adv-sec > span {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.rd .adv-sec .ico {
  flex: none;
  width: 32px;
  height: 32px;
  background: #fff;
}

.rd .adv-yes {
  display: inline-flex;
  vertical-align: middle;
  color: var(--ok);
}

.rd .adv-no {
  color: var(--muted-text-color);
}

.rd .adv-lim {
  font-size: 12.5px;
  white-space: nowrap;
  color: #8a5a00;
}

/* tlacitko podrobnosti funkce, vzhled jako InfoTip */
.rd .adv-info {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #dfe2e8;
  font: italic 700 11px/1 Georgia, serif;
  color: var(--navy);
  vertical-align: 1px;
  cursor: pointer;
}

.rd .adv-info:hover {
  background: var(--navy);
  color: #fff;
}

.rd .adv-note {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 20px;
  color: var(--muted-text-color);
}

.rd .adv-note a {
  font-weight: 600;
  color: var(--accent-link);
}

.rd .adv-note a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .adv-final {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 30px;
  align-items: center;
  margin-top: 46px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.rd .adv-final h2 {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 30px;
  color: #fff;
}

.rd .adv-final p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #cfd3dc;
}

.rd .adv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

/* podrobnosti funkce v RdModal (FsFunctionInfo) */
.rd .fs-function p {
  margin: 0 0 10px;
}

.rd .fs-function img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 4px 0 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.rd .fs-function > :last-child {
  margin-bottom: 0;
}

/* ---------- VideoModal, VideoCard ---------- */
.rd .modal-box.video-box {
  max-width: 960px;
}

.rd .video-box .modal-body {
  padding: 0;
  overflow: hidden;
}

.rd .video-frame {
  aspect-ratio: 16 / 9;
  max-height: calc(100vh - 170px);
  max-height: calc(100dvh - 170px);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  background: #000;
  overflow: hidden;
}

.rd .video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rd .video-card {
  position: relative;
  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);
  font-family: inherit;
  text-align: center;
  color: #fff;
  overflow: hidden;
  cursor: pointer;
}

.rd .video-card .play {
  width: 72px;
  height: 72px;
  color: var(--form-studio-color);
  transition: transform .2s;
}

.rd .video-card:hover .play {
  transform: scale(1.06);
}

.rd .video-card b {
  font-size: 16px;
  font-weight: 600;
}

.rd .video-card small {
  font-size: 12px;
  color: #cfd3dc;
}

/* ---------- responzivita 3B ---------- */
@media (max-width: 1000px) {
  .rd .about-intro {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .rd .feature-cards,
  .rd .feature-cards.three,
  .rd .adv-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .rd .about-intro {
    padding-bottom: 34px;
  }

  .rd .intro-item {
    gap: 18px;
  }

  .rd .intro-item img {
    width: 72px;
    height: 72px;
  }

  .rd .feature-cards,
  .rd .feature-cards.three,
  .rd .feature-cards.two,
  .rd .key-list,
  .rd .adv-cards {
    grid-template-columns: 1fr;
  }

  .rd .about-title {
    margin-top: 40px;
    font-size: 20px;
    line-height: 28px;
  }

  .rd .key-item {
    padding: 18px 18px 18px 64px;
  }

  .rd .key-mark {
    left: 16px;
    top: 18px;
  }

  .rd .adv-cards {
    gap: 10px;
  }

  .rd .adv-card {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 14px;
    padding: 14px 16px;
  }

  .rd .adv-card .ico {
    grid-row: span 2;
  }

  .rd .adv-card h3 {
    margin: 0;
    font-size: 15px;
  }

  .rd .adv-title {
    margin-top: 36px;
    font-size: 20px;
    line-height: 28px;
  }

  .rd .adv-row {
    grid-template-columns: 1fr 70px 70px;
    font-size: 13.5px;
  }

  .rd .adv-row > span {
    padding: 9px 10px;
  }

  .rd .adv-row > span + span {
    padding: 9px 4px;
  }

  .rd .adv-sec {
    grid-template-columns: 1fr;
  }

  .rd .adv-head > span {
    font-size: 13px;
  }

  .rd .adv-head small {
    font-size: 11px;
    line-height: 15px;
  }

  .rd .adv-lim {
    font-size: 11.5px;
    line-height: 15px;
    white-space: normal;
  }

  .rd .adv-info {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }

  .rd .adv-final {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }

  .rd .adv-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .rd .video-box .modal-head {
    padding-bottom: 12px;
  }
}

/* ===== 3E STEREO a ENTER ===== */
/* Zdroj: prototyp-zahlavi/index.html (.agenda-nav, .agenda, .check-list, .free-box, .adv-lists, .adv-more).
   Zalozky STEREO a ENTER pouzivaji komponenty z 3B (FeatureCards, KeyList, AdvantageCards, AdvantageCta), tady jen to navic. */

/* ---------- ENTER o programu ---------- */
.rd .enter-about .feature-cards.two {
  margin-top: 0;
}

.rd .adv-more {
  margin: 30px 0 0;
  text-align: center;
}

/* ---------- STEREO Agendy ---------- */
.rd .stereo-agendas .agenda-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.rd .stereo-agendas .agenda-nav a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color .2s;
}

.rd .stereo-agendas .agenda-nav a:hover {
  border-color: var(--accent);
}

.rd .stereo-agendas .agenda-nav img {
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
}

.rd .stereo-agendas .ag-ico.dark {
  display: none;
}

.rd .stereo-agendas .agenda-nav b {
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  color: var(--navy);
}

.rd .stereo-agendas .agenda-nav small {
  margin-top: 4px;
  font-size: 12px;
  line-height: 17px;
  color: var(--muted-text-color);
}

.rd .stereo-agendas .agenda {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 34px 0;
  border-bottom: 1px solid var(--border-color);
  scroll-margin-top: 90px;
}

.rd .stereo-agendas .agenda:last-of-type {
  border-bottom: 0;
}

.rd .stereo-agendas .agenda-text {
  display: flex;
  gap: 18px;
  min-width: 0;
}

.rd .stereo-agendas .agenda-text img {
  flex: none;
  width: 64px;
  height: 64px;
}

.rd .stereo-agendas .agenda-text h2 {
  margin: 4px 0 10px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: var(--navy);
}

.rd .stereo-agendas .agenda-text p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 23px;
  color: var(--body-text);
}

.rd .stereo-agendas .agenda-text .links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
}

.rd .stereo-agendas .agenda-text .links a {
  color: var(--accent-link);
}

.rd .stereo-agendas .agenda-text .links a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .stereo-agendas .agendas-more {
  margin: 4px 0 30px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.rd .stereo-agendas .agendas-more a {
  color: var(--accent-link);
}

.rd .stereo-agendas .agendas-more a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .stereo-agendas .check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 22px;
  align-content: start;
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--light-gray-color);
  list-style: none;
}

.rd .stereo-agendas .check-list li,
.rd .stereo-agendas .free-box li {
  position: relative;
  min-width: 0;
  padding-left: 26px;
  font-size: 13.5px;
  line-height: 20px;
}

.rd .stereo-agendas .check-list li::before,
.rd .stereo-agendas .free-box li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background: url(../../img/ico-check.svg) center / contain no-repeat;
}

.rd .stereo-agendas .free-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  gap: 30px;
  align-items: center;
  margin-top: 30px;
  padding: 30px 34px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.rd .stereo-agendas .free-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #fff;
}

.rd .stereo-agendas .free-box p {
  margin: 0;
  font-size: 13px;
  line-height: 20px;
  color: #c9cdd6;
}

.rd .stereo-agendas .free-box ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .stereo-agendas .free-box li {
  padding-left: 24px;
  font-size: 13px;
  color: #e3e6ec;
}

.rd .stereo-agendas .free-box li::before {
  width: 15px;
  height: 15px;
}

/* ---------- ENTER Vyhody: AdvantageLists ---------- */
.rd .adv-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.rd .adv-list {
  min-width: 0;
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  scroll-margin-top: 90px;
}

.rd .adv-list h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--navy);
}

.rd .adv-list h2 .ico {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 32px;
  height: 32px;
  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 .adv-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .adv-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: 14px;
  line-height: 21px;
  color: #3d4252;
}

.rd .adv-list li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 10px;
  width: 10px;
  height: 6px;
  border: solid var(--ok);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}

.rd .adv-list li ul {
  margin-top: 4px;
}

.rd .adv-list li li {
  padding: 2px 0 2px 16px;
  font-size: 13px;
  color: var(--body-text);
}

.rd .adv-list li li::before {
  left: 2px;
  top: 11px;
  width: 5px;
  height: 5px;
  border: 0;
  border-radius: 50%;
  background: #9aa0ad;
  transform: none;
}

/* ---------- responzivita 3E ---------- */
@media (max-width: 1000px) {
  .rd .stereo-agendas .agenda-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .rd .stereo-agendas .agenda,
  .rd .stereo-agendas .free-box {
    grid-template-columns: 1fr;
  }

  .rd .stereo-agendas .agenda {
    gap: 20px;
  }

  .rd .stereo-agendas .free-box {
    gap: 20px;
  }
}

@media (max-width: 560px) {
  .rd .stereo-agendas .agenda-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .rd .stereo-agendas .agenda-nav a {
    padding: 14px;
  }

  .rd .stereo-agendas .agenda {
    padding: 28px 0;
  }

  .rd .stereo-agendas .agenda-text {
    gap: 14px;
  }

  .rd .stereo-agendas .agenda-text img {
    width: 48px;
    height: 48px;
  }

  .rd .stereo-agendas .agenda-text h2 {
    margin-top: 2px;
    font-size: 18px;
    line-height: 26px;
  }

  .rd .stereo-agendas .check-list,
  .rd .stereo-agendas .free-box ul {
    grid-template-columns: 1fr;
  }

  .rd .stereo-agendas .check-list {
    padding: 18px;
  }

  .rd .stereo-agendas .free-box {
    padding: 20px 18px;
  }

  .rd .stereo-agendas .free-box .btn {
    width: 100%;
    min-width: 0;
  }

  .rd .adv-lists {
    grid-template-columns: 1fr;
    margin-top: 30px;
  }

  .rd .adv-list {
    padding: 18px;
  }

  .rd .adv-more .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
  }
}

/* ===== 6D STEREO Vsechny vyhody (/stereo/vyhody) ===== */
/* Odkazy na clanky navodu pod seznamy (StereoAdvantagesTab). */
.rd .stereo-adv .adv-note {
  margin-top: 16px;
}

.rd .stereo-adv .adv-guides {
  margin-top: 30px;
}

.rd .stereo-adv .adv-guides h2 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 26px;
  font-weight: 600;
  color: var(--navy);
}

.rd .stereo-adv .adv-guides ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .stereo-adv .adv-guides a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .stereo-adv .adv-guides a:hover {
  border-color: var(--accent-link);
}