:root {
    --bg: #f8f9fb;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --primary: #2563eb;
    --danger: #d14343;
    --border: #e5e7eb;
    --radius: 12px;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
html,
body {
    font-family: "Exo 2", sans-serif;
    font-size: clamp(
        1rem,
        2.5vw,
        1.1rem
    ); /* (1) minimum value, (2) preferred [fluid] value, (3) maximum value */
    margin: 0;
    padding: 0;
    /*padding-top: 60px; /* Adjust to your header’s height */
    box-sizing: border-box;
    width: 100%;
    height: 100%;
}
button,
input,
textarea,
table,
td,
th {
    font-family: "Exo 2", sans-serif;
}
:where(h1, h2, h3, h4, h5, h6) {
    margin-block: 0.5em;
    font-weight: bold;
}
h1 {
    font-size: clamp(1.7rem, 5vw, 2.55rem);
}
h2 {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}
h3 {
    font-size: clamp(1.3rem, 3vw, 1.95rem);
}
/*p, div, li, td { font-size: clamp(0.9rem, 2.5vw, 1.5rem); }*/

input[type="text"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="tel"],
input[type="file"],
select {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.selectx {
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.submit {
    background-color: #4caf50;
    color: white;
    padding: 12px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
} /* red: #b22222 */
.submit:hover {
    background-color: #45a049;
} /* zelená */
.link2:hover img {
    background-color: #bfbfbf;
    color: black;
}
a {
    text-decoration: none;
}
a.link3 {
    color: gray;
} /* gray */
a.link3:hover {
    color: #000;
}
a.link4 {
    color: #b22222;
} /* red */
a.link4:hover {
    color: red;
}
a.link5 {
    color: #e03e2d;
} /* red */
a.link5:hover {
    color: red;
}
a.link6 {
    color: #eb857a;
} /* pink */
a.link6:hover {
    color: red;
}

.inline-link-container {
    background: #8b0000;
    padding: 0 10px 2px 10px;
    border-radius: 4px;
}
.inline-link-container-news {
    background: rgba(0, 0, 0, 0.5);
    padding: 0 10px 2px 10px;
    border-radius: 4px;
}
a.inline-link {
    position: relative;
    text-decoration: none;
    color: #fff;
}
a.inline-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0; /* vzdálenost pod textem */
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}
a.inline-link:hover::after {
    transform: scaleX(1);
}

/* Modré animované podtržení */
.link-underline {
    position: relative;
    color: #007bff;
    text-decoration: none;
    font-weight: 400;
}

.link-underline::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px; /* vzdálenost pod textem */
    width: 0;
    height: 1px;
    background-color: #007bff;
    transition:
        width 0.3s ease,
        left 0.3s ease;
}

.link-underline:hover::after,
.link-underline-2:hover::after {
    width: 100%;
    left: 0;
}

/* Červené animované podtržení */
.link-underline-2 {
    position: relative;
    color: #e03e2d;
    text-decoration: none;
    font-weight: 400;
}

.link-underline-2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -1px; /* vzdálenost pod textem */
    width: 0;
    height: 1px;
    background-color: #e03e2d;
    transition:
        width 0.3s ease,
        left 0.3s ease;
}

.miniatura:hover {
    background-color: #bfbfbf;
}
.tooltip {
    position: relative;
    display: inline-block;
}
.tooltiptext {
    visibility: hidden;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    width: 120px;
    margin-left: -60px;
    top: 180px;
    left: 50%;
} /* top: 10vw */
.tooltip:hover .tooltiptext {
    visibility: visible;
}
.box-r {
    background: #ffebe6;
    padding: 10px 20px;
    margin: 1em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
}

/* Přechod z černé do bílé (shora dolů) */
.section-block {
    padding: 130px 2rem 2rem 2rem;
    background: transparent;
}
body {
    margin: 0;
    background: linear-gradient(to bottom, #000 0%, #f2f2f2 90vh);
    background-repeat: no-repeat;
    background-attachment: fixed; /* volitelné, ale často hezké */
}

@media (max-width: 768px) {
    .section-block {
        padding: 80px 1rem 2rem 1rem;
    }
}
.grad_r {
    background-image: linear-gradient(
        to left,
        rgba(218, 12, 16, 0),
        rgba(218, 12, 16, 1)
    );
} /* red */
.grad_r2 {
    background-image: linear-gradient(
        to right,
        rgba(218, 12, 16, 0),
        rgba(218, 12, 16, 1)
    );
} /* red */
.pli {
    padding-top: 0.5em;
}
.prst {
    cursor: pointer;
    cursor: hand;
}

/* Stránkování (pagination) */
/*
.tecky { color: black; padding: 6px 6px; font-size: 1.5em; }
.pag a { background-color: #ddd; color: black; padding: 6px 16px; font-size: 1.5em; border-radius: 5px; border: 1px solid #bfbfbf; margin: 0 3px; }
.pag a.active { background-color: #da0c10; color: white; border-radius: 5px; }
.pag a:hover:not(.active) { background-color: #999999; color: black; border-radius: 5px; }
*/

/* === Universal Scrollbar Styling === */
* {
    box-sizing: border-box; /* To avoid unexpected overflow from padding or borders (!) */
}
/* Scrollbar track */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
/* Scrollbar thumb */
::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}
/* Scrollbar corner (optional) */
::-webkit-scrollbar-corner {
    background: transparent;
}

/* NON-STANDARD FONTS OR FONT VARIANTS */

@font-face {
    font-family: "Exo 2 Condensed";
    src: url("../fonts/Exo2-RegularCondensed.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Exo 2 Condensed";
    src: url("../fonts/Exo2-BoldCondensed.woff2") format("woff2");
    font-weight: 700; /* 300 = Light, 400 = Regular, 500 = Medium, 600 = SemiBold, 700 = Bold, 800 = ExtraBold, 900 = Black */
    font-style: normal;
}

/* SCREEN SIZE INDICATOR */

#screen-size-indicator {
    position: fixed;
    bottom: 10px;
    right: 10px;
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    font-size: 0.9em;
    padding: 0.4em 0.8em;
    border-radius: 6px;
    pointer-events: none; /* so it doesn't interfere with clicks */
    /*
		z-index: 9999;
		*/
    visibility: hidden;
}

/* SCREEN RESIZE & WEBSITE VERSION BUTTONS */

#screen-size-controls {
    position: fixed;
    bottom: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 9999;
    visibility: hidden;
}
#screen-size-controls button,
.bottom-button-row button {
    background: rgba(30, 30, 30, 0.8);
    color: #fff;
    border: none;
    padding: 0.4em 0.8em;
    font-size: 0.9em;
    border-radius: 6px;
    cursor: pointer;
    width: 100px; /* fixed width for all buttons */
    box-sizing: border-box;
}
@media (min-width: 769px) {
    #screen-size-controls #version-button {
        width: 130px;
        position: relative;
    }
    #update-hour {
        position: absolute;
        top: 1px;
        right: 4px;
        font-size: 0.8em;
    }
}
.bottom-button-row {
    display: flex;
    gap: 6px;
}
#button-tooltip.tooltip-box {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px); /* Adds 10px space above the button */
    left: 10px; /* 50% = horizontal anchor on button center */
    /*transform: translateX(-50%); /* Center tooltip */
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 8px 16px;
    background: orange; /* #222 or rgba(255, 165, 0, 1) */
    color: #fff;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 10;
    font-size: 0.9em;
}
#button-tooltip.show {
    visibility: visible;
    opacity: 1;
}
/* Tooltip arrow */
.tooltip-arrow {
    position: absolute;
    left: 10px;
    bottom: -7px; /* Place arrow at bottom left of tooltip */
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 7px solid orange; /* Matches tooltip background */
}
@media (max-width: 768px) {
    #mobile-window {
        display: none;
    }
    /*#pause-button { display: none; }*/
    #screen-size-controls #version-button {
        width: 100px;
    }
    .tooltip-arrow {
        bottom: -6px;
    }
}

/* GENERIC STYLES */

.exo2 {
    font-family: "Exo 2", sans-serif;
}
.exo2c {
    font-family: "Exo 2 Condensed", sans-serif;
}
.roboto {
    font-family: "Roboto", sans-serif;
}
.clear {
    clear: both;
}
.margin-bottom {
    margin-bottom: 3em;
}
.mobile {
    display: none;
}
@media (max-width: 1100px) {
    .mobile {
        display: block;
    }
    .desktop {
        display: none !important;
    }
}
.f85 {
    font-size: 85%;
}
.f111 {
    font-size: 111%;
}
.f125 {
    font-size: 125%;
}
.f150 {
    font-size: 150%;
}

/* HOMEPAGE #1 STYLES (background images with text blocks) */

/* Main section */

.hero-section,
.odtah-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #000; /* Fallback - černá místo bílé */
}

/* Background images */

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-color: #000; /* Fallback pro každý bg div */
    background-repeat: no-repeat;
    /*filter: blur(8px);*/
    transition: opacity 1.2s ease-in-out; /* Plynulejší přechod než "ease" */
    z-index: 1;
    opacity: 0;
    will-change: opacity; /* Optimalizace pro GPU */
}
.blur {
    filter: blur(8px);
}
.hero-bg.visible {
    opacity: 1;
    z-index: 2;
}
/* Zajisti, že oba bg divy mají vždy nějaké pozadí */
.hero-bg1,
.hero-bg2 {
    background-color: #1a1a1a; /* Tmavě šedá jako fallback */
}
/* Hero loading placeholder */
.hero-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.5s ease-out;
}
.hero-loading.hidden {
    opacity: 0;
    pointer-events: none;
}
.hero-loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8b0000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* Apply gradient on the first background image => you need JavaScript for this to work (!) => "...visibleBg.classList.add('gradient')" */
@media (max-width: 768px) {
    .hero-bg.hero-bg2.gradient::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            to right,
            rgba(0, 0, 0, 1),
            rgba(0, 0, 0, 0)
        );
        pointer-events: none; /* so it doesn't block clicks */
        z-index: 3; /* above background but below text */
    }
}

/* Small-image blocks [on top of background images] */

.slide-img {
    position: absolute;
    bottom: 10vh; /* Indented from bottom */
    left: 66%; /* 50% centers it, 66% pushes it into the right third */
    transform: translateX(
        -50%
    ); /* this setting centers the image relative to its own width, but overrides the "left: 75%" setting, so don't use it here! */
    z-index: 2;
    opacity: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    /*transition: opacity 1.1s ease;*/
}
@media (max-width: 768px) {
    .slide-img img {
        max-height: 500px;
    }
}
/* Animation keyframes */
/* Slide #1 (image) */
@keyframes slideImgRightOverflow {
    from {
        transform: translateX(100vw);
        opacity: 0;
    }
    to {
        transform: translateX(-30%) translateY(50px); /* higher Y = lower image */
        opacity: 1;
    }
}
/* Slide #1 (annotation) */
@keyframes slideImgBottom {
    from {
        transform: translateX(-50%) translateY(-80vh); /* translateY(-100%); */
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(10%); /* translateY(0); */
        opacity: 1;
    }
}
/* Animation class */
.slideImgBottom {
    animation: slideImgBottom 1s ease-out forwards;
    animation-delay: 1s; /* delay before animation starts */
}
.slideImgRightOverflow {
    animation: slideImgRightOverflow 1s ease-out forwards;
}

/* Annotation blocks [accompanying the small images] */

.slide-annotation {
    color: white;
    position: absolute;
    bottom: 50%;
    left: 66%;
    transform: translateX(-50%);
    z-index: 2;
    opacity: 0; /* Ensure initial opacity is 0 */
    width: auto;
    max-width: 100%;
    pointer-events: none; /* Optional: prevent interaction when hidden */
}

/* Text blocks [on top of background images] */

/* Text block class (main) */
.slide-text-box {
    padding: 1em;
    background-color: rgba(
        0,
        0,
        0,
        0.4
    ); /* 204,255,153,0.3 => likvidace (gradient), autopůjčovna (ano, ale slabý) */
    border-radius: 10px;
}
/* Gradient overlay for the 4th slide text */
@media (max-width: 768px) {
    .slide-text.text-anim-top-right {
        margin-top: 4em;
    }
    .slide-text.text-anim-bottom-right {
        margin-bottom: 2em;
    }
    .slide-text-inner {
        padding: 1rem;
        border-radius: 12px;
    }
}

/* ========================================
		   TEXTOVÉ ANIMACE - NOVÝ RESPONZIVNÍ SYSTÉM
		   ======================================== */

/* CSS proměnné pro odsazení */
:root {
    --edge-padding-desktop: 150px;
    --edge-padding-tablet: 50px;
    --edge-padding-mobile: 20px;

    --text-max-width-desktop: 550px;
    --text-max-width-mobile: 370px;
}

/* Reset výchozích stylů pro všechny animace */
.text-anim-top-left,
.text-anim-top-center,
.text-anim-top-right,
.text-anim-left-center,
.text-anim-right-center,
.text-anim-bottom-left,
.text-anim-bottom-center,
.text-anim-bottom-right,
.text-anim-center {
    position: absolute;
    z-index: 2;
    color: #fff;
    opacity: 0; /* ← Toto je správně */
    animation-duration: 1s;
    animation-fill-mode: forwards;
    animation-timing-function: ease-out;
}

/* Šířka textových bloků */
.text-anim-top-left .slide-text-inner,
.text-anim-top-center .slide-text-inner,
.text-anim-top-right .slide-text-inner,
.text-anim-left-center .slide-text-inner,
.text-anim-right-center .slide-text-inner,
.text-anim-bottom-left .slide-text-inner,
.text-anim-bottom-center .slide-text-inner,
.text-anim-bottom-right .slide-text-inner,
.text-anim-center .slide-text-inner {
    max-width: var(--text-max-width-desktop);
}
#hero-likv-norm.text-anim-bottom-right {
    max-width: 900px;
    bottom: 2em;
    right: 2em;
}

/* ===== POZICOVÁNÍ ===== */

/* Levý horní roh */
.text-anim-top-left {
    top: var(--edge-padding-desktop);
    left: var(--edge-padding-desktop);
    animation-name: anim-from-left;
}

/* Střed nahoře */
.text-anim-top-center {
    top: var(--edge-padding-desktop);
    left: 50%;
    transform: translateX(-50%);
    animation-name: anim-from-top;
}

/* Pravý horní roh */
.text-anim-top-right {
    top: var(--edge-padding-desktop);
    right: var(--edge-padding-desktop);
    animation-name: anim-from-right;
}

/* Levý střed */
.text-anim-left-center {
    top: 50%;
    left: var(--edge-padding-desktop);
    transform: translateY(-50%);
    animation-name: anim-from-left;
}

/* Pravý střed */
.text-anim-right-center {
    top: 50%;
    right: var(--edge-padding-desktop);
    transform: translateY(-50%);
    animation-name: anim-from-right;
}

/* Levý dolní roh */
.text-anim-bottom-left {
    bottom: var(--edge-padding-desktop);
    left: var(--edge-padding-desktop);
    animation-name: anim-from-left;
}

/* Střed dole */
.text-anim-bottom-center {
    bottom: var(--edge-padding-desktop);
    left: 50%;
    transform: translateX(-50%);
    animation-name: anim-from-bottom;
}

/* Pravý dolní roh */
.text-anim-bottom-right {
    bottom: var(--edge-padding-desktop);
    right: var(--edge-padding-desktop);
    animation-name: anim-from-right;
}

/* Střed obrazovky (vertikálně i horizontálně) */
.text-anim-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-name: anim-fade-in;
}

/* ===== ANIMACE ===== */

@keyframes anim-from-left {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes anim-from-right {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes anim-from-top {
    from {
        transform: translateX(-50%) translateY(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes anim-from-bottom {
    from {
        transform: translateX(-50%) translateY(100px);
        opacity: 0;
    }
    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes anim-fade-in {
    from {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Speciální animace pro left-center a right-center */
.text-anim-left-center {
    animation-name: anim-from-left-center;
}
.text-anim-right-center {
    animation-name: anim-from-right-center;
}

@keyframes anim-from-left-center {
    from {
        transform: translateX(-100px) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

@keyframes anim-from-right-center {
    from {
        transform: translateX(100px) translateY(-50%);
        opacity: 0;
    }
    to {
        transform: translateX(0) translateY(-50%);
        opacity: 1;
    }
}

/* ===== TABLET (768px - 1100px) ===== */
@media (min-width: 768px) and (max-width: 1100px) {
    .text-anim-top-left,
    .text-anim-bottom-left,
    .text-anim-left-center {
        left: var(--edge-padding-tablet);
    }

    .text-anim-top-right,
    .text-anim-bottom-right,
    .text-anim-right-center {
        right: var(--edge-padding-tablet);
    }

    .text-anim-top-left,
    .text-anim-top-center,
    .text-anim-top-right {
        top: var(--edge-padding-tablet);
    }

    .text-anim-bottom-left,
    .text-anim-bottom-center,
    .text-anim-bottom-right {
        bottom: var(--edge-padding-tablet);
    }
}

@media (min-width: 1100px) and (max-width: 1440px) {
    .desktop.slide-text.vykup-phone.text-anim-top-right {
        top: 5em;
        right: 2em;
    }
}

/* ===== MOBIL (<768px) ===== */
@media (max-width: 767px) {
    /* Menší šířka textů */
    .text-anim-top-left .slide-text-inner,
    .text-anim-top-center .slide-text-inner,
    .text-anim-top-right .slide-text-inner,
    .text-anim-left-center .slide-text-inner,
    .text-anim-right-center .slide-text-inner,
    .text-anim-bottom-left .slide-text-inner,
    .text-anim-bottom-center .slide-text-inner,
    .text-anim-bottom-right .slide-text-inner,
    .text-anim-center .slide-text-inner {
        max-width: var(--text-max-width-mobile);
    }

    /* Menší odsazení */
    .text-anim-top-left,
    .text-anim-bottom-left,
    .text-anim-left-center {
        left: var(--edge-padding-mobile);
    }

    .text-anim-top-right,
    .text-anim-bottom-right,
    .text-anim-right-center {
        right: var(--edge-padding-mobile);
    }

    .text-anim-top-left,
    .text-anim-top-center,
    .text-anim-top-right {
        top: var(--edge-padding-mobile);
    }

    .text-anim-bottom-left,
    .text-anim-bottom-center,
    .text-anim-bottom-right {
        bottom: var(--edge-padding-mobile);
    }

    /* Menší velikost písma */
    .text-anim-top-left h1,
    .text-anim-top-center h1,
    .text-anim-top-right h1,
    .text-anim-left-center h1,
    .text-anim-right-center h1,
    .text-anim-bottom-left h1,
    .text-anim-bottom-center h1,
    .text-anim-bottom-right h1,
    .text-anim-center h1 {
        font-size: 150% !important;
    }

    .text-anim-top-left div,
    .text-anim-top-center div,
    .text-anim-top-right div,
    .text-anim-left-center div,
    .text-anim-right-center div,
    .text-anim-bottom-left div,
    .text-anim-bottom-center div,
    .text-anim-bottom-right div,
    .text-anim-center div {
        font-size: 100% !important;
    }
}

/* HOMEPAGE #2 STYLES (sections under the main background images) */

/* Initial hiding of all the elements */

.animate-on-scroll {
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px); /* fallback for vertical slide */
    transition: none;
}

/* Specific initial transforms based on animation type */
.animate-on-scroll.slide-left {
    transform: translateX(-200px);
}
.animate-on-scroll.slide-right {
    transform: translateX(200px);
}
.animate-on-scroll.flip {
    transform: rotateY(-180deg);
}

/* Animation keyframes */
/* Important Note: Animations don't re-trigger just by toggling classes! This means that when I change class dynamically using JavaScript, the animation will not trigger. It needs to be reseted in JS! */

@keyframes show_hidden {
    from {
        transform: translate(-200px);
        opacity: 0;
    }
    to {
        transform: translate(0);
        opacity: 1;
    }
}
@keyframes hide_shown {
    from {
        transform: translateX(200px); /* start off-screen to the right */
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}
@keyframes flip-in {
    from {
        transform: rotateY(
            -180deg
        ); /* rotateX(-180deg) for rotating around horizontal axis */
        opacity: 0;
    }
    to {
        transform: rotateY(0deg);
        opacity: 1;
    }
}
@keyframes flip-out {
    from {
        transform: rotateY(0deg);
        opacity: 1;
    }
    to {
        transform: rotateY(-180deg);
        opacity: 0;
    }
}

/* Animation classes */

.slide-left-in {
    animation: show_hidden 1s ease-out forwards;
}
.slide-left-out {
    animation: show_hidden 1s ease-out reverse forwards;
}
.slide-right-in {
    animation: hide_shown 1s ease-out forwards;
}
.slide-right-out {
    animation: hide_shown 1s ease-out reverse forwards;
}
.flip-in {
    animation: flip-in 1s ease-out forwards;
    transform-origin: center;
    backface-visibility: hidden;
    animation-delay: var(--flip-delay, 0s);
}
.flip-out {
    animation: flip-out 1s ease-out forwards;
    transform-origin: center;
    backface-visibility: hidden;
    animation-delay: var(--flip-delay, 0s);
}

/* Boxes classes */

section[id] {
    scroll-margin-top: 80px; /* or height of your fixed header */
}
.indent-left {
    padding-left: 100px;
    padding-right: 100px;
    box-sizing: border-box;
}
/* Moderate indent on smaller screens (mobile/tablet) */
@media (max-width: 768px) {
    .indent-left {
        padding-left: 1.5rem; /* moderate indent on narrow screens */
        padding-right: 1.5rem;
    }
}

/* === CARS SECTION === */

/* === Base Layout (Mobile First) === */
.layout {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

/* === Text Box === */
.text-box {
    width: 100%;
    height: auto;
    /*aspect-ratio: 3 / 2;*/
    border: 1px solid lightgray;
    border-radius: 8px;
}

/* === Content Box === */
.content-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* === Section Title === */
.section-title {
    text-align: center;
    margin: 0;
    width: 100%;
}
.section-title span,
.section-title h2,
.section-title h1 {
    display: inline-block;
    color: #fff;
    background-color: #8b0000;
    padding: 3px 20px 7px 20px;
    border-radius: 5px;
}

/* Keep the previous visual size when an <h1> is used as the section title. */
.section-title h1,
h1.section-title {
    font-size: clamp(1.5rem, 4vw, 2.25rem);
}

/* DÍLY */
.section-title .color-dily {
    background-color: #04aa6d;
}
.section-title .color-dily-2 {
    color: #04aa6d;
    margin-top: 0;
}
/* VOZY */
.section-title .color-vozy {
    background-color: #e68a00;
}
.section-title .color-vozy-2 {
    color: #e68a00;
    margin-top: 0;
}

/* === Box Row === */
.box-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

/* === Individual Box === */
.box-2 {
    background: #f5f5f5;
    padding: 1rem;
    flex: 1 1 100%;
    min-width: 350px;
    box-sizing: border-box;
    border-radius: 8px;
    text-align: center;
}

/* === Slideshow === */
.foto-box,
.foto-box-2 {
    aspect-ratio: 4 / 3;
    width: 100%;
    max-width: 100%; /* prevent overflow */
    min-width: 0; /* allow shrinking */
    overflow: hidden;
    position: relative;
}
.foto-box img.slide,
.foto-box-2 img.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    border-radius: 10px;
}
.foto-box img.slide.active,
.foto-box-2 img.slide.active {
    opacity: 1;
    z-index: 1;
}
.foto-box .counter,
.foto-box-2 .counter {
    position: absolute;
    bottom: 8px;
    right: 12px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2;
}

/* === Medium Screens (Tablet) === */
@media (min-width: 700px) {
    .box-2 {
        flex: 1 1 calc(50% - 1rem); /* 2 boxes side by side */
    }
}

/* === Large Screens (Desktop) === */
@media (min-width: 1920px) {
    .layout {
        display: grid;
        grid-template-columns: 33% 67%;
        align-items: start;
        gap: 1.5rem;
    }
    .text-box {
        height: 100%;
        max-height: 620px; /* cap the height */
        overflow-y: auto; /* scroll if content exceeds cap */
    }
    .content-box {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: 100%;
    }
    .section-title {
        flex: 0 0 auto;
        margin-bottom: 1rem;
    }
    .box-row {
        flex: 1 1 auto;
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
    }
    .box-2 {
        flex: 1 1 0; /* 4 boxes side by side */
        min-width: 0;
        width: 100%;
        max-width: calc(33.333% - 1rem);
    }
}
/* === Extra-wide layout for 1440px to 1919px === */
@media (min-width: 1440px) and (max-width: 1919px) {
    .layout {
        flex-direction: column; /* stack text-box and content-box */
    }
    .text-box {
        width: 100%;
        max-width: 100%;
    }
    .content-box {
        width: 100%;
        max-width: 100%;
    }
    .box-row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 1rem;
    }
    .box-2 {
        flex: 1 1 0;
        min-width: 0;
        width: 100%;
        max-width: calc(25% - 1rem); /* 4 boxes per row */
    }
}

/* === OTHER SECTIONS === */

/* Base Layout (Mobile-First): stack everything */
.content-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 2rem;
}

.boxes {
    display: flex;
    flex-wrap: wrap; /* allow wrapping below 1920px */
    gap: 1.5rem;
    width: 100%;
    justify-content: center;
    overflow: hidden;
}

/* image-box is just another .box at the moment */
.image-box {
    flex: 1 1 100%;
    /* remove width:100% so flex rules can override it later */
    aspect-ratio: 3 / 2;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
}

/* ordinary boxes */
.box {
    background: #f5f5f5;
    padding: 1rem;
    flex: 1 1 100%;
    min-width: 250px;
    box-sizing: border-box;
    border-radius: 8px;
    text-align: center;
}
.box-contact {
    background: #e6e6e6;
}

/* Icon inside any box */
.box img.icon,
.menu-info img.icon {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    max-height: 45px;
}

/* —— Medium screens: 3 boxes in a row, image still full-width on top —— */
@media (min-width: 1000px) {
    .box {
        flex: 1 1 calc(33.333% - 1rem);
    }
}

/* —— Wide screens (≥1920px): try to fit all 4 items in one row —— */
@media (min-width: 1920px) {
    .boxes {
        flex-wrap: nowrap; /* keep items on a single line if there’s space */
        justify-content: space-between;
    }

    .image-box {
        flex: 0 0 33.333%; /* lock at a third of the row */
        min-width: 350px; /* don’t shrink below 350px */
    }

    .box:not(.image-box) {
        flex: 1 1 350px; /* each box at least 350px, share remaining space */
        min-width: 350px;
    }
}
/* — Medium Screens: image full-width on row-1, 3 boxes on row-2 — */
@media (min-width: 1000px) and (max-width: 1919px) {
    .boxes {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
        width: 100%;
        justify-content: space-between;
    }

    /* Force the image-box to span the full width */
    .image-box {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Only the non-image boxes share the second row, each ~33.33% */
    .box:not(.image-box) {
        flex: 1 1 calc(33.333% - 1rem);
        max-width: calc(33.333% - 1rem);
    }
}
.image-box {
    position: relative; /* establish containing block */
    overflow: hidden; /* crop any overflow */
    width: 100%;
    aspect-ratio: 3 / 2;
    border-radius: 8px;
}
.image-box-vozy {
    aspect-ratio: 1.05 / 1;
}
.image-box-eshop {
    aspect-ratio: 0.96 / 1;
}

/* fill the .image-box, keep ratio, crop if needed */
.image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* scale & crop */
    object-position: center; /* center the focal point */
    display: block; /* remove inline gap */
}

/* Perspective */
.perspective {
    perspective: 1000px;
}

/* Buttons */

.button,
.button2,
.xbutton,
.button-contact {
    display: inline-block;
    padding: 0.6em 1.2em;
    text-decoration: none;
    border-radius: 8px;
    border: 2px solid transparent;
    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        border-color 0.3s ease;
    font-weight: 600;
    cursor: pointer;
}
.button-contact {
    color: white;
    cursor: default;
    background-color: rgba(0, 0, 0, 0.4);
}
.button:hover,
.button:focus {
    background-color: transparent;
    border-color: white; /* red border */
    outline: none;
}
.button-home,
.button-red {
    background-color: #8b0000; /* dark red */
    color: white;
}
.button-orange {
    background-color: #f58b0a; /* orange */
    color: white;
}
.button-violet {
    background-color: #7b29cf; /* violet */
    color: white;
}
.button-blue {
    background-color: #3598db; /* blue */
    color: white;
}
.button-green {
    background-color: #4caf50; /* green */
    color: white;
}
.button-yellow {
    background-color: #cccc00; /* yellow */
    color: white;
}
.button-gray {
    background-color: dimgray; /* gray */
    color: white;
}
.button-home:hover,
.button-home:focus {
    border-color: white;
    color: white;
}
.button-red:hover,
.button-red:focus {
    border-color: #8b0000; /* red border */
    color: #8b0000;
}
.button-orange:hover,
.button-orange:focus {
    border-color: #f58b0a; /* orange border */
    color: #f58b0a;
}
.button-violet:hover,
.button-violet:focus {
    border-color: #7b29cf; /* violet border */
    color: #7b29cf;
}
.button-blue:hover,
.button-blue:focus {
    border-color: #3598db; /* blue border */
    color: #3598db;
}
.button-green:hover,
.button-green:focus {
    border-color: #4caf50; /* green border */
    color: #4caf50;
}
.button-yellow:hover,
.button-yellow:focus {
    border-color: #cccc00; /* yellow border */
    color: #cccc00;
}
.button-gray:hover,
.button-gray:focus {
    border-color: dimgray; /* gray border */
    color: dimgray;
}
.button-blue2 {
    border-color: #3598db; /* blue */
    color: #3598db;
}
.xbutton-violet {
    border-radius: 20px;
    color: #7b29cf;
    border: 6px solid #7b29cf; /* violet */
}
.xbutton-blue {
    border-radius: 20px;
    color: #3598db;
    border: 6px solid #3598db; /* blue */
}
.xbutton:hover,
.xbutton:focus {
    border-color: black; /* blue border */
    color: black;
}

/* ===== HOMEPAGE QUICK PARTS SEARCH ===== */

/* The three containers are homepage-only (rendered conditionally in the
   header). Exactly one is visible per breakpoint: the desktop dock above
   1101px, the mobile toggle + panel at 1100px and narrower. */
.home-quick-search-dock,
.home-search-toggle,
.home-search-panel {
    display: none;
}

/* Desktop dock – anchored to the fixed header so we never guess its height. */
@media (min-width: 1101px) {
    .home-quick-search-dock {
        display: block;
        position: absolute;
        top: calc(100% + 1em);
        left: 50%;
        transform: translateX(-50%);
        width: min(700px, calc(100vw - 4em));
        z-index: 5;
    }

    /* Po změření v JS (global.js) lícuje pravý okraj lišty s pravým okrajem
       zvýrazněné položky menu "Díly – E-shop". Na ultra-širokých monitorech
       tím zmizí dlouhý vodorovný úsek dekorativní šipky. `is-aligned` přidává
       JS, takže bez JS zůstává vycentrovaný fallback výše. */
    .home-quick-search-dock.is-aligned {
        left: auto;
        right: var(--home-search-dock-right, 2em);
        transform: none;
        /* Šířka se v případě potřeby zmenší, aby lišta nikdy nepřetekla
           levý okraj hlavičky. */
        width: clamp(280px, calc(100vw - var(--home-search-dock-right, 2em) - 2em), 700px);
    }
}
/* Reserve a top band on the homepage so the dock doesn't cover slide texts.
   --home-search-bottom is measured in JS (public/js/global.js); 260px is a
   fallback used when JS is unavailable. */
@media (min-width: 1101px) {
    body[data-page="index"] .hero-section .text-anim-top-left,
    body[data-page="index"] .hero-section .text-anim-top-right {
        top: calc(var(--home-search-bottom, 260px) + 2em);
    }
    /* News (aktuality) carry their own !important position on low screens –
       override it so the news block never runs into the search dock. */
    body[data-page="index"] .hero-section .slide-text.text-anim-top-left:has(.news-container) {
        top: calc(var(--home-search-bottom, 260px) + 2em) !important;
    }
}

/* Mobile / tablet: magnifier button left of the cart + collapsible panel. */
@media (max-width: 1100px) {
    .home-search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 132px; /* left of the mobile cart (cart sits at right: 80px) */
        top: 50%;
        transform: translateY(-50%);
        z-index: 104;
        width: 44px;
        height: 44px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        font-size: 1.35em;
        line-height: 1;
        cursor: pointer;
        transition:
            background 0.3s ease,
            border-color 0.3s ease,
            height 0.3s ease;
        box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.55);
        animation: homeSearchPulse 2.6s ease-in-out infinite;
    }
    .home-search-toggle:hover,
    .home-search-toggle:focus {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }
    .header.scrolled .home-search-toggle {
        height: 34px;
    }

    .home-search-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 105;
        padding: 0.85em 1em 1em;
        background: rgba(20, 20, 20, 0.96);
        border-top: 1px solid rgba(255, 255, 255, 0.12);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .home-search-panel.open {
        display: block;
        animation: homeSearchPanelIn 0.25s ease-out;
    }
}

@keyframes homeSearchPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(178, 34, 34, 0.55);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(178, 34, 34, 0);
    }
}
@keyframes homeSearchPanelIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared form styling (used by both the desktop dock and the mobile panel). */
.home-quick-search-dock .quick-search-form {
    background: rgba(16, 16, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 4px solid #b22222; /* subtle attention cue */
    border-radius: 12px;
    padding: 0.75em 1em;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.quick-search-form {
    margin: 0;
}
.quick-search-row {
    display: flex;
    gap: 0.5em;
}
.quick-search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7em 0.9em;
    font-size: 1rem;
    color: #111;
    background: #fff;
    border: 1px solid #999;
    border-radius: 8px;
}
.quick-search-input:focus {
    outline: none;
    border-color: #b22222;
    box-shadow: 0 0 0 3px rgba(178, 34, 34, 0.25);
}
.quick-search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.7em 1.1em;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    background: #b22222;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}
.quick-search-submit:hover,
.quick-search-submit:focus {
    background: #8b0000;
}
.quick-search-hint {
    margin: 0.5em 0 0;
    font-size: 0.8em;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.8);
}
.quick-search-hint a {
    color: #fff;
    text-decoration: underline;
}
.quick-search-hint em {
    font-style: normal;
    color: #ffd27f;
}
@media (max-width: 480px) {
    .quick-search-submit-text {
        display: none;
    }
    .quick-search-submit {
        padding: 0.7em 0.9em;
    }
}

/* Curved decorative arrow from the featured "Díly" menu item to the dock.
   The SVG is created/positioned in JS (global.js); desktop + homepage only. */
.home-search-arrow {
    display: none;
}
@media (min-width: 1101px) {
    body[data-page="index"] .home-search-arrow {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        z-index: 999;
        pointer-events: none;
        overflow: visible;
    }
}
.home-search-arrow-path {
    stroke: #c02a2a;
    stroke-width: 7;
    stroke-linecap: butt;
    stroke-linejoin: round;
    fill: none;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation: homeSearchArrowDraw 0.5s ease-out 0.15s forwards;
}
.home-search-arrow-head {
    fill: #c02a2a;
    opacity: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    animation: homeSearchArrowHeadIn 0.15s ease-out 0.6s forwards;
}
@keyframes homeSearchArrowDraw {
    to {
        stroke-dashoffset: 0;
    }
}
@keyframes homeSearchArrowHeadIn {
    to {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .home-search-arrow-path,
    .home-search-arrow-head {
        animation: none;
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

/* Featured "Díly" menu item (homepage only): exactly the active item's box
   (background, padding, radius, colour), plus a slow subtle gradient drift.
   The extra `.menu` class is required to outrank the generic `.menu a`
   padding (specificity) so the red pill is the same size as on /dily. */
.menu .menu-item--featured {
    background-color: #8b0000;
    background-image: linear-gradient(90deg, #8b0000, #b22222, #8b0000);
    background-size: 200% 100%;
    background-position: 0% 50%;
    color: #fff;
    padding: 0.5em 0.5em 0.25em 0.5em;
    border-radius: 4px;
    animation: menuFeaturedShift 8s linear infinite;
}
@media (max-width: 768px) {
    .menu .menu-item--featured {
        padding: 0.25em 0.5em;
    }
}
@keyframes menuFeaturedShift {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}
@media (prefers-reduced-motion: reduce) {
    .menu-item--featured,
    .home-search-toggle {
        animation: none;
    }
}

/* MENU STYLES */

/* Desktop */

.header {
    display: flex;
    justify-content: space-between; /* Logo left, menu right */
    align-items: center;
    position: fixed;
    box-sizing: border-box;
    width: 100vw;
    top: 0;
    left: 0;
    z-index: 1000;
    background: transparent; /* No background initially */
    margin: 0;
    padding: 0.75em 2em;
    transition:
        background 0.5s ease,
        padding 0.5s ease;
    will-change: background, padding;
    overflow: visible; /* allow children to overflow */
}
.menu {
    display: flex;
    gap: 2em;
    color: white;
    font-size: 1em;
}
/* Položka "Kariéra" je devátá textová položka menu. Na užších desktopech
   (plné menu se zobrazuje od 1101px) mají položky menší mezery, aby se
   menu udrželo na jednom řádku a nepřeteklo hlavičku. */
@media (min-width: 1101px) and (max-width: 1439px) {
    .menu {
        gap: 1.25em;
    }
}
.menu a {
    color: white;
    text-decoration: none;
    padding: 0.25em 0;
}
.menu-item {
    background-color: transparent;
    padding: 0.5em 0.5em 0.2em 0.5em;
    border-radius: 5px;
    text-decoration: none;
    color: inherit;
}
.menu-item.active {
    background-color: #b22222;
    color: #fff; /* optional: better contrast */
}
.menu a.active,
.menu-item-2.active {
    background: #8b0000; /* Active item styling */
    padding: 0.5em 0.5em 0.25em 0.5em;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .menu a.active,
    .menu-item-2.active {
        padding: 0.25em 0.5em;
    }
    .menu-item.active {
        background-color: transparent;
    }
}
.menu .menu-text,
.menu .menu-text-2 {
    position: relative; /* enable absolute positioning for ::after */
    overflow: hidden; /* prevent underline overflow */
    display: inline-block; /* restrict width exactly to text */
}
.menu .menu-text::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 100%;
    height: 1px;
    background-color: white;
    transition: transform 0.3s ease;
}
.menu a:hover .menu-text::after,
.menu a:focus .menu-text::after,
.submenu-toggle:hover .menu-text::after,
.submenu-toggle:focus .menu-text::after {
    transform: translateX(-50%) scaleX(1);
}
/* Shopping cart */
.menu a.kosik {
    background: none;
    padding: 0.25em 0.5em;
    border: 1px solid white;
    border-radius: 4px;
}
.menu a.kosik:hover,
.menu a.kosik:focus {
    background: white;
    color: black;
}
/* Basic submenu styling, hidden initially */
.submenu {
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
    display: flex;
    position: absolute;
    left: 0;
    background: rgba(30, 30, 30, 0.95); /* #666666 */
    border: 1px solid #666666;
    margin-top: 0;
    padding: 0.5em 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    min-width: 160px;
    z-index: 1000;
    flex-direction: column;
}
@media (max-width: 768px) {
    .submenu {
        border: none;
    }
}
.submenu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}
.submenu-right {
    right: 0;
    left: auto;
}
.menu-info {
    border: 0px solid white;
    margin-top: -0.5em;
    padding: 0.5em 1em;
}
.menu-info-toggle .arrow {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-top: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    margin-bottom: 0.3em;
    flex-shrink: 0; /* prevent shrinking */
    margin-right: 0.3em; /* space next to the arrow */
}
/* Desktop submenu: show on hover */
@media (min-width: 1101px) {
    .submenu-container {
        position: relative;
        padding-top: 0.25em; /* vertically aligns the menu items */
    }
    .submenu-container:hover > .submenu {
        /*display: flex;*/
        opacity: 1;
        transform: translateY(0);
        visibility: visible;
    }
    /* Hide arrow icons on desktop */
    .submenu-toggle .arrow {
        display: none;
    }
    .submenu a {
        padding-left: 1em;
    }
}
.logo {
    text-decoration: none;
}
.logo img.logo-image {
    width: auto;
    display: block;
    max-width: 110px; /* Default large logo max width */
    height: auto;
    transition: all 0.5s ease;
}
/* Container for logo image and text */
.logo-container {
    display: flex;
    align-items: center; /* center text vertically with logo */
    gap: 1rem; /* space between logo and text */
    transition: all 0.5s ease;
    color: white; /* or your preferred color */
}
/* Logo text styling */
.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
    margin: 0;
    margin-top: -0.9rem;
}
.line1 {
    /*font-family: 'Exo 2 Condensed', sans-serif;*/
    font-size: 4rem;
    font-weight: 600;
}
.line2 {
    font-family: "Exo 2 Condensed", sans-serif;
    font-weight: 400;
    font-size: 2rem;
    letter-spacing: 1.2px; /* tweak until it visually matches */
}
/* Ensure on desktop normal logo text visible */
@media (min-width: 1440px) {
    .logo-text {
        color: white; /* ensure visible text on desktop */
        display: flex;
    }
    .logo img.logo-image {
        max-width: 110px;
        position: static;
        height: auto;
    }
}
/* Hide logo text on screens <1440px */
@media (max-width: 1439px) {
    .logo-text {
        display: none;
    }
}
.header.scrolled {
    position: fixed;
    background: rgba(30, 30, 30, 0.85); /* Semi-transparent on scroll */
    width: 100vw;
    left: 0;
    top: 0;
    padding: 0.25em 2em;
    transition: background 0.5s;
    z-index: 100;
    backdrop-filter: blur(
        6px
    ); /* optinal enhancement to add a backdrop for a fostered-glass effect */
}

/* SCROLLED STATE - triggers via JS add class .scrolled to header */
.header.scrolled .logo-container {
    gap: 0; /* remove gap with text to hide it */
    color: transparent; /* hide text visually */
}
.header.scrolled .logo-text {
    display: none; /* hide text when scrolled */
}
@media (min-width: 1101px) {
    .header.scrolled .logo img.logo-image {
        position: absolute;
        max-width: none;
        height: 60px; /* scaled logo height on scroll */
        bottom: -20px; /* vertical position */
        left: 3.5rem; /* horizontal position */
        transition: all 0.5s ease;
        z-index: 101;
    }
}

/* Hide mobile menu */
.menu-toggle {
    display: none; /* hidden by default */
    /* These styles are for mobile, but should remain outside "@media (max-width: 768px)" query: */
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 102;
}
/* These styles are for mobile, but should remain outside "@media (max-width: 768px)" query: */
.menu-toggle .icon-bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
}
.menu-toggle .top {
    top: 4px;
}
.menu-toggle .middle {
    top: 14px;
}
.menu-toggle .bottom {
    top: 24px;
}
/* Morph to ✕ when menu is open */
.menu-toggle.open .top {
    transform: rotate(45deg);
    top: 13px;
}
.menu-toggle.open .middle {
    opacity: 0;
}
.menu-toggle.open .bottom {
    transform: rotate(-45deg);
    top: 13px;
}

/* Mobilní košík - fixní ikona v horní liště */
.cart-menu-mobile-fixed {
    display: none;
}

/*@media (max-width: 768px) {*/
@media (max-width: 1100px) {
    .cart-menu-mobile-fixed {
        display: block;
        position: absolute;
        right: 80px; /* Pozice nalevo od hamburger menu */
        top: 50%;
        transform: translateY(-50%);
        z-index: 103; /* Nad menu, ale pod modály */
        background: rgb(14, 14, 14, 0.5);
        border-radius: 8px;
    }

    .cart-menu-mobile-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px; /* Dostatečně velká klikací plocha */
        height: 44px;
        position: relative;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        transition: all 0.3s ease;
    }
    .header.scrolled .cart-menu-mobile-icon {
        height: 34px;
    }

    .cart-menu-mobile-icon:hover,
    .cart-menu-mobile-icon:focus {
        background: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.5);
    }

    .cart-menu-mobile-icon .menu-text-2 {
        font-size: 1.5em;
        line-height: 1;
    }

    .cart-menu-mobile-icon .menu-text-2 {
        font-size: 1.5em;
        line-height: 1;
    }

    /* Badge pro mobilní košík */
    .cart-menu-mobile-fixed .cart-badge {
        position: absolute;
        top: 25px;
        right: -12px;
        min-width: 22px;
        height: 22px;
        font-size: 0.75em;
        padding: 0 5px;
    }

    /* Header při scrollování - zajistit, že košík zůstane viditelný */
    .header.scrolled .cart-menu-mobile-fixed {
        display: block;
    }
}

/* ================== */
/* MOBILE MENU STYLES */
/* ================== */

/* Tablet menu wrapper */
@media (max-width: 1100px) {
    .menu-toggle {
        display: block; /* visible on mobile */
        background: none;
        border: none;
        font-size: 2em;
        color: white;
        cursor: pointer;
        z-index: 102;
    }
    .menu {
        position: absolute;
        top: 100%;
        left: 0; /* anchor to left edge */
        right: 0;
        width: 100vw;
        background: rgba(30, 30, 30, 0.95);
        flex-direction: column;
        align-items: flex-start;
        padding: 1em 1em;
        gap: 1em;
        display: none;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }
    .menu.open {
        display: flex;
        animation: fadeInMenu 0.3s ease forwards;
        font-size: 1.3em;
    }
    @keyframes fadeInMenu {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    /* Main menu item links */
    .menu > a,
    .menu .submenu-toggle {
        display: inline-block;
        width: auto;
        color: white;
        text-decoration: none;
        padding: 0; /* remove vertical padding, rely on gap */
        padding-left: 0em;
        position: relative;
    }
    /* Make submenu containers relative for submenu */
    /* Submenu container just stacks items, no extra space */
    .submenu-container {
        display: flex;
        flex-direction: column;
        width: auto; /* don't use 100% as this would cause the element to expand to the full [container's] width (!) */
    }
    .submenu-container.open {
        gap: 1em; /* ensures gap between .submenu-toggle and .submenu only when it's open */
    }
    .desktop.submenu-container,
    .desktop.kosik {
        display: none;
    }
    /* Submenu toggle row */
    .submenu-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
        margin: 0; /* remove excessive margin/padding */
    }
    .submenu-toggle .arrow {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid white;
        border-bottom: 2px solid white;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin-left: 0.5em;
        margin-bottom: 0.4em;
        flex-shrink: 0; /* prevent shrinking */
        margin-right: 0.3em; /* space next to the arrow */
    }
    /* Submenu styling for inline stacking */
    .submenu {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition:
            max-height 0.4s ease,
            opacity 0.4s ease;
        display: flex;
        flex-direction: column;
        gap: 1em;
        position: static;
        margin: 0;
        padding: 0;
        background: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
    }
    /* Submenu expanded */
    .submenu-container.open > .submenu {
        max-height: 500px; /* or whatever fits your longest submenu */
        opacity: 1;
    }
    /* Arrow up */
    .submenu-container.open > .submenu-toggle .arrow {
        transform: rotate(-135deg);
        margin-bottom: 0.1em;
    }
    /* Submenu links - only indent, NO vertical padding */
    .submenu a {
        display: inline-block;
        width: auto;
        color: white;
        text-decoration: none;
        padding: 0 1em 0 2em; /* indent left, no vertical padding */
        margin: 0;
        background: none; /* remove background except on hover */
        box-sizing: border-box;
    }
    .submenu a:hover,
    .submenu a:focus {
        /*background: #8B0000;*/
    }
    /* Header při scrollování - zajistit, že košík zůstane viditelný */
}
/* Mobile/tablet menu wrapper */
@media (max-width: 1100px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        background: transparent;
        padding: 0.5em 1em;
        z-index: 100;
        transition:
            background 0.5s ease,
            padding 0.5s ease;
        flex-direction: row;
        justify-content: space-between;
    }
    .header.scrolled {
        background: rgba(30, 30, 30, 0.85);
        padding: 0.5em 1em;
        backdrop-filter: blur(6px);
    }

    /* ===== Scroll and Responsive States ===== */
    /* MOBILE - hide text, scale logo down */
    .logo-container {
        gap: 0; /* Remove gap when text hidden */
    }
    .logo-text {
        display: none; /* hide text on mobile */
    }
    .logo img.logo-image {
        max-width: 60px; /* smaller logo size on mobile */
        height: auto;
        position: static; /* no positioning changes */
        transition: none; /* prevent scroll transition on mobile */
    }

    .header.scrolled .logo img.logo-image {
        position: absolute;
        left: auto;
        bottom: -19px; /* vertical position */
        transition: all 0.5s ease;
        z-index: 101;
    }
}

/* LIKVIDACE SECTION */

#likvidace-section {
    /* Scoped custom properties so they don't affect other components */
    --likvidace-transition-duration: 2s; /* adjust for slower/faster */
    --likvidace-transition-delay: 0s; /* delay before fade starts */

    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* FIX: Odstranění paddingu z hero sekce */
#likvidace-section.likvidace-section {
    padding: 0 !important;
    margin: 0;
}

/* Form sekce – bílý podklad, žádný černý gradient */
#likvidace-form.section-block {
    background: #fff;
    padding: 110px 1rem 2rem 1rem; /* menší top padding, aby nepřekrývalo hero */
}

/* Both backgrounds fill the viewport */
.likvidace-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
    width: 100vw;
    height: 100vh;
    left: 0;
    top: 0;
    margin: 0;
    padding: 0;
}

/* First image: visible immediately */
.likvidace-hero-bg1 {
    background-image: url("../img/automobile-4436386.webp");
    opacity: 1;
}

/* Second image: starts transparent, fades in once */
.likvidace-hero-bg2 {
    background-image: url("../img/automobile-4436386---focus.webp");
    opacity: 0;
    animation: likvidace-fade-in var(--likvidace-transition-duration)
        ease-in-out var(--likvidace-transition-delay) forwards;
}

/* Fade-in keyframes */
@keyframes likvidace-fade-in {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .likvidace-hero-bg2 {
        animation: none;
        opacity: 1; /* or 0 if you want to keep only the first image */
    }
}

@media (max-width: 1440px) {
    #hero-likv-norm,
    #hero-likv-phone {
        display: none;
    }
    /* Dodatečné zajištění pro mobil */
    #likvidace-section.likvidace-section {
        padding: 0 !important;
    }
}

/* AUTOPŮJČOVNA SECTION */

/* Autopůjčovna (karty vozů) */
.karta {
    height: 720px;
    padding: 40px 15px;
    color: #787878;
    border: 3px solid #fff;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
}
.karta:hover {
    border: 3px solid #608a32;
} /* b22222 (červená), 00a79d (tyrkys) ... #00c5e4 (sv.modrá) */
.kartax:hover {
    border: 3px solid #b22222;
}
.karta2 {
    border: 3px solid #fff;
    box-shadow: 0 0 16px 0 rgba(0, 0, 0, 0.2);
}
.karta2:hover {
    border: 3px solid lightgray;
} /* (tyrkys) ... #00c5e4 (sv.modrá) */
.karta_nadpis {
    margin: 1em 0;
    font-size: 1.2em;
}
.karta_text {
    border-top: 1px solid #787878;
    border-bottom: 1px solid #787878;
    width: 90%;
    margin: 0 auto;
}
.button1 {
    border: 2px solid #00a79d;
    color: #fff;
    background-color: #00a79d;
    text-transform: uppercase;
    padding: 7px 15px 7px 35px;
    border-radius: 10px;
    display: inline-block;
} /* (tyrkys) ... #00c5e4 (sv.modrá) */
.button1:hover {
    background-color: #008077;
    border-color: #008077;
} /* (tm.tyrkys) ... #099fb7 (tm.modrá) */
.button2 {
    border: 2px solid #ffe400;
    color: #787878;
    background-color: #ffe400;
    padding: 7px 15px 7px 35px;
    border-radius: 10px;
    display: inline-block;
}
.button2:hover {
    background-color: #c9b403;
    border-color: #c9b403;
}
.button3 {
    border: 2px solid #b22222;
    color: #fff;
    background-color: #b22222;
    text-transform: uppercase;
    padding: 7px 15px 7px 35px;
    border-radius: 10px;
    display: inline-block;
} /* (tyrkys) ... #00c5e4 (sv.modrá) */
.button3:hover {
    background-color: #6b1414;
    border-color: #6b1414;
} /* f44336, ffcc99 */
.button4 {
    border: 2px solid #333;
    color: #fff;
    background-color: #333;
    text-transform: uppercase;
    padding: 7px 15px 7px 35px;
    border-radius: 10px;
    display: inline-block;
} /* (tyrkys) ... #00c5e4 (sv.modrá) */
.button4:hover {
    background-color: #737373;
    border-color: #737373;
} /* f44336, ffcc99 */
#autoform input[type="text"] {
    border: 2px solid #b22222;
} /* zelená: #78C004 */
#autoform input[type="date"] {
    border: 2px solid #b22222;
    padding: 1em;
} /* zelená: #78C004 */
/* popisek u rezervovaných vozů v autopůjčovně */
.tt_text {
    visibility: hidden;
    width: 220px;
    background-color: black;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    /* position the tooltip */
    position: absolute;
    z-index: 1;
    top: 10px;
    left: 10px;
    font-size: 0.9em;
}
.tt_trigger:hover .tt_text {
    visibility: visible;
}
/* zelený rohový trojúhelníček */
.triangle {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #608a32 transparent transparent;
}
/* oranžový rohový trojúhelníček */
.triangle2 {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 40px 40px 0;
    border-color: transparent #e67300 transparent transparent;
}
/* oranžový rohový trojúhelníček (nový díl) */
.triangle3 {
    position: absolute;
    right: 0;
    top: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 120px 120px 0;
    border-color: transparent #e67300 transparent transparent;
}

/* GENERIC STYLES */

/* Zvýraznění (dekorace) */
.strong {
    font-weight: bold;
}
.em {
    font-style: italic;
}
.italic-l {
    display: inline-block;
    transform: skew(-10deg);
} /* simulace kurzívy pro znak ℓ, který nemá kurzívní verzi */
.u {
    text-decoration: underline;
}
.kap {
    font-variant: small-caps;
}
.u2 {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: dimgray;
    text-decoration-thickness: 1px;
}
.podtrh {
    border-bottom: 1px dotted dimgray;
}
.strike {
    text-decoration: line-through;
}
.norm,
.norm th {
    font-weight: normal;
    font-style: normal;
}
.norm2,
.norm2 th {
    font-weight: normal;
}
.wavy-underline {
    position: relative;
    background-repeat: repeat-x;
    background-size: 100% 1.4em; /* šírka čáry + tlouštka čáry */
    background-position: 0 320%; /* specifies where to place the background image within the element => x + y (left, right, top, bottom, center ... or %/units) */
    background-image: url("data:image/svg+xml;utf8,<svg width='42' height='20' xmlns='http://www.w3.org/2000/svg'><path d='M0 6 Q 10 2 20 6 T40 6 T60 6 T80 6 T100 6 T120 6' stroke='%23ccccff' stroke-width='5' fill='transparent'/></svg>");
    /* <svg width & height> defines the space your wavy line occupies */
    /* Change stroke color for different underline colors. %23 is # in URL encoding */
}
.wavy-sine-underline {
    position: relative;
    /* Create a 1-sine SVG wave as underline */
    background-repeat: repeat-x;
    background-size: 100% 0.33em; /* Thickness: roughly one-third the font size */
    background-position: 0 95%; /* Just below text; tweak as needed */
    padding-bottom: 0.18em; /* Padding so wave doesn't overlap descenders */
    /*font-size: inherit;                    /* or set a specific value if needed */
    background-image: url("data:image/svg+xml;utf8,<svg width='100' height='24' viewBox='0 0 100 24' xmlns='http://www.w3.org/2000/svg'><path d='M0 12 Q 25 0 50 12 Q 75 24 100 12' stroke='%23ccccff' stroke-width='8' fill='none'/></svg>");
}

/* Pozice */
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}

/* Zarovnání */
.center {
    text-align: center;
}
.right {
    text-align: right;
}
.left {
    text-align: left;
}
.fl {
    float: left;
}
.fl-desktop {
    float: left;
}
@media (max-width: 768px) {
    .fl-desktop {
        float: none;
    }
}
.fr {
    float: right;
}
.clear {
    clear: both;
}

/* Viditelnost */
.s {
    visibility: hidden;
}
.hidden {
    display: none !important;
}

/* Odsazení */
img.va1 {
    vertical-align: bottom;
}
img.va2 {
    vertical-align: middle;
}
img.va3 {
    vertical-align: top;
}
.mtx {
    margin-top: 0.2rem;
}
.mbx {
    margin-bottom: 0.2rem;
}
.mt-reset {
    margin-top: 0;
}
.mb-reset {
    margin-bottom: 0;
}
.mt {
    margin-top: 1rem;
}
.mb {
    margin-bottom: 1rem;
}
.mb2 {
    margin-bottom: 2rem;
}
.ml {
    margin-left: 1rem;
}
.ml2 {
    margin-left: 2rem;
}
.mr {
    margin-right: 1rem;
}
.mr2 {
    margin-right: 2rem;
}
.mt0 {
    margin-top: 0rem;
}
.mt2 {
    margin-top: 2rem;
}
.mb0 {
    margin-bottom: 0rem;
}
.pa {
    padding: 1em;
}
.pa2 {
    padding: 2rem;
}
.p-compact {
    padding: 0.2em 0.5em;
}
.pt {
    padding-top: 1rem;
}
.pt2 {
    padding-top: 2rem;
}
.pb {
    padding-bottom: 1rem;
}
.pb2 {
    padding-bottom: 2rem;
}
.pl {
    padding-left: 1rem;
}
.pr {
    padding-right: 1rem;
}
.pl2 {
    padding-left: 2rem;
}
.pr2 {
    padding-right: 2rem;
}
.pv1ph5 {
    padding: 1px 5px;
}
.pv3ph7 {
    padding: 3px 7px;
}
.pv5ph10 {
    padding: 5px 10px;
}
.prem {
    padding: 0.5rem 1rem;
}
.boxik {
    padding: 1px 0.5rem;
}
.boxik2 {
    padding: 3px 1rem;
}
.mtxli li {
    margin-top: 0.5rem;
}

/* Písmo */
.kod {
    font-family: Consolas, "Courier New";
}
.fxtiny {
    font-size: 50%;
}
.ftiny {
    font-size: 70%;
}
.fsmall {
    font-size: 85%;
}
.fsmall2 {
    font-size: 90%;
}
.fnormal {
    font-size: 100%;
}
.fabnormal {
    font-size: 110%;
}
.fbig {
    font-size: 125%;
}
.fhuge {
    font-size: 150%;
}
.flogo {
    font-size: 3.3rem;
}

/* Rámeček */
.box1 {
    border: 1px dotted dimgray;
    padding: 10px 20px;
    text-shadow: none;
    border-radius: 15px;
    overflow: auto;
}
.box2 {
    padding: 10px 20px;
    border-radius: 10px;
    overflow: auto;
}
.box-black {
    background: #333;
    padding: 10px 20px;
    margin: 1em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
    color: white;
}
.box-g-t {
    background: rgb(153, 153, 153, 0.1);
    padding: 10px 20px;
}
.box-y-30 {
    background: rgb(255, 255, 170, 0.3);
}
.box-neu {
    padding: 10px 20px;
    margin: 1em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
}
.br5 {
    border-radius: 5px;
}
.br10 {
    border-radius: 10px;
}
.br15 {
    border-radius: 15px;
}
.br25 {
    border-radius: 25px;
}
.pre-wrapper {
    display: inline-block; /* rámeček obepíná obsah */
    background-color: #d6d8db; /* šedé pozadí */
    /*padding: 10px;*/ /* vnitřní odsazení */
    border-radius: 6px; /* zaoblené rohy (volitelné) */
    overflow-x: auto; /* horizontální scroll při potřebe */
    max-width: 100%; /* zabrání přesahu mimo viewport */
}
.pre-wrapper pre {
    margin: 0; /* odstraní výchozí mezery */
    white-space: pre; /* zachová formátování a nezalamuje řádky */
    font-family: monospace; /* klasický vzhled pro <pre> */
}

/* Barva textu */
.black {
    color: black;
}
.red {
    color: #b22222;
}
.redx {
    color: #e03e2d;
}
.green {
    color: #669900;
} /* mírně světlejší zelená */
.green1 {
    color: green;
}
.green2 {
    color: #78c004;
}
.green3 {
    color: #0fbe7c;
} /* brčálově zelená */
.my-green {
    color: #04aa6d;
}
.greenx {
    color: #2dc26b;
}
.gray {
    color: #808080;
}
.gray2 {
    color: #999999;
} /* světlejší šedá než dimgray */
.blue {
    color: #0070c0;
}
.blue3 {
    color: teal;
} /* světle modrá */
.blue4 {
    color: blue;
}
.bluex {
    color: #3598db;
}
.bluex2 {
    color: #93c8ec;
} /* světlejší odstín */
.violet {
    color: #9900ff;
}
.orange {
    color: #e67300;
}
.orange2 {
    color: #ffa500;
} /* světlejší oranžová */
.orange3 {
    color: #e68a00;
} /* oranžová ze stránky vozy.php */
.yellow {
    color: #ffff99;
}
.yellow2 {
    color: #b3b300;
} /* tmavší žlutá (do hněda) */
.yellow3 {
    color: #daa520;
}
.brown {
    color: #996633;
}
.white {
    color: white;
}
.white2 {
    color: #e6e6e6;
} /* 90% white */

/* Barva pozadí */
.pozadi-y {
    background-color: #ffff99;
} /* žlutá */
.pozadi-y2 {
    background-color: #ffffcc;
} /* světlejší žlutá */
.pozadi-y3 {
    background-color: #ffffcc;
    padding: 1px 5px;
} /* light yellow */
.pozadi-gr {
    background-color: #d6d8db;
} /* šedá */
.pozadi-gr2 {
    background-color: #f2f2f2;
} /* sv.šedá */
.pozadi-gr3 {
    background-color: rgba(102, 102, 102, 0.1);
}
.pozadi-b {
    background-color: #cce5ff;
} /* sv. modrá */
.pozadi-b2 {
    background-color: #ddebf7;
    padding: 1px 5px;
} /* blue */
.pozadi-g {
    background-color: #e6ffe6;
} /* zelená */
.pozadi-g2 {
    background-color: #e2efda;
    padding: 1px 5px;
} /* green */
.pozadi-r {
    background-color: #ffe6e6;
} /* červená */
.pozadi-r3 {
    background-color: #fbe2d5;
    padding: 1px 5px;
} /* light red */
.pozadi-v {
    background-color: #f2e6ff;
} /* fialová */
.pozadi-m {
    background-color: #e6f2ff;
} /* sv.modrá */
.pozadi-m2 {
    background-color: #cceeff;
} /* tm.modrá */
.pozadi-t {
    background-color: #d6f5f5;
} /* tyrkysová */
.pozadi-dark {
    background-color: #777;
}
.pozadi-w {
    background-color: #fff;
}
.ram-y2 {
    background: #ffffe6;
    padding: 2px 5px;
    margin: 0.5em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
}
.ram-r {
    background: #ffebe6;
    padding: 2px 5px;
    margin: 0.5em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
}
.ram-g {
    background: #f2ffe6;
    padding: 2px 5px;
    margin: 0.5em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
}
.ram-b {
    background: #e6f2ff;
    padding: 2px 5px;
    margin: 0.5em 0;
    text-shadow: none;
    border-radius: 5px;
    overflow: auto;
}

.bgempty {
    background-color: transparent;
    border: 1px solid #cccccc;
    padding: 1px 4px;
}
.bgblue {
    background-color: #e6f2ff;
}
.bgblue2 {
    background-color: #3399ff;
}
.bgred {
    background-color: #ffe6e6;
}
.bgred2 {
    background-color: #ff1500;
}
.bggreen {
    background-color: #e6ffe6;
}
.bggreen2 {
    background-color: #33cc33;
}
.bgyellow {
    background-color: #ffffe6;
}
.bgyellow2 {
    background-color: #ffff99;
}
.bgyellow3 {
    background-color: #ffff4d;
}
.bgorange {
    background-color: #ff9900;
}
.bgwhite {
    background-color: #ffffff;
}
.bggray {
    background-color: #cccccc;
}
.bgbrown {
    background-color: #d2a679;
}
.bgbox {
    padding: 2px 5px;
}
.bgbox2 {
    padding: 4px 10px;
}
.bgbox3 {
    padding: 1rem;
}

/* ========================================
   PAGINATION - MODERNÍ STRÁNKOVÁNÍ
   ======================================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3rem auto;
    padding: 0 1rem;
    max-width: 100%;
}

.pag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pag a,
.pag .tecky {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 0.75rem;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
    font-weight: 600;
    font-size: 1em;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Hover efekt */
.pag a:hover:not(.active) {
    background: #f5f5f5;
    border-color: #8b0000;
    color: #8b0000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 0, 0, 0.15);
}

/* Aktivní stránka */
.pag a.active {
    background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
    color: #fff;
    border-color: #8b0000;
    box-shadow: 0 4px 15px rgba(139, 0, 0, 0.3);
    cursor: default;
}

/* Tlačítka Předchozí/Další */
.pag a[style*="border:none"] {
    border: 2px solid #8b0000;
    background: #fff;
    color: #8b0000;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    min-width: auto;
}

.pag a[style*="border:none"]:hover {
    background: linear-gradient(135deg, #8b0000 0%, #b22222 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 0, 0, 0.35);
}

/* Tečky (...) */
.pag .tecky {
    border: none;
    background: transparent;
    box-shadow: none;
    color: #999;
    font-size: 1.2em;
    min-width: 30px;
    pointer-events: none;
}

/* Responzivní úpravy pro mobil */
@media (max-width: 768px) {
    .pagination-wrapper {
        margin: 2rem auto;
    }

    .pag {
        gap: 0.4rem;
    }

    .pag a,
    .pag .tecky {
        min-width: 38px;
        height: 38px;
        padding: 0.4rem 0.6rem;
        font-size: 0.95em;
    }

    /* Na mobilu schovej některá čísla stránek, zobraz jen důležité */
    .pag a[style*="border:none"] {
        padding: 0.4rem 0.8rem;
        font-size: 0.9em;
    }

    /* Kompaktnější mezery */
    .pag .tecky {
        min-width: 25px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .pag a,
    .pag .tecky {
        min-width: 36px;
        height: 36px;
        padding: 0.3rem 0.5rem;
        font-size: 0.9em;
    }

    .pag a[style*="border:none"] {
        padding: 0.3rem 0.6rem;
        font-size: 0.85em;
    }
}

/* Animace při načtení */
.pag a {
    animation: fadeInPagination 0.4s ease-out backwards;
}

.pag a:nth-child(1) {
    animation-delay: 0.05s;
}
.pag a:nth-child(2) {
    animation-delay: 0.1s;
}
.pag a:nth-child(3) {
    animation-delay: 0.15s;
}
.pag a:nth-child(4) {
    animation-delay: 0.2s;
}
.pag a:nth-child(5) {
    animation-delay: 0.25s;
}
.pag a:nth-child(6) {
    animation-delay: 0.3s;
}
.pag a:nth-child(7) {
    animation-delay: 0.35s;
}
.pag a:nth-child(8) {
    animation-delay: 0.4s;
}

@keyframes fadeInPagination {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus state pro přístupnost */
.pag a:focus {
    outline: 3px solid #8b0000;
    outline-offset: 2px;
}

/* Vylepšení pro touch zařízení */
@media (hover: none) and (pointer: coarse) {
    .pag a {
        min-width: 48px;
        height: 48px;
    }
}

/* ========================================
   LOGO - VÝBĚR OBRÁZKU
   ======================================== */

/* Logo selector - rozbalovací menu */
.logo-container {
    /*position: relative;*/
}

.logo-selector {
    position: absolute;
    top: 80%; /* Pod hlavním logem (mírně do něj zasahuje) */
    left: 0;
    background: rgba(30, 30, 30, 0.95);
    border-radius: 8px;
    padding: 0.5rem;
    display: none; /* Skryté ve výchozím stavu */
    flex-direction: column;
    gap: 0.5rem;
    z-index: 9999;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 200px;
    margin-top: 0.5rem;
    visibility: hidden;
}

/* Zobrazení při hoveru na desktop */
@media (min-width: 1101px) {
    .logo-container:hover .logo-selector {
        display: flex;
    }
}

.logo-selector-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.logo-selector-item:hover {
    background: rgba(139, 0, 0, 0.7);
    transform: translateX(5px);
}

.logo-selector-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-selector-item span {
    color: white;
    font-size: 0.9em;
    font-weight: 500;
}

/* Animace při rozbalení */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container:hover .logo-selector {
    animation: slideDown 0.3s ease;
}

/* Zvýraznění aktivního loga */
.logo-selector-item.active {
    background: rgba(139, 0, 0, 0.5);
    border: 2px solid #8b0000;
}

/* ========================================
   AKTUALITY
   ======================================== */

.news-box {
    position: relative;
    padding: 1.2rem 1.5rem 1.2rem 1rem;
    border-radius: 12px;
    /*background: rgba(0,0,0,0.7);*/
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    margin-bottom: 20px; /* svislá mezera mezi jednotlivými aktualitami */
}
/* Společné nastavení pro všechny karty */
.news-box {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    /* Výchozí průhlednost pro všechny */
    background-color: rgba(var(--news-rgb), 0.3);
}

/* Změna průhlednosti při najetí myši pro všechny typy najednou */
.news-box:hover {
    background-color: rgba(var(--news-rgb), 0.5);
}

.news-box:last-child {
    margin-bottom: 0; /* u poslední aktuality mezera nebude */
}

.news-box h2 {
    margin: 0 0 0.3rem 0;
    font-size: 140%;
    font-weight: 500;
}

/* ── 404 page ─────────────────────────────────────────────── */
.nf-wrap {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 2rem 1.5rem;
}

.nf-title { color: #fff; }

.nf-code {
    display: inline-block;
    color: #fff;
    background-color: #8b0000;
    padding: 2px 12px 4px;
    border-radius: 5px;
    font-size: 0.7em;
    vertical-align: middle;
}

.nf-text { color: #eee; font-size: 1.1rem; }

.nf-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.nf-btn {
    display: inline-block;
    background: #04aa6d;
    color: #fff;
    padding: 0.7rem 1.3rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
}

.nf-btn:hover { background: #059862; color: #fff; }
.nf-btn-ghost { background: #444; }
.nf-btn-ghost:hover { background: #555; }

.news-box h3 {
    margin: 0 0 0.8rem 0;
    font-size: 110%;
    font-weight: 400;
    opacity: 0.9;
}

.news-box p {
    margin: 0;
    line-height: 1.4;
}

/* Wrapper kvůli scroll panelu */
.news-text-wrapper {
    /*position: relative;*/
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

/* Rozbalený stav */
.news-text-wrapper.expanded {
    max-height: 300px; /* bezpečná výška pro mobily */
    overflow-y: auto;
}

/* Tlačítko Více/Méně */
.news-toggle {
    position: absolute;
    bottom: 1em;
    right: 1em;
    background: none;
    border: none;
    color: #fff; /* #007bff */
    padding: 4px 0;
    cursor: pointer;
    font-size: 14px;
}

.news-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    font-size: 130%;
    cursor: pointer;
    padding: 0;
}

/* Definice barev (pouze RGB složky) */
.news-info {
    --news-rgb: 51, 150, 255;
    border-left: 4px solid #4da3ff;
}
.news-warning {
    --news-rgb: 230, 138, 0;
    border-left: 4px solid #ff9800;
}
.news-danger {
    --news-rgb: 255, 59, 59;
    border-left: 4px solid #ff3b3b;
}
.news-success {
    --news-rgb: 70, 160, 73;
    border-left: 4px solid #4caf50;
}
.news-promo {
    --news-rgb: 230, 191, 0;
    border-left: 4px solid #ffd600;
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    margin-bottom: 0.8rem;
    font-size: 125%;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 6px;
    text-transform: uppercase;
    color: #fff;
}

/* Typové varianty */
.news-info .news-badge {
    background-color: #4da3ff;
}
.news-warning .news-badge {
    background-color: #ff9800;
}
.news-danger .news-badge {
    background-color: #ff3b3b;
}
.news-success .news-badge {
    background-color: #4caf50;
}
.news-promo .news-badge {
    background-color: #ffd600;
    color: #000;
}

@media (max-width: 768px) {
    .news-box {
        padding: 1rem 1.2rem 1rem 0.8rem;
    }
}

/* ========================================
   AKTUALITA (minimalizovaná)
   ======================================== */

.news-minimize {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.news-badge-minimized {
    background: #ff9800;
    color: #fff;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-left: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.news-badge-minimized.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .news-badge-minimized {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
        margin-right: 2.5rem;
    }
}

/* ========================================
   AKTUALITY - RESPONSIVE LAYOUT (OPRAVENÉ)
   ======================================== */

/* Wrapper pro aktuality - výchozí vertikální layout */
.news-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 450px;
}

/* TABLET (768px - 1100px): Vždy horizontálně */
@media (min-width: 768px) and (max-width: 1100px) {
    .news-container,
    .text-anim-top-left .news-container {
        flex-direction: row;
        max-width: 1000px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 1rem;
        gap: 15px;
        margin-top: 2em;

        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }

    .news-container::-webkit-scrollbar {
        height: 6px;
    }

    .news-container::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .news-container .news-box {
        flex: 1 1 300px;
        min-width: 280px;
        max-width: 400px;
        margin-bottom: 0;
    }

    /* 2 aktuality: rovnoměrné rozdělení */
    .news-container .news-box:first-child:nth-last-child(2),
    .news-container .news-box:first-child:nth-last-child(2) ~ .news-box {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    /* 1 aktualita: omezená šířka */
    .news-container .news-box:only-child {
        flex: 0 1 450px;
        max-width: 450px;
    }

    .news-container .news-text-wrapper.expanded {
        max-height: 200px;
    }

    /* Oprava pozice pro tablet - pouze když je .news-container aktivní */
    .slide-text.text-anim-top-left:has(.news-container) {
        top: 50px !important;
        left: 10px !important;
    }
}

/* ŠIROKÉ OBRAZOVKY S NÍZKOU VÝŠKOU (≥1101px šířka, <950px výška): Horizontálně */
@media (min-width: 1101px) and (max-height: 949px) {
    .news-container,
    .text-anim-top-left .news-container {
        flex-direction: row;
        max-width: 1000px;
        overflow-x: auto;
        overflow-y: visible;
        padding: 1rem;
        gap: 15px;
        margin-top: 3em;

        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    }

    .news-container::-webkit-scrollbar {
        height: 6px;
    }

    .news-container::-webkit-scrollbar-thumb {
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .news-container .news-box {
        flex: 1 1 300px;
        min-width: 280px;
        max-width: 400px;
        margin-bottom: 0;
    }

    .news-container .news-box:first-child:nth-last-child(2),
    .news-container .news-box:first-child:nth-last-child(2) ~ .news-box {
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }

    .news-container .news-box:only-child {
        flex: 0 1 450px;
        max-width: 450px;
    }

    .news-container .news-text-wrapper.expanded {
        max-height: 200px;
    }

    /* Oprava pozice pro široké, nízké obrazovky */
    .slide-text.text-anim-top-left:has(.news-container) {
        top: 50px !important;
        left: 10px !important;
    }
}

/* DESKTOP S DOSTATEČNOU VÝŠKOU (≥1101px šířka, ≥950px výška): Vertikálně */
@media (min-width: 1101px) and (min-height: 950px) {
    .news-container {
        flex-direction: column;
        max-width: 550px;
    }

    .news-container .news-box {
        margin-bottom: 20px;
    }

    .news-container .news-box:last-child {
        margin-bottom: 0;
    }
}

/* MOBIL (<768px): Vždy vertikálně */
@media (max-width: 767px) {
    .news-container {
        flex-direction: column;
        max-width: 100%;
        margin-top: 3em;
    }

    .news-container .news-box {
        margin-bottom: 20px;
    }

    .news-container .news-box:last-child {
        margin-bottom: 0;
    }
}

/* ========================================
   LIKVIDACE - STRÁNKOVÁNÍ TEXTU
   ======================================== */

.likv-page {
    display: none;
}

.likv-page.likv-page-active {
    display: block;
}

.likv-pagination {
    display: none; /* Skryté na desktopu */
    margin-top: 1.5rem;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.likv-arrow {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid #fff;
    color: #fff;
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.likv-arrow:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.likv-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Pulzující šipka */
.likv-arrow-pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
    }
}

.likv-page-indicator {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Desktop verze - vše najednou */
.likv-desktop-content {
    margin-top: 1rem;
    max-width: 550px;
}

/* Mobil/Tablet - stránkování */
@media (max-width: 1100px) {
    .likv-pagination {
        display: flex;
    }

    .likv-desktop-content {
        display: none;
    }
}

@media (max-width: 767px) {
    .likv-page {
        margin-top: 2em;
    }
}

/* =====================================
   KOMPAKTNÍ GRIDOVÉ MENU
   Pro široké, nízké displeje (landscape tablety)
   ===================================== */

@media (min-width: 769px) and (max-width: 1100px) and (max-height: 600px) {
    /* MenuWrapper - skryté ve výchozím stavu */
    .menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100vw;
        background: rgba(30, 30, 30, 0.98);

        /* Grid layout */
        display: none; /* DŮLEŽITÉ - výchozí skryté */
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.8rem;
        padding: 1rem;

        /* Scrollování pokud by přesto přeteklo */
        max-height: calc(100vh - 70px);
        overflow-y: auto;

        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    }

    /* Otevřené menu */
    .menu.open {
        display: grid; /* zobrazí jako grid */
        animation: fadeInMenu 0.3s ease forwards;
    }

    /* ===== POLOŽKY MENU - TLAČÍTKOVÝ STYL ===== */
    .menu > a,
    .menu .submenu-container {
        background: rgba(255, 255, 255, 0.08);
        border: 2px solid rgba(255, 255, 255, 0.15);
        border-radius: 12px;
        padding: 0;
        margin: 0;
        transition: all 0.3s ease;
        overflow: hidden;
    }

    .menu > a:hover,
    .menu .submenu-container:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    /* Aktivní položka */
    .menu > a.active,
    .menu .submenu-container.active {
        background: rgba(139, 0, 0, 0.7);
        border-color: #8b0000;
    }

    /* Odkazy uvnitř */
    .menu > a {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem 0.8rem;
        font-size: 1rem;
        font-weight: 600;
        text-align: center;
        min-height: 60px;
    }

    /* ===== SUBMENU KONTEJNERY ===== */
    .submenu-container {
        display: flex;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.08);
    }

    .submenu-toggle {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 0.8rem;
        cursor: pointer;
        font-size: 1rem;
        font-weight: 600;
        min-height: 60px;
    }

    /* Šipka vedle textu */
    .submenu-toggle .arrow {
        display: inline-block;
        width: 6px;
        height: 6px;
        border-right: 2px solid white;
        border-bottom: 2px solid white;
        transform: rotate(45deg);
        transition: transform 0.3s ease;
        margin: 0;
        flex-shrink: 0;
    }

    /* Otočená šipka */
    .submenu-container.open > .submenu-toggle .arrow {
        transform: rotate(-135deg);
    }

    /* ===== SUBMENU ===== */
    .submenu {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition:
            max-height 0.4s ease,
            opacity 0.4s ease,
            padding 0.4s ease;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        position: static;
        margin: 0;
        padding: 0;
        background: rgba(0, 0, 0, 0.3);
        box-shadow: none;
        border: none;
        border-radius: 0;
    }

    .submenu-container.open > .submenu {
        max-height: 400px;
        opacity: 1;
        padding: 0.8rem 0.6rem;
    }

    .submenu a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        text-align: left;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        transition: background 0.2s ease;
    }

    .submenu a:hover {
        background: rgba(139, 0, 0, 0.6);
    }

    /* Menu info */
    .menu-info {
        padding: 0.5rem 0.8rem;
        font-size: 0.85rem;
        line-height: 1.4;
        margin-top: 0;
        border: none;
    }

    .menu-info img.icon {
        max-height: 30px;
        margin-bottom: 0.3rem;
    }

    /* ===== KOŠÍK ===== */
    .cart-menu-wrapper {
        background: rgba(139, 0, 0, 0.5);
        border-color: #8b0000;
        grid-column: 1 / -1; /* přes všechny sloupce */
    }

    .cart-menu-wrapper:hover {
        background: rgba(139, 0, 0, 0.7);
    }

    .cart-menu-item {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem;
        font-size: 1.1rem;
        font-weight: 600;
        min-height: 60px;
    }

    /* Badge košíku */
    .cart-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-left: 0.3rem;
    }

    /* Mobilní košík fixní ikona */
    .cart-menu-mobile-fixed {
        display: none; /* schovej duplicitní košík */
    }

    /* Menu toggle viditelné */
    .menu-toggle {
        display: block;
    }
}

/* Extra kompaktní verze pro velmi nízké displeje */
@media (min-width: 769px) and (max-width: 1100px) and (max-height: 500px) {
    .menu {
        gap: 0.6rem;
        padding: 0.8rem;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .menu > a,
    .submenu-toggle {
        padding: 0.8rem 0.6rem;
        font-size: 0.9rem;
        min-height: 50px;
    }

    .submenu a {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }

    .menu-info {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
}

/* ========================================
   SLIDESHOW CONTROLS - INDIKÁTORY & PLAY/PAUSE
   ======================================== */

/* Zobrazení pouze na homepage */
.homepage-only {
    display: none;
}

body[data-page=""] .homepage-only,
body[data-page="index"] .homepage-only {
    display: block;
}

/* Kontejner pro ovládací prvky slideshow */
.slideshow-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: none; /* Výchozí skryté */
    align-items: center;
    gap: 1rem;
    background: rgba(30, 30, 30, 0.85);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Zobrazení pouze na homepage */
body[data-page=""] .slideshow-controls,
body[data-page="index"] .slideshow-controls {
    display: flex;
}

.slideshow-controls:hover {
    background: rgba(30, 30, 30, 0.95);
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6);
}

/* Play/Pause tlačítko */
.slide-control-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 0;
    position: relative;
}

.slide-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.slide-control-btn:active {
    transform: scale(0.95);
}

/* Ikony play/pause */
.slide-control-btn .play-icon,
.slide-control-btn .pause-icon {
    position: absolute;
    transition: opacity 0.3s ease;
}

.slide-control-btn .play-icon {
    opacity: 0;
    font-size: 0.8rem;
    margin-left: 2px; /* Optické vycentrování */
}

.slide-control-btn .pause-icon {
    opacity: 1;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Stav pauzy */
.slide-control-btn.paused .play-icon {
    opacity: 1;
}

.slide-control-btn.paused .pause-icon {
    opacity: 0;
}

/* Kontejner pro indikátory */
.slide-indicators {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

/* Jednotlivé puntíky */
.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.slide-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

/* Aktivní puntík */
.slide-indicator.active {
    background: #8b0000;
    border-color: #fff;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(139, 0, 0, 0.8);
}

/* Tooltip pro indikátory (zobrazí se jen na desktopu při hoveru) */
.slide-indicator::before {
    content: attr(data-title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: "Exo 2", sans-serif;
}

.slide-indicator::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(0, 0, 0, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

@media (min-width: 769px) {
    .slide-indicator:hover::before,
    .slide-indicator:hover::after {
        opacity: 1;
    }
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .slideshow-controls {
        bottom: 20px;
        padding: 0.6rem 1.2rem;
        gap: 0.8rem;
    }

    .slide-control-btn {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .slide-indicators {
        gap: 0.5rem;
    }

    .slide-indicator {
        width: 10px;
        height: 10px;
    }

    /* Na mobilu tooltip nefunguje dobře, raději vypnout */
    .slide-indicator::before,
    .slide-indicator::after {
        display: none;
    }
}

/* Extra malé displeje */
@media (max-width: 480px) {
    .slideshow-controls {
        padding: 0.5rem 1rem;
        bottom: 15px;
    }

    .slide-control-btn {
        width: 32px;
        height: 32px;
    }

    .slide-indicators {
        gap: 0.4rem;
    }

    .slide-indicator {
        width: 8px;
        height: 8px;
    }
}

/* Animace při načtení */
@keyframes slideControlsIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.slideshow-controls {
    animation: slideControlsIn 0.6s ease-out 1s backwards;
}

/* Skrytí starého pause tlačítka na mobilu pro homepage */
@media (max-width: 768px) {
    body[data-page=""] #pause-button,
    body[data-page="index"] #pause-button {
        display: none;
    }
}

/* ===== SITE FOOTER =====
   Běžná patička v toku dokumentu (na konci <body>) – zobrazí se až po
   odscrollování, nepřekrývá hero ani jiný obsah. */
.site-footer {
    background: #141414;
    border-top: 3px solid #8b0000;
    color: #cbd5e1;
    padding: 2.5rem 2rem 1.25rem;
    font-size: 0.92rem;
    position: relative;
    z-index: 2;
}
.site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.site-footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.75rem 2rem;
    margin-bottom: 2rem;
}
.site-footer-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    margin: 0 0 0.7rem;
}
.site-footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.site-footer-col a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}
.site-footer-col a:hover,
.site-footer-col a:focus {
    color: #ffffff;
    text-decoration: underline;
}
.site-footer-branches li {
    line-height: 1.55;
}
.site-footer-branches strong {
    color: #ffffff;
}
.site-footer-legal {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.35rem 1.25rem;
    font-size: 0.82rem;
    color: #94a3b8;
}
@media (max-width: 640px) {
    .site-footer {
        padding: 2rem 1.25rem 1.25rem;
    }
}
