:root {
    --zluta: #ddba44;
    --modra: #98C8DF;
    --ruzova: #DF98C8;

    --text: #000;
    --pozadi: #FDFDFD;
    --seda-svetla: #EAEDF0;
    --seda-tmava: #31373D;
}

p {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text);
}

a {
    text-decoration: none;
    transition: 0.2s;
}

.wrapper {
    max-width: 1000px;
    padding: 0px 10px 0px 10px;
    margin: auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body {
    font-family: "Dosis", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    margin: 0px;
    background-size: cover;
    background-position: center;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.8) 0 100%), url("img/aktuality_sekce.webp");
    background-size: cover;
}




header {
    background-color: var(--seda-svetla);
    height: 40px;
}

header .wrapper {

    display: flex;
    align-items: center;
    justify-content: space-between;
}

header .logo {
    font-weight: 600;
    font-size: 1.3em;
    white-space: nowrap;
}

header nav {
    display: flex;
}

header nav a {
    color: var(--text);
    padding: 5px 15px;
    border-radius: 50px;
}

header nav a:hover {
    background-color: var(--ruzova);
}

/* Menu Toggle Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: #31373D;
    border-radius: 10px;
    transition: all 0.3s ease;
}


/* Section hero */

#hero h1 {
    font-size: 5em;
    margin: 20px 0px 20px 0px;
}

#hero h1 span {
    color: var(--modra);
}

#hero .text {
    width: 40%;
    min-width: 400px;
}

#hero .text p {
    font-size: 1.2em;
}

#hero .image {
    display: flex;
    justify-content: flex-end;
}

#hero .image img {
    height: 450px;
    object-fit: contain;
}

/* -----------------------*/


/* Section o nas */

#o-nas .wrapper {
    background-color: var(--seda-svetla);
    border-radius: 15px;
}

#o-nas img {
    height: 450px;
}

#o-nas h2 {
    font-size: 2.5em;
    font-weight: 600;
    margin: 20px 0px 20px 0px;
}

#o-nas .wrapper-text {
    padding: 0px 10px 0px 10px;
}

#o-nas .wrapper-text .text {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 20px;
}

#o-nas .wrapper-text .text p {
    flex: 1;
    margin: 0px;
}

#o-nas .wrapper-info {
    display: flex;
}

#o-nas .wrapper-info .info {
    position: relative;
}

#o-nas .wrapper-info .info:nth-child(1) {
    padding-right: 20px;
}


#o-nas .wrapper-info .info:nth-child(2) {
    padding-left: 20px;
    padding-right: 20px;
}

#o-nas .wrapper-info .info:nth-child(3) {
    padding-left: 15px;
}

#o-nas .wrapper-info .info:nth-child(1)::after,
#o-nas .wrapper-info .info:nth-child(2)::after {
    content: "";
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #ccc;
}

#o-nas .wrapper-info .info p {
    margin: 0px;
    font-weight: 800;
}

#o-nas .wrapper-info .info p:last-child {
    font-size: 0.8em;

}

#o-nas .wrapper-info .info:nth-child(1) p {
    color: var(--zluta);

}

#o-nas .wrapper-info .info:nth-child(2) p {
    color: var(--modra);
}

#o-nas .wrapper-info .info:nth-child(3) p {
    color: var(--ruzova);
}

#o-nas .wrapper-info .info p:first-child {
    font-size: 1.5em;
}


/* -----------------------*/

/* Aktuality */

#aktuality .wrapper {
    flex-direction: column;
    max-width: 1020px;
}

#aktuality .top-text {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

#aktuality .top-text h2 {
    font-size: 2.5em;
}

#aktuality .top-text a,
#aktuality .wrapper-aktuality .box a {
    color: var(--modra);
    transition: 0.3s;
    font-weight: 600;
}


#aktuality .top-text a:hover,
#aktuality .wrapper-aktuality .box a:hover {
    color: var(--ruzova);
}


#aktuality .wrapper-aktuality {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

#aktuality .wrapper-aktuality .box {
    background-color: var(--seda-svetla);
    border-radius: 15px;
    padding: 25px;
}

#aktuality .wrapper-aktuality .box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
}

#aktuality .wrapper-aktuality .box .datum {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#aktuality .wrapper-aktuality .box .datum img {
    width: 20px;
    height: 20px;
}

#aktuality .wrapper-aktuality .box .datum p {
    color: var(--ruzova);
    font-weight: 600;
    font-size: 0.8em;
}

#aktuality .wrapper-aktuality .box hr {
    width: 90%;
    opacity: 0.3;
    margin: 20px 0px 20px 0px;
}

#aktuality .wrapper-aktuality .box h3 {
    margin: 0px 0px 5px 0px;
}


/* -----------------------*/


/* footer */

footer {
    background-color: var(--seda-tmava);
    margin-top: 50px;
}

footer a,
footer p,
footer h4,
footer h5 {
    color: var(--seda-svetla);
}

footer .wrapper {
    flex-direction: column;
    max-width: 1020px;
}

footer .wrapper-box {
    display: flex;
    flex-direction: row;
    gap: 25px;
}

footer .wrapper-box .box {
    flex: 1;
    display: flex;
    flex-direction: column;
}

footer .wrapper-box .box h4 {
    color: var(--modra);
}

footer .wrapper-box .box p {
    margin: 0px;
}

footer .wrapper-box .box .socky {
    margin-top: 20px;
}

footer .wrapper-box .box .socky img {
    width: 50px;
}

footer .wrapper-box .box:nth-child(2) a {
    margin-bottom: 10px;
}

footer .wrapper-box .box:nth-child(2) a:hover {
    color: var(--ruzova);
}

footer .wrapper-box .box:nth-child(3) div {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 10px;
}

footer .wrapper-box .box:nth-child(3) img {
    width: 25px;
}

footer hr {
    width: 100%;
    opacity: 0.3;
    margin: 40px 0px 20px 0px;
}

footer .copy {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

/* -----------------------*/

/* Mobile styles */
@media (max-width: 768px) {
    header {
        height: 60px;
    }

    header .wrapper {
        flex-direction: row;
    }

    .menu-toggle {
        display: flex;
    }

    header nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--pozadi);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: 0.4s ease-in-out;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        gap: 20px;
    }

    header nav.active {
        right: 0;
    }

    header nav a {
        font-size: 1.5em;
        width: 100%;
        text-align: center;
    }

    .wrapper {
        flex-wrap: wrap;
        flex-direction: column;
        justify-content: center;
    }

    #hero .image {
        width: 100%;
    }

    #hero .image img {
        width: 100%;
        height: auto;
    }

    #hero .text {
        min-width: 100%;
    }

    #hero .text h1 {
        font-size: 4em;
        text-align: center;
    }

    #hero .text p {
        text-align: center;
    }

    #o-nas img {
        width: 100%;
        height: auto;
        order: 2;
    }

    #o-nas .wrapper-text h2 {
        text-align: center;
    }

    #o-nas .wrapper-text .text {
        flex-direction: column;
        text-align: center;
    }

    #o-nas .wrapper-text .wrapper-info {
        justify-content: center;
    }

    #aktuality .wrapper-aktuality {
        flex-direction: column;
    }

    #aktuality .top-text h2 {
        font-size: 2em;
    }

    footer .wrapper-box {
        flex-direction: column;
    }

    footer .wrapper-box .box {
        align-items: center;
    }
}