@font-face {
    font-family: 'RobotoCustom';
    src: url('../fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'RobotoCustom';
    src: url('../fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'RobotoCustom';
    src: url('../fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'WebdingsCss';
    src: url('../fonts/Webdings.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: 'WingdingsCss';
    src: url('../fonts/Wingdings.ttf') format('truetype');
    font-style: normal;
}

:root {
    --bs-nav-link-font-size: 16px;
    --primary-blue: #27aae2;
    --secondary-blue: #0060ad;
    --primary-red: rgb(239, 65, 54);
    --secondary-red: rgb(190, 30, 45);
    --ref-blue: #1d58a4;
}

.form-control::placeholder {
    color: #afafaf;
    font-size: 14px;
}

html {
    font-size: 16px;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'RobotoCustom', sans-serif;
}

hr {
    opacity: 1;
    color: white;
}

a {
    color:white;
    text-decoration: none;
}

a:hover:not(.btn-rounded) {
    text-decoration: underline;
}

.navbar-brand > img {
    height: 62px;
    width: auto;
}

.text-bigger {
    font-size: 24px;
}

.text-red {
    color: var(--secondary-red);
}

.text-blue {
    color: var(--ref-blue);
}

.text-medium {
    font-weight: 600;
}

.text-tracking-wide {
    letter-spacing: 0.1em;
}

h2 {
    font-size: 40px;
    font-weight: bold;
}

.ccs-bg-gradient {
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-blue) 100%);
}

.ccs-bg-gray {
    background: #e6e6e6;
}

.css-bg-gradient-red {
    background: linear-gradient(90deg, var(--secondary-red) 0%, var(--primary-red) 100%);
}


/**
        hero section
 */

.hero-section {
    position: relative;
    padding-top: 50px;
    overflow: hidden;
    isolation: isolate;
    height: 475px;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background: url("../img/map-hero.png") center top / cover no-repeat;
    opacity: 0.18; /* sila mapy */

    -webkit-mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.6) 45%,
            #000 55%,
            rgba(0, 0, 0, 0.6) 60%,
            transparent 100%
    );
    mask-image: linear-gradient(
            to right,
            transparent 0%,
            rgba(0, 0, 0, 0.6) 45%,
            #000 55%,
            rgba(0, 0, 0, 0.6) 60%,
            transparent 100%

    );
}

.hero-section::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 120px;
    z-index: 1;
    pointer-events: none;
    background: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120' preserveAspectRatio='none'>\
<path fill='white' d='M0,120 L1440,120 L1440,80 C1040,20 440,40 0,120 Z'/>\
</svg>") center / 100% 100% no-repeat;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-phone {
    font-size: 30px;
}


.curve-container {
    position: absolute;
    /*bottom: -1px; */
    left: 0;
    width: 100%;
    height: 120px; /* Výška oblúka */
    line-height: 0;
    z-index: 1;
}

.curve-padding-top {
    padding-top: 120px;
}

.curve-margin-top {
    margin-top: 80px;
}

.curve-margin-bottom-negative {
    margin-bottom: -75px;
}

.curve-padding-bottom {
    padding-bottom: 120px;
}

.curve-container svg {
    width: 100%;
    height: 100%;
    display: block;
    vector-effect: non-scaling-stroke;
    overflow: visible;
    transform: scaleX(-1);
    -webkit-transform: scaleX(-1);
}

.mirror {
    transform: scaleY(-1);
    -webkit-transform: scaleY(-1);
    backface-visibility: hidden;
}

.courier-image-wrapper {
  position:absolute;
    top: 80px;
}

.courier-img {
    /*max-width: 505px;*/
    width: 80%;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0,
            #000 calc(100% - 60px),
            transparent 100%
    );
    mask-image: linear-gradient(
            to bottom,
            #000 0,
            #000 calc(100% - 60px),
            transparent 100%
    );
    position:absolute;
    bottom: 0;
}



/**
      title with car
 */

.title-with-car {
    position:relative;
    display:block;
    color: var(--ref-blue);
    font-size: 40px;
    font-weight: bold;
    line-height: 1.25;
    max-width: 610px;
    padding-right: 30px;
}

.title-with-car small {
    color: var(--ref-blue);
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    display:block;
    font-weight: 600;
    line-height: 1.25;
}


.title-with-car::before {
    content: '';
    position:absolute;
    width: 110px;
    height: 110px;
    /*margin-left: 525px;*/
    right: 0;
    background-image: url("../img/truck-icon.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
}

.title-with-car.text-white,
.title-with-car.text-white small {
    color: #fff !important;
}

.title-with-car.text-white::before {
    background-image: none;
    background-color: #fff;
    -webkit-mask: url("../img/truck-icon.svg") top right / contain no-repeat;
    mask: url("../img/truck-icon.svg") top right / contain no-repeat;
}




.title-2 {
    font-size: 24px;
    text-transform: uppercase;
    font-weight: 600;
}

h2.with-line:after, h3.with-line:after {
    content: '';
    display:block;
    width: 130px;
    height: 8px;
    margin-top:20px;
    margin-bottom: 20px;
    background-image: url("../img/title-line.svg");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
}

/**
      images
 */
.ccs-rounded {
    border-radius: 32px 32px 0 32px;
}

.ccs-rounded-right {
    border-radius: 32px 32px 32px 0;
}


/**
       buttons
 */

.btn-3d {
    display:inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
    text-align: center;
    line-height: 1;
    font-weight: bold;
    font-size: 75px;
    padding-bottom: 5px;
    width: 80px;
    height: 80px;
    border: 3px solid white;
    border-radius: 15px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--secondary-red) 100%);
    box-shadow:
        8.75px 8.75px 6.25px rgba(0, 0, 0, 0.10),
        inset 3px 3px 12px rgba(255, 255, 255, 0.35),
        inset -3px -3px 12px rgba(0, 0, 0, 0.44),
        0 -1px 0 rgba(255, 255, 255, 0.25);
    color: #fff;
    /* InDesign text effects: drop shadow + inner-shadow approximation */
    text-shadow:
        8px 8px 5.6px rgba(0, 0, 0, 0.10),
        1.1px 1.9px 2.2px rgba(0, 0, 0, 0.10),
        -0.6px -0.6px 0 rgba(255, 255, 255, 0.18);
  }

.btn-bigger {
    width: 320px;
    padding: 0;
    font-size: 40px;
}

.btn-rounded {
    width: 220px;
    height: 50px;
    border-radius: 25px;
    color:white;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    font-weight: 600;
    text-decoration: none;

}

.btn-mono {
    border: 1px solid white;
    background: transparent;
}

.btn-mono:hover {
    border: 1px solid white;
    background: white;
    color: black;
}

.btn-red {
    border: none;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--secondary-red) 100%);
}

.btn-red:hover {
    border: none;
    background: linear-gradient(180deg, var(--primary-red) 0%, var(--secondary-red) 100%);
}

.btn-red:before {
    content: '';
    left: -10px;
    width: 23px;

    height: 23px;
    position:relative;
    background-image: url('../img/btn-ico.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: top right;
}

.btn-w {
    width:240px;
}

.btn-sm {
    font-size: 18px;
    height: 36px;
    width: 130px;
}

.btn-sm:before {
    width: 20px;
    height: 20px;
}





/**
    ako objednat - zoznam
 */

.arrow-down {
    display: block;
    width: 1em;
    margin-left: auto;
    margin-right: auto;
    line-height: 1;
    font-size: 40px;
}

.arrow-down::before {
    content: "6";
    font-family: "WebdingsCss", "Webdings", sans-serif;
    font-weight: 400;
    display: inline-block;
    line-height: 1;
}

.services-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 14px auto 0;
    padding: 0;
}

.services-section li {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-start;
    gap: 0.45em;
    width: fit-content;
    max-width: min(100%, 34ch);
    margin: 0 auto 0.2em;
    padding: 0 0.25em;
    text-align: left;
    font-weight: 600;
}

.services-section li::before {
    content: "\00fc";
    font-family: "WingdingsCss", "Wingdings", sans-serif;
    font-size: 0.95em;
    line-height: 1.2;
    margin-top: 0.05em;
    margin-left: 0.1em;
}




.small-service-name {
    font-size: 40px;
    display: block;
    font-weight: bold;
    margin-top: 9px;
}

.service-header {
    font-weight: bold;
    text-align: center;
    font-size: 40px;
    text-transform: uppercase;
}

.service-subheader {
    line-height: 1.66;
    font-weight: 600;
    text-align: center;
    font-size: 24px;
    margin-top:30px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-subheader > small {
    text-transform: none;
    font-size: 24px;
    display: block;
}


/**
    direct section MAP bg
 */
#direct-section {
    position: relative;
    isolation: isolate;
}

#direct-section:before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background-image: url("../img/direct-section-bg-map.png");
    background-position: right top;
    background-repeat: no-repeat;
    background-size: clamp(220px, 38vw, 560px) auto;
    opacity: 0.12;
}

.eshop-cars {
    top: 0;
    left: 50%;
    height: auto;
    transform: translate(-50%, -53%);
    pointer-events: none;
    z-index: 1;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    display: none;
    z-index: 1050;
}
.back-to-top.show {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}



@media (min-width: 1400px) {
    .container-big {
        max-width: 1440px!important;
    }
}

@media (max-width: 988px) {

    .navbar-brand > img {
        height: 50px;
    }

    .hero-section:after {
        height: 50px;
    }

    .hero-phone {
        font-size: 24px;
    }

    h2, .title-with-car {
        font-size: 28px;
    }

    .title-with-car small {
        font-size: 18px;
        line-height: 1.25;
    }

    .title-with-car:before {
        width: 80px;
        height: 80px;
    }

    h3, .title-2 {
        font-size: 24px;
    }

    .curve-container {
        height: 50px;
    }

    .curve-margin-top {
        margin-top: 25px;
    }

    .curve-margin-bottom-negative {
        margin-bottom: -50px;
    }

    .service-subheader, .service-subheader > small {
        font-size: 20px;
    }

    .btn-rounded {
        width: 180px;
        height: 40px;
        font-size: 16px;
    }

    .btn-w {
        width: 200px;
    }

    .btn-red:before {
        height: 20px;
        width: 20px;
        left:-5px;
    }

    .small-service-name {
        font-size: 28px;
    }

    .courier-img {
        mask-image: none;
        -webkit-mask-image: none;
        width: auto;
        max-width: 140%;
        left: -60px;
    }

    .service-header {
        font-size: 30px;
    }

    .btn-3d {
        height: 60px;
        width: 60px;
        font-size: 50px;
    }

    .btn-bigger {
        width: 200px;
        font-size: 24px;
    }

    #direct-courier {
        max-width: 75%;
        left:-10px;
    }

    .text-bigger {
        font-size: 20px;
    }

    #direct-section:before {
        background-position: right bottom;
    }

    .hero-section::before {
        background-position-x: 38%;
    }

    /**
      orezanie vysky mobilneho menu
     */
    .mobile-menu-offcanvas.offcanvas-end {
        --bs-offcanvas-width: 350px;
        top: 0.5rem;
        right: 0.5rem;
        bottom: auto;
        width: min(92vw, var(--bs-offcanvas-width));
        height: auto;
        max-height: calc(100vh - 1rem);
        border-radius: 0.5rem;
    }

    .mobile-menu-offcanvas .offcanvas-body {
        overflow-y: auto;
    }

    .mobile-menu-list {
        margin-top: 0.25rem;
        padding-top: 0.25rem;
    }

    .mobile-menu-list .nav-item + .nav-item {
        border-top: 1px solid rgba(0, 0, 0, 0.12);
    }

    .mobile-menu-list .nav-link {
        padding: 0.65rem 0;
    }
}



@media (max-width: 400px) {

    .hero-section:after {
        height: 40px;
    }

    .hero-phone {
        font-size: 18px;
    }

    .title-with-car {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .title-with-car small {
        font-size: 16px;
    }

    .title-2 {
        font-size: 18px;
    }

    .title-with-car:before {
        width: 80px;
        height: 80px;
    }

    .curve-container {
        height: 40px;
    }

    .curve-margin-top {
        margin-top: 15px;
    }

    .curve-margin-bottom-negative {
        margin-bottom: -40px;
    }

    .service-subheader, .service-subheader > small {
        font-size: 18px;
    }

    .btn-rounded {
        width: 165px;
        height: 40px;
        font-size: 16px;
    }

    .btn-w {
        width: 180px;
    }

    .btn-red {
        width: 100%;
    }

    .small-service-name {
        font-size: 20px;
    }

    .services-section li {
        gap: 0.3em;
    }

    .services-section li::before {
        margin-top: 0.15em;
    }

    .btn-3d {
        height: 50px;
        width: 50px;
        font-size: 45px;
    }

    .btn-bigger {
        width: 165px;
        font-size: 20px;
    }

    #direct-courier {
        max-width: 100%;
        left:-10px;
    }

    .text-bigger {
        font-size: 18px;
        line-height: 1.1em;
    }

    /*.courier-img {*/
    /*    mask-image: none;*/
    /*    -webkit-mask-image: none;*/
    /*    width: 120%;*/
    /*    left: -10px;*/
    /*}*/
}
