/*webstyle.css*/


:root {
  --portrait-offset-y: 8px;
}


/* ============================================================================
   GLOBAL — MOBILE FIRST
============================================================================ */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    font-family: "Figtree", sans-serif;
    font-optical-sizing: auto;
    background: #ffffff;
    color: #111;
}
body.page_in {
    background: #e5e5e5;
}



/* INLINE EDIT – přebití Quill defaultů */
.editable-project.editing .ql-editor {
  font-family: inherit !important;
  font-size: 14pt !important;   /* ← nastav stejnou hodnotu jako web */
  line-height: 1.45 !important;
  color: inherit;
  padding: 0;
}

/* odstavce – stejné jako na webu */
.editable-project.editing .ql-editor p {
  margin: 0;
}


/* toolbar fontově neutrální */
.editable-project .ql-toolbar {
  font-family: inherit;
}
.editable-project.editing {
  background: transparent;
}

.inline-quill-editor {
  background: transparent;
}
.project-edit-footer {
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid #ddd;
  padding: 10px 16px;
}

.project-edit-footer .footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-actions {
  display: flex;
  gap: 8px;
}

.footer-status {
  font-size: 13px;
  color: #666;
}

/* stavy */
.footer-status.saving { color: #666; }
.footer-status.saved  { color: #0a8a0a; }
.footer-status.error  { color: #b00; }


/* ============================================================================
   HEADER + FOOTER (mobile)
============================================================================ */
.header {
    height: 45px;
    width: 100%;
    background-color: transparent;
    display: flex;
    align-items: flex-start;
    position: fixed;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    z-index:90;
}

.header .mainTitul {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    pointer-events: none; /* aby neblokoval menu */
    white-space: nowrap;
}

/*
body.page_in .header {
    background: #e5e5e5;
}
*/


body.page_in .header {
    position: relative;
    height: 45px; 
}




.mainTitul{
    text-align: center;
    /*margin-top: 15px;*/
    font-size: 14pt;
}
/* HEADER TITLE FADE */
.mainTitul {
    opacity: 1;
    transition: opacity .15s ease;
}

.mainTitul.fading {
    opacity: 0;
}

.footer {
    height: 45px;
    width: 100%;
    text-align: center;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14pt;
    /*background:white;*/
    position: fixed;
    z-index: 81;
    /*margin-top: -45px;*/
    bottom: 0;
}

@media (max-width: 768px) {
/*
.footer {
    height: 35px;
    }  */
.header {
    height: 35px;
    }
    body.page_in .header {
    height: 35px; 
}
}

/* ============================================================================
   BURGER BUTTON (mobile default)
============================================================================ */
/* === BURGER BUTTON — unified === */
.menu-toggle, .burger-btn {
    left: 18px;
    background: none;
    border: none;
    padding: 4px 10px 0 10px;
    cursor: pointer;
}



/* transform into X */
.menu-open .menu-toggle span:nth-child(1),
.menu-open .burger-btn span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}
.menu-open .menu-toggle span:nth-child(2),
.menu-open .burger-btn span:nth-child(2) {
    opacity: 0;
}
.menu-open .menu-toggle span:nth-child(3),
.menu-open .burger-btn span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}




/* ============================================================================
   SLIDES — MOBILE FIRST
============================================================================ */


      .slide-counter {
          text-align: center;
          font-size: 15px;
          color: #777;
          margin-top: 10px;
      }
      
      
@media (max-width: 768px) {
      .slides-wrapper {
          height: calc(100vh - 0px);
          height: calc(100dvh - 0px);
          overflow-y: scroll;
          scroll-snap-type: y mandatory;
          scroll-behavior: smooth;
          
      }

      .slide:not(.hero) {
          height: calc(100vh - 0px);
          height: calc(100dvh - 0px);
          scroll-snap-align: start;
          position: relative;
          overflow: hidden;
      }

      .slideshow {
          width: 100%;
          height: calc(100vh - 0px);
          height: calc(100dvh - 0px);
          position: relative;
          background: #ffffff;
          display: flex;
          align-items: center;
          justify-content: center;
      }

      .slide.hero{

          height:100dvh;
          scroll-snap-align: start;
          position: relative;
          overflow: hidden;
      }
      .hero{

          margin-top:-35px;
          padding-top:35px;

      }

}

@media (min-width: 768px) {

        .slides-wrapper {
            height: calc(100vh - 0px);
            height: calc(100dvh - 0px);
            overflow-y: scroll;
            scroll-snap-type: y mandatory;
            scroll-behavior: smooth;
            
            
        }
        .slides-wrapper {
          overflow-x: scroll; /* nebo auto */
          scrollbar-width: none;      /* Firefox */
          -ms-overflow-style: none;   /* IE/Edge */
        }

        .slides-wrapper::-webkit-scrollbar {
          display: none;              /* Chrome, Safari */
        }

      .slide:not(.hero) {               /*není hero*/
          height: calc(100vh - 90px);
          height: calc(100dvh - 45px);
          scroll-snap-align: start;
          position: relative;
          /*overflow: hidden;*/
          
      }

      .slideshow {
          width: 100%;
          height: calc(100vh - 0px);
          height: calc(100dvh - 0px);
          position: relative;
          background: #ffffff;
          display: flex;
          align-items: center;
          justify-content: center;

      }
      #projectSlides .slideshow {    /*není hero*/
          width: 100%;
          height: calc(100vh - 0px);
          height: calc(100dvh - 0px);
          position: relative;
          background: #ffffff;
          display: flex;
          align-items: center;
          justify-content: center;
          margin-top: 45px;  
          
      }

        .hero{
            height:100dvh;
            margin-top:0px;
            padding-top:0px;
          scroll-snap-align: start;
          position: relative;
          overflow: hidden;
        }

      /*  #projectSlides{
            height: calc(100vh - 0px);
            height: calc(100dvh - 0px);
            
        }     */



}


/* obrázky – MOBILE DEFAULT: width 100% */
/*
.slideshow img,
#heroSlideshow img.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    margin: auto;
    object-fit: contain;
    background: #fff;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}
*/
/* ================================
   PROJECT SLIDESHOW (picture)
   ================================ */

.slideshow picture.fade-img {
    position: absolute;
    inset: 0;

    opacity: 0;
    transition: opacity 1s ease-in-out;

    pointer-events: none;
    z-index: 1;
}

.slideshow picture.fade-img img {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-width: 100%;
    max-height: calc(100% - 90px);

    width: auto;
    height: auto;

    object-fit: contain;
    background: #fff;
}


.soc {
    float: right;
    margin-top: 14px;
    display: flex;
    gap: 20px;
    flex-direction: column;
}
.soc>div {
    text-align:center;
}

/* ================================
   HERO SLIDESHOW (img only)
   ================================ */
/*
#heroSlideshow img.hero-img {
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    opacity: 0;
    transition: opacity 1s ease-in-out;

    pointer-events: none;
    z-index: 1;
}
*/
#heroSlideshow picture.hero-img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

#heroSlideshow picture.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* nebo contain – dle designu hera */
}

#heroSlideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}


.hero-visible {
    opacity: 1 !important;
    pointer-events: auto !important;
    z-index: 2;
}

/* TITULY SLIDŮ */
.slide-title {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    left: -9999px; /* úplně mimo viewport */
}


/* LOADING */
.loading-placeholder {
    position: absolute;
    inset: 0;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#f0f0f0;
    font-size:20px;
}

/* FADE */
.fade-img {
    transition: opacity 1s ease-in-out;
}

/* ARROWS */
.arrows {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 20;
    display: flex;
    gap: 10px;
}
.arrows button {
    background: rgba(255,255,255,0.5);
    border: none;
    padding: 8px 14px;
    font-size: 22px;
    border-radius: 6px;
    cursor: pointer;
}


/* ============================================================
   INFO PANEL (sliding from right)
============================================================ */

.info-panel {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 100%;
    background: rgba(255,255,255,0.95);
    z-index: 19000;
    padding: 8px 10px 10px 10px;
    box-sizing: border-box;
    overflow-y: auto;
    transition: right .35s ease;
    font-size: 14pt;
}
#infoClose{
    cursor:pointer;
    font-size: 14pt;
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    margin-top: -1px;
}

.info-panel.open {
    right: 0;
}

.info-panel p {
    margin: 0;
}

.info-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
    z-index: 18000;
}

.info-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}

.info-close {
    position: absolute;
    top: 20px;
    right: 25px;
    background: none;
    border: none;
    font-size: 36px;
    cursor: pointer;
}

/* CONTENT */
.info-year {
    font-size: 18px;
    margin-bottom: 20px;
    margin-left: 20px;
}
.info-title{
  text-align: center;
  
}
.info-description {
    
    line-height: 1.3;
    text-align:center;
    /*max-width:600px;*/
    text-align:left;
}
.info-onas {

    line-height: 1.3;
    text-align:center;
    /*max-width:600px;*/
    text-align:left;
}

/* --- .menuPlus styling (INFO + / INFO –) --- */
.menuPlus {
    /* position: fixed; */
    right: 15px;
    /*top: 15px;*/
    /* z-index: 20000; */
    font-size: 14pt;
    cursor: pointer;
    user-select: none;
    padding: 0 10px;
    display: flex;
    align-items: center;
}
.menuPlus span, #infoClose span{
    padding-right: 1px;
}    
.menuSS {
    right: 15px;
    font-size: 14pt;          
    user-select: none;
    padding: 2px 10px 0 0;
}



/* ============================================================================
   MENU PANEL — nový responzivní design
============================================================================ */


.main-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: #e7ebf2;
      transform: translateX(-100%);
    transition: transform .35s ease-in-out;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 99;
  padding: 0px 20px 0 0;
  box-sizing: border-box;
}



@media (max-width: 768px) {
    .main-menu {
        padding: 0 20px 10px 20px; 
    }
}

.menu-open .main-menu {
    transform: translateX(0);
}

#menuProjectList{
    margin:40px 0;
    text-align:center;
}
/* Zavírací tlačítko (X) */
.menu-close {
    cursor: pointer;
    background: none;
    border: none;
    /* padding: 0 20px 0 10px; */
    position: absolute;
    margin-top: 7px;
    margin-left:2px;
}
@media (max-width: 768px) {
    .menu-close {
        margin-left: -16px;
        
    }
}

/* Obsah menu */
.menu-inner {
    /*width: 100%; */
    /*text-transform: uppercase;*/
    font-family: inherit;
    display: flex;
    flex-direction: column;
    align-items: center; /* mobil/tablet centrované */ 
    margin-top: 8px;   
    
}
@media (min-width: 768px) {
   .menu-inner {   
        margin-top: 11px; 
        
    }
    .menu-close {
        margin-top: 8px;
        margin-left:4px;
    }
    .menu-close img{
        width:30px;
        height:30px;
    }
    .info-panel {   
        padding: 13px 10px 10px 10px;
    }
}

.menu-inner a {
    text-decoration: none;
    color: #111;
    font-size: 18px;
    display: block;
    padding: 2px 0;
}

/* Spodní kontakty */
.menu-footer {
   display:none;
}


/* BACKDROP */
.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 8;
}
.menu-backdrop.visible {
    opacity: 1;
    pointer-events: auto;
}


.text-page {
    position: relative;
    z-index: 20;
}

.kontakt {
    padding: 2rem 1.5rem;
}
.kontakt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
        position: relative;
    z-index: 20;
}
.onas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    justify-items: center;
    align-items: center;
        position: relative;
    z-index: 20;
}
.kontakt-grid p {
    margin:0;
}
@media (max-width: 900px) {

  .kontakt-grid, .onas-grid {
    width: 100%;
    margin: 0 auto;
    min-height: calc(100vh - 35px);
  }
}
@media (max-width: 900px) {
  .info-onas {
    min-height: calc(100vh - 60px); /* odečíst header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 26px;
  }
}



.box-5 {
    display:none;
}


/* logo */
.logo-wrap{
  position:fixed;
  left:50%;
  /*transform:translateX(-50%);*/
  z-index: 10;
  pointer-events: none; 
}
/*
.logo{
  width:60vmin; max-width:420px; opacity:.8;
  pointer-events:none;
}
*/


/*.logo-wrap {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;

  display: flex;
  align-items: center;
  justify-content: center;
}  */

.logo-base {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.9;
  z-index: 1;
  width: 60vmin;
  max-width: 600px;
}
/*
@media (max-width: 768px) {
    body.page_onas .logo-wrap img {
        max-width: 320px;
        width: 80%;
        height: auto; 
    }
}

@media (max-width: 768px) {
    body.page_kontakt .logo-wrap img {
        width: 80%;
        height: auto; 
    }
}
*/
@media (max-width: 768px) {
    body .logo-wrap img {
        width: 80%;
        height: auto; 
    }
}

#logoStage {
  position: relative;
  /*width: min(38vw, 420px);*/   /* desktop */
  aspect-ratio: 1 / 1; 
  pointer-events: none;
}


@media (max-width: 768px) {
  .logo-wrap {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 0;
  }
  .page_home .logo-wrap,
  .page_project .logo-wrap {
    z-index: 3;
  }

    #logoStage {
  position: static;     /* ❗ zruší relativní pozicování */
  width: auto;
  height: auto;
  max-width: none;
  aspect-ratio: unset;
    }
.logo-base {
  max-width: 320px;
  width: 80%;
  height: auto;
  opacity: 0.9;
}

}


.project-inline-tools {
  position: absolute;
  top: 36px;
  right: 16px;
  display: flex;
  gap: 6px;
  background: rgba(255,255,255,0.95);
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  z-index: 20;
}

.project-inline-tools button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 14px;
}



.editable-project {
  position: relative;
  overflow: visible; /* ← KLÍČOVÉ */
}
.project-inline-tools {
  z-index: 9999;
}
/*
.editable-project.editing {
  outline: 2px solid #2d6cdf;
  background: #fff;
}
*/
.project-inline-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.project-inline-actions button {
  padding: 6px 12px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
}

.project-inline-actions .save {
  background: #2d6cdf;
  color: #fff;
}

.project-inline-actions .cancel {
  background: #ddd;
}
.inline-quill-toolbar {
  margin-bottom: 6px;
}

.project-inline-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.project-inline-actions button {
  border: none;
  background: #f3f3f3;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.project-inline-actions .save {
  background: #2e7d32;
  color: white;
}

.project-inline-actions .cancel {
  background: #c62828;
  color: white;
}


.project-inline-actions {
    position: static;

    display: flex;
    justify-content: center;

    gap: 8px;

    margin-top: 12px;
  background: rgba(255,255,255,0.95);
  padding: 4px 6px;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 100;
}
.project-inline-actions button {
  font-size: 16px;
  line-height: 1;
  color: #000;
  background: none;
  border: none;
  cursor: pointer;
}

/* ukládání */
.editable-project.saving {
  opacity: 0.6;
  pointer-events: none;
}

/* badge */
.editable-project::after {
    position: absolute;
    top: 6px;
    right: 90px;
    z-index: 1000;

    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;

    opacity: 0;
    transform: translateY(-5px);
    transition: all .2s ease;
}


/* ukládám */
.editable-project.saving::after {
  content: "Ukládám…";
  background: #eee;
  color: #333;
  opacity: 1;
  transform: translateY(0);
}

/* uloženo */
.editable-project.saved::after {
  content: "✓ Uloženo";
  background: #2e7d32;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}

/* chyba */
.editable-project.error::after {
  content: "Chyba při ukládání";
  background: #c62828;
  color: #fff;
  opacity: 1;
  transform: translateY(0);
}



/* jemný hover efekt */
/*.editable-project:hover {
  outline: 1px dashed rgba(0, 0, 0, 0.25);
  background: rgba(0, 0, 0, 0.02);
} */

/* ikonky defaultně skryté */
.project-inline-tools {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

/* zobrazit jen při aktivaci */
.show-tools + .project-inline-tools {
  opacity: 1;
  pointer-events: auto;
}

/* ============================================================================
   TABLET — menu cca 80 % šířky
============================================================================ */
@media (min-width: 768px) {

    main.kontakt {
        min-height: calc(100vh - 35px);
        display: flex;
        align-items: stretch;   /* ← důležité */
        z-index: 20;
        position: relative;
    }
    .kontakt {
        padding: 3rem 3rem;
    }

    .kontakt-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 4rem;
        text-align: left;
        /*max-width: 900px;*/
        width:100%;
        margin: 0 auto;
    }

    .box-5 {
        grid-column: 1 / 3;
        text-align: center;
        margin-top: 3rem;
        display:block;
    }
    
        .logo{width:60vmin; max-width:600px}
        
    .info-description {
        padding: 60px 20px 20px 20px;
        text-align:justify;
    }    
    
    .info-onas {
        padding: 100px 20px 20px 20px;
        text-align:justify;
    }    
            

}




/* ============================================================================
   DESKTOP — menu LEFT panel ≈ 38 % šířky
============================================================================ */
@media (min-width: 1024px) {



    .main-menu {
        width: 38%;
       /* max-width: 480px;*/
        
        transform: translateX(-100%);

    }

    .menu-open .main-menu {
        transform: translateX(0);
    }

    /* text vlevo jako v mockupu */
    .menu-inner {
        margin-left:50px;
        align-items: flex-start;
        position:absolute;  
    }

    .menu-inner a {
        font-size: 18px;
    }

    #menuProjectList{        
        text-align:left;
    }

    .menu-footer {
        /* margin-top: auto; */
        /* width: 100%; */
        font-size: 16px;
        display: flex;
        /* padding-top: 40px; */
        /* position: absolute; */
        /* bottom: 20px; */
        gap: 30px;
        padding-bottom: 12px;
    }
    
    .info-panel {
        width: 38%;
        
    }  
    
    .info-title{
      display:none;
      
    } 

    



    .kontakt-grid {
        display: grid;
        width: 100%;
        flex: 1; 
        grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
        grid-template-rows: 1fr auto; /* KLÍČ */
        max-width:unset;
        align-items: center;
        gap: 4rem;

       /* padding-left: 6vw;
        padding-right: 6vw;   */
    }
    

    .box-1,
    .box-2,
    .box-3,
    .box-4 {
        grid-row: 1;
        align-self: center;
    }

    .box-5 {
        grid-row: 2;
        grid-column: 2 / 4;
        align-self: end;
        margin-bottom: 5rem;
        text-align: center;
    }
    
      
}


/* ============================================================================
   LARGE DESKTOP – jemné zvětšení
============================================================================ */
/*
@media (min-width: 1400px) {
    .menu-inner a {
        font-size: 20px;
    }
}     
*/







/* names (desktop only) */
.names-container{
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none; /* overlay ignoruje myš */
}

.name{
  position: absolute;
  font-size: 15pt;
  white-space: nowrap;
  opacity: .95;

  pointer-events: auto; /* ✅ JEDINÁ DŮLEŽITÁ ZMĚNA */
  cursor: pointer;
}

/* =====================================================
   PORTRÉT ČLENA – hover na jméno
===================================================== */

#memberPortrait {
  position: absolute;
  inset: 0;
  z-index: 2;

  /* maska podle loga */
  -webkit-mask-image: url("/i/logo-mask.svg");
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;

  mask-image: url("/i/logo-mask.svg");
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;

  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  transform: translateY(var(--portrait-offset-y));
}



/* jemný efekt při zobrazení */
#memberPortrait.is-visible{
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

#memberPortrait img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /*transform: translateY(-5px);*/
}
/*
@media (min-width: 1200px) {
  :root {
    --portrait-offset-y: 10px;
  }
}

*/
@media (max-width: 768px) {
    #memberPortrait{
    display:none;
    }
}
/* hide names on mobile */
@media (max-width:900px){
  .names-container{display:none}
}


/* výchozí stav – desktop / tablet */
.onas-names {
    display: none;
}

/* MOBIL */
@media (max-width: 768px) {
    .onas-names {
        display: block;
        padding: 90px 24px 40px;
        text-align: center;
    }

    .onas-names ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .onas-names li {
        font-size: 16px;
        line-height: 1.6;
        margin: 6px 0;
        font-weight: 400;
    }

    /* vypneme desktopový vizuál */
    #namesContainer,
    .logo-wrap.pc {
        display: none;
    }
}
@media (min-width: 768px) {
 .logo-wrap.mob {
        display: none;
    }
    .logo-wrap{
        top:50%;
        left:50%;
    transform: translate(-50%, -50%);
    }     
    
}
/* výchozí: mobil */
.members-list {
  list-style: none;
  padding: 40px 20px;
  margin: 0;
  text-align: center;
  font-size: 14pt;
  line-height: 1.6;
}


/* desktop */
@media (min-width: 901px) {
  .members-list {
    display: none;
  }
  
 
  
}

/* jen desktop animace */
#namesContainer {
  display: none;
}

@media (min-width: 901px) {
  #namesContainer {
    display: block;
  }
}

@media (max-width: 901px) {
    .text-info-minus{
        display:none;
    }
}
@media (max-width: 901px) {
    .text-info-plus{
        display:none;
    }
}

@media (max-width: 1024px) {

  .info-content {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }

  .info-header {
    flex: 0 0 auto;
    padding: 0 0 20px 0;
  }

  .info-description {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .info-footer {
    flex: 0 0 auto;
    padding: 20px 0 0 0;
    text-align: center;
  }
}

.info-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
}

.info-year {
  justify-self: start;
}

.info-title {
  justify-self: center;
}

#infoClose {
  justify-self: end;
}

.info-bottom {
  display: none;
}

@media (max-width: 900px) {

  .info-top {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "title close";
  }

  .info-title {
    grid-area: title;
    text-align: center;
  }

  #infoClose {
    grid-area: close;
  }

  .info-year {
    display: none; /* horní rok zmizí */
  }

  .info-bottom {
    display: block;
    text-align: center;
    margin-bottom: 20px;
  }

}

@media (max-width: 900px) {

  .info-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .info-top {
    flex: 0 0 auto;
    padding-bottom: 20px;   /* mezera pod titulkem */
  }

  .info-description {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0 10px;
    margin: 0;
  }

  .info-bottom {
    flex: 0 0 auto;
    padding-top: 20px;      /* mezera nad rokem */
    text-align: center;
  }

}

.box-5 {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cka-wrap {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cka-wrap img {
    height: 60px;
    width: auto;
}

.cka-text {
    text-align: left;
    line-height: 1.4;
}
@media (min-width: 1024px) {

    .cka-wrap {
        flex-direction: row;
    }

    .cka-text {
        order: 1;
        text-align: center;
    }

    .cka-wrap img {
        order: 2;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {

    .cka-wrap {
        flex-direction: row;
    }

    .cka-wrap img {
        order: 1;
    }

    .cka-text {
        order: 2;
        text-align: left;
    }
}
@media (max-width: 767px) {
    .box-5 {
        display: none !important;
    }
}

.slide {
    touch-action: pan-y;
}

@media (max-width: 1024px) {

  .info-panel {
    height: 100dvh;
  }

  .info-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .info-description {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 20px;
  }

  .info-footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }

}

.logo-wrap {
  transition: opacity .35s ease;
}

.logo-hidden {
  opacity: 0;
  pointer-events: none;
}
.title-float .name {
  color: #20262e42;
  font-weight: 500;
  opacity: 0.9;
  mix-blend-mode: difference; /* krásný efekt přes fotky */
}


@media (max-width: 768px) {

  #mobileTitleOverlay {
    position: absolute;
    top: 8px;             
    left: 50%;
    transform: translateX(-50%);
    width: 70vw;
    text-align: center;
    line-height: 1.1;
    z-index: 97;
    pointer-events: none;
    display: none;
    font-size: 14pt;
  }

}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus {
  outline: none;
}

@media (max-width: 768px) {

  body.page_kontakt,
  body.page_onas {
    overflow: hidden; /* zůstává */
  }

  .kontakt,
  .onas-grid {
    position: fixed;
    top: 35px;          /* výška headeru */
    left: 0;
    right: 0;
    bottom: 0;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch; /* iOS smooth scroll */
  }

}

.slide-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:30;
    cursor:pointer;
    user-select:none;
    opacity:0.7;
    transition:opacity .2s ease;
}

.slide-arrow img{
    width:20px;
    height:auto;
    display:block;
}

.slide-arrow:hover{
    opacity:1;
}
.slide-arrow.left {
  left: 20px;
  display:none;
}

.slide-arrow.right {
  right: 20px;
}

/* animace jen na začátku */
@keyframes arrowHint {
    0% { transform: translate(0,-50%); }
    50% { transform: translate(5px,-50%); }
    100% { transform: translate(0,-50%); }
}

.slide-arrow.animate{
    animation: arrowHint 1s ease-in-out infinite;
}



/* ❗ MOBIL – úplně vypnout */
@media (max-width: 768px){
    .slide-arrow{
        display:none !important;
    }
}

.menu-toggle img {
  width: 22px !important;
  height: 22px !important;
}

@media (min-width: 768px) {
  .menu-toggle img {
    width: 28px !important;
    height: 28px !important;
  }
}

.info-icon {
  width: 18px;
  height: 18px;
}

/* tablet + desktop */
@media (min-width: 768px) {
  .info-icon {
    width: 24px;
    height: 24px;
  }           

  .soc {
      flex-direction: row;
  }
}

.floating-title-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.floating-title-link:hover {
    text-decoration: none;
}



/* Quill zarovnání */
.editable-project .ql-align-center,
.text-page-box .ql-align-center,
.text-page-intro .ql-align-center,
.info-description .ql-align-center {
    text-align: center;
}

.editable-project .ql-align-right,
.text-page-box .ql-align-right,
.text-page-intro .ql-align-right,
.info-description .ql-align-right {
    text-align: right;
}

.editable-project .ql-align-justify,
.text-page-box .ql-align-justify,
.text-page-intro .ql-align-justify,
.info-description .ql-align-justify {
    text-align: justify;
}

/* zvýraznění právě editovaného textu */
/*.editable-content.editing {
    outline: 2px solid #2d6cdf;
    outline-offset: 6px;
    background: rgba(255,255,255,0.85);
    border-radius: 8px;
    transition: all .2s ease;
}
*/
/* text, ke kterému patří zobrazená tužka */
.editable-content.show-tools {
    outline: 1px dashed rgba(45,108,223,.6);
    outline-offset: 4px;
    background: rgba(45,108,223,.05);
    border-radius: 6px;
    transition: all .15s ease;
}
/* Kontakt – tlačítka pod editorem */
.editable-content .project-inline-actions {
    position: static;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 8px;

    background: none;
    padding: 0;
    box-shadow: none;
}



/* ============================================================
   INLINE EDIT – běžné texty (Kontakt, O nás...)
============================================================ */

/* zvýraznění textu, ke kterému patří tužka */
.editable-content.show-tools {
    outline: 1px dashed rgba(45,108,223,.6);
    outline-offset: 4px;
    background: rgba(45,108,223,.05);
    border-radius: 6px;
    transition: all .15s ease;
}

/* zvýraznění právě editovaného bloku */
/*.editable-content.editing {
    outline: 2px solid #2d6cdf;
    outline-offset: 6px;
    background: rgba(255,255,255,.9);
    border-radius: 8px;
    padding: 8px;
}  */

/* ============================================================
   QUILL – aby vypadal stejně jako běžný text
============================================================ */

.editable-content.editing .ql-container,
.editable-content.editing .ql-editor {
    border: none !important;
    box-shadow: none !important;
    background: transparent;
}

/* editor převezme vzhled rodiče */
.editable-content.editing .ql-editor {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-align: inherit;

    padding: 0;
    margin: 0;

    min-height: auto;
}

/* stejné mezery jako na stránce */
.editable-content.editing .ql-editor p {
    margin: 0;
}

/* ============================================================
   TOOLBAR
============================================================ */

.editable-content .inline-quill-toolbar,
.editable-content .ql-toolbar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    padding: 4px;
    margin-bottom: 10px;

    background: rgba(255,255,255,.85);
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.08);
}

.editable-content .ql-toolbar .ql-formats {
    margin-right: 4px;
}

/* ============================================================
   TLAČÍTKA ULOŽIT / ZRUŠIT
============================================================ */

.editable-content .project-inline-actions {
    position: static;

    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 12px;
    padding: 0;

    background: none;
    box-shadow: none;
}

.editable-content .project-inline-actions button {
    border: none;
    border-radius: 4px;

    padding: 6px 12px;

    cursor: pointer;
    font-size: 14px;
}

.editable-content .project-inline-actions .save {
    background: #2e7d32;
    color: #fff;
}

.editable-content .project-inline-actions .cancel {
    background: #c62828;
    color: #fff;
}

/* ============================================================
   STAVY ULOŽENÍ
============================================================ */

.editable-content.saving {
    opacity: .6;
    pointer-events: none;
}

.editable-content::after {
    content: "";
    position: absolute;

    top: -22px;
    right: 0;

    font-size: 12px;

    padding: 2px 6px;

    border-radius: 4px;

    opacity: 0;
    transform: translateY(4px);

    transition:
        opacity .2s ease,
        transform .2s ease;

    pointer-events: none;
}

.editable-content.saving::after {
    content: "Ukládám…";
    background: #eee;
    color: #333;

    opacity: 1;
    transform: translateY(0);
}

.editable-content.saved::after {
    content: "✓ Uloženo";
    background: #2e7d32;
    color: #fff;

    opacity: 1;
    transform: translateY(0);
}

.editable-content.error::after {
    content: "Chyba při ukládání";
    background: #c62828;
    color: #fff;

    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================
   INLINE EDIT – Kontakt / O nás
========================================================== */

.editable-content.editing .ql-container,
.editable-content.editing .ql-editor,
.editable-content.editing .ql-editor p {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.editable-content.editing .ql-editor {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.editable-content.editing .ql-editor p {
    margin: 0 !important;
}


/* ==========================================================
   INLINE EDIT – vzhled editoru
========================================================== */

/* celý editovaný blok */
/*.editable-content.editing {
    outline: 2px dashed rgba(45,108,223,.45);
    outline-offset: 8px;
    background: rgba(255,255,255,.25);
    border-radius: 8px;
}  */

/* Quill bez vlastního rámečku */
.editable-content.editing .ql-container {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

/* editor bez rámečku */
.editable-content.editing .ql-editor {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;

    padding: 0 !important;
    margin: 0 !important;

    min-height: auto !important;
}

/* toolbar */
.editable-content.editing .inline-quill-toolbar,
.editable-content.editing .ql-toolbar {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    margin-bottom: 12px;

    padding: 4px 6px;

    border: none !important;
    border-radius: 8px;

    background: rgba(255,255,255,.92);

    box-shadow: 0 2px 8px rgba(0,0,0,.12);
}



/* ==========================================================
   PROJEKTY
========================================================== */

.editable-project .project-inline-actions {
    position: absolute;
    top: 15px;
    right: 0px;

    display: flex;
    gap: 6px;

    margin: 0;

    background: rgba(255,255,255,.95);
    padding: 4px 6px;
    border-radius: 6px;

    box-shadow: 0 2px 8px rgba(0,0,0,.15);

    z-index: 100;
}

/* ==========================================================
   PROJEKTY – Quill dědí vzhled původního textu
========================================================== */

.editable-project.editing .ql-container,
.editable-project.editing .ql-editor,
.editable-project.editing .ql-editor p {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    text-align: inherit !important;
}

.editable-project.editing .ql-editor {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.editable-project.editing .ql-editor p {
    margin: 0 !important;
    line-height: inherit !important;
}
.editable-project.editing .ql-editor {
    line-height: inherit !important;
}

.editable-project.editing .ql-editor > * {
    margin: 0 !important;
}

/* ==========================================================
   SPOLEČNÝ VZHLED AKTIVNÍHO INLINE EDITORU
========================================================== */

.editable-project.editing,
.editable-content.editing {
    outline: 2px dashed rgba(45, 108, 223, 0.45);
    outline-offset: 6px;

    border-radius: 8px;

    background: rgba(255, 255, 255, 0.18);

    transition:
        outline-color .15s ease,
        background-color .15s ease;
}



.cka-text.editable-content.editing {
    display: inline-block;
    padding: 8px 12px;
}


main.kariera{
    position:relative;
    z-index:20;
}

.kariera-uvod{
    text-align:center;
    
}


@media (min-width:768px){

    main.kariera{
        min-height:calc(100vh - 35px);
        display:flex;
        align-items:stretch;
        padding:3rem;
    }

    .kariera-inner{
        width:100%;
        margin:auto;
    }

    .kariera-uvod{
        max-width:900px;
        margin:auto auto 20vh;
    }

    .kariera-grid{
        display:grid;
        grid-template-columns:repeat(3,1fr);
        gap:3rem;
        align-items:start;
    }
}
@media (max-width:767px){

    main.kariera{
        padding:2rem;
    }

    .kariera-uvod{
        margin-bottom:3rem;
    }

    .kariera-grid{
        display:grid;
        grid-template-columns:1fr;
        gap:2rem;
    }
}



/* ============================================================
   MÉDIA / OCENĚNÍ – dlouhý obsah
============================================================ */


.text-page{
    position:fixed;
    top:35px;
    left:0;
    right:0;
    bottom:0;

    overflow-y:auto;
    overflow-x:hidden;

    z-index:20;
}

.text-page-inner{
    max-width:900px;
    margin:0 auto;
    padding:4rem 2rem;
}
@media (min-width:768px){
    .text-page-inner {
    padding: 240px 2rem 0 2rem;
    }

}

/* ============================================================
   TYPOGRAFIE TEXTOVÝCH STRÁNEK
============================================================ */

.text-page-box {
    text-align: center;
    font-size: 14pt;
    line-height: 1.3;
}

.text-page-box p {
    margin: 0 0 0 0;
}

.text-page-box p:last-child {
    margin-bottom: 0;
}

/* úvodní delší texty */
.text-page-intro {
    text-align: center;
    font-size: 14pt;
    line-height: 1.3;
}

.text-page-intro p {
    margin: 0 0 0 0;
}

.text-page-intro p:last-child {
    margin-bottom: 0;
}

/* ============================================================
   INLINE EDIT – textové stránky
============================================================ */

.content-inline-actions {
    position: sticky;
    bottom: 10px;

    display: flex;
    justify-content: center;
    gap: 8px;

    margin-top: 20px;
    padding: 8px;

    z-index: 1000;
}

.content-inline-actions button {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
}

.content-inline-actions .save {
    background: #2e7d32;
    color: #fff;
}

.content-inline-actions .cancel {
    background: #c62828;
    color: #fff;
}


/* ============================================================
   MÉDIA / OCENĚNÍ – styl odkazů
============================================================ */

.page_oceneni .text-page-box a,
.page_oceneni .text-page-content a, 
.page_oceneni .text-page-box a,
.page_oceneni .text-page-content a,
.page_media .text-page-box a,
.page_media .text-page-content a, 
.page_media .text-page-box a,
.page_media .text-page-content a 
{
    color: #1f4fd6;
    text-decoration: none;

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

    font-size: inherit;
}


.page_oceneni .text-page-box a::before,
.page_oceneni .text-page-content a::before, 
.page_oceneni .text-page-box a::before,
.page_oceneni .text-page-content a::before,
.page_media .text-page-box a::before,
.page_media .text-page-content a::before, 
.page_media .text-page-box a::before,
.page_media .text-page-content a::before 
 {
    content: "";
    width: 18px;
    height: 18px;

    background: url('/i/arr-right-blue.svg') center center / contain no-repeat;
    flex-shrink: 0;
}

.page_oceneni .text-page-box a::after,
.page_oceneni .text-page-content a::after, 
.page_oceneni .text-page-box a::after,
.page_oceneni .text-page-content a::after,
.page_media .text-page-box a::after,
.page_media .text-page-content a::after, 
.page_media .text-page-box a::after,
.page_media .text-page-content a::after 
{
    content: "";
    width: 18px;
    height: 18px;

    background: url('/i/arr-left-blue.svg') center center / contain no-repeat;
    flex-shrink: 0;
}
/*
.text-page-box a:not([data-link-arrow]),
.text-page-content a:not([data-link-arrow]) {
    color: inherit;
}
*/

/*
.text-page-box a[data-link-arrow],
.text-page-content a[data-link-arrow] {
    color: #1f4fd6;
    text-decoration: none;

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

.text-page-box a[data-link-arrow]::before,
.text-page-content a[data-link-arrow]::before {
    content: "";
    width: 22px;
    height: 22px;
    background: url('/i/arr-right-blue.svg') center/contain no-repeat;
}

.text-page-box a[data-link-arrow]::after,
.text-page-content a[data-link-arrow]::after {
    content: "";
    width: 22px;
    height: 22px;
    background: url('/i/arr-left-blue.svg') center/contain no-repeat;
}
*/

.text-page-box a {
   
    font-weight: 500;
}
.ql-editor a,
.ql-tooltip a {
    font-size: inherit !important;
    font-weight: inherit !important;
}
.text-page-box .ql-tooltip a::before,
.text-page-box .ql-tooltip a::after,
.text-page-box .ql-editor a::before,
.text-page-box .ql-editor a::after,
.text-page-content .ql-editor a::before,
.text-page-content .ql-editor a::after {
    background: none !important;
}

main.kariera{
    position:fixed !important;
    top:35px !important;
    left:0 !important;
    right:0 !important;
    bottom:0 !important;

    overflow-y:auto !important;
    overflow-x:hidden !important;

    z-index:20 !important;
}


body.hero-visible .header{

    background:transparent;

}