body.subpage {
  --sub-bg: linear-gradient(180deg, rgba(7,17,36,0.9), rgba(4,11,24,0.86));
}

body.subpage .site-header {
  position: sticky;
}

body.subpage .main-nav a.is-active {
  color: #fff;
}

body.subpage .main-nav a.is-active:not(.nav-cta) {
  position: relative;
}

body.subpage .main-nav a.is-active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 1px;
  background: linear-gradient(90deg, var(--page-accent, var(--accent)), var(--cyan));
}

.subpage-shell {
  padding: 54px 0 48px;
}

.sub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) 380px;
  gap: 20px;
  align-items: stretch;
}

.sub-hero__main,
.sub-hero__side,
.sub-section,
.sub-card,
.sub-cta,
.sub-table,
.sub-flow,
.sub-related,
.sub-footer-card,
.sub-process {
  position: relative;
  border: 1px solid rgba(255, 106, 0, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sub-hero__main::before,
.sub-hero__side::before,
.sub-section::before,
.sub-card::before,
.sub-cta::before,
.sub-table::before,
.sub-flow::before,
.sub-related::before,
.sub-footer-card::before,
.sub-process::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,139,61,0.18), transparent 20%),
    linear-gradient(180deg, color-mix(in srgb, var(--page-accent, var(--accent)) 82%, transparent), transparent 32%);
  opacity: .24;
  pointer-events: none;
}

.sub-hero__main::after,
.sub-hero__side::after,
.sub-section::after,
.sub-card::after,
.sub-cta::after,
.sub-table::after,
.sub-flow::after,
.sub-related::after,
.sub-footer-card::after,
.sub-process::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 139, 61, 0.08);
  pointer-events: none;
}

.sub-hero__main {
  padding: 40px 40px 34px;
}

.sub-hero__main .hero-actions {
  margin-top: 26px;
}

.sub-breadcrumb {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sub-breadcrumb a:hover { color: #fff; }

.sub-kicker {
  margin-top: 22px;
  color: var(--page-accent, var(--accent));
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.sub-title {
  margin: 14px 0 16px;
  font-size: clamp(2.8rem, 5vw, 5.1rem);
  line-height: .96;
  letter-spacing: -.055em;
  max-width: 11ch;
}

.sub-lead {
  margin: 0;
  max-width: 60ch;
  color: var(--muted-strong);
  font-size: 1.04rem;
  line-height: 1.8;
}

.sub-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.sub-tag {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--text);
  font-size: .76rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sub-hero__side {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.sub-side-label,
.sub-card__label,
.sub-section__label,
.sub-related__label,
.sub-footer__label,
.sub-process__label {
  color: var(--page-accent, var(--accent));
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.sub-side-card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
}

.sub-side-card strong,
.sub-card h3,
.sub-related__item strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -.02em;
}

.sub-side-card p,
.sub-card p,
.sub-related__item p,
.sub-flow__step p,
.sub-list__item p,
.sub-table__row span,
.sub-footer-note {
  margin: 10px 0 0;
  color: var(--muted-strong);
  line-height: 1.68;
}

.sub-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}

.sub-metric {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}

.sub-metric span {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .14em;
}

.sub-metric strong {
  display: block;
  margin-top: 10px;
  font-size: 1.5rem;
  letter-spacing: -.04em;
}

.sub-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 20px;
  margin-top: 20px;
}

.sub-stack {
  display: grid;
  gap: 20px;
}

.sub-section,
.sub-flow,
.sub-related,
.sub-process,
.sub-footer-card {
  padding: 26px;
}

.sub-section h2,
.sub-related h2,
.sub-process h2 {
  margin: 12px 0 0;
  font-size: clamp(2rem, 3.2vw, 3rem);
  letter-spacing: -.05em;
  line-height: 1.02;
}

.sub-text {
  margin-top: 14px;
  color: var(--muted-strong);
  line-height: 1.76;
}

.sub-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 14px;
  margin-top: 20px;
}

.sub-card {
  padding: 18px;
  min-height: 180px;
}

.sub-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.sub-list__item {
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sub-list__item:first-child { border-top: none; padding-top: 0; }

.sub-list__index {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  font-size: .68rem;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, color-mix(in srgb, var(--page-accent, var(--accent)) 24%, transparent), rgba(255,255,255,.03));
}

.sub-list__item strong,
.sub-flow__step strong,
.sub-table__row strong {
  display: block;
  font-size: .84rem;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sub-table {
  overflow: hidden;
  margin-top: 18px;
}

.sub-table__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.sub-table__row:first-child {
  border-top: none;
  background: rgba(255,255,255,.025);
}

.sub-flow__grid,
.sub-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.sub-flow__step,
.sub-related__item {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}

.sub-related__item {
  min-height: 175px;
  transition: transform .22s ease, border-color .22s ease;
}

.sub-related__item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,106,0,.26);
}

.sub-arrow {
  margin-top: 18px;
  color: var(--page-accent, var(--accent));
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .76rem;
}

.sub-process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
  margin-top: 18px;
}

.sub-process article {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}

.sub-process article strong {
  display: block;
  margin-bottom: 10px;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sub-process article p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.68;
}

.sub-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sub-footer-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: rgba(255,255,255,.02);
  color: var(--muted-strong);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.sub-footer-links a.is-active,
.sub-footer-links a:hover {
  color: #fff;
  border-color: rgba(255,106,0,.28);
}

.site-footer.subpage-footer {
  padding: 18px 0 48px;
}

.subpage-footer .footer-grid {
  grid-template-columns: 1.1fr .9fr;
  align-items: start;
}

.footer-copy {
  position: relative;
  padding: 34px;
  background: var(--sub-bg);
  border: 1px solid rgba(255, 106, 0, 0.16);
  box-shadow: var(--shadow);
}

.footer-copy::before,
.footer-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.footer-copy::before {
  background: linear-gradient(90deg, rgba(255,139,61,0.18), transparent 20%), linear-gradient(180deg, rgba(255,106,0,0.18), transparent 28%);
  opacity: .25;
}

.footer-copy::after {
  inset: 12px;
  border: 1px solid rgba(255, 139, 61, 0.08);
}

.footer-bottom {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: .82rem;
}

.footer-bottom a:hover { color: #fff; }

body.subpage-network { --page-accent: #ff8b3d; }
body.subpage-software { --page-accent: #ff8b3d; }
body.subpage-security { --page-accent: #ff6a00; }
body.subpage-crypto { --page-accent: #ff9b00; }
body.subpage-pc { --page-accent: #ff6a00; }

@media (max-width: 1180px) {
  .sub-hero,
  .sub-grid,
  .subpage-footer .footer-grid,
  .sub-process-grid,
  .sub-flow__grid,
  .sub-related__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .sub-metrics,
  .sub-cards,
  .sub-table__row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .subpage-shell { padding: 28px 0 34px; }
  .sub-hero__main,
  .sub-hero__side,
  .sub-section,
  .sub-flow,
  .sub-related,
  .sub-process,
  .sub-footer-card,
  .footer-copy { padding: 22px; }
  .sub-title { max-width: none; font-size: clamp(2.3rem, 12vw, 3.5rem); }
  body.subpage .main-nav a.is-active:not(.nav-cta)::after { display: none; }
  .footer-bottom { flex-direction: column; }
}

/* v56: přepracované vedlejší stránky */
.subpage-shell {
  padding-top: 38px;
}
.sub-hero {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
}
.sub-hero__main,
.sub-hero__side,
.sub-section,
.sub-flow,
.sub-related,
.sub-process,
.sub-footer-card,
.footer-copy {
  border-radius: 0;
}
.sub-title {
  max-width: 13ch;
}
.sub-hero__main .hero-actions {
  flex-wrap: wrap;
}
.sub-side-card {
  min-height: 118px;
}
.sub-card {
  min-height: 165px;
}
.sub-card h3 {
  font-size: 1.08rem;
}
.sub-related__grid.sub-related__grid--four,
.sub-flow__grid.sub-flow__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.sub-footer-card {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--page-accent, var(--accent)) 18%, transparent), rgba(7,17,36,0.88)),
    var(--sub-bg);
}
body.subpage-print3d { --page-accent: #ff8b3d; }
body.subpage-access { --page-accent: #ff6a00; }
body.subpage-cameras { --page-accent: #ff7a18; }
body.subpage-hardware { --page-accent: #ff6a00; }
@media (max-width: 1320px) {
  .sub-related__grid.sub-related__grid--four,
  .sub-flow__grid.sub-flow__grid--four {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
@media (max-width: 720px) {
  .sub-related__grid.sub-related__grid--four,
  .sub-flow__grid.sub-flow__grid--four {
    grid-template-columns: 1fr;
  }
}


/* v67: všechny vedlejší stránky sjednocené do oranžového motivu */
body.subpage,
body.subpage-network,
body.subpage-software,
body.subpage-security,
body.subpage-crypto,
body.subpage-pc,
body.subpage-print3d,
body.subpage-access,
body.subpage-cameras,
body.subpage-hardware {
  --page-accent: #ff6a00;
  --cyan: #ff8b3d;
  --cyan-soft: rgba(255,139,61,.15);
}
body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .sub-section,
body.subpage .sub-card,
body.subpage .sub-cta,
body.subpage .sub-table,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .sub-footer-card,
body.subpage .sub-process,
.footer-copy {
  border-color: rgba(255,106,0,.18);
}
body.subpage .main-nav a.is-active:not(.nav-cta)::after {
  background: linear-gradient(90deg, #ff6a00, #ff8b3d);
}


/* v69: vedlejší stránky zpět v modro-oranžovém stylu */
body.subpage,
body.subpage-network,
body.subpage-software,
body.subpage-security,
body.subpage-crypto,
body.subpage-pc,
body.subpage-print3d,
body.subpage-access,
body.subpage-cameras,
body.subpage-hardware {
  --cyan: #47d7ff;
  --cyan-soft: rgba(71,215,255,.15);
}
body.subpage-network { --page-accent: #47d7ff; }
body.subpage-software { --page-accent: #ff8b3d; }
body.subpage-security { --page-accent: #ff6a00; }
body.subpage-crypto { --page-accent: #ff9b00; }
body.subpage-pc,
body.subpage-hardware { --page-accent: #ff6a00; }
body.subpage-print3d { --page-accent: #ff8b3d; }
body.subpage-access { --page-accent: #ff6a00; }
body.subpage-cameras { --page-accent: #ff7a18; }
body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .sub-section,
body.subpage .sub-card,
body.subpage .sub-cta,
body.subpage .sub-table,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .sub-footer-card,
body.subpage .sub-process,
.footer-copy {
  border-color: rgba(93, 144, 227, 0.18) !important;
}
body.subpage .sub-hero__main::before,
body.subpage .sub-hero__side::before,
body.subpage .sub-section::before,
body.subpage .sub-card::before,
body.subpage .sub-cta::before,
body.subpage .sub-table::before,
body.subpage .sub-flow::before,
body.subpage .sub-related::before,
body.subpage .sub-footer-card::before,
body.subpage .sub-process::before,
.footer-copy::before {
  background:
    linear-gradient(90deg, rgba(71,215,255,0.18), transparent 20%),
    linear-gradient(180deg, color-mix(in srgb, var(--page-accent, var(--accent)) 82%, transparent), transparent 32%) !important;
}
body.subpage .sub-hero__main::after,
body.subpage .sub-hero__side::after,
body.subpage .sub-section::after,
body.subpage .sub-card::after,
body.subpage .sub-cta::after,
body.subpage .sub-table::after,
body.subpage .sub-flow::after,
body.subpage .sub-related::after,
body.subpage .sub-footer-card::after,
body.subpage .sub-process::after,
.footer-copy::after {
  border-color: rgba(71,215,255,0.08) !important;
}
body.subpage .sub-footer-card {
  background:
    linear-gradient(135deg, rgba(71,215,255,.10), rgba(7,17,36,0.88)),
    linear-gradient(180deg, rgba(7,17,36,0.9), rgba(4,11,24,0.86)) !important;
}
body.subpage .sub-footer-links a:hover,
body.subpage .sub-footer-links a.is-active {
  border-color: rgba(255,106,0,.28) !important;
}
body.subpage .main-nav a.is-active:not(.nav-cta)::after {
  background: linear-gradient(90deg, #47d7ff, #ff6a00) !important;
}


/* v70: záhlaví a zápatí jsou řízené stejnou šablonou na všech stránkách. */

/* v72: sjednocené zápatí a oprava mobilních boxů vedlejších stránek */
.site-footer.subpage-footer,
.site-footer {
  padding: 20px 0 52px !important;
  border-top: 1px solid rgba(85, 124, 196, 0.20) !important;
}
.footer-contact-bar {
  display: grid;
  grid-template-columns: 0.9fr 1.35fr 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.94), rgba(3, 8, 18, 0.72)),
    linear-gradient(90deg, rgba(71,215,255,0.08), transparent 45%, rgba(255,106,0,0.10));
  border: 1px solid rgba(85, 124, 196, 0.22);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), inset 0 -1px 0 rgba(255,106,0,.07);
}
.footer-contact-item {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
}
.footer-contact-item span {
  display: block;
  margin-bottom: 6px;
  color: #ff8b3d;
  font-size: .68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
}
.footer-contact-item strong,
.footer-contact-item a {
  display: block;
  min-width: 0;
  color: rgba(245,249,255,.92);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.footer-contact-item a:hover { color: #fff; }
.footer-main-grid {
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr) !important;
  align-items: stretch !important;
}
.footer-copy,
.sub-footer-card {
  min-width: 0;
}
.footer-copy .footer-bottom { display: none !important; }

@media (max-width: 1180px) {
  .footer-contact-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main-grid { grid-template-columns: 1fr !important; }
}

@media (max-width: 720px) {
  body.subpage .subpage-shell {
    padding: 24px 0 36px !important;
    overflow-x: hidden;
  }
  body.subpage .subpage-shell > .container {
    width: min(calc(100% - 28px), var(--container)) !important;
  }
  body.subpage .sub-hero,
  body.subpage .sub-grid,
  body.subpage .subpage-footer .footer-grid,
  body.subpage .sub-process-grid,
  body.subpage .sub-flow__grid,
  body.subpage .sub-related__grid,
  body.subpage .sub-related__grid.sub-related__grid--four,
  body.subpage .sub-flow__grid.sub-flow__grid--four,
  body.subpage .sub-cards,
  body.subpage .sub-table__row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  body.subpage .sub-hero__main,
  body.subpage .sub-hero__side,
  body.subpage .sub-section,
  body.subpage .sub-flow,
  body.subpage .sub-related,
  body.subpage .sub-process,
  body.subpage .sub-footer-card,
  body.subpage .footer-copy {
    width: 100% !important;
    min-width: 0 !important;
    padding: clamp(20px, 5.5vw, 26px) !important;
  }
  body.subpage .sub-title {
    max-width: 100% !important;
    font-size: clamp(2.25rem, 11vw, 3.2rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.045em !important;
    overflow-wrap: normal;
  }
  body.subpage .sub-lead,
  body.subpage .sub-text,
  body.subpage .sub-side-card p,
  body.subpage .sub-card p,
  body.subpage .sub-list__item p,
  body.subpage .sub-flow__step p,
  body.subpage .sub-related__item p {
    font-size: .98rem !important;
    line-height: 1.62 !important;
  }
  body.subpage .sub-hero__side {
    gap: 12px;
  }
  body.subpage .sub-side-card,
  body.subpage .sub-card,
  body.subpage .sub-flow__step,
  body.subpage .sub-related__item {
    min-height: auto !important;
    width: 100% !important;
  }
  body.subpage .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  body.subpage .hero-actions .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  body.subpage .sub-table__row {
    gap: 8px !important;
    padding: 14px !important;
  }
  body.subpage .sub-list__item {
    grid-template-columns: auto minmax(0, 1fr) !important;
    align-items: start !important;
  }
  .footer-contact-bar {
    grid-template-columns: 1fr !important;
    width: min(calc(100% - 28px), var(--container)) !important;
    padding: 12px !important;
  }
  .footer-main-grid {
    grid-template-columns: 1fr !important;
  }
  .sub-footer-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  body.subpage .subpage-shell > .container,
  .footer-contact-bar {
    width: min(calc(100% - 22px), var(--container)) !important;
  }
  body.subpage .sub-hero__main,
  body.subpage .sub-hero__side,
  body.subpage .sub-section,
  body.subpage .sub-flow,
  body.subpage .sub-related,
  body.subpage .sub-process,
  body.subpage .sub-footer-card,
  body.subpage .footer-copy {
    padding: 20px !important;
  }
}


/* v75: klasické velké zápatí */
.footer-merged {
  display: grid;
  gap: 0;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(3, 8, 18, 0.94), rgba(3, 8, 18, 0.72)),
    linear-gradient(90deg, rgba(71,215,255,0.08), transparent 45%, rgba(255,106,0,0.10));
  border: 1px solid rgba(85, 124, 196, 0.22);
  box-shadow: 0 18px 42px rgba(0,0,0,.30), inset 0 -1px 0 rgba(255,106,0,.07);
}
.footer-contact-bar--merged {
  margin-bottom: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.footer-merged-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.footer-merged .sub-footer-note {
  margin: 8px 0 14px;
}
.footer-merged .sub-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 720px) {
  .footer-merged {
    width: min(calc(100% - 28px), var(--container)) !important;
    padding: 12px !important;
  }
  .footer-merged-links {
    margin-top: 12px;
    padding-top: 12px;
  }
  .footer-merged .sub-footer-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
}
@media (max-width: 480px) {
  .footer-merged { width: min(calc(100% - 22px), var(--container)) !important; }
}


/* v84: přehlednější rovné podstránky bez cikcak rozložení */
body.subpage .subpage-shell {
  padding-top: 34px !important;
}

body.subpage .subpage-shell > .container {
  max-width: 1180px;
}

body.subpage .sub-hero--clean {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px) !important;
  gap: 18px !important;
  align-items: stretch;
}

body.subpage .sub-hero--clean .sub-title {
  max-width: 760px !important;
  font-size: clamp(2.35rem, 4.7vw, 4.35rem) !important;
  line-height: 1.03 !important;
}

body.subpage .sub-hero--clean .sub-lead {
  max-width: 760px !important;
  font-size: 1.05rem;
  line-height: 1.72;
}

body.subpage .sub-hero__side--clean {
  align-content: start;
}

body.subpage .sub-grid--clean {
  display: block !important;
  margin-top: 18px !important;
}

body.subpage .sub-stack--clean {
  display: grid;
  gap: 18px;
}

body.subpage .sub-grid--clean .sub-section,
body.subpage .sub-grid--clean .sub-flow,
body.subpage .sub-grid--clean .sub-section--result,
body.subpage .sub-related--clean {
  padding: clamp(24px, 3vw, 34px) !important;
}

body.subpage .sub-grid--clean .sub-section h2,
body.subpage .sub-grid--clean .sub-flow h2,
body.subpage .sub-related--clean h2 {
  max-width: 820px;
  font-size: clamp(1.8rem, 3vw, 2.7rem) !important;
  line-height: 1.08 !important;
}

body.subpage .sub-grid--clean .sub-text {
  max-width: 860px;
  font-size: 1rem;
  line-height: 1.72;
}

body.subpage .sub-cards--clean {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

body.subpage .sub-cards--clean .sub-card {
  min-height: 150px !important;
  padding: 18px !important;
}

body.subpage .sub-cards--clean .sub-card::before,
body.subpage .sub-cards--clean .sub-card::after {
  display: none !important;
}

body.subpage .sub-cards--clean .sub-card h3 {
  margin: 0 0 8px;
}

body.subpage .sub-list--clean {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
}

body.subpage .sub-list--clean .sub-list__item {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 14px 0;
}

body.subpage .sub-list--clean .sub-list__item:first-child {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 14px;
}

body.subpage .sub-related--clean {
  margin-top: 18px;
}

body.subpage .sub-related__grid--clean {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.subpage .sub-related__grid--clean .sub-related__item {
  min-height: auto !important;
}

body.subpage .sub-flow__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

@media (max-width: 1180px) {
  body.subpage .sub-cards--clean,
  body.subpage .sub-flow__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 900px) {
  body.subpage .sub-hero--clean,
  body.subpage .sub-related__grid--clean,
  body.subpage .sub-list--clean {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body.subpage .sub-hero--clean,
  body.subpage .sub-cards--clean,
  body.subpage .sub-flow__grid--four,
  body.subpage .sub-related__grid--clean,
  body.subpage .sub-list--clean {
    grid-template-columns: 1fr !important;
  }

  body.subpage .sub-hero--clean .sub-title {
    font-size: clamp(2rem, 10vw, 3.05rem) !important;
  }

  body.subpage .sub-grid--clean .sub-section,
  body.subpage .sub-grid--clean .sub-flow,
  body.subpage .sub-grid--clean .sub-section--result,
  body.subpage .sub-related--clean {
    padding: 22px !important;
  }
}


/* v85: kontaktní stránka a formulář */
body.subpage-contact { --page-accent: #ff6a00; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  margin-top: 18px;
}

.contact-form-card,
.contact-info-card {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  background: var(--sub-bg);
  border: 1px solid rgba(93, 144, 227, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.contact-form-card::before,
.contact-info-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(71,215,255,0.18), transparent 20%),
    linear-gradient(180deg, rgba(255,106,0,0.20), transparent 32%);
  opacity: .24;
  pointer-events: none;
}

.contact-form-card::after,
.contact-info-card::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(71,215,255,0.08);
  pointer-events: none;
}

.contact-form-card > *,
.contact-info-card > * {
  position: relative;
  z-index: 1;
}

.contact-form-card h2,
.contact-info-card h2 {
  margin: 12px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
  letter-spacing: -.05em;
}

.contact-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form label span {
  color: rgba(245,249,255,.86);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.035);
  color: #fff;
  padding: 13px 14px;
  font: inherit;
  outline: none;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.contact-form select option {
  color: #111;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(255,106,0,.46);
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 3px rgba(255,106,0,.10);
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-check {
  grid-template-columns: auto minmax(0,1fr) !important;
  align-items: start;
  gap: 10px !important;
  color: rgba(233,240,255,.78);
}

.contact-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #ff6a00;
}

.contact-check span {
  font-size: .88rem !important;
  line-height: 1.55;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-weight: 600 !important;
}

.contact-submit {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.contact-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.contact-alert {
  display: none;
  margin-top: 18px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.10);
  font-weight: 700;
  line-height: 1.5;
}

.contact-alert--success {
  color: #dfffe6;
  background: rgba(65, 210, 105, .12);
  border-color: rgba(65, 210, 105, .34);
}

.contact-alert--error {
  color: #ffe1e1;
  background: rgba(255, 80, 80, .12);
  border-color: rgba(255, 80, 80, .34);
}

body:has(.contact-page) .main-nav a[href="kontakt.html"] {
  color: #fff;
}

@supports selector(:has(*)) {
  body:has(.contact-page) .main-nav a[href="kontakt.html"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 1px;
    background: linear-gradient(90deg, #47d7ff, #ff6a00);
  }

}

@media (max-width: 900px) {
  .contact-grid,
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  .contact-submit {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 720px) {
  .contact-form-card,
  .contact-info-card {
    padding: 22px !important;
  }
}


/* v86: tematické obrázky pro jednotlivé sekce */
body.subpage .sub-illustration {
  margin-top: 18px;
}

body.subpage .sub-illustration__figure {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--sub-bg);
  border: 1px solid rgba(93, 144, 227, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.subpage .sub-illustration__figure::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(71,215,255,0.16), transparent 20%),
    linear-gradient(180deg, rgba(255,106,0,0.16), transparent 32%);
  opacity: .22;
  pointer-events: none;
}

body.subpage .sub-illustration__figure::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(71,215,255,0.08);
  pointer-events: none;
}

body.subpage .sub-illustration__figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(255,255,255,.04);
  background: #050d1c;
}

@media (max-width: 720px) {
  body.subpage .sub-illustration__figure {
    padding: 8px;
  }
}


/* v87: anchor na formulář a fotky místo ilustrací */
.contact-form-card[id="kontakt-formular"] {
  scroll-margin-top: 110px;
}

body.subpage .sub-illustration__figure img {
  aspect-ratio: 5 / 3;
  object-fit: cover;
}


/* v89: fotka nahoře stránky a textový blok přes fotku */
body.subpage .sub-hero--photo {
  position: relative;
  min-height: 560px;
  padding: clamp(22px, 4vw, 34px);
  background-image:
    linear-gradient(90deg, rgba(3, 8, 18, .92) 0%, rgba(3, 8, 18, .78) 48%, rgba(3, 8, 18, .36) 100%),
    linear-gradient(180deg, rgba(255, 106, 0, .14), rgba(3, 8, 18, .44)),
    var(--hero-photo);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(93, 144, 227, 0.22);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.subpage .sub-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 106, 0, .22), transparent 34%),
    radial-gradient(circle at 84% 28%, rgba(71, 215, 255, .16), transparent 32%);
  pointer-events: none;
}

body.subpage .sub-hero--photo::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  pointer-events: none;
}

body.subpage .sub-hero--photo > * {
  position: relative;
  z-index: 1;
}

body.subpage .sub-hero--photo .sub-hero__main,
body.subpage .sub-hero--photo .sub-hero__side {
  background: rgba(5, 13, 28, .72) !important;
  backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, .12) !important;
}

body.subpage .sub-hero--photo .sub-hero__side {
  align-self: end;
}

body.subpage .sub-hero--photo .sub-title {
  text-shadow: 0 20px 48px rgba(0, 0, 0, .45);
}

body.subpage .sub-hero--photo .sub-lead {
  color: rgba(233, 240, 255, .90);
}

@media (max-width: 900px) {
  body.subpage .sub-hero--photo {
    min-height: auto;
    background-position: center top;
  }
}

@media (max-width: 720px) {
  body.subpage .sub-hero--photo {
    padding: 14px !important;
  }

  body.subpage .sub-hero--photo .sub-hero__main,
  body.subpage .sub-hero--photo .sub-hero__side {
    background: rgba(5, 13, 28, .80) !important;
  }
}


/* v90: na fotce zůstává jen levý box, rychlý přehled je pod fotkou */
body.subpage .sub-hero--photo {
  display: block !important;
  min-height: 520px;
  background-image:
    linear-gradient(90deg, rgba(3, 8, 18, .28) 0%, rgba(3, 8, 18, .12) 48%, rgba(3, 8, 18, .05) 100%),
    linear-gradient(180deg, rgba(255, 106, 0, .08), rgba(3, 8, 18, .12)),
    var(--hero-photo) !important;
}

body.subpage .sub-hero--photo .sub-hero__main {
  width: min(760px, 100%);
  min-height: 100%;
  background: rgba(5, 13, 28, .70) !important;
}

body.subpage .sub-hero--photo .sub-title {
  max-width: 100% !important;
}

body.subpage .sub-hero--photo .sub-hero__side {
  display: none !important;
}

body.subpage .sub-summary-under-hero {
  margin-top: 18px;
}

body.subpage .sub-summary-under-hero .sub-hero__side {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  background: var(--sub-bg);
  border: 1px solid rgba(93, 144, 227, 0.18);
  box-shadow: var(--shadow);
}

body.subpage .sub-summary-under-hero .sub-side-label {
  grid-column: 1 / -1;
}

body.subpage .sub-summary-under-hero .sub-side-card {
  min-height: auto;
}

@media (max-width: 900px) {
  body.subpage .sub-summary-under-hero .sub-hero__side {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.subpage .sub-hero--photo {
    min-height: auto;
  }

  body.subpage .sub-hero--photo .sub-hero__main {
    width: 100%;
    background: rgba(5, 13, 28, .78) !important;
  }

  body.subpage .sub-summary-under-hero .sub-hero__side {
    padding: 14px !important;
  }
}


/* v91: jeden horní box, fotka je samostatně pod ním */
body.subpage .sub-hero--single {
  display: block !important;
}

body.subpage .sub-hero--single .sub-hero__main {
  width: 100% !important;
  max-width: none !important;
  background: var(--sub-bg) !important;
  border: 1px solid rgba(93, 144, 227, 0.18) !important;
  box-shadow: var(--shadow);
}

body.subpage .sub-hero--single .sub-title {
  max-width: 920px !important;
}

body.subpage .sub-hero--single .sub-lead {
  max-width: 880px !important;
}

body.subpage .sub-photo-under-hero {
  margin-top: 18px;
}

body.subpage .sub-photo-under-hero__figure {
  position: relative;
  margin: 0;
  padding: 10px;
  background: var(--sub-bg);
  border: 1px solid rgba(93, 144, 227, 0.18);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.subpage .sub-photo-under-hero__figure::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255,255,255,.08);
  pointer-events: none;
}

body.subpage .sub-photo-under-hero__figure img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 3;
  object-fit: cover;
  background: #050d1c;
}

body.subpage .sub-hero--photo {
  background-image: none !important;
  min-height: auto !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.subpage .sub-hero--photo::before,
body.subpage .sub-hero--photo::after {
  display: none !important;
}

@media (max-width: 720px) {
  body.subpage .sub-photo-under-hero__figure {
    padding: 8px;
  }
}


/* v92: čistší horní bloky, fotka vlevo jako pozadí a méně rámečků */
body.subpage .sub-breadcrumb,
body.subpage .sub-kicker,
body.subpage .sub-tags {
  display: none !important;
}

body.subpage .sub-hero--photo-left {
  position: relative;
  display: block !important;
  min-height: 560px;
  padding: 0 !important;
  background-image:
    linear-gradient(90deg, rgba(3, 8, 18, .54) 0%, rgba(3, 8, 18, .74) 42%, rgba(3, 8, 18, .94) 100%),
    var(--hero-photo);
  background-size: cover;
  background-position: left center;
  border: 1px solid rgba(93, 144, 227, 0.16);
  box-shadow: var(--shadow);
  overflow: hidden;
}

body.subpage .sub-hero--photo-left::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 24%, rgba(71, 215, 255, .14), transparent 36%),
    radial-gradient(circle at 88% 22%, rgba(255, 106, 0, .10), transparent 34%);
  pointer-events: none;
}

body.subpage .sub-hero--photo-left::after {
  display: none !important;
}

body.subpage .sub-hero--photo-left .sub-hero__main {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-width: none !important;
  min-height: 560px;
  padding: clamp(36px, 5vw, 72px) !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0 !important;
  box-shadow: none !important;
}

body.subpage .sub-hero--photo-left .sub-hero__main::before,
body.subpage .sub-hero--photo-left .sub-hero__main::after {
  display: none !important;
}

body.subpage .sub-hero--photo-left .sub-title {
  max-width: 900px !important;
  font-size: clamp(2.6rem, 5vw, 5.1rem) !important;
  text-shadow: 0 18px 48px rgba(0,0,0,.55);
}

body.subpage .sub-hero--photo-left .sub-lead {
  max-width: 850px !important;
  color: rgba(233, 240, 255, .92);
  text-shadow: 0 10px 26px rgba(0,0,0,.38);
}

body.subpage .sub-photo-under-hero {
  display: none !important;
}

body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .sub-section,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .contact-form-card,
body.subpage .contact-info-card {
  border-color: rgba(93, 144, 227, .12) !important;
}

body.subpage .sub-hero__main::after,
body.subpage .sub-hero__side::after,
body.subpage .sub-section::after,
body.subpage .sub-flow::after,
body.subpage .sub-related::after,
body.subpage .contact-form-card::after,
body.subpage .contact-info-card::after {
  display: none !important;
}

body.subpage .sub-summary-under-hero .sub-hero__side {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-color: rgba(93, 144, 227, .12) !important;
}

body.subpage .sub-section,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .contact-form-card,
body.subpage .contact-info-card {
  padding: clamp(28px, 3.2vw, 42px) !important;
}

body.subpage .sub-cards--clean {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.subpage .contact-hero--simple {
  display: block !important;
}

body.subpage .contact-hero--simple .sub-hero__main {
  width: 100% !important;
  max-width: none !important;
}

@media (max-width: 980px) {
  body.subpage .sub-hero--photo-left {
    min-height: auto;
  }

  body.subpage .sub-hero--photo-left .sub-hero__main {
    min-height: 460px;
  }

  body.subpage .sub-summary-under-hero .sub-hero__side,
  body.subpage .sub-cards--clean {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  body.subpage .sub-hero--photo-left .sub-hero__main {
    min-height: 390px;
    padding: 28px 22px !important;
  }

  body.subpage .sub-hero--photo-left .sub-title {
    font-size: clamp(2rem, 10vw, 3.05rem) !important;
  }
}


/* v94: fotka v horním bloku je skutečný img prvek, ne jen tmavé CSS pozadí */
body.subpage .sub-hero--photo-left {
  min-height: 560px;
  background: #050d1c !important;
  isolation: isolate;
}

body.subpage .sub-hero--photo-left .sub-hero-photo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  opacity: .82;
  filter: brightness(.92) contrast(1.05) saturate(1.05);
}

body.subpage .sub-hero--photo-left::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 8, 18, .74) 0%, rgba(3, 8, 18, .62) 42%, rgba(3, 8, 18, .22) 100%),
    linear-gradient(180deg, rgba(3, 8, 18, .16), rgba(3, 8, 18, .46));
  pointer-events: none;
}

body.subpage .sub-hero--photo-left .sub-hero__main {
  position: relative;
  z-index: 2;
  width: min(920px, 72%);
}

body.subpage .sub-hero--photo-left .sub-title,
body.subpage .sub-hero--photo-left .sub-lead {
  text-shadow: 0 14px 36px rgba(0,0,0,.72);
}

@media (max-width: 980px) {
  body.subpage .sub-hero--photo-left .sub-hero__main {
    width: 100%;
    background: linear-gradient(180deg, rgba(5, 13, 28, .78), rgba(5, 13, 28, .50)) !important;
  }

  body.subpage .sub-hero--photo-left .sub-hero-photo-bg {
    opacity: .64;
  }
}

@media (max-width: 720px) {
  body.subpage .sub-hero--photo-left {
    min-height: 430px;
  }

  body.subpage .sub-hero--photo-left .sub-hero-photo-bg {
    opacity: .58;
  }
}


/* v100: podstránky jsou širší a bez výrazných boxů */
body.subpage {
  --container: 1520px;
}

body.subpage .container {
  width: min(calc(100% - 42px), var(--container));
}

body.subpage .subpage-shell {
  padding-top: 40px;
}

body.subpage .sub-hero,
body.subpage .sub-summary-under-hero,
body.subpage .sub-grid,
body.subpage .sub-cards,
body.subpage .sub-related__grid {
  width: 100%;
  max-width: none;
}

body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .sub-section,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .contact-form-card,
body.subpage .contact-info-card,
body.subpage .sub-card,
body.subpage .sub-metric {
  border: 0 !important;
  box-shadow: none !important;
}

body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .sub-section,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .contact-form-card,
body.subpage .contact-info-card {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.subpage .sub-summary-under-hero .sub-hero__side,
body.subpage .sub-cards--clean {
  gap: 20px;
}

body.subpage .sub-card,
body.subpage .sub-metric {
  padding: 0 !important;
}

body.subpage .sub-section__title,
body.subpage .sub-flow__title,
body.subpage .sub-related__title,
body.subpage .contact-form-card h2,
body.subpage .contact-info-card h2 {
  position: relative;
  padding-left: 18px;
}

body.subpage .sub-section__title::before,
body.subpage .sub-flow__title::before,
body.subpage .sub-related__title::before,
body.subpage .contact-form-card h2::before,
body.subpage .contact-info-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
}

@media (max-width: 980px) {
  body.subpage .container {
    width: min(calc(100% - 28px), var(--container));
  }
}


/* v106: podstránky do šířky a bez gradientových boxů */
body.subpage {
  --container: 1680px;
}

body.subpage .subpage-shell {
  padding-top: 42px;
}

body.subpage .sub-grid,
body.subpage .sub-hero,
body.subpage .contact-grid {
  max-width: none;
}

body.subpage .sub-section,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .contact-form-card,
body.subpage .contact-info-card {
  border: 0 !important;
  box-shadow: none !important;
}

body.subpage .sub-section::before,
body.subpage .sub-section::after,
body.subpage .sub-flow::before,
body.subpage .sub-flow::after,
body.subpage .sub-related::before,
body.subpage .sub-related::after,
body.subpage .sub-hero__main::before,
body.subpage .sub-hero__main::after,
body.subpage .sub-hero__side::before,
body.subpage .sub-hero__side::after,
body.subpage .contact-form-card::before,
body.subpage .contact-form-card::after,
body.subpage .contact-info-card::before,
body.subpage .contact-info-card::after {
  display: none !important;
}


/* v107: přepsání starého limitu 1180px na podstránkách */
body.subpage .subpage-shell > .container,
body.subpage .container {
  width: min(calc(100% - 64px), 1680px) !important;
  max-width: none !important;
}

body.subpage .sub-hero--photo,
body.subpage .sub-hero--photo-left,
body.subpage .sub-hero,
body.subpage .sub-summary-under-hero,
body.subpage .sub-grid,
body.subpage .contact-grid,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .sub-process {
  width: 100% !important;
  max-width: none !important;
}

body.subpage .sub-hero--photo-left .sub-hero__main {
  width: min(1280px, 100%) !important;
}

body.subpage .sub-hero--photo-left .sub-title {
  max-width: 1120px !important;
}

body.subpage .sub-hero--photo-left .sub-lead {
  max-width: 1040px !important;
}

@media (max-width: 980px) {
  body.subpage .subpage-shell > .container,
  body.subpage .container {
    width: min(calc(100% - 28px), 1680px) !important;
  }
}


/* v116: obsah podstránek jako webové sekce, ne letákové plochy */
body.subpage .sub-hero--photo,
body.subpage .sub-hero--photo-left {
  min-height: clamp(380px, 44vw, 560px) !important;
}

body.subpage .sub-title {
  font-size: clamp(2.2rem, 4.1vw, 4.2rem) !important;
  max-width: 980px !important;
}

body.subpage .sub-lead {
  max-width: 820px !important;
}

body.subpage .sub-section h2,
body.subpage .sub-flow h2,
body.subpage .sub-related h2,
body.subpage .sub-process h2 {
  font-size: clamp(1.75rem, 2.7vw, 3.1rem) !important;
}


/* v121: bez gradientu přes hero fotky */
body.subpage .sub-hero--photo,
body.subpage .sub-hero--photo-left {
  background: #030917 !important;
}

body.subpage .sub-hero--photo::before,
body.subpage .sub-hero--photo::after,
body.subpage .sub-hero--photo-left::before,
body.subpage .sub-hero--photo-left::after {
  display: none !important;
  content: none !important;
}

body.subpage .sub-hero-photo-bg {
  opacity: 1 !important;
  filter: none !important;
}


/* v123: hero obrázky bez rozmazání */
body.subpage .sub-hero-photo-bg {
  filter: none !important;
  opacity: 1 !important;
}

body.subpage .sub-hero__main {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* v125: podstránkové hero obrázky bez gradientu a bez rozmazání */
body.subpage .sub-hero--photo::before,
body.subpage .sub-hero--photo::after,
body.subpage .sub-hero--photo-left::before,
body.subpage .sub-hero--photo-left::after,
body.subpage .sub-hero__main::before,
body.subpage .sub-hero__main::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.subpage .sub-hero-photo-bg {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

body.subpage .sub-hero__main {
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* v129: finální vypnutí gradientu přes podstránkové hero fotky */
html body.subpage section.hero-no-gradient,
html body.subpage section.hero-no-gradient .sub-hero__main {
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.subpage section.hero-no-gradient::before,
html body.subpage section.hero-no-gradient::after,
html body.subpage section.hero-no-gradient .sub-hero__main::before,
html body.subpage section.hero-no-gradient .sub-hero__main::after {
  display: none !important;
  content: none !important;
  background: none !important;
  background-image: none !important;
  opacity: 0 !important;
  filter: none !important;
}

html body.subpage section.hero-no-gradient > img.sub-hero-photo-bg {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}


/* v138: O nás má stejnou pracovní šířku jako horní menu */
body.subpage-about .about-page > .container {
  width: min(calc(100% - 48px), var(--container)) !important;
  max-width: var(--container) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body.subpage-about .about-hero,
body.subpage-about .about-layout,
body.subpage-about .about-section,
body.subpage-about .about-contact,
body.subpage-about .about-contact-form,
body.subpage-about .contact-form {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

body.subpage-about .about-hero {
  margin-bottom: 42px !important;
}

body.subpage-about .about-hero .sub-section__label,
body.subpage-about .about-hero .sub-title,
body.subpage-about .about-hero .sub-lead {
  max-width: 100% !important;
}

body.subpage-about .about-section p,
body.subpage-about .about-points {
  max-width: 100% !important;
}

@media (max-width: 720px) {
  body.subpage-about .about-page > .container {
    width: min(calc(100% - 28px), var(--container)) !important;
  }
}


/* v140: nové texty, akordeony a čistá hero sekce */
body.subpage .sub-hero--photo-left .sub-hero__main,
html body.subpage section.hero-no-gradient .sub-hero__main {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

body.subpage .sub-accordion {
  margin-top: 24px;
  display: grid;
  gap: 0;
  border-bottom: 1px solid rgba(255,255,255,.08) ;

}

body.subpage .sub-accordion-item {
  border-top : 1px solid rgba(255,255,255,.08);

}

body.subpage .sub-accordion-item summary {
  list-style: none;
  cursor: pointer;
  position: relative;
  padding: 22px 56px 22px 0;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #ff6a00;
}

body.subpage .sub-accordion-item summary::-webkit-details-marker {
  display: none;
}

body.subpage .sub-accordion-item summary::after {
  content: '+';
  position: absolute;
  left: 332px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.65rem;
  line-height: 1;
  color: var(--accent);
  left: 379px;

}

body.subpage .sub-accordion-item[open] summary::after {
  content: '−';
}

body.subpage .sub-accordion-content {
  padding: 0 0 20px;
}

body.subpage .sub-accordion-content p {
  margin: 0;
  max-width: 1100px;
  color: var(--muted-strong);
  line-height: 1.8;
}

body.subpage .sub-section--callout {
  padding-top: 0 !important;
}

body.subpage .sub-inline-actions {
  margin-top: 20px;
}

body.subpage .sub-inline-actions .btn {
  width: fit-content;
}

@media (max-width: 720px) {
  body.subpage .sub-accordion-item summary {
    padding: 18px 40px 18px 0;
    font-size: 1rem;
  }

  body.subpage .sub-inline-actions .btn {
    width: 100%;
  }
}


/* v141: jemná mobilní oprava hero bloků na podstránkách */
body.subpage .sub-hero--photo-left,
body.subpage .sub-hero--clean {
  box-sizing: border-box;
  max-width: 100%;
}

body.subpage .sub-hero__main,
body.subpage .sub-hero__side,
body.subpage .sub-section,
body.subpage .sub-flow,
body.subpage .sub-related,
body.subpage .contact-form-card {
  box-sizing: border-box;
}

@media (max-width: 720px) {
  body.subpage .subpage-shell {
    overflow-x: hidden !important;
  }

  body.subpage .sub-hero--photo-left .hero-actions {
    width: 100% !important;
  }
}


/* v142: větší čitelnost na PC a bezpečné mobilní šířky */
@media (min-width: 981px) {
  body.subpage .sub-lead {
    font-size: 1.14rem !important;
    line-height: 1.76 !important;
  }

  body.subpage .sub-text,
  body.subpage .sub-side-card p,
  body.subpage .sub-flow__step p,
  body.subpage .sub-related__item p,
  body.subpage .sub-accordion-content p,
  body.subpage .about-contact p,
  body.subpage .contact-form input,
  body.subpage .contact-form select,
  body.subpage .contact-form textarea {
    font-size: 1.03rem !important;
    line-height: 1.76 !important;
  }

  body.subpage .sub-side-card strong,
  body.subpage .sub-related__item strong {
    font-size: 1.06rem !important;
  }

  body.subpage .sub-accordion-item summary {
    font-size: 1.18rem !important;
  }
}

@media (max-width: 720px) {
  body.subpage .subpage-shell,
  body.subpage .subpage-shell > .container,
  body.subpage .sub-hero--photo-left,
  body.subpage .sub-hero--clean,
  body.subpage .sub-summary-under-hero,
  body.subpage .sub-grid,
  body.subpage .sub-related {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  body.subpage .subpage-shell > .container,
  body.subpage .container {
    width: min(calc(100% - 24px), 1680px) !important;
  }

  body.subpage .sub-hero--photo-left .sub-hero__main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px 22px !important;
  }

  body.subpage .sub-hero--photo-left .sub-title,
  body.subpage .sub-hero--photo-left .sub-lead {
    max-width: 100% !important;
  }

  body.subpage .hero-actions .btn {
    max-width: 100% !important;
    white-space: normal !important;
  }
}

/* PC: text z rozkliknuté položky vedle názvu a pluska */
@media (min-width: 981px) {
  body.subpage .sub-accordion-item {
    display: grid !important;
    grid-template-columns: max-content minmax(420px, 1fr) !important;
    column-gap: 28px !important;
    align-items: center !important;
  }

  body.subpage .sub-accordion-item summary {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 14px !important;
    width: fit-content !important;
    padding: 22px 0 !important;
    list-style: none !important;
  }

  body.subpage .sub-accordion-item summary::-webkit-details-marker {
    display: none !important;
  }

  body.subpage .sub-accordion-item summary::after {
    content: "+" !important;
    position: static !important;
    transform: none !important;
    margin-left: 8px !important;
    color: var(--accent) !important;
    font-size: 1.45rem !important;
    line-height: 1 !important;
  }

  body.subpage .sub-accordion-item[open] summary::after {
    content: "−" !important;
  }

  body.subpage .sub-accordion-content {
    grid-column: 2 !important;
    grid-row: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.subpage .sub-accordion-content p {
    margin: 0 !important;
    max-width: 760px !important;
    line-height: 1.65 !important;
    color: var(--muted-strong) !important;
  }
}

/* Mobil: text zůstane pod položkou, aby nic nečouhalo */
@media (max-width: 980px) {
  body.subpage .sub-accordion-item {
    display: block !important;
  }

  body.subpage .sub-accordion-item summary {
    display: flex !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  body.subpage .sub-accordion-content {
    padding: 0 0 18px !important;
  }
}

/* FIX MOBILNÍ HLAVIČKY A MENU NA PODSTRÁNKÁCH */
@media (max-width: 980px) {
  html,
  body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    height: auto !important;
    min-height: 100% !important;
  }

  body.subpage {
    padding-top: 76px !important;
  }

  body.subpage .site-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;

    background: rgba(3, 8, 18, 0.98) !important;
    border-bottom: 1px solid rgba(85, 124, 196, 0.22) !important;
    backdrop-filter: blur(14px) !important;
  }

  body.subpage .header-inner {
    min-height: 76px !important;
    height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  body.subpage .brand img {
    max-height: 42px !important;
    width: auto !important;
  }

  body.subpage .nav-toggle {
    position: relative !important;
    z-index: 100001 !important;
    display: inline-flex !important;
  }

  body.subpage .main-nav {
    position: fixed !important;
    top: 76px !important;
    left: 14px !important;
    right: 14px !important;
    z-index: 99998 !important;

    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;

    max-height: calc(100vh - 92px) !important;
    overflow-y: auto !important;

    padding: 12px !important;
    background: rgba(4, 9, 20, 0.98) !important;
    border: 1px solid rgba(255, 106, 0, 0.28) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55) !important;
  }

  body.subpage .main-nav.is-open {
    display: flex !important;
  }

  body.subpage .main-nav a {
    display: block !important;
    width: 100% !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    color: #f4f7ff !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }
}

/* v162 FINAL: mobilní podstránky - scrolluje stránka, ne hero/boxy; menu jede s hlavičkou */
@media (max-width: 980px) {
  html,
  body {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    position: static !important;
    touch-action: pan-y !important;
  }

  body.subpage {
    padding-top: 0 !important;
  }

  body.subpage .subpage-shell,
  body.subpage .subpage-shell > .container,
  body.subpage main,
  body.subpage section,
  body.subpage article,
  body.subpage .sub-hero,
  body.subpage .sub-hero--photo,
  body.subpage .sub-hero--photo-left,
  body.subpage .sub-hero--clean,
  body.subpage .hero-no-gradient,
  body.subpage .sub-hero__main,
  body.subpage .sub-summary-under-hero,
  body.subpage .sub-hero__side,
  body.subpage .sub-side-card,
  body.subpage .sub-grid,
  body.subpage .sub-stack,
  body.subpage .sub-section,
  body.subpage .sub-section--accordion-wrap,
  body.subpage .sub-flow,
  body.subpage .sub-flow__grid,
  body.subpage .sub-flow__step,
  body.subpage .sub-related,
  body.subpage .sub-related__grid,
  body.subpage .sub-related__item,
  body.subpage .sub-accordion,
  body.subpage .sub-accordion-item,
  body.subpage .sub-accordion-content,
  body.subpage .sub-accordion-content p {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }

  body.subpage .sub-hero,
  body.subpage .sub-hero--photo,
  body.subpage .sub-hero--photo-left,
  body.subpage .sub-hero--clean,
  body.subpage .hero-no-gradient {
    min-height: auto !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.subpage .sub-hero-photo-bg,
  body.subpage .sub-accordion-media,
  body.subpage .sub-accordion-media img {
    pointer-events: none !important;
    touch-action: none !important;
  }

  body.subpage .site-header {
    position: sticky !important;
    top: 0 !important;
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    z-index: 1000000 !important;
    overflow: visible !important;
    background: rgba(3, 8, 18, 0.98) !important;
    border-bottom: 1px solid rgba(85, 124, 196, 0.22) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
  }

  body.subpage .header-inner {
    position: relative !important;
    height: 76px !important;
    min-height: 76px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    overflow: visible !important;
  }

  body.subpage .brand {
    display: inline-flex !important;
    align-items: center !important;
    flex: 0 0 150px !important;
    width: 150px !important;
    min-width: 150px !important;
    height: 48px !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    z-index: 1000002 !important;
    background: url("duxnet-logo.svg") left center / contain no-repeat !important;
  }

  body.subpage .brand img {
    display: block !important;
    width: 150px !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: 48px !important;
    opacity: 1 !important;
    visibility: visible !important;
    object-fit: contain !important;
  }

  body.subpage .nav-toggle {
    display: inline-flex !important;
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 48px !important;
    min-width: 48px !important;
    position: relative !important;
    z-index: 1000003 !important;
  }

  body.subpage .main-nav {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000001 !important;
    display: none !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    max-height: calc(100dvh - 96px) !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
    touch-action: pan-y !important;
    padding: 12px !important;
    background: rgba(4, 9, 20, 0.98) !important;
    border: 1px solid rgba(255, 106, 0, 0.28) !important;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55) !important;
  }

  body.subpage .main-nav.is-open,
  body.subpage.menu-open .main-nav {
    display: flex !important;
  }

  body.subpage .main-nav a {
    display: block !important;
    width: 100% !important;
    padding: 13px 14px !important;
    border-radius: 10px !important;
    color: #f4f7ff !important;
    background: rgba(255, 255, 255, 0.03) !important;
  }
}
