/* ======================================================
   1. RESET
====================================================== */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

html,body{
width:100%;
overflow-x:hidden;
height:100%;
}

/* ======================================================
   2. VARIABLES / THEME
====================================================== */

:root{
--bg:#ffffff;
--text:#222;
--card-bg:#ffffff;
--footer-bg:#111;
--btn-bg:#1f3c88;
--btn-hover:#f47c2c;
}

body.dark{
--bg:#111;
--text:#eee;
--card-bg:#1c1c1c;
--footer-bg:#000;
}

/* ======================================================
   3. GLOBAL
====================================================== */

body{
font-family:'Segoe UI',Arial,sans-serif;
line-height:1.6;
background:var(--bg);
color:var(--text);
min-height:100vh;
}

.container{
max-width:1200px;
margin:0 auto;
padding:0 24px;
}

/* ======================================================
   4. HEADER / NAV
====================================================== */

.header{
background:#111;
color:white;
padding:20px 0;
}

.header .container{
display:flex;
justify-content:space-between;
align-items:center;
flex-wrap:wrap;
}

.logo{
font-weight:700;
font-size:20px;
max-width:260px;
}

.nav{
display:flex;
align-items:center;
gap:24px;
flex-wrap:wrap;
}

.menu{
list-style:none;
display:flex;
gap:24px;
}

.menu a{
color:white;
text-decoration:none;
}

.menu a:hover{
opacity:0.7;
}

/* ======================================================
   5. LANGUAGE + DARK MODE
====================================================== */

.controls{
display:flex;
align-items:center;
gap:14px;
}

.lang-dropdown{
position:relative;
cursor:pointer;
}

.flag{
width:24px;
height:16px;
}

.lang-options{
position:absolute;
top:28px;
right:0;
display:none;
flex-direction:column;
background:#1c1c1c;
padding:6px;
border-radius:4px;
gap:6px;
}

.lang-dropdown.active .lang-options{
display:flex;
}

.theme-switch{
width:50px;
height:24px;
background:#ccc;
border-radius:50px;
position:relative;
cursor:pointer;
}

.switch-ball{
width:20px;
height:20px;
background:#f47c2c;
border-radius:50%;
position:absolute;
top:2px;
left:2px;
transition:0.3s;
}

body.dark .switch-ball{
background:#1f3c88;
left:28px;
}

/* ======================================================
   6. HERO
====================================================== */

.hero{
padding:140px 0;
text-align:center;
}

.hero h1{
font-size:56px;
line-height:1.2;
max-width:900px;
margin:0 auto 40px;
}

/* ======================================================
   7. BUTTONS / FILTERS / SEARCH
====================================================== */

.btn{
display:inline-block;
background:var(--btn-bg);
color:white;
padding:16px 36px;
text-decoration:none;
border-radius:4px;
}

.btn:hover{
background:var(--btn-hover);
}

.btn-small{
background:#111;
color:white;
padding:10px 20px;
border-radius:6px;
border:none;
cursor:pointer;
margin-top:auto;
}

.btn-small:hover{
background:#333;
}

.filters{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
}

.search-box{
padding:14px 18px;
border:1px solid #ccc;
border-radius:6px;
width:100%;
max-width:500px;
font-size:15px;
}

.sort-box{
padding:12px 16px;
border:1px solid #ccc;
border-radius:6px;
}

/* ======================================================
   8. OFFERS GRID + CARD
====================================================== */

.offers{
padding:96px 0;
background:#f9f9f9;
}

body.dark .offers{
background:#111;
}

.offers h2{
text-align:center;
margin-bottom:40px;
font-size:36px;
}

.offers-tools{
display:flex;
justify-content:center;
align-items:center;
gap:20px;
margin-bottom:40px;
flex-wrap:wrap;
}

.offers-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:24px;
align-items:stretch;
}

.offer-card{
background:var(--card-bg);
padding:24px;
border-radius:6px;
display:flex;
flex-direction:column;
gap:12px;
cursor:pointer;
overflow:hidden;
transition:transform 0.25s ease, box-shadow 0.25s ease;
height:100%;
min-height:420px;

}

.offer-card h3{
min-height:52px;
}

.offer-card .specs{
min-height:40px;
flex-grow:1;
}

.offer-card .btn-small{
margin-top:auto;
}

@media (hover:hover){
.offer-card:hover{
transform:translateY(-4px);
box-shadow:0 10px 25px rgba(0,0,0,0.15);
}
.offer-card:hover img{
transform:scale(1.06);
}
}

.offer-card img{
width:100%;
height:200px;
object-fit:cover;
margin-bottom:10px;
transition:transform 0.3s ease;
}

/* ======================================================
   9. OFFER PAGE
====================================================== */

.offer-page{
display:grid;
grid-template-columns:1fr 1fr;
gap:40px;
}

.offer-specs{
margin:25px 0;
border-top:1px solid #ddd;
}

.spec-row{
display:flex;
justify-content:space-between;
padding:14px 0;
border-bottom:1px solid #eee;
}

.spec-name{
font-weight:600;
color:#555;
}

/* ======================================================
   10. GALLERY
====================================================== */

#main-image{
width:100%;
height:420px;
object-fit:contain;
background:#ffffff;
border-radius:10px;
}

body.dark #main-image{
background:#020617;
}

.gallery-thumbs{
display:flex;
gap:10px;
margin-top:10px;
flex-wrap:wrap;
}

.gallery-thumbs img{
width:80px;
height:80px;
object-fit:contain;
background:#f1f5f9;
padding:6px;
border-radius:8px;
cursor:pointer;
border:2px solid transparent;
transition:0.2s;
}

.gallery-thumbs img:hover{
transform:scale(1.05);
}

.gallery-thumbs img.active{
border-color:#1f3c88;
}

body.dark .gallery-thumbs img{
background:#020617;
}

body.dark .gallery-thumbs img.active{
border-color:#f47c2c;
}

/* LIGHTBOX */

#lightbox{
position:fixed;
top:0;
left:0;
width:100%;
height:100%;
background:rgba(0,0,0,0.9);
display:none;
align-items:center;
justify-content:center;
z-index:9999;
}

#lightbox img{
max-width:90%;
max-height:90%;
border-radius:8px;
}

#lightbox-prev,
#lightbox-next{
position:absolute;
top:50%;
transform:translateY(-50%);
font-size:50px;
color:white;
cursor:pointer;
padding:20px;
user-select:none;
}

#lightbox-prev{ left:20px; }
#lightbox-next{ right:20px; }

/* ======================================================
   11. CONTACT
====================================================== */

.contact-grid{
display:grid;
grid-template-columns:2fr 1fr;
gap:40px;
margin-top:40px;
}

.contact-form form{
display:flex;
flex-direction:column;
gap:16px;
max-width:600px;
}

.contact-form input,
.contact-form textarea{
width:100%;
padding:14px;
border:1px solid #ccc;
border-radius:6px;
font-size:14px;
font-family:inherit;
}

.contact-form textarea{
min-height:180px;
resize:vertical;
}

.contact-form button{
align-self:flex-end;
margin-top:10px;
}

.contact-info{
background:var(--card-bg);
padding:24px;
border-radius:6px;
}

/* ======================================================
   12. FOOTER
====================================================== */

.footer{
background:var(--footer-bg);
color:white;
padding:64px 0;
}

.footer-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:40px;
text-align:left;
}

/* ======================================================
   13. RESPONSIVE
====================================================== */

@media(max-width:900px){

.header .container{
flex-direction:column;
align-items:flex-start;
gap:10px;
}

.nav{
width:100%;
justify-content:flex-end;
}

}

@media(max-width:768px){

.hero{
padding:60px 16px;
}

.hero h1{
font-size:28px;
}

.offers-grid{
grid-template-columns:1fr;
}

.offer-page{
grid-template-columns:1fr;
}

.contact-grid{
grid-template-columns:1fr;
}

.footer-grid{
grid-template-columns:1fr;
gap:30px;
text-align:center;
}

}

@media(max-width:420px){

.hero h1{
font-size:22px;
}

.logo{
font-size:18px;
}

}

/*PLACEHOLDER OBRAZU*/

.offer-card{
display:flex;
flex-direction:column;
min-height:420px;
}

.offer-card-content{
flex:1;
display:flex;
flex-direction:column;
gap:10px;
}

.offer-card-footer{
margin-top:auto;
}