/* Style strony elki-ogrodzeniowe – 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-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Rajdhani', system-ui, -apple-system, sans-serif;
    color: var(--r-primary);
    overflow: hidden;
}

/* Panoramiczne zdjęcie na górze */
.elka-hero-img {
    width: 100%;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    border-radius: var(--r-radius);
    box-shadow: var(--r-shadow);
    margin-bottom: 25px;
    display: block;
}

/* Wideo 16:9 - zoptymalizowany rozmiar na PC */
.elka-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 680px; /* Ograniczenie szerokości na PC, żeby nie było ogromne */
    aspect-ratio: 16 / 9;
    margin: 0 auto 40px auto;
    border-radius: var(--r-radius);
    overflow: hidden;
    box-shadow: var(--r-shadow);
    background: #000;
    border: 1px solid var(--r-border);
}

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

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

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

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

/* KONTENER POZIOMEGO PRZESUWANIA (SUWAK KART) */
.elka-cards-scroll-container {
    width: 100%;
    min-width: 0;
    position: relative;
    margin-bottom: 30px;
}

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

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

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

.elka-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;
}

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

.elka-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;
}

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

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

/* Pojedyncza karta w suwaku */
.elka-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;
}

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

.elka-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);
}

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

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

.elka-card-text {
    font-size: 0.95rem;
    color: #555;
    margin: 0;
    line-height: 1.5;
    font-weight: 400;
}

/* Nota informacyjna */

.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;
}

@media (min-width: 992px) {
    .elka-card {
        flex: 0 0 300px;
    }
}

@media (max-width: 600px) {
    .elka-title {
        font-size: 1.8rem;
    }
}
