/********** Template CSS **********/
:root {
    --primary: #FF3E41;
    --secondary: #51CFED;
    --light: #F8F2F0;
    --dark: #060315;
}

.fw-medium {
    font-weight: 600 !important;
}

.back-to-top {
    position: fixed;
    display: none;
    right: 45px;
    bottom: 45px;
    z-index: 99;
}


/*** Spinner ***/
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .5s ease-out, visibility 0s linear 0s;
    visibility: visible;
    opacity: 1;
}


/*** Button ***/
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn.btn-primary,
.btn.btn-secondary {
    color: #FFFFFF;
}

.btn-square {
    width: 38px;
    height: 38px;
}

.btn-sm-square {
    width: 32px;
    height: 32px;
}

.btn-lg-square {
    width: 48px;
    height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

/* Dodano style dla podświetlania przycisków wyboru "Rodzaj pojazdu" */
.btn-check:checked + .btn {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.btn-check:focus + .btn {
    box-shadow: 0 0 0 0.25rem rgba(255, 62, 65, 0.5);
}


/*** Hero Slider ***/
.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
}

.hero-slider .header-carousel,
.hero-slider .owl-stage-outer,
.hero-slider .owl-stage,
.hero-slider .owl-item {
    height: 100%;
}

.hero-slider .header-carousel {
    position: relative;
    z-index: 1;
}

.hero-slide {
    height: 100%;
    min-height: 720px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(6, 3, 21, 0.78) 0%, rgba(6, 3, 21, 0.6) 42%, rgba(6, 3, 21, 0.2) 100%);
    padding: 42px 0;
    z-index: 2;
}

.hero-content-column {
    width: 100%;
}

@media (max-width: 767.98px) {
    .hero-slider,
    .hero-slide {
        min-height: 980px;
    }

    .hero-overlay {
        padding: 120px 0 120px;
    }

    .hero-form-container {
        margin: 0;
    }
}

@media (max-width: 991.98px) {
    .hero-slider .header-carousel,
    .hero-slider .owl-stage-outer,
    .hero-slider .owl-stage,
    .hero-slider .owl-item {
        height: auto;
    }

    .hero-slide {
        min-height: 860px;
    }
}

@media (min-width: 992px) {
    .hero-content-column {
        margin-left: auto;
    }

    .hero-overlay {
        padding: 64px 0;
    }
}


/*** Global Sections ***/
.page-content {
    padding: 0 20px;
}

@media (min-width: 992px) {
    .page-content {
        padding: 0 48px;
    }
}


/*** Hero Form ***/
.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-content-wrapper {
        flex-direction: row;
        align-items: flex-start;
        gap: 32px;
        justify-content: flex-end;
        padding: 0 48px;
    }
}

.hero-text {
    flex: 1 1 420px;
    max-width: 640px;
}

@media (min-width: 1200px) {
    .hero-text {
        flex: 1 1 520px;
        max-width: 720px;
    }
}

.hero-form-container {
    flex: 0 0 100%;
    max-width: 100%;
    margin-left: auto;
    background: #FFFFFF;
    color: var(--dark);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .hero-form-container {
        flex: 0 0 540px;
        max-width: 540px;
    }
}

@media (min-width: 992px) {
    .hero-form-container {
        flex: 0 0 720px;
        max-width: 720px;
    }
}

    /*** Fact Gallery ***/
    .fact-gallery {
        display: grid;
        gap: 24px;
    }

    .fact-card {
        border-radius: 8px;
    }

    .fact-card img {
        width: 100%;
        display: block;
    }

    .fact-card--dark {
        background-color: #1A1727;
    }

    @media (min-width: 992px) {
        .fact-gallery {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            grid-template-rows: auto auto;
            grid-template-areas:
                "fact-primary fact-dark"
                "fact-success fact-dark";
            align-items: center;
        }

        .fact-gallery .fact-card:nth-child(1) {
            grid-area: fact-primary;
        }

        .fact-gallery .fact-card:nth-child(2) {
            grid-area: fact-dark;
        }

        .fact-gallery .fact-card:nth-child(3) {
            grid-area: fact-success;
        }
    }


@media (min-width: 992px) {
    .hero-overlay .container {
        max-width: 100%;
        padding: 0 48px;
    }
}

.hero-form-container h3 {
    margin: 0 0 16px;
    font-size: 18px;
    color: var(--primary);
}

.quote-form .form-group {
    margin-bottom: 16px;
}

.quote-form input[type="text"],
.quote-form input[type="email"] {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #DEE2E6;
    border-radius: 6px;
    font-size: 14px;
}

.quote-form input[type="text"]:focus,
.quote-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 62, 65, 0.25);
}

.vehicle-select {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vehicle-select label {
    display: inline-flex;
    align-items: center;
    position: relative;
}

.vehicle-select label input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.vehicle-select label span {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #DEE2E6;
    border-radius: 999px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #FFFFFF;
    color: var(--dark);
}

.vehicle-select label span:hover {
    border-color: var(--primary);
}

.vehicle-select label input[type="radio"]:checked + span {
    background: var(--primary);
    border-color: var(--primary);
    color: #FFFFFF;
    box-shadow: 0 5px 15px rgba(255, 62, 65, 0.35);
}

.quote-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 12px;
    margin-bottom: 12px;
}

.quote-form .form-check input[type="checkbox"] {
    margin-top: 3px;
}

.btn-submit {
    width: 100%;
    background: var(--primary);
    color: #FFFFFF;
    border: none;
    padding: 14px 18px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-submit:hover {
    background: #c70f13;
}


/*** Navbar (Custom) ***/
.navbar-custom {
    background: rgba(6, 3, 21, 0.92);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 14px 35px rgba(6, 3, 21, 0.32);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

@supports not ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
    .navbar-custom {
        background: rgba(6, 3, 21, 0.97);
    }
}

.navbar-custom .navbar-brand {
    padding: 0;
    margin-right: 24px;
    margin-top: 0;
    margin-bottom: 0;
    text-decoration: none;
}

.navbar-custom .navbar-brand__logo {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #FFFFFF;
    margin-top: 0;
    margin-bottom: 0;
}

.navbar-custom .navbar-brand__logo-image {
    height: 70px;
    width: auto;
    display: block;
    margin-top: 0;
    margin-bottom: 0;
}

@media (max-width: 575.98px) {
    .navbar-custom .navbar-brand__logo-image {
        height: 36px;
    }
}

/* Fix navbar logo and toggler alignment on mobile */
@media (max-width: 991.98px) {
    .navbar-custom .container-fluid {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-left: 16px;
        padding-right: 16px;
    }
    .navbar-custom .navbar-brand {
        flex: 0 1 auto;
        margin-right: 12px;
        max-width: 60vw;
        margin-top: 0;
        margin-bottom: 0;
    }
    .navbar-custom .navbar-brand__logo-image {
        max-width: 120px;
        height: auto;
    }
    .navbar-custom .navbar-toggler {
        margin-left: auto;
        margin-right: 0;
        z-index: 2;
    }
}

.navbar-custom .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 14px;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

.navbar-custom .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 62, 65, 0.35);
}

.navbar-custom .navbar-toggler-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-image: linear-gradient(#FFFFFF, #FFFFFF),
        linear-gradient(#FFFFFF, #FFFFFF),
        linear-gradient(#FFFFFF, #FFFFFF);
    background-size: 1.5rem 2px, 1.5rem 2px, 1.5rem 2px;
    background-repeat: no-repeat;
    background-position: center 4px, center, center calc(100% - 4px);
}

.navbar-custom .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.75);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    position: relative;
    padding: 14px 0;
    margin: 0 18px;
    transition: color 0.3s ease;
}

.navbar-custom .navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 4px;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, #FFFFFF 100%);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    opacity: 0.85;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link:focus,
.navbar-custom .navbar-nav .nav-link.active,
.navbar-custom .navbar-nav .nav-link.show {
    color: #FFFFFF;
}

.navbar-custom .navbar-nav .nav-link:hover::after,
.navbar-custom .navbar-nav .nav-link:focus::after,
.navbar-custom .navbar-nav .nav-link.active::after,
.navbar-custom .navbar-nav .nav-link.show::after {
    transform: scaleX(1);
    transform-origin: left;
}

.navbar-custom .nav-link.dropdown-toggle::after {
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    border: 0;
    margin-left: 0.4rem;
}

.navbar-custom .dropdown-menu {
    background: rgba(6, 3, 21, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 14px;
    min-width: 220px;
}

.navbar-custom .dropdown-item {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    border-radius: 10px;
    padding: 10px 14px;
    transition: background 0.3s ease, color 0.3s ease;
}

.navbar-custom .dropdown-item:hover,
.navbar-custom .dropdown-item:focus {
    background: rgba(255, 62, 65, 0.18);
    color: #FFFFFF;
}

.drop-shadow {
    box-shadow: 0 18px 45px rgba(6, 3, 21, 0.4);
}

.navbar-custom__cta {
    margin-left: 32px;
}

.navbar-custom__phone {
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.navbar-custom__phone:hover,
.navbar-custom__phone:focus {
    color: var(--secondary);
}

.navbar-custom .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.65);
    color: #FFFFFF;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.navbar-custom .btn-outline-light:hover,
.navbar-custom .btn-outline-light:focus {
    background: #FFFFFF;
    color: var(--dark);
}

.navbar-custom .nav-link--phone {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-custom .nav-link--phone:hover {
    color: #FFFFFF;
}

@media (max-width: 991.98px) {
    .navbar-custom .navbar-collapse {
        background: rgba(6, 3, 21, 0.96);
        border-radius: 18px;
        padding: 22px 24px;
        margin-top: 14px;
    }

    .navbar-custom .navbar-nav .nav-link {
        margin: 0;
        padding: 12px 0;
    }

    .navbar-custom .dropdown-menu {
        background: transparent;
        border: 0;
        box-shadow: none;
        padding: 0;
        margin-top: 0;
    }

    .navbar-custom .dropdown-item {
        padding: 10px 0 10px 12px;
    }
}


/*** Navbar ***/
.navbar .dropdown-toggle::after {
    border: none;
    content: "\f107";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    vertical-align: middle;
    margin-left: 8px;
}

.navbar-light .navbar-nav .nav-link {
    position: relative;
    margin-right: 30px;
    padding: 25px 0;
    color: #FFFFFF;
    font-size: 15px;
    text-transform: uppercase;
    outline: none;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--primary);
}

@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link  {
        margin-right: 0;
        padding: 10px 0;
    }

    .navbar-light .navbar-nav {
        border-top: 1px solid #EEEEEE;
    }
}

.navbar-light .navbar-brand,
.navbar-light a.btn {
    height: 75px;
}

.navbar-light .navbar-nav .nav-link {
    color: var(--dark);
    font-weight: 500;
}

.navbar-light.sticky-top {
    top: -100px;
    transition: .5s;
}

@media (min-width: 992px) {
    .navbar-light .navbar-nav .nav-link::before {
        position: absolute;
        content: "";
        width: 0;
        height: 5px;
        top: -6px;
        left: 50%;
        background: #FFFFFF;
        transition: .5s;
    }

    .navbar-light .navbar-nav .nav-link:hover::before,
    .navbar-light .navbar-nav .nav-link.active::before {
        width: 100%;
        left: 0;
    }

    .navbar-light .navbar-nav .nav-link.nav-contact::before {
        display: none;
    }

    .navbar .nav-item .dropdown-menu {
        display: block;
        border: none;
        margin-top: 0;
        top: 150%;
        opacity: 0;
        visibility: hidden;
        transition: .5s;
    }

    .navbar .nav-item:hover .dropdown-menu {
        top: 100%;
        visibility: visible;
        transition: .5s;
        opacity: 1;
    }
}


/*** Header ***/
@media (max-width: 768px) {
    .header-carousel .owl-carousel-item {
        position: relative;
        min-height: 500px;
    }
    
    .header-carousel .owl-carousel-item img {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .header-carousel .owl-carousel-item h5,
    .header-carousel .owl-carousel-item p {
        font-size: 14px !important;
        font-weight: 400 !important;
    }

    .header-carousel .owl-carousel-item h1 {
        font-size: 30px;
        font-weight: 600;
    }
}

.header-carousel .owl-nav {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
}

.header-carousel .owl-nav .owl-prev,
.header-carousel .owl-nav .owl-next {
    margin: 7px 0;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: transparent;
    border: 1px solid #FFFFFF;
    border-radius: 45px;
    font-size: 22px;
    transition: .5s;
}

.header-carousel .owl-nav .owl-prev:hover,
.header-carousel .owl-nav .owl-next:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-header {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/carousel-1.jpg) center center no-repeat;
    background-size: cover;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--light);
}


/*** About ***/
@media (min-width: 992px) {
    .container.about {
        max-width: 100% !important;
    }

    .about-text  {
        padding-right: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .about-text  {
        padding-right: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .about-text  {
        padding-right: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Feature ***/
@media (min-width: 992px) {
    .container.feature {
        max-width: 100% !important;
    }

    .feature-text  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .feature-text  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .feature-text  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Service, Price & Team ***/
.service-item,
.price-item,
.team-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .07);
}

.service-item img,
.team-item img {
    transition: .5s;
}

.service-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.service-item .overflow-hidden {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.service-item .overflow-hidden img {
    max-width: 180px;
    width: 100%;
}

.service-item h4,
.service-item p {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.service-item a.btn-slide {
    margin-left: auto;
    margin-right: auto;
}

.service-item:hover img,
.team-item:hover img {
    transform: scale(1.1);
}

.service-item a.btn-slide,
.price-item a.btn-slide,
.team-item div.btn-slide {
    position: relative;
    display: inline-block;
    overflow: hidden;
    font-size: 0;
}

.service-item a.btn-slide i,
.service-item a.btn-slide span,
.price-item a.btn-slide i,
.price-item a.btn-slide span,
.team-item div.btn-slide i,
.team-item div.btn-slide span {
    position: relative;
    height: 40px;
    padding: 0 15px;
    display: inline-flex;
    align-items: center;
    font-size: 16px;
    color: #FFFFFF;
    background: var(--primary);
    border-radius: 0 35px 35px 0;
    transition: .5s;
    z-index: 2;
}

.team-item div.btn-slide span a i {
    padding: 0 10px;
}

.team-item div.btn-slide span a:hover i {
    background: var(--secondary);
}

.service-item a.btn-slide span,
.price-item a.btn-slide span,
.team-item div.btn-slide span {
    padding-left: 0;
    left: -100%;
    z-index: 1;
}

.service-item:hover a.btn-slide i,
.price-item:hover a.btn-slide i,
.team-item:hover div.btn-slide i {
    border-radius: 0;
}

.service-item:hover a.btn-slide span,
.price-item:hover a.btn-slide span,
.team-item:hover div.btn-slide span {
    left: 0;
}

.service-item a.btn-slide:hover i,
.service-item a.btn-slide:hover span,
.price-item a.btn-slide:hover i,
.price-item a.btn-slide:hover span {
    background: var(--secondary);
}


/*** Testimonial ***/
.testimonial-carousel .owl-item .testimonial-item {
    position: relative;
    transition: .5s;
}

.testimonial-carousel .owl-item.center .testimonial-item {
    box-shadow: 0 0 45px rgba(0, 0, 0, .08);
    animation: pulse 1s ease-out .5s;
}

.testimonial-carousel .owl-dots {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-carousel .owl-dot {
    position: relative;
    display: inline-block;
    margin: 0 5px;
    width: 15px;
    height: 15px;
    background: var(--primary);
    border: 5px solid var(--light);
    border-radius: 15px;
    transition: .5s;
}

.testimonial-carousel .owl-dot.active {
    background: var(--light);
    border-color: var(--primary);
}


/*** Contact ***/
@media (min-width: 992px) {
    .container.contact-page {
        max-width: 100% !important;
    }

    .contact-page .contact-form  {
        padding-left: calc(((100% - 960px) / 2) + .75rem);
    }
}

@media (min-width: 1200px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1140px) / 2) + .75rem);
    }
}

@media (min-width: 1400px) {
    .contact-page .contact-form  {
        padding-left: calc(((100% - 1320px) / 2) + .75rem);
    }
}


/*** Footer ***/
.footer {
    background: linear-gradient(rgba(6, 3, 21, .5), rgba(6, 3, 21, .5)), url(../img/map.png) center center no-repeat;
    background-size: cover;
}

.footer .btn.btn-social {
    margin-right: 5px;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    border: 1px solid #FFFFFF;
    border-radius: 35px;
    transition: .3s;
}

.footer .btn.btn-social:hover {
    color: var(--primary);
}

.footer .btn.btn-link {
    display: block;
    margin-bottom: 5px;
    padding: 0;
    text-align: left;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: normal;
    text-transform: capitalize;
    transition: .3s;
}

.footer .btn.btn-link::before {
    position: relative;
    content: "\f105";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-right: 10px;
}

.footer .btn.btn-link:hover {
    letter-spacing: 1px;
    box-shadow: none;
}

.footer .copyright {
    padding: 25px 0;
    font-size: 15px;
    border-top: 1px solid rgba(256, 256, 256, .1);
}

.footer .copyright a {
    color: var(--light);
}