 body {
   margin: 0;
   padding: 0;
   display: flex;
   flex-direction: column;
   min-height: 100vh;
  }

  .naglowek {
   width: 100%;
   top: 10;
   position: absolute;
   padding: 10px;
   background-color: rgba(0, 0, 0, 0);
   
   color: white;
   z-index: 999;
   display: flex;
   align-items: center;
   justify-content: space-between;
   box-sizing: border-box;
  }

  .naglowek h1 {
   font-family: 'Montserrat';
   margin: 0;
   margin-left: 30px;
  }

  .menu-btn {
   margin-right: 30px;
   width: 44px;
   height: 44px;
   border-radius: 10px;
   background: rgba(255,255,255,0.12);
   border: 1.5px solid rgba(255,255,255,0.35);
   backdrop-filter: blur(6px);
   -webkit-backdrop-filter: blur(6px);
   cursor: pointer;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 5px;
   flex-shrink: 0;
   transition: background 0.2s, border-color 0.2s, transform 0.15s;
   z-index: 1001;
   margin-top: 10px;
  }

  .menu-btn:hover {
   background: rgba(255,255,255,0.22);
   border-color: rgba(255,255,255,0.6);
   transform: scale(1.05);
  }

  .menu-btn span {
   display: block;
   width: 20px;
   height: 2px;
   background: white;
   border-radius: 2px;
   transition: transform 0.3s, opacity 0.3s;
   transform-origin: center;
  }

  .menu-btn.open span:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
  }
  .menu-btn.open span:nth-child(2) {
   opacity: 0;
   transform: scaleX(0);
  }
  .menu-btn.open span:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
  }

  .menu-panel {
   position: fixed;
   top: 74px;
   right: 30px;
   width: 280px;
   background: rgba(15, 15, 15, 0.82);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border: 1px solid rgba(255,255,255,0.15);
   border-radius: 14px;
   padding: 24px 22px;
   z-index: 1000;
   box-shadow: 0 8px 32px rgba(0,0,0,0.45);
   font-family: 'Montserrat', sans-serif;
   color: white;
   opacity: 0;
   transform: translateY(-10px) scale(0.97);
   pointer-events: none;
   transition: opacity 0.25s ease, transform 0.25s ease;
  }

  .menu-panel.open {
   opacity: 1;
   transform: translateY(0) scale(1);
   pointer-events: all;
  }

  .menu-panel p {
   margin: 0 0 16px 0;
   font-size: 13px;
   line-height: 1.7;
   color: rgba(255,255,255,0.8);
   padding-bottom: 16px;
   border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .menu-panel p:last-child {
   margin-bottom: 0;
   padding-bottom: 0;
   border-bottom: none;
  }

  .menu-panel p strong {
   display: block;
   font-size: 11px;
   text-transform: uppercase;
   letter-spacing: 0.12em;
   color: rgba(255,255,255,0.45);
   margin-bottom: 4px;
  }

  .blad {
   flex: 1;
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: flex-start;
   position: relative;
   overflow: hidden;
   min-height: 100vh;
   padding: 100px 20px 40px;
   box-sizing: border-box;
   box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  }

  .profile-card {
   display: flex;
   flex-direction: row;
   align-items: center;
   justify-content: center;
   gap: 24px;
   z-index: 1;
   max-width: 700px;
   width: calc(100%-32px);
   padding: 0 16px;
   
  }

  .profile-photo {
   width: 120px;
   height: 120px;
   border-radius: 100%;
   object-fit: cover;
   border: 1.5px solid rgba(255,255,255,0.35);
   flex-shrink: 0;
   background: rgba(255,255,255,0.08); 
   transition: transform 0.2 ease;
  }
  
  .profile-photo.hover {
   transform: scale(1.08);
  }
  
  .bio {
   background-color: rgba(15, 15, 15, 0.82);
   border: 1.5px solid rgba(255,255,255,0.35);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border-radius: 14px;
   padding: 22px 26px;
   color: white;
   font-family: 'Montserrat', sans-serif;
   flex: 1;
   min-width: 0;
  }

  .bio h2 {
   margin: 0 0 6px 0;
   font-size: 18px;
   font-weight: 700;
   letter-spacing: 0.04em;
  }

  .bio p {
   margin: 0;
   font-size: 13px;
   line-height: 1.7;
   color: rgba(255,255,255,0.75);
  }

  @media (max-width: 520px) {
   .profile-card {
    flex-direction: column;
    align-items: center;
   }

   .profile-photo {
    width: 90px;
    height: 90px;
   }

   .bio {
    width: 100%;
   }
  }

  .footer {
   bottom: 0;
   left: 0;
   background-color: black;
   padding: 10px;
   text-align: center;
   color: white;
  }

.programy {
  display: flex;
  flex-direction: row;
  gap: 50px;
  justify-content: center;
  max-width: 700px;
  width: 100%;
  margin-top: 20px;
  
}

.programy img {
  width: calc(15% - 11px);
  object-fit: cover;
}