/* ======================================================
   Robert Drewicz - Doradztwo Energetyczne
   style.css
====================================================== */

:root{

    --granat:#153B6D;
    --granat-ciemny:#102C50;
    --jasny:#F4F7FA;
    --bialy:#FFFFFF;
    --tekst:#303030;
    --linia:#DCE4EE;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--tekst);
    background:var(--bialy);
    line-height:1.7;

}

.container{

    width:min(1100px,92%);
    margin:auto;

}

/* ================= HEADER ================= */

header{

    position:sticky;
    top:0;

    background:white;

    border-bottom:1px solid var(--linia);

    z-index:1000;

}

header .container{

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 0;

}



nav ul{

    list-style:none;

    display:flex;

    gap:40px;

}

nav a{

    text-decoration:none;

    color:var(--granat);

    font-weight:600;

    transition:.25s;

}

nav a:hover{

    color:black;

}

/* ================= HERO ================= */

.hero{

    background:linear-gradient(180deg,#ffffff,#f7f9fc);

    padding:90px 0;

}

.hero-grid{

    display:block;

    text-align:center;

}
.hero-text{

    max-width:800px;

    margin:auto;

    text-align:center;

}

.hero-logo{

    width:90px;

    display:block;

    margin:0 auto 25px auto;

}

.hero h1{

    color:var(--granat);

    font-size:46px;

    margin-bottom:6px;

    text-align:center;

}

.hero h2{

    color:var(--granat);

    letter-spacing:3px;

    font-size:18px;

    margin-bottom:35px;

    text-align:center;

    font-weight:500;  

}

.hero p{

    font-size:20px;

    margin-bottom:20px;

    text-align:center;

}

.hero-small{

    color:#666;

    font-size:17px !important;

}

.button{

    display:block;

    width:220px;

    margin:35px auto 0 auto;

    background:var(--granat);

    color:white;

    padding:15px 34px;

    text-decoration:none;

    border-radius:6px;

    font-weight:600;
}

.button:hover{

    background:var(--granat-ciemny);

    transform:translateY(-2px);

}

/* ================= obraz ================= */

.hero-image{

    display:flex;

    justify-content:center;

}

.hero-image img{

    width:100%;

    max-width:420px;

    border-radius:12px;

    box-shadow:0 18px 35px rgba(0,0,0,.12);

}

/* ================= sekcje ================= */

section{

    padding:90px 0;

}

section:nth-child(even){

    background:var(--jasny);

}

section h2{

    text-align:center;

    color:var(--granat);

    font-size:36px;

    margin-bottom:55px;

}

/* ================= KARTY ================= */

.cards{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:35px;

}

.card{

    background:white;

    padding:35px;

    border-radius:10px;

    border-top:5px solid var(--granat);

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    transition:.25s;

}

.card:hover{

    transform:translateY(-8px);

}

.card h3{

    color:var(--granat);

    margin-bottom:18px;

}

/* ================= O mnie ================= */

.narrow{

    max-width:820px;

}

.narrow p{

    margin-bottom:20px;

    font-size:18px;

}

/* ================= kontakt ================= */

.kontakt-box{

    max-width:600px;

    margin:auto;

    background:white;

    padding:45px;

    border-radius:10px;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

    text-align:center;

}

.kontakt-box h3{

    color:var(--granat);

    font-size:30px;

    margin-bottom:10px;


}

   .kontakt-box .firma{

    color:var(--granat);

    font-weight:600;

    letter-spacing:2px;

    text-transform:uppercase;

    margin-bottom:20px;

}

/* ================= footer ================= */

footer{

    background:var(--granat);

    color:white;

    text-align:center;

    padding:28px;

}

footer a{

    color:white;

    text-decoration:none;

    font-weight:500;

}

footer a:hover{

    color:#DCE4EE;

    text-decoration:underline;

}

/* ================= TELEFON ================= */

@media(max-width:900px){

.hero-grid{

grid-template-columns:1fr;

text-align:center;

}

.cards{

grid-template-columns:1fr;

}

nav ul{

gap:20px;

font-size:15px;

}

.hero h1{

font-size:38px;

}

.hero h2{

font-size:18px;

}


}