:root {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;
    --text-main: #1e293b;
    --text-light: #64748b;
    --bg-main: #ffffff;
    --bg-section: #f8fafc;
    --border-color: #e2e8f0;
    --border-radius: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

section {
    padding: 80px 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.5);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.w-100 {
    width: 100%;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 15px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
}

.header-nav {
    display: flex;
    gap: 20px;
    font-weight: 500;
}

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

.header-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.header-contact .phone {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-main);
}

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

.work-time {
    font-size: 0.85rem;
    color: var(--text-light);
}

.header-region {
    font-size: 0.9rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Hero */
.hero {
    background-size: cover;
    background-position: center;
    color: white;
    padding: 100px 0;
    position: relative;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.badge {
    display: inline-block;
    background-color: rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-triggers {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    background: rgba(0,0,0,0.3);
    padding: 8px 16px;
    border-radius: 8px;
}

/* Forms */
.hero-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    color: var(--text-main);
    box-shadow: var(--shadow-lg);
}

.hero-form h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-form p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.privacy-note {
    display: block;
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 15px;
}

/* Promotions */
.promotions {
    padding: 60px 0;
}
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.promo-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    border-left: 4px solid var(--primary-color);
}
.promo-card.highlight {
    border-left: 4px solid var(--secondary-color);
    background: linear-gradient(to right, #fffbeb, #ffffff);
}
.promo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-main);
}
.promo-card.highlight h3 {
    color: var(--secondary-dark);
}

/* Window Types */
.types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.type-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.type-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.type-info {
    padding: 20px;
}
.type-info h3 {
    margin-bottom: 10px;
}
.type-info p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Calculator Section */
.calc-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.calc-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.calc-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
}

.calc-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

.counter {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.counter button {
    background: var(--bg-section);
    border: none;
    width: 40px;
    height: 45px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.counter button:hover {
    background: #e2e8f0;
}

.counter input {
    flex: 1;
    text-align: center;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
}

.counter input:focus {
    outline: none;
}

.checkbox-group {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-group input {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

.calc-result {
    background: var(--bg-section);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.calc-result h3 {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 10px;
}

.price-val {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price-val span {
    font-size: 1.2rem;
    color: var(--text-main);
}

.calc-note {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Advantages */
.adv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.adv-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.3s;
}

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

.adv-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.adv-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.adv-card p {
    color: var(--text-light);
}

/* Additional Services */
.add-serv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}
.add-card {
    background: white;
    padding: 25px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    text-align: center;
}
.add-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.add-card h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}
.add-price {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Equipment & Chemicals */
.equip-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.equip-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}
.equip-list li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}
.equip-list li::before {
    content: "💧";
    position: absolute;
    left: 0;
}
.equip-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.equip-images img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    object-fit: cover;
    height: 250px;
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.step-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    position: relative;
    text-align: center;
}
.step-num {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    margin: 0 auto 20px auto;
}
.step-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}
.step-card p {
    color: var(--text-light);
}

/* Before / After Slider */
.ba-slider {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #000;
    cursor: ew-resize;
    user-select: none;
    -webkit-user-drag: none;
}

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

.ba-image-bg {
    width: 100%;
}

/* Correct BA Slider FG Setup */
.ba-image-fg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.ba-image-fg {
    /* Width will be set via JS to match slider width */
    max-width: none; 
    filter: brightness(0.6) contrast(0.6) sepia(0.5) blur(1.5px);
}

.dirt-overlay {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    max-width: none;
    mix-blend-mode: multiply;
    opacity: 0.85;
    pointer-events: none;
}

.ba-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: white;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    z-index: 5;
}

.ba-handle-circle {
    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: var(--primary-color);
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Portfolio Masonry Grid */
.portfolio-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 15px;
}
.port-item {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.port-item:nth-child(10n + 1) {
    grid-column: 1 / span 2;
    grid-row: span 2;
}
.port-item:nth-child(10n + 8) {
    grid-column: 3 / span 2;
    grid-row: span 2;
}
.port-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.port-item:hover img {
    transform: scale(1.05);
}

/* Slider Shared Styles */
.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}
.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slider-slide {
    flex: 0 0 calc(33.333% - 20px);
    margin-right: 30px;
    box-sizing: border-box;
}

#baCarousel .slider-slide {
    flex: 0 0 calc(50% - 15px);
}

@media (max-width: 992px) {
    .slider-slide, #baCarousel .slider-slide {
        flex: 0 0 calc(50% - 15px);
    }
}
@media (max-width: 768px) {
    .slider-slide, #baCarousel .slider-slide {
        flex: 0 0 100%;
        margin-right: 0;
    }
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    z-index: 10;
    transition: all 0.3s ease;
}
.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}
.slider-btn.prev {
    left: 0;
}
.slider-btn.next {
    right: 0;
}

/* Team */
.team-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.team-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}
.team-info {
    padding: 20px;
    flex: 1;
}
.team-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}
.team-info .role {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}
.team-info p {
    color: var(--text-light);
    font-size: 0.9rem;
}
.team-note {
    text-align: center;
    padding: 20px;
    background: #e0f2fe;
    border-radius: 8px;
    color: var(--primary-dark);
    margin-top: 30px;
}

/* Certificates */
.cert-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.cert-text h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.cert-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--text-light);
}
.cert-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: block;
    margin: 0 auto;
}

/* Reviews */
.review-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md); /* Slightly more shadow to prevent clipping visually */
    border: 1px solid var(--border-color);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}
.avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.reviewer-info h4 {
    margin-bottom: 5px;
}
.stars {
    color: var(--secondary-color);
    font-size: 1.2rem;
}
.review-text {
    color: var(--text-light);
    font-style: italic;
}

/* FAQ */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
}

.faq-question:hover {
    background: var(--bg-section);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: var(--text-light);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 200px;
}

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

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    color: var(--primary-color);
}

/* CTA Banner */
.cta-banner {
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 0;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background: #0f172a;
    color: white;
    padding: 60px 0 20px 0;
}

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

.footer .logo {
    color: white;
    margin-bottom: 15px;
}

.footer .logo svg path {
    fill: white;
    stroke: white;
}

.footer-desc {
    color: #94a3b8;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
}

.footer-bottom a:hover {
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background: white;
    padding: 40px;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 400px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s;
}

.modal.active .modal-dialog {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-dialog h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.modal-dialog p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero-container, .calc-wrapper, .equip-grid, .cert-wrapper {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .slider-slide {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .header-info, .header-nav {
        display: none;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
    }
    
    .portfolio-masonry {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    
    .port-item:nth-child(4n+1), .port-item:nth-child(5n) {
        grid-column: span 1;
    }

    .slider-slide {
        flex: 0 0 100%;
        margin-right: 0;
    }
    
    .slider-btn {
        display: none; /* Hide arrows on mobile, they can swipe or it auto scrolls */
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .calc-controls {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .ba-slider {
        height: 300px;
    }
}
