/* Theme Name: N Griesti FINAL WORKING */
*{box-sizing:border-box}

body{
margin:0;
font-family:Inter,sans-serif;
background:#f8fafc;
color:#1f2937;
}

.container{
max-width:1200px;
margin:auto;
padding:80px 20px;
}

/* HEADER */

header{
background:white;
border-bottom:1px solid #eee;
position:sticky;
top:0;
z-index:100;
}

.nav{
display:flex;
justify-content:space-between;
align-items:center;
padding:16px 20px;
max-width:1200px;
margin:auto;
}

.logo{
font-weight:700;
font-size:22px;
text-decoration:none;
color:#111;
}

/* ПРАВАЯ ЧАСТЬ (inline div) */
.nav > div{
display:flex;
align-items:center;
gap:20px;
}

/* MENU */
.menu{
display:flex;
align-items:center;
}

.menu a{
margin-left:20px;
text-decoration:none;
color:#374151;
font-weight:500;
}

.lang{
margin-left:12px;
cursor:pointer;
font-weight:600;
}

/* BURGER */
.burger{
display:none;
font-size:26px;
cursor:pointer;
}

/* PHONE */
.header-phone{
text-align:right;
}

.header-phone a{
text-decoration:none;
color:#111;
font-weight:700;
font-size:1.05rem;
white-space:nowrap;
}

/* HERO */

.hero{
height:80vh;

background-image:
linear-gradient(rgba(0,0,0,.45),rgba(0,0,0,.45)),
url("../img/main.png");

background-size:cover;
background-position:center;

display:flex;
align-items:center;
justify-content:center;

text-align:center;
color:white;
}

.hero h1{
font-size:56px;
}

.hero p{
font-size:20px;
}

.btn{
background:#2563eb;
color:white;
padding:12px 22px;
border-radius:6px;
text-decoration:none;
display:inline-block;
margin-top:20px;
}

/* GRID */

.grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:24px;
}

.card{
background:white;
padding:25px;
border-radius:10px;
box-shadow:0 6px 18px rgba(0,0,0,.05);
}

/* CALCULATOR */

.calc{
background:white;
padding:35px;
border-radius:10px;
max-width:450px;
margin:auto;
box-shadow:0 8px 25px rgba(0,0,0,.05);
}

.calc input,
.calc select{
width:100%;
padding:12px;
margin-bottom:12px;
border:1px solid #ddd;
border-radius:6px;
}

/* GALLERY */

.gallery{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:16px;
}

.gallery img{
width:100%;
height:220px;
object-fit:cover;
border-radius:10px;
cursor:pointer;
}

/* LIGHTBOX */

.lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,.9);
display:none;
align-items:center;
justify-content:center;
z-index:200;
}

.lightbox img{
max-width:90%;
max-height:90%;
}

/* FAQ */

.faq-item{
background:white;
padding:20px;
border-radius:10px;
margin-bottom:10px;
}

/* CONTACT */

.contact-box{
background:white;
padding:30px;
border-radius:10px;
box-shadow:0 6px 18px rgba(0,0,0,.05);
}

/* FLOATING */

.floating{
position:fixed;
bottom:20px;
right:20px;
display:flex;
flex-direction:column;
gap:10px;
z-index:200;
}

.floating a{
padding:12px 18px;
border-radius:30px;
color:white;
text-decoration:none;
}

.whatsapp{background:#25D366}
.telegram{background:#0088cc}

/* MOBILE */

@media(max-width:700px){

.burger{
display:block;
}

/* фикс контейнера */
.nav > div{
flex-wrap:nowrap;
}

/* MENU */
.menu{
display:none;
position:absolute;
top:60px;
left:0;
width:100%;
background:white;
flex-direction:column;
padding:20px;
z-index:200;
}

.menu.active{
display:flex;
}

.menu a{
margin:10px 0;
}

/* PHONE */
.header-phone{
display:block !important;
flex-shrink:1;
margin:0;
}

.header-phone span{
display:none !important;
}

.header-phone a{
font-size:0.85rem;
}

/* GRID */
.grid{
grid-template-columns:1fr;
}

.gallery{
grid-template-columns:1fr 1fr;
}

.hero h1{
font-size:36px;
}

}
