/* Uvod a landing stranky (pro ucetni, multi). Vlastnik: balik 3A (Index.razor, MainSlideshow, MainReferenceBox, Pages/Landing). Vse pod .rd. */

/* ---------- uvod: slider (prototyp #home-hero) ---------- */
.rd .home-hero {
  position: relative;
  margin-top: 18px;
  padding: 44px 60px 56px 100px;
  min-height: 380px;
  border-radius: 4px;
}

/* akcent podle produktu na snimku (prototyp meni body[data-product]) */
.rd .home-hero[data-slide="stereo"] {
  --accent: var(--stereo-color);
  --accent-text: #fff;
  --accent-link: var(--stereo-text);
  --accent-soft: var(--stereo-soft);
}

.rd .home-hero[data-slide="enter"] {
  --accent: var(--enter-color);
  --accent-text: #fff;
  --accent-button: #9a1a68;
  --accent-link: var(--enter-text);
  --accent-soft: var(--enter-soft);
}

.rd .home-hero[data-slide="stereo"] .hero-logo,
.rd .home-hero[data-slide="enter"] .hero-logo {
  height: 60px;
  margin-bottom: 26px;
}

.rd .home-hero .hero-text,
.rd .home-hero-img {
  transition: opacity .35s;
}

.rd .home-hero.fading .hero-text,
.rd .home-hero.fading .home-hero-img {
  opacity: 0;
}

.rd .home-title {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 40px;
  font-weight: 600;
}

.rd .checks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .checks li {
  position: relative;
  margin-bottom: 9px;
  padding-left: 28px;
  font-size: 15px;
  line-height: 22px;
  color: var(--on-navy-text);
}

.rd .checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  background: url(../../img/ico-check.svg) center / contain no-repeat;
}

.rd .home-proof {
  margin: 18px 0 0;
  font-size: 13px;
  color: #aeb4c2;
}

.rd .home-hero-img {
  display: flex;
  flex: 0 1 500px;
  align-items: flex-end;
  justify-content: flex-end;
  align-self: flex-end;
  min-width: 280px;
  margin: 0 -16px -8px 0;
}

.rd .home-hero .hero-actions {
  flex-wrap: nowrap;
  gap: 12px;
}

.rd .home-hero .hero-actions .btn {
  min-width: 0;
  padding: 0 22px;
}

/* Od 1001 px se obrazek zmensuje, text si drzi sirku a tlacitka zustanou vedle sebe. */
@media (min-width: 1001px) {
  .rd .home-hero .hero-text {
    flex: 1 0 420px;
  }

  .rd .home-hero-img {
    min-width: 0;
  }
}

.rd .home-hero-img img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  object-position: right bottom;
}

.rd .slide-dots {
  position: absolute;
  left: 50%;
  bottom: 2px;
  display: flex;
  gap: 4px;
  transform: translateX(-50%);
}

.rd .slide-dots button {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.rd .slide-dots button::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 18px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .25);
}

.rd .slide-dots button.active::before {
  background: var(--accent);
}

.rd .slide-dots button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
  border-radius: 6px;
}

/* ---------- uvod: rozcestnik, video, formulare, produkty ---------- */
.rd .home-segments {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 24px;
}

.rd .segment {
  display: flex;
  flex-direction: column;
  padding: 22px 24px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.rd .segment:hover {
  border-color: var(--form-studio-color);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.rd .segment .ico {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--form-studio-color) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--form-studio-text);
}

.rd .segment b {
  font-size: 17px;
  line-height: 23px;
  font-weight: 600;
  color: var(--navy);
}

.rd .segment small {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .segment .more {
  margin-top: auto;
  padding-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--form-studio-text);
}

.rd .segment:hover .more,
.rd .home-product:hover .more {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rd .home-discover {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
}

.rd .home-video {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
}

.rd .home-video img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  padding: 30px;
  object-fit: contain;
  opacity: .35;
}

.rd .home-video .play,
.rd .home-video .caption {
  position: relative;
}

.rd .home-video .play {
  width: 72px;
  height: 72px;
  color: var(--form-studio-color);
  transition: transform .2s;
}

.rd .home-video:hover .play {
  transform: scale(1.06);
}

.rd .home-video .caption b {
  display: block;
  font-size: 17px;
  font-weight: 600;
}

.rd .home-video .caption small {
  font-size: 12.5px;
  color: #cfd3dc;
}

.rd .home-top-forms h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.rd .top-forms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rd .top-forms a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

.rd .top-forms a:hover {
  border-color: var(--accent);
}

.rd .top-forms small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .home-top-forms .more {
  display: inline-block;
  margin-top: 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .home-top-forms .more:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.rd .home-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.rd .home-product {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 24px;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--c);
  border-radius: var(--radius);
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}

.rd .home-product:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.rd .home-product img {
  align-self: flex-start;
  width: auto;
  height: 56px;
  margin-bottom: 16px;
}

.rd .home-product p {
  margin: 0;
  font-size: 14px;
  line-height: 23px;
  color: var(--body-text);
}

.rd .home-product .more {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

.rd .trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 30px;
  margin-top: 26px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--light-gray-color);
  font-size: 13px;
}

.rd .trust-strip span {
  position: relative;
  padding-left: 24px;
}

.rd .trust-strip span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background: url(../../img/ico-check.svg) center / contain no-repeat;
}

.rd .home-stats {
  padding: 70px 0 90px;
  text-align: center;
}

.rd .home-stats h1 {
  margin: 0;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
  color: var(--navy);
}

.rd .home-stats .lead {
  margin: 6px 0 40px;
  font-size: 15px;
  color: var(--muted-text-color);
}

.rd .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.rd .stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 20px;
}

.rd .stat + .stat {
  border-left: 1px solid var(--border-color);
}

.rd .stat .num {
  font-size: 44px;
  line-height: 52px;
  font-weight: 600;
  color: var(--navy);
}

.rd .stat .label {
  font-size: 14px;
  color: var(--body-text);
}

/* ---------- landing stranky (prototyp lpAccountants, lpMulti) ---------- */
.rd .lp-page {
  padding-top: 40px;
  padding-bottom: 32px;
}

.rd .lp-hero {
  padding: 44px 60px 40px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.rd .lp-page .news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.rd .lp-hero h1 {
  max-width: 820px;
  margin: 14px 0 12px;
  font-size: 34px;
  line-height: 43px;
  font-weight: 600;
}

.rd .lp-hero > p {
  max-width: 760px;
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: var(--on-navy-text);
}

.rd .lp-hero > p.lp-proof {
  margin: 18px 0 0;
  font-size: 13px;
  color: #aeb4c2;
}

.rd .lp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  margin-top: 24px;
}

.rd .lp-page .info-section-title {
  margin: 46px 0 18px;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}

.rd .lp-page .key-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: k;
}

.rd .lp-page .key-item {
  position: relative;
  padding: 20px 22px 20px 70px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  counter-increment: k;
}

.rd .lp-page .key-item:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.rd .lp-page .key-item::before {
  content: counter(k);
  position: absolute;
  left: 20px;
  top: 20px;
  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 .lp-page .key-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.rd .lp-page .key-item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .lp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .lp-tags li {
  padding: 8px 14px;
  border-radius: 18px;
  background: var(--accent-soft);
  font-size: 13.5px;
  color: var(--navy);
}

.rd .lp-quotes {
  columns: 3 300px;
  column-gap: 18px;
}

.rd .lp-quotes .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 .lp-quotes .quote p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 23px;
}

.rd .lp-quotes .quote p::before {
  content: "„";
}

.rd .lp-quotes .quote p::after {
  content: "“";
}

.rd .lp-quotes .quote cite {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
}

.rd .lp-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 .lp-final h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 600;
}

.rd .lp-final p {
  margin: 0;
  font-size: 14px;
  line-height: 22px;
  color: #cfd3dc;
}

.rd .lp-final .lp-actions {
  margin: 0;
}

.rd .lp-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rd .lp-benefits > div {
  padding: 20px;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
}

.rd .lp-benefits h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
}

.rd .lp-benefits p {
  margin: 0;
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .lp-page .table-wrap {
  overflow-x: auto;
}

.rd .lp-compare {
  font-size: 14px;
}

.rd .lp-page .lp-compare th,
.rd .lp-page .lp-compare td {
  width: 40%;
  text-align: left;
}

.rd .lp-page .lp-compare th:first-child,
.rd .lp-page .lp-compare td:first-child {
  width: 20%;
}

.rd .lp-compare td:last-child {
  color: var(--ok);
}

.rd .lp-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted-text-color);
}

.rd .lp-uses {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.rd .lp-uses > div {
  padding: 18px;
  border-radius: var(--radius);
  background: var(--light-gray-color);
}

.rd .lp-uses b {
  display: block;
  margin-bottom: 4px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
}

.rd .lp-uses span {
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

/* okno pred nakupem (prototyp openAddonDialog) */
.rd .addon-checks {
  display: grid;
  gap: 8px;
}

.rd .addon-checks label {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  cursor: pointer;
}

.rd .addon-checks label.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.rd .addon-checks input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.rd .addon-checks span {
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 14px;
  color: var(--navy);
}

.rd .addon-checks small {
  font-size: 12.5px;
  color: var(--body-text);
}

.rd .addon-checks em {
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

.rd .modal-body p.addon-komplet {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 18px;
  color: #3f9a0c;
}

.rd .addon-total {
  margin: 14px 0 0;
  font-size: 14px;
  color: var(--navy);
}

.rd .addon-total b {
  font-size: 18px;
}

.rd .addon-actions {
  display: grid;
  gap: 8px;
  width: 100%;
}

.rd .addon-actions .btn {
  width: 100%;
  min-width: 0;
  height: 46px;
  font-size: 15px;
}

@media (max-width: 1000px) {
  .rd .home-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 36px 40px 56px;
  }

  .rd .home-hero-img {
    flex: none;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    height: 280px;
    margin: 0;
  }

  .rd .home-hero-img img {
    max-height: 100%;
  }

  /* stejna vyska snimku, aby se obsah pod sliderem pri prepnuti neposouval */
  .rd .home-hero .hero-text {
    min-height: 345px;
  }

  .rd .home-segments,
  .rd .home-discover,
  .rd .home-products {
    grid-template-columns: 1fr;
  }

  .rd .lp-benefits,
  .rd .lp-uses {
    grid-template-columns: 1fr 1fr;
  }

  .rd .lp-hero {
    padding: 34px 30px;
  }
}

@media (max-width: 700px) {
  .rd .home-hero {
    gap: 26px;
    padding: 28px 22px 56px;
    border-radius: 4px;
  }

  .rd .home-hero[data-slide="stereo"] .hero-logo,
  .rd .home-hero[data-slide="enter"] .hero-logo {
    height: 50px;
    margin-bottom: 14px;
  }

  .rd .home-hero-img {
    min-width: 0;
    height: 220px;
    margin: 0;
  }

  .rd .home-hero .hero-text {
    min-height: 435px;
  }

  .rd .home-hero .hero-actions {
    flex-direction: row;
    flex-wrap: nowrap;
  }

  .rd .home-hero .hero-actions .btn {
    width: auto;
    flex: 1 1 0;
    padding: 0 10px;
    font-size: 14px;
    line-height: 16px;
    white-space: normal;
    text-align: center;
  }

  .rd .home-title {
    font-size: 24px;
    line-height: 32px;
  }

  .rd .stats {
    grid-template-columns: 1fr;
  }

  .rd .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--border-color);
  }

  .rd .home-stats {
    padding: 50px 0 60px;
  }

  .rd .lp-page {
    padding-top: 24px;
    padding-bottom: 24px;
  }
}

@media (max-width: 560px) {
  .rd .top-forms,
  .rd .lp-page .key-list,
  .rd .lp-benefits,
  .rd .lp-uses,
  .rd .lp-final {
    grid-template-columns: 1fr;
  }

  .rd .lp-final {
    padding: 20px 18px;
  }

  .rd .lp-hero {
    padding: 28px 22px;
  }

  .rd .lp-hero h1 {
    font-size: 25px;
    line-height: 33px;
  }

  .rd .lp-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .rd .lp-quotes {
    columns: 1;
  }

  .rd .lp-page .price-table th,
  .rd .lp-page .price-table td {
    padding: 8px;
  }
}

@media (max-width: 460px) {
  .rd .home-hero .hero-text {
    min-height: 520px;
  }
}
