@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis-bold';
    src: url('../fonts/Metropolis-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis-bolder';
    src: url('../fonts/Metropolis-Medium.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Metropolis-thin';
    src: url('../fonts/Metropolis-Light.otf') format('opentype');
    font-weight: thin;
    font-style: normal;
}

body, .fw-normal{
    font-family: 'Metropolis', sans-serif !important;
}

.fw-light{
    font-family: 'Metropolis-thin', 'sans-serif' !important;
}

.fw-bolder{
    font-family: 'Metropolis-bolder', 'sans-serif' !important;
}

.fw-bold{
    font-family: 'Metropolis-bold', 'sans-serif' !important;
}


.text-cervena{
    color: #db6827 !important;
}

.kontaktInfo .text-cervena p{
    color: #db6827 !important;
    margin-bottom: 0;
}

.kontaktInfo p i{
   font-size: 0.925rem;
}

.text-modra{
    color: #37383C !important;
}

.bg-cervena{
    background-color: rgb(219, 104, 39) !important;
}


.border-cervena{
    border-color: rgb(219, 104, 39) !important;
}

.bg-modra{
    background-color: #37383C !important;
}

button, iframe, input, textarea, img, .rounded-0{
    border-top-right-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}

.rounded-1{
    border-radius: 0px !important;
    border-bottom-left-radius: 12px !important;
}

.border-modra{
    border-color: #37383Cbb !important;
}

.jstf{
    text-align: justify;
}

a{
    text-decoration: none;
}

.strip td{
    background-color: rgba(55, 56, 60, 0.05);
}

.bi{
    position: relative;
    top: 1px !important;
}

.bg-trans{
    background-color: white;
}

iframe{
    border: 1px solid rgba(55, 56, 60, 0.6) !important;
}

.btn-edit{
    position: relative;
    top: -14px;
}

.t-1{
    position: relative;
    top: 2px !important;
}

.bggr{
    font-size: 1.05rem;
}

.rezim{
    padding-top: 4px;
    padding-bottom: 1px;
}

.btn-confirm {
    background-color: #198754;
    color: white;
    font-weight: bolder;
    width: 75px;
    margin: 12px 10px 0;
    border-top-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.btn-cancel {
    background-color: #dc3435;
    color: white;
    font-weight: bolder;
    width: 75px;
    margin: 12px 10px 0;
    border-top-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
}

.btn-cervena{
    font-weight: bold;
    padding: 12px 29px;
    color: white;
    background-color: #37383C;
    border: 3px solid #37383C;
    transition: 150ms ease-in-out;
}

.btn-cervena:hover{
    color: white;
    background-color: #db6827 !important;
    border: 3px solid #db6827 !important;
    transition: 150ms ease-in-out;
}

.btn-cervena:active{
    background-color: transparent;
    color: #db6827;
    border: 3px solid #db6827;
}

.btn-cervena2{
    font-weight: bold;
    padding: 12px 29px;
    color: white;
    background-color: #db6827;
    border: 3px solid #db6827;
    transition: 150ms ease-in-out;
}

.btn-cervena2:hover{
    color: white;
    background-color: #37383C;
    border: 3px solid #37383C;
    transition: 150ms ease-in-out;
}

.btn-cervena:active{
    background-color: transparent;
    color: #db6827;
    border: 3px solid #db6827;
}

.btn-modra{
    font-weight: bold;
    padding: 12px 29px;
    color: #37383C;
    border: 3px solid #37383C;
    background-color: white;
}

.btn-modra:hover{
    color: white;
    background-color: #37383C;
}

.btn-modra:active{
    color: white !important;
    border-color: #db6827 !important;
    background-color: #db6827 !important;
    transition: 150ms ease-in-out;
}

.btn-modra2{
    font-weight: bold;
    padding: 12px 29px;
    color: #37383C;
    border: 3px solid #db6827;
    background-color: white;
}

.btn-modra2:hover{
    color: white;
    background-color: #db6827 !important;
    transition: 150ms ease-in-out;
}

.btn-modra2:active{
    color: white !important;
    border-color: #37383C !important;
    background-color: #37383C !important;
}


.nav-item{
    padding: 4px 8px;
    font-size: 115%;
}

.nav-link:hover{
    color: #db6827 !important;
}

.nav-item .active{
    color: #db6827 !important;
    font-weight: bolder;
}

.t-4{
    position: relative;
    top: 4px;
}


.banner {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 1)), linear-gradient(to right, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.1)), url('../img/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

footer {
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.75)40%, rgba(255, 255, 255, 0.8)), url('../img/banner.jpg');
    background-size: cover;
    background-repeat: no-repeat;
}

.navbar {
    position: sticky;
    z-index: 1020;
    background-color: white !important;
    height: 96px; /* Výchozí výška */
    transition: height 200ms ease; /* Plynulý přechod */
}

/* Logo */
.nav-logo{
    position: relative;
    top: -5px;
    width: 87px; /* Výchozí šířka */
    transition: width 200ms ease, height 200ms ease;
}

/* Navbar text */
.navbar-nav {
    align-items: center;
    height: 100%; /* Zachování pevné výšky */
}

.nav-link {
    transition: color 250ms ease; /* Plynulé přechody při hoveru */
}

.navbar-toggler-icon{
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(55, 56, 60, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-toggler:active, .navbar-toggler::after, .navbar-toggler[aria-expanded="true"], .navbar-toggler[aria-expanded="false"]{
    border: none !important;
    color: transparent;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(219, 104, 39, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 4L26 26M26 4L4 26'/%3E%3C/svg%3E") !important;
}

.brdrN{
    border-left: 7px solid #db6827;
    padding: 3px 0 0 8px;
}

.clenove p, .clenove h6, .clenove ul{
    font-size: 110%;
    color: #37383C !important;
    font-weight: 300;
}

.clenove .rounded-3{
    border: 1px solid #db6827;
}

.xldsyes{
    display: none;
}

.fs-5-desc{
    font-size: 125%;
}

.text-collapse {
    max-height: 4.75em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease;
}

.text-collapse::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.5em; 
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #ffffff);
}

.text-expanded {
    max-height: none;
}

.show-more {
    position: relative;
    cursor: pointer;
    color: #db6827 !important;
    font-size: 110%;
    top: -10px;
}

.show-more:hover {
    cursor: pointer;
    text-decoration: underline 1px solid rgb(219, 104, 39);
    text-underline-offset: 2px;
}

.show-more:active {
    cursor: pointer;
    color: #37383C;
}

.topLine{
    border-top: 7px solid #37383C;
    margin-top: 6vh;
}

.fs-115{
    font-size: 115%;
}

.odkaz{
    color: rgb(219, 104, 39) !important;
    font-weight: normal;
    transition: 150ms;
    text-decoration: none;
}

.odkaz:hover{
    color: rgb(55, 56, 60) !important;
}

.credits{
    font-size: 90%;
}

footer a, .credits a, .kontakty a, .odkaz{
    color: unset;
    transition: 150ms;
    text-decoration: none;
}

footer a:hover, .credits a:hover, .kontakty a:hover, .odkaz:hover{
    color: rgb(219, 104, 39);
    letter-spacing: 0.5px;
}

footer img{
    width: 70%;
}

.d-sm-none{
    display: block !important;
}

.d-lg-none{
    display: none !important;
}

.d-lg-block{
    display: block !important;
}

.kontakty ul li::marker{
    color: rgb(219, 104, 39);
}

.logo-foot{
    width: 90%;
}

.topMinus{
    position: relative;
    top: -8px;
}

.req{
    color: #db6827;
    position: relative;
    top: -3px;
    padding: 0 2px;
}

.ls-1{
    letter-spacing: 1px;
    word-spacing: 3px;
}

.ls-1{
    letter-spacing: 0.6px;
    word-spacing: 2px;
}

.nmc2{
    font-size: 0.95rem;
}

.z-999{
    z-index: 999;
}

.lineTopNadpis2, .lineTopNadpis2Left{
    position: relative;
    height: 14px;
}

.lineTopNadpis2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; 
    background: linear-gradient(to right, rgb(219, 104, 39), transparent);
}


.lineTopNadpis2Left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px; 
    background: linear-gradient(to left, rgb(219, 104, 39), transparent);
}

.podtrh{
    text-decoration: underline 4px solid rgb(219, 104, 39);
    text-underline-offset: 12px;
}

.pt-09{
    padding-top: 9px;
}

.bg-trns{
    background: transparent !important;
}

.kontaktInfo a, .kontaktInfo p{
    font-size: 1.05rem;
    color: #37383C !important;
    transition: 150ms ease-in-out;
    padding-top: 2px;
}

.kontaktInfo a:hover{
    letter-spacing: 0.75px;
    color: #db6827 !important;
}

.swal2-popup{
    border-top-left-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    border-bottom-left-radius: 16px !important;
    border-top-right-radius: 16px !important;
    padding-bottom: 30px;
}

.spoluprace{
    box-shadow: 0px 2px 9px rgba(0, 0, 0, 0.15);
    transition: 150ms;
}

.spoluprace:hover{
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.3);
}

.spoluprace:active{
    box-shadow: 0px 2px 12px rgba(0, 0, 0, 0.5);
}

.height-150 {
    height: 145px !important;
}

.height-150 img{
    height: 100% !important;
    width: auto !important;
    max-width: 100% !important; 
    object-fit: contain;
}

.text-uvod{
    font-size: 1.075rem;
}

.text-uvod p{
    text-align: justify;
}

.text-uvod ol li::marker, .text-uvod ul li::marker{
    color: #db6827;
    font-weight: bold;
}

.text-uvod ol{
    padding-left: 24px;
}

.adminIcn{
    background-color: rgb(0, 0, 0, 0.025);
}

.adminIcn:hover{
    background-color: rgb(0, 0, 0, 0.075);
    transition: 150ms;
}

.adminIcn:active{
    background-color: rgb(0, 0, 0, 0.15);
}

.text-uvod ol li, .text-uvod ul li{
    padding-bottom: 8px;
}

.shdw{
    box-shadow: 3px 4px 16px #37383C40;
}

.dlt{
    position: relative;
    top: -46px;
}

.bgr-rad{
    border-top-right-radius: 24px !important;
    border-bottom-left-radius: 24px !important;
}

.uvod-img img{
    width: 85%;
    border: 7px solid white;
    border-top-right-radius: 24px !important;
    border-bottom-left-radius: 24px !important;
}

.uvod-img .uvod1{
    position: relative;
    left: 6%;
}

.uvod-img .uvod2{
    position: relative;
    left: 18%;
    top: -28px;
}

.uvod-img .uvod3{
    position: relative;
    top: -76px;
}

.uvod-img .uvod4{
    position: relative;
    top: -104px;
    left: 12%;
}

.form-control, .form-select, textarea{
    border: 1px solid rgb(55, 56, 60, 0.6);
}

.navbar{
    box-shadow: 0px 0px 24px #37383cbb;
}

.gallery-img {
    cursor: pointer;
    transition: transform 150ms ease-in-out;
    max-height: 290px;
    object-fit: cover;
}

.reference-card {
    position: relative;
    overflow: hidden;
}

.reference-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
    padding: 32px 20px 16px;
    opacity: 1;
    border-bottom-left-radius: 12px;
    transition: all 0.3s ease-in-out;
    pointer-events: none;
}

.reference-card:hover .reference-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(219,104,39,0.85) 0%, transparent 100%);
}

.reference-overlay h5 {
    margin: 0;
    font-size: 1.2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.admin-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
}

/* Modal styly pro reference */
#galleryModal .modal-dialog {
    max-width: 750px;
    margin: 1rem auto 0;
}

#galleryModal .modal-content {
    background: #ffffff !important;
    border-radius: 0px;
    border-bottom-left-radius: 28px !important;
    border-top-right-radius: 28px !important;
    overflow: hidden;
}

#galleryModal .modal-header {
    padding: 1rem;
    background: #ffffff;
}

#galleryModal .modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

#galleryModal .modal-backdrop {
    background-color: rgba(0, 0, 0, 0.925) !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
}

#galleryModal #modalImage {
    max-height: 70vh;
    width: 100% !important;
    width: auto;
    margin: 0 auto;
    display: block;
    object-fit: contain;
}

#galleryModal #referencePopis {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333333;
}

#galleryModal #imageCounter {
    font-size: 0.9rem;
    color: #666666;
    padding: 1rem;
}


.nav-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
}

.nav-left, .nav-right {
    width: 50%;
    height: 100%;
    cursor: pointer;
    transition: 150ms ease-in-out;
    position: relative;
}

.nav-left:hover{
    background: linear-gradient(to left, rgba(0, 0, 0, 0.0) 85%, rgba(0, 0, 0, 0.15));
}

.nav-right:hover{
    background: linear-gradient(to right, rgba(0, 0, 0, 0.0) 85%, rgba(0, 0, 0, 0.15));
}

/* Šipky jako zobáčky */
.nav-left::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25px;
    transform: translateY(-50%) rotate(45deg);
    width: 20px;
    height: 20px;
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    border-bottom: 4px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.nav-left:hover::before {
    border-left-color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 1);
    left: 20px;
}

.image-container {
    position: relative;
    display: inline-block;
    margin: 0.65rem 1rem;
}

.nav-right::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 25px;
    transform: translateY(-50%) rotate(-135deg);
    width: 20px;
    height: 20px;
    border-left: 4px solid rgba(255, 255, 255, 0.8);
    border-bottom: 4px solid rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.nav-right:hover::before {
    border-left-color: rgba(255, 255, 255, 1);
    border-bottom-color: rgba(255, 255, 255, 1);
    right: 20px;
}

@media screen and (max-width: 1400px) {
    .fs-5-desc{
        font-size: 120%;
    }

    footer img{
        width: 80%;
    }

    .navbar {
        height: 125px;
    }
    
    .nav-logo {
        width: 113px;
    }
    
    .topLine{
        margin-top: 7vh;
    }

    .height-150 {
        height: 125px !important;
    }

    .banner {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 1)), linear-gradient(to right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.25)), url('../img/banner.jpg');
    }

    .logo-foot{
        width: 95%;
    }
}

@media screen and (max-width: 1200px) {
    
    .height-150 {
        height: 115px !important;
    }
}

@media screen and (max-width: 992px) {
    .banner {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 1)), linear-gradient(to right, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.85) 50%, rgba(255, 255, 255, 0.35)), url('../img/banner.jpg');
    }

    .height-150 {
        height: 100px !important;
    }

    .navbar {
        height: 105px;
    }

    .navbar-collapse{
        position: relative;
        top: 2px;
        box-shadow: 0px 19px 18px #37383c66;
        padding: 8px 0 4px;
    }
    
    .nav-logo {
        width: 95px;
    }

    .nav-item{
        font-size: 110%;
    }

    .xldsno{
        display: none;
    }

    .xldsyes{
        display: unset;
        width: 65%;
    }
    
    .fs-5-desc{
        font-size: 115%;
    }

    footer img{
        width: 70%;
    }

    footer img{
        width: 35%;
    }

    .table-wrapper {
        overflow: auto !important;
        white-space: nowrap;
    }

    .logo-foot{
        width: 30%;
    }

    .nmc{
        font-size: 1.1rem;
    }
    
    .d-lg-none{
        display: block !important;
    }

    .d-lg-block{
        display: none !important;
    }

    .uvod-img img{
        width: 65%;
    }

    .uvod-img .uvod1{
        left: 0%;
        top: 30px;
    }
    
    .uvod-img .uvod2{
        left: 36%;
        top: -42px;
    }
    
    .uvod-img .uvod3{
        top: 0px;
    }
    
    .uvod-img .uvod4{
        top: -48px;
        left: 36%;
    }
}

@media screen and (max-width: 768px) {
    .rounded-1{
        border-top-right-radius: 12px !important;
        border-bottom-left-radius: 0px !important;
    }

    .banner {
        background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 1)), linear-gradient(to right, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.75) 50%, rgba(255, 255, 255, 0.25)), url('../img/banner.jpg');
    }


    .navbar {
        height: 80px;
    }

    .navbar .navbar-toggler{
        position: relative;
        top: -5px;
    }

    .navbar-collapse{
        top: -9px;
    }

    .nav-logo {
        width: 87px;
    }

    .nav-item{
        font-size: 105%;
    }

    .text-xs-center{
        text-align: center;
    }

    .xldsyes{
        width: 75%;
    }

    .fs-5-desc{
        font-size: 110%;
    }

    footer img{
        width: 50%;
    }

    .logo-foot{
        width: 45%;
    }

    .nmc{
        font-size: 1.25;
    }
    
    .height-150 {
        height: 105px !important;
    }
}

@media screen and (max-width: 576px) {
    .uvod-img img{
        width: 85%;
    }

    .image-container {
        margin: 0.35rem 0.75rem;
    }

    .navbar-collapse{
        top: -8px;
    }

    .uvod-img .uvod1{
        left: 0%;
        top: 16px;
    }
    
    .uvod-img .uvod2{
        left: 15%;
        top: -32px;
    }

    .uvod-img .uvod2.dwn{
        top: -12px;
    }
    
    .uvod-img .uvod3{
        top: -24px;
    }
    
    .uvod-img .uvod4{
        top: -52px;
        left: 15%;
    }

    .height-150 {
        height: 95px !important;
    }

    .nmc{
        font-size: 1.1rem;
    }

    .nmc2{
        font-size: 0.875rem;
    }

    .lineTopNadpis{
        top: 7px;
    }

    .navbar {
        height: 75px;
    }
    
    .nav-logo {
        width: 79px;
    }
    
    .nav-item{
        font-size: 100%;
    }

    .fs-5{
        font-size: 115% !important;
    }

    .xldsyes{
        width: 85%;
    }

    .fs-5-desc{
        font-size: 105%;
    }

    .clenove p, .clenove h6, .clenove ul{
        font-size: 105%;
        color: #37383C !important;
        font-weight: 300;
    }

    footer img{
        width: 70%;
    }

    .d-sm-none{
        display: none !important;
    }

    .logo-foot{
        width: 60%;
    }

    .text-uvod{
        font-size: 1.05rem;
    }

    .text-uvod ol{
        font-size: 1.025rem;
    }
}

@media screen and (max-width: 400px) {
    .height-150 {
        height: 90px !important;
    }
}
