html,body{
    scroll-behavior: smooth;
    scroll-padding-top: 200px;
}
.hero{
    position: relative;
    top: 64px;
    width: 100%;
    height: 90vh;
}

.hero-top{
    height: 85%;
    background-image: url(../img/hero.gif);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center; /* Wycentrowanie zdjęcia na stronie głownej */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}

.hero-overlay{
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title{
    color: white;
    text-align: center;
}

.hero-title div{
    position: relative;
    margin-bottom: 40px;
}

.hero-title div::before{
    content: '';
    width: 100%;
    height: 3px;
    transform: scaleX(.1);
    background-color: orange;
    position: absolute;
    left: 0;
    bottom: -15px;
    animation-name: slide-title-in;
    animation-duration: .9s;
    animation-delay: .3s;
    animation-fill-mode: forwards;
}

@keyframes slide-title-in{
    from{transform: scaleX(.1);}
    to{transform: scaleX(.5);}
}

.hero-title h2{
    opacity: 0;
    animation-name: fade-title-in;
    animation-duration: 1.3s;
    animation-delay: .6s;
    animation-fill-mode: forwards;
}

@keyframes fade-title-in{
    from{opacity: 0;}
    to{opacity: 1;}
}

.hero-bottom{
    height: 10%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-arrow{display: block;}

.hero-arrow:hover .arrow{border-color: orange;}

.arrow{
    display: block;
    width: 23px;
    height: 23px;
    border-left: 3px solid black;
    border-bottom: 3px solid black;
    animation-name: shakingArrow;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-direction: alternate;
    animation-timing-function: ease-in-out;
    transition: border-color .2s;
}

@keyframes shakingArrow{
    from{transform: translateY(0) rotate(-45deg);}
    to{transform: translateY(20px) rotate(-45deg);}
}

.intro-text{
    font-size: 17px;
    padding: 0 20px;
}

.offer-cards{
    background-color: #eee;
    padding: 50px 0;
}

.card{
    width: 260px;
    height: 300px;
    background-color: #fff;
    box-shadow: 10px 10px 10px #a3a3a3,
                -2px -2px 20px #a3a3a3;
    overflow: hidden;
    margin: 0 auto 55px;
}

.card-img{
    width: 100%;
    height: 75%;
    margin: 0;
    padding: 0;
}

.card-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title{
    width: 100%;
    height: 100%;
    background-color: #fff;
    padding: 25px 10px;
    transition: transform .4s;
}

.card:hover .card-title{transform: translateY(-65%);}

.card-title h3{
    font-size: 21px;
    color: #0055ff;
    position: relative;
}

.card-title h3::before{
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    display: block;
    width: 100%;
    height: 3px;
    background-color: orange;
    transform: scaleX(.2);
    transition: transform .3s .15s;
}

.card:hover .card-title h3::before{transform: scaleX(.5);}

.card-title p{
    font-size: 15px;
    margin-top: 30px;
}

.col-contact{margin-bottom: 50px;}

.contact-card{
    margin-left: auto;
    margin-right: auto;
    width: 85%;
    height: 100%;
    padding: 30px 0;
    background-color: #eee;
    position: relative;
    box-shadow: 5px 5px 10px #a3a3a3;
}

.contact-card::before{
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    display: block;
    width: 100%;
    height: 100%;
    border: 2px solid #0055ff;
    z-index: -1;
}

.contact-icon{margin-bottom: 20px;}
.contact-icon i{color: #0055ff;}

.contact-info h3{margin-bottom: 8px;}

.contact-info p, .contact-info a{
    margin: 0; 
    color: black;
    font-size: 17px;
}

.map{
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.map img{
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    box-shadow: 5px 5px 10px #a3a3a3;
}

.map figcaption{margin-top: 15px;}
.map span{
    display: block;
    margin-bottom: 10px;
}

@media(min-width: 425px){
    .contact-card{width: 60%;}
}

@media(min-width: 768px){
    .hero-overlay{justify-content: flex-start;}

    .hero-title{
        margin-left: 60px;
        padding: 40px 20px;
        border-radius: 10px;
    }

    .intro-text{
        font-size: 20px;
        padding: 0;
    }

    .card{margin-bottom: 0;}

    .col-contact{margin-bottom: 0;}
    .contact-card{width: 85%;}

    .map img{width: 75%;}
}

@media(min-width: 1024px){
    .hero-title h1{font-size: 35px;}
    .hero-title h2{font-size: 25px;}
}

@media(min-width: 1440px){
    .hero-title h1{font-size: 45px;}
    .hero-title h2{font-size: 35px;}
}