/* mobile-responsive-fixes.css - AKTUALIZOVANÁ VERZE */

/* ===== ABSOLUTNÍ PRIORITA PRO MOBILNÍ MENU ===== */
/* Tento CSS musí mít nejvyšší specificitu pro přebití všech konfliktů */

@media (max-width: 768px) {
  
  /* KRITICKÁ OPRAVA 1: Hamburger menu - ABSOLUTNÍ PRIORITA */
  html body header .hamburger,
  html body .header-container .hamburger,
  html body div.container .hamburger,
  body.homepage .hamburger,
  body[class*="page"] .hamburger,
  html body header div .hamburger,
  html body nav .hamburger,
  html body .hamburger,
  .hamburger {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    padding: 8px !important;
    z-index: 1001 !important;
    width: 44px !important;
    height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
    /* Nulování všech možných skrývajících stylů */
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-indent: 0 !important;
    font-size: 24px !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    max-height: none !important;
    min-width: 44px !important;
    min-height: 44px !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    order: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    clear: none !important;
    resize: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
  }

  /* Barva hamburger menu podle typu headeru */
  html body header:not(.colored-header) .hamburger,
  html body header.white-header .hamburger,
  body .white-header .hamburger {
    color: #4B87A0 !important;
  }

  html body header.colored-header .hamburger,
  html body .colored-header .hamburger {
    color: white !important;
  }

  /* KRITICKÁ OPRAVA 2: Mobilní navigace - ABSOLUTNÍ PRIORITA */
  html body header .main-nav,
  html body .header-container .main-nav,
  html body div.container .main-nav,
  body.homepage .main-nav,
  body[class*="page"] .main-nav,
  html body header div .main-nav,
  html body nav.main-nav,
  html body .main-nav,
  .main-nav {
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    background-color: #FFFFFF !important;
    height: 0 !important;
    overflow: hidden !important;
    transition: height 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    width: 100vw !important;
    z-index: 1000 !important;
    border-top: 1px solid #eee !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Nulování všech možných interferujících stylů */
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    white-space: normal !important;
    text-indent: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    outline: none !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    order: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    clear: none !important;
    resize: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
  }

  /* Aktivní stav navigace */
  html body header .main-nav.active,
  html body .header-container .main-nav.active,
  html body div.container .main-nav.active,
  body.homepage .main-nav.active,
  body[class*="page"] .main-nav.active,
  html body header div .main-nav.active,
  html body nav.main-nav.active,
  html body .main-nav.active,
  .main-nav.active {
    height: auto !important;
    padding: 20px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
  }

  /* KRITICKÁ OPRAVA 3: Menu seznam - ABSOLUTNÍ PRIORITA */
  html body header .main-nav ul,
  html body .header-container .main-nav ul,
  html body div.container .main-nav ul,
  body.homepage .main-nav ul,
  body[class*="page"] .main-nav ul,
  html body header div .main-nav ul,
  html body nav.main-nav ul,
  html body .main-nav ul,
  .main-nav ul {
    flex-direction: column !important;
    padding: 0 20px !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Nulování všech možných interferujících stylů */
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-indent: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    order: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    clear: none !important;
    resize: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
  }

  /* KRITICKÁ OPRAVA 4: Menu položky - NEJSILNĚJŠÍ MOŽNÁ SPECIFICITA */
  html body header .main-nav ul li,
  html body .header-container .main-nav ul li,
  html body div.container .main-nav ul li,
  body.homepage .main-nav ul li,
  body[class*="page"] .main-nav ul li,
  html body header div .main-nav ul li,
  html body nav.main-nav ul li,
  html body .main-nav ul li,
  .main-nav ul li,
  html body header .main-nav li,
  html body .header-container .main-nav li,
  html body div.container .main-nav li,
  body.homepage .main-nav li,
  body[class*="page"] .main-nav li,
  html body header div .main-nav li,
  html body nav.main-nav li,
  html body .main-nav li,
  .main-nav li {
    margin: 0 0 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* KRITICKÉ: Absolutní nulování všech skrývajících stylů */
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-indent: 0 !important;
    font-size: inherit !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    order: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    clear: none !important;
    resize: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
    padding: 0 !important;
    /* Speciální nulování pro často používané skrývající techniky */
    content: normal !important;
    speak: normal !important;
    unicode-bidi: normal !important;
    direction: ltr !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  /* Explicitní přepsání VŠECH možných skrývajících CSS tříd a inline stylů */
  html body .main-nav li.hidden,
  html body .main-nav li.d-none,
  html body .main-nav li.sr-only,
  html body .main-nav li.invisible,
  html body .main-nav li.visually-hidden,
  html body .main-nav li.screen-reader-text,
  html body .main-nav li[style*="display: none"],
  html body .main-nav li[style*="display:none"],
  html body .main-nav li[style*="visibility: hidden"],
  html body .main-nav li[style*="visibility:hidden"],
  html body .main-nav li[style*="opacity: 0"],
  html body .main-nav li[style*="opacity:0"],
  html body .main-nav li[style*="height: 0"],
  html body .main-nav li[style*="height:0"],
  html body .main-nav li[style*="width: 0"],
  html body .main-nav li[style*="width:0"],
  html body .main-nav li[style*="overflow: hidden"],
  html body .main-nav li[style*="overflow:hidden"],
  html body .main-nav li[style*="clip: rect"],
  html body .main-nav li[style*="clip:rect"],
  html body .main-nav li[style*="position: absolute"],
  html body .main-nav li[style*="position:absolute"],
  html body .main-nav li[style*="left: -"],
  html body .main-nav li[style*="left:-"],
  html body .main-nav li[style*="top: -"],
  html body .main-nav li[style*="top:-"],
  html body .main-nav li[style*="text-indent: -"],
  html body .main-nav li[style*="text-indent:-"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    text-indent: 0 !important;
    font-size: inherit !important;
    white-space: normal !important;
    margin: 0 0 15px 0 !important;
    padding: 0 !important;
  }

  /* KRITICKÁ OPRAVA 5: Menu odkazy - NEJSILNĚJŠÍ MOŽNÁ SPECIFICITA */
  html body header .main-nav ul li a,
  html body .header-container .main-nav ul li a,
  html body div.container .main-nav ul li a,
  body.homepage .main-nav ul li a,
  body[class*="page"] .main-nav ul li a,
  html body header div .main-nav ul li a,
  html body nav.main-nav ul li a,
  html body .main-nav ul li a,
  .main-nav ul li a,
  html body header .main-nav li a,
  html body .header-container .main-nav li a,
  html body div.container .main-nav li a,
  body.homepage .main-nav li a,
  body[class*="page"] .main-nav li a,
  html body header div .main-nav li a,
  html body nav.main-nav li a,
  html body .main-nav li a,
  .main-nav li a,
  html body header .main-nav a,
  html body .header-container .main-nav a,
  html body div.container .main-nav a,
  body.homepage .main-nav a,
  body[class*="page"] .main-nav a,
  html body header div .main-nav a,
  html body nav.main-nav a,
  html body .main-nav a,
  .main-nav a {
    color: #333333 !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 12px 0 !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Absolutní nulování všech skrývajících stylů */
    position: static !important;
    left: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    clip: auto !important;
    clip-path: none !important;
    mask: none !important;
    filter: none !important;
    backdrop-filter: none !important;
    overflow: visible !important;
    white-space: normal !important;
    text-indent: 0 !important;
    line-height: normal !important;
    word-spacing: normal !important;
    text-shadow: none !important;
    box-shadow: none !important;
    outline: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: none !important;
    background-color: transparent !important;
    background-image: none !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    min-width: auto !important;
    min-height: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    flex-basis: auto !important;
    order: 0 !important;
    grid-area: auto !important;
    grid-column: auto !important;
    grid-row: auto !important;
    float: none !important;
    clear: none !important;
    resize: none !important;
    user-select: auto !important;
    pointer-events: auto !important;
    margin: 0 !important;
    /* Speciální nulování */
    content: normal !important;
    speak: normal !important;
    unicode-bidi: normal !important;
    direction: ltr !important;
    writing-mode: horizontal-tb !important;
    text-orientation: mixed !important;
  }

  /* Hover a aktivní stavy */
  html body .main-nav a:hover,
  html body .main-nav a.active,
  .main-nav a:hover,
  .main-nav a.active {
    color: #4B87A0 !important;
  }

  /* Menu body scroll lock */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }

  /* Extra specificita pro některé problematické situace */
  * html body .main-nav li { display: block !important; }
  html body * .main-nav li { display: block !important; }
  body * .main-nav li { display: block !important; }
  
  /* Záchytná síť pro jakékoliv další interferující styly */
  [class*="main-nav"] li,
  [id*="nav"] li,
  nav li,
  .nav li,
  .navigation li {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Základní opravy pro zamezení horizontálního scrollování */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

/* Zajištění, aby viewport meta tag fungoval správně */
.container {
  width: 100%;
  max-width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  box-sizing: border-box;
}

/* ===== KRITICKÁ OPRAVA MENU - MAXIMÁLNÍ SPECIFICITA ===== */
@media (max-width: 768px) {
  /* OPRAVA 1: Hamburger menu - maximální specificita pro všechny stránky */
  body .hamburger,
  html body .hamburger,
  .header-container .hamburger,
  header .hamburger,
  body header .hamburger,
  html body header .hamburger {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    padding: 8px !important;
    z-index: 1001 !important;
    background: none !important;
    border: none !important;
    font-size: 24px !important;
    cursor: pointer !important;
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    /* Přebití jakýchkoliv skrývajících stylů */
    left: auto !important;
    top: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    overflow: visible !important;
  }

  /* Pro stránky s bílým headerem (Homepage, O nás) */
  body header .hamburger,
  html body header .hamburger,
  body header:not(.colored-header) .hamburger,
  html body header:not(.colored-header) .hamburger {
    color: var(--primary) !important;
  }

  /* Pro stránky s barevným headerem (Kyberbezpečnost, Infrastruktura) */
  body header.colored-header .hamburger,
  html body header.colored-header .hamburger {
    color: white !important;
  }

  /* OPRAVA 2: Mobilní navigace - KRITICKÁ OPRAVA pro všechny stránky */
  body .main-nav,
  html body .main-nav,
  .header-container .main-nav,
  header .main-nav,
  body header .main-nav,
  html body header .main-nav {
    position: fixed !important;
    top: 90px !important;
    left: 0 !important;
    right: 0 !important;
    background-color: var(--white) !important;
    height: 0 !important;
    overflow: hidden !important;
    transition: height 0.3s ease !important;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15) !important;
    width: 100vw !important;
    z-index: 1000 !important;
    border-top: 1px solid #eee !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Přebití skrývajících stylů */
    clip: auto !important;
    clip-path: none !important;
    transform: none !important;
  }

  body .main-nav.active,
  html body .main-nav.active,
  .header-container .main-nav.active,
  header .main-nav.active,
  body header .main-nav.active,
  html body header .main-nav.active {
    height: auto !important;
    padding: 20px 0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-height: 70vh !important;
    overflow-y: auto !important;
  }

  /* OPRAVA 3: Menu seznam - zajištění zobrazení */
  body .main-nav ul,
  html body .main-nav ul,
  .header-container .main-nav ul,
  header .main-nav ul,
  body header .main-nav ul,
  html body header .main-nav ul {
    flex-direction: column !important;
    padding: 0 20px !important;
    margin: 0 !important;
    list-style: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Přebití skrývajících stylů */
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    transform: none !important;
  }

  /* OPRAVA 4: Menu položky - KRITICKÁ OPRAVA zobrazení všech položek */
  body .main-nav li,
  html body .main-nav li,
  .header-container .main-nav li,
  header .main-nav li,
  body header .main-nav li,
  html body header .main-nav li,
  body .main-nav ul li,
  html body .main-nav ul li,
  .header-container .main-nav ul li,
  header .main-nav ul li,
  body header .main-nav ul li,
  html body header .main-nav ul li {
    margin: 0 0 15px 0 !important;
    border-bottom: 1px solid #f0f0f0 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* KRITICKÉ: Přepsání všech možných skrývajících stylů */
    position: static !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
    white-space: normal !important;
    text-indent: 0 !important;
    font-size: inherit !important;
  }

  /* Explicitní přepsání skrývajících CSS tříd a stylů */
  body .main-nav li.hidden,
  body .main-nav li.d-none,
  body .main-nav li.sr-only,
  body .main-nav li.invisible,
  body .main-nav li[style*="display: none"],
  body .main-nav li[style*="display:none"],
  body .main-nav li[style*="visibility: hidden"],
  body .main-nav li[style*="visibility:hidden"],
  body .main-nav li[style*="opacity: 0"],
  body .main-nav li[style*="opacity:0"],
  html body .main-nav li.hidden,
  html body .main-nav li.d-none,
  html body .main-nav li.sr-only,
  html body .main-nav li.invisible,
  html body .main-nav li[style*="display: none"],
  html body .main-nav li[style*="display:none"],
  html body .main-nav li[style*="visibility: hidden"],
  html body .main-nav li[style*="visibility:hidden"],
  html body .main-nav li[style*="opacity: 0"],
  html body .main-nav li[style*="opacity:0"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    max-height: none !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    text-indent: 0 !important;
    font-size: inherit !important;
    white-space: normal !important;
  }

  /* OPRAVA 5: Menu odkazy - správné zobrazení a stylování */
  body .main-nav a,
  html body .main-nav a,
  .header-container .main-nav a,
  header .main-nav a,
  body header .main-nav a,
  html body header .main-nav a,
  body .main-nav li a,
  html body .main-nav li a,
  .header-container .main-nav li a,
  header .main-nav li a,
  body header .main-nav li a,
  html body header .main-nav li a {
    color: var(--dark-text) !important;
    font-size: 16px !important;
    font-weight: 500 !important;
    padding: 12px 0 !important;
    display: block !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Přebití skrývajících stylů */
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    text-indent: 0 !important;
    white-space: normal !important;
  }

  body .main-nav a:hover,
  body .main-nav a.active,
  html body .main-nav a:hover,
  html body .main-nav a.active,
  .header-container .main-nav a:hover,
  .header-container .main-nav a.active,
  header .main-nav a:hover,
  header .main-nav a.active,
  body header .main-nav a:hover,
  body header .main-nav a.active,
  html body header .main-nav a:hover,
  html body header .main-nav a.active {
    color: var(--primary) !important;
  }

  /* OPRAVA 6: Menu body scroll lock */
  body.menu-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
  }
}

/* ===== OPRAVA SEKCE "DŮVĚŘUJÍ NÁM" S ROTACÍ LOG ===== */

.trusted-by {
  padding: 60px 0;
  text-align: center;
  background-color: var(--white);
  overflow: hidden;
}

.trusted-by h3 {
  color: var(--gray);
  font-size: 16px;
  margin-bottom: 30px;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
}

.trusted-by h3::before,
.trusted-by h3::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 50px;
  height: 1px;
  background-color: #ddd;
}

.trusted-by h3::before {
  left: -70px;
}

.trusted-by h3::after {
  right: -70px;
}

.client-logos-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.client-logos {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.client-logo {
  height: 40px;
  width: 150px;
  min-width: 120px;
  max-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: grayscale(50%);
  opacity: 0.7;
  transition: all 0.3s;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  z-index: 2;
}

.client-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Responzivní úpravy pro client logos */
@media (max-width: 1200px) {
  .client-logos {
    gap: 15px;
    flex-wrap: nowrap;
  }
  
  .client-logo {
    width: 130px;
    min-width: 100px;
    max-width: 150px;
  }
}

@media (max-width: 992px) {
  .client-logos {
    gap: 15px;
  }
  
  .client-logo {
    width: 120px;
    min-width: 90px;
    max-width: 140px;
  }
}

@media (max-width: 768px) {
  .client-logos {
    gap: 20px;
    animation: scrollLogos 20s linear infinite;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding: 0 10px;
  }
  
  .client-logo {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
    height: 35px;
    flex-shrink: 0;
  }
  
  .trusted-by h3::before,
  .trusted-by h3::after {
    display: none;
  }
}

@media (max-width: 576px) {
  .client-logos {
    gap: 15px;
    animation: scrollLogos 15s linear infinite;
  }
  
  .client-logo {
    width: 80px;
    min-width: 80px;
    max-width: 80px;
    height: 30px;
  }
}

/* Animace pro scrollování log na malých obrazovkách */
@keyframes scrollLogos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===== OPRAVA SCROLL ŠIPKY NA HOMEPAGE ===== */

.btn-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(75, 135, 160, 0.9);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid white;
  font-size: 20px;
  cursor: pointer;
  animation: bounce 2s infinite;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-scroll:hover {
  background-color: var(--primary);
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.4);
  color: white;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-10px) translateX(-50%);
  }
  60% {
    transform: translateY(-5px) translateX(-50%);
  }
}

/* Skrytí scroll šipky na mobilech */
@media (max-width: 768px) {
  .btn-scroll {
    display: none !important;
  }
}

@media (min-width: 769px) and (max-width: 992px) {
  .btn-scroll {
    bottom: 25px;
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* ===== DALŠÍ MOBILNÍ OPRAVY ===== */

/* Hero sekce na mobilech */
@media (max-width: 768px) {
  .hero {
    padding: 40px 0 60px 0 !important; /* Méně prostoru díky skryté šipce */
    position: relative !important;
  }

  .hero-content {
    flex-direction: column !important;
    gap: 30px !important;
  }

  .hero-text, .hero-image {
    width: 100% !important;
  }

  .hero-text {
    text-align: center !important;
  }

  .hero-text h1 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin-bottom: 20px !important;
  }

  .hero-text p {
    font-size: 16px !important;
    margin-bottom: 15px !important;
  }

  .hero-buttons {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    gap: 12px !important;
    margin-top: 25px !important;
  }

  .hero-buttons .btn {
    width: 100% !important;
    padding: 12px 20px !important;
    font-size: 14px !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }

  /* Video kontejner na mobilech */
  .hero-image-container.video-container {
    height: 220px !important;
    margin-bottom: 20px !important;
  }

  .hero-video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }
}

/* ===== HOMEPAGE OPRAVY ===== */
@media (max-width: 768px) {
  /* Odstranění problematického pozadí */
  body .services::before,
  html body .services::before {
    display: none !important;
  }

  body .services,
  html body .services {
    background: var(--light-gray) !important;
    background-image: none !important;
    position: relative !important;
  }

  /* Nadpis sekce */
  body .services .section-header,
  html body .services .section-header {
    background-color: transparent !important;
    padding: 20px 0 !important;
    margin: 0 0 30px 0 !important;
    position: relative !important;
    z-index: 10 !important;
  }

  body .services .section-header h2,
  html body .services .section-header h2 {
    color: var(--primary) !important;
    font-size: 26px !important;
    text-shadow: none !important;
    font-weight: 700 !important;
  }

  body .services .section-header p,
  html body .services .section-header p {
    color: var(--dark-text) !important;
    font-size: 16px !important;
    text-shadow: none !important;
    opacity: 1 !important;
  }

  /* KRITICKÁ OPRAVA: Panely služeb s velkými mezerami */
  body .services .services-grid,
  html body .services .services-grid,
  body .services-grid,
  html body .services-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: grid !important;
  }

  body .services .service-card,
  html body .services .service-card,
  body .service-card,
  html body .service-card {
    margin: 0 0 25px 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12) !important;
    background-color: var(--white) !important;
    padding: 0 !important;
    display: block !important;
  }

  body .service-card-content,
  html body .service-card-content {
    padding: 25px !important;
  }
}

/* ===== HOMEPAGE - NÁŠ PŘÍSTUP OPRAVA ===== */
@media (max-width: 768px) {
  body .approach .steps-container,
  html body .approach .steps-container,
  body .steps-container,
  html body .steps-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin-top: 30px !important;
    gap: 30px !important;
  }

  body .approach .step,
  html body .approach .step,
  body .step,
  html body .step {
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto 30px auto !important;
    text-align: center !important;
  }

  body .steps-line,
  html body .steps-line {
    display: none !important;
  }
}

/* ===== KRITICKÁ OPRAVA: LOGO KONTEJNERY ===== */
.reference-logo,
.client-logo,
.vendor-logo,
.partner-logo {
  overflow: hidden !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.reference-logo img,
.client-logo img,
.vendor-logo img,
.partner-logo img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  width: auto !important;
  height: auto !important;
}

/* ===== SLUŽBY STRÁNKA OPRAVA ===== */
@media (max-width: 768px) {
  body .services-section .services-grid,
  html body .services-section .services-grid {
    grid-template-columns: 1fr !important;
    gap: 45px !important;
    padding: 0 10px !important;
    margin: 0 !important;
  }

  body .services-section .service-card,
  html body .services-section .service-card {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* ===== KYBERBEZPEČNOST A INFRASTRUKTURA - KRITICKÁ OPRAVA PŘETÉKÁNÍ ===== */
@media (max-width: 768px) {
  /* Kontejner pro řešení */
  body .security-solutions,
  body .infrastructure-solutions,
  html body .security-solutions,
  html body .infrastructure-solutions {
    padding: 40px 0 !important;
    overflow-x: hidden !important;
  }

  body .security-solutions .container,
  body .infrastructure-solutions .container,
  html body .security-solutions .container,
  html body .infrastructure-solutions .container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* KRITICKÁ OPRAVA: Grid s velkými mezerami a zamezením přetékání */
  body .solutions-grid,
  html body .solutions-grid,
  body .security-solutions .solutions-grid,
  body .infrastructure-solutions .solutions-grid,
  html body .security-solutions .solutions-grid,
  html body .infrastructure-solutions .solutions-grid {
    grid-template-columns: 1fr !important;
    gap: 35px !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: grid !important;
  }

  /* KRITICKÁ OPRAVA: Panely bez přetékání */
  body .solution-card,
  html body .solution-card,
  body .security-solutions .solution-card,
  body .infrastructure-solutions .solution-card,
  html body .security-solutions .solution-card,
  html body .infrastructure-solutions .solution-card {
    width: 100% !important;
    max-width: 100% !important;
    min-height: auto !important;
    margin: 0 !important;
    padding: 20px !important;
    border-radius: 12px !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1) !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }

  /* Zrušení centrování lichého panelu na mobilu */
  body .solutions-grid .solution-card:nth-child(7):last-child,
  html body .solutions-grid .solution-card:nth-child(7):last-child {
    grid-column: auto !important;
    justify-self: stretch !important;
  }

  body .solution-content,
  html body .solution-content {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  body .solution-content h3,
  html body .solution-content h3 {
    font-size: 18px !important;
    margin-bottom: 15px !important;
    word-wrap: break-word !important;
  }

  body .solution-content p,
  html body .solution-content p {
    font-size: 14px !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
  }
}

/* ===== INFRASTRUKTURA STORAGE SEKCE ===== */
@media (max-width: 768px) {
  body .storage-content,
  html body .storage-content {
    flex-direction: column !important;
    gap: 30px !important;
    width: 100% !important;
    overflow: hidden !important;
  }

  body .storage-text,
  body .storage-benefits,
  html body .storage-text,
  html body .storage-benefits {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  body .storage-benefits,
  html body .storage-benefits {
    padding: 20px !important;
    margin: 0 !important;
  }
}

/* ===== UNIVERZÁLNÍ MOBILNÍ ÚPRAVY S VYSOKOU SPECIFICITOU ===== */
@media (max-width: 768px) {
  /* Zajištění, že se žádný obsah nepřelije */
  body *,
  html body * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Obecné sekce */
  body .section,
  html body .section {
    padding: 40px 0 !important;
    overflow-x: hidden !important;
  }

  body .section-header,
  html body .section-header {
    margin-bottom: 30px !important;
    padding: 0 10px !important;
  }

  body .section-header h2,
  html body .section-header h2 {
    font-size: 24px !important;
    margin-bottom: 15px !important;
  }

  /* Kontejnery */
  body .container,
  html body .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
  }

  /* CTA sekce */
  body .cta,
  html body .cta {
    padding: 40px 0 !important;
    text-align: center !important;
  }

  body .cta h2,
  html body .cta h2 {
    font-size: 22px !important;
    margin-bottom: 15px !important;
    padding: 0 15px !important;
  }

  body .cta p,
  html body .cta p {
    font-size: 16px !important;
    padding: 0 15px !important;
  }

  /* Footer */
  body .footer-grid,
  html body .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 25px !important;
  }

  /* Zpět nahoru */
  body .back-to-top,
  html body .back-to-top {
    bottom: 20px !important;
    right: 20px !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 18px !important;
  }
}

/* ===== VELMI MALÉ DISPLEJE ===== */
@media (max-width: 576px) {
  body .container,
  html body .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body .hero-text h1,
  html body .hero-text h1 {
    font-size: 24px !important;
  }

  body .solution-card,
  body .service-card,
  html body .solution-card,
  html body .service-card {
    padding: 18px !important;
  }

  body .solutions-grid,
  body .services-grid,
  html body .solutions-grid,
  html body .services-grid {
    gap: 25px !important;
  }
}

/* ===== TABLET ÚPRAVY ===== */
@media (min-width: 769px) and (max-width: 992px) {
  .solutions-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }

  .hero-content {
    flex-direction: column !important;
  }

  .hero-text h1 {
    font-size: 32px !important;
  }

  .client-logos {
    flex-wrap: wrap !important;
    justify-content: center !important;
    gap: 20px !important;
  }
}

/* ===== PŘÍSTUPNOST A INTERAKCE ===== */
@media (max-width: 768px) {
  /* Zajištění dostatečného prostoru pro dotyk */
  .hamburger {
    min-width: 44px !important;
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .main-nav a {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
  }

  .btn {
    min-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Scrollovatelný obsah */
  .main-nav.active {
    max-height: 70vh !important;
    overflow-y: auto !important;
  }
}