* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
    text-rendering: optimizeLegibility;
}

body {
    background-color: #f8f9fa;
}

a {
    text-decoration: none;
    color: rgb(1, 92, 209);
}

img {
    max-width: 100%;
    display: block;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 200;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.logo {
    height: 100%;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.logoimg {
    width: 200px;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 30px;
    padding-right: 30px;
    color: rgb(1, 92, 209);
    font-weight: 600;
}

.headlink {
    background: none;
    border: none;
    color: rgb(1, 92, 209);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.header-spacer {
    height: 70px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    color: rgb(1, 92, 209);
    cursor: pointer;
    padding-right: 20px;
}

.split-wrap {
    display: flex;
    width: 100%;
    overflow: hidden;
    background-color: black;
}

#mainWrap {
    height: auto; 
}

.blocks-container {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    transition: flex-basis 0.6s ease;
}

.blok {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
}

.pozadiimg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.text {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: white;
    color: rgb(0, 0, 0);
    padding: 2rem 3rem;
    border-top-right-radius: 20px;
    z-index: 50;
    max-width: 80%;
    transition: padding 0.3s ease;
}

.hltext {
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.podtext p {
    font-size: 1.2rem;
    font-weight: 600;
}

.side-panel {
    flex: 0 0 auto;
    display: flex;
    background: rgb(1, 92, 209);
    color: white;
    z-index: 100;
}

.panel-btn {
    writing-mode: vertical-rl;
    background: none;
    color: white;
    border: none;
    cursor: pointer;
    padding: 20px 15px;
    font-size: 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.panel-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.panel-content {
    width: 0;
    opacity: 0;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0;
    transition: width 0.6s ease, opacity 0.4s ease 0.1s, padding 0.6s ease;
}

.split-wrap.open .panel-content {
    width: 380px;
    opacity: 1;
    padding: 40px 30px;
    white-space: normal;
}

.tachograf-misto {
    font-size: 2rem;
    margin-left: 10%;
}

.panel-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.kontakt-osoba h2 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.kontakt-osoba p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.4;
}

.tacho-banner-wrap {
    width: 100%;
    background-color: rgb(44, 62, 80);
}

.tacho-horizontal-btn {
    width: 100%;
    background-color: rgb(44, 62, 80);
    color: white;
    border: none;
    padding: 30px 50px;
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
}

.tacho-horizontal-btn:hover {
    background-color: rgb(60, 84, 109);
}

.tacho-dropdown-content {
    max-height: 0;
    background-color: rgb(44, 62, 80);
    color: rgb(255, 255, 255);
    display: flex;
    gap: 40px;
    padding: 0 50px;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
    overflow: hidden; /* Added to hide images and text when closed */
}
.tacho-dropdown-content.open {
    max-height: 600px;
    padding: 40px 50px;
    border-bottom: 2px solid rgb(44, 62, 80);
}
.analog{

    display: flex;
    gap: 20px;
    align-items: center;
        width:  10%;
        height: 10%;
        margin-left: auto;
}
.digital{

    display: flex;
    gap: 20px;
    align-items: center;
        width:  20%;
        height: 20%;
}

footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    padding: 30px 50px;
    border-top: 2px solid rgb(92, 135, 192);
    background: white;
    color: #000000;
    font-weight: 600;
}

.footname {
    color: rgb(1, 92, 209);
    font-weight: 700;
    font-size: 1.2rem;
}

@media (max-width: 900px) {
    .hamburger {
        display: block;
    }
    
    .header-content {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-bottom: 0px solid rgb(1, 92, 209);
    }

    .header-content.active {
        max-height: 200px;
        padding: 20px;
        border-bottom-width: 2px;
    }

    .split-wrap.open .panel-content {
        width: 280px;
        padding: 20px 15px;
    }

    .text {
        padding: 1.5rem;
        max-width: 90%;
    }

    .hltext {
        font-size: 1.5rem;
    }

    .podtext p {
        font-size: 1rem;
    }

    .tacho-horizontal-btn {
        padding: 20px;
        font-size: 1.1rem;
    }
    
    .tacho-dropdown-content {
        padding: 0 20px;
        flex-direction: column;
        gap: 20px;
    }

    .tacho-dropdown-content.open {
        padding: 30px 20px;
    }
    .tachograf-osoba{
    
    margin-left: 10%;}
    .analog{
display: none;
}
.digital{ 
display: none;
}
/* Sets a fixed width for the vertical side button */
    .panel-btn {
        width: 50px;
        padding: 20px 10px;
    }

    /* Stretches the contact content to fill the remaining viewport width */
    .split-wrap.open .panel-content {
        width: calc(100vw - 50px);
        padding: 20px 15px; }
}