:root {
    --color-bg-dark: #0f172a;
    --color-bg-darker: #020617;
    --color-primary: #3b82f6;
    /* Bright Blue */
    --color-accent: #3b82f6;
    /* Replaced Red with Blue for consistency */
    --color-text-main: #f8fafc;
    --color-text-muted: #94a3b8;
    --color-glass: rgba(255, 255, 255, 0.05);
    --color-glass-border: rgba(255, 255, 255, 0.1);

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.5);
}

html {
    scroll-behavior: smooth;
    /* Smooth scrolling */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text-main);
    background-color: var(--color-bg-dark);
    /* 3D Moving Background handled in JS/Canvas or simple CSS animation here */
    background: radial-gradient(circle at 50% 50%, #1e293b 0%, #0f172a 100%);
    overflow-x: hidden;
}

/* Background 3D Effect Simulation */
.bg-3d-effect {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    /* background: #1e40af; */
    animation-delay: 0s;
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: #1d4ed8;
    animation-delay: -5s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: 0.3s;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    /* Added for absolute positioning context */
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--color-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--color-glass-border);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary), #2563eb);
    color: white !important;
    /* Force white text */
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.5);
    color: white !important;
    /* Force white text on hover */
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.glow-effect {
    animation: glow-pulse 3s infinite;
}

/* Header */
.glass-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    opacity: 0.8;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-primary);
}

.nav-links .btn {
    opacity: 1;
    font-size: 0.8rem;
    padding: 10px 24px;
    line-height: normal;
}

.nav-links .btn:hover {
    color: white !important;
}

/* Active Menu Item */
.nav-links a.active {
    color: var(--color-primary);
    pointer-events: none;
    cursor: default;
    opacity: 1;
}

/* Handle the button specifically */
.nav-links .btn.active {
    color: white !important;
    box-shadow: none;
    transform: none;
    background: var(--color-primary);
    opacity: 1;
    pointer-events: auto !important;
    /* Force clickability */
    cursor: pointer !important;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-premium {
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 40px 0 100px 0;
    /* Reduced top padding */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.hero-title {
    font-size: 5rem;
    /* Much larger */
    font-weight: 900;
    line-height: 1.05;
    background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
    /* Subtle vertical gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 30px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--color-text-muted);
    margin-bottom: 50px;
    max-width: 500px;
    font-weight: 400;
    line-height: 1.5;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 600px;
    height: 400px;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Services Cards - IMAGE BASED (Replaces old card-3d) */
.services-section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 3rem;
}

.section-header p {
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid-3d {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.card-3d {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 20px;
    padding: 0;
    /* No padding for image cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-3d:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(59, 130, 246, 0.5);
}

.card-image-container {
    height: 200px;
    width: 100%;
    overflow: hidden;
    position: relative;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card-3d:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-desc {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
    flex: 1;
}

.card-price-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.card-price-label {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.card-price {
    font-size: 1.5rem;
    color: var(--color-primary);
    font-weight: 800;
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Before/After Slider */
.ba-slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 500px;
    margin: 50px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ba-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    /* Initial state */
    height: 100%;
    overflow: hidden;
    border-right: 3px solid white;
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Reviews */
.reviews-section {
    padding: 100px 0;
    background: rgba(0, 0, 0, 0.2);
}

.review-card {
    background: var(--color-glass);
    padding: 30px;
    border-radius: 16px;
    margin: 10px;
    border: 1px solid var(--color-glass-border);
    height: 350px;
    display: flex;
    flex-direction: column;
}

#review-form-card p {
    flex: 0 0 auto;
    overflow: visible;
    height: auto;
    margin-bottom: 20px;
    padding-right: 0;
}

.review-card p {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 15px;
    /* Custom Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--color-primary) rgba(255, 255, 255, 0.1);
}

.review-card p::-webkit-scrollbar {
    width: 6px;
}

.review-card p::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.review-card p::-webkit-scrollbar-thumb {
    background-color: var(--color-primary);
    border-radius: 3px;
}

.review-status {
    margin-top: auto;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.review-author {
    font-weight: 700;
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 5px;
}

/* Animations */
@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 5px var(--color-primary);
    }

    50% {
        box-shadow: 0 0 20px var(--color-primary);
    }

    100% {
        box-shadow: 0 0 5px var(--color-primary);
    }
}

/* Default: hide mobile footer on desktop */
.mobile-menu-footer {
    display: none;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    /* Target the specific class to override desktop 5rem */
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2,
    .section-title,
    .section-header h2 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
        margin-bottom: 15px;
        word-wrap: break-word;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    #reviews-grid {
        gap: 15px !important;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(25px);
        padding: 30px 25px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        gap: 0;
        z-index: 999;
        overflow-y: auto;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links li {
        width: 100%;
        opacity: 1;
        /* Force visible */
        list-style: none;
        animation: none;
        /* Disable complex animations for now */
    }

    /* Sequential animation delay for items */
    .nav-links li:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-links li:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-links li:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-links li:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-links li:last-child {
        animation-delay: 0.4s;
    }

    .nav-links a:not(.btn) {
        display: block;
        padding: 20px 0;
        font-size: 1.3rem;
        font-weight: 600;
        color: white;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        text-align: center;
        transition: color 0.3s;
    }

    .nav-links a:not(.btn):hover {
        color: var(--color-primary);
        padding-left: 10px;
    }

    .nav-links .btn {
        width: 100%;
        margin-top: 30px;
        padding: 18px;
        font-size: 1.1rem;
        text-align: center;
        display: block;
        box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    }

    /* Mobile Footer Styles */
    .mobile-menu-footer {
        display: block;
        margin-top: 40px;
        padding-top: 20px;
        border-top: none;
        text-align: center;
    }

    .mobile-contacts {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .mobile-phone {
        font-size: 1.5rem !important;
        color: white !important;
        font-weight: 800 !important;
        border-bottom: none !important;
        padding: 5px 0 !important;
        display: flex;
        align-items: center;
        gap: 10px;
        justify-content: center;
    }

    .mobile-phone i {
        color: var(--color-primary);
    }

    .mobile-address {
        color: rgba(255, 255, 255, 0.5);
        font-size: 0.9rem;
        line-height: 1.5;
        margin: 0;
    }

    .mobile-socials {
        display: flex;
        gap: 20px;
        margin-top: 15px;
        justify-content: center;
    }

    .mobile-socials a {
        width: 45px;
        height: 45px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        border: none !important;
        padding: 0 !important;
        transition: all 0.3s;
    }

    .mobile-socials a:hover {
        background: var(--color-primary);
        transform: scale(1.1);
    }

    /* Reduce vertical spacing */
    section,
    .section-padding,
    .content-wrapper {
        padding: 40px 0 !important;
    }

    .container {
        padding: 0 15px;
    }

    .calc-section,
    .reviews-section,
    .faq-section {
        padding: 40px 0 !important;
    }

    .calc-actions .btn {
        padding: 12px 20px !important;
        font-size: 0.9rem !important;
        min-width: auto !important;
        width: auto !important;
        flex: 1;
    }

    .calc-actions {
        justify-content: space-between;
        gap: 10px;
        width: 100%;
    }

    .mobile-menu-btn {
        display: block;
        position: relative;
        z-index: 1002;
    }

    /* Hide specific footer columns on mobile */
    .mobile-hide {
        display: none !important;
    }

    .hero-visual {
        display: none;
    }

    .hero-premium {
        padding-top: 20px;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Benefits List - Clean Version */
.benefits-card {
    padding: 0;
    width: auto;
    max-width: 600px;
    /* Increased width */
    position: absolute;
    right: 10%;
    /* Moved left (was 0) */
    top: 50%;
    transform: translateY(-50%) scale(1.15);
    /* Increased scale */
    transform-origin: center right;
    /* Scale from right */
    z-index: 2;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
}

.hero-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 25px;
}

.hero-benefits i {
    font-size: 2.5rem;
    color: var(--color-primary);
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    display: block;
    box-shadow: none;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.hero-benefits div {
    display: flex;
    flex-direction: column;
}

.hero-benefits strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 5px;
    line-height: 1.1;
    padding-right: 5px;
    /* Prevent clipping of last letter */
}

.hero-benefits span {
    color: var(--color-text-muted);
    font-size: 1.1rem;
}

/* Canvas Background */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

@media (max-width: 900px) {
    .hero-premium {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        margin-bottom: 50px;
    }


    /* Remove spinner arrows from number inputs */
    input[type=number]::-webkit-outer-spin-button,
    input[type=number]::-webkit-inner-spin-button,
    #car_year::-webkit-outer-spin-button,
    #car_year::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }

    input[type=number],
    #car_year {
        -moz-appearance: textfield !important;
        appearance: textfield !important;
    }

    .benefits-card {
        position: relative;
        top: auto;
        right: auto;
        transform: none;
        width: 100%;
    }

    .hero-benefits {
        align-items: center;
        text-align: center;
    }

    .hero-benefits li {
        flex-direction: column;
        gap: 10px;
    }
}

/* Booking Page Styles */
.booking-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 40px;
}

.booking-form-panel {
    padding: 40px;
}

.booking-info-panel {
    padding: 40px;
    height: fit-content;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

/* Custom Select Styling */
.custom-select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    pointer-events: none;
}

select.form-control {
    appearance: none;
    -webkit-appearance: none;
}

select.form-control option {
    background-color: #1e293b;
    color: white;
}

/* Slot Buttons */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
}

.slot-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    border-radius: 10px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slot-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--color-primary);
}

.slot-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.slot-btn.booked {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Info List */
.info-list {
    list-style: none;
    margin-top: 20px;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list i {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 4px;
}

.info-list span {
    color: var(--color-text-muted);
    line-height: 1.5;
}

.contact-highlight {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.phone-link {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    margin: 10px 0;
}

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

@media (max-width: 900px) {
    .booking-grid {
        grid-template-columns: 1fr;
    }
}

/* Footer Redesign */
.main-footer {
    position: relative;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.8) 0%, rgba(15, 23, 42, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 80px 0 30px;
    margin-top: 0px;
    /* Remove margin-top margin-top:100px; */
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Brand Column */
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    /* Reduced font size 1.4rem */
    font-weight: 800;
    color: white;
    text-decoration: none;
    margin-bottom: 20px;
}

.footer-logo i {
    color: var(--color-primary);
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 300px;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 15px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-btn:hover {
    background: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
    border-color: var(--color-primary);
}

/* Nav & Contacts */
.footer-nav,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-nav li,
.contact-list li {
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: inline-block;
}

.footer-nav a:hover {
    color: var(--color-primary);
    transform: translateX(5px);
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-list i {
    color: var(--color-primary);
    font-size: 1.1rem;
    margin-top: 3px;
}

.contact-list a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.contact-list a:hover {
    color: var(--color-primary);
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

.policy-links {
    display: flex;
    gap: 25px;
}

.policy-links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.policy-links a:hover {
    color: white;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col.brand-col {
        grid-column: 1 / -1;
        margin-bottom: 20px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Before/After Grid */
.ba-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.ba-card-wrapper {
    height: 250px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    background-color: var(--color-bg-dark);
    padding: 0;
    margin: 0;
    display: flex;
    /* Removes inline-block spacing issues */
}

.ba-slider-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: ew-resize;
    touch-action: none;
    padding: 0;
    margin: 0;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.ba-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
    /* Thinner, less harsh line */
    will-change: width;
}

.expand-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    opacity: 0;
    /* Hidden by default */
}

.ba-card-wrapper:hover .expand-btn {
    opacity: 1;
    /* Show on hover */
}

/* Always show on mobile */
@media (hover: none) {
    .expand-btn {
        opacity: 1;
        background: rgba(0, 0, 0, 0.7);
    }
}

.expand-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* Modal Styles */
.ba-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ba-modal.active {
    display: flex;
}

.ba-modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10000;
}

.ba-modal-content {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.ba-modal .beer-reveal {
    border-right: 2px solid white;
    /* Thicker line for fullscreen */
}

.ba-overlay .ba-image {
    width: 100%;
    /* The width will be set dynamically via JS to match container width */
}

.ba-slider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    /* Smaller */
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    /* Slightly transparent */
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
    color: var(--color-primary);
    z-index: 10;
    cursor: ew-resize;
    font-size: 0.8rem;
    /* Smaller icon */
    pointer-events: none;
    /* Let clicks pass through for smoother dragging */
}

.hidden-work {
    display: none;
}

@media (max-width: 900px) {
    .ba-grid {
        grid-template-columns: 1fr;
    }

    .ba-card-wrapper {
        height: 300px;
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.08);
    /* Slightly lighter when active */
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    padding-right: 20px;
    line-height: 1.4;
}

.faq-question i {
    color: var(--color-primary);
    transition: transform 0.3s ease;
    font-size: 1rem;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
    padding: 0 25px;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    /* Arbitrary large height for text */
    opacity: 1;
    padding-bottom: 25px;
}

.faq-answer p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 600px) {
    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

/* Modern Review Modal Styles */
.modal-modern-overlay {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.modal-modern-card {
    background: #0f172a;
    /* Fallback */
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.95) 0%, rgba(10, 15, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.5),
        0 8px 10px -6px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-modern-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-modern-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: rotate(90deg);
}

.modal-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    letter-spacing: -0.02em;
}

.modern-form-group {
    margin-bottom: 20px;
    position: relative;
}

.modern-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 16px 20px;
    color: white;
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
    outline: none;
}

.modern-input:focus {
    border-color: var(--color-primary);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.modern-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.modern-textarea {
    resize: none;
    min-height: 120px;
}

.star-rating-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.star-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* Star Rating Logic */
.rating-group {
    display: inline-flex;
    flex-direction: row-reverse;
    border: none;
}

.rating__input {
    position: absolute !important;
    left: -9999px !important;
}

.rating__label {
    cursor: pointer;
    padding: 0 4px;
    font-size: 1.8rem;
    color: rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.rating__label i {
    transition: transform 0.2s;
}

.rating__input:checked~.rating__label,
.rating__label:hover,
.rating__label:hover~.rating__label {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.rating__label:hover i {
    transform: scale(1.2);
}

.modern-submit-btn {
    width: 100%;
    padding: 18px;
    border-radius: 16px;
    background: var(--color-primary);
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 30px -10px rgba(59, 130, 246, 0.6);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modern-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.8);
}

/* Cost Calculation Section */
.calc-section {
    padding: 100px 0;
    position: relative;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(15, 23, 42, 0.5) 100%);
}

.calc-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.calc-form-card {
    background: var(--color-glass);
    border: 1px solid var(--color-glass-border);
    border-radius: 24px;
    padding: 40px;
    margin-top: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.calc-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.calc-col {
    flex: 1;
}

/* File Upload Area */
.upload-area {
    border: 2px dashed rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 15px;
    /* 40px */
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    margin-bottom: 20px;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: var(--color-primary);
    background: rgba(59, 130, 246, 0.05);
}

.upload-icon {
    font-size: 3rem;
    color: var(--color-text-muted);
    margin-bottom: 15px;
    transition: color 0.3s;
}

.upload-area:hover .upload-icon {
    color: var(--color-primary);
}

.upload-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.upload-text span {
    color: var(--color-primary);
    font-weight: 600;
}

/* Thumbnails Grid */
.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    display: none;
    /* Hidden by default */
}

.thumbnail-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 1;
    background: #000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 0.3s ease;
}

.thumbnail-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.2s;
}

.thumbnail-remove:hover {
    background: #ef4444;
}

.calc-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

@media (max-width: 600px) {
    .calc-row {
        flex-direction: column;
        gap: 15px;
    }
}

/* Voice Recorder Styles */
.voice-recorder-wrapper {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 10px 15px;
    min-height: 60px;
}

.voice-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-record {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.btn-record:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

.btn-stop {
    background: #ef4444;
    color: white;
    animation: pulse-red 1.5s infinite;
}

.recording-status {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    color: white;
    font-size: 0.9rem;
}

.wave-animation {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: center;
}

.wave-bar {
    width: 3px;
    background: #ef4444;
    border-radius: 3px;
    animation: wave 1s ease-in-out infinite;
}

.wave-bar:nth-child(1) {
    height: 10px;
    animation-delay: 0.0s;
}

.wave-bar:nth-child(2) {
    height: 15px;
    animation-delay: 0.1s;
}

.wave-bar:nth-child(3) {
    height: 20px;
    animation-delay: 0.2s;
}

.wave-bar:nth-child(4) {
    height: 15px;
    animation-delay: 0.3s;
}

.wave-bar:nth-child(5) {
    height: 10px;
    animation-delay: 0.4s;
}

@keyframes wave {

    0%,
    100% {
        transform: scaleY(1);
    }

    50% {
        transform: scaleY(2);
    }
}

@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Audio Player Custom */
.audio-player-custom {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.audio-track {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    position: relative;
    cursor: pointer;
}

.audio-progress {
    height: 100%;
    background: var(--color-primary);
    border-radius: 2px;
    width: 0%;
}

.btn-play-pause {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

.btn-delete-audio {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.2s;
}

.btn-delete-audio:hover {
    color: #ef4444;
}

.timer {
    font-variant-numeric: tabular-nums;
    font-family: monospace;
    font-size: 1rem;
}

/* Mobile Footer Improvements */
@media (max-width: 768px) {
    .main-footer {
        padding: 30px 0 20px;
    }

    .footer-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-col {
        align-items: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
        flex-direction: row;
        align-items: center;
        gap: 10px;
    }

    .footer-logo img {
        height: 35px !important;
        width: auto;
    }

    .footer-logo span {
        font-size: 1.3rem;
        font-weight: 700;
    }

    .footer-desc {
        text-align: center;
        margin: 10px auto 0;
        opacity: 0.7;
        font-size: 0.9rem;
        max-width: 300px;
        line-height: 1.4;
    }

    .social-links {
        justify-content: center;
        gap: 15px;
        margin: 20px 0;
    }

    .social-btn {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        background: rgba(255, 255, 255, 0.05);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }

    .contact-list li {
        justify-content: center;
        font-size: 1rem;
        margin-bottom: 10px;
        display: block;
        text-align: center;
    }

    .contact-list i {
        display: none;
    }

    .footer-col.contact-col h4 {
        display: none;
        /* Hide 'Контакты' title to save space as icons are self-explanatory */
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        margin-top: 20px;
        padding-top: 15px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.4);
    }

    .policy-links {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    .policy-links a {
        font-size: 0.8rem;
    }
}

/* Calc Button Text Visibility */
.calc-mobile-text {
    display: none;
}

@media (max-width: 768px) {
    .calc-desktop-text {
        display: none;
    }

    .calc-mobile-text {
        display: inline;
    }

    /* Mobile Date Input Placeholder */
    input[type="date"] {
        position: relative;
        min-height: 52px;
    }

    /* Hide default "dd.mm.yyyy" text when empty */
    input[type="date"]:invalid::-webkit-datetime-edit {
        color: transparent;
    }

    /* Show custom placeholder */
    input[type="date"]:invalid::before {
        content: attr(placeholder);
        color: rgba(255, 255, 255, 0.5);
        position: absolute;
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
    }
}

/* How We Work Section */
.process-section {
    padding: 80px 20px;
    position: relative;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.process-card {
    position: relative;
    padding: 30px 20px;
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.process-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.process-step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
}

.process-icon {
    width: 60px;
    height: 60px;
    background: rgba(34, 197, 94, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #fff;
    border: 1px solid rgba(34, 197, 94, 0.2);
    opacity: 0.6;
}

.process-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: white;
}

.process-card p {
    color: #94a3b8;
    line-height: 1.6;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

/* Highlight for Step 4 */
.process-card-highlight {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.05) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.photo-report-badge {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(34, 197, 94, 0.15);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    width: fit-content;
}

/* Mobile Responsiveness for Process Grid */
@media (max-width: 1024px) {
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .process-section {
        padding: 50px 20px;
    }
}

/* Services Page - Price List Hover Effects */
@media (hover: hover) {
    .price-row:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        cursor: default;
        transform: translateX(5px);
    }

    .price-row {
        transition: all 0.2s ease;
    }
}

/* Fix for Mobile Input Zoom (iOS) */
@media (max-width: 768px) {

    input,
    textarea,
    select {
        font-size: 16px !important;
    }
}