* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    scroll-padding: 80px;
}

html,
body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--background);
    font-size: 16px;
    line-height: 1.5;
}

::selection {
    color: rgb(255, 255, 255);
    background: var(--secondary);
}

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

::-webkit-scrollbar-thumb {
    background-color: #d0c5bf;
    border-radius: 4px;
}

:root {
    --main: #002B5B;
    --secondary: #FF7777;
    --text: #FAEEE7;
    --background: #FAEEE7;
    --transparent-background: rgba(250, 238, 231, 0.7);
    --black: black;
    --content-inline: 13%;
}

@media screen and (max-width: 768px) {
    :root {
        --content-inline: 16px;
    }
}

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

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

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

/*-----------------------------Body----------------------------*/

/*----------------------------section1-------------------------*/

#section1 {
    height: auto;
    background: url("/assets/images/landing.webp");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center top;
}

/*-------------------------kontakt-nav-------------------------*/

#navbar {
    z-index: 999;
}

.kontakt-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    height: 45px;
    width: 100%;
    background: var(--background);
    justify-content: right;
    align-items: center;
}

.kontakt-nav .emial-kontakt-nav {
    margin-right: 2%;
}

.kontakt-nav #img-email {
    display: flex;
}

.kontakt-nav .tel-phone-kontakt-nav {
    margin-right: 5%;
}

.kontakt-nav p a {
    transition: 0.2s;
    width: max-content;
    text-decoration: none;
    color: var(--secondary);
}

.kontakt-nav p a:hover {
    transition: 0.2s;
    text-decoration: underline;
}

.kontakt-nav div img {
    width: 30px;
    margin-right: 2vh;
}

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

/* 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;
}

.mobile-logo {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    height: 65px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--main);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    gap: 1px;
    z-index: 1;
}

.mobile-logo .ko {
    color: var(--secondary);
}

#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: 0;
    left: 8px;
    width: 44px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.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 {
    position: relative;
}

.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: min(100%, 20rem);
    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: 18px;
}

.menu__item {
    display: block;
    padding: 2vh 24px;
    color: var(--main);
    font-size: 18px;
    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: 20px;
}

.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);
}

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

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

/*---------------------------nav section-----------------------*/

.sticky {
    position: fixed;
    top: 0;
    width: 100%;
}

#navbar.sticky + .text-landing-page {
    margin-top: 70px;
}

header nav {
    width: 100%;
    height: 70px;
    background-color: var(--main);
    color: var(--text);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    z-index: 999;
}

header nav .left-nav {
    margin-left: 5%;
}

header nav .left-nav a {
    text-decoration: none;
    color: var(--background);
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 0;
}

.logo-radek {
    font-size: 25px;
    line-height: 1;
}

.kotfald {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 25px;
    line-height: 1;
    margin: 0;
    transition: all .5s ease;
}

#texte {
    width: 82.66px;
    font-size: 25px;
    font-weight: 400;
    line-height: 1;
    margin: 0;
}

#texte::after {
    content: 'TFALD';
}

#texte:not(:hover)::after {
    transition: 0.5s;
    animation: textanimate2 0.5s linear;
}

#texte:hover::after {
    animation: textanimate 0.5s linear;
    content: 'SERVIS';
}

@keyframes textanimate {
    0% {
        content: 'S';
    }

    20% {
        content: 'SE';
    }

    40% {
        content: 'SER';
    }

    60% {
        content: 'SERV';
    }

    80% {
        content: 'SERVI';
    }

    100% {
        content: 'SERVIS';
    }
}

@keyframes textanimate2 {
    0% {
        content: 'T';
    }

    25% {
        content: 'TF';
    }

    50% {
        content: 'TFA';
    }

    75% {
        content: 'TFAL';
    }

    100% {
        content: 'TFALD';
    }
}

header nav .left-nav p {
    font-size: 25px;
}

header nav .right-nav {
    margin-right: 5%;
}

header nav .right-nav ul li {
    display: inline;
    margin-inline: 1.5vh;
    font-size: 17px;
}

header nav .right-nav ul li a {
    text-decoration: none;
    color: var(--text);
    transition: 0.2s;
}

header nav .right-nav ul li a:hover {
    color: var(--secondary);
    transition: 0.2s;
}

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

@-webkit-keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }

    15% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 29%;
    }
}

@-moz-keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }

    15% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 29%;
    }
}

@keyframes ani-mouse {
    0% {
        opacity: 1;
        top: 29%;
    }

    15% {
        opacity: 1;
        top: 50%;
    }

    50% {
        opacity: 0;
        top: 50%;
    }

    100% {
        opacity: 0;
        top: 29%;
    }
}

#section1 .text-landing-page {
    width: auto;
    max-width: 40rem;
    height: auto;
    display: flex;
    flex-direction: column;
    padding-top: 2.5rem;
    padding-bottom: 3.5rem;
    margin-left: var(--content-inline);
    margin-right: var(--content-inline);
}

#section1 .text-landing-page hr {
    margin-bottom: 3vh;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(250, 238, 231, 0.75);
    margin-left: 0;
    width: 17vh;
}

#section1 .text-landing-page h1 {
    color: var(--background);
    font-size: clamp(2rem, 5vw, 3.25rem);
    line-height: 1.15;
    text-align: left;
}

#section1 .text-landing-page h2 {
    color: var(--background);
    font-weight: 400;
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    margin-right: 0;
    width: min(36rem, 100%);
    text-align: left;
}

#section1 .text-landing-page .vice {
    margin-top: 5vh;
}

#section1 .text-landing-page .vice p a {
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 18px;
    background-color: var(--secondary);
    color: var(--background);
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
}

#section1 .text-landing-page .vice p a:hover {
    background: var(--background);
    color: var(--secondary);
    transition: 0.2s;
}

@media screen and (max-width: 768px) {
    #section1 {
        height: auto;
    }

    #section1 .text-landing-page {
        height: auto;
        padding-top: 24px;
        padding-bottom: 32px;
    }

    #section1 .text-landing-page .vice {
        margin-top: 24px;
    }
}

@media screen and (max-width: 500px) {
    #section1 .text-landing-page {
        padding-top: 84px;
    }
}

/*-------------------------section2---------------------------*/

#section2 {
    height: auto;
    margin: 10vh var(--content-inline) 0;
}

#section2 hr {
    margin-top: 3vh;
    margin-bottom: 3vh;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(0, 43, 91, 0.35);
    margin-left: 0;
    width: 17vh;
}

#section2 h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 3vh;
}

#section2 p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 6vh;
}

#section2 .mam-zajem p {
    margin-bottom: 0;
}

#section2 .mam-zajem p a {
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 18px;
    background-color: var(--secondary);
    color: var(--background);
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
}

#section2 .mam-zajem p a:hover {
    background: var(--background);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    transition: 0.2s;
}

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

#section3 {
    display: flex;
    height: auto;
    width: auto;
    margin-top: 2.5rem;
    margin-left: var(--content-inline);
    margin-right: var(--content-inline);
}

#section3 .sluzby hr {
    margin-top: 3vh;
    margin-bottom: 3vh;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(0, 43, 91, 0.35);
    margin-left: 0;
    width: 17vh;
}

#section3 .sluzby h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 3vh;
    margin-left: 0;
}

#section3 .sluzby h3 {
    font-weight: 500;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: 5vh;
    margin-top: 8vh;
}

#section3 .sluzby p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 5vh;
}

#section3 .sluzby p a {
    color: var(--secondary);
    text-decoration: none;
}


#section3 .sluzby p a:hover {
    text-decoration: underline;
}

#section3 .mam-zajem p a {
    font-size: 1rem;
    line-height: 1.2;
    padding: 14px 18px;
    background-color: var(--secondary);
    color: var(--background);
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
}

#section3 .mam-zajem p a:hover {
    background: var(--background);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    transition: 0.2s;
    text-decoration: none;
}

#section3 .sluzby .motory {
    width: 100%;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    background: var(--background);
    margin-bottom: 3vh;
    border: none;
}

#section3 .sluzby .motory a,
#section3 .sluzby .motory2 a {
    text-decoration: none;
    color: inherit;
}

#section3 .sluzby .motory .motor1 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50vh;
    height: 100%;
    background: var(--background);
    margin-right: 2.5vh;
}

#section3 .sluzby .motory .motor1 .motor-obrazek1 {
    background: url("/assets/images/ckd-duetone.webp");
    height: 30vh;
    background-size: cover;
    background-position: center;
    display: flex;
    transition: 0.2s;
}

#section3 .sluzby .motory .motor1 .motor-obrazek1:hover {
    background: url("/assets/images/ckd-classic.webp");
    background-position: center;
    background-size: cover;
    transition: 0.2s;
}

#section3 .sluzby .motory .motor1 h2 {
    font-weight: 500;
    padding-top: 2vh;
    padding-bottom: 2vh;
    text-align: center;
    border-bottom: 2px solid var(--main);
    color: var(--main);
}

#section3 .sluzby .motory .motor2 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50vh;
    height: 100%;
    background: var(--background);
    margin-right: 2.5vh;
}

#section3 .sluzby .motory .motor2 .motor-obrazek2 {
    background: url("/assets/images/slavia-duetone.webp");
    height: 30vh;
    background-size: cover;
    background-position: center;
    display: flex;
    transition: 0.2s;
}

#section3 .sluzby .motory .motor2 .motor-obrazek2:hover {
    background: url("/assets/images/slavia-classic.webp");
    background-position: center;
    background-size: cover;
    transition: 0.2s;
}

#section3 .sluzby .motory .motor2 h2 {
    font-weight: 500;
    padding-top: 2vh;
    padding-bottom: 2vh;
    text-align: center;
    border-bottom: 2px solid var(--main);
    color: var(--main);
}

#section3 .sluzby .motory .motor3 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50vh;
    height: 100%;
    background: var(--background);
    margin-right: 2.5vh;
}

#section3 .sluzby .motory .motor3 .motor-obrazek3 {
    background: url("/assets/images/perkins-duetone.webp");
    height: 30vh;
    background-size: cover;
    background-position: center;
    display: flex;
    transition: 0.2s;
}

#section3 .sluzby .motory .motor3 .motor-obrazek3:hover {
    background: url("/assets/images/perkins-classic.webp");
    background-position: center;
    background-size: cover;
    transition: 0.2s;
}

#section3 .sluzby .motory .motor3 h2 {
    font-weight: 500;
    padding-top: 2vh;
    padding-bottom: 2vh;
    text-align: center;
    border-bottom: 2px solid var(--main);
    color: var(--main);
}

#section3 .sluzby .sluzby2 h1 {
    margin-top: 10vh;
}

#section3 .sluzby .motory2 {
    width: 100%;
    display: flex;
    flex-direction: row;
    width: 100%;
    height: auto;
    background: var(--background);
    margin-bottom: 3vh;
    margin-top: 5vh;
    border: none;
}


#section3 .sluzby .motory2 .motor4 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 50vh;
    height: 100%;
    background: var(--background);
    margin-right: 2.5vh;
}

#section3 .sluzby .motory2 .motor4 .motor-obrazek4 {
    background: url("/assets/images/rid-duetone.webp");
    height: 30vh;
    background-size: cover;
    background-position: center;
    display: flex;
    transition: 0.2s;
}

#section3 .sluzby .motory2 .motor4 .motor-obrazek4:hover {
    background: url("/assets/images/rid-classic.webp");
    background-position: center;
    background-size: cover;
    transition: 0.2s;
}

#section3 .sluzby .motory2 .motor4 h2 {
    font-weight: 500;
    padding-top: 2vh;
    padding-bottom: 2vh;
    text-align: center;
    border-bottom: 2px solid var(--main);
    color: var(--main);
    margin-bottom: 5vh;
}

@media screen and (max-width: 1300px) {
    #section3 {
        flex-direction: column;
    }

    #section3 .sluzby .motory {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }

    #section3 .sluzby .motory .motor1 {
        margin-bottom: 3vh;
    }

    #section3 .sluzby .motory .motor2 {
        margin-bottom: 3vh;
    }

    #section3 .sluzby .motory .motor3 {
        margin-bottom: 3vh;
    }

    #section3 .sluzby .motory2 {
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
    }
}

@media screen and (max-width: 768px) {
    #section3 .sluzby .motory .motor1,
    #section3 .sluzby .motory .motor2,
    #section3 .sluzby .motory .motor3,
    #section3 .sluzby .motory2 .motor4 {
        width: 100%;
        margin-right: 0;
    }

    #section3 .sluzby .motory .motor1 h2,
    #section3 .sluzby .motory .motor2 h2,
    #section3 .sluzby .motory .motor3 h2,
    #section3 .sluzby .motory2 .motor4 h2 {
        font-size: 1.125rem;
    }
}

/*--------------------section4-----------------------------*/

#section4 {
    margin: 3rem var(--content-inline);
}

#section4 hr {
    margin: 0 0 1rem;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(0, 43, 91, 0.35);
    margin-left: 0;
    width: 4rem;
}

#section4 .nadpis h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 1.25rem;
}

.home-posts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.home-post {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid rgba(0, 43, 91, 0.12);
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: var(--main);
    min-height: 0;
}

.home-post img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.home-post-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    padding: 14px 14px 16px;
}

.home-post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.home-post-date {
    font-size: 0.9rem;
    color: rgba(0, 43, 91, 0.7);
}

.home-post-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 0;
    background: var(--secondary);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
}

.home-post:hover .home-post-cta {
    background: var(--main);
}

.home-posts-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 1.25rem;
    padding: 0 16px;
    border-radius: 0;
    border: 1px solid var(--main);
    color: var(--main);
    font-weight: 600;
    text-decoration: none;
}

.home-posts-more:hover {
    background: var(--main);
    color: var(--text);
}

.posts-empty {
    margin: 0;
    font-size: 1.125rem;
}

@media screen and (max-width: 900px) {
    .home-posts {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 600px) {
    .home-posts {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: 0;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .home-posts::-webkit-scrollbar {
        display: none;
    }

    .home-post {
        flex: 0 0 86%;
        scroll-snap-align: start;
    }

    .home-post img {
        height: 180px;
    }
}


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

footer {
    height: 110vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer li {
    display: flex;
    flex-direction: row;
    align-items: center;
}

footer .top {
    height: 50%;
    width: 100%;
}

footer .bottom {
    margin-top: 10vh;
    height: 50%;
    width: 100%;
    background: var(--transparent-background);
    display: flex;
    flex-direction: row;
}

footer .bottom .left-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radekkotfald2 {
    display: flex;
    flex-direction: row;
}

.kotfald2 {
    display: flex;
    flex-direction: row;
    transition: all .5s ease;
    margin-bottom: 2vh;
    margin-left: 1vh;
}

#texte {
    width: 82.66px;
    font-size: 25px;
    font-weight: 400;
}

#texte::after {
    content: 'TFALD';
}

#texte:not(:hover)::after {
    transition: 0.5s;
    animation: textanimate2 0.5s linear;
}

#texte:hover::after {
    animation: textanimate 0.5s linear;
    content: 'SERVIS';
}

@keyframes textanimate {
    0% {
        content: 'S';
    }

    20% {
        content: 'SE';
    }

    40% {
        content: 'SER';
    }

    60% {
        content: 'SERV';
    }

    80% {
        content: 'SERVI';
    }

    100% {
        content: 'SERVIS';
    }
}

@keyframes textanimate2 {
    0% {
        content: 'T';
    }

    25% {
        content: 'TF';
    }

    50% {
        content: 'TFA';
    }

    75% {
        content: 'TFAL';
    }

    100% {
        content: 'TFALD';
    }
}

footer .bottom .left-side ul {
    margin-top: 0vh;
    list-style: none;
    font-size: 1.125rem;
}

footer .bottom .left-side ul li {
    margin-bottom: 0.5vh;
}

footer .bottom .left-side ul li hr {
    margin-bottom: 3vh;
    height: 2px;
    border-radius: 1px;
    border: none;
    background: rgba(0, 43, 91, 0.35);
    margin-left: 0;
    margin-right: 30%;
    width: 100%;
}

footer .bottom .right-side {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

footer .bottom .right-side ul {
    list-style: none;
    margin-top: 0vh;
    font-size: 1.125rem;
}

footer .bottom .right-side ul li {
    margin-bottom: 0.5vh;
}

footer .bottom .right-side ul li div img {
    margin-right: 1vh;
}

footer h2 {
    font-weight: 500;
    font-size: clamp(1.25rem, 2vw, 1.75rem);
    line-height: 1.3;
    margin-bottom: 1.5vh;
}

footer p {
    margin-bottom: 2vh;
}

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

footer #phone-number p a:hover {
    text-decoration: underline;
    transition: 0.2s;
}

footer #email p a:hover {
    text-decoration: underline;
    transition: 0.2s;
}

@media screen and (max-width: 900px) {
    footer {
        height: auto;
    }

    footer .bottom {
        flex-direction: column;
        align-items: center;
    }

    footer .bottom .left-side {
        margin-left: 0;
        width: 100%;
        padding-inline: var(--content-inline);
        justify-content: flex-start;
    }

    footer .bottom .right-side {
        margin-top: 5vh;
        margin-bottom: 5vh;
        margin-left: 0;
        width: 100%;
        padding-inline: var(--content-inline);
        justify-content: flex-start;
    }
}

@media screen and (max-width: 430px) {
    footer .bottom .right-side p a,
    footer .bottom .left-side,
    footer .bottom .right-side ul {
        font-size: 1rem;
    }
}

#section2 p a {
    color: var(--secondary);
}

.page-body footer {
    height: auto;
}

.page-main {
    margin: 6vh var(--content-inline) 8vh;
    max-width: 42rem;
}

.page-main h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    line-height: 1.2;
    font-weight: 500;
    margin-bottom: 1.25rem;
    color: var(--main);
}

.page-photo {
    display: block;
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    margin: 0 0 1.5rem;
}

.page-main h2 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.3;
    margin: 2rem 0 0.75rem;
    color: var(--main);
}

.page-main h3 {
    font-size: 1.125rem;
    line-height: 1.3;
    margin: 1.25rem 0 0.35rem;
    color: var(--main);
}

.page-main p {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.page-main a {
    color: var(--secondary);
}

.page-links {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin: 0.5rem 0 2rem;
}

.page-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 14px 18px;
    background: var(--secondary);
    color: var(--text) !important;
    text-decoration: none;
}

@media screen and (max-width: 1100px) {
    .page-main {
        margin-top: 90px;
    }

    .page-photo {
        height: 200px;
    }
}

#section3 .sluzby .motory,
#section3 .sluzby .motory2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
    justify-content: stretch;
    margin-top: 0;
}

#section3 .sluzby .motory .motor1,
#section3 .sluzby .motory .motor2,
#section3 .sluzby .motory .motor3,
#section3 .sluzby .motory2 .motor4 {
    width: auto;
    margin: 0;
    height: auto;
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 43, 91, 0.12);
}

#section3 .sluzby .motory .motor1 .motor-obrazek1,
#section3 .sluzby .motory .motor2 .motor-obrazek2,
#section3 .sluzby .motory .motor3 .motor-obrazek3,
#section3 .sluzby .motory2 .motor4 .motor-obrazek4 {
    height: 190px;
}

#section3 .sluzby .motory .motor1 h2,
#section3 .sluzby .motory .motor2 h2,
#section3 .sluzby .motory .motor3 h2,
#section3 .sluzby .motory2 .motor4 h2 {
    border: none;
    text-align: left;
    padding: 0;
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.motor-card-body {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.motor-card-body p {
    margin: 0 0 16px;
    font-size: 1rem;
    line-height: 1.45;
    color: var(--main);
}

.motor-cta {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-top: auto;
    min-height: 44px;
    background: var(--secondary);
    color: var(--text);
    font-size: 1rem;
    font-weight: 500;
    padding: 0 16px;
    border-radius: 0;
}

#section3 .motor-card:hover .motor-cta {
    background: var(--main);
}

@media screen and (max-width: 900px) {
    #section3 .sluzby .motory,
    #section3 .sluzby .motory2 {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    #section3 .sluzby .motory .motor1 .motor-obrazek1,
    #section3 .sluzby .motory .motor2 .motor-obrazek2,
    #section3 .sluzby .motory .motor3 .motor-obrazek3,
    #section3 .sluzby .motory2 .motor4 .motor-obrazek4 {
        height: 200px;
    }
}