/* ==========================================================
   COMMON.CSS
   Szálláskereső.info UI rendszer
   ========================================================== */


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

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

img{
    max-width:100%;
    height:auto;
    display:block;
}

a{
    color:inherit;
    text-decoration:none;
    transition:.25s ease;
}

ul{
    list-style:none;
}

button,
input,
textarea,
select{
    font:inherit;
}


/* ==========================================================
   BODY
   ========================================================== */

body{
    font-family:Arial, Helvetica, sans-serif;
    font-size:16px;
    line-height:1.7;
    color:#555;
    background:#fff;
}

p{
    margin-bottom:18px;
}

strong{
    color:#222;
}


/* ==========================================================
   CONTAINER
   ========================================================== */

.container{
    width:100%;
    max-width:1280px;
    margin:0 auto;
    padding:0 20px;
}


/* ==========================================================
   SECTION
   ========================================================== */

.section{
    padding:70px 0;
}

.section-title{
    text-align:center;
    font-size:34px;
    font-weight:700;
    color:#222;
    margin-bottom:18px;
    position:relative;
}

.section-title::after{
    content:"";
    display:block;
    width:70px;
    height:4px;
    background:#1d73c9;
    margin:18px auto 0;
    border-radius:10px;
}

.section-description{
    max-width:900px;
    margin:0 auto 55px;
    text-align:center;
    color:#666;
    font-size:18px;
}


/* ==========================================================
   GRID
   ========================================================== */

.common-grid{
    display:grid;
    gap:30px;
}

.grid-2{
    grid-template-columns:repeat(2,1fr);
}

.grid-3{
    grid-template-columns:repeat(3,1fr);
}

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


/* ==========================================================
   CARD
   ========================================================== */

.card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transition:.25s ease;
    display:flex;
    flex-direction:column;
    height:100%;
}

.card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 35px rgba(0,0,0,.12);
}

.card img{
    width:100%;
    aspect-ratio:16 / 10;
    object-fit:cover;
}

.card h3{
    font-size:24px;
    color:#222;
    padding:25px 25px 10px;
    line-height:1.3;
}

.card p{
    padding:0 25px 30px;
    color:#666;
    flex:1;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.btn{
    display:inline-block;
    padding:14px 30px;
    border-radius:8px;
    font-size:17px;
    font-weight:600;
    transition:.25s ease;
}

.btn-primary{
    background:#1d73c9;
    color:#fff;
}

.btn-primary:hover{
    background:#165da3;
}

.btn-secondary{
    background:#f4f4f4;
    color:#333;
}

.btn-secondary:hover{
    background:#e7e7e7;
}


/* ==========================================================
   ADVANTAGES
   ========================================================== */

.advantages{
    background:#f8fafc;
}

.advantages-button{
    text-align:center;
    margin-top:45px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.footer{
    background:#f7f8fa;
    border-top:1px solid #e6e6e6;
}

.footer-top{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:50px;
    padding:60px 0;
}

.footer-col h3{
    position:relative;
    font-size:22px;
    font-weight:700;
    color:#222;
    padding-bottom:14px;
    margin-bottom:22px;
    border-bottom:1px solid #e5e5e5;
}

.footer-col h3::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-2px;
    width:32px;
    height:4px;
    background:#1d73c9;
    border-radius:20px;
}

.footer-col a{
    display:block;
    margin-bottom:12px;
    color:#555;
}

.footer-col a:hover{
    color:#1d73c9;
    padding-left:6px;
}

.footer-col p{
    color:#666;
}

.footer-logos{
    border-top:1px solid #e5e5e5;
    border-bottom:1px solid #e5e5e5;
    padding:25px 0;
}

.footer-logos .container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

.payment-logos{
    display:flex;
    gap:15px;
    align-items:center;
    flex-wrap:wrap;
}

.payment-logos img{
    height:40px;
    width:auto;
}

.footer-bottom{
    text-align:center;
    padding:25px 0;
    font-size:15px;
}


/* ==========================================================
   HELPERS
   ========================================================== */

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

.mb-1{
    margin-bottom:10px;
}

.mb-2{
    margin-bottom:20px;
}

.mb-3{
    margin-bottom:30px;
}

.mt-1{
    margin-top:10px;
}

.mt-2{
    margin-top:20px;
}

.mt-3{
    margin-top:30px;
}


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

@media (max-width:992px){

    .grid-4{
        grid-template-columns:repeat(2,1fr);
    }

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

    .footer-top{
        grid-template-columns:repeat(2,1fr);
    }

    .footer-logos .container{
        flex-direction:column;
        text-align:center;
    }

}

@media (max-width:768px){

    .section{
        padding:50px 0;
    }

    .section-title{
        font-size:28px;
    }

    .section-description{
        font-size:16px;
        margin-bottom:40px;
    }

    .grid-2,
    .grid-4{
        grid-template-columns:1fr;
    }

    .footer-top{
        grid-template-columns:1fr;
        gap:40px;
    }

}