
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

header {
    background: #16202b;
    
    padding: 5px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}



.logo {
    flex: 1;
}

.logo, .contacts {
    flex: 1; 
} 

.logo-img {
    height: 70px; 
    width: auto;  
    max-width: 200px;    
    display: block;
    mix-blend-mode: screen; 
    
    
    filter: brightness(1.1); 

    
    padding: 5px 0;  
}


.logo-container {
    display: flex;
    align-items: center;
    gap: 0px;           
    text-decoration: none;
    color: white;
    white-space: nowrap; 
    user-select: none;   
}

.logo-icon {
    height: 48px;        
    width: auto;
    mix-blend-mode: screen;
    filter: brightness(1.1);  
    cursor: default;     
}

.logo-text {
    color: white !important;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.4px;
    white-space: nowrap;
    user-select: none;        
    pointer-events: none;     
    cursor: default;     
}



.logo-container:hover,
.logo-container:hover .logo-icon,
.logo-container:hover .logo-text {
    color: white;        
    transform: none;     
    box-shadow: none;    
}

.logo-text .highlight {
    color: #fd6f02;      
    font-weight: 800;
}


.center-text {
    flex: 0 0 auto; 
    text-align: center;
    white-space: nowrap; 
    font-size: 14px;
    opacity: 0.95; 
    color: white;    
}



.contacts {
    text-align: right;
}

.contacts span {
    color: white;
    text-decoration: none;
    display: block;
    line-height: 1.2; 
    letter-spacing: -0.5px;
}

.contacts a:hover {
    color: #fd6f02;
    transform: scale(1.05);
    transition: all 0.3s ease;
    text-decoration: underline;
}


.hero {
    background: linear-gradient(rgba(10,20,40,0.75), rgba(10,20,40,0.75)), url('images/vent-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-position: 0% 65%;
    color: white;
    text-align: center;
    padding: 120px 20px;
}


.hero h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.btn {
    background: linear-gradient(135deg, #fd6f02, #ff8c42);
    color: white;
    padding: 16px 36px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block; 
    min-width: 250px; 
    text-align: center;
}

.btn, .contact-form button {
    background: linear-gradient(135deg, #e65c00, #ff8c42); 
}

.btn:hover {

    filter: brightness(1.1);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.2);
    transform: scale(1.05);  
}

.section {
    padding: 100px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.advantages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    align-items: stretch;           
    max-width: 1200px;
    margin: 40px auto 0;
}


.why-choose-section {
    padding: 20px 0;
    overflow: hidden;
}

.card {
    background: white;
    padding: 60px 28px;             
    width: calc(33.333% - 20px);
    min-width: 290px;
    box-sizing: border-box;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid transparent;

    display: flex;
    flex-direction: column;
    height: 100%;                   
    min-height: 260px;              

    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    cursor: pointer;
}
.card:hover {
    
    transform: translateY(-12px) !important; 
    
    
    box-shadow: 0 20px 40px rgba(0,0,0,0.12) !important;
    
    
    border-color: #fd6f02 !important; 
}

.card h3 {
    min-height: 54px;               
    margin-bottom: 14px;
}


.card p {
    margin-top: auto;
}



footer {
    background: #1f2d3d;
    color: white;
    text-align: center;
    padding: 20px;
}

.close {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

html {
    scroll-behavior: smooth;
}





#contact {
    background: #ffffff;
    padding: 40px 20px;
    max-width: 500px;
    margin: 100px auto 100px auto; 
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    text-align: center;
}


#contact h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #16202b;
}

#contact p {
    font-size: 16px;
    margin-bottom: 5px;
    color: #555;
}

#contact small {
    display: block;
    margin-bottom: 30px;
    font-size: 14px;
    color: #777;
}

#contact h2, #contact p, #contact small {
    text-align: center; 
}

.contact-form {
    max-width: 450px; 
    margin: 0 auto;   
    width: 100%;
}


.contact-form input {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.contact-form input:focus {
    border-color: #fd6f02;
    box-shadow: 0 0 10px rgba(253,111,2,0.3);
    outline: none;
}


.contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #fd6f02, #ff8c42);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.contact-form button:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: inset 0 0 15px rgba(255,255,255,0.2);
}

.contact-form input, 
.contact-form button {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px; 
}

.projects {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 20px;
    text-align: center;
    overflow: visible;
}

.project-info {
    margin-top: 0px;
}

.projects-slider {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: grab;
}
.projects-slider:active {
    cursor: grabbing;
}
.project {
    padding: 40px;
    background: #ffffff;      
    border-radius: 30px;      
    box-shadow: 0 5px 5px rgba(0,0,0,0.06); 
    margin: 20px 0;           
    box-sizing: border-box;
    overflow: visible !important;
}

.project-gallery {
    padding: 20px;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    overflow: visible;
}

.project-gallery img {
    width: 100%;
    height: auto;
    min-width: 100px;
    max-width: 32%;
    object-fit: cover;
    border-radius: 100ppx;
    cursor: pointer;
    transition: 0.3s;
    display: block;
}

.project-gallery img:hover {
    transform: scale(1.05) translateY(0px);
}

.slider-wrapper {
    position: relative;
    display: flex;
    align-items: center;           
    justify-content: center;
    overflow: hidden;
    min-height: 430px;             
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #16202b;
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    box-shadow: none;
    margin: 45px;
    transition: 
        transform 0.1s ease,
        background-color 0.2s ease,
        box-shadow 0.3s ease;
}

.slider-btn:hover {
    transform: translateY(-50%) scale(1.15);
    background: #fd6f02;
    box-shadow: 0 0 5px rgba(253, 111, 2, 0.5);
    filter: brightness(1.2);
}


.slider-btn:active {
    transform: translateY(-50%) scale(1.05);
    background: #fd6f02;
    box-shadow: 0 0 5px rgba(253, 111, 2, 0.5);
    transition-delay: 0s; 
    transition: 
        transform 0.3s ease-out,
        background-color 0.3s ease-out,
        box-shadow 0.4s ease-out;
}

.slider-btn:not(:active) {
    
    background-color: #16202b;
    box-shadow: none;
    transform: translateY(-50%);
}



.slider-container {
    max-width: 1100px; 
    margin: 0 auto;
    position: relative; 
    display: flex;
    align-items: center;;
}

.prev { left: 10px; }
.next { right: 10px; }




.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

.close-lightbox {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}






.price-section {
    padding: 60px 20px;
    background-color: #f5f7fa;
}

.price-table-container {
    max-width: 1000px;
    margin: 0 auto;
    overflow-x: auto; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}


.custom-price-table {
    width: 100%;
    border-collapse: collapse; 
    font-size: 15px;
    color: #000;
    border: 1px solid #767676; 
    border-radius: 12px;  
    
    overflow: hidden;     
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.custom-price-table th:first-child {
    border-top-left-radius: 12px;  
}

.custom-price-table th:last-child {
    border-top-right-radius: 12px;  
}

.custom-price-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 12px;  
}

.custom-price-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 12px;  
}


.custom-price-table thead th {
    border: 1px solid #767676;
    padding: 10px 15px;
    text-align: left;
    font-weight: 700;
    background-color: #ffffff;
}


.custom-price-table thead th.price-col-header {
    width: 200px;
    text-align: center;
}


.category-row td {
    border: 1px solid #767676;
    padding: 10px 15px;
    font-weight: 800;
    background-color: #ffffff;
}


.service-row td {
    border: 1px solid #767676;
    padding: 8px 15px;
    background-color: #ffffff;
}


.price-cell {
    text-align: right;
    width: 200px;
    white-space: nowrap; 
    padding-right: 25px !important;
}


.service-row:hover {
    background-color: #f5f5f5;
}


@media (max-width: 1100px) {
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
}



@media (max-width: 768px) {
    .custom-price-table {
        font-size: 13px; 
        border-radius: 8px
    }
    .price-cell {
        width: 120px;
        border-radius: 8px
    }
}




@media (max-width: 1000px) {
    header {
        padding: 5px 20px;  
    }
    
    .center-text {
        white-space: normal;  
        font-size: 13px;
    }
    
    .contacts a {
        font-size: 14px;
    }
    
    .logo-icon {
        height: 44px;
    }
    
    .logo-text {
        font-size: 24px;
    }
}



#projects-list {
    display: flex;
    flex-direction: column;
    gap: 60px; 
    max-width: 1200px;
    margin: 0 auto;
}


.project-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}


.project-text {
    text-align: left;
    margin-bottom: 20px;
    padding: 0 10px;
}

.project-text h3 {
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #16202b;
}

.project-text p {
    color: #666;
    margin: 0;
}


.project-photos-swipe {
    display: flex;
    gap: 15px;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    scrollbar-width: none; 
    padding-bottom: 10px;
}

.project-photos-swipe::-webkit-scrollbar {
    display: none; 
}


.project-photos-swipe img {
    flex: 0 0 85%; 
    height: 500px; 
    object-fit: cover; 
    border-radius: 15px;
    scroll-snap-align: center; 
    cursor: pointer;
}


@media (min-width: 768px) {
    .project-photos-swipe {
        overflow: hidden; 
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    .project-photos-swipe img {
        width: 100%;
        height: 350px; 
        flex: none;
    }
}







@media (max-width: 768px) {
    header {
        padding: 10px 15px;    
        flex-direction: column;  
        align-items: center;     
        justify-content: center; 
        gap: 8px;                
    }
    
    
    body, section {
        width: 100%;
        min-width: 100vw;  
        overflow-x: hidden;  
    }
    
    

    .logo, .center-text, .contacts {
        flex: none;              
        text-align: center;      
        width: auto;             
    }
    
    .center-text {
        font-size: 12px;
        white-space: normal;     
    }
    
    .contacts {
        text-align: center;      
    }
    
    .contacts a {
        font-size: 14px;    
        display: block;   
        margin: 0 5px;           
    }
    
    
    #contact {
        max-width: 90%;  
        margin: 50px auto 50px auto;  
    }

    .hero {
        padding: 80px 10px;  
        background-position: center;  
    }

    .hero h1 {
        font-size: 24px;  
        line-height: 1.2;  
        word-break: break-word;  
        hyphens: auto;  
        padding: 0 10px;  
    }

    .hero p {
        font-size: 16px;  
    }

    .logo-icon {
        height: 42px;
    }
    
    .logo-text {
        font-size: 22px;
    }
    
    .logo-link {
        justify-content: center; 
    }

    .section, .projects, .price-section, .hero {
            padding: 60px 10px;  
    }


    


    
    .slider-wrapper {
        overflow: hidden;  
        width: 100%;  
    }

    .projects-slider {
        width: 100%;  
    }


    
    .project-gallery::-webkit-scrollbar {
        display: none;
    }


    
    .project {
        padding: 20px;  
    }
}



.mobile-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
    width: 100%;
}

.mobile-slide {
    min-width: 100%;
    flex-shrink: 0;
    padding: 0 15px;
    box-sizing: border-box;
}

.mobile-slide img {
    width: 100%;
    height: 460px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mobile-slide-info {
    text-align: center;
    margin-top: 20px;
    padding: 0 10px;
}

.mobile-slide-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #16202b;
}

.mobile-slide-info p {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}


.mobile-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
}

.mobile-dot {
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-dot.active {
    background: #fd6f02;
    transform: scale(1.5);
    box-shadow: 0px 0px 30px rgba(253, 111, 2, 0.5);
    transition: 
        transform 0.3s ease-out,
        background-color 0.3s ease-out,
        box-shadow 0.4s ease-out;
}

@media (max-width: 600px) { #dots-pc { display: none !important; } }
@media (min-width: 601px) { #dots-mob { display: none !important; } }


@media (max-width: 600px) {
    
    .projects {
        padding: 60px 15px 80px;
    }
    
    .mobile-slide img {
        height: 410px; 
    }
}


.mobile-projects {
    display: none;
    flex-direction: column;
    gap: 70px;
    padding: 20px 15px 60px;
}

.project-item {
    background: #ffffff;
    border-radius: 20px;
    padding: 25px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.project-text {
    text-align: center;
    margin-bottom: 25px;
}

.project-text h3 {
    font-size: 20px;
    font-weight: 700;
    color: #16202b;
    margin-bottom: 8px;
}

.project-text p {
    color: #555;
    margin: 6px 0;
    font-size: 15px;
}

.project-photos-swipe {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 15px;
    scrollbar-width: none;
}

.project-photos-swipe::-webkit-scrollbar {
    display: none;
}

.project-photos-swipe img {
    flex: 0 0 85%;           
    height: 340px;
    object-fit: cover;
    border-radius: 18px;
    scroll-snap-align: start;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.12);
    cursor: pointer;
}


@media (max-width: 600px),(max-height: 300px) {
    .mobile-projects {
        display: flex;             
        flex-direction: row;       
        gap: 20px;                 
        overflow-x: auto;          
        scroll-snap-type: x mandatory; 
        padding: 20px 15px 40px;
        scrollbar-width: none;     
    }

    .mobile-projects::-webkit-scrollbar {
        display: none;             
    }

    .project-item {
        flex: 0 0 90%;             
        scroll-snap-align: center; 
        margin: 0;                 
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        max-width: 300px;
    }

    .project-photos-swipe {
        display: grid;
        grid-template-columns: 1fr 1fr; 
        gap: 8px;
        overflow-x: visible;            
    }

    .project-photos-swipe img {
        width: 100%;
        height: 150px;                 
        flex: none;
        object-fit: cover;
        border-radius: 18px;
    }
    
    .project-photos-swipe img:first-child {
        grid-column: 1 / -1;          
        height: 200px;
        width: 100%;
        max-width: 100%;
        margin-left: 0px; 
    }
    
    
    .desktop-slider,
    .slider-btn {
        display: none !important;
    }
    
    .projects {
        padding: 10px 10px 10px;
    }
}



.project-photos-swipe {
    cursor: grab;
    user-select: none;           
}

.project-photos-swipe:active {
    cursor: grabbing;
}

/* ===================== ИНДИКАТОР ПРОЕКТОВ ===================== */
.project-indicator {
    text-align: center;
    margin: 30px auto 40px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 12px;
}

.project-dots {
    display: flex !important;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
}

.project-dot {
    width: 12px !important;
    height: 12px !important;
    background: #ccc !important;
    border-radius: 50% !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-dot.active {
    background: #fd6f02 !important;
    transform: scale(1.4) !important;
    box-shadow: 0 0 12px rgba(253, 111, 2, 0.6) !important;
}

.project-counter {
    font-size: 15px;
    color: #555;
    font-weight: 500;
}

@media (max-width: 600x) {
    .project-indicator {
        margin: 25px auto 30px;
    }
}

#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
    transition: opacity 0.3s ease;
}

#lightbox.show {
    display: block;
    opacity: 1;
}

#lightbox .content-wrapper {
    background: #fff;
    padding: 20px;
    max-width: 80%;
    margin: 50px auto;
}

#lightbox button {
    background: #fd6f02;
    color: #fff;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    margin-top: 30px;
}

.contact-item {
    display: block;
    padding: 18px 30px;
    background: white;
    border: 2px solid #fd6f02;
    border-radius: 16px;
    font-size: 20px;
    color: #16202b;
    text-align: center;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    user-select: text;
}

.contact-item strong {
    font-size: 20px;
}

@media (max-width: 768px) {
    .contact-item {
        font-size: 18px;
        padding: 16px 25px;
    }
}