  * {box-sizing: border-box}
  html, body {height: 100%; margin: 0;}

  body {
    display: flex;
    flex-direction: column;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    line-height: 1.4;
  }

  .content-wrapper {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding-bottom: 1.5rem;
  }

  .content-wrapper .breadcrumb{
    margin-bottom: 1.5rem;
  }

  .section {
    flex: 1 1 33.333vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem;
  }

  .top    { background: #0c1838; color: #ffffff; }
  .middle { background: #ffffff; color: #111111; }
  .bottom { background: #0c1838; color: #ffffff; }

  /* Hlavička s logem a nadpisem */
  .header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .header-top img {
    height: 100px;
    width: auto;
  }
  .header-top p {
    margin: 0 5rem;
    font-size: clamp(1.25rem, 2.5vw, 2rem);
  }

  /* Oddělovací čára */
  .divider {
    border-bottom: 2px solid #ffffff;
    margin: 1rem 0;
  }

  /* Menu */
  nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    justify-content: flex-start;
    margin: 0;
    padding: 0;
  }
  nav a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
  }
  nav a:hover {
    color: #ADD8E6;
    text-decoration: none;
  }

  /* Info řádka uprostřed */
  .info-bar {
    background: #9EC8E9;
    padding: 1rem;
    margin: 1rem 0;
    text-align: center;
    border-radius: 4px;
  }

  .info-bar2 {
    background: #9EC8E9;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
    border-radius: 4px;
  }

  /* Dlaždice */
  .tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  /* Dlaždice */
  .tile {
    flex: 1 1 calc(33.333% - 1rem);
    background: #00469B;
    color: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    text-align: center;
  }
  a.tile{
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
  }
  a.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    color: #dceeff;
    text-decoration: none;
  }

  /* Nadpis dlaždice */
  .tile h2 {
    margin-top: 0;
    font-size: 1.5em;
    min-height: 68px;
    text-decoration: none;
  }

  .tile img {
    color: white;
    width: auto;
    height: 50px;
    display: inline-block;
    margin: 1rem 0 1.5rem 0;
  }

  /* Tlačítko v dlaždici */
  .tile span.button, .tile span.buttonX {
    margin-top: 1rem;
    padding: 1.75rem 2.5rem;
    border: none;
    border-radius: 25px;
    background: linear-gradient(135deg, #ffffff, #e6e6e6);
    color: #222222;
    font-weight: bold;
    font-size: 1.17rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    transition: all 0.3s;
    display: inline-block;
  }
  .tile:hover span.button, .tile span.button:hover, .tile:hover span.buttonX, .tile span.buttonX:hover {
    background: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  }


  /* Footer layout */
  .footer-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: space-between;
  }
  .footer-col {
    flex: 1 1 45%;
  }
  .footer-col a{
    color: #ffffff;
  }
  .footer-col a:hover{
    color: #7e7e7e;
  }
  .footer-col a:visited{
    color: #bfbfbf;
  }
  .footer-bottom {
    border-top: 1px solid #555;
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
  }

  h1 { margin: 0; font-size: clamp(1.25rem, 2.5vw, 2rem); }
  h2 { margin: 0; font-size: 1.5em; }
  h3 { margin: 0; font-size: 1.2em; }
  p  { margin: 0.5rem 0 0; opacity: 0.9; }
  a, a:visited{
    text-decoration: underline;
  }
  a:hover{
    text-decoration: underline;
  }

  @media (max-height: 400px) {
    .section { padding: 0.75rem; }
    h1 { font-size: 1rem; }
  }

.buttonX::after {
  content: "✕";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: transparent;
  transition: color 0.3s;
  pointer-events: none;
}

.buttonX:hover::after {
  color: red;
}
