* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}
section {
    width: 100%;
    max-width: 300000px;
}
main {
    margin-left: 0;
}
body {
    line-height: 1.8;
    overflow-x: hidden;
}
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100vh;
    padding: 0 50px;
    background: linear-gradient(to left, #ff7340, #ffad8f);
    position: relative;
    flex-direction: row;
    margin-left: 60px;
    margin-right: 60px;
}
.hero-content {
    max-width: 50%;
    margin-left: 60px;
    text-align: left;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.hero-image {
    max-width: 25%;
    overflow: hidden;
}
.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.scroll-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0);
}
.scroll-button:hover {
    color: #f1f1f1;
    background-color: transparent;
}
@keyframes bounce {
    0%,100% {
        transform: translate(-50%, 0);
    }
    50% {
        transform: translate(-50%, 10px);
    }
}
#predmety {
    min-height: 100vh;
    padding: 50px 20px;
    text-align: center;
    border: 15px solid #ff7340;
    border-radius: 40px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}
#predmety::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-color: #fff;
    border-radius: 20px;
    z-index: -1;
}
.sometimes-invisible {
    visibility: visible;
}
.hero-pc {
    display: block;
    margin-right: 60px;
}
.hero-mob {
    display: none;
}
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 0;
        height: 100vh;
    }
    .hero-image {
        max-width: 100%;
        width: 100vw;
        height: 350px;
        overflow: hidden;
        border-radius: 10px;
    }
    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 0;
    }
    .hero-pc {
        display: none;
        margin-right: 0;
    }
    .hero-mob {
        display: block;
        width: 250px;
        height: 250px;
        margin-left: auto;
        margin-right: auto;
    }
    .hero-content {
        max-width: 100%;
        padding: 20px;
        margin: 0;
        text-align: center;
    }
    .hero h1 {
        font-size: 2.5rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
    .sometimes-invisible {
        visibility: hidden;
    }
    .hero-content p {
        margin-top: 20px;
    }
}
@media (min-width: 769px) {
    .hero {
        flex-direction: row-reverse;
    }
    .scroll-button {
        font-size: 3rem;
    }
}
