/* === ROOT VARIABLES === */
:root {
    --brand-green: #2E4635;
    --brand-green-dark: #24382A;
    --brand-orange: #D97706;
    --brand-orange-hover: #FBBF24;
    --background-light: #FDFDFD;
    --background-section: #FFFFFF;
    --text-dark: #374151;
    --text-light: #F9FAFB;
    --text-muted: #6B7280;
    --border-color: #E5E7EB;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --transition: all 0.3s ease-in-out;
}

/* === GENERAL STYLES === */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-green);
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); }
h2 { font-size: clamp(2rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.5rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    max-width: 70ch; /* Optimal line length for readability */
}

a {
    color: var(--brand-orange);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--brand-orange-hover);
}

/* === HEADER === */
header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease-in-out; /* Smooth transition for header changes */
}

header.scrolled {
    padding: 0.5rem 0; /* Smaller padding when scrolled */
    box-shadow: var(--shadow-md); /* More prominent shadow */
}

header.scrolled .header-logo {
    max-width: 120px; /* Smaller logo when scrolled */
}

header.scrolled .header-contacts .phone-number {
    font-size: 1.2rem; /* Smaller phone number when scrolled */
}

/* Hide full navigation and show burger on desktop when scrolled */
@media (min-width: 993px) { /* Apply only on desktop */
    header.scrolled .main-nav-links {
        display: none;
    }
    header.scrolled .burger-menu {
        display: flex; /* Show burger menu on desktop when scrolled */
        margin-left: 1rem; /* Add some space to the left */
    }
    header.scrolled .main-nav {
        background: transparent; /* Remove background from main-nav when scrolled */
        padding: 0;
    }

    /* --- Desktop Scrolled Active Menu --- */
    header.scrolled .main-nav.active {
        position: absolute;
        top: 100%; /* Position it right below the header */
        right: 20px; /* Align to the right */
        background: #fff;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: 1rem;
        width: 250px; /* Give it a fixed width */
    }

    header.scrolled .main-nav.active .main-nav-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* Align links to the left */
    }

    header.scrolled .main-nav.active .main-nav-links a {
        color: var(--brand-green); /* Make links visible on white background */
        margin: 0.5rem 0;
        padding: 0.5rem;
        width: 100%;
        box-sizing: border-box;
        border-bottom: none;
    }

     header.scrolled .main-nav.active .main-nav-links a:hover {
        background-color: var(--background-light);
        color: var(--brand-orange);
     }
}

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

.header-logo {
    max-width: 180px;
    height: auto;
}

.header-descriptor {
    text-align: center;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.header-contacts .phone-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-green);
    white-space: nowrap;
}

.header-socials {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: 1.5rem;
}

.header-socials a {
    font-size: 2rem;
    color: var(--brand-green);
    transition: color 0.3s ease;
}

.header-socials a:hover {
    color: var(--brand-orange);
}

.main-nav {
    background: var(--brand-green);
    padding: 0.75rem 0;
    text-align: center;
}

.main-nav a {
    margin: 0 1.5rem;
    color: var(--text-light);
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--brand-orange-hover);
    border-bottom-color: var(--brand-orange-hover);
}

/* === HERO SECTION === */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)), url('projects/1.9f8YRba4WRYu8tsbfhr0hiDnWxCm5NsALulbFKjsURyu.zzOnS37vi-qO-b1-CFwsPZ2hN-5gIWllcDZE5m2Gjho-2.webp');
    background-size: cover;
    background-position: center center;
    color: var(--text-light);
    text-align: center;
    padding: 6rem 1.25rem;
}

.hero h1 {
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.25rem;
    max-width: 650px;
    margin: 1rem auto 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* === CTA BUTTON === */
.cta-button {
    background-color: var(--brand-orange);
    color: #fff;
    padding: 0.7rem 1.8rem;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    transition: var(--transition);
    display: inline-block;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: var(--brand-orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 20px -5px rgba(0,0,0,0.2);
    color: #fff;
}

.cta-button.secondary {
    background-color: transparent;
    color: var(--brand-orange);
    border: 2px solid var(--brand-orange);
    padding-top: calc(0.7rem - 2px);
    padding-bottom: calc(0.7rem - 2px);
}

.cta-button.secondary:hover {
    background-color: var(--brand-orange);
    color: #fff;
}

.calc-buttons-wrap {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.calc-buttons-wrap .cta-button {
    flex-grow: 1;
}

/* === SECTIONS === */
.section {
    padding: 5rem 1.25rem;
    background-color: var(--background-section);
    border-bottom: 1px solid var(--border-color);
}

.section:nth-of-type(odd) {
    background-color: var(--background-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

#about p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 0.7;
    }
}

/* === PRICE CARDS (Legacy, can be removed if not used elsewhere) === */
.price-card {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: var(--transition);
}

/* === CALCULATOR === */
.calculator-container {
    display: flex;
    gap: 3rem;
    background-color: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    align-items: flex-start;
}

.calc-options-area {
    flex: 1 1 0%;
}

.calc-right-column {
    flex: 1.5 1 0%;
    position: sticky;
    top: 120px;
}

.calc-step {
    margin-bottom: 2rem;
}

.calc-step h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--brand-green-dark);
}

.calc-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.calc-btn {
    padding: 0.75rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    background-color: #fff;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.calc-btn:hover {
    background-color: #f9fafb;
    border-color: var(--brand-green);
}

.calc-btn.active {
    background-color: var(--brand-green);
    color: #fff;
    border-color: var(--brand-green);
    font-weight: 700;
}

/* === Additional Options === */
.calc-additional-options {
    margin-top: 2rem;
}

.additional-option {
    background-color: #f9fafb;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 1rem;
    width: 20px;
    height: 20px;
    accent-color: var(--brand-orange);
}

.additional-option-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding-top 0.4s ease;
    padding-top: 0;
    margin-left: 2rem; /* Indent details */
}

.additional-option-details.visible {
    max-height: 500px; /* Adjust as needed */
    padding-top: 1rem;
}

.error-message {
    color: red;
    font-size: 0.9rem;
    display: block;
    margin-top: 0.5rem;
}

.calc-results-area {
    text-align: center;
    background-color: var(--background-light);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.calc-plan {
    margin-bottom: 1.5rem;
}

.calc-plan img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: opacity 0.3s ease-in-out;
}


/* === BENEFITS === */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.benefit-card {
    background-color: #fff;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.benefit-icon {
    font-size: 3rem;
    color: var(--brand-orange);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.benefit-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    color: var(--brand-green-dark);
}

.benefit-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: none;
}

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery figure {
    margin: 0;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery figure:hover img {
    transform: scale(1.1);
}

.gallery figcaption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    color: var(--text-light);
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery figure:hover figcaption {
    transform: translateY(0);
}

/* === WORK PROCESS === */
.work-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.work-step .step-number {
    width: 70px;
    height: 70px;
    background-color: var(--brand-green);
    color: var(--text-light);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 4px solid var(--background-light);
    box-shadow: var(--shadow-md);
}

.work-step h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--brand-green-dark);
}

.work-step p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: none;
}

/* === TESTIMONIALS === */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.testimonial {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.testimonial p {
    font-style: italic;
    color: var(--text-muted);
    flex-grow: 1;
    margin: 0;
}

.testimonial-author {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 1.5rem;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: var(--brand-green-dark);
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    margin-right: 1rem;
    border: 2px solid var(--border-color);
}

/* === FAQ === */
.faq-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: var(--transition);
}

.faq-question {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
}

.faq-question::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 300;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    margin-top: 1rem;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 0.5rem;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust as needed */
    padding-bottom: 1rem;
}

/* === FORM CONTAINER & INPUTS === */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input, .form-container textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1.1rem; /* Increased font size */
    font-family: 'Roboto', sans-serif;
    transition: var(--transition);
    box-sizing: border-box;
    height: 50px; /* Set a fixed height */
}

.form-input:focus, .form-container textarea:focus {
    outline: none;
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.form-container textarea {
    min-height: 140px;
    height: auto; /* Allow textarea to grow */
}

.file-upload-label {
    display: inline-block;
    padding: 1rem;
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: center;
    width: 100%;
    transition: var(--transition);
    box-sizing: border-box;
}

.file-upload-label:hover {
    border-color: var(--brand-orange);
    background-color: #fef3c7;
}

.file-upload-label span {
    color: var(--text-muted);
}

#file-upload {
    display: none;
}

#file-name {
    display: block;
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

.form-container .cta-button {
    width: 100%;
}

#form-status {
    text-align: center;
    margin-top: 1.5rem;
    font-weight: 500;
    font-size: 1.1rem;
}


/* === FOOTER === */
footer {
    text-align: center;
    padding: 3rem 1.25rem;
    background: var(--brand-green);
    color: var(--text-light);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed; /* Stay in place */
    z-index: 2000; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    background-color: rgba(31, 41, 55, 0.8); /* Semi-transparent dark background */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.lightbox.visible {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content, .lightbox-form-content {
    position: relative;
    display: block;
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transform: scale(0.9);
    transition: transform 0.4s ease;
}

.lightbox.visible .lightbox-content, .lightbox.visible .lightbox-form-content {
    transform: scale(1);
}

.lightbox-content {
    max-width: 80vw;
    max-height: 80vh;
}

.lightbox-form-content {
    max-width: 500px;
    padding: 2.5rem;
    text-align: center;
}

.lightbox-form-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.lightbox-form-content p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

#order-form-status {
    margin-top: 1.5rem;
    font-weight: 500;
}

.lightbox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: var(--text-dark);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    border: 2px solid #fff;
    z-index: 2100; /* Ensure it's above the content */
}

.lightbox-close:hover {
    background: var(--brand-orange);
    transform: rotate(90deg);
}

.lightbox-prev, .lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 2200;
    border-radius: 0 5px 5px 0;
}

.lightbox-next {
    right: 0;
    border-radius: 5px 0 0 5px;
}

.lightbox-prev {
    left: 0;
}

.lightbox-prev:hover, .lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


footer p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
}

/* Burger Menu Styles */
.burger-menu {
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1100; /* Above main-nav */
}

.burger-menu-line {
    width: 100%;
    height: 3px;
    background-color: var(--brand-green-dark);
    border-radius: 10px;
    transition: all 0.3s linear;
    transform-origin: 1px;
}

/* Animation for burger menu lines */
.burger-menu.active .burger-menu-line:nth-child(1) {
    transform: rotate(45deg);
}

.burger-menu.active .burger-menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.burger-menu.active .burger-menu-line:nth-child(3) {
    transform: rotate(-45deg);
}

.burger-menu.active .burger-menu-line {
    background-color: #fff; /* Change to white when active */
}

/* Adjust main-nav for desktop */
.main-nav-links {
    display: flex; /* Use flex for desktop navigation */
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    .desktop-spacer {
        height: 0;
    }

    .collapsible-wrapper {
        position: relative;
    }

    .collapsible-text {
        max-height: 100px;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
        position: relative;
        padding-bottom: 2rem; /* Space for the dots */
    }

    .collapsible-text::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 50px;
        background: linear-gradient(to bottom, transparent, var(--background-light));
        transition: opacity 0.3s ease-in-out;
        opacity: 1;
        pointer-events: none;
    }

    .collapsible-text.is-expanded {
        max-height: 1000px;
    }

    .collapsible-text.is-expanded::after {
        opacity: 0;
    }

    .read-more-dots {
        display: block;
        text-align: center;
        cursor: pointer;
        font-size: 2rem;
        color: var(--brand-orange);
        animation: pulse 1.5s infinite;
        position: absolute;
        bottom: -10px;
        left: 50%;
        transform: translateX(-50%);
    }

    .collapsible-wrapper.is-expanded .read-more-dots {
        display: none;
    }

    .header-container {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start; /* Align items to the top */
    }

    .header-logo {
        max-width: 130px; /* Make logo smaller on mobile */
        flex-shrink: 0; /* Prevent logo from shrinking */
    }

    .header-descriptor {
        display: none; /* Hide descriptor on smaller screens */
    }

    .header-contacts {
        display: flex;
        flex-direction: column;
        align-items: flex-end; /* Align items to the right */
        gap: 0.25rem; /* Add a small gap between phone and icons */
        margin-left: 0.5rem;
    }
    
    .header-contacts .phone-number {
        font-size: 1rem; /* Smaller phone number */
    }

    .header-socials {
        margin-left: 0; /* Remove the desktop margin */
        gap: 0.75rem; /* Reduce gap between icons */
    }

    .header-socials a {
        font-size: 1.5rem; /* Make icons smaller on mobile */
    }

    .burger-menu {
        display: flex; /* Show burger on mobile */
        margin-left: 1rem; /* Add some space */
    }

    /* --- Slide-out Menu --- */
    .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100%;
        background: var(--brand-green-dark);
        flex-direction: column;
        padding: 4rem 1rem;
        transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother slide-out animation */
        transform: translateX(100%); /* Move off-screen */
        z-index: 1050;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        text-align: left;
    }

    .main-nav.active {
        transform: translateX(0); /* Move on-screen */
    }
    
    /* Overlay for when menu is active */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 1040; /* Below the menu */
        pointer-events: none; /* Let clicks pass through */
    }

    .main-nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .main-nav a {
        margin: 1rem 0;
        font-size: 1.2rem;
        border-bottom: none;
        padding: 0.5rem 1rem;
        width: 100%;
        box-sizing: border-box;
        border-radius: var(--radius-md);
        transition: background-color 0.3s ease, color 0.3s ease; /* Smooth transition */
    }

    .main-nav a:hover, .main-nav a.active {
        border-bottom-color: transparent;
        background-color: var(--brand-green);
        color: var(--brand-orange-hover);
    }

    /* --- Other Mobile Adjustments --- */
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author {
        justify-content: center; /* Center author block on mobile */
        text-align: center; /* Center the text as well */
    }

    .hero {
        padding: 4rem 1.25rem;
    }
    .hero h1 {
        font-size: 1.9rem; /* Уменьшенный шрифт для мобильных */
        line-height: 1.4; /* Улучшаем читаемость */
    }
    .section {
        padding: 3rem 1.25rem;
    }
    .work-process {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
    .form-container {
        padding: 1.5rem;
    }

    /* --- Mobile Calculator --- */
    .calculator-container {
        display: flex;
        flex-direction: column;
        padding: 1.5rem;
        padding-bottom: 120px; /* Extra space for the sticky bar */
    }
    
    .calc-options {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }
    
    .calc-btn {
        padding: 0.75rem 1rem; /* Adjust padding */
    }

    .additional-option-details {
        margin-left: 0.5rem; /* Reduce indent on mobile */
    }

    /* --- Sticky Calculator Results on Mobile --- */
    .calc-right-column {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        background: rgba(255, 255, 255, 0.85);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 -5px 15px rgba(0,0,0,0.07);
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 1rem;
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .calc-plan {
        width: 100%;
        margin: 0 auto 1.5rem auto;
        transition: all 0.3s ease-in-out; /* Плавный переход */
    }

    .calc-plan.plan-is-sticky {
        position: sticky;
        top: 80px; /* Отступ от верха, чтобы не заезжать под шапку */
        z-index: 900;
        background: var(--background-light);
        padding-bottom: 1rem;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    }

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

    .calc-results-area {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex-grow: 1;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

    .results-summary {
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .total-price-display {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
        text-align: left;
    }

    .total-price-label {
        font-size: 0.8rem;
        margin-bottom: 0;
    }

    .total-price-value {
        font-size: 1.5rem;
    }

    .price-breakdown {
        display: none; /* Hide breakdown on mobile sticky bar */
    }

    .calc-buttons-wrap {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0;
        width: 100%;
    }

    .calc-buttons-wrap .cta-button {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
        flex-grow: 1; /* Allow buttons to share space */
        text-align: center;
        width: 100%;
    }
}


/* === NEW STYLES FOR ADDITIONAL OPTIONS === */
.additional-option-details ul li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.additional-option-details ul li:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
    color: var(--text-dark);
}

.item-specs {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: block; /* Make it appear on a new line */
    margin-top: 0.2rem;
}

.spec-type {
    margin-right: 0.5rem; /* Add space between type and volume */
}

.spec-volume {
    font-weight: 500; /* Make volume slightly bolder */
    color: var(--text-dark);
    white-space: nowrap; /* Prevent unit from wrapping */
}

.item-price {
    font-weight: 700;
    color: var(--brand-green);
    white-space: nowrap; /* Prevent price from wrapping */
    margin-left: 1rem; /* Add space between name and price */
}

/* === NEW STYLES FOR CALCULATOR RESULTS === */
.results-summary {
    margin-bottom: 1rem;
}

.total-price-display {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.total-price-label {
    display: block;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.total-price-value {
    display: block;
    font-size: 2.3rem;
    font-weight: 700;
    color: var(--brand-orange);
    line-height: 1.1;
}

.price-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
}

.breakdown-label {
    color: var(--text-muted);
}

.breakdown-value {
    font-weight: 700;
    color: var(--text-dark);
}

/* --- Desktop Styles for Results --- */
@media (min-width: 993px) {
    .calc-options-area {
        padding-bottom: 40vh;
    }

    .calc-right-column {
        position: sticky;
        top: 120px;
    }

    .results-summary {
        text-align: center;
    }

    .total-price-display {
        margin-bottom: 1rem;
        padding-bottom: 1rem;
    }

    .price-breakdown {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2rem;
    }

    .breakdown-item {
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
        padding: 0 2rem;
        border-left: 1px solid var(--border-color);
    }

    .breakdown-item:first-child {
        border-left: none;
    }

    .breakdown-label {
        font-size: 0.85rem;
        margin-bottom: 0.25rem;
    }

    .breakdown-value {
        font-size: 1.1rem;
    }
}

/* --- Mobile Styles for Results --- */
@media (max-width: 992px) {
    .calc-right-column {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 950;
        background: rgba(255, 255, 255, 0.85);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        box-shadow: 0 -5px 15px rgba(0,0,0,0.07);
        border-top: 1px solid rgba(0,0,0,0.1);
        padding: 1rem;
    }


    .calc-results-area {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .results-summary {
        margin-bottom: 0;
        text-align: left;
    }

    .total-price-display {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .total-price-label {
        font-size: 0.8rem;
    }

    .total-price-value {
        font-size: 1.4rem;
    }

    .price-breakdown {
        display: none; /* Hide breakdown on mobile sticky bar */
    }

    .calc-buttons-wrap {
        flex-direction: column;
        gap: 0.5rem;
        margin-top: 0;
        width: auto;
    }

    .calc-buttons-wrap .cta-button {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
    }
}

/* === Scroll Animation === */
.animate-on-scroll {
    transition: opacity 1s ease-out, transform 1s ease-out;
}

.fly-in-left {
    opacity: 0;
    transform: translateX(-200px);
}

.fly-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* === Final Polish === */
.header-contacts {
    display: flex;
    align-items: center;
}

@media (max-width: 992px) {
    .header-contacts {
        flex-direction: column;
        align-items: flex-end;
    }
}