* {
    margin: 0;
    padding: 0;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Mulish', sans-serif;
}

html,
body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--background);
}

::selection {
    color: white;
    background: #0197d5;
    text-shadow: 1px 1px 2px #0e0e0e;
}

::-webkit-scrollbar {
    background-color: var(--background);
    width: 2vh;
}

::-webkit-scrollbar-thumb {
    background-color: #b7b7b7;
    border-radius: 15px;
}

:root {
    --main: #353261;
    --secondary: #0197d5;
    --text: black;
    --background: #FFFF;
}

#main {
    color: var(--main);
}

#secondary {
    color: var(--secondary);
}

hr {
    width: 90%;
    height: 0.5px;
    align-self: center;
    background-color: rgb(237, 237, 237);
    border: none;
}

hr #hr-footer {
    margin-right: 10%;
}

/*-----------------------------body----------------------------*/
header {
    height: auto;
}

/* Hamburger menu */
.hamburger-menu {
    top: 0;
    display: none;
    z-index: 9999;
    background: var(--background);
    height: 65px;
    position: fixed;
    width: 100%;
    box-shadow: 0px 0px 2.2px rgba(0, 0, 0, 0.006), 0px 0px 5.3px rgba(0, 0, 0, 0.008), 0px 0px 10px rgba(0, 0, 0, 0.01), 0px 0px 17.9px rgba(0, 0, 0, 0.012), 0px 0px 33.4px rgba(0, 0, 0, 0.014), 0px 0px 80px rgba(0, 0, 0, 0.02);
    touch-action: none;
}

.hamburger-menu img {
    width: 50px;
    float: right;
    margin-top: 15px;
    margin-right: 3vh;
}

#menu__toggle {
    opacity: 0;
}

#menu__toggle:checked+.menu__btn>span {
    transform: rotate(45deg);
}

#menu__toggle:checked+.menu__btn>span::before {
    top: 0;
    transform: rotate(0deg);
}

#menu__toggle:checked+.menu__btn>span::after {
    top: 0;
    transform: rotate(90deg);
}

#menu__toggle:checked~.menu__box {
    left: 0 !important;
}

.menu__btn {
    position: fixed;
    top: 30px;
    left: 30px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 1;
}

.menu__btn>span,
.menu__btn>span::before,
.menu__btn>span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--main);
    border-radius: 1px;
    transition-duration: .25s;
}

.menu__btn>span::before {
    content: '';
    top: -8px;
}

.menu__btn>span::after {
    content: '';
    top: 8px;
}

.menu__box {
    display: block;
    position: fixed;
    top: 0;
    left: -100%;
    width: 350px;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    background-color: var(--background);
    box-shadow: 2px 2px 6px rgba(0, 0, 0, .2);
    transition-duration: .25s;
}

.menu__box li a i {
    font-size: var(--jr-fs-caption);
}

.menu__item {
    display: block;
    padding: 2vh 24px;
    color: var(--main);
    font-size: var(--jr-fs-lead);
    font-weight: 400;
    text-decoration: none;
    transition-duration: .25s;
}

.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    max-height: 0;
    overflow: hidden;
}

.dropdown-content.show {
    opacity: 1;
    transform: translateY(0);
    max-height: 500px;
    transition: opacity 0.2s ease, transform 0.2s ease, max-height 0.2s ease;
}

.dropdown-content ul {
    padding: 0;
    margin: 0;
}

.dropdown-content ul li {
    list-style: none;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    margin-left: 2vh;
}

.dropdown-content ul li a {
    font-size: var(--jr-fs-subtitle);
}

.dropdown-content.show ul li {
    opacity: 1;
    transform: translateY(0);
}

@keyframes rotateChevron {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(180deg);
    }
}

.dropbtn i {
    transition: transform 0.3s ease;
}

.dropbtn i.rotated {
    transform: rotate(180deg);
}

.dropbtn:hover i.rotated {
    animation: rotateChevron 0.3s forwards;
}

.menu__item:hover {
    background-color: var(--main);
    color: var(--background);
}

#kontakt {
    margin-top: 5vh;
    padding: 1.5vh;
    margin-left: 1.5vh;
    border-radius: 2px;
    background: rgb(0, 0, 0);
    background: linear-gradient(90deg, rgba(0, 0, 0, 1) 0%, rgba(53, 50, 97, 1) 0%, rgba(1, 151, 213, 1) 100%);
    color: white;
    transition: 0.2s;
    cursor: pointer;
    border: 1px rgba(0, 0, 0, 0) solid;
    width: 300px;
}

#kontakt:hover {
    background: none;
    border: 1px solid var(--main);
    transition: 0.2s;
    color: var(--main);
}

#active-link {
    background-color: #ededed;
    color: var(--secondary);
}

@media screen and (max-width: 1100px) {
    .hamburger-menu {
        display: block;
    }
}

/* Navbar section */
.nav {
    width: 100%;
    height: 65px;
    background-color: var(--background);
    position: fixed;
    line-height: 65px;
    text-align: center;
    z-index: 9999;
    top: 0;
    box-shadow: 0px 0px 2.2px rgba(0, 0, 0, 0.006), 0px 0px 5.3px rgba(0, 0, 0, 0.008), 0px 0px 10px rgba(0, 0, 0, 0.01), 0px 0px 17.9px rgba(0, 0, 0, 0.012), 0px 0px 33.4px rgba(0, 0, 0, 0.014), 0px 0px 80px rgba(0, 0, 0, 0.02);
}

.nav div.logo {
    float: left;
    padding-left: 10vw;
}

.nav div.main_list {
    height: 100%;
    float: right;
    margin-top: -3vh;
}

.nav div.main_list ul {
    width: 100%;
    height: 65px;
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    padding-right: 5vw;
}

.nav div.main_list ul li {
    width: auto;
    height: 65px;
    padding: 0;
    padding-right: 3rem;
    margin-top: 3vh;
}

.nav div.main_list ul li a {
    text-decoration: none;
    color: var(--main);
    line-height: 65px;
    font-size: var(--jr-fs-prose);
    transition: 0.3s;
}

.nav div.main_list ul li a:hover {
    transition: 0.3s;
    color: var(--main);
}

.navTrigger {
    display: none;
}

.nav {
    padding-top: 20px;
    padding-bottom: 20px;
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
}

@media screen and (max-width: 1100px) {
    .nav {
        display: none;
    }
}

.affix {
    padding: 0;
    background-color: var(--background);
    box-shadow: 0px 2.3px 1.9px rgba(0, 0, 0, 0.008), 0px 5.4px 4.3px rgba(0, 0, 0, 0.011), 0px 9.7px 7.7px rgba(0, 0, 0, 0.014), 0px 16.1px 12.8px rgba(0, 0, 0, 0.016), 0px 26.5px 21.2px rgba(0, 0, 0, 0.019), 0px 46.2px 37px rgba(0, 0, 0, 0.022), 0px 100px 80px rgba(0, 0, 0, 0.03);
}

#dropdown {
    margin-right: -4vh;
    margin-left: -4vh;
}

.doprava:hover .dropdown {
    transform: translateY(0%);
    transition: 0.2s all;
    opacity: 1;
}

.dropdown {
    display: flex;
    flex-direction: column;
    background: var(--background);
    padding: 1.5vh;
    transform: translateY(-15%);
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border: none;
    box-shadow: 0px 33.3px 5.3px rgba(0, 0, 0, 0.008), 0px 111.7px 17.9px rgba(0, 0, 0, 0.012), 0px 500px 80px rgba(0, 0, 0, 0.02);
    transition: 0.2s all;
    opacity: 0;
}

.dropdown .doprava a {
    color: var(--main);
}

.dropdown .doprava a:hover {
    color: var(--secondary) !important;
}

.button {
    padding: 1.5vh;
    border-radius: 2px;
    background: rgb(0, 0, 0);
    background: var(--secondary);
    color: white;
    transition: 0.2s;
    cursor: pointer;
    border: 1px rgba(0, 0, 0, 0) solid;
}

.button:hover {
    background: none;
    border: 1px solid var(--main);
    transition: 0.2s;
    color: var(--main);
}

.uvod-podstranky--hero {
    padding: clamp(0.55rem, 1.75vh, 0.9rem) var(--site-header-pad-x, clamp(1.35rem, 5vw, 2.75rem));
    background-image: url("/assets/img/pozadi-autodoprava.webp");
}

/*-----------------------section3----------------------*/

#section1 {
    min-height: min(48vh, 28rem);
    height: auto;
    padding-block: 2vh;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    box-shadow: 0px 0px 2.2px rgba(0, 0, 0, 0.006), 0px 0px 5.3px rgba(0, 0, 0, 0.008), 0px 0px 10px rgba(0, 0, 0, 0.01), 0px 0px 17.9px rgba(0, 0, 0, 0.012), 0px 0px 33.4px rgba(0, 0, 0, 0.014), 0px 0px 80px rgba(0, 0, 0, 0.02);
}

#section1 .left-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-height: min(48vh, 28rem);
    height: auto;
}

#section1 .left-side h1 {
    width: 100%;
    text-align: center;
    margin-top: 2.5vh;
    margin-bottom: 2vh;
    font-size: var(--jr-fs-section-heading);
    font-weight: 900;
    font-style: italic;
    color: var(--main);
}

#section1 .left-side .servisujeme {
    background: white;
    margin-left: 3vh;
    margin-right: 3vh;
    margin-top: 2.5vh;
}

#section1 .left-side h2 {
    color: var(--main);
    text-align: left;
    font-size: var(--jr-fs-section-lg);
    margin-left: 5vh;
    margin-top: 2.5vh;
}

#section1 .left-side ul {
    margin-left: 3vh;
    margin-right: 3vh;
    margin-top: 3vh;
    font-size: var(--jr-fs-lead);
    list-style: none;
    padding-bottom: 3vh;
}

#section1 .left-side ul li {
    margin-left: 2vh;
    display: flex;
    flex-direction: row;
    margin-bottom: 1vh;
}

#section1 .left-side ul li div {
    font-size: var(--jr-fs-subtitle);
}

#sipka {
    margin-right: 1vh;
    opacity: 50%;
}

#section1 .left-side .vybaveni {
    margin-top: 2.5vh;
    background: white;
    margin-left: 3vh;
    margin-right: 3vh;
}

#section1 .left-side .vybaveni h2 {
    font-size: var(--jr-fs-section-md);
}

#section1 .left-side h3 {
    width: 100%;
    text-align: right;
    margin-top: 2.5vh;
}

.image-section1 {
    background: url("/assets/img/IMG_0549.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    align-self: stretch;
    min-height: min(42vh, 24rem);
    height: auto;
    width: 45%;
    margin-left: 2vh;
}

@media screen and (max-width: 1100px) {
    #section1 {
        flex-direction: column;
        height: auto;
        align-items: center;
        justify-content: center;
        padding-block: 2vh;
    }

    #section1 .left-side {
        width: 100%;
        min-height: 0;
        height: auto;
        margin-top: 3vh;
    }

    #section1 .left-side h2 {
        margin-left: 0vh;
        text-align: center;
    }

    #section1 .left-side ul li {
        margin-left: 0vh;
    }

    .image-section1 {
        height: 28vh;
        width: 90%;
        margin-right: 0vh;
        margin-left: 0vh;
        margin-bottom: 4vh;
    }
}

/*---------------------section2------------------------*/
.light {
    color: rgb(94, 94, 94);
}

.lighter {
    color: rgb(157, 157, 157);
}

#section2 .nadpis h1 {
    text-align: center;
    font-size: var(--jr-fs-section-lg);
    color: var(--main);
    margin-top: 6vh;
    margin-bottom: 6vh;
}

.obal-produktu {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;
    gap: clamp(0.65rem, 2vw, 1.35rem);
    padding-inline: clamp(0.45rem, 2.5vw, 1.35rem);
}

.obal-produktu a {
    text-decoration: none;
    flex: 0 1 auto;
}

.produkt {
    height: max-content;
    width: min(300px, 62vw);
    max-width: 100%;
    background-color: var(--background);
    border-radius: 2px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    box-shadow: 0px 0px 2.2px rgba(0, 0, 0, 0.003), 0px 0px 5.3px rgba(0, 0, 0, 0.004), 0px 0px 10px rgba(0, 0, 0, 0.005), 0px 0px 17.9px rgba(0, 0, 0, 0.006), 0px 0px 33.4px rgba(0, 0, 0, 0.007), 0px 0px 80px rgba(0, 0, 0, 0.03);
}

.produkt__img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
}

.produkt .text {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.55rem 0.68rem 0.75rem;
}

.produkt .text .kilometry {
    margin-bottom: 0.28rem;
}

.produkt .text .vykon {
    margin-bottom: 0.34rem;
}

.produkt .text .vykon p {
    background: #ddd;
    width: max-content;
    padding: 0.2rem 0.48rem;
    border-radius: 2px;
    font-size: var(--jr-fs-footnote);
}

.produkt .text .spotreba {
    margin-top: 0.48rem;
}

.produkt .text h1 {
    color: var(--main);
    font-size: var(--jr-fs-lead);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.produkt .text h2 {
    margin: 0.68rem 0 0;
    margin-right: 0;
    padding: 0.4rem 0.55rem;
    color: var(--background);
    background: var(--main);
    text-align: right;
    font-weight: 800;
    font-size: var(--jr-fs-subtitle);
    border-radius: 2px;
}

.produkt .text p {
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    font-size: var(--jr-fs-footnote);
    line-height: 1.4;
}

.produkt .text .light > p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vice-obal {
    display: flex;
    justify-content: center;
    margin-bottom: 8vh;
}

.vice-obal button {
    font-size: var(--jr-fs-subtitle);
    margin-top: 5vh;
    padding: 1.5vh;
    margin-left: 1.5vh;
    border-radius: 2px;
    background: rgb(0, 0, 0);
    background: transparent;
    color: var(--secondary);
    transition: 0.2s;
    cursor: pointer;
    border: 1px solid var(--secondary);
    width: 300px;
}

.vice-obal button:hover {
    border: 1px transparent solid;
    background: var(--main);
    color: var(--background);
}

#vice {
    display: none;
}

.vice {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
}

.vice a {
    text-decoration: none;
}

.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    margin-bottom: 5vh;
  }

  .pagination a {
    display: inline-block;
    padding: 8px 12px;
    background-color: #f2f2f2;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    margin-right: 6px;
  }

  .pagination a:hover {
    background-color: #ddd;
  }

  .pagination a.active {
    background-color: var(--main);
    color: #fff;
  }

@media screen and (max-width: 460px) {
    .obal-produktu {
        flex-direction: column;
        align-items: center;
    }

    .produkt {
        width: min(320px, 88vw);
    }

    .produkt__img {
        height: 180px;
    }
}

/*-----------------------section3----------------------*/

#section3 {
    min-height: min(48vh, 28rem);
    height: auto;
    padding-block: 2vh;
    display: flex;
    flex-direction: row-reverse;
    align-items: stretch;
    box-shadow: 0px 0px 2.2px rgba(0, 0, 0, 0.006), 0px 0px 5.3px rgba(0, 0, 0, 0.008), 0px 0px 10px rgba(0, 0, 0, 0.01), 0px 0px 17.9px rgba(0, 0, 0, 0.012), 0px 0px 33.4px rgba(0, 0, 0, 0.014), 0px 0px 80px rgba(0, 0, 0, 0.02);
}

#section3 .left-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    min-height: min(48vh, 28rem);
    height: auto;
}

#section3 .left-side h1 {
    width: 100%;
    text-align: center;
    margin-top: 2.5vh;
    margin-bottom: 2vh;
    font-size: var(--jr-fs-section-heading);
    font-weight: 900;
    font-style: italic;
    color: var(--main);
}

#section3 .left-side .servisujeme {
    background: white;
    margin-left: 3vh;
    margin-right: 3vh;
    margin-top: 2.5vh;
}

#section3 .left-side h2 {
    color: var(--main);
    text-align: left;
    font-size: var(--jr-fs-section-lg);
    margin-left: 5vh;
    margin-top: 2.5vh;
}

#section3 .left-side ul {
    margin-left: 3vh;
    margin-right: 3vh;
    margin-top: 3vh;
    font-size: var(--jr-fs-lead);
    list-style: none;
    padding-bottom: 3vh;
}

#section3 .left-side ul li {
    margin-left: 2vh;
    display: flex;
    flex-direction: row;
    margin-bottom: 1vh;
}

#section3 .left-side ul li div {
    font-size: var(--jr-fs-subtitle);
}

#sipka {
    margin-right: 1vh;
    opacity: 50%;
}

#section3 .left-side .vybaveni {
    margin-top: 2.5vh;
    background: white;
    margin-left: 3vh;
    margin-right: 3vh;
}

#section3 .left-side .vybaveni h2 {
    font-size: var(--jr-fs-section-md);
}

#section3 .left-side h3 {
    width: 100%;
    text-align: right;
    margin-top: 4vh;
}

.image-section3 {
    background: url("/assets/img/IMG_0560.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    align-self: stretch;
    min-height: min(42vh, 24rem);
    height: auto;
    width: 45%;
    margin-left: 2vh;
}

@media screen and (max-width: 1100px) {
    #section3 {
        flex-direction: column;
        height: auto;
        align-items: center;
        justify-content: center;
        padding-block: 2vh;
    }

    #section3 .left-side {
        width: 100%;
        min-height: 0;
        height: auto;
        margin-top: 3vh;
    }

    #section3 .left-side h2 {
        margin-left: 0vh;
        text-align: center;
    }

    #section3 .left-side ul li {
        margin-left: 0vh;
    }

    .image-section3 {
        height: 28vh;
        width: 90%;
        margin-right: 0vh;
        margin-left: 0vh;
        margin-bottom: 4vh;
    }
}

@media screen and (max-width: 500px) {
    #section5 {
        padding-bottom: 5vh;
    }
}

/*----------------------footer--------------------------*/

footer {
    background: var(--background);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: top center;
    width: 100%;
    height: auto;
    padding-bottom: 5vh;
}

.upper-footer {
    display: flex;
    flex-direction: row;
}

.left-side-footer {
    width: 50%;
    margin-top: 12vh;
    margin-left: 10%;
}

.adresa {
    display: flex;
    flex-direction: row;
    margin-bottom: 4vh;
}

.adresa h1 {
    margin-left: 2vh;
    color: var(--main);
}

.email {
    display: flex;
    margin-bottom: 4vh;
    margin-top: 4vh;
    color: var(--main);
}

.email img {
    padding-right: 2.5vh;
}

.email .email-text {
    display: flex;
    flex-direction: row;
    margin-top: 1vh;
}

.email .email-text h1 {
    margin-right: 2vh;
}

.email .email-text h2 a {
    color: var(--secondary);
    text-decoration: none;
    transition: 0.2s;
}

.email .email-text h2 a:hover {
    color: var(--main);
    transition: 0.2s;
}

.kontakt {
    display: flex;
    flex-direction: row;
    padding-top: 4vh;
}

.druhy-kontaktu {
    margin-left: 2vh;
    flex: 1;
    min-width: 0;
}

.right-side-footer {
    width: 50%;
    margin: 8vh 0vh 0vh 4vh;
}

.absolute-bottom h2 {
    color: var(--background);
}

.absolute-bottom h2 a {
    color: var(--background);
    text-decoration: none;
}

footer .steveosyka {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 3vh;
    margin-bottom: -1vh;
    opacity: 0.8;
}

footer .steveosyka a {
    color: var(--secondary);
    text-decoration: none;
    transition: 0.2s;
}

footer .steveosyka a:hover {
    transition: 0.2s;
    color: var(--main);
    text-decoration: underline;
}

@media screen and (max-width: 1000px) {
    footer {
        height: auto;
        justify-content: center;
        align-items: center;
        background: var(--background);
        background-size: cover;
    }

    .upper-footer {
        flex-direction: column;
    }

    .left-side-footer {
        width: 100%;
        margin-bottom: 10vh;
        margin-top: 10vh;
        margin-left: 5%;
    }

    .adresa {
        margin-left: 5%;
        margin-right: 10%;
    }

    .email {
        margin-left: 5%;
    }

    .email .email-text {
        margin-top: 0;
    }

    .email .email-text {
        flex-direction: column;
    }

    .kontakt {
        margin-left: 5%;
        border-top: none;
    }

    .right-side-footer {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 0;
        width: 100%;
        margin-bottom: 5vh;
    }
}