a{
    color: black;
    text-decoration: none;
}
img[src$=".svg"], svg {
  shape-rendering: geometricPrecision;
  vector-effect: non-scaling-stroke;
}

/* HEADER */
header{
   
    position: sticky;
    top: 0;
    z-index: 1050; /* Increased to ensure it's on top */
}
header .d-flex.flex-column{
    gap: 10px;
}

/* --- HEADER CONTAINER --- */
.header-inner{
    /* Transition settings */
    --x: 0.6s; /* Slower animation as requested */
    
    
    padding-left: 30px; 
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.100);
    
    /* Z-index must be higher than the menu */
    z-index: 1060; 
    position: relative; /* Changed from absolute to relative for better stacking */
    background-color: white;
    justify-content: start;
    
    /* Only animate background color, NOT height */
    transition: background-color var(--x) ease-in-out;
}

/* When the menu is open */
.header-opened .header-inner {
    background-color: var(--bs-primary) !important; /* Turns red */
    box-shadow: none;
}

/* Remove old style that forced full height */
.header-opened{
    position: fixed;
    width: 100%;
    z-index: 1050;        
}

.navbar{
    width: 100%;
    max-width: 1440px;
    height: fit-content; 
    padding: 15px 0px 15px 0px;
}
.navbar-side{
    display: flex;
    gap: 16px;
    align-items: center;
}
.navbar-side div{
    display: flex;
    align-items: center;
}
.navbar-side a{
    transition: 0.1s;
    padding-left: 8px;
    padding-right: 8px;
    font-weight: 600;
}

/* Hover scaling for elements */
.transition-header{
    transition: 0.1s;
}
.transform-scale-header:hover{
    transform: scale(1.05);
}

.language a{
    padding-left: 6px;
    padding-right: 0px;
}
.burger-block{    
    height: 100% !important;
    gap: 0.4rem !important;
    cursor: pointer;
}
.burger-menu{
    display: none !important;
    width: 30px;
    height: 4px;    
    background-color: black;
    border-radius: 6px 6px 6px 6px;
    position: relative;
    transition: 
        background 0.4s 0.4s,
        transform 0.4s;
}
.btn-primary:hover{
    transition: 0.3s;
    box-shadow: 0px 0px 10px 0.01px rgba(240, 27, 38, 0.53);
}

/* Burger menu changes after opening */
.burger-menu:nth-child(1).burger-opened{
    transform: translateX(-5px);
}
.burger-menu:nth-child(3).burger-opened{
    transform: translateX(5px);
}
.burger-opened{
    background-color: white;
}

/* Button's changes after opening */
.btn-opened.btn-secondary:hover{
    box-shadow: 0px 0px 15px 0.1px rgba(255, 255, 255, 0.478);
}
.btn-opened.btn-primary{
    background-color: white;
    color: var(--bs-primary);
    border-radius: none !important;
    border: 0px;
}
.btn-opened.btn-primary:hover{
    box-shadow: 0px 0px 15px 0.1px rgba(255, 255, 255, 0.478);
    transition: 0.3s;
    border: 0px;
}
.btn-opened.btn-primary:active{
    border: 0px;
}

/* --- SLIDE-IN MENU ANIMATION --- */
.header-opened-menu{
    /* Position fixed to cover screen */
    position: fixed !important;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh !important;
    
    /* Red background */
    background-color: var(--bs-primary);
    
    /* Z-index LOWER than .header-inner (1060) so header stays on top */
    z-index: 1040;
    
    /* Padding to push content below the header */
    padding-top: 100px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 40px;
    
    display: flex !important;
    flex-direction: column;
    overflow-y: auto;

    /* ANIMATION LOGIC: Start off-screen right */
    transform: translateX(100%);
    /* Smooth 0.6s transition */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.6s;
    visibility: hidden;
}

/* When the parent has class .header-opened, this slides in */
.header-opened .header-opened-menu {
    transform: translateX(0) !important;
    visibility: visible !important;
}

.header-opened-menu .btn{
    display: none;
}

.horizontal-line-header{
    padding-top: 8px;
    border-bottom: 2px solid white;
    width: 0%;
    transition: width 0.4s 0.4s;
}
.horizontal-line-header-opened{
    width: 100%;
}
.body-stop-scroll{
    height: 100vh !important;
    overflow-y: hidden !important;
}
.language{
    cursor: pointer;
}
/* Classes for languages dropdown */
.dropdown-header{
    position: relative;
    width: 65px !important;
}
/*Hover for language selection*/
.language:hover{
    transition: 0.1s;
    background-color: var(--bs-input-hover) !important;
}
.header-opened .language:hover{
    background-color: transparent !important;
}
/*Hover for language selection*/
.language img{
    width: 20px;
    height: 20px;
}

.dropdown-language{
    visibility: hidden;
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 100%;
    max-height: 100px;
    background-color: rgb(255, 255, 255);
    top: 100%;
    left: 0;
    border-radius: 0 0 6px 6px;
    overflow-y: auto;
    box-shadow: 0px 5px 10px 3px rgba(0, 0, 0, 0.4);
    z-index: 1;
    overflow-x: hidden;    
}
.dropdown-language::-webkit-scrollbar{
    width: 10px;
    
}
.dropdown-language::-webkit-scrollbar-thumb {
    background-color: darkgray; 
    border-radius: 10px; 
}
.dropdown-language .dropdown-option{
    display: flex;
    gap: 0.25rem;
    width: 100%;    
    padding: 0.25rem 0.5rem;  
    border-bottom: 1px solid #F0F0F0;  
    align-items: center;
}
.dropdown-option{
    cursor: pointer;
}
.dropdown-option img{
    width: 22px !important;
    height: 22px !important;
}
.dropdown-option div{
    font-size: 12px;
    font-weight: 500;
}
.dropdown-option:hover{
    background-color: #EBEBEB;
}
.dropdown-language.active-language{
    visibility: visible;
}
/* HEADER */
/* FOOTER */
.inner-footer{
    padding: 24px 30px;
}
.inner-footer .d-flex.flex-column{
    gap: 10px;
    max-width: none;
}
/* Logo has to be limited by size */
.inner-footer img{
    max-width: 172px;
}
.footer-mobile{
    display: none !important;
}
.inner-footer .px18-text{
    font-size: 20px;
}
.gap-80px{
    gap: 4%;
    width: 100%;
    justify-content: center;
}
.gap-146px{
    gap: 10.8%;
}
.width-footer-inner a{
    white-space: nowrap;
}
.application h1{
    line-height: 150%;
}
.footer-line-desktop{
    border-bottom: solid 2px #DFE4EA;
    margin-bottom: 20px;
    margin-top: 20px;
}
.copyright-bottom{
    display: none;
}
.follow-us-tablet{
    display: none !important;
}
.gap-10{
    gap: 10px !important;
}
.payment-cards-holder img:hover{
    transform: scale(1.2);
}
.header-scale:hover{
    transform: scale(1.05);
}
/*Special class for the footer elements to avoid problems with max-width in mainPage*/
.inner-footer .max-width-footer{
    max-width: 400px !important;
}
.inner-footer .max-width-footer-mobile{
    max-width: 350px !important;
}
/*Social networks images*/
.social-network img{
    max-width: 35px;
}
.footer-transition img, .footer-bank-card img{
    transition: 0.1s;
}
.social-network img:hover{
    transform: scale(1.1);
}
/* FOOTER */
@media all and (max-width: 1100px){
    /* HEADER */
    .nav-menu{
        display: none !important;
    }
    .burger-menu, .burger-menu::after, .burger-menu::before{
        display: block !important;
    }
    .main-section{
        height: auto;
    }
    /* HEADER */
    /* FOOTER */
    .inner-footer .d-flex.justify-content-between {
        flex-direction: column;
        gap: 20px;
    }
    .width-footer-inner{
        justify-content: space-between;
    }
    .d-flex.flex-column.gap-4:nth-child(3){
        display: none !important;
    }
    .footer-line{
        border-bottom: solid 2px #DFE4EA;
    }
    .copyright-bottom{
        display: block;
    }
    .follow-us-tablet{
        display: flex !important;
    }
    .bottom-logo-holder{
        max-width: none !important;
    }
    .bottom-logo-holder img{
        max-width: 155px;
    }
    .bottom-logo-holder a{
        max-width: 290px;
    }
    .inner-footer [class*=gap-4]{
        gap: 14px !important;
    }
    /* FOOTER */
}
@media all and (max-width: 860px){
    /* HEADER */
    .navbar-side {
        gap: 4px;
    }
    .navbar-side:first-child {
        width: 175px;
    }
    .navbar-side .btn.pulse-btn {
        width: initial !important;
        font-size: 0.75rem;
    }
    .navbar-side .btn.no-mobile{
        display: none;
    }
    .header-opened-menu .btn{
        display: block;
    }
    /* HEADER */
}
@media all and (max-width: 660px){
    /* FOOTER */
    .header-inner{
        padding-left: 16px;
        padding-right: 16px;
    }
    .footer-mobile{
        display: flex !important;
    }
    .inner-footer .d-flex.justify-content-between.gap-2{
        display: none !important;
    }
    .inner-footer .d-flex.flex-column{
        max-width: none !important;
    }
    .footer-mobile{
        gap: 30px !important;
    }
    /* FOOTER */
}
@media all and (max-width: 425px){
    /* HEADER */
    .navbar{
        flex-wrap: nowrap;
        gap: 1rem;
    }
    /* HEADER */
    /* FOOTER */
    .inner-footer{
        padding: 2rem 1rem 2rem 1rem !important;
    }
    /* FOOTER */
}
@media all and (max-width: 360px){
     /* FOOTER */
     .inner-footer .d-flex.justify-content-between {
        flex-direction: column;
        gap: 10px;
    }
    .inner-footer .px18-text{
        font-size: 18px;
    }
    .inner-footer a{
        font-size: 16px;
    }
    /* FOOTER */
}
footer .footer-mobile .pd-additional-logo-mobile.d-flex{
    gap: 4px !important;
    max-width: 172px !important;
}
.pd-additional-logo-mobile > div > img{
    margin-left: 32px;
    height: 40px;
}
.pd-additional-logo-mobile > div{
   max-width: 75%;
}
.pd-logo-holder{
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 14px;
    padding-right: 14px;
    height: 100%;
}
.pd-logo-holder > img{
    max-width: none !important;
}
div#button-home
{
	height: 50px;
	margin-top: 0px;
	height: 50px;                /* подгони под свой хедер */
	width: 110px !important;                /* подгони под свой хедер */
	background: url("https://prescodelivery.com/pictures/Logotypes/CarText_small.svg?v=2") center/contain no-repeat;
}
@media all and (max-width: 992px){
	div#button-home
	{
		margin-top: 4px;
		background: url("https://prescodelivery.com/pictures/Logotypes/Car_small.svg?v=2") center/contain no-repeat;
		height: 40px;
		width: 90px !important;
		margin-right: 20px;
	}
}