#header {
   width: 100%;
   height: 60vh;
   background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url(../images/about/spolocna1.jpg);
   background-size: cover;
   background-repeat: no-repeat;
   background-position: center top;
   display: flex;
   flex-direction: column;
   align-items: center;
   position: relative;
}

.hero-content {
   position: absolute;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
   text-align: center;
   color: var(--light);
   width: 80%;
}

.hero-content h1 {
   font: 700 4rem var(--heading);
   margin-bottom: 1rem;
   text-shadow: 0 2px 10px rgba(0,0,0,.5);
}

.hero-content p {
   font: 1.5rem var(--sub_heading);
   max-width: 800px;
   margin: 0 auto;
   text-shadow: 0 1px 3px rgba(0,0,0,.5);
}

.about-section {
   padding: 5% 15% 0;
   background-color: var(--light);
}

.about-section.dark {
   padding-top: 2.5%;
   background-color: var(--light);
}

.section-title {
   width: 100%;
   text-align: center;
   margin-bottom: 3rem;
}

.section-title .sub {
   display: block;
   font: 700 1.2rem var(--sub_heading);
   color: var(--primary);
   margin-bottom: 10px;
   text-transform: uppercase;
   letter-spacing: 2px;
}

.section-title h2 {
   font: 700 3rem var(--heading);
   margin-bottom: 20px;
}

.employee-info p,
.section-title .text {
   font: 1.1rem var(--sub_heading);
   line-height: 1.8;
}

.section-title .text {
   width: 100%;
   margin: 0;
   text-align: center;
   color: #666;
}

.employee-single {
   display: flex;
   justify-content: space-between;
   align-items: center;
   margin: 2rem 0;
   gap: 5%;
}

.employee-single.reverse {
   flex-direction: row-reverse;
}

.employee-img {
   flex: 1;
   border-radius: 15px;
   overflow: hidden;
   box-shadow: 0 10px 30px rgba(0,0,0,.15);
}

.employee-img img {
   width: 100%;
   height: auto;
   display: block;
   transition: transform 0.5s;
}

.employee-img:hover img {
   transform: scale(1.05);
}

.employee-info {
   flex: 1;
}

.employee-info h3 {
   font: 700 2rem var(--heading);
   color: var(--primary-dark);
   margin-bottom: 1rem;
}

.employee-info .position {
   font: 1.2rem var(--sub_heading);
   color: var(--primary);
   margin-bottom: 1.5rem;
   display: block;
}

.employee-info p {
   color: #555;
   margin-bottom: 1.5rem;
}

.employee-info .social-links {
   display: flex;
   gap: 15px;
}

.employee-info .social-links a {
   display: block;
   width: 40px;
   height: 40px;
   border-radius: 50%;
   background: var(--light-gray);
   display: flex;
   align-items: center;
   justify-content: center;
   transition: all 0.3s;
}

.employee-info .social-links a:hover {
   background: var(--primary);
   transform: translateY(-3px);
}

.employee-info .social-links a:hover svg {
   fill: var(--light);
}

.values-section {
   display: flex;
   flex-direction: column;
   align-items: center;
}

.values-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 40px;
   margin-top: 30px;
}

.value-card {
   background: var(--light);
   border-radius: 15px;
   padding: 40px 30px;
   text-align: center;
   box-shadow: 0 10px 20px rgba(0,0,0,.05);
   transition: transform 0.3s ease, box-shadow 0.3s ease;
   position: relative;
   overflow: hidden;
}

.value-card:hover {
   transform: translateY(-10px);
   box-shadow: 0 15px 30px rgba(26,115,232,.15);
}

.value-icon {
   width: 90px;
   height: 90px;
   margin: 0 auto 25px;
   display: flex;
   align-items: center;
   justify-content: center;
   border-radius: 50%;
   background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
   color: var(--light);
   font-size: 36px;
   transition: transform 0.3s ease;
}

.value-card:hover .value-icon {
   transform: scale(1.1) rotate(5deg);
   box-shadow: 0 10px 20px rgba(26,115,232,.3);
}

.value-card h3 {
   font-size: 1.8rem;
   margin-bottom: 15px;
   color: var(--primary-dark);
}

.value-card p {
   font-size: 1.1rem;
   color: #666;
   line-height: 1.7;
}

@media screen and (max-width: 768px) {
   .hero-content p,
   .employee-info p,
   .section-title .text,
   .value-card p {
      font-size: 0.9rem;
   }
   
   .section-title h2 {
      font-size: 2rem;
   }
   
   .about-section {
      padding: 10% 5%;
   }
   
   .values-grid {
      grid-template-columns: 1fr;
      gap: 30px;
   }
}

@media screen and (max-width: 480px) {
   .section-title h2 {
      font-size: 1.8rem;
   }
   
   .value-icon {
      width: 80px;
      height: 80px;
      font-size: 30px;
   }
   
   .value-card h3 {
      font-size: 1.6rem;
   }
}

@media screen and (max-width: 1024px) {
   .employee-single,
   .employee-single.reverse {
      flex-direction: column;
      gap: 30px;
   }
   
   .employee-img,
   .employee-info {
      width: 100%;
   }
}

@media screen and (max-width: 768px) {
   .hero-content h1 {
      font-size: 2.5rem;
   }
   
   .section-title h2 {
      font-size: 2.2rem;
   }
}

@media screen and (max-width: 554px) {
   #header {
      background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,.7)), url(../images/about/spolocna1.jpg);
      background-size: cover;
      background-repeat: no-repeat;
      background-position: center top;
   }
}
/* ==========================================
   MOBILNÉ ZALAMOVANIE (PC zostáva nedotknuté)
   ========================================== */

/* Na počítači sa zalamovacie tagy skryjú (text beží plynulo ako doteraz) */
.mobile-br {
   display: none;
}

/* Pravidlá LEN pre mobilné zariadenia (do 768px) */
@media screen and (max-width: 768px) {
   /* Aktivuje zalamovanie riadkov na mobile */
   .mobile-br {
      display: inline;
   }

   /* Nadpis na mobile v jednom riadku */
   .section-title h2 {
      font-size: 1.55rem;
      white-space: nowrap;
   }
}