/* =====================================================================
   AV24 – vzhled podle původní šablony JP Lawyer (varianta red)
   Hodnoty jsou NAMĚŘENÉ z původního webu (vykresleného z původních CSS):
   - tělo: Arial 14px / 22.4px, barva #555, pozadí bg-005.png (bílá → šedá)
   - menu, nadpisy modulů a stránek: Google font Roboto (načítá se jen řez 200,
     tučnost prohlížeč dopočítá – stejně jako na původním webu)
   - šířka 960px, bílé boxy s vnitřním okrajem 5px, mezery 20px
   Podšablona (child) Cassiopeia pro Joomla 6
   ===================================================================== */

/* Stejný odkaz na písmo jako původní web. Pokud ho kvůli GDPR nechcete,
   smažte tento řádek – nadpisy a menu se zobrazí písmem Arial. */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@200&display=swap');

:root {
  --av-red: #c90100;
  --av-text: #555;
  --av-orange: #f39323;
  --av-green: #7fba25;
  --av-pink: #d6007e;
  --av-blue: #009ddf;
  --av-grey: #aaacaf;
  --av-box: 960px;
  --av-gap: 20px;        /* mezera mezi boxy uvnitř těla webu */
  --av-gap-outer: 5px;   /* mezera hlavička ↔ tělo a tělo ↔ patička */
  --av-head: Roboto, Arial, Helvetica, sans-serif;
  --av-body: Arial, Helvetica, sans-serif;

  --cassiopeia-color-primary: #c90100;
  --cassiopeia-color-link: #c90100;
  --cassiopeia-color-hover: #000;
  --link-color: #c90100;
}

/* ---------------------------------------------------------------------
   ZÁKLAD
   --------------------------------------------------------------------- */
body.site {
  margin: 0;
  padding-top: 24px;
  color: var(--av-text);
  font-family: var(--av-body);
  font-size: 14px;
  font-weight: 400;
  line-height: 22.4px;
  /* původní pozadí: přechod z bílé do šedé (bg-005.png) */
  background: #dadada url("../images/bg-005.png") repeat-x left top;
}
body.site a { color: var(--av-red); text-decoration: none; }
body.site a:hover { color: #000; text-decoration: none; }
body.site h1, body.site h2, body.site h3, body.site h4, body.site h5 { letter-spacing: 0; }
body.site strong, body.site b { font-weight: 700; }

/* Hlavička, obsah i patička mají VŽDY stejnou šířku
   (Cassiopeia skládá stránku jako flex sloupec – bez width by se zúžily). */
body.site .container-header,
body.site .site-grid,
body.site .container-footer {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--av-gap));
  max-width: var(--av-box);
  margin-left: auto !important;
  margin-right: auto !important;
  align-self: center;
}

/* ---------------------------------------------------------------------
   HLAVIČKA – .jp-header: bílý box, padding 20px 0 0, menu vlevo, logo vpravo
   --------------------------------------------------------------------- */
body.site .container-header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 92px;
  margin-top: 0;
  margin-bottom: var(--av-gap-outer) !important;
  padding: 20px 0 0;
  background: #fff;
  background-image: none;
  border-radius: 5px;
  box-shadow: none;
}
/* decentní čárkovaná linka mezi menu a tělem webu (jako pod nadpisem stránky) */
body.site .container-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(-1 * var(--av-gap-outer) / 2 - 1px);
  border-top: 1px dashed #ededed;
  pointer-events: none;
}
body.site .container-header > .grid-child {
  display: block;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
  background: none;
}
/* logo vpravo (původně 120 × 57 px, odsazené 42px od pravého okraje) */
body.site .container-header > .grid-child:not(.container-nav) { order: 2; flex: 0 0 auto; }
body.site .container-header .navbar-brand { margin: 0 42px 10px 0; padding: 0; }
body.site .container-header .brand-logo img { display: block; width: 120px; height: auto; }
body.site .container-header .site-description { display: none; }

/* menu vlevo (#suckerfish: padding-top 10px, ul margin-bottom 10px) */
body.site .container-header .container-nav {
  order: 1;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 10px 0 10px;
  background: none;
}
body.site .container-header .container-search { display: none; }
body.site .container-header nav.navbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 0;
  background: none;
}
body.site .container-header .mod-menu,
body.site .container-header .metismenu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}
body.site .container-header .metismenu > li {
  position: relative;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  background: none;
}
body.site .container-header .metismenu > li::before,
body.site .container-header .metismenu > li::after { display: none !important; }

/* položka menu: Roboto 14px, tučně, velká písmena, výška 36px, padding 0 15px,
   oddělovač = původní obrázek menu-divider.png vpravo */
body.site .container-header .metismenu > li > a,
body.site .container-header .metismenu > li > span {
  display: block;
  height: 36px;
  margin: 0;
  padding: 0 15px;
  font-family: var(--av-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 36px;
  color: #000;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  border-radius: 0;
  background: url("../images/menu-divider.png") right center no-repeat;
}
body.site .container-header .metismenu > li:last-child > a { background-image: none; }
body.site .container-header .metismenu > li > a:hover,
body.site .container-header .metismenu > li > a:focus,
body.site .container-header .metismenu > li:hover > a { color: var(--av-red); text-shadow: none; }
/* aktivní položka – červená, zaoblená (kromě pravého horního rohu) */
body.site .container-header .metismenu > li.active > a,
body.site .container-header .metismenu > li.current > a {
  color: #fff;
  background: var(--av-red);
  border-radius: 5px 0 5px 5px;
}
body.site .container-header .metismenu > li > a::after { display: none !important; }
body.site .container-header .metismenu > li > button.mm-toggler { display: none; }

/* rozbalovací podmenu (původně Arial 11px, velká písmena, #333) */
body.site .container-header .metismenu .mm-collapse,
body.site .container-header .metismenu > li > ul {
  width: 17.9em;
  min-width: 197px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #fff;
  border-radius: 0;
  box-shadow: rgba(0, 0, 0, .1) 0 1px 4px 0;
}
body.site .container-header .metismenu ul li { display: block; margin: 0; padding: 0; }
body.site .container-header .metismenu ul li a {
  display: block;
  padding: 8px;
  font-family: var(--av-body);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.1;
  color: #333;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border-bottom: 1px solid #dadada;
}
body.site .container-header .metismenu ul li:last-child a { border-bottom: 0; }
/* barevné třídy položek (av-orange…) platí jen pro levé menu na stránce, ne pro hlavičku */
body.site .container-header .metismenu ul li a[class*="av-"] { color: #333; }
body.site .container-header .metismenu ul li a:hover,
body.site .container-header .metismenu ul li a[class*="av-"]:hover,
body.site .container-header .metismenu ul li.active > a { color: #999; background: none; }

body.site .container-header .navbar-toggler {
  display: none;
  margin: 0 0 0 10px;
  padding: 6px 11px;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: var(--av-red);
  border: 0;
  border-radius: 5px;
}

/* === OD 576 px: menu vždy vodorovně, bez „hamburgeru“ === */
@media (min-width: 576px) {
  body.site .container-header nav.navbar,
  body.site .container-header .navbar-collapse,
  body.site .container-header .mod-menu,
  body.site .container-header .metismenu {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: auto !important;
  }
  body.site .container-header .metismenu > li {
    display: flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    margin: 0 !important;
    border: 0 !important;
  }
  body.site .container-header .metismenu > li > a,
  body.site .container-header .metismenu > li > span { width: auto !important; text-decoration: none !important; }
  body.site .container-header .navbar-toggler { display: none !important; }
  body.site .container-header .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
    flex-grow: 1;
    height: auto !important;
    visibility: visible !important;
  }
  body.site .container-header .metismenu .mm-collapse,
  body.site .container-header .metismenu > li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
  }
  body.site .container-header .metismenu > li:hover > ul,
  body.site .container-header .metismenu > li:focus-within > ul { display: block !important; height: auto !important; }
}
@media (max-width: 767.98px) {
  body.site .container-header .metismenu > li > a { padding: 0 9px; font-size: 13px; }
  body.site .container-header .navbar-brand { margin-right: 15px; }
  body.site .container-header .brand-logo img { width: 96px; }
}

/* === POD 576 px: tlačítko menu === */
@media (max-width: 575.98px) {
  body.site { padding-top: 0; }
  body.site .container-header,
  body.site .site-grid,
  body.site .container-footer { width: 100%; border-radius: 0; }
  body.site .container-header { min-height: 0; padding: 10px 15px; margin-bottom: 10px; border-radius: 0; align-items: center; }
  body.site .container-header .container-nav { padding: 0; }
  body.site .container-header .navbar-brand { margin: 0; }
  body.site .container-header nav.navbar { position: static; }
  body.site .container-header .navbar-toggler { display: inline-block !important; margin: 0; }
  body.site .container-header .navbar-collapse {
    position: absolute;
    left: 0; right: 0; top: 100%;
    z-index: 1000;
    background: #fff;
    border-top: 3px solid var(--av-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, .15);
  }
  body.site .container-header .navbar-collapse:not(.show):not(.collapsing) { display: none !important; }
  body.site .container-header .metismenu { display: block; padding: 6px 0 10px; }
  body.site .container-header .metismenu > li { flex-wrap: wrap; border-bottom: 1px solid #eee; }
  body.site .container-header .metismenu > li > a,
  body.site .container-header .metismenu > li > span {
    flex: 1;
    height: auto;
    padding: 12px 20px;
    font-size: 15px;
    line-height: 1.3;
    background-image: none;
    border-radius: 0;
  }
  body.site .container-header .metismenu > li > button.mm-toggler { display: block; padding: 12px 20px; color: #555; background: none; border: 0; }
  body.site .container-header .metismenu > li > ul { position: static; width: 100%; box-shadow: none; background: #f7f7f7; }
  body.site .container-header .metismenu > li > ul li a { padding: 10px 20px 10px 34px; font-size: 12px; }
}

/* ---------------------------------------------------------------------
   MŘÍŽKA – boxy pod sebou s mezerou 20px; levý sloupec 223px (+5 + 19)
   --------------------------------------------------------------------- */
body.site .site-grid {
  grid-template-columns: [full-start] 0 [main-start] 247px repeat(3, minmax(0, 1fr)) [main-end] 0 [full-end];
  column-gap: 0;
  row-gap: 0;
  padding: 0;
  margin-bottom: 0;
  background: none;
}
body.site .site-grid > .full-width,
body.site .site-grid > .container-banner { grid-column: main-start / main-end; }
body.site .site-grid > [class*="container-"] { margin: 0 0 var(--av-gap) !important; }
/* poslední box těla: k patičce jen --av-gap-outer (záporný okraj mřížky ubere rozdíl) */
body.site .site-grid { margin-bottom: calc(var(--av-gap-outer) - var(--av-gap)) !important; }

/* slider (.jp-slider) – obrázek přes celou šířku; na úvodu (slider s popisky)
   byl kolem obrázku bílý pruh 14px nahoře a dole */
body.site .container-banner { padding: 0; background: #fff; border-radius: 0; }
body.site .container-banner:has(.av-slide-caption) { padding: 14px 0; }
/* horní moduly (.top-module) a obsah (.jp-content) – bílý box, padding 5px */
body.site .container-top-a,
body.site .container-top-b,
body.site .container-bottom-a,
body.site .container-bottom-b {
  padding: 5px;
  background: #fff;
  border-radius: 5px;
}
body.site .container-component {
  padding: 5px;
  background: #fff;
  border-radius: 5px;
}
/* levý sloupec + obsah = jeden bílý box (#sidebar 223px, mezera 19px) */
body.site .container-sidebar-left {
  padding: 5px 19px 5px 5px;
  background: #fff;
  border-radius: 5px 0 0 5px;
}
body.site .container-sidebar-left + .container-component,
body.site.has-sidebar-left .container-component,
body.site .site-grid.has-sidebar-left .container-component { padding: 5px 15px 5px 0; border-radius: 0 5px 5px 0; }

/* moduly v „kartách“ Cassiopeie – bez rámečků a vnitřních okrajů */
body.site .container-banner .card,
body.site .container-top-a .card,
body.site .container-footer .card,
body.site .container-sidebar-left .card { border: 0; background: none; box-shadow: none; border-radius: 0; }
body.site .container-banner .card-body,
body.site .container-top-a .card-body,
body.site .container-footer .card-body,
body.site .container-sidebar-left .card-body { padding: 0; }
body.site .container-banner .moduletable,
body.site .container-top-a .moduletable { margin: 0; }

@media (max-width: 767.98px) {
  body.site .site-grid { grid-template-columns: [full-start] 0 [main-start] repeat(4, minmax(0, 1fr)) [main-end] 0 [full-end]; }
  body.site .container-component,
  body.site .container-sidebar-left + .container-component,
  body.site.has-sidebar-left .container-component { padding: 5px 12px; border-radius: 5px; }
  body.site .container-sidebar-left { padding: 12px; border-radius: 5px; }
}

/* ---------------------------------------------------------------------
   TEXTY ČLÁNKŮ
   --------------------------------------------------------------------- */
/* nadpis stránky (h2.contentheading): Roboto 26px, velká písmena, čárkovaná linka */
body.site .com-content-article .page-header { margin: 0; padding: 0; border: 0; }
body.site .com-content-article .page-header h1,
body.site .com-content-article .page-header h2,
body.site .com-content-article__body h2,
body.site .com-content-article__body .av-contact-grid + h3 {
  margin: 10px 0;
  padding: 0 0 10px;
  font-family: var(--av-head);
  font-size: 26px;
  font-weight: 300;
  line-height: 26px;
  color: #000;
  text-transform: uppercase;
  border-bottom: 1px dashed #ededed;
}
body.site .com-content-article__body { font-size: 14px; line-height: 22.4px; color: var(--av-text); }
body.site .com-content-article__body p { margin: 14px 0; }
body.site .com-content-article__body img { max-width: 100%; height: auto; }
/* NADPISY V TEXTU – sjednocené s titulkem stránky a nadpisy modulů (Roboto) */
body.site .com-content-article__body h1 {
  margin: 0 0 10px;
  font-family: var(--av-head);
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
  color: var(--av-text);
}
/* h3 v textu (TRANSPORT, DOPRAVA…) */
body.site .com-content-article__body h3 {
  margin: 0 0 16px;
  font-family: var(--av-head);
  font-size: 22px;
  font-weight: 300;
  line-height: 24px;
  color: #222;
  text-transform: uppercase;
}
body.site .com-content-article__body p + h3,
body.site .com-content-article__body ul + h3,
body.site .com-content-article__body h4 + h3 { margin-top: 30px; }
body.site .com-content-article__body h3 strong { font-weight: 300; }
/* h4 (MOŽNÉ OBLASTI VYUŽITÍ:) */
body.site .com-content-article__body h4 {
  margin: 0 0 21px;
  font-family: var(--av-head);
  font-size: 17px;
  font-weight: 300;
  line-height: 21px;
  color: var(--av-text);
  text-transform: uppercase;
}
body.site .com-content-article__body p + h4 { margin-top: 40px; }

.av-center { text-align: center; }
.av-red { color: #ff0000; }
.av-muted { color: #999; }
.av-warn { color: #800000; }
.av-float-right { float: right; margin: 0 0 10px 15px; }
body.site ul.check { list-style: none; padding-left: 0; }
body.site ul.check li { position: relative; padding-left: 24px; margin: 4px 0; }
body.site ul.check li::before { content: "✔"; position: absolute; left: 0; color: var(--av-red); }

/* ---------------------------------------------------------------------
   SLIDER – popisek (.shadowbox) a linka pod ním (.shadowline)
   --------------------------------------------------------------------- */
.av-slider { position: relative; overflow: hidden; aspect-ratio: 980 / 360; background: #fff; }
.av-slider .av-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.av-slider .av-slide:first-child,
.av-slider .av-slide.is-active { opacity: 1; z-index: 1; }
.av-slider.is-ready .av-slide:first-child:not(.is-active) { opacity: 0; z-index: 0; }
.av-slider .av-slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.av-slide-caption {
  position: absolute;
  right: 0;
  bottom: 20px;
  box-sizing: content-box;
  width: 340px;
  min-height: 115px;
  padding: 0 0 5px 20px;
  font-family: var(--av-body);
  font-size: 15px;
  line-height: 22.4px;
  color: #fff;
  background: var(--av-grey);
  border: 0;
}
.av-slide-caption::after {   /* .shadowline */
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  width: 360px;
  border-bottom: 6px solid var(--av-grey);
}
body.site .av-slide-caption h3 {
  margin: 0 0 -5px;
  padding: 20px 0 8px;
  font-family: var(--av-head);
  font-size: 22px;
  font-weight: 300;
  line-height: 22px;
  color: #fff;
  text-transform: none;
  background: var(--av-grey);
}
.av-slide-caption p { width: 330px; max-width: 100%; margin: 15px 10px 15px 0; color: #fff; }
.av-slider-nav {
  position: absolute; top: 50%; z-index: 3;
  width: 40px; height: 40px; margin-top: -20px;
  border: 0; border-radius: 50%;
  background: rgba(0, 0, 0, .4); color: #fff;
  font-size: 22px; line-height: 40px; text-align: center;
  cursor: pointer; opacity: 0; transition: opacity .3s, background .3s;
}
.av-slider:hover .av-slider-nav, .av-slider-nav:focus { opacity: 1; }
.av-slider-nav:hover { background: var(--av-red); }
.av-slider-prev { left: 12px; }
.av-slider-next { right: 12px; }
@media (max-width: 767.98px) {
  .av-slide-caption { width: auto; left: 0; min-height: 0; bottom: 0; padding: 0 12px 4px; font-size: 13px; }
  .av-slide-caption::after { display: none; }
  body.site .av-slide-caption h3 { padding: 8px 0 4px; margin: 0; font-size: 16px; line-height: 18px; }
  .av-slide-caption p { display: none; }
  .av-slider-nav { opacity: 1; width: 32px; height: 32px; line-height: 32px; margin-top: -16px; }
}

/* ---------------------------------------------------------------------
   DLAŽDICE SEGMENTŮ – .top-module .grid_3: 223 × 130 px, mezera 19 px,
   text Roboto 20px/20px, odsazení 18px 28px
   --------------------------------------------------------------------- */
.av-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 19px; margin: 0; }
body.site a.av-tile {
  display: block;
  box-sizing: border-box;
  height: 130px;
  margin: 0 0 10px;
  padding: 18px 28px;
  font-family: var(--av-head);
  font-size: 20px;
  font-weight: 300;
  line-height: 20px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
}
body.site a.av-tile:hover { color: #000; }
.av-tile.av-orange { background: var(--av-orange); }
.av-tile.av-green { background: var(--av-green); }
.av-tile.av-pink { background: var(--av-pink); }
.av-tile.av-blue { background: var(--av-blue); }
@media (max-width: 767.98px) {
  .av-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; }
  body.site a.av-tile { height: 100px; padding: 14px 16px; font-size: 18px; line-height: 19px; }
}

/* ---------------------------------------------------------------------
   LEVÝ SLOUPEC – box „SEGMENTY“ (.moduletable.shadow), brožura, reference
   --------------------------------------------------------------------- */
body.site .container-sidebar-left { font-size: 12.6px; line-height: 18.9px; }
body.site .container-sidebar-left > * { margin: 0 0 10px; }
body.site .container-sidebar-left .av-submenu,
body.site .container-sidebar-left .moduletable:has(> ul.mod-menu),
body.site .container-sidebar-left .card:has(ul.mod-menu) {
  padding: 0 0 10px;
  background: #fff;
  border: 1px solid #ededed !important;
  box-shadow: 0 0 4px 0 #cbcbcb !important;
}
body.site .container-sidebar-left h3,
body.site .container-sidebar-left .card-header {
  margin: 0 0 8px;
  padding: 8px 0 8px 15px;
  font-family: var(--av-head);
  font-size: 22px;
  font-weight: 300;
  line-height: 22px;
  color: #222;
  text-transform: none;
  background: none;
  border: 0;
}
body.site .container-sidebar-left .av-submenu h3,
body.site .container-sidebar-left .av-submenu .card-header,
body.site .container-sidebar-left .moduletable:has(> ul.mod-menu) > h3,
body.site .container-sidebar-left .card:has(ul.mod-menu) .card-header {
  margin: 0 0 8px;
  padding: 10px 14px;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
body.site .container-sidebar-left ul.mod-menu { list-style: none; margin: 10px 0; padding: 0 14px; }
body.site .container-sidebar-left ul.mod-menu li {
  margin: 0;
  padding: 0;
  font-size: 12.6px;
  line-height: 18.9px;
  color: #000;
  text-transform: uppercase;
  border: 0;
}
body.site .container-sidebar-left ul.mod-menu li a {
  display: block;
  padding: 4px;
  font-family: var(--av-body);
  font-size: 12.6px;
  font-weight: 400;
  line-height: 18.9px;
  color: #000;
  text-transform: uppercase;
  text-decoration: none;
  background: none;
  border: 0;
  border-bottom: 1px solid #dadada;
}
body.site .container-sidebar-left ul.mod-menu li a:hover { color: #000; }
body.site .container-sidebar-left ul.mod-menu li.current > a,
body.site .container-sidebar-left ul.mod-menu li.active > a { border-bottom-style: dotted; border-bottom-color: currentColor; }
body.site .container-sidebar-left ul.mod-menu li a.av-orange { color: var(--av-orange) !important; }
body.site .container-sidebar-left ul.mod-menu li a.av-green { color: var(--av-green) !important; }
body.site .container-sidebar-left ul.mod-menu li a.av-pink { color: var(--av-pink) !important; }
body.site .container-sidebar-left ul.mod-menu li a.av-blue { color: var(--av-blue) !important; }
body.site .container-sidebar-left ul.mod-menu li a.av-grey { color: var(--av-grey) !important; }

body.site .container-sidebar-left .av-download { padding: 0 0 5px; margin-top: 10px; }
body.site .container-sidebar-left .av-download p { margin: 0 0 10px; }
body.site .container-sidebar-left .av-cover,
body.site .container-sidebar-left .av-ref-thumb { width: 200px; max-width: 100%; height: auto; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); border: 0; }

/* ---------------------------------------------------------------------
   LOGA ZÁKAZNÍKŮ (úvod)
   --------------------------------------------------------------------- */
body.site h1.av-center {
  margin: 38px 0 10px;
  font-family: var(--av-head);
  font-size: 28px;
  font-weight: 300;
  line-height: 28px;
  color: var(--av-text);
}
.av-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; padding: 14px 0; }
body.site img.logo-partner { width: 140px; height: auto; margin: 10px 20px; filter: grayscale(100%); transition: filter .3s; }
body.site img.logo-partner:hover { filter: none; }
@media (max-width: 575.98px) { body.site img.logo-partner { width: 100px; margin: 8px 10px; } }

/* technologie (Televizní a produkční studia) */
.av-tech { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0 20px; }
.av-tech-item { padding: 12px 10px; text-align: center; font-size: 20px; font-weight: 700; color: #000; background: #f5f5f5; }
@media (max-width: 575.98px) { .av-tech { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------------------------------------------------------------
   GALERIE REFERENCÍ + PROHLÍŽEČ
   --------------------------------------------------------------------- */
.av-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.av-gallery-item { display: block; overflow: hidden; background: #eee; box-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.av-gallery-item img { display: block; width: 100%; height: auto; aspect-ratio: 430 / 320; object-fit: cover; transition: transform .4s; }
.av-gallery-item:hover img { transform: scale(1.05); }
@media (max-width: 575.98px) { .av-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
.av-lightbox { position: fixed; inset: 0; z-index: 5000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .88); }
.av-lightbox[hidden] { display: none; }
.av-lightbox img { max-width: 92vw; max-height: 86vh; box-shadow: 0 0 30px rgba(0, 0, 0, .6); }
.av-lightbox button { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; cursor: pointer; }
.av-lightbox button:hover { background: var(--av-red); }
.av-lightbox .av-lb-close { top: 18px; right: 18px; }
.av-lightbox .av-lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.av-lightbox .av-lb-next { right: 18px; top: 50%; margin-top: -24px; }
.av-lightbox .av-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

/* ---------------------------------------------------------------------
   KONTAKTY – dva boxy .moduletable.shadow (Sídlo vlevo, Kancelář vpravo)
   --------------------------------------------------------------------- */
.av-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 30px; }
.av-contact-grid > .av-box:first-child { order: 2; }
.av-box {
  padding: 0 0 10px;
  font-size: 12.6px;
  line-height: 18.9px;
  background: #fff;
  border: 1px solid #ededed;
  border-radius: 0;
  box-shadow: 0 0 4px 0 #cbcbcb;
}
body.site .com-content-article__body .av-box h3 {
  margin: 0 0 8px;
  padding: 10px 14px;
  font-family: var(--av-head);
  font-size: 22px;
  font-weight: 300;
  line-height: 22px;
  color: #222;
  text-transform: none;
  background: #f9f9f9;
  border-bottom: 1px solid #ddd;
}
body.site .com-content-article__body .av-box p { margin: 0; padding: 5px 14px; }
.av-persons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
/* „Kontaktní osoby:“ přímo nad jmény (jako na původním webu) */
body.site .com-content-article__body .av-box p:has(+ .av-persons) { padding-bottom: 0; }
body.site .com-content-article__body .av-persons p { padding-top: 0; }
/* místo textu TEL. / E-MAIL původní ikonky telefonu a obálky */
.av-ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 4px;
  overflow: hidden;
  font-size: 0;
  line-height: 0;
  color: transparent;
  vertical-align: -4px;
  background: center / contain no-repeat;
}
.av-ico-tel { width: 18px; height: 12px; vertical-align: -1px; background-image: url("../images/con_tel.png"); }
.av-ico-mail { width: 17px; height: 18px; background-image: url("../images/emailButton.png"); }
body.site .av-box a { color: #000; text-decoration: underline; }
/* telefon nebyl na původním webu odkaz – vypadá jako běžný text (na mobilu jde vytočit) */
body.site .av-box a[href^="tel:"] { color: var(--av-text); text-decoration: none; }

/* KONTAKTY: dva bílé boxy jako na původním webu – nahoře kontakty, pod nimi mapa */
body.site .container-component:has(.av-contact-grid) { padding: 0 !important; background: none; }
body.site .com-content-article:has(.av-contact-grid) .page-header {
  display: flow-root;   /* okraj nadpisu zůstane uvnitř bílého boxu */
  margin: 0;
  padding: 5px 5px 0;
  background: #fff;
  border-radius: 5px 5px 0 0;
}
body.site .com-content-article__body .av-contact-grid {
  margin: 0;
  padding: 14px 5px 20px;
  background: #fff;
  border-radius: 0 0 5px 5px;
}
body.site .com-content-article__body .av-contact-grid + h3 {
  margin: var(--av-gap) 0 0 !important;
  padding: 15px 5px 10px;
  background: #fff;
  border-radius: 5px 5px 0 0;
}
body.site .com-content-article__body .av-contact-grid ~ .av-map {
  margin: 0;
  border: solid #fff;
  border-width: 10px 5px 0;
  background-color: #e5e3df;
}
body.site .com-content-article__body .av-map-link {
  margin: 0;
  padding: 12px 5px 14px;
  font-size: 14px;
  background: #fff;
  border-radius: 0 0 5px 5px;
}
body.site .com-content-article__body .av-map-link a { color: #000; text-decoration: underline; }
.av-map { position: relative; height: 320px; background: #e5e3df; display: flex; align-items: center; justify-content: center; }
.av-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 767.98px) {
  .av-contact-grid, .av-persons { grid-template-columns: 1fr; gap: 14px; }
  .av-float-right { float: none; display: block; margin: 0 0 10px; }
}

/* starší tabulkový obsah (Měření teploty) */
.av-legacy table { max-width: 100%; height: auto !important; }
.av-legacy iframe { max-width: 100%; aspect-ratio: 16 / 9; height: auto; }
.av-legacy td { vertical-align: top; }
@media (max-width: 767.98px) {
  .av-legacy table, .av-legacy tbody, .av-legacy tr, .av-legacy td { display: block; width: 100% !important; }
  .av-legacy img { margin: 10px auto !important; display: block; }
}

/* ---------------------------------------------------------------------
   PATIČKA – .jp-footer: #222, padding 20px, sloupce 216px
   --------------------------------------------------------------------- */
body.site .container-footer {
  margin-bottom: var(--av-gap);
  padding: 0;
  color: #fff;
  font-size: 12.6px;
  line-height: 18.9px;
  background: #222;
  background-image: none;
  border: 0;
  border-radius: 5px;
}
body.site .container-footer .grid-child { display: block; width: auto; max-width: none; margin: 0; padding: 20px; }
/* 3 sloupce: O společnosti | Reference | Kontakt
   (sloupec Segmenty je v obsahu patičky, ale skrytý – stejné odkazy jsou v hlavním menu) */
.av-footer-cols { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 0 56px; }
.av-footer-cols > .av-footer-col:nth-child(2):not(.av-footer-ref) { display: none; }
body.site .container-footer ul { list-style: none; margin: 0; padding: 0; }
body.site .container-footer li {
  margin: 0;
  padding: 6px 0;
  font-size: 12.6px;
  line-height: 18.9px;
  text-transform: uppercase;
  border-bottom: 1px dotted #555;
}
body.site .container-footer li a { color: #fff; }
body.site .container-footer li:last-child { border-bottom: 0; }

/* Reference: položky roztáhnout na výšku sloupce, aby všechny 3 sloupce
   končily ve stejné úrovni (jen na širší obrazovce, kde jsou vedle sebe) */
@media (min-width: 992px) {
  .av-footer-cols { align-items: stretch; }
  body.site .container-footer .av-footer-ref { display: flex; flex-direction: column; }
  body.site .container-footer .av-footer-ref ul {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    margin-bottom: 9px;   /* stejná rezerva jako okraj posledního odstavce v ostatních sloupcích */
  }
  body.site .container-footer .av-footer-ref li {
    flex: 1 1 0;
    display: flex;
    align-items: flex-end;
  }
}
body.site .container-footer h3 {
  display: block;
  margin: 0 0 14px;
  padding: 8px 0;
  font-family: var(--av-head);
  font-size: 22px;
  font-weight: 300;
  line-height: 22px;
  color: #fff;
  border-bottom: 1px dotted #fff;
}
body.site .container-footer p { margin: 12.6px 0; font-size: 12.6px; line-height: 18.9px; color: #fff; }
body.site .container-footer strong { color: #fff; }
body.site .container-footer a { color: #fff; text-decoration: none; }
body.site .container-footer a:hover { text-decoration: underline; }
/* pruh „Napište nám“ */
body.site .container-footer .av-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 0;
  padding: 14px 20px;
  border: 1px dotted #555;
  border-radius: 5px;
}
body.site .container-footer .av-cta p {
  margin: 0;
  font-family: var(--av-head);
  font-size: 20px;
  font-weight: 300;
  line-height: 24px;
  color: #fff;
}
body.site .container-footer .av-cta small {
  display: block;
  margin-top: 4px;
  font-family: var(--av-body);
  font-size: 12.6px;
  line-height: 18px;
  color: #bbb;
}
body.site .container-footer .av-cta p.av-cta-btn { flex: 0 0 auto; }
body.site .container-footer a.av-btn-write {
  display: inline-block;
  height: 34px;
  padding: 0 16px;
  font-family: var(--av-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 34px;
  color: #fff;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  background: var(--av-red);
  border-radius: 5px 0 5px 5px;
}
body.site .container-footer a.av-btn-write:hover { color: #fff; background: #a00100; text-decoration: none; }
@media (max-width: 575.98px) {
  body.site .container-footer .av-cta { flex-direction: column; align-items: flex-start; }
  body.site .container-footer .av-cta p { font-size: 18px; }
}
body.site .container-footer .av-copyright { margin: 10px 0 0; font-size: 11px; color: #888; text-align: center; }
@media (max-width: 991.98px) {
  .av-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 40px; }
  .av-footer-cols > .av-footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
  .av-footer-cols { grid-template-columns: 1fr; gap: 10px; }
}

body.site .back-to-top-link { background: var(--av-red); border-color: var(--av-red); color: #fff; }

/* text na mobilu bez zarovnání do bloku */
@media (max-width: 575.98px) {
  body.site .com-content-article__body p[style*="justify"] { text-align: left !important; }
}

/* ---------------------------------------------------------------------
   STRÁNKA SLUŽBY (.av-svc)
   --------------------------------------------------------------------- */
.av-svc { padding: 5px 5px 15px; }
.av-svc-hero { margin: 0 0 30px; }
body.site .com-content-article__body .av-svc-kicker {
  margin: 10px 0 0;
  font-family: var(--av-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--av-red);
}
body.site .com-content-article__body .av-svc-hero h2 { margin-top: 4px; }
body.site .com-content-article__body .av-svc-lead {
  margin: 16px 0 0;
  padding-left: 16px;
  font-size: 16px;
  line-height: 26px;
  color: #444;
  text-align: justify;
  border-left: 4px solid var(--av-red);
}

/* karty služeb */
.av-svc-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 40px; }
.av-svc-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 1px solid #ededed;
  border-top: 3px solid var(--av-red);
  box-shadow: 0 0 4px 0 #cbcbcb;
  transition: transform .2s, box-shadow .2s;
}
.av-svc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
.av-svc-card-body::before {
  content: "";
  display: block;
  width: 52px;
  height: 52px;
  margin: 0 0 12px;
  position: relative;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--av-red) center / 28px 28px no-repeat;
  box-sizing: content-box;
}
.av-svc-card-photo { height: 180px; overflow: hidden; background: #222; }
body.site .av-svc-card-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.av-svc-card:hover .av-svc-card-photo img { transform: scale(1.05); }
.av-svc-card-body { padding: 22px 22px 20px; }
.av-svc-card-photo + .av-svc-card-body { padding-top: 0; }
.av-svc-card-photo + .av-svc-card-body::before { margin-top: -30px; }

/* úvod s počtem let */
.av-svc-hero-text { flex: 1 1 auto; }
.av-svc-years { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 130px; height: 130px; margin-bottom: 4px; color: #fff; background: var(--av-red); border-radius: 50%; box-shadow: 0 6px 18px rgba(201, 1, 0, .3); }
.av-svc-years strong { font-family: var(--av-head); font-size: 52px; font-weight: 300; line-height: 1; }
.av-svc-years span { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.av-svc-i-navrh::before { background-image: url("../images/svc/navrh.svg"); }
.av-svc-i-projekt::before { background-image: url("../images/svc/projekt.svg"); }
.av-svc-i-dodavka::before { background-image: url("../images/svc/dodavka.svg"); }
.av-svc-i-instalace::before { background-image: url("../images/svc/instalace.svg"); }
.av-svc-i-servis::before { background-image: url("../images/svc/servis.svg"); }
.av-svc-i-nonstop::before { background-image: url("../images/svc/nonstop.svg"); }
.av-svc-i-spec::before { background-image: url("../images/svc/spec.svg"); }
.av-svc-i-vyber::before { background-image: url("../images/svc/vyber.svg"); }

/* za každým projektem stojí roky praxe */
.av-svc-why { display: grid; grid-template-columns: 1.25fr 1fr; margin: 0 0 40px; background: #f7f7f7; border-left: 4px solid var(--av-red); border-radius: 0 5px 5px 0; overflow: hidden; }
.av-svc-why-text { padding: 24px 28px 14px; }
body.site .com-content-article__body .av-svc-why h3 { margin: 0 0 12px; font-size: 22px; line-height: 26px; color: #000; }
body.site .com-content-article__body .av-svc-why p { margin: 0 0 12px; text-align: justify; }
body.site .av-svc-why ul.av-svc-list li strong { color: #000; }
.av-svc-why-photo { min-height: 260px; }
body.site .av-svc-why-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991.98px) { .av-svc-why { grid-template-columns: 1fr; } .av-svc-why-photo { min-height: 0; height: 240px; order: -1; } }
body.site .com-content-article__body .av-svc-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 24px;
  color: #000;
}
body.site .com-content-article__body .av-svc-card p { margin: 0; font-size: 13.5px; line-height: 21px; color: var(--av-text); }
body.site .av-svc-card a { color: var(--av-red); }

/* nadpisy sekcí */
body.site .com-content-article__body h3.av-svc-title {
  margin: 0 0 18px;
  padding: 0 0 10px;
  font-size: 22px;
  color: #000;
  border-bottom: 1px dashed #ededed;
}

/* postup – číslované kroky */
.av-svc-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 40px;
  padding: 0;
  list-style: none;
  counter-reset: svc;
}
.av-svc-steps li {
  position: relative;
  margin: 0;
  padding: 50px 12px 14px;
  font-size: 13px;
  line-height: 19px;
  text-align: center;
  background: #f7f7f7;
  border-radius: 5px;
  counter-increment: svc;
}
.av-svc-steps li::before {
  content: counter(svc);
  position: absolute;
  top: 10px;
  left: 50%;
  width: 32px;
  height: 32px;
  margin-left: -16px;
  font-family: var(--av-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 32px;
  color: #fff;
  background: var(--av-red);
  border-radius: 50%;
}
.av-svc-steps li:not(:last-child)::after {   /* šipka k dalšímu kroku */
  content: "";
  position: absolute;
  top: 22px;
  right: -11px;
  z-index: 1;
  border: 6px solid transparent;
  border-left: 7px solid #cfcfcf;
}
.av-svc-steps li strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--av-head);
  font-size: 15px;
  font-weight: 700;
  color: #000;
  text-transform: uppercase;
}

/* ukázka projektu */
.av-svc-project { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; margin: 0 0 36px; }
body.site .av-svc-drawing { display: block; margin: 0; }
body.site .av-svc-drawing .av-gallery-item { position: relative; box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
body.site .av-svc-drawing .av-gallery-item img { aspect-ratio: auto; height: auto; object-fit: contain; background: #fff; }
body.site .av-svc-drawing .av-gallery-item::after {
  content: "🔍 Zvětšit";
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 9px;
  font-size: 12px;
  color: #fff;
  background: rgba(0, 0, 0, .6);
  border-radius: 3px;
}
body.site .av-svc-drawing .av-gallery-item:hover img { transform: none; }
body.site .com-content-article__body .av-svc-project-text p { margin: 0 0 10px; }
body.site ul.av-svc-list { list-style: none; margin: 0 0 10px; padding: 0; }
body.site ul.av-svc-list li { position: relative; margin: 0; padding: 4px 0 4px 26px; }
body.site ul.av-svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 17px;
  height: 17px;
  background: url("../images/svc/check.svg") center / contain no-repeat;
}
body.site .com-content-article__body .av-svc-hint { font-size: 12px; color: #999; }

/* výzva na konci */
.av-svc-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  color: #fff;
  background: #222;
  border-radius: 5px;
}
body.site .com-content-article__body .av-svc-cta h3 { margin: 0; font-size: 22px; line-height: 26px; color: #fff; }
body.site .com-content-article__body .av-svc-cta p { margin: 0; color: #ccc; }
body.site .com-content-article__body .av-svc-cta-btns { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; }
body.site a.av-svc-btn {
  display: block;
  height: 36px;
  padding: 0 18px;
  font-family: var(--av-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 36px;
  color: #fff;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  background: var(--av-red);
  border-radius: 5px 0 5px 5px;
}
body.site a.av-svc-btn:hover { color: #fff; background: #a00100; }
body.site a.av-svc-btn-alt { background: transparent; border: 1px solid #777; line-height: 34px; }
body.site a.av-svc-btn-alt:hover { background: #333; }

@media (max-width: 991.98px) {
  .av-svc-project { grid-template-columns: 1fr; }
}
@media (max-width: 767.98px) { .av-svc-cards { grid-template-columns: 1fr; } .av-svc-card-photo { height: 200px; } }
@media (max-width: 575.98px) {
  .av-svc-years { flex-direction: row; gap: 10px; width: auto; height: auto; padding: 8px 20px; border-radius: 30px; }
  .av-svc-years strong { font-size: 30px; } .av-svc-years span { margin: 0; }
  .av-svc-cards, .av-svc-steps { grid-template-columns: 1fr; }
  .av-svc-steps li::after { display: none; }
  .av-svc-cta { flex-direction: column; align-items: flex-start; }
  body.site .com-content-article__body .av-svc-lead { text-align: left; font-size: 15px; }
  body.site .com-content-article__body .av-svc-why p { text-align: left; }
  .av-svc-why-text { padding: 20px 18px 10px; }
}

.av-svc > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------
   SEGMENT – ŘÍDICÍ A DOHLEDOVÁ CENTRA (.av-seg)
   --------------------------------------------------------------------- */
.av-svc-i-technika::before { background-image: url("../images/svc/technika.svg"); }
.av-svc-i-redundance::before { background-image: url("../images/svc/redundance.svg"); }
.av-svc-i-ergonomie::before { background-image: url("../images/svc/ergonomie.svg"); }
.av-svc-i-doprava::before { background-image: url("../images/svc/doprava.svg"); }
.av-svc-i-energie::before { background-image: url("../images/svc/energie.svg"); }
.av-svc-i-bezpecnost::before { background-image: url("../images/svc/bezpecnost.svg"); }

/* barva segmentu (stejná jako dlaždice na úvodní stránce) */
.av-seg { --av-accent: var(--av-red); }
.av-seg.av-seg-orange { --av-accent: var(--av-orange); }
.av-seg.av-seg-green { --av-accent: var(--av-green); }
.av-seg.av-seg-pink { --av-accent: var(--av-pink); }
.av-seg.av-seg-blue { --av-accent: var(--av-blue); }

body.site .com-content-article__body .av-seg-lead {
  margin: 0 0 24px;
  padding-left: 16px;
  font-size: 16px;
  line-height: 26px;
  color: #444;
  text-align: justify;
  border-left: 4px solid var(--av-accent);
}
body.site .com-content-article__body .av-seg > p { text-align: justify; }

/* tmavý pruh s klíčovými vlastnostmi */
.av-feat {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 26px;
  background: #222;
  border-radius: 5px;
  overflow: hidden;
}
.av-feat-item { position: relative; display: grid; grid-template-columns: 46px 1fr; column-gap: 16px; align-items: start; align-content: start; padding: 22px 22px 20px; }
.av-feat-item::before { grid-row: 1 / span 2; margin: 0 !important; }
.av-feat-item:nth-child(even) { border-left: 1px solid #3a3a3a; }
.av-feat-item:nth-child(n+3) { border-top: 1px solid #3a3a3a; }
.av-feat-item::before,
.av-seg-area::before {
  content: "";
  display: block;
  width: 46px;
  height: 46px;
  margin: 0 0 12px;
  border-radius: 50%;
  background-color: var(--av-accent, var(--av-red));
  background-position: center;
  background-size: 24px 24px;
  background-repeat: no-repeat;
}
body.site .com-content-article__body .av-feat-item h3 {
  margin: 3px 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  color: #fff;
  text-transform: uppercase;
}
body.site .com-content-article__body .av-feat-item p { margin: 0; font-size: 13px; line-height: 20px; color: #bbb; text-align: left; }

/* oblasti využití */
.av-seg-areas { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
.av-seg-area { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; align-items: start; align-content: start; }
.av-seg-area::before { grid-row: 1 / span 2; margin: 0; }
.av-seg-area {
  padding: 20px 18px 16px;
  background: #fff;
  border: 1px solid #ededed;
  border-left: 3px solid var(--av-accent);
  box-shadow: 0 0 4px 0 #cbcbcb;
  transition: transform .2s, box-shadow .2s;
}
.av-seg-area:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .14); }
body.site .com-content-article__body .av-seg-area h3 { margin: 2px 0 6px; font-size: 18px; line-height: 22px; color: #000; }
body.site .com-content-article__body .av-seg-area p { margin: 0; font-size: 13px; line-height: 20px; text-align: left; }

@media (max-width: 575.98px) {
  .av-seg-area { grid-template-columns: 1fr; }
  .av-seg-area::before { grid-row: auto; margin: 0 0 10px; }
}
@media (max-width: 575.98px) {
  .av-feat { grid-template-columns: 1fr; }
  .av-feat-item:nth-child(even) { border-left: 0; }
  .av-feat-item + .av-feat-item { border-top: 1px solid #3a3a3a; }
  body.site .com-content-article__body .av-seg > p { text-align: left; }
  body.site .com-content-article__body .av-seg > p.av-seg-lead { font-size: 15px; }
}

/* SEGMENT – Prezentační a informační systémy: ikony + značky */
.av-svc-i-vicezdroju::before { background-image: url("../images/svc/vicezdroju.svg"); }
.av-svc-i-sdileni::before { background-image: url("../images/svc/sdileni.svg"); }
.av-svc-i-ovladani::before { background-image: url("../images/svc/ovladani.svg"); }
.av-svc-i-prezentace::before { background-image: url("../images/svc/prezentace.svg"); }
.av-svc-i-signage::before { background-image: url("../images/svc/signage.svg"); }

body.site ul.av-brands { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.site ul.av-brands li {
  flex: 1 1 auto;
  margin: 0;
  padding: 9px 12px;
  text-align: center;
  font-family: var(--av-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #333;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-bottom: 3px solid var(--av-accent, var(--av-red));
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
}
.av-seg .av-seg-areas { margin-bottom: 34px; }
.av-seg > :last-child { margin-bottom: 0; }

/* SEGMENT – Televizní a produkční studia: ikony + technologie */
.av-svc-i-frekvence::before { background-image: url("../images/svc/frekvence.svg"); }
.av-svc-i-barvy::before { background-image: url("../images/svc/barvy.svg"); }
.av-svc-i-mrizka::before { background-image: url("../images/svc/mrizka.svg"); }
.av-svc-i-kamera::before { background-image: url("../images/svc/kamera.svg"); }
.av-svc-i-xr::before { background-image: url("../images/svc/xr.svg"); }

body.site ul.av-techlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
body.site ul.av-techlist li {
  margin: 0;
  padding: 12px 16px;
  background: #f7f7f7;
  border-left: 3px solid var(--av-accent, var(--av-red));
  border-radius: 0 4px 4px 0;
}
body.site ul.av-techlist li strong { display: block; margin-bottom: 2px; font-family: var(--av-head); font-size: 15px; color: #000; }
body.site ul.av-techlist li span { display: block; font-size: 13px; line-height: 19px; color: var(--av-text); }
@media (max-width: 767.98px) { body.site ul.av-techlist { grid-template-columns: 1fr; } }
body.site .container-sidebar-left a.av-svc-btn { display: inline-block; margin-top: 4px; }
body.site .container-sidebar-left .av-download p { padding: 0 10px; text-align: center; }

/* SEGMENT – Virtuální realita a simulátory: ikony */
.av-svc-i-letadlo::before { background-image: url("../images/svc/letadlo.svg"); }
.av-svc-i-rychlost::before { background-image: url("../images/svc/rychlost.svg"); }

.av-seg-area p a { color: var(--av-accent, var(--av-red)); font-weight: 700; }
body.site .av-seg ul.av-techlist { margin-bottom: 34px; }
body.site .av-seg > ul.av-techlist:last-child { margin-bottom: 0; }

body.site .av-svc-drawing .av-svc-hint { margin: 8px 0 0; text-align: center; }

/* Služby – ukázka projektu: výkres na polovinu šířky, stejně vysoký jako text vedle */
.av-svc-project { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
body.site .av-svc-drawing { display: flex; flex-direction: column; }
body.site .av-svc-drawing .av-gallery-item { flex: 1 1 auto; min-height: 220px; display: block; overflow: hidden; }
body.site .av-svc-drawing .av-gallery-item img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
body.site .av-svc-drawing .av-svc-hint { flex: 0 0 auto; }
@media (max-width: 991.98px) {
  .av-svc-project { grid-template-columns: 1fr; }
  body.site .av-svc-drawing .av-gallery-item { flex: none; height: 240px; }
}

/* Slider – přechod „skládané dlaždice“ (z levého horního rohu do pravého dolního) */
.av-slider-tiles { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.av-slider-tiles span {
  position: absolute;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(.4);
  will-change: transform, opacity;
  animation: av-tile-in .6s cubic-bezier(.25, .8, .35, 1) forwards;
}
@keyframes av-tile-in {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: scale(1); }
}
.av-slider-nav { z-index: 5; }

/* Dlaždice segmentů na úvodní stránce – ikony */
body.site a.av-tile { position: relative; overflow: hidden; }
body.site a.av-tile::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 12px;
  width: 58px;
  height: 58px;
  background: center / contain no-repeat;
  opacity: .9;
  transition: transform .3s ease, opacity .3s ease;
}
body.site a.av-tile:hover::after { transform: translateY(-3px) scale(1.08); opacity: 1; }
body.site a.av-tile.av-orange::after { background-image: url("../images/seg/ridici.svg"); }
body.site a.av-tile.av-green::after { background-image: url("../images/seg/prezentace.svg"); }
body.site a.av-tile.av-pink::after { background-image: url("../images/seg/studia.svg"); }
body.site a.av-tile.av-blue::after { background-image: url("../images/seg/vr.svg"); }
@media (max-width: 767.98px) {
  body.site a.av-tile::after { width: 34px; height: 34px; right: 10px; bottom: 8px; }
}
