:root{
    --purple:#4c1d95;
    --purple2:#3b1680;
    --orange:#ff7a00;
    --green:#16a34a;
    --dark:#0b0e3b;
    --text:#11143f;
    --muted:#667085;
    --bg:#f1f3f6;
    --border:#e5e7eb;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}

body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    background:var(--bg);
    color:var(--text);
}

a{text-decoration:none;color:inherit}

.container{
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
}

/* HEADER */
.site-header{
    background:#fff;
    border-bottom:1px solid #eef0f5;
    position:sticky;
    top:0;
    z-index:100;
}

.nav-wrap{
    height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.header-logo{
    height:58px;
    width:auto;
    display:block;
}

.nav{
    display:flex;
    align-items:center;
    gap:26px;
}

.nav a{
    font-weight:700;
    color:var(--dark);
}

.nav a.active,
.nav a:hover{
    color:var(--purple);
}

/* BUTTONS */
.btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:13px 22px;
    border-radius:10px;
    font-weight:800;
    border:none;
    cursor:pointer;
    font-size:15px;
}

.btn-primary{
    background:var(--purple);
    color:#fff;
    box-shadow:0 8px 20px rgba(76,29,149,.18);
}

.btn-primary:hover{
    background:var(--purple2);
}

.btn-outline,
.btn-light{
    background:#fff;
    color:var(--purple);
    border:1px solid var(--purple);
}

/* HERO */
.hero-banner{
    position:relative;
    min-height:310px;
    background:url("https://images.unsplash.com/photo-1555041469-a586c61ea9bc?q=80&w=1920&auto=format&fit=crop") center right/cover no-repeat;
    overflow:hidden;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(90deg, rgba(9,13,58,.92), rgba(76,29,149,.72), rgba(255,255,255,.08));
    z-index:1;
}

.hero-content,
.hero-banner-content{
    position:relative;
    z-index:2;
    min-height:310px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    color:#fff;
}

.hero-content h1,
.hero-copy h1{
    font-size:48px;
    line-height:1.08;
    margin:0 0 14px;
    color:#fff;
    letter-spacing:-1px;
}

.hero-content h1 span,
.hero-copy h1 span{
    color:#ffb300;
}

.hero-content p,
.hero-copy p{
    color:#fff;
    font-size:17px;
    margin:0 0 18px;
    max-width:650px;
}

.hero-search{
    display:grid;
    grid-template-columns:1fr 180px 140px;
    gap:10px;
    background:#fff;
    padding:12px;
    border-radius:12px;
    width:min(650px,100%);
    box-shadow:0 12px 35px rgba(0,0,0,.18);
}

.hero-search input{
    border:1px solid #e5e7eb;
    border-radius:9px;
    padding:14px;
    font-size:15px;
}

.hero-search button{
    background:var(--purple);
    color:#fff;
    border:none;
    border-radius:9px;
    font-weight:900;
}

.hero-actions{
    display:flex;
    gap:12px;
    margin-top:16px;
}

/* SECTIONS */
.section{
    padding:28px 0;
}

.section-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
    gap:14px;
}

.section-head h2{
    margin:0;
    font-size:25px;
}

.section-head a{
    color:var(--purple);
    font-weight:900;
    text-transform:uppercase;
    font-size:14px;
    white-space:nowrap;
}

/* BANER REKLAMOWY PREMIUM */
.home-banner-wrap{
    width:100%;
    max-width:1180px;
    height:220px;
    margin:20px auto;
    overflow:hidden;
    border-radius:16px;
    background:#fff;
    box-shadow:0 12px 30px rgba(0,0,0,.12);
}

.banner-box,
.home-banner-wrap a{
    width:100%;
    height:100%;
    display:block;
    overflow:hidden;
    border-radius:16px;
}

.banner-image,
.banner-box img,
.home-banner-wrap img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    border-radius:16px;
    display:block;
    transition:transform .3s ease;
}

.home-banner-wrap:hover img{
    transform:scale(1.03);
}

/* CATEGORIES */
.category-section{
    padding-top:24px;
    padding-bottom:16px;
}

.category-graphic-bar{
    display:grid;
    grid-template-columns:repeat(10,1fr);
    gap:12px;
}

.category-graphic-item{
    background:#fff;
    border:1px solid var(--border);
    border-radius:16px;
    padding:14px 10px;
    min-height:92px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    text-align:center;
    box-shadow:0 4px 12px rgba(0,0,0,.05);
    transition:.2s ease;
}

.category-graphic-item span{
    font-size:26px;
    margin-bottom:8px;
}

.category-graphic-item strong{
    font-size:12px;
    line-height:1.2;
}

.category-graphic-item:hover{
    transform:translateY(-3px);
    border-color:var(--purple);
}

.category-graphic-item.special{
    background:linear-gradient(135deg,#fff7ed,#f0eafe);
    border:1px solid var(--orange);
}

/* GRIDS */
.modern-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}

.top-grid,
.listing-grid{
    grid-template-columns:repeat(3,1fr);
}

/* AD CARDS */
.modern-ad-card{
    background:#fff;
    border:1px solid var(--border);
    border-radius:14px;
    overflow:hidden;
    box-shadow:0 4px 12px rgba(0,0,0,.06);
    position:relative;
    display:block;
    transition:.2s ease;
}

.modern-ad-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 28px rgba(0,0,0,.08);
}

.modern-thumb{
    position:relative;
    height:180px;
    background:#eef0f5;
    overflow:hidden;
}

.modern-thumb img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.no-photo{
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#667085;
    background:#eef0f5;
}

.price-chip{
    position:absolute;
    left:12px;
    bottom:12px;
    background:var(--purple);
    color:#fff;
    padding:8px 11px;
    border-radius:7px;
    font-weight:900;
    z-index:3;
}

.modern-ad-body{
    padding:14px;
}

.ad-price{
    font-size:22px;
    font-weight:900;
    color:#111827;
    margin-bottom:6px;
}

.modern-ad-body h3{
    margin:0 0 8px;
    font-size:17px;
    line-height:1.25;
}

.modern-ad-body p{
    color:#3f456d;
    font-size:14px;
    line-height:1.45;
    min-height:38px;
    margin:0 0 12px;
}

.modern-location{
    font-size:13px;
    color:#667085;
}

/* BADGES */
.badge-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-bottom:8px;
}

.badge{
    display:inline-block;
    background:#f0eafe;
    color:var(--purple);
    padding:7px 11px;
    border-radius:999px;
    font-weight:800;
    font-size:12px;
}

.badge-promoted{
    background:var(--orange);
    color:#fff;
}

/* FEATURED */
.featured-card{
    border:2px solid var(--orange)!important;
    background:linear-gradient(180deg,#fff7e8,#fff);
    box-shadow:0 16px 42px rgba(255,122,0,.22)!important;
}

.featured-card::before{
    content:"PROMOWANE";
    position:absolute;
    top:10px;
    right:10px;
    background:var(--orange);
    color:#fff;
    font-size:11px;
    font-weight:900;
    padding:6px 10px;
    border-radius:8px;
    z-index:5;
}

.featured-card .price-chip{
    background:var(--orange);
}

/* LAYOUTS */
.listing-layout{
    display:grid;
    grid-template-columns:340px 1fr;
    gap:24px;
    align-items:start;
}

.detail-layout{
    display:grid;
    grid-template-columns:1.2fr .8fr;
    gap:24px;
    align-items:start;
}

/* CARDS / FORMS */
.card{
    background:#fff;
    border:1px solid #edf0f5;
    border-radius:18px;
    padding:24px;
    box-shadow:0 8px 24px rgba(20,25,65,.05);
}

.form-stack{
    display:grid;
    gap:12px;
}

.field,
select,
textarea,
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="file"]{
    padding:13px 15px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    font:inherit;
}

.field,
select,
textarea{
    width:100%;
}

.small{
    font-size:13px;
    color:var(--muted);
}

.promo{
    background:#fff7e8;
    border:1px dashed var(--orange);
}

.alert{
    background:#dcfce7;
    color:#166534;
    padding:13px;
    border-radius:12px;
}

/* DETAIL PAGE */
.detail-image,
.detail-layout img,
.ad-detail img{
    width:100%;
    max-height:520px;
    object-fit:contain;
    background:#fff;
    border-radius:16px;
    display:block;
}

.detail-layout .card{
    overflow:hidden;
}

.contact-box{
    background:#fff;
    border:1px solid #edf0f5;
    border-radius:18px;
    padding:24px;
}

/* CTA */
.cta-strip{
    background:#f0eafe;
    border-radius:16px;
    padding:26px 34px;
    display:grid;
    grid-template-columns:1fr auto;
    align-items:center;
    gap:22px;
}

.cta-strip h2{
    margin:0;
    font-size:28px;
    color:var(--purple);
}

.cta-strip h2 span{
    color:var(--orange);
}

.cta-strip p{
    margin:6px 0 0;
    font-size:18px;
    color:var(--purple2);
    font-weight:800;
}

/* BUSINESS */
.benefit-box{
    text-align:center;
    padding:24px;
}

.ad-package{
    min-height:380px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
}

.ad-package-main{
    border:2px solid var(--orange)!important;
    background:linear-gradient(180deg,#fff7e8,#fff)!important;
    box-shadow:0 16px 42px rgba(255,122,0,.18)!important;
}

.ad-package ul{
    padding-left:18px;
    line-height:1.7;
}

.ad-place{
    height:170px;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    font-weight:900;
    line-height:1.4;
    margin:12px 0;
}

.ad-place.purple{
    background:#f0eafe;
    border:2px dashed var(--purple);
    color:var(--purple);
}

.ad-place.orange{
    background:#fff7e8;
    border:2px dashed var(--orange);
    color:var(--orange);
}

.ad-place.green{
    background:#ecfdf5;
    border:2px dashed var(--green);
    color:var(--green);
}

/* FOOTER */
.site-footer{
    margin-top:50px;
    background:#0d0b3d;
    color:#fff;
}

.footer-grid{
    width:min(1180px, calc(100% - 32px));
    margin:0 auto;
    display:grid;
    grid-template-columns:2fr 1fr 1fr 1fr;
    gap:30px;
    padding:42px 0;
}

.site-footer h3,
.site-footer strong{
    color:#fff;
}

.site-footer a,
.site-footer p{
    color:#d8d8ef;
    line-height:1.7;
}

.site-footer a{
    display:block;
    margin:6px 0;
}

/* SMS CONFIRM BUTTON */
.sms-confirm-btn{
    margin-top:12px;
    display:inline-block;
}

@media(min-width:721px){
    .sms-confirm-btn{
        display:none;
    }
}

/* RESPONSIVE */
@media(max-width:1050px){
    .modern-grid,
    .top-grid,
    .listing-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .category-graphic-bar{
        grid-template-columns:repeat(5,1fr);
    }

    .listing-layout,
    .detail-layout{
        grid-template-columns:1fr;
    }

    .nav{
        display:none;
    }
}

@media(max-width:720px){

    body{
        padding-bottom:70px;
    }

    .container{
        width:calc(100% - 20px);
    }

    .nav-wrap{
        height:auto;
        padding:10px 0;
        display:grid;
        grid-template-columns:1fr auto;
        gap:10px;
    }

    .header-logo{
        height:42px;
    }

    .nav-wrap>.btn-primary{
        padding:10px 12px;
        font-size:13px;
        white-space:nowrap;
    }

    .hero-banner{
        min-height:auto;
    }

    .hero-content,
    .hero-banner-content{
        min-height:auto;
        padding:28px 0;
    }

    .hero-content h1,
    .hero-copy h1{
        font-size:34px;
    }

    .hero-content p,
    .hero-copy p{
        font-size:15px;
    }

    .hero-search{
        grid-template-columns:1fr;
    }

    .hero-actions{
        flex-direction:column;
    }

    .hero-actions .btn{
        width:100%;
    }

    .home-banner-wrap{
        width:100%;
        max-width:100%;
        height:auto;
        margin:14px auto;
        border-radius:12px;
        box-shadow:0 8px 20px rgba(0,0,0,.10);
    }

    .banner-box,
    .home-banner-wrap a{
        width:100%;
        height:auto;
        display:block;
    }

    .banner-image,
    .banner-box img,
    .home-banner-wrap img{
        width:100%;
        height:auto;
        max-height:none;
        object-fit:contain;
        border-radius:12px;
        display:block;
        transform:none!important;
    }

    .home-banner-wrap:hover img{
        transform:none!important;
    }

    .category-graphic-bar{
        display:flex;
        overflow-x:auto;
        gap:10px;
        padding-bottom:8px;
    }

    .category-graphic-bar::-webkit-scrollbar{
        display:none;
    }

    .category-graphic-item{
        min-width:96px;
        min-height:82px;
    }

    .section{
        padding:18px 0;
    }

    .section-head h2{
        font-size:20px;
    }

    .modern-grid,
    .top-grid,
    .listing-grid{
        grid-template-columns:1fr!important;
        gap:10px;
    }

    .modern-ad-card{
        display:grid;
        grid-template-columns:118px 1fr;
        min-height:126px;
    }

    .modern-thumb{
        height:126px;
    }

    .price-chip{
        display:none;
    }

    .modern-ad-body{
        padding:13px;
        display:flex;
        flex-direction:column;
        justify-content:center;
    }

    .modern-ad-body h3{
        font-size:15px;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }

    .modern-ad-body p{
        display:none;
    }

    .ad-price{
        font-size:21px;
    }

    .detail-image,
    .detail-layout img,
    .ad-detail img{
        max-height:360px;
    }

    .footer-grid{
        grid-template-columns:1fr;
    }
}