/* ===================== RESET ===================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Archivo',sans-serif;
    background:#fff;
    color:#222;
    animation:pageLoad 1s ease;
}

h1,h2{
    font-family:'Archivo Black',sans-serif;
    text-transform:uppercase;
}

@keyframes pageLoad{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ===================== HEADER ===================== */

header{
    width:100%;
    background:#000;
    padding:20px 8%;
    display:flex;
    justify-content:space-between;
    align-items:center;
    position:relative;
    overflow:hidden;
}

header::after{
    content:"";
    position:absolute;
    left:-100%;
    bottom:0;
    width:100%;
    height:6px;
    background:#f40000;
    animation:headerLine 4s infinite;
}

@keyframes headerLine{
    0%{
        left:-100%;
    }
    50%{
        left:100%;
    }
    100%{
        left:100%;
    }
}

/* ===================== LOGO ===================== */

.logo{
    color:#fff;
    font-size:52px;
    font-weight:900;
    letter-spacing:2px;
}

/* ===================== MENU ===================== */

nav{
    display:flex;
    gap:45px;
}

nav a{
    color:#fff;
    text-decoration:none;
    font-size:18px;
    font-weight:bold;
    position:relative;
    transition:.3s ease;
}

nav a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-8px;
    width:0;
    height:3px;
    background:#f40000;
    transition:.3s;
}

nav a:hover{
    color:#f40000;
    transform:translateY(-3px);
}

nav a:hover::after{
    width:100%;
}

/* ===================== KONTAKT ===================== */

.contact-bar{
    color:#fff;
    font-weight:bold;
    line-height:1.6;
    text-align:left;
}

/* ===================== RESPONSIVE ===================== */

@media(max-width:800px){

    header{
        flex-direction:column;
        gap:20px;
        padding:25px;
    }

    nav{
        flex-wrap:wrap;
        justify-content:center;
        gap:20px;
    }

    .contact-bar{
        text-align:center;
    }

    .logo{
        font-size:40px;
    }

}


/* ===================== OFERTY ===================== */

.offer-section {

    position:relative;
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:90px 8%;
    background:
    linear-gradient(
        rgba(0,0,0,0.65),
        rgba(0,0,0,0.65)
    ),
    url("images/budowa-bg.jpg");
    background-size:cover;
    background-position:center;
    overflow:hidden;
}

.gallery-grid img {
    width:100%;
    height:100%;
    object-fit:contain;
    display:block;
}

.gallery-grid {
    width:100%;
    height:500px;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.offer-section::before {
    content:"";
    position:absolute;
    width:500px;
    height:700PX;
    right:-180px;
    top:-180px;
    background:white;
    border-radius:50%;
    opacity:.08;
}

.offers-box {
    width:40%;
    position:relative;
    z-index:2;
}

.offers-box h2 {
    position:relative;
    font-size:42px;
    font-family:'Archivo Black', sans-serif;
    text-transform:uppercase;
    letter-spacing:1px;
    color:white;
    margin-bottom:45px;
}

.offers-box h2::after {
    content:"";
    display:block;
    width:80px;
    height:5px;
    background:#f40000;
    margin-top:15px;
    border-radius:10px;
}

.offers-box h2 {
    animation:titleShow 1s ease;
}

@keyframes titleShow {
    from {
        opacity:0;
        transform:translateY(20px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}
.offer {
    display:flex;
    align-items:center;
    gap:15px;
    font-size:19px;
    margin:20px 0;
    color:white;
    cursor:pointer;
    transition:.4s;
}

.square {
    width:13px;
    height:13px;
    border:2px solid white;
    display:inline-block;
    transition:.3s;
}

.offer.active {
    font-weight:800;
    transform:translateX(12px);
}

.offer.active .square {
    background:#f40000;
    border-color:#f40000;
}

.details {
    display:inline-flex;
    align-items:center;
    margin-top:45px;
    padding:16px 35px;
    background:#f40000;
    color:white;
    text-decoration:none;
    font-size:17px;
    font-weight:bold;
    border-radius:50px;
    transition:.3s;
}

.details::after {
    content:" →";
    margin-left:8px;
}

.details:hover {
    background:white;
    color:#111;
    transform:translateY(-4px);
}

.gallery {
    width:50%;
    display:flex;
    justify-content:center;
    align-items:center;
}

.gallery-grid {
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.gallery-grid img {
    width:100%;
    height:250px;
    object-fit:contain;
    display:block;
    opacity:0;
    transform:translateY(60px);
    transition:.5s ease;
}

.gallery-grid img.show {
    opacity:1;
    transform:translateY(0);
}

/* ===================== PARTNERZY ===================== */

.partners {
    padding:90px 8%;
    background:#f5f5f5;
}

.partners h2 {
    position:relative;
    text-align:center;
    font-size:42px;
    font-family:'Archivo Black', sans-serif;
    text-transform:uppercase;
    letter-spacing:1px;
    color:#222;
    margin-bottom:60px;
}

.partners h2 {
    animation:Titleshow 2s ease;
}

@keyframes Titleshow {
    from {
        opacity:0;
        transform:translateY(20px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}

.partners h2::after {
    content:"";
    display:block;
    width:90px;
    height:5px;
    background:#f40000;
    margin:18px auto 0;
    border-radius:10px;
}

.partners-text {
    text-align:center;
    max-width:650px;
    margin:-35px auto 50px;
    color:#666;
    font-size:18px;
    line-height:1.6;
}

.partners-text {
    animation:showtitle 2s ease;
}

@keyframes showtitle {
    from {
        opacity:0;
        transform:translateY(20px);
    }
    to {
        opacity:1;
        transform:translateY(0);
    }
}

.partners-grid {
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:25px;
}

.partner-box {
    height:170px;
    background:white;
    border-radius:22px;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
    position:relative;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.06);
    transition:.35s ease;
}

.partner-box::before {
    content:"";
    position:absolute;
    inset:0;
    background:
    linear-gradient(
        135deg,
        #fff,
        #eee
    );
    opacity:0;
    transition:.35s;
}

.partner-box img {
    max-width:90%;
    max-height:80px;
    object-fit:contain;
    position:relative;
    z-index:2;
    transition:.35s;
}

.partner-box:hover {
    transform:translateY(-12px);
    box-shadow: 0 25px 45px rgba(0,0,0,.15);
}

.partner-box:hover::before {
    opacity:1;
}

.partner-box:hover img {
    transform:scale(1.08);
}

@media(max-width:1200px){
    .partners-grid{
        grid-template-columns:repeat(4,1fr);
    }
}

@media(max-width:800px){
    .partners-grid{
        grid-template-columns:repeat(2,1fr);
    }
}

.partner-box {
    text-decoration:none;
    color:inherit;
}

.partner-box:active {
    transform:scale(.95);
}

html {
    scroll-behavior: smooth;
}

/* ===================== STOPKA ===================== */

.footer{
    background:#111;
    color:white;
    padding:60px 8% 20px;
    position:relative;
    overflow:hidden;
}

.footer::before{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:6px;
    background:#f40000;
    animation:footerLine 4s infinite;
}

@keyframes footerLine{
    0%{
        left:-100%;
    }
    50%{
        left:100%;
    }
    100%{
        left:100%;
    }
}

.footer-content{
    max-width:1200px;
    margin:auto;
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:50px;
    animation:showFooter 1s ease;
}

@keyframes showFooter{
    from{
        opacity:0;
       transform:translateY(40px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.footer-logo img{
    width:200px;
    height:auto;
    margin-bottom:15px;
}

.footer-logo p{
    color:#ccc;
    font-size:17px;
    line-height:1.7;
    max-width:300px;
}

.footer h3{
    color:#f40000;
    font-family:'Archivo Black',sans-serif;
    text-transform:uppercase;
    font-size:22px;
    margin-bottom:25px;
    position:relative;
}

.footer h3::after{
    content:"";
    display:block;
    width:50px;
    height:3px;
    margin-top:10px;
    background:#f40000;
    border-radius:10px;
}

.footer p{
    color:#ccc;
    line-height:1.8;
    font-size:16px;
}

.footer-contact p,
.footer-hours p{
    transition:.3s;
    cursor:pointer;
}

.footer-contact p:hover,
.footer-hours p:hover{
    color:#f40000;
    transform:translateX(8px);
}

.footer-bottom{
    max-width:1200px;
    margin:45px auto 0;
    padding-top:20px;
    border-top:1px solid #333;
    text-align:center;
}

.footer-bottom p{
    font-size:14px;
    color:#777;
}

@media(max-width:700px){
    .footer-content{
        grid-template-columns:1fr;
        text-align:center;
    }
    .footer-logo p{
        margin:auto;
    }
    .footer h3::after{
        margin:10px auto 0;
    }
}

/* ===================== KONTAKT ===================== */

a{
    text-decoration: none;
    color: rgb(0, 0, 0);
}

.kontakt{
    max-width:1100px;
    margin:auto;
    padding:70px 20px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:50px;
    align-items:center;
}

.kontakt-intro h2{
    font-size:32px;
    margin-bottom:25px;
}

.kontakt-intro h3{
    color:#f40000;
    font-size:24px;
    margin-bottom:15px;
}

.kontakt-intro p{
    color:#555;
    line-height:1.7;
    margin-bottom:15px;
}

.kontakt-box{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.kontakt-card{
    background:white;
    padding:25px;
    border-radius:15px;
    border-left:5px solid #f40000;
    box-shadow:0 10px 30px rgba(0,0,0,.12);
    transition:.3s;
}

.kontakt-card:hover{
    transform:translateY(-8px);
}

.kontakt-card h3{
    font-size:18px;
    margin-bottom:15px;
}

.kontakt-card p{
    color:#555;
    line-height:1.6;
}

@media(max-width:800px){
    .kontakt{
        grid-template-columns:1fr;
    }
    .kontakt-box{
        grid-template-columns:1fr;
    }
}


/* ===================== LOKALIZACJA ===================== */

.lokalizacja{
    max-width:1100px;
    margin:70px auto;
    padding:20px;
}

.lokalizacja-box{
    display:grid;
    grid-template-columns:1fr 1fr;
    background:#111;
    border-radius:20px;
    overflow:hidden;
    box-shadow:0 20px 40px rgba(0,0,0,.2);
    transition: .4s;
}

.lokalizacja-box:hover{
    transform:
    translateY(-15px)
    scale(1.03);
    box-shadow: 0 20px 40px rgba(0,0,0,.25);
}

.lokalizacja-text{
    padding:50px;
    color:white;
}

.lokalizacja-text h2{
    font-size:32px;
    color:#f40000;
    margin-bottom:20px;
}

.lokalizacja-text p{
    color:#ccc;
    line-height:1.7;
}

.adres{
    display:flex;
    gap:15px;
    margin:30px 0;
    font-size:18px;
}

.lok-btn{
    display:inline-block;
    padding:14px 25px;
    background:#f40000;
    color:#111;
    border-radius:10px;
    text-decoration:none;
    font-weight:bold;
    transition:.3s;
}

.lok-btn:hover{
    transform:translateY(-5px);
    box-shadow:0 10px 25px rgba(244, 0, 0, 0.4);
}

.lokalizacja-grafika{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    background:
    linear-gradient(
    135deg,
    #f40000,
    #ff8a8a
    );
    text-align:center;
}



.pin{
    font-size:80px;
    animation:pulse 2s infinite;
}



@keyframes pulse{
    0%,100%{
        transform:scale(1);
    }
    50%{
        transform:scale(1.15);
    }
}

.lokalizacja-grafika h3{
    font-size:35px;
}



@media(max-width:800px){
    .lokalizacja-box{

        grid-template-columns:1fr;

    }
    .lokalizacja-text{

        padding:30px;

    }
}
