.onas-intro {
    display: flex;
    /* background-color: #f0f0f0; */
    color: #333;
    align-items: center;
    min-height: 75vh;
    padding: 50px 0;
    max-width: 100vw;
}

.onas-left {
    width: 50%;
    padding: 5% 3% 5% 8%;
    animation: fadeIn 1s ease-out forwards;
    font-size: 20px;
    padding: 0 10vw;
    display: flex;
    flex-direction: column;
}

.onas-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.onas-left h1 {
    font-size: 32px;
    color: #b30000;
}

.onas-left img {
    height: 45px;
}

.onas-left p {
    margin-bottom: 20px;
}

.scroll {
    color: #b30000;
    text-decoration: none;
}

.scroll:hover {
    text-decoration: underline;
}

.scroll::after {
    content: '↓';
    display: inline-block;
    margin-left: 20px;
    transition: transform 0.3s ease;
}
  
.scroll:hover::after {
    transform: translateY(5px);
}

html {
    scroll-behavior: smooth;
}

.onas-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 50%;
    gap: 70px;
    padding: 100px 100px;
}

.onas-box {
    font-size: 20px;
    animation: fadeIn 1s ease-out forwards;
}

.onas-box h2 {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-size: 22px;
    margin-bottom: 10px;
    display: inline-block;
}

.onas-box h2::after {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    bottom: -5px;                 /* uprav podle vizuálu */
    height: 3px;                  /* tloušťka čáry */
    width: 90%;
    background: rgba(202, 11, 11, 0.95);
    transform-origin: left center;
    transform: scaleX(0);
    animation: underline-grow 0.9s cubic-bezier(.2,.8,.2,1) forwards;
    animation-delay: 0.5s;
    z-index: 2;
}

.onas-box img {
    height: 28px;
    margin-right: 10px; ;
}

.focus-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: center;
    justify-items: center;
    width: 100vw;
    padding: 200px 15vw;
    max-width: 100%;
    background-color: #cccccc;
}
  
.focus-item {
    position: relative;
    width: 100%;
    max-width: 500px;
    aspect-ratio: 2/3;
    border-radius: 5px;
    overflow: hidden;
}
  
.focus-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 2s ease;
    animation: fadeIn 2s ease-out;
    display: block;
    z-index: 0;
    position: relative;
}
 
.focus-item:hover img {
    transform: scale(1.2);
}
  
.focus-item h3 {
    position: absolute;
    bottom: 15%;
    left: 10%;
    color: white;
    font-size: clamp(1.2rem, 2vw, 3rem);
    font-weight: bold;
    transition: transform 0.5s ease;
    z-index: 2;
}
  
.focus-item:hover h3 {
    transform: translateY(-150%);
}
  
.focus-item p {
    position: absolute;
    bottom: 25%;
    left: 10%;
    color: white;
    font-size: clamp(0.9rem, 1vw, 2rem);
    opacity: 0;
    visibility: hidden;
    line-height: 1.5;
    transition: opacity 0.5s ease, visibility 0s linear 0.5s;
}
  
.focus-item:hover p {
    opacity: 1;
    visibility: visible;
    transition: opacity 2s ease, visibility 1s linear 0s;
}

.focus-item::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%; /* nebo jiná výška dle potřeby */
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.focus-item h3,
.focus-item p {
    position: relative;
    z-index: 2;
}


@keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
}

@keyframes underline-grow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}