          :root{
        --bg:#1a1a1a; --glass-1:#f7f8fa21; --glass-2:#3b83f621;
        --accentA:#ffffff; --accentB:#3b82f6;
        --mono: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
      }
html,body {
          height:100%;
          background:var(--bg);
          font-family:var(--mono);
          color:#ffffff;
}
.three-wrap {
       position:fixed;
        width:100vw;
        height:100vh;
        overflow:hidden;
        display: block !important;
}
.cta {
      color:#ccccccff;
      cursor: default;
      border: none;

}
.cta:hover {
      color:#ffffff;
      text-shadow: #ccccccff 0 0 8px;
      cursor: default;
}
.desktop-nav {
        display:flex;
        gap:10px;
        align-items:center
}
.scorpio_odkaz {
      color:#ccccccff;
      margin: 10px 5px;
      font-size: 16px;
      font-weight: 600;
}
      .app {
        height:100vh;
        display:flex;
        flex-direction:column;
        overflow:hidden;
        position:relative;
      }
      header {
        height:92px;
        padding:16px 36px;
        display:flex;
        align-items:center;
        justify-content:space-between;
        background:transparent;
        z-index:40;
      }
      .brand {
        display:flex;
        align-items:center;
        gap:14px;
      }
    .sesty_nadpis {
      font-size: 700;
      color: #ffffff;
      cursor: default;
    }

.modern_text {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        text-align: center;
        font-size: 25px;
        font-weight: 500;
        cursor: default;
}
.button {
        margin-top:18px;
        display:flex;
        gap:12px;
        justify-content:center
}
.div_obrazek {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
}
.obrazek {
        width: 100%;
        height:100%
        padding: 10px;    
}
.social-media {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 30px; margin: 20px 10px;
        width: 100%;
        flex-wrap: wrap;
}
      nav a {
        color: rgba(255,255,255,0.6);
        text-decoration:none;
        margin:0 12px;
        font-weight:600;
        opacity:.95;
      }
      nav a:hover {
        opacity:1
      }
      
      /* horizontal scroll container */
      .hscroller {
        display:flex;
        overflow-x:auto;
        overflow-y:hidden;
        scroll-snap-type:x mandatory;
        scroll-behavior:smooth;
        position:relative;
        z-index:20;
        scroll-padding: 0;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
      }
      
      /* Hide scrollbar for Chrome, Safari and Opera */
      .hscroller::-webkit-scrollbar {
        display: flex;
      }
      
      /* Prevent vertical scrolling on mobile */
      @media (max-width: 900px) {
        body {
          position: fixed;
          width: 100%;
          height: 100%;
          overflow: hidden;
        }
        .hscroller {
          scroll-snap-type: x mandatory;
          scroll-snap-stop: always;
          overflow-x: scroll;
          overscroll-behavior-x: contain;
          touch-action: pan-x pinch-zoom;
          -webkit-overflow-scrolling: touch;
        }
      }
      .sesty_nadpis {
        color: #aa8541;
      }
      .panel {
        flex:0 0 100%;
        min-width:100%;
        height:calc(100vh - 92px);
        min-height: -webkit-fill-available; /* iOS height fix */
        display:flex;
        align-items:center;
        justify-content:center;
        flex-direction:column;
        gap:18px;
        padding:48px;
        box-sizing:border-box;
        backdrop-filter:blur(16px) saturate(140%);
        background:linear-gradient(180deg,var(--glass-1),var(--glass-2));
        border-right:1px solid rgba(255,255,255,0.04);
        scroll-snap-align:start;
        scroll-snap-stop: always;
        position:relative;
        overflow:hidden;
        touch-action: pan-x; /* Povolí pouze horizontální touch scrollování */
      }
      
      /* Zajistí správnou výšku na iOS zařízeních */
      @supports (-webkit-touch-callout: none) {
        .panel {
          height: -webkit-fill-available;
        }
      }
      h1 {
        font-size:48px;
        margin:0;
        letter-spacing:-0.02em;
      }
      p {
        max-width:820px;
        text-align:center;
        color:rgba(255,255,255,0.78);
        line-height:1.5;
      }

      /* animated decorative blobs */
      .blob {
        position:absolute;
        border-radius:999px;
        filter:blur(60px);
        opacity:.7;
        mix-blend-mode:screen;
        pointer-events:none;
        z-index:15;
      }
      .blob.a {
        width:520px;
        height:520px;
        left:-8%;
        top:6%;
        background:linear-gradient(135deg,#ffffff);
        animation:blobMove 18s infinite;
      }
      .brand-text {
        display: flex;
        flex-direction: column;
      }
      .blob.b {
        width:420px;
        height:420px;
        right:-6%;
        top:-6%;
        background:linear-gradient(135deg,#3b82f6);
        animation:blobMove 22s infinite reverse;
      }
      @keyframes blobMove {
        0% {
          transform:translate(0,0) scale(1)
        }33% {
          transform:translate(40px,-30px) scale(1.05)
        }66% {
          transform:translate(-30px,20px) scale(.98)
        }100% {
          transform:translate(0,0) scale(1)
        }
      }

      /* custom horizontal scrollbar */
      .hscroller::-webkit-scrollbar {
        height:5px
      }
      .hscroller::-webkit-scrollbar-track {
        background:linear-gradient(90deg,rgba(255,255,255,0.02),rgba(255,255,255,0.01));
        border-radius:8px
      }
      .hscroller::-webkit-scrollbar-thumb {
        border-radius:8px;
        background:linear-gradient(90deg,var(--accentA),var(--accentB));
        box-shadow:0 2px 6px rgba(0,0,0,0.5);
      }
      .card {
        width:min(920px,92%);
        padding:28px;
        border-radius:18px;
        border:1px solid rgba(255, 255, 255, 0);
        background:linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
        backdrop-filter:blur(16px);
        box-shadow:0 30px 80px rgba(0,0,0,0.6);
        position:relative;
        z-index:30;
      }
      .la:hover {
        animation: none !important;
        transform: scale(2.2);
        transition: transform 0.3s ease;
      }
      .la {
        scale: 1;
        font-size: 40px;
        transition: transform 0.3s ease;
      }
      .modern_text {
        color: var(--accentB);
        font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      }

      .cta {
        padding:12px 20px;
        border-radius:14px;
        border:1px solid rgba(255, 255, 255, 0);
        color:#3b82f6;
        background:linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
        backdrop-filter:blur(12px);
        cursor:pointer;
        font-weight:700;
      }
      .desktop-nav {
        display:none;
      }
      /* scratch reveal overlay for logo */
      .logo-scratch {
        position:relative;
        width:72px;
        height:72px;
        border-radius:18px;
        overflow:hidden;
      }
      .nav a, .mobile-menu a {
        text-decoration:none;
        padding:20px 6px;
        display:inline-block;
        color:inherit;
      }
      .scorpio_odkaz{
        color:#aa8541;
        font-size: 15px;
        font-weight: 500;
      }
      .modern_text {color:#ffffff;}
    @keyframes slideDown {
      from { opacity: 0; transform: translateY(-6px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .modern {
      color: var(--accentB);
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      font-weight: 800;
    }
       /* responsive website for mobile */
      @media (max-width: 650px) {
        header {
          padding: 12px 18px;
        }
        .brand-text {
          display: none;
        }
        .desktop-nav {
          display: none;
        }
      }
      @media (max-width:535px){
        .desktop-nav .nav {
          display: none;
        }
      }
      @media (min-width:258px) and (max-width:481px ){
        .card {
          width: min(920px, 92%);
          height: auto;
          padding: 28px;
          border-radius: 18px;
          border: 1px solid rgba(255, 255, 255, 0);
          background-color: rgb(0, 0, 0);
          position: relative;
          z-index: 30;
          opacity:40%;
          color: #05060a;
          scroll-behavior: none;
        }
        .sesty_nadpis { 
            font-size: 700;
            color: #ffffff;
        }
      }
      @media (min-width: 481px) and (max-width:641px) {
        .card {
          width: min(920px, 92%);
          height: auto;
          padding: 28px;
          border-radius: 18px;
          border: 1px solid rgba(255, 255, 255, 0);
          background-color: rgb(0, 0, 0);
          position: relative;
          z-index: 30;
          opacity:40%;
          color: #05060a;
          scroll-behavior: none;
        }
        .sesty_nadpis { 
            font-size: 700;
            color: #ccccccff;
        }
      }
      @media (min-width: 641px) and (max-width:961px) {
        .card {
          width: min(920px, 92%);
          height: auto;
          padding: 28px;
          border-radius: 18px;
          border: 1px solid rgba(255, 255, 255, 0);
          background-color: rgb(0, 0, 0);
          position: relative;
          z-index: 30;
          opacity:40%;
          color: #05060a;
          scroll-behavior: none;
        }
        .sesty_nadpis { 
            font-size: 700;
            color: #ffffff;
        }
      }
      @media (min-width: 961px) and (max-width:1025px) {
        .card {
          width: min(920px, 92%);
          height: auto;
          padding: 28px;
          border-radius: 18px;
          border: 1px solid rgba(255, 255, 255, 0);
          background-color: rgb(0, 0, 0);
          position: relative;
          z-index: 30;
          opacity:40%;
          color: #05060a;
          scroll-behavior: none;
        }
        .sesty_nadpis { 
            font-size: 700;
            color: #ffffff;
        }
    }
      @media (min-width: 1025px) {
        .blob.a {
          display: none;
        }
        .blob.b {
          display: none;
        }
        .desktop-nav {
          display: flex;
          gap: 10px;
          align-items: center;
        }
        .card {
          background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
          backdrop-filter: blur(16px);
          color: #ffffff;
        }
        .sesty_nadpis { 
            font-size: 700;
            color: #ccccccff;
        }
      }
      @media (max-height:1300px) and (max-width:388px) {
        h1, .modern_text, .modern {
          font-size: 25px;
          display: flex;
          text-align: center;
          justify-content: center;

        }
        .card {
          width: min(920px, 92%);
          height: auto;
          padding: 28px;
          border-radius: 18px;
          border: 1px solid rgba(255, 255, 255, 0);
          background-color: rgb(0, 0, 0);
          z-index: 30;
          opacity: 40%;
          color: #05060a;
          scroll-behavior: none;
        }
        .modern_text {
          text-align:center;
          font-size: 0.5rem;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          gap: 6px;
          padding: auto;
          margin:10px;
          line-height: 1.2;
        }
        .cta {
          padding: 8px 14px;
          border-radius: 14px;
          border: 1px solid rgba(255, 255, 255, 0);
          color: #3b82f6;
          background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
          backdrop-filter: blur(12px);
          cursor: pointer;
          font-weight: 700;
          font-size: 12px;
        }
      }
      @media (max-height: 470px) {
        .card {
          margin: 10px;
          size: 20px;
        }
      }
      @media (max-height:785px) {
        .card {
          margin: 2px;
          size: 20px;
        }
        .obrazek {
          width: 45%;
          height: auto;
        }
        .scorpio_odkaz {
          font-size: 12px;
        }
        
      }
      @media (max-height: 600px) {
        .card {
          margin: 2px;
          size: 20px;
        }
        .obrazek {
          width: 40%;
          height: auto;
        }
        .modern {
          display: flex;
          text-align: center;
          justify-content: center;
          font-size: 30px;
          padding: none;
        }
        .modern_text {
          text-align: center;
          font-size: 15px;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          gap: 6px;
        }
      }
      @media (min-height: 400px) {
        .card {
          margin: 2px;
          size: 20px;
        }
        .obrazek {
          width: 40%;
          height: auto;
        }
        .modern {
          display: flex;
          text-align: center;
          justify-content: center;
          font-size: 25px;
          padding: none;
        }
        .modern_text {
          text-align: center;
          font-size: 12px;
          display: flex;
          justify-content: center;
          align-items: center;
          flex-direction: column;
          gap: 6px;
        }
        .social-media box-icon {
          width: 20px;
          height: 20px;
        }
      }


      /* hamburger  */
      .hamburger-button {
            display: none; 
            cursor: pointer;
            padding: 10px;
            z-index: 101; 
            transition: all 0.3s ease;
        }

        .hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
            display: block;
            width: 30px;
            height: 3px;
            background-color: var(--accentA);
            border-radius: 3px;
            transition: all 0.3s ease-in-out;
        }

        .hamburger-icon {
            position: relative;
        }

        .hamburger-icon::before, .hamburger-icon::after {
            content: '';
            position: absolute;
        }

        .hamburger-icon::before {
            transform: translateY(-8px);
        }

        .hamburger-icon::after {
            transform: translateY(8px);
        }

        /* Animace na křížek (X) */
        .hamburger-button.open .hamburger-icon {
            transform: rotate(45deg);
            background-color: transparent; 
        }

        .hamburger-button.open .hamburger-icon::before {
            transform: rotate(0) translateY(0);
        }

        .hamburger-button.open .hamburger-icon::after {
            transform: rotate(-90deg) translateY(0);
        }

        .mobile-menu {
            position: fixed;
            top: 92px; 
            right: 0;
            width: 100%;
            height: calc(100vh - 92px);
            background: rgba(0, 0, 0, 0.238);
            backdrop-filter: blur(16px);
            z-index: 90; 
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: flex-start; 
            padding-top: 50px;
            transform: translateX(100%); 
            transition: transform 0.3s ease-in-out;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        }

        .mobile-menu.open {
            transform: translateX(0); 
        }

        .mobile-menu a {
            font-size: 24px;
            padding: 15px 0;
            width: 80%;
            text-align: center;
            color: var(--accentA);
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            transition: color 0.2s ease;
        }
        .mobile-menu a:hover {
            color: var(--accentB);
        }
        .mobile-menu a:last-child {
            border-bottom: none;
        }


        /* --- RESPONSIVNÍ PRAVIDLA (Zobrazení/skrytí pro mobil) --- */

        @media (max-width: 1024px) {
            .desktop-nav {
                display: none !important;
            }
            .hamburger-button {
                display: block; 
            }
            .three-wrap {
                display: none !important; /* Skryje 3D objekt pro šířky <= 1024px */
            }
        }

        @media (min-width: 650px) {
            .hamburger-button {
                display: none; 
            }
            .desktop-nav {
                display: flex !important; 
                gap: 10px;
                align-items: center;
            }
            .brand-text {
                display: block;
            }
        }

  /* ------------------------------------------------------------------ */
  /* Improved responsive breakpoints (mobile -> tablet -> desktop -> wide) */
  /* These override and refine earlier rules to ensure consistent layout */
  /* ------------------------------------------------------------------ */

  /* Base adjustments for very small phones */
  @media (max-width: 420px) {
    html { font-size: 14px; }
    header { height: 72px; padding: 10px 14px; position: fixed; width: 100%; top: 0; left: 0; box-sizing: border-box;}
    .brand-text { display: none; }
    .hamburger-button { display: block; }
    .desktop-nav {display: none; }
    .panel { 
      padding: 20px;
      height: 100vh;
      min-height: -webkit-fill-available;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
      scroll-snap-align: start;
      scroll-snap-stop: always;
    }
    .card { 
      width: calc(100% - 28px);
      padding: 18px;
      border-radius: 14px;
      box-shadow: 0 18px 50px rgba(0,0,0,0.55);
      max-height: calc(100vh - 120px);
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
    }
    h1 { font-size: 28px; }
    p { font-size: 0.9rem; }
    .obrazek { width: 80%; }
    .three-wrap { display: none; }
    /* Zajistí, že obsah je vždy viditelný pod fixed header */
    .app { padding-top: 72px; }
  }


  /* Tablet portrait / small tablets */
  @media (min-width: 680px) and (max-width: 1024px) {
    .card { width: min(760px, 90%); padding: 22px; }
    .panel { padding: 36px; }
    .desktop-nav { display: flex !important; gap: 10px; align-items: center; color:(255,255,255,0.6);}
  }

  /* Wide desktop / large screens */
  @media (min-width: 1025px) {
    .card {
      display: block;
      color:#ccccccff;
      justify-content: center;
      align-items: center;
      width: min(1100px, 45%); 
      margin: auto;
      padding: 32px;
      backdrop-filter: none;
      backdrop-filter: blur(5px);
      border-radius: 16px;
      background: none;

    }
    .scorpio_odkaz {
      color:#ccccccff;
      font-size: 18px;
      font-weight: 600;
      text-decoration: none;
      margin-left: 20px;
      border-radius: 16px;
    }
    .scorpio_odkaz:hover {
        color:#ffffff;
        text-shadow: #ffffff 0 0 8px;
        text-decoration: none;
    }
    .modern {
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      text-align: center;
      font-size: 48px;
      display: flex;
      margin: 10px 0;
      opacity:30%;
      justify-content: center;
      align-items: center;
      cursor: default;
      font-weight: 800;
    }
    .desktop-nav {
          backdrop-filter:blur(16px);
          border-radius: 16px;
          cursor: default;
          color:#ccccccff;
    }
    .desktop-nav a:hover {
      color: #ffffff;
      text-shadow: #ffffff 0 0 8px;
      cursor: default;
    }
    .nav a {
      opacity: .8px;
    }
    
    .panel { 
      padding: 64px;
      backdrop-filter: none;
      background: none;
    }
    .vojta{
      color:#ccccccff;
    }
    .vojta:hover{
      color:#ffffff;
      text-shadow: #ffffff 0 0 8px;
      cursor: pointer;
    }
    .brand-text {
      backdrop-filter: blur(16px);
      margin:4px;
      padding:6px;
      border-radius: 16px;
    }
    .logo-rotate {
      backdrop-filter: blur(16px);
      margin:1px;
      border-radius: 50%;
      position: relative;
      cursor: default !important;
      top: 3px;
    }
    .logo-rotate:hover {
      animation: none !important;
      transform: rotate(360deg);
      transition: transform 0.6s ease;
      cursor: default !important;
    }
    body {
      background-color: #2362de;
    }
  }





