* {
    margin: 0;
    padding: 0;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    scroll-padding: 100px;
}

html,
body {
    position: relative;
    overflow-x: hidden;
    background-color: var(--background);
}

::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;
}

#main {
    color: var(--main);
}

#secondary {
    color: var(--secondary);
}

#black {
    color: var(--black);
}

/*-----------------------------Body----------------------------*/

/*-------------------------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: 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 {
    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: 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: 18px;
}

.menu__item {
    display: block;
    padding: 2vh 24px;
    color: var(--main);
    font-size: 25px;
    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%;
}

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%;
    }
}

/*-------------------section2---------------------------*/

#section2 {
    height: auto;
    margin-top: 3vh;
    margin-bottom: 10vh;
}

#section2 .obal-auta {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.uvod-podstranky {
    padding-top: 3vh;
    padding-bottom: 2vh;
    display: flex;
}

.uvod-podstranky h1 {
    color: var(--main);
    margin-left: 2.5%;
    margin-right: 1%;
    font-size: 20px;
    font-weight: 400;
}

.uvod-podstranky h1 a {
    color: var(--main);
    text-decoration: none;
    transition: 0.2s;
}

.uvod-podstranky h1 a:hover {
    transition: 0.2s;
    color: var(--secondary);
}

@media screen and (max-width: 600px) {
    .uvod-podstranky {
        padding-top: 0;
    }
}

/*---------------------left-side----------------------*/

#section2 .obal-auta .left-side {
    width: 60%;
    margin-right: 2%;
    height: auto;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
}

/*-------fotky---------*/

.slider-wrapper {
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.slides-container {
    height: calc(85vh - 2rem);
    width: 100%;
    display: flex;
    overflow: scroll;
    scroll-behavior: smooth;
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.slide-arrow {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    height: 4rem;
    background: rgba(255, 255, 255, 0.8);
    color: var(--main);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: opacity 100ms;
}

#slide-arrow-prev {
    left: 0;
    border-radius: 0;
    height: 50px;
    width: 50px;
    margin-left: 1rem;
}

#slide-arrow-next {
    height: 50px;
    width: 50px;
    right: 0;
    border-radius: 0;
    margin-right: 1rem;
}

.slide-arrow p {
    text-align: center;
    font-size: 20px;
    margin-bottom: 5%;
}

#slide {
    width: 100%;
    height: 100%;
    flex: 1 0 100%;
    display: block;
}

.slide {
    width: 100%;
    height: 100%;
}

/*--------------------------right-side----------------------*/

#section2 .obal-auta .right-side {
    width: 60%;
    margin-top: 2vh;
    height: auto;
    background-color: var(--background);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#section2 .obal-auta .right-side h1 {
    margin-top: 2vh;
    font-size: 30px;
    color: var(--main);
}

#section2 .obal-auta .right-side p {
    text-align: left justify;
}

#section2 .obal-auta .right-side h2 {
    margin-top: 2vh;
    font-size: 22px;
    color: var(--main);
    font-weight: 500;
}

#section2 .obal-auta .right-side .vykon p {
    background: #ddd;
    width: max-content;
    padding: 0.75vh;
    border-radius: 2px;
}

#section2 .obal-auta .right-side p {
    margin-top: 1vh;
}

#section2 .obal-auta .right-side ul {
    list-style: none;
}

#section2 .obal-auta .right-side ul li {
    margin-top: 3vh;
}

#section2 .obal-auta .right-side ul li .sediva {
    background: #dadada;
    width: max-content;
    padding: 0.75vh;
    border-radius: 2px;
}

#section2 .obal-auta .right-side .cena p {
    font-size: 25px;
    margin-right: 3.5%;
    padding-right: 5%;
    margin-top: 10vh;
    color: var(--background);
    background: var(--main);
    text-align: right;
    font-weight: 800;
    border-radius: 2px;
}

#section2 .obal-auta .right-side a {
    font-size: 25px;
    padding: 1.5vh;
    background-color: var(--secondary);
    color: var(--background);
    text-decoration: none;
    border: 1px solid transparent;
    transition: 0.2s;
    margin-top: 3vh;
    width: max-content;
}

#section2 .obal-auta .right-side a:hover {
    background: var(--background);
    color: var(--secondary);
    border: 1px solid var(--secondary);
    transition: 0.2s;
    text-decoration: none;
}

/*------------responsivity-------------*/

@media screen and (max-width: 1100px) {
    #section2 {
        height: auto;
        margin-top: 5vh;
        align-items: center;
    }

    #section2 .obal-auta {
        flex-direction: column;
        height: auto;
    }

    #section2 .obal-auta .left-side {
        width: 100%;
        height: 60vw;
    }

    #section2 .obal-auta .right-side {
        width: 95%;
        height: auto;
        margin-left: 2vh;
        margin-right: 2vh;
    }

    #section2 .obal-auta .right-side p {
        margin-right: 2vh;
    }

    #section2 .obal-auta .right-side .cena {
        margin-right: 2vh;
    }
}

@media screen and (max-width: 500px) {
    #section2 {
        margin-top: calc(3vh + 65px);
    }
}

/*--------------------------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: 25px;
}

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: 25px;
}

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: 35px;
    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: -20vh;
        width: 100%;
    }

    footer .bottom .right-side {
        margin-top: 5vh;
        margin-bottom: 5vh;
        width: 100%;
    }
}

@media screen and (max-width: 430px) {
    footer .bottom .right-side p a {
        font-size: 17px;
    }

    footer .bottom .left-side {
        margin-left: -5vh;
    }
}

.post-detail {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto 4rem;
}

.post-back {
    margin: 0 0 0.75rem;
}

.post-back a {
    color: var(--secondary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.post-back a:hover {
    color: var(--main);
}

.post-detail h1 {
    margin: 0;
    max-width: 40rem;
    color: var(--main);
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
}

.post-date {
    margin: 0.7rem 0 1.25rem;
    color: var(--main);
    font-size: 0.95rem;
}

.post-date::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 3px;
    margin-right: 8px;
    background: var(--secondary);
    vertical-align: middle;
}

.post-stage {
    position: relative;
    background: #111;
}

.post-stage img {
    display: block;
    width: 100%;
    height: min(62vh, 560px);
    object-fit: cover;
}

.post-arrow {
    position: absolute;
    top: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    border: 0;
    background: #fff;
    color: var(--main);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.post-arrow-prev {
    left: 12px;
}

.post-arrow-next {
    right: 12px;
}

.post-arrow:hover {
    background: var(--main);
    color: var(--text);
}

.post-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    background: var(--main);
    color: var(--text);
    font-size: 0.85rem;
}

.post-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.post-thumbs::-webkit-scrollbar {
    display: none;
}

.post-thumb {
    flex: 0 0 112px;
    height: 76px;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
}

.post-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-thumb.is-active {
    border-color: var(--secondary);
}

.post-copy {
    max-width: 40rem;
    margin-top: 1.5rem;
}

.post-copy p {
    margin: 0;
    color: var(--main);
    font-size: 1.125rem;
    line-height: 1.6;
}

.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 2rem;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-height: 88px;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(0, 43, 91, 0.16);
    color: var(--main);
    text-decoration: none;
}

.post-nav-next {
    text-align: right;
}

.post-nav-link span {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.post-nav-link strong {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.35;
}

.post-nav-link:hover {
    border-color: var(--main);
}

@media screen and (max-width: 700px) {
    .post-stage img {
        height: 240px;
    }

    .post-thumb {
        flex-basis: 84px;
        height: 60px;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav-next {
        text-align: left;
    }
}