/* ===================================================== HOME HERO / TITLE BANNER  ===================================================== */

.c-home-hero{
  position: relative;
  z-index: 10;
  background: var(--color-white);

  max-height: 600px;
  opacity: 1;
  overflow: visible;
  transition: max-height 260ms ease, opacity 200ms ease;
  margin-bottom: 0;
}

.c-home-hero__inner{
  position: relative;
}

/* levé spodní červené L */
.c-home-hero__inner::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;

  width: clamp(90px, 10%, 170px);
  height: 100%;

  background-image: url('/program_files/img/layout/l-logo.png');
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

/* obrázek stejně jako původně */
.c-home-hero__image{
  display: block;
  width: 100%;
  height: auto;
}

/* nadpis nahoře vlevo */
.c-home-hero__headline{
  position: absolute;
  top: 20px;
  left: 0;
  z-index: 3;

  width: 30%;
  padding-top: 0;
  padding-left: var(--split-main-pad-l);
  padding-right: 0;
  box-sizing: border-box;
}

.c-home-hero__title{
  margin: 0 0 15px;
  padding-top: 10px;

  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  font-size: clamp(2.2rem, 3.2vw, 4.2rem);
  text-shadow: 0 2px 18px rgba(0,0,0,0.24);
}

body.banner-hidden .c-home-hero{
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

body.banner-hidden .news-section__main{
  margin-top: -20px;
}

/* =====================================================
   PINS / HEARTS
   ===================================================== */

.c-home-hero__pin{
  position: absolute;
  top: var(--pin-top);
  left: var(--pin-left);
}

/* samotné srdíčko */
.c-home-hero__pin-icon{
  display: block;
  width: 44px;
  height: auto;
  margin: 0;
  cursor: pointer;
}


/* =====================================================
   POPUP
   ===================================================== */

.c-home-hero__popup{
  position: absolute;
  top: calc(50% + 6px);
  left: 60%;
  z-index: 20;

  display: none;
  opacity: 0;
  transform: translateY(-50%);
  transition:
    opacity 180ms ease,
    transform 180ms ease;

  min-width: 230px;
  max-width: 300px;
  padding: 22px;

  background: rgba(255,255,255,0.98);
  color: var(--color-dark);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  box-shadow:
    0 14px 34px rgba(0,0,0,0.16),
    0 3px 10px rgba(0,0,0,0.08);

  box-sizing: border-box;
  backdrop-filter: blur(6px);
}

/* zobrazení popupu */
.c-home-hero__pin:hover .c-home-hero__popup,
.c-home-hero__pin:focus-within .c-home-hero__popup{
  display: block;
  opacity: 1;
  transform: translate(0, 4px);
}


/* =====================================================
   TITLE
   ===================================================== */

.c-home-hero__popup strong{
  display: block;
  margin: 0 0 16px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-dark);
}


/* =====================================================
   ACTIONS WRAPPER
   ===================================================== */

.c-home-hero__popup-actions{
  display: flex;
  gap: 14px;
}


/* =====================================================
   ACTION BUTTON (ikona + text)
   ===================================================== */

.c-home-hero__action{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;

  width: 104px;
  height: 104px;
  padding: 12px 10px 14px;
  box-sizing: border-box;

  text-decoration: none;

  background: #f7f7f7;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 16px;

  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background-color 0.15s ease;
}

/* hover efekt */
.c-home-hero__action:hover{
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}


/* =====================================================
   ICON
   ===================================================== */

.c-home-hero__action-icon{
  width: 48px;
  height: 48px;
  flex: 0 0 48px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin: 0 auto 10px;
}

.c-home-hero__action-icon img{
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}


/* =====================================================
   LABEL (text pod ikonou)
   ===================================================== */

.c-home-hero__action span{
  margin-top: auto;

  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-dark);
  line-height: 1.1;
  text-align: center;
}

.c-home-hero-toggle{
  padding: 0;
  min-height: 0;
  border: 0;
  line-height: 1.2;
}


/* =====================================================
   MOBILE NAV
   ===================================================== */

.c-home-hero__mobile-nav{
  display: none;
}

/* =====================================================
   HIDDEN STATE
   ===================================================== */

body.banner-hidden .c-home-hero{
  max-height: 0;
  opacity: 0;
  pointer-events: none;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (min-width: 1400px){
  .c-home-hero__pin-icon{
    width: 48px;
  }
}

@media (max-width: 1100px){
  .c-home-hero__headline{
    width: 42%;
    padding-left: var(--split-pad-x);
    padding-top: 1em;
  }

  /*
  .c-home-hero__title{
    font-size: clamp(1.9rem, 4.8vw, 3rem);
  }
  */
  /*
  .c-home-hero__inner::before{
    width: 12%;
  }
    */
}

@media (max-width: 950px){
  .c-home-hero__pin{
    display: none;
  }

  .c-home-hero__headline{
    top: 18px;
    width: auto;
    max-width: 80%;
    padding-left: var(--split-pad-x);
    padding-right: var(--split-pad-x);
  }
/*
  .c-home-hero__title{
    padding-top: 0;
    font-size: clamp(1.7rem, 7vw, 2.6rem);
    line-height: 1.05;
  }
*/
  .c-home-hero__mobile-nav{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    position: absolute;
    left: var(--split-pad-x);
    right: var(--split-pad-x);
    bottom: 12px;
    z-index: 4;

    padding: 0;
    width: auto;
    background: transparent;
    transform: none;
  }

  .c-home-hero__mobile-link{
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 44px;
    padding: 8px 12px;

    text-align: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;

    box-sizing: border-box;
    border: 0;
    border-radius: 6px;
  }

  .c-home-hero__mobile-link:hover{
    background: inherit;
    transform: none;
  }

  .c-home-hero__mobile-link strong{
    font: inherit;
    font-weight: inherit;
    color: #fff;
  }

  .c-home-hero__mobile-link--active{
    background: var(--color-primary);
    color: #fff;
  }

  .c-home-hero__mobile-link--inactive{
    background: #fff;
    color: var(--color-primary);
  }

  .c-home-hero__mobile-link--active:hover{
    background: #a80012; /* lehce tmavší červená */
  }

  .c-home-hero__mobile-link--inactive:hover{
    background: #f5f5f5;
  }

  .c-home-hero__inner{
    position: relative;
    aspect-ratio: 16 / 7;
    overflow: hidden;
  }

  .c-home-hero__image{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .c-home-hero__mobile-link,
  .c-home-hero__mobile-link:hover,
  .c-home-hero__mobile-link:focus,
  .c-home-hero__mobile-link:active,
  .c-home-hero__mobile-link:visited{
    opacity: 1 !important;
    filter: none !important;
    box-shadow: none;
    text-decoration: none;
  }

  .c-home-hero__mobile-link--active,
  .c-home-hero__mobile-link--active strong,
  .c-home-hero__mobile-link--active:hover,
  .c-home-hero__mobile-link--active:hover strong{
    color: #fff !important;
  }

  .c-home-hero__mobile-link--active:hover{
    background: var(--color-primary) !important;
  }

  .c-home-hero__mobile-link--inactive:hover{
    background: #fff !important;
    color: var(--color-primary) !important;
  }

}



/* =====================================================  NOVINKY A KALENDÁŘ ===================================================== */

#novinky-kalendar.news-section{
  position: relative;
}

.news-section__split,
.news-section__main,
.news-section__side{
  min-width: 0;
}

.news-section__main{
  color: var(--color-dark);
  display: flex;
  flex-direction: column;
  margin-top: -44px;
}

.news-section__side{
  color: #fff;
}

/* desktop poměr stejně jako původní layout */
#novinky-kalendar .news-section__split{
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(320px, 3fr);
  align-items: start;
}


/* =====================================================
   LEVÁ ČÁST – AKTUALITY
   ===================================================== */

.c-home-hero-toggle-wrap{
  display: flex;
  justify-content: flex-end;
  margin: 0;
}

.news-section__banner-toggle{
  /* reset buttonu */
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;

  /* layout */
  align-self: flex-end;
  margin-bottom: 6px;
  margin-top: 0;

  /* vzhled */
  color: var(--color-primary);
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.2;
  text-align: right;

  cursor: pointer;
}

/* hover */
.news-section__banner-toggle:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* focus – zachováme přístupnost */
.news-section__banner-toggle:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.news-section__head{
  width: 100%;
  margin-bottom: 16px;
}

/* hlavička stejně rozložená jako dřív:
   nadpis | záložky | UA odkaz vpravo */
.news-tabs{
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px 22px;
  align-items: center;
}

.news-tabs h3{
  margin: 0;
  line-height: 1;
}

.news-tabs ul{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: center;
}

.news-tabs ul li,
.news-tabs ul li::before,
.news-tabs ul li::marker{
  list-style: none !important;
  content: none !important;
}

.news-tabs ul li{
  margin: 0;
  padding: 0;
  cursor: pointer;
  line-height: 1.2;
  color: var(--color-dark);
  font-weight: 400;
  transition: color 0.15s ease, font-weight 0.15s ease;
}

.news-tabs ul li.tab-selected{
  color: var(--color-primary) !important;
  font-weight: 700 !important;
}

.news-tabs ul li:hover{
  color: var(--color-primary);
  font-weight: 700;
}

.news-tabs__ua{
  margin: 0;
  justify-self: end;
  align-self: center;
  text-align: right;
  line-height: 1.2;
}

.news-tabs__ua a{
  color: var(--color-dark);
  text-decoration: none;
}

.news-tabs__ua a:hover{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-tabs__ua a:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* =====================================================
   NEWS LIST / AJAX KARTY
   ===================================================== */

.news-list{
  display: flex;
  flex-wrap: wrap;
  gap: 6px; /* ← JEDNOTNÁ mezera horizontální i vertikální */
}

.news-card,
.news-card--secondary,
.news-secondary{
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

/* původní 3sloupcový desktop */
.news-card--secondary,
.news-secondary{
  flex: 1 1 calc(33.333% - 6px); /* 3 sloupce */
  margin: 0;
  float: none;
}

.news-card img,
.news-card--secondary img,
.news-secondary img{
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.news-card__cover{
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: 0;
  margin-bottom: 0;
  background: url(/program_files/img/img-system/title/cover.png) no-repeat bottom left;
  background-size: cover;
  opacity: 0.8;
  pointer-events: none;
}

.news-card__text,
.news-text{
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 10px;
  width: auto;
  margin-left: 0;
  color: #fff;
  z-index: 1;
}

.news-card__text h4,
.news-card__text h5,
.news-text h4,
.news-text h5{
  margin: 0 0 4px;
  color: #fff !important;
  line-height: 1.12;
}

.news-card__text p,
.news-text p{
  margin: 3px 0 0;
  font-size: 0.8em;
  line-height: 1.3em !important;
  padding-top: 0 !important;
}

.news-card:hover,
.news-card--secondary:hover,
.news-secondary:hover{
  opacity: 1;
}

.news-card:focus-visible,
.news-card--secondary:focus-visible,
.news-secondary:focus-visible{
  outline: 3px solid var(--color-primary);
  outline-offset: 3px;
}

/* =====================================================
   FOOTER AKTUALIT
   ===================================================== */

.news-footer{
  margin-top: 18px;
  padding-bottom: 40px;
}

.news-footer__actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 26px;
  align-items: stretch;
}

.news-footer__actions > a{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

/* desktop: tlačítka pod 1. a 3. kartou */
.news-footer__actions > a:first-child{
  grid-column: 1;
}

.news-footer__actions > a:last-child{
  grid-column: 3;
}

.news-footer__content{
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
  gap: 40px;
  align-items: start;
}

.news-footer__board,
.news-footer__links{
  min-width: 0;
}

.news-footer__board h3{
  margin: 0 0 20px;
}

.news-footer__links{
  padding-top: 2px;
}

.news-footer__links .news-footer__mobile-more{
  display: none;
}

.news-footer__links ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-footer__links li,
.news-footer__links li::before,
.news-footer__links li::marker{
  margin: 0 0 18px;
  list-style: none !important;
  content: none !important;
}

.news-footer__links li:last-child{
  margin-bottom: 0;
}

.news-footer__links li a,
.news-footer__board li a{
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-dark);
  text-decoration: none;
}

.news-footer__links li a:hover,
.news-footer__board li a:hover{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.news-footer__links li a:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  text-decoration: underline;
}

.news-footer__links img{
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: block;
}

.news-footer__links span{
  display: block;
  text-align: left;
  font-size: 0.95em;
  line-height: 1.2;
}

/* =====================================================
   PRAVÁ ČÁST – KAM DNES
   ===================================================== */

.news-section__side{
  color: #fff;
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.today-events{
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.today-events__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  transform: translateY(-4px);
}

.today-events__title{
  font-size: 1.3em;
  color: #fff;
}

.today-events__head .today-events__title{
  margin: 0 !important;
  line-height: 1;
  transform: none;
}

.today-events__calendar-link{
  white-space: nowrap;
  margin-top: 0;
  line-height: 1;
}

.today-events__list a,
.today-events__calendar-link,
#calendar-title a{
  color: #fff !important;
  text-decoration: none;
}

/* hover – bez podtržení */
.today-events__list a:hover,
.today-events__calendar-link:hover,
#calendar-title a:hover{
  color: #fff;
  text-decoration: none;
  opacity: 0.85;
}

/* visited – zůstává bílé */
.today-events__list a:visited,
.today-events__calendar-link:visited,
#calendar-title a:visited{
  color: #fff;
}

/* focus – přístupnost */
.today-events__list a:focus-visible,
.today-events__calendar-link:focus-visible,
#calendar-title a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.today-events__calendar-link{
  white-space: nowrap;
  margin-top: 0;
  line-height: 1; /* sjednotí baseline */
}

.today-events__list{
  width: 100%;
}


.today-events__list p,
#calendar-title p{
  margin-bottom: 15px;
  font-size: 0.8em;
}

.today-events__list h6,
#calendar-title h6{
  margin-bottom: 0;
  color: #fff;
  font-size: 0.9em;
  line-height: 1.1em;
}

.today-events__list.hide-image a img,
.hide-image a img{
  display: none;
}

.today-events__list.hide-image a div,
.hide-image a div{
  width: 100% !important;
}

.today-events__separator{
  border: 0;
  margin: 0;
  padding-top: 2em;
}

.today-events__separator-text{
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;

  margin: -35px 0 10px;
  text-align: center;
  white-space: nowrap;
}

/* levá čára */
.today-events__separator-text::before,
/* pravá čára */
.today-events__separator-text::after{
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #fff;
  align-self: center; /* fallback */
}

.today-events__more-running{
  text-align: center;
  text-decoration: underline !important;
}

.today-events__links{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  padding-bottom: 0.5em;
}

.today-events__links a{
  color: #fff;
  text-decoration: underline;
}

.today-events__links a:hover{
  opacity: 1;
}

.today-events__links a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* =====================================================
   RESPONSIVITA
   ===================================================== */


@media (max-width: 1200px){
  .news-tabs ul li{
    font-size: 0.80em;
  }
}

@media (max-width: 1100px){

  .news-tabs ul li{
    font-size: 1em;
  }

  #novinky-kalendar .news-section__split{
    grid-template-columns: 1fr;
  }

  .today-events__head, .today-events__links{
    padding-right: var(--rail-safe-right);
  }

  .news-footer__content{
    grid-template-columns: 1fr;
    gap: 24px;
  }

}

@media (max-width: 950px){

  .c-home-hero-toggle-wrap{
    display: none;
  }
  #novinky-kalendar .news-section__split{
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
      "side"
      "main";
  }

  #novinky-kalendar .news-section__side{
    grid-area: side;
  }

  #novinky-kalendar .news-section__main{
    grid-area: main;
  }

/*
  .news-section__mobile-header{
    display: block;
    margin-bottom: 12px;
  }
*/
  .news-tabs{
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding-top: 2em;
  }

  .news-tabs ul{
    gap: 10px 18px;
  }

  .news-tabs__ua{
    justify-self: start;
    text-align: left;
  }

  .news-card--secondary,
  .news-secondary{
    flex: 1 1 calc(50% - 4px); /* 2 sloupce */
  }

  .news-footer__actions{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .news-footer__actions > a:first-child,
  .news-footer__actions > a:last-child{
    grid-column: auto;
  }

  .news-footer__links .news-footer__mobile-more{
    display: inline-flex;
    margin-bottom: 18px;
  }

  .today-events__head, .today-events__links{
    padding-right: 0px;
  }

}

@media (max-width: 650px){

  .news-card--secondary,
  .news-secondary{
    flex: 1 1 100%; /* 1 sloupec */
  }

  .news-footer__actions{
    grid-template-columns: 1fr;
  }

}




/* =====================================================    PŘIPRAVOVANÉ PROJEKTY V LITOMYŠLI    ===================================================== */


#wip { /* zkontrolovat vůči ostatním rozbalovacím sekcím*/
  font-size:22px;
  display: block;
  font-weight: bold;
  fotrips-mapnt-size: 24px;
  width: 500px;
  text-align: center;
  margin-left:calc(35% - 250px);
  margin-top: -68px;
  line-height: 65px;
  height: 61px;
  background-color: white;
  box-shadow: 1px 1px 7px 0px rgb(0 0 0 / 35%);
}

.wip-section{
  position: relative;
  min-height: 60px;
  margin: 0;
  padding: 0;
  background: #fff;
  overflow: visible;
  --wip-split: 70%;
}

/* pravá červená část */
.wip-section::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--wip-split);
  right: 0;
  background: var(--color-primary);
  z-index: 0;
}

/* dělítko pod toggle */
.wip-section::before{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 58px;
  height: 19px;
  z-index: 1;

  background:
    linear-gradient(
      to top,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.08) 30%,
      rgba(0,0,0,0.03) 55%,
      rgba(255,255,255,0.6) 80%,
      rgba(255,255,255,0.9) 100%
    ) left / var(--wip-split) 100% no-repeat,

    linear-gradient(
      to top,
      rgba(120,0,10,0.45) 0%,
      rgba(150,0,12,0.18) 35%,
      rgba(194,1,22,0) 100%
    ) right / calc(100% - var(--wip-split)) 100% no-repeat,

    linear-gradient(
      to right,
      var(--color-primary),
      var(--color-primary)
    ) right / calc(100% - var(--wip-split)) 100% no-repeat;
}

.wip-section .l-container{
  position: relative;
  z-index: 2;
  padding-top: 0;
  padding-bottom: 0;
}

/* =====================================================
   TOGGLE
   ===================================================== */

.wip-section__toggle{
  position: relative;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  width: fit-content;
  min-height: 40px;
  margin: 0 auto;
  padding: 0 18px;

  transform: translateY(15px);

  background: #fff;
  color: inherit;
  box-shadow: 0 2px 10px rgba(0,0,0,.15);

  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.wip-section__toggle img{
  display: inline-block;
  width: 18px;
  height: auto;
  flex: 0 0 auto;
  transition: transform .25s ease;
}

.wip-section.is-open .wip-section__toggle img{
  transform: rotate(180deg);
}

/* =====================================================
   OBSAH SEKCE
   ===================================================== */

.wip-section__content{
  position: relative;
  z-index: 2;

  margin-top: 16px;
  padding:
    56px
    calc(var(--rail-safe-right) + var(--split-main-pad-r))
    var(--split-pad-y)
    var(--split-main-pad-l);

  box-sizing: border-box;
  background: #fff;
}

.wip-section__content.is-collapsed{
  display: none;
}

/* otevřený stav */
.wip-section.is-open::after{
  display: none;
}

.wip-section.is-open::before{
  background: #fff;
}

/* =====================================================
   OBSAH NAČTENÝ AJAXEM
   ===================================================== */

.wip-slider{
  position: relative;
  width: 100%;
  padding: 0 72px;
}

.projects-arrow-link-left,
.projects-arrow-link-right{
  position: absolute;
  top: 50%;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  background: transparent;
  text-decoration: none;
  transform: translateY(-50%);
}

.projects-arrow-link-left{
  left: 15px;
}

.projects-arrow-link-right{
  right: 15px;
}

.arrow-left{
  transform: rotate(180deg);
}

.col-md-js{
  display: flex;
  flex: 0 0 calc((100% - 40px) / 4);
  max-width: calc((100% - 40px) / 4);
  min-width: 0;
  margin: 5px;
}

.col-md-js .project-text{
    padding:5%;
    padding-bottom:0
}

.col-md-js .project-text h3{
  font-size: clamp(1em, 1.2vw, 1.2em);
  color: var(--color-white);
}

.col-md-js .project-text p{
  font-size: 0.8em;
  color: var(--color-white);
  margin-bottom: 1em;
}

/* pevná výška pro horní část */
.upper-part{
    height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Zarovná obsah odshora dolů */
    background: var(--project-bg, var(--color-lightdark));
    transition: background-color .25s ease;
}

/* projekty města */
.upper-part.is-city{
  --project-bg: var(--color-primary);
}

/* ostatní investoři */
.upper-part.is-other{
  --project-bg: var(--color-lightdark);
}


/* Pevná výška pro dolní část */
.lower-part {
    height: 200px; /* Stejná výška pro všechny */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5%;
    font-size: 0.9em;
}

.lower-part ul{
    list-style: none;
    margin-left: -2em;
}

.upper-part, .lower-part {
    overflow: hidden;
}

/* stav */
.state p{
    background: white;
    border-radius:100px;
    color:black;
    float:left;
    padding: 6px 15px;
    margin-left: 10px;
}
.state{
    margin-left:5px;
    margin-top: 10px;
    position:absolute
}
.state p strong{
    color:var(--color-primary);
}

/* Fixní výška pro obrázek v upper-part */
.project-img {
    flex: 0 0 150px; /* Fixní výška */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #f1f1f1;
    margin-top: 5px;
}

/* Obrázek uvnitř bude 100% výšky kontejneru a přizpůsobí se šířce */
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* Nastavení pevné výšky pro hlavní obálku projektu */
.projects-div {
    height: 800px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.projects-div:hover{
  opacity: 1;
  transform: translateY(-2px);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.projects-div:focus-visible{
  outline: 3px solid rgba(194,1,22,.35);
  outline-offset: 3px;
}

.projects-div,
.project-shadow{
  width: 100%;
  height: 100%;
}

.project-shadow{
  display: flex;
  flex-direction: column;
  box-shadow: 0px 3px 8px 0px rgba(0,0,0,0.25);
}

.upper-part{
  flex: 1 1 auto;
}



/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 1100px){

  .wip-section{
    position: relative;
    z-index: auto;
    min-height: 0;
    padding-top: 38px;
    background: var(--color-primary);
    overflow: visible;
  }

  .wip-section::after{
    display: none;
  }

  .wip-section::before{
    top: 57px !important;
    left: 0;
    right: 0;
    height: 19px;

    background: linear-gradient(
      to top,
      rgba(120,0,10,0.45) 0%,
      rgba(150,0,12,0.18) 35%,
      rgba(194,1,22,0) 100%
    ) !important;
  }

  .wip-section .l-container{
    padding-top: 0;
    padding-bottom: 0;
    background: transparent;
  }

  .wip-section__toggle{
    position: relative;
    top: 0;
    z-index: 3;

    transform: none !important;
    margin: 0 auto !important;
  }

  .wip-section__content{
    margin-top: 16px;
    padding:
      40px
      var(--split-pad-x)
      var(--split-pad-y)
      var(--split-pad-x);

    background: #fff;
  }

  .wip-section.is-open{
    background: #fff;
  }

  .wip-section.is-open::before{
    background: #fff !important;
  }

}

@media (max-width: 950px){

  .wip-section{
    display: none;
  }

  #na-cem-pracujeme .wip-section__toggle {
    display: none;
  }

  #mb-na-cem-pracujeme {
    position: relative;
    z-index: 10;
  }

  .wip-section.is-open{
    display: block;
    margin-top: -20px;
    background: transparent !important;
  }

  .wip-section__toggle{
    display: none;
  }

  .wip-section::before,
  .wip-section::after{
    display: none;
  }

  .wip-section .l-container{
    padding: 0;
    background: transparent;
  }

  .wip-section__content{
    margin-top: 0;
    padding:
      20px
      var(--split-pad-x)
      var(--split-pad-y)
      var(--split-pad-x);

    background: transparent !important;
  }

    .col-md-js {
        flex: 1 1 calc(50% - 20px);
        max-width: calc(50% - 20px);
    }

  .projects-arrow-link-left,
  .projects-arrow-link-right{
    width: 36px;
    height: 36px;
  }

  .projects-arrow-link-left{
    left: -8px;
  }

  .projects-arrow-link-right{
    right: 20px;
  }

}


@media screen and (max-width: 850px) {
    .col-md-js {
        flex: 1 1 100%;
        max-width: 100%;
    }

}





/* =====================================================
   SLUŽBY – sekce
   ===================================================== */

.services-section__main,
.services-section__side{
  min-width: 0;
}

.services-section__head{
  margin-bottom: clamp(24px, 4vw, 48px);
}

.services-section__subtitle{
  margin: 0;
}

/* =====================================================
   Pravý sloupec
   ===================================================== */

.services-section__side{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.services-section__side > .but{
  margin: 0 !important;
  box-sizing: border-box;
}

/* =====================================================
   Tlačítka s levou ikonou
   ===================================================== */

.but--icon-left{
  position: relative;
  display: block;
  padding: 14px 24px 14px 64px !important;
  text-decoration: none !important;
  background-image: none !important;
}

.but--icon-left strong{
  display: block;
  font-weight: 600;
}

.but--icon-left::before{
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  background-color: #c40010;
  pointer-events: none;

  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;

  transition: background-color 0.15s ease;
}

.but--icon-left:hover::before,
.but--icon-left:focus-visible::before{
  background-color: #fff;
}

.but--icon-left:focus-visible,
.but--brand-mil:focus-visible{
  outline: 3px solid #c40010;
  outline-offset: 3px;
}

.but--icon-report::before{
  -webkit-mask-image: url('/program_files/img/img-system/services/wrench-double.png');
  mask-image: url('/program_files/img/img-system/services/wrench-double.png');
}

.but--icon-food::before{
  -webkit-mask-image: url('/program_files/img/img-system/services/but-ico-fork.png');
  mask-image: url('/program_files/img/img-system/services/but-ico-fork.png');
}

.but--icon-emergency::before{
  -webkit-mask-image: url('/program_files/img/img-system/services/emergency.png');
  mask-image: url('/program_files/img/img-system/services/emergency.png');
}

.but--icon-bed::before{
  -webkit-mask-image: url('/program_files/img/img-system/services/but-ico-bed.png');
  mask-image: url('/program_files/img/img-system/services/but-ico-bed.png');
}

.services-button--double{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  gap: 2px;
}

.services-button--double span{
  display: block;
  font-size: 0.85em;
  line-height: 1.1;
  margin-top: 2px;
}

/* =====================================================
   Brand button – Made in Litomyšl
   ===================================================== */

.but--brand-mil{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
  margin-top: 32px;
  text-decoration: none !important;

  background: url('/program_files/img/img-system/services/made-in-litomysl-red.svg') no-repeat center;
  background-size: 50%;
}

.but--brand-mil:hover{
  background-image: url('/program_files/img/img-system/services/made-in-litomysl-white.svg');
}

/* =====================================================
   Ikonové karty služeb
   ===================================================== */

.services-grid{
  display: flex;
  gap: clamp(20px, 3vw, 50px);
  align-items: flex-start;
  width: 100%;
  margin: 40px 0;
  overflow: visible;
}

.services-grid__group{
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2.2vw, 26px);
  justify-items: center;
}

.services-grid__group > a,
.services-grid__group > div{
  width: 100%;
  max-width: 160px;
  min-width: 0;
  box-sizing: border-box;
}

.services-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  text-align: center;
  text-decoration: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.services-card span{
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  min-height: 2.4em;
  margin: 0;
  line-height: 1.2;
  text-align: center;
}

/* =====================================================
   Tooltip
   ===================================================== */

.services-tooltip{
  position: relative;
}

.services-tooltip__content{
  display: none;
  position: absolute;
  top: 50px;
  left: 50%;
  width: 250px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.1);
  z-index: 10;
}

.services-tooltip:hover .services-tooltip__content{
  display: block;
}

.services-tooltip__pad{
  padding: 15px;
}

/* =====================================================
   Blok životních situací
   ===================================================== */

.services-life-block{
  width: 100%;
}

.services-life{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.services-life ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-life li{
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
  list-style: none;
}

.services-life li::before{
  content: "›";
  position: absolute;
  left: 0;
  top: 0;
  color: #c40010;
  font-weight: 600;
  transition: transform 0.15s ease;
}

.services-life li:hover::before{
  transform: translateX(3px);
}

.services-life a{
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: all 0.15s ease;
}

.services-life a:hover{
  color: #c40010;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services-life a:focus-visible{
  outline: 2px solid #c40010;
  outline-offset: 2px;
  text-decoration: underline;
}

/* =====================================================
   Pravý seznam odkazů
   ===================================================== */

.services-links ul{
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-links li{
  margin: 10px 0;
  list-style: none;
}

.services-links a{
  text-decoration: none;
}

.services-links a:hover{
  color: #c40010;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.services-links a:focus-visible{
  outline: 2px solid #c40010;
  outline-offset: 2px;
  text-decoration: underline;
}

/* =====================================================
   Responsivita
   ===================================================== */

@media (max-width: 950px){
  .services-grid{
    flex-wrap: wrap;
  }

  .services-life{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 750px){
  .services-grid__group{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 650px){
  .services-section__head{
    grid-template-columns: 1fr;
  }
}


/* =====================================================   MĚSTSKÝ ÚŘAD    ===================================================== */

#mestsky-urad.office-section{
  position: relative;
  background: transparent;
}

/* LEVÁ část */
.office-section__main{
  background: #fff;
  color: var(--color-dark);
}

.office-section__main a{
  color: var(--color-dark);
}

.office-section__main a:hover{
  color: var(--color-primary);
}

.office-section__main h3{
  color: var(--color-primary) !important;
}

/* PRAVÁ část */
.office-section__side{
  background: var(--color-primary);
  color: #fff;
}

/* dekorativní lilie */
.office-section__lilly{
  position: absolute;
  left: -20px;
  top: 15rem;
  width: 18%;
  height: auto;
  pointer-events: none;
  z-index: 10;
}

.office-section__split,
.office-section__main,
.office-section__side{
  position: relative;
  z-index: 1;
  min-width: 0;
}

#mestsky-urad .section-heading {
  font-size: 2.8em !important;
}

/* =====================================================
   LEVÁ ČÁST
   ===================================================== */

.office-section__main{
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3fr);
  gap: 24px;
  align-items: start;
}

.office-title{
  min-width: 0;
}

.office-content{
  min-width: 0;
}

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

.office-links{
  min-width: 0;
  margin-bottom: 7vh;
}

.office-links nav{
  margin-bottom: 3vh;
  text-align: left;
}

.office-links ul{
  margin: 0;
  padding: 0;
  list-style: none;
}

.office-links li,
.office-links h3{
  padding-left: 0;
  text-align: left;
}

.office-links h3{
  margin-top: 0;
  margin-bottom: 5px;
  color: #fff;
  font-size: 1.3em;
}

.office-links li{
  margin: 0px;
  list-style: none;
}

.office-links a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.office-links a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
  text-decoration: underline;
}

/* jeden blok = ikona + obsah */
.office-block{
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
}

.office-block img{
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.office-block > div[aria-hidden="true"]{
  width: 48px;
  min-height: 48px;
}

/* upozornění */
.office-alert{
  margin-bottom: 24px;
  padding: 1em;
  background-color: #a80012;
  color: #fff;
}

.office-alert h3,
.office-alert p,
.office-alert a,
.office-alert li{
  color: #fff;
}

.office-alert a{
  text-decoration: underline;
}

/* =====================================================
   PRAVÁ ČÁST
   ===================================================== */

.office-section__side{
  min-width: 0;
}

.office-section__side h3{
  margin-top: 0;
  margin-bottom: 1em;
  color: #fff;
}

.office-section__side p{
  color: #fff;
}

.office-section__side p a{
  color: #fff;
}

.office-section__side p a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.office-section__side p a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
}


.office-section__side table{
  width: 100%;
  margin-bottom: 10px;
  border-collapse: collapse;
}

.office-section__side td,
.office-section__side th{
  padding: 5px 10px;
}

.office-section__side th{
  padding-right: 10px;
}

.office-section__side .c-button + h3{
  margin-top: 2em;
}


/* =====================================================
   OTEVÍRACÍ DOBY – červený widget
   ===================================================== */

.od-theme-red{
  --od-bg: transparent;
  --od-text: #fff;
  --od-muted: rgba(255,255,255,.75);
  --od-hr: rgba(255,255,255,.15);
  --od-accent: #ffffff;
  --od-accent-weak: rgba(255,255,255,.25);
  --od-accent-strong: rgba(255,255,255,.9);
  --od-pill-bg: rgba(255,255,255,.12);
  --od-pill-active: #fff;
  --od-pill-active-text: #b60000;
  --od-focus: #ffe082;
}

/* základ */
.office-section__side .od-widget,
.office-section__side .od-row,
.office-section__side .od-selectwrap,
.office-section__side #oteviraci-vystup{
  min-width: 0;
  max-width: 100%;
}

.od-widget{
  color: var(--od-text);
}

.od-row{
  display: flex;
  align-items: center;
  gap: .6rem;
  margin: .6rem 0;
}

.od-label{
  font-weight: 600;
}

/* =====================================================
   SELECT
   ===================================================== */

.od-selectwrap{
  position: relative;
  display: block;
  inline-size: clamp(220px, 100%, 340px);
  max-inline-size: 100%;
  min-inline-size: 0;
  box-sizing: border-box;
  flex: 0 1 auto;
}

.od-selectwrap.is-enhanced > select{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

.od-cs-toggle{
  appearance: none;
  width: 100%;
  max-width: 100%;
  inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;

  padding: .55rem 2.2rem .55rem .8rem;
  border: 1px solid var(--od-accent-weak);
  border-radius: .55rem;
  background: var(--od-pill-bg);
  color: var(--od-text);

  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  text-align: left;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  cursor: pointer;
  outline: none;

  background-image:
    linear-gradient(45deg, transparent 50%, var(--od-text) 50%),
    linear-gradient(135deg, var(--od-text) 50%, transparent 50%);
  background-position: right .8rem center, right .5rem center;
  background-size: .5rem .5rem;
  background-repeat: no-repeat;
}

.od-cs-toggle:hover{
  border-color: var(--od-accent);
}

.od-cs-toggle[aria-expanded="true"],
.od-cs-toggle:focus-visible{
  border-color: var(--od-accent);
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.14), 0 0 0 .3rem rgba(255,255,255,.28);
}

.od-cs-list{
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;

  width: auto;
  min-width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  margin-top: .35rem;
  padding: .25rem;

  background: #b60000;
  border: 1px solid var(--od-accent-weak);
  border-radius: .55rem;

  max-height: 260px;
  overflow: auto;
}

.od-cs-list li{
  position: relative;
  padding: .5rem .6rem .5rem 1.7rem;
  border-radius: .4rem;
  cursor: pointer;
  color: var(--od-text);

  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
  hyphens: auto !important;
}

.od-cs-list li[aria-selected="true"]::before{
  content: "✓";
  position: absolute;
  left: .6rem;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 800;
  opacity: .95;
}

.od-cs-list li:hover,
.od-cs-list li.is-active{
  background: var(--od-accent-strong);
  color: #b60000;
}

.od-cs-list li.sep{
  padding: .25rem .6rem;
  opacity: .6;
  cursor: default;
}

.od-cs-list li.sep::before{
  content: none;
}

/* =====================================================
   PŘEPÍNAČ AKTUÁLNÍ / OBECNÁ
   ===================================================== */

.od-mode{
  display: flex;
  gap: .4rem;
  margin: .4rem 0 1rem;
  flex-wrap: wrap;
}

.od-toggle{
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: .35rem .6rem;
  border: 1px solid var(--od-accent-weak);
  border-radius: 999px;
  background: var(--od-pill-bg);
  color: var(--od-text);
  cursor: pointer;
  user-select: none;
  transition: background .15s, color .15s, border-color .15s;
}

.od-toggle input{
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.od-toggle span{
  font-weight: 600;
  letter-spacing: .2px;
}

.od-toggle input:checked + span,
.od-toggle:has(input:checked){
  background: var(--od-pill-active);
  color: var(--od-pill-active-text);
  border-color: var(--od-pill-active);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  padding: .35rem .7rem;
  border-radius: 999px;
}

.od-toggle input:focus-visible + span,
.od-toggle:has(input:focus-visible){
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(255,255,255,.18), 0 0 0 .3rem var(--od-focus);
  border-color: var(--od-accent);
}

#odModeWrap[hidden]{
  display: none !important;
}

/* =====================================================
   STAV OTEVŘENO / ZAVŘENO
   ===================================================== */

.oteviraci-stav{
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  width: 316px;
  max-width: 92% !important;
  margin: .2rem 0 1rem;
  padding: .5rem .7rem;
  border: 1px solid var(--od-accent-weak);
  border-radius: .6rem;
  background: var(--od-pill-bg);
  font-weight: 600;
}

.oteviraci-stav::before{
  content: "";
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: .15em;
  border-radius: 50%;
  background: #35ff6b;
  box-shadow: 0 0 0 .15rem rgba(53,255,107,.25);
}

.oteviraci-stav.is-closed::before{
  background: #ff6b6b;
  box-shadow: 0 0 0 .15rem rgba(255,107,107,.25);
}

/* =====================================================
   VÝSTUP WIDGETU
   ===================================================== */

#oteviraci-vystup{
  min-width: 0;
  max-width: 100%;
  white-space: normal !important;
}

#oteviraci-vystup .oteviraci-info,
#oteviraci-vystup p{
  display: block;
  width: 340px;
  max-width: 100% !important;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.od-grid{
  max-width: 340px;
}

.od-card{
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  padding: .55rem .7rem;
  border: 1px solid var(--od-accent-weak);
  border-radius: .6rem;
  background: rgba(255,255,255,.06);
}

.od-card .col-day{
  flex: 0 0 120px;
  min-width: 0;
}

.od-card .col-day .od-day{
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.od-card .col-times{
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.od-card .col-times .line{
  white-space: nowrap;
}

.od-card.is-closed .col-times{
  align-items: flex-start;
  text-align: left;
}

.od-card.is-closed .col-times .line.closed{
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =====================================================
   RESPONSIVITA
   ===================================================== */

@media (max-width: 950px){
  .office-section__main{
    grid-template-columns: 1fr;
  }

  .office-title{
    grid-column: 1 / -1;
  }

  .office-section__lilly{
    display: none;
  }
}

@media (max-width: 700px){
  .office-columns{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px){
  .office-block{
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
  }

  .office-block img,
  .office-block > div[aria-hidden="true"]{
    width: 40px;
    min-height: 40px;
    height: 40px;
  }

  .oteviraci-stav{
    width: 100%;
    max-width: 100% !important;
  }

  #oteviraci-vystup .oteviraci-info,
  #oteviraci-vystup p,
  .od-grid{
    width: 100%;
    max-width: 100%;
  }

  .od-card{
    flex-direction: column;
  }

  .od-card .col-day{
    flex: 0 0 auto;
  }

  .od-card .col-times{
    align-items: flex-start;
    text-align: left;
  }
}



/* =====================================================
   LIDÉ
   ===================================================== */

#lide.people-section{
  position: relative;
}

.people-section__split,
.people-section__main,
.people-section__side{
  min-width: 0;
}

.people-section__main{
  color: var(--color-dark);
}

.people-section__side{
  min-width: 0;
}

/* základní typografie */
#lide.people-section h2{
  margin-bottom: 5vh;
}

#lide.people-section h3{
  font-size: 1.1em;
  font-weight: 700;
}

.people-big{ width: 30%; }
.people-mid{ width: 20%; }
.people-small{ width: 12%; }

.people-mid h3{
  width: 100%;
  text-align: center;
}

.people-small h3{
  float: left;
  clear: none;
  width: 60%;
}

.more-answers{
  float: right;
  margin-bottom: 5px;
  color: var(--color-primary);
  font-weight: 700;
}

/* =====================================================
   HERO
   ===================================================== */

.people-hero{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  overflow: visible;
  margin-bottom: 24px;
  padding-top: 24px;
}

.people-hero > *{
  min-width: 0;
}

.people-title h2{
  margin: 0;
}

.people-leaders{
  display: grid;
  gap: 0;
  justify-items: center;
}

.people-leader{
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  justify-items: center;
  text-align: center;
}

.people-leader h3{
  display: block;
}

.people-leader img{
  display: block;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
}

.people-leader--major img{
  width: clamp(140px, 18vw, 180px) !important;
}

.people-leader--wisemajor img{
  width: clamp(120px, 14vw, 160px) !important;
}

/* tooltip leader */
.people-leader .person-tooltip{
  display: none;
  position: absolute;
  top: 65%;
  left: 85%;
  z-index: 20;
  width: max-content;
  max-width: min(320px, 90vw);
  transform: translateX(-20%);
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: .35rem;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  text-align: left;
}

.people-leader:hover .person-tooltip,
.people-leader:focus-within .person-tooltip{
  display: block;
}

.people-leader .person-tooltip p{
  margin: 0;
}

.people-leader > div::after{
  display: none;
}

/* =====================================================
   STAROSTOVA ODPOVĚDNA
   ===================================================== */

.people-bubble{
  justify-self: end;
  min-width: 0;
  max-width: 560px;
  margin: 0;
  padding: 25px;
  overflow: visible;
  background-color: #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,.1), 0 1px 3px rgba(0,0,0,.1);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.people-bubble h3{
  margin-bottom: 15px;
  font-size: 1.2em;
  color: var(--color-primary);
}

.people-bubble h4,
.people-bubble h4 span{
  font-size: 0.9em;
  font-weight: 700 !important;
}

.people-bubble h4{
  margin-bottom: 0;
}

.people-bubble p{
  font-size: 0.8em;
}

.people-bubble article{
  margin-bottom: 10px;
}

/* =====================================================
   SEPARÁTORY
   ===================================================== */

.people-sep{
  display: flex;
  justify-content: center;
  margin: 18px 0;
}

.people-sep::before{
  content: "";
  width: 5px;
  height: 3em;
  border-radius: 2px;
  background-color: var(--color-primary);
}

.people-sep--cta{
  display: flex;
  flex-direction: column;
  align-items: center;
}

.people-sep--cta .c-button{
  margin: 15px auto 30px;
}

/* =====================================================
   HLAVNÍ GRID SEKCE
   ===================================================== */

.people-maingrid{
  display: grid;
  gap: 24px;
}

.people-section-block{
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 0;
  align-items: start;
}

.people-section-block > *{
  min-width: 0;
}

.people-left,
.people-right{
  min-width: 0;
}

.people-left{
  width: 100%;
}

.people-right{
  padding-left: 1em;
}

.people-right h3{
  width: 100%;
  text-align: left;
}

.people-links{
  margin-top: 40px;
  text-align: left;
}

.people-links h3,
.people-links li{
  padding-left: 0;
  text-align: left;
}

.people-right.people-links ul{
  margin:0;
  padding:0;
  list-style:none;
}

.people-right.people-links li{
  margin:8px 0;
  padding:0;
  list-style:none;
}

.people-right.people-links li::marker{
  content:"";
}

.people-links a{
  color: var(--color-dark);
  text-decoration: none;
}

.people-links a:hover{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-links a:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  text-decoration: underline;
}

/* =====================================================
   ŘÁDKY A KRUHY OSOB
   ===================================================== */

.people-row{
  --gap: 5px;
  display: flex;
  justify-content: center;
  gap: var(--gap);
  margin: 0 auto 0;
}

.people-circles{
  position: relative;
  float: none;
  overflow: visible;
}

.people-circles img{
  max-width: 100%;
  z-index: 1;
  border-radius: 200px;
  transition: filter .18s ease, transform .18s ease;
}

.people-circles .person-avatar{
  display: inline-block;
  border-radius: 50%;
  outline: none;
}

.people-circles .person-avatar:focus-visible img{
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 50%;
}

.people-circles .person-avatar:hover img,
.people-circles .person-avatar:focus-visible img,
.people-circles:focus-within .person-avatar img{
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
  border-radius: 50%;
  filter: contrast(1.1) brightness(1.05);
  transform: scale(1.03);
}

/* pojistka proti globálním hover efektům */
.person-avatar:hover,
.person-avatar:focus,
.person-avatar:focus-visible{
  opacity: 1 !important;
}

/* tooltipy u kruhů */
.people-circles .person-tooltip{
  display: none;
  position: absolute;
  top: calc(100% + 0px);
  left: 50%;
  z-index: 50;

  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: .6rem .8rem .8rem;

  border: 1px solid #ddd;
  border-radius: .35rem;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 22px rgba(0,0,0,.15);

  text-align: left;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.people-circles:hover .person-tooltip,
.people-circles:focus-within .person-tooltip{
  display: block;
}

.people-circles .person-tooltip p{
  margin: 0;
}

/* první 2 prvky v řádku – tooltip otevírat doprava */
.people-row > .people-circles:first-child .person-tooltip,
.people-row > .people-circles:nth-child(2) .person-tooltip{
  left: 0;
  transform: none;
}

/* poslední 2 prvky v řádku – tooltip otevírat doleva */
.people-row > .people-circles:last-child .person-tooltip,
.people-row > .people-circles:nth-last-child(2) .person-tooltip{
  left: auto;
  right: 0;
  transform: none;
}

/* =====================================================
   PRAVÝ SLOUPEC – MĚSTSKÝ ÚŘAD / TAJEMNÍK
   ===================================================== */

.people-section__side h3{
  margin-top: 0;
  margin-bottom: 15px;
}

.people-office,
.people-office *{
  box-sizing: border-box;
}

.people-office{
  --tl: 28px;
  --gap: 10px;
  --line: 3px;
  --dot: 10px;

  margin: 30px 0;
  margin-left: -6px;
}

.people-office__content{
  position: relative;
  display: grid;
  grid-template-columns: var(--tl) 1fr;
  column-gap: var(--gap);
  min-width: 0;
}

/* svislá čára */
.people-office__content::before{
  content: "";
  position: absolute;
  top: 78px;
  bottom: 0;
  left: calc(var(--tl) / 2);
  z-index: 1;
  width: var(--line);
  background: var(--color-primary);
  transform: translateX(-50%);
}

.people-office__head{
  display: contents;
}

.people-office__head-timeline{
  position: relative;
  z-index: 3;
  grid-column: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.people-office__head-content{
  grid-column: 2;
  min-width: 0;
}

.people-office__avatar{
  position: relative;
  overflow: visible;
  transform: none !important;
}

.people-office__avatar img{
  display: block !important;
  width: 60px !important;
  height: 60px !important;
  max-width: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.people-office__title{
  margin: 0;
  margin-top: 14px;
  padding-left: 14px;
  text-align: left;
}

/* tooltip tajemník */
.people-office__avatar .person-tooltip{
  display: none;
  position: absolute;
  top: 80%;
  left: 80%;
  z-index: 60;
  width: max-content;
  max-width: min(320px, 90vw);
  padding: .6rem .8rem;
  border: 1px solid #ddd;
  border-radius: .35rem;
  background: rgba(255,255,255,.98);
  box-shadow: 0 8px 22px rgba(0,0,0,.15);
  text-align: left;
}

.people-office__avatar:hover .person-tooltip,
.people-office__avatar:focus-within .person-tooltip{
  display: block;
}

.people-office__links{
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.people-office__links li{
  display: grid;
  grid-template-columns: var(--tl) 1fr;
  column-gap: var(--gap);
  align-items: center;
  margin: 0;
  padding: 10px 0;
}

.people-office__links li::before{
  content: "";
  position: relative;
  z-index: 2;
  grid-column: 1;
  justify-self: center;
  width: var(--dot);
  height: var(--dot);
  border-radius: 50%;
  background: var(--color-primary);
}

.people-office__links a{
  grid-column: 2;
  display: block;
  min-width: 0;
  color: var(--color-dark);
  text-decoration: none;
  opacity: 1 !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  hyphens: none !important;
}

.people-office__links a:hover{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.people-office__links a:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  text-decoration: underline;
}


/* =====================================================
   RESPONSIVITA
   ===================================================== */

@media (max-width: 1250px){
  .people-right{
    width: 100% !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .people-right h3{
    width: 100%;
    text-align: center;
  }

  .people-right ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
    padding-left: 0;
    text-align: center;
  }

  .people-leader .person-tooltip{
    left: auto;
    right: 0;
    transform: translateX(-10px);
  }
}

@media (max-width: 950px){

  .people-leader--major img{
    width: clamp(250px, 50vw, 300px) !important;
  }

  .people-leader--wisemajor img{
    width: clamp(200px, 38vw, 250px) !important;
  }

  .people-leader{
    margin-bottom: 20px;
  }

  .people-leaders{
    gap: 16px;
  }

  .people-hero{
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .people-title,
  .people-leaders,
  .people-bubble{
    grid-column: 1 / -1;
  }

  .people-leaders{
    width: 100%;
    justify-items: center;
  }

  .people-bubble{
    width: 100%;
    max-width: 100%;
    justify-self: stretch;
    padding: 25px;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
  }


  .people-row{
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: clamp(4px, 1vw, 10px);
    width: 100%;
    margin: 0 auto;
  }

  .people-row--3 > .people-circles{
    flex: 0 1 30%;
  }

  .people-row--4 > .people-circles{
    flex: 0 1 22%;
  }

  .people-row--7 > .people-circles{
    flex: 0 1 13%;
  }

  .people-row--8 > .people-circles{
    flex: 0 1 11.5%;
  }

  .people-circles{
    min-width: 0;
  }

  .people-circles.people-mid,
  .people-circles.people-small{
    width: auto;
  }

  .people-circles img{
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .people-section-block{
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .people-left{
    width: 100%;
  }

  .people-right{
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    text-align: center;
  }

  .people-right h3{
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
  }

  .people-right ul{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding-left: 0;
    text-align: center;
  }

  .people-right li,
  .people-links h3,
  .people-links li{
    text-align: center;
  }

  .people-sep,
  .people-sep--cta{
    display: none;
  }

  .people-office{
    --tl: 32px;
    margin-left: 6px;
  }

  .people-office__content{
    padding-left: 6px;
  }

  .people-office__content::before{
    left: calc(var(--tl) / 2 + 6px);
  }

}



/* =====================================================
   VZDĚLÁVÁNÍ
   ===================================================== */

#vzdelavani.education-section{
  position: relative;
}

.education-section__split,
.education-section__main{
  min-width: 0;
}

.education-section__main{
  color: var(--color-dark);
}


/* =====================================================
   NADPIS
   ===================================================== */

#vzdelavani.education-section h2{
  margin-bottom: 30px;
}

/* =====================================================
   HLAVNÍ 4 BLOKY
   ===================================================== */

.education-grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:24px;
  align-items:start;
  margin-bottom:36px;
}

.education-card{
  display:block;
  overflow:hidden;

  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  border-top:6px solid var(--color-primary);
  border-radius:0;
  box-shadow:0 14px 32px rgba(0,0,0,.06);

  text-align:left;
  transition:transform .18s ease, box-shadow .18s ease;
}

.education-card:hover{
  transform:translateY(-3px);
  box-shadow:0 20px 40px rgba(0,0,0,.09);
}

.education-card__head{
  padding:20px 20px 14px;
  background:linear-gradient(180deg, rgba(194,1,22,.045), transparent);
}

.education-card__head h2,
.education-card h2{
  margin:0;
  color:var(--color-primary);
  font-size:1.35rem;
  line-height:1.15;
  font-weight:850;
  letter-spacing:-.03em;
  text-align:center;
}

.education-card ul{
  margin:0;
  padding:0;
  list-style:none;
}

.education-card li{
  margin:0;
  padding:0;
  list-style:none;
  border-top:1px solid rgba(0,0,0,.04);
}

.education-card li a,
.education-card li:not(:has(a)){
  display:block;
  padding:14px 28px;

  color:var(--color-dark);
  text-decoration:none;
  line-height:1.35;
  text-align:left;
}

.education-card li a:hover{
  background:rgba(194,1,22,.045);
  color:var(--color-primary);
}

.education-card li a:focus-visible{
  outline:3px solid rgba(194,1,22,.25);
  outline-offset:-3px;
  background:rgba(194,1,22,.06);
}



@media (max-width:1200px){
  .education-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px){
  .education-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .education-card__head{
    padding:18px 18px 12px;
  }

  .education-card li a,
  .education-card li:not(:has(a)){
    padding:13px 18px;
  }
}

/* =====================================================
   OSTATNÍ ORGANIZACE
   ===================================================== */

.education-other{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: start;
  margin-top: 40px;
  margin-bottom: 40px;
}

.education-other__col{
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.education-other__item{
  display: flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.education-other__item:hover{
  transform: translateX(4px);
}

.education-other__item:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.education-other__item img{
  width: 48px;
  height: auto;
  flex: 0 0 48px;
}

.education-other__item span{
  font-size: 0.95em;
  line-height: 1.3em;
}

.education-other__item:hover span{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================================
   FOOTER
   ===================================================== */

.education-footer{
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 24px;
  margin-top: 40px;
  margin-bottom: 30px;
  padding-top: 30px;
  border-top: 5px solid #eaeaea;
}

.education-footer__col{
  min-width: 0;
}

.education-footer h3{
  font-size: 21px;
  text-align: left;
}

.education-footer ul{
  margin: 0;
  padding-left: 20px;
  list-style-position: outside;
}

.education-footer li{
  margin: 8px 0;
  padding-left: 4px;
}

.education-footer a{
  color: var(--color-dark);
  text-decoration: none;
}

.education-footer a:hover{
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.education-footer a:focus-visible{
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  text-decoration: underline;
}


/* =====================================================
   PRAVÝ PANEL
   ===================================================== */

.education-sidehead h3{
  margin: 0;
  color: #fff;
}

.education-sidehead{
  display: flex;
  align-items: center;
  gap: 12px;
}

.education-sidehead__image{
  width: 64px;
  max-width: 64px;
  height: auto;
  margin: 0;
  flex: 0 0 64px;
}

.education-seminars{
  margin-top: 40px;
}

.education-seminars a{
  display: block;
  margin-bottom: 15px;
  padding-left: 20px;
  border-left: 4px solid #fff;
  color: #fff;
  text-decoration: none;
}

.education-seminars a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.education-seminars a:focus-visible{
  outline: 2px solid #fff;
  outline-offset: 2px;
  text-decoration: underline;
}

.education-seminars h4{
  margin-bottom: 0;
  font-size: 1em;
  color: #fff;
}

.education-seminars__more{
  text-decoration: underline !important;
}

/* =====================================================
   RESPONSIVITA
   ===================================================== */

@media (max-width: 1100px){
  .education-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-other{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .education-footer{
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 950px){
  .education-section__split{
    grid-template-columns: 1fr !important;
  }


}

@media (max-width: 650px){
  .education-grid{
    grid-template-columns: 1fr;
  }

  .education-other{
    grid-template-columns: 1fr;
  }

  .education-footer{
    grid-template-columns: 1fr;
  }
}



/*  -----------------------------------Mobil-----------------------------------------------  */



@media screen and (max-width: 1600px) {
    #mestsky-urad h2 {font-size: 2.8em;}
}

@media screen and (max-width: 1500px) {
    #mestsky-urad .section-heading {
      font-size: 2.5em !important;
    }
}
/*
@media screen and (max-width: 1350px) {
    .smetanovo-namesti {top: 68%!important;}
}
*/
@media screen and (max-width: 1300px) {
    #mestsky-urad .section-heading {
      font-size: 2.3em !important;
    }
}

@media screen and (max-width: 1200px) {
    .news-secondary p{font-size:0.8em;}
    .news-secondary h5{font-size:1em;}
    .news-secondary .news-text {bottom:10px;}
}

@media screen and (max-width: 1100px) {
    .news-secondary p {display:none;}
}


@media screen and (max-width: 950px) {

    .office-links h3 {margin-top:0px;}
    .office-links a {font-size:0.8em;}
    .lilly {display:none;}
    #education-footer a {font-size:0.8em;}

    /*#vzdelavani {font-size:0.8em;}*/
    /*#news-tabs{margin-left: 30px;}*/

    #novinky-kalendar{margin-bottom:40px;}

    #trips-map, #sport-list {
        display: none !important;
    }

    .c-home-hero__inner::before{display:none;}
    body:not(.sub-page) .c-home-hero__inner {
        height: 100%;
    }


}
