/* --- VARIABLES & BASE --- */
:root {
    --primary-color: #ff8417;
    --secondary-color: #ffc107;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white-color: #ffffff;
    --text-color: #495057;
    --border-color: #dee2e6;
    --font-primary: "Montserrat", sans-serif;
    --font-secondary: "Open Sans", sans-serif;
    --header-height: 70px;
}

/* Basic reset and typography */
/* box-sizing is now handled by bootstrap-reboot.min.css */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--white-color);
}

body.modal-open {
    overflow: hidden;
    /* Prevents scrolling when modal or mobile menu is open */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    color: var(--dark-color);
    font-weight: 700;
}

.container {
    max-width: 1140px;
}

.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    font-weight: 800;
}

/* --- HEADER --- */
.header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    /* Reduced font size */
    font-weight: 800;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    /* Use flexbox to align icon and text */
    align-items: center;
    /* Vertically align items */
    gap: 8px;
    /* Space between icon and text */
}

.navbar-logo .logo-icon {
    font-size: 1.6rem;
    /* Size for the emoji icon */
    line-height: 1;
    /* Ensure icon doesn't add extra line height */
}

.nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 25px;
}

.nav-link {
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link-phone {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.1rem;
    border: 2px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link-phone:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.burger {
    display: none;
}

/* --- HERO SECTION --- */
.hero {
    padding-top: var(--header-height);
    /* Existing gradient, now on top of the image */
    background:
        linear-gradient(
            225deg,
            rgba(255, 140, 7, 0.6) 0%,
            rgba(255, 255, 255, 0.1) 60%
        ),
        url("/assets/new/bg.webp") center center / cover no-repeat;
    overflow: hidden;
    position: relative; /* Needed for z-index to work correctly with pseudo-elements */
}
/* Mobile specific background adjustment for better visibility */
@media (max-width: 767.98px) {
    .hero {
        background:
            linear-gradient(
                280deg,
                rgba(255, 140, 7, 0.6) 0%,
                rgba(255, 255, 255, 0.1) 30%
            ),
            url("/assets/new/bg.webp") center center / cover no-repeat;
    }
}

.hero .container,
.hero .row {
    min-height: 90vh;
}
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    z-index: 2;
}
.hero-title {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 30px;
}
.hero-cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.hero-price {
    font-size: 1.2rem;
    font-weight: 500;
}

.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image {
    max-width: 100%;
    height: auto;
    animation: float-animation 6s ease-in-out infinite;
    position: relative;
    z-index: 1;
    margin-left: 20px;
}

@keyframes float-animation {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

.floating-icons-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.floating-icon {
    position: absolute;
    font-size: 2rem;
    background-color: rgb(255 255 255 / 63%);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-name: gentle-float;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.icon-1 {
    top: 10%;
    left: 5%;
    animation-duration: 12s;
}
.icon-2 {
    top: 20%;
    right: 0%;
    animation-duration: 10s;
    animation-delay: -5s;
}
.icon-3 {
    top: 50%;
    right: -10%;
    animation-duration: 9s;
    animation-delay: -2s;
}
.icon-4 {
    bottom: 10%;
    right: 20%;
    animation-duration: 11s;
    animation-delay: -7s;
}
.icon-5 {
    bottom: 20%;
    left: 15%;
    animation-duration: 13s;
    animation-delay: -3s;
}
.icon-6 {
    top: 70%;
    left: 0%;
    animation-duration: 8s;
    animation-delay: -1s;
}

@keyframes gentle-float {
    0% {
        transform: translateY(0px) translateX(0px);
    }
    50% {
        transform: translateY(-25px) translateX(10px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
    }
}

.btn {
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--dark-color);
}

.btn-primary:hover {
    background-color: #ffcd39;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* --- MODAL WINDOW --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: translateY(0);
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2rem;
    line-height: 1;
    background: none;
    border: none;
    cursor: pointer;
    color: #aaa;
}
.modal-close:hover {
    color: var(--dark-color);
}
.modal-title {
    text-align: center;
    margin-bottom: 25px;
}
.form-group {
    margin-bottom: 20px;
}
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.25);
}

/* --- ADVANTAGES --- */
.advantage-card {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    height: 100%;
    background-color: var(--white-color);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.advantage-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.advantage-text {
    font-size: 0.95rem;
}

/* --- SERVICES --- */
.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.services-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.consult-block {
    margin-top: 40px;
    padding: 30px;
    background-color: var(--white-color);
    border-radius: 10px;
    border: 2px dashed var(--primary-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.consult-block p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: var(--dark-color);
}

/* --- FLEET --- */
.fleet-card {
    display: flex;
    flex-direction: column;
    background-color: var(--white-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    height: 100%;
    transition: all 0.3s ease;
    overflow: hidden; /* To keep rounded corners on image */
}

.fleet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.fleet-image-wrapper {
    margin: -30px -30px 20px -30px; /* Makes image fill top part */
}

.fleet-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.fleet-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.fleet-text-content {
    flex-grow: 1;
}

.fleet-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
}
.fleet-description {
    margin-bottom: 20px;
}

.fleet-specs {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.fleet-specs li {
    margin-bottom: 5px;
}

.fleet-price-block {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: auto; /* Pushes price block to the bottom */
}

.fleet-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0;
}

.fleet-min-order {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* --- FAQ --- */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background-color: var(--white-color);
    border-bottom: 1px solid var(--border-color);
}
.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}
.faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    padding: 20px;
    cursor: pointer;
    list-style: none; /* Remove default marker */
    position: relative;
    transition: background-color 0.3s;
    margin: 0;
}
.faq-question::-webkit-details-marker {
    display: none;
}
.faq-question::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    transition: transform 0.3s ease;
}
.faq-item[open] > .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}
.faq-answer {
    padding: 0 20px 20px 20px;
    overflow: hidden;
}
.faq-answer p {
    margin: 0;
}

/* --- FOOTER --- */
.footer {
    background-color: var(--dark-color);
    color: #adb5bd;
    padding: 60px 0 30px;
}

.footer-title {
    color: var(--white-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.footer-text {
    max-width: 350px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-contact-item {
    display: flex;
    flex-direction: column;
}

.footer-contact-item span {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-contact-item a {
    color: var(--white-color);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    transition: color 0.3s ease;
}
.footer-contact-item a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid #495057;
    margin-top: 40px;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legal,
.footer-disclaimer {
    font-size: 0.8rem;
    margin: 0;
}
.footer-disclaimer {
    max-width: 500px;
    text-align: right;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 991.98px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height); /* Keeps menu below the header */
        width: 100%;
        height: calc(
            100vh - var(--header-height)
        ); /* Full viewport height minus header */
        background-color: var(--white-color);
        flex-direction: column;
        justify-content: flex-start; /* Align items to the top to reduce top spacing */
        align-items: center;
        gap: 15px; /* Reduced gap between menu items */
        transition: left 0.3s ease-in-out;
        z-index: 999;
        padding: 15px 20px; /* Reduced top/bottom padding for overall compactness */
        box-sizing: border-box;
        overflow-y: auto; /* Allows scrolling within the menu if content exceeds screen height */
    }
    .nav-menu.active {
        left: 0;
    }
    .nav-menu .nav-item {
        width: 100%;
        text-align: center;
    }
    .nav-menu .nav-link {
        font-size: 1.6rem; /* Slightly reduced font size for better fit */
        padding: 8px 0; /* Reduced padding for links */
        display: block;
    }

    .burger {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001; /* Ensure burger is above menu */
    }
    .burger span {
        display: block;
        width: 25px;
        height: 3px;
        background-color: var(--dark-color);
        margin: 5px 0;
        transition: all 0.3s ease-in-out;
    }
    .burger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .burger.active span:nth-child(2) {
        opacity: 0;
    }
    .burger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    /* Styles for mobile menu contacts and button */
    .nav-menu-contact {
        margin-top: 15px; /* Reduced margin-top for closer elements */
        text-align: center;
        width: 100%;
    }
    .nav-menu-contact .phone-number {
        font-size: 1.4rem; /* Slightly reduced font size */
        font-weight: 700;
        color: var(--primary-color);
        text-decoration: none;
        display: block;
        margin-bottom: 10px; /* Reduced margin-bottom */
    }
    .nav-menu-contact .email {
        font-size: 1rem; /* Slightly reduced font size */
        color: var(--text-color);
        text-decoration: none;
        display: block;
        margin-bottom: 15px; /* Reduced margin-bottom */
    }
    .nav-menu-contact .btn {
        width: 80%;
        max-width: 280px; /* Slightly reduced max-width for the button */
        padding: 12px 25px; /* Reduced button padding */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .footer-disclaimer {
        text-align: center;
    }
}

@media (max-width: 767.98px) {
    .hero .row {
        min-height: 0;
    }
    .hero-title {
        margin-top: 60px;
    }
    .hero-image {
        max-width: 350px;
    }
    .hero-content {
        text-align: center;
        align-items: center;
    }
    .hero-image-wrapper {
        margin-top: -40px;
    }
    .floating-icons-container {
        display: none;
    }
    .section-title {
        font-size: 2rem;
    }
    .hero-title {
        font-size: 2.2rem;
        margin-top: 20px;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }
    .consult-block {
        flex-direction: column;
        text-align: center;
    }
}
