@media (max-width: 1199.98px) {
  .menu a:not(.tl) { padding-inline: .625rem; font-size: var(--fs-m); }
  .uvod-mriz { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .uvod .tl-velke, .sh .tl-velke { min-height: 3.25rem; padding-inline: 1.25rem; font-size: var(--fs-m); }
  .dlazdice-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vyhody-pas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vyhody-pas > li + li { border-left: 0; }
  .vyhody-pas > li:nth-child(even) { border-left: 1px solid var(--linka); }
  .vyhody-pas > li:nth-child(n+3) { border-top: 1px solid var(--linka); }
}
@media (max-width: 1023.98px) {
  .burger { display: inline-grid; }
  .hl-cta { margin-left: auto; }
  .hl-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--hl-v)); overflow-y: auto; margin: 0; padding: .5rem var(--okraj) 1.5rem; border-top: 1px solid var(--linka); background: #fff; box-shadow: 0 24px 40px -24px rgb(11 26 51 / .35); }
  .menu-otevrene .hl-nav { display: block; box-shadow: 0 24px 40px -24px rgb(11 26 51 / .35), 0 0 0 100vmax rgb(11 26 51 / .35); clip-path: inset(0 0 -100vmax 0); }
  .menu { flex-direction: column; align-items: stretch; gap: 0; }
  .menu a:not(.tl) { padding: 1rem .25rem; border-bottom: 1px solid var(--linka); border-radius: 0; font-size: var(--fs-t); }
  .menu a:not(.tl):hover { background: none; color: var(--modra); }

  .uvod-mriz, .sh-mriz, .dvoj, .dvoj-opak, .onas-mriz, .kontakt-mriz, .povinnosti { grid-template-columns: minmax(0, 1fr); }
  .uvod-txt, .sh-txt { max-width: 40rem; }
  .uvod-vizual, .sh-vizual { width: min(100%, 42rem); }
  .dvoj-opak > .dvoj-txt { order: 0; }
  .dvoj-txt, .kontakt-txt { max-width: 40rem; }
  .dvoj-vizual { max-width: 42rem; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-7 { grid-column: span 2; }
  .dl-5 { grid-column: span 1; }
  .dl-adm .dl-obr { flex: none; min-height: 0; height: auto; aspect-ratio: 1.6; }
  .dlazdice { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kroky { grid-template-columns: minmax(0, 1fr); }
  .zakony { grid-template-columns: minmax(0, 1fr); }

  .pribehy { grid-template-columns: minmax(0, 1fr); }
  .pribeh { flex-direction: row; }
  .pribeh .anim { width: 52%; }
  .pribeh-txt { align-self: center; border-top: 0; }

  .ref-mrizka { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pat-mriz { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pat-znacka { grid-column: 1 / -1; }
  .moduly-vse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  .bento { grid-template-columns: minmax(0, 1fr); }
  .dl-7, .dl-5 { grid-column: auto; }
  .dl { min-height: 0; }
  .dl-obr { flex: none; height: 16rem; min-height: 0; }
  .dl-obr.dl-scena { height: auto; }
  .moduly > li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 1rem; padding: 1.25rem; }
  .moduly .ik { grid-row: span 2; margin: 0; }
  .moduly p { margin-top: .25rem; }
  .dlazdice, .dlazdice-4, .dlazdice-2 { grid-template-columns: minmax(0, 1fr); }
  .moduly-vse { grid-template-columns: minmax(0, 1fr); }
  .mv-skupina:last-child { grid-column: auto; }
  .mv-skupina:last-child ul { columns: 1; }
  .razitko { width: 6.5rem; top: .375rem; bottom: auto; right: .375rem; opacity: .5; }

  .pribeh { flex-direction: column; }
  .pribeh .anim { width: 100%; }
  .pribeh-txt { align-self: stretch; border-top: 1px solid var(--linka); }
  .ref-pas { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(15rem, 78%); gap: var(--mezera); margin-inline: calc(var(--okraj) * -1); padding: .25rem var(--okraj) 1rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--okraj); scrollbar-width: none; }
  .ref-pas::-webkit-scrollbar { display: none; }
  .ref-pas .ref { scroll-snap-align: start; }
  .ref-mrizka:not(.ref-pas) { gap: 2rem var(--mezera); }

  .a3kf-dve { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .a3-form-submit { width: 100%; }
  .pat-mriz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pat-mriz > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 639.98px) {
  :root { --hl-v: 4.5rem; }
  .hl-logo img { height: 38px; }
  .hl-cta { display: none; }
  .burger { margin-left: auto; }
  .menu-cta { display: block; padding-top: 1.25rem; }
  .menu-cta .tl { width: 100%; min-height: 3.25rem; }
  .akce .tl { flex: 1 1 100%; }
  .vyhody-pas { grid-template-columns: minmax(0, 1fr); }
  .vyhody-pas > li { flex-direction: row; align-items: flex-start; }
  .vyhody-pas > li:nth-child(even) { border-left: 0; }
  .vyhody-pas > li + li { border-top: 1px solid var(--linka); }
  .moduly-prepinac { width: 100%; }
  .aplikace .vejir { height: 470px; }
  .aplikace .vejir .tel { width: 168px; }
  .aplikace .vejir .v-2 { width: 205px; }
  .aplikace .pl-app { display: none; }
}
@media (max-width: 479.98px) {
  .aplikace .vejir { height: 440px; }
  .aplikace .vejir .v-1, .aplikace .vejir .v-3 { display: none; }
  .aplikace .vejir .v-2 { width: 200px; }
  .kontakt-udaje a { font-size: 1.125rem; }
  .ref-mrizka:not(.ref-pas) { grid-template-columns: minmax(0, 1fr); }
  .terminy li { flex-wrap: wrap; }
  .terminy b { flex-basis: calc(100% - 2rem); }
  .terminy .stav { margin-left: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .odhal { opacity: 1; animation: none !important; }
  .u-nb, .u-tel, .vejir .tel, .vejir .v-2 .ap-push, .pl-app, .sh-deska, .rf-okno { animation: none !important; }
  [data-anim] *, [data-anim] *::before, [data-anim] *::after { animation-play-state: paused !important; animation-delay: calc(var(--zmraz, 0s) * -1) !important; }
  .tl svg.i, .dl-sipka, .dl-tel, .dl-okno, .rf-balicek, .ref-obr, .ref-obr img { transition: none !important; transform: none !important; }
}

@media (max-width: 1023px) { .nb-snimek-obr { background-image: var(--snimek); } }
