/* ==========================================
   ПРОМЭНЕРГОСТРОЙ
   main.css
   БАЗОВЫЕ СТИЛИ
========================================== */


/* ===== RESET ===== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


html{
    scroll-behavior:smooth;
}


body{

    font-family:'Montserrat',sans-serif;

    color:#222;

    background:#fff;

    line-height:1.6;

    overflow-x:hidden;

}


/* ===== VARIABLES ===== */

:root{

    --blue:#005bbb;

    --blue-dark:#004799;

    --dark:#0d1b2a;

    --gray:#f4f6f8;

    --text:#3a3a3a;

    --white:#ffffff;

    --shadow:0 15px 35px rgba(0,0,0,.08);

    --radius:18px;

}



/* ===== GLOBAL ===== */


.container{

    width:90%;

    max-width:1200px;

    margin:auto;

}


img{

    max-width:100%;

    display:block;

}


a{

    text-decoration:none;

}


ul{

    list-style:none;

}



section{

    padding:100px 0;

}



h1,
h2,
h3{

    color:var(--dark);

}



h2{

    font-size:42px;

    margin-bottom:30px;

    text-align:center;

}



p{

    color:var(--text);

}



/* ===== BUTTONS ===== */


.btn{

    display:inline-block;

    background:var(--blue);

    color:#fff;

    padding:15px 34px;

    border-radius:50px;

    font-weight:600;

    transition:.3s;

    box-shadow:var(--shadow);

}



.btn:hover{

    background:var(--blue-dark);

    transform:translateY(-3px);

}



/* дополнительная кнопка */

.btn-outline{

    display:inline-block;

    border:2px solid #fff;

    color:#fff;

    padding:14px 34px;

    border-radius:50px;

    transition:.3s;

}



.btn-outline:hover{

    background:#fff;

    color:var(--blue);

}



/* ===== BACK TO TOP ===== */


#toTop{

    position:fixed;

    right:30px;

    bottom:30px;

    width:55px;

    height:55px;

    border-radius:50%;

    background:var(--blue);

    color:#fff;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:22px;

    cursor:pointer;

    opacity:0;

    visibility:hidden;

    transition:.35s;

    z-index:9999;

}



#toTop.show{

    opacity:1;

    visibility:visible;

}



#toTop:hover{

    transform:translateY(-5px);

}



/* ===== SCROLLBAR ===== */


::-webkit-scrollbar{

    width:10px;

}



::-webkit-scrollbar-track{

    background:#eee;

}



::-webkit-scrollbar-thumb{

    background:var(--blue);

    border-radius:30px;

}



::-webkit-scrollbar-thumb:hover{

    background:var(--blue-dark);

}


/* ===== Общие анимации ===== */


.fade-up{

    opacity:0;

    transform:translateY(40px);

    transition:.7s ease;

}



.fade-up.visible{

    opacity:1;

    transform:translateY(0);

}


/* ===== Общие заголовки разделов ===== */

.section-subtitle{
    max-width:800px;
    margin:0 auto 60px;
    text-align:center;
    color:#666;
    font-size:18px;
    line-height:1.7;
}


/* ===== Общий lightbox ===== */

.lightbox{
    position:fixed;
    inset:0;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:30px;
    background:rgba(0,0,0,.9);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity .3s, visibility .3s;
    z-index:3000;
}

.lightbox.show,
.lightbox.active{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
}

.lightbox-image{
    display:block;
    width:auto;
    height:auto;
    max-width:90%;
    max-height:90vh;
    object-fit:contain;
    border-radius:15px;
}
