/* Style strony oferta--zabudowa-smietnikow – przeniesione z treści w CMS (30.10.2026) */
/* --- PALETA I ZMIENNE STYLE REITER --- */
:root {
    --r-primary: #313733;
    --r-accent: #a70f27;
    --r-bg-card: #ffffff;
    --r-bg-soft: #f8f9fa;
    --r-border: #e9ecef;
    --r-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
    --r-radius: 18px;
}

.elka-notice, .elka-notice-box {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-left: 3px solid #8c959f; /* Subtelny, szary akcent informacyjny */
    color: #555555;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 0.88rem; /* Mniejszy, dyskretny rozmiar tekstu */
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    margin: 25px auto;
    max-width: 800px;
}

.wiata-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    color: var(--r-primary);
    overflow: hidden;
}

/* Nagłówki */
.wiata-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 50px auto;
}

.wiata-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--r-primary);
    line-height: 1.2;
}

.wiata-subtitle {
    font-size: 1.15rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
}

/* Układ główny */
.wiata-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: start;
}

/* Kolumna z wideo */
.wiata-video-col {
    width: 100%;
}

.wiata-video-sticky {
    position: relative;
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
}

.wiata-video-card {
    position: relative;
    width: 100%;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: var(--r-radius);
    overflow: hidden;
    box-shadow: var(--r-shadow);
    border: 1px solid var(--r-border);
}

.wiata-video-card iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* KONTENER POZIOMEGO PRZESUWANIA (SUWAK) */
.wiata-cards-scroll-container {
    width: 100%;
    min-width: 0;
    position: relative;
}

.scroll-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.scroll-hint {
    font-size: 0.85rem;
    color: #888;
    font-weight: 600;
}

.scroll-nav-btns {
    display: flex;
    gap: 8px;
}

.scroll-btn {
    background: var(--r-bg-card);
    border: 1px solid var(--r-border);
    color: var(--r-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.scroll-btn:hover {
    background: var(--r-accent);
    color: #fff;
    border-color: var(--r-accent);
}

.wiata-cards-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 10px 5px 25px 5px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    
    /* Ukrycie paska przewijania */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.wiata-cards-grid:active {
    cursor: grabbing;
}

.wiata-cards-grid::-webkit-scrollbar {
    display: none;
}

/* Pojedyncza karta */
.wiata-card {
    flex: 0 0 280px;
    max-width: 300px;
    scroll-snap-align: start;
    background: var(--r-bg-card);
    border: 1px solid var(--r-border);
    border-radius: var(--r-radius);
    padding: 24px;
    position: relative;
    box-shadow: var(--r-shadow);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    user-select: none;
}

.wiata-card:hover {
    transform: translateY(-4px);
    border-color: var(--r-accent);
    box-shadow: 0 15px 35px rgba(167, 15, 39, 0.08);
}

.wiata-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: var(--r-bg-soft);
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(0,0,0,0.04);
}

.wiata-icon-box {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.wiata-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--r-primary);
}

.wiata-card-text {
    font-size: 0.98rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
}

/* RESPONSYWNOŚĆ (DESKTOP) */
@media (min-width: 992px) {
    .wiata-layout {
        grid-template-columns: 340px 1fr;
        gap: 40px;
    }

    .wiata-video-sticky {
        position: sticky;
        top: 90px;
    }

    .wiata-card {
        flex: 0 0 300px;
    }
}
